#tech-related-help

1 messages ยท Page 17 of 1

coarse river
#

it is not working since I used the list data

#

I tried removing it and directly return the dict but it didn't work

mystic crater
#

looks like that's your problem

#

you wrote this code?

coarse river
#

I wrote most of it and I took some bits feom stack overflow

mystic crater
#

Are you sure you are using .finditer correctly?

coarse river
#

ohh

#

okay thank you I think I am going to try smthg

mystic crater
coarse river
#

now I get "NotImplementedError"

mystic crater
#

on what part of the code?

idle dew
#

Two interfaces they cant have the same address network. Each interface have a address network specific

frank star
#

yea i got some help i fixed it

#

thank you tho ๐Ÿ™‚ @idle dew

coarse river
#

okay now it is not printing anything ๐Ÿ˜ญ

idle dew
idle dew
mystic crater
coarse river
tulip lagoon
#

Hii everyone! Studying chemical engineering. Does someone know a good app/webpage to take notes? I've been using Goodnotes on iPad, but sometimes I prefer to use pc and I need something that have accessibility for both. Tried OneNote but its kinda basic for me I guess. Any recomendation? ๐Ÿ–ค

coarse river
#

sry I don't

tulip lagoon
#

Awww ty anyways

mystic crater
# coarse river sry I don't
import re

data = ["hi", "hello"]

regex = re.compile("^hello$")

res = []
for item in data:
    if(re.search(regex, item) != None):
        res.append(item)
    
print(res)
#

i did a little test here and it worked res had "hello" in it

mystic crater
tulip lagoon
coarse river
mystic crater
#

wdym def?

#

oh you mean the function

coarse river
#

the lenght of logs() needs to be == 979 if u use a list it will not print that right?

mystic crater
#

yeah the function returns the list so itll be checking the length of the list

coarse river
#

ohh ok ill try it

mystic crater
#

your logs() function returns the list data and when you do len(logs()) what you are actually doing is checking the length of the return value of the logs() function which is a list

#

also in regex you should put it in between quotations and it should start with a ^ and end with a $

coarse river
#

ohh okay got it

#

should every line begin with ^ and end with $?

#

or just the beginning and end of regex?

mystic crater
#

just the beginning and end

#

you should also include the \n (line break character) if there are multiple lines

coarse river
#

tysm! I will check it out tomorrow I think I need to get used to using regex ๐Ÿ˜…
the code is still not working but I will try again tomorrow it's late now. good nightt

mystic crater
coarse river
#

ohh ok but it worked before that's the thing but anyway I ll try everything tmrw thanks again

leaden monolith
#

If anyone needs a tutor for python or C feel free to DM me.

sharp steeple
#

Anyone knows Haskell? I'm having trouble with some exercises

small python
sturdy moat
#

Anyone in here have experience with pySpark?

red cairn
#

Anyone know Kotlin?

spare ocean
red cairn
#

im stuck on this quiz. the first pic is the code i had written down and the second link is the problem @spare ocean

spare ocean
#

whats sense on line 5 btw?

#

i need registration so tell a problem

red cairn
#

if you want, i can join one of the tutor rooms

spare ocean
#

hmm

#

ill try soolve

red cairn
#

i can stream my screen if you want to walk me through it

idle dew
#

have anyone tried algoexpert ?

spare ocean
spare ocean
#

here

#

its JS, but there is same conditions

#

look at function only

#

hope it helps

red cairn
#

it did ! thank you

still rivet
#

anyone Know how to code in Lua

spare ocean
elder trail
elder trail
fervent violet
#

Hi guys, this is more theory and research based but How do you compare programming languages such as C# and R?

#

I have looked into compiler and abstraction so far but not sure where to go from there.

elder trail
#

both should have a function to measure process time, then you can compare, that how you can demonstrate (for example) that Python is waaaay slower than CPP or C

idle dew
fervent violet
#

^ thats my question

fervent violet
#

would talking about structure be okay for languages?

#

is the structure of the languages also their "design" ?

little reef
#

Hey guys anyone have their AP Comp Sci exam soon?

pearl cedar
blissful musk
# fervent violet Hi guys, this is more theory and research based but How do you compare programmi...

I don't know much about R so I will swap it out with python.

The main difference is in the compilation process. C# is compiled to bytecode, just like java. The bytecode is interpreted by the C# runtime (.NET), just like java bytecode is interpreted by the JVM, and just how python is interpreted, as is, by CPython. CPython is written in C/C++, so in a way python is written in C/C++. Therefore, you can actually call C++ modules directly from python scripts, though the overhead is much higher when you call them from the python runtime.

C#'s architecture and design pattern is much more 'traditional' OOP. Python is a more functional, scripty, messy type of OOP. People think a language is either functional or oop but they can be both. Python and javascript are great examples but most mainstream languages have examples of both. The key difference is that C# is strongly typed, so you need to explicitly state exactly what types functions expect as arguments, what they return, etc. For example, in python you may have a getAdminUsername function that takes an Admin object and returns their username. In python, if you pass in a User instead of an Admin, as long is they have a username, it will work. In C#, the program will not compile because you passed in the wrong type.

This seems trivial but it actually completely changes the way you code. In C# you cannot see if something works until you have set up all the types properly. It is super annoying if you just want to check something really quick, but on the other hand you get much more information just by hovering over stuff in your editor. On top of that, if you write something like 'typeof variable' in python, chances are you're going to get something vague like 'Object.' In C# you'll most likely get something much more specific.

Lastly, speed. Compiled languages are by nature faster. They can simply figure out more computations before runtime. That said, compiled python can be just as fast if not faster than c#

fervent violet
#

i see

#

what about just in time compilation

#

thats wat C# uses right?

blissful musk
# fervent violet Hi guys, this is more theory and research based but How do you compare programmi...

The way to give python a chance at processing as fast as C# will involve doing a lot of messing around with the interpreter and the libraries you use. For example you can see just as good if not better performance to C# if you use the Cython library. That said, building a real app in Cython will be frustrating depending on what it is because a lot of libraries you want to use will be incompatible with Cython and you'll need to find ways to cast the types properly for cython to use

fervent violet
#

is that like flexibility / backwards compatability?

blissful musk
#

Yes JIT compilation is used in C# and it makes it extremely fast. It's basically a hybrid system where the program compiles as it runs because it gets more and more information. Once the types are more and more solidified, the runtime (.NET) can compile more of your code in advance

#

yeah like lets say you pass a certain type of high level you retrieve from an API into some CPython computation. That API decides to change the return types of its data to different types of integers. All of your code will be broken

#

Sorry Cython, not CPython**

#

As a side note to JIT, it takes a ton of advantage of caching so it also checks there to see if theres any information it can use to learn more in advance about how your program will run

fervent violet
#

hmm this is too much for me lol

#

still first year

blissful musk
#

Haha it is complicated but being exposed to it more times will always help

fervent violet
#

yeah

blissful musk
#

this is pretty advanced stuff, I mean nobody outside of python devs would have any idea what im talking about

fervent violet
#

ive briefly compared them

blissful musk
#

the c# is slightly more common knowledge

fervent violet
#

yeah

#

i dont get many results for R

blissful musk
#

R is very niche to data science

fervent violet
#

its aparently mostly used by data scientists

#

yes

blissful musk
#

yeah python is also very common for data science

fervent violet
#

yea

blissful musk
#

but more for data science applications and software and less for actual scientists

elder trail
#

Guys I finally feel that I'm making improvements on Data structures, at least at a theorical level

#

๐Ÿ˜ƒ

rotund grove
#

Awesome

whole sonnet
#

what language would you guys best recommend for competitive coding?

twin fox
#

all competitive programmers i've watched use it

whole sonnet
#

oh,,,,thanks

idle dew
#

java or python

idle dew
#

c++

minor ledge
#

C++

rigid mulch
#

Anyone got a recommendation for learning unity resources perhaps?

finite ridge
#

its on z-library

idle dew
#

๐Ÿ‘‹ hello, front-end junior / mid senior dev here. I'm all in ears for any type of web dev or coding related questions just wanted to say hi

mystic crater
idle dew
#

Oh hey, excelent question. You may want to learn react for a next step. It already consists some of the vue functionalities already built-in but also It's waay more hyped right now. If it was like 2 years ago, people would be argue about vue / react / angular combo but at the time I see react has a clear ahead.

I would suggest you to go onto the back-end devlopment basics too. React and axios / apollo would be a guarantee portfolio project.

And lastly I'm currently working with Nextjs which is a react child framework. It's really good and hyped at this moment of time

spare ocean
mystic crater
mystic crater
spare ocean
idle dew
#

TypeScript is the future lol

spare ocean
#

and it will also speed up your development, because you will not have a "black" box, the intelliSense in the editor will help you perfectly, because you type each object into an interface or type.

#

you will know what you want to get from another component or from the server

idle dew
#

Marwanos you should choose a project to work on. SCSS SASS BootStrap and Tailwind MaterialUI are the main to go with your styling. React Next Hooks Nextjs is the logic based and lastly you can dip your toes into the backend aspect all of these too, the basic understanding is required

spare ocean
#

Yes, and don't forget to go to the repository above peepoCoffee

idle dew
#

Hooks(as a concept)

spare ocean
#

Hooks are amazing too, yep

idle dew
#

We wish you luck and here to answer questions

mystic crater
#

Thanks guys you gave me some ideas for my summer project hehe

grim vale
#

Anyone have any experience with Jenkins & Jenkinsfiles?

#

Trying to run a jenkins job from another pipeline & passing in two params at two different stages

#
stage('pipelineA') {
  steps { 
    build job: 'pipelineA', parameters: [
      string(name: 'aws-genesis-prod', value: 'aws-genesis-prod')
    ]
}
#

But uh, nothing happens

idle dew
#

I have so many problems with jenkins all the time so I really cant tell sorry...

grim vale
#

yeah I just started learning it

zenith mason
#

Hey guys ! actually finishing a personal Fullstack MERN project, i would like to deploy it, do you know what's the easiest / fastest way to deploy it ? aws looks sooo painfull to do x)

lusty linden
#

Hi guys, wondering if some base knowledge of computer science is necessary before learning a programming language like Python?

idle dew
#

Hey Ishhin, I would give Vercel a shot to deploy it. I don't know it would be compatible or not.

proven arch
#

If you can pick up a python textbook you can probably go pretty far with just that

lusty linden
#

@proven arch roger that, thank you. I may do a bit of research on how it actually works though ๐Ÿ˜›

proven arch
#

Good idea : P

zenith mason
#

@idle dew Cheers man, i'll look for that ๐Ÿ™‚

open cairn
spare ocean
lusty linden
#

@open cairn roger that mate

mystic crater
lusty linden
#

@mystic crater I've got the udemy python bootcamp - is this the way to go?

mystic crater
#

I haven't tried it but udemy usually is a reliable source so ig

onyx nest
#

Anyone understand how works Linked list in C language?

rustic mesa
#

It's been a while since I've used them specifically in C. But what is the problem you're having?

idle dew
#

I'm part fluent in C, list are arrays with memory direction keys between elements

#

What can i help with

onyx nest
#

Well I have file with some text and I need to save from line every word to Linked list.

#

So each element in the list will be word

idle dew
#

It is a txt?

onyx nest
#

yes

idle dew
#

Take a look here, its a basic example

#

Otherwise dm your code and I'll take a look

onyx nest
#

Alright I will look and if I will have some trouble Ill dm you

idle dew
#

Sure!

little reef
#

Hey! I'm having a bit of trouble on this problem.

narrow root
#

Anyone can recomend me a book/web/tool... to learn java script

#

I actually programme at python

meager sorrel
# little reef

Check out the "Try it Yourself" section here: https://www.w3schools.com/java/ref_keyword_extends.asp

The key concept here is inheritance and that the child class that extends the parent (B extending A) can overwrite methods of the parent class and they end up getting called instead of the parent method. Even though you declare the class on the left as a type "A", it still has the child methods because you instantiate it as "B".

It's easier if you think of "A" as vehicle and "B" as car. Although you can call your car a "vehicle," it's more specific to call it a "Ford Mustang". And although all vehicles honk, it honks in a way specific to a "Ford Mustang."

hushed pecan
#

Hi everyone! I'm currently a professor of game dev, but I'm planning to go back to being a freelance full-stack developer. Since I've been teaching full time for 4 years now, I believe my current tech stack is a bit outdated. What language or platform can you guys suggest that I take a look into and study?

#

I used to be a native android and asp.net core developer for 3 years, but I believe the market is leaning towards react, nodejs, etc

idle dew
#

Flutter 2 and React-Native is on the rise right now for mobile/web cross platform

#

I would suggest you to look into Flutter 2 especially

hushed pecan
#

Oh, yeah. I was looking into both platforms recently. Thanks for the tip! I'll grab a Udemy course for a quick study then.

past mauve
#

Create 2 boolean variables to check when you are entering a continuous stream of 1s or 0s, and set them to true when you come across more than 2 1s/0s in a row, and set them back to false otherwise.

And create another 2 sets of int variables to store the index of where you set the boolean values to true and false respectively. That way you have the exact locations of the positions where you started and ended

lone wolf
#

@jolly crow so when it comes to for and while loops, they each have different purposes

past mauve
#

I'm interested in getting into Full-Stack development, can anyone suggest me a good online course?

warm rampart
jolly crow
#

Ok I have my notebook ill write down the notes ~

past mauve
#

I'm good with basic JS HTML and CSS, and know my way around SQL (MySQL specifically)

#

Don't know any JS frameworks tho

warm rampart
idle dew
#

@past mauve You can check traversymedia in youtube and also please check some actual projects to work on.

warm rampart
#

There are also options for using more fully fledged environments like Django in Python if that's more your taste

azure pawn
#

just iterate over each bit of the std::vector<bool>

lone wolf
#

While loops are generally used as a way of looping until you've met a specific condition, while for loops don't need to meet a condition. for loops can also be used as iterators to handle data in a more efficient way, like if you want to get a specific property from each object in a set, you could do [i.property for i in dataset]

past mauve
azure pawn
past mauve
azure pawn
#

mainly mern or mean

warm rampart
jolly crow
lone wolf
jolly crow
#

In the while loop

dull raven
#

Hey guys, does anyone know how to update from high sierra to catalina? I have an early 2011 and the system won't let me update

past mauve
past mauve
azure pawn
warm rampart
lone wolf
tacit kite
warm rampart
#

@jolly crow did you say you were working on Python?

jolly crow
#

I get it know, thank you so much!!!

#

Yes

#

Python

warm rampart
#

because for Python you'd usually use the notation in for to represent a variable/piece of information you want to operate on inside of a list

past mauve
#

Does the Django stack require JavaScript too? As in stuff like Node, React and Angular

warm rampart
#

so you'd put something like:
for char in string:

operation you want to do on the char
or
for item in some_list:
operation you want to do on the item

jolly crow
azure pawn
#

a good practice : don't use i and j for iterations

warm rampart
jolly crow
#

Okay!! I'll update you on the progress, I really appreciate your help!

azure pawn
past mauve
#

I use i and j exclusively for iterations and never anywhere else

warm rampart
past mauve
warm rampart
lone wolf
warm rampart
#

^^

lone wolf
#

I can definitely see how in .net or other lower level languages the refactoring is an issue but since Python is such a high-level language there isn't much of a problem. Python also isn't generally refactored as much in DevOps, when code goes to prod it's expected to follow best practice and formatting, otherwise it generally has to be revised lol

warm rampart
#

yeah i can't recall the last time i didn't send something off without linting it

past mauve
#

Alright, so finally, if I want to learn the MERN stack, can someone recommend me a good course?

azure pawn
#

for each their own , i worked with a guy who doesn't use 'else' statements

azure pawn
warm rampart
#

what language did he work in?

azure pawn
#

python

past mauve
#

Did he at least use elif?

warm rampart
#

oh god he probably suffers when he sees code that goes out like:
else:
pass
return something

azure pawn
#

he just reversed the last else

#

than proceeds for continuious ifs

past mauve
warm rampart
#

so does he not use elifs?

azure pawn
#

no not really

warm rampart
#

weirdo

lone wolf
#

That hurts my brain

past mauve
#

Doesn't that slow down the program though?

#

Like if you have to check each condition then it'll take longer right?

azure pawn
warm rampart
#

it just makes it less readable for the most part

#

really bad for maintenance

azure pawn
#

reminds me when i used to love goto in C

lone wolf
warm rampart
past mauve
#

Switch case is the one thing I wish Python had that other languages have

#

Otherwise Python is perfect

warm rampart
#

tbf i still want python to have ++

#

bc +=1 annoys me

past mauve
tacit kite
lone wolf
#

I do a lot of intelligence analysis and having to work with data without switch/case is something that really has made me want to learn more C++

warm rampart
#

I might revisit C++, i only used it briefly years ago to make a simple text-based game when i was like 19

#

i bet that code was awful

lone wolf
#

Lmao, I used it awhile ago to make a discord bot but after that I just dumped it

azure pawn
warm rampart
#

back in the days Eclipse was considered a good IDE

past mauve
#

Lol

lone wolf
#

I really love pythonic solutions to problems but damn, if we made such big changed from 2..x to 3.x I hope 4.x comes with ++ and switch/case....

past mauve
#

I used to use Eclipse

lone wolf
#

Back in the day VS was a bad IDE ๐Ÿ˜ฉ

past mauve
#

Back in school

warm rampart
#

now VS is insanely good

past mauve
azure pawn
#

well vim is still the king

lone wolf
past mauve
#

Noooo let's not start editor wars now

warm rampart
tacit kite
warm rampart
#

i do love vim though

past mauve
#

Pleams emacs

warm rampart
#

do we have any people into building keyboards here

past mauve
#

As in like PCBs for keyboards and all?

warm rampart
#

not building the components themselves, just assembly and tweaking and modifying

#

like buying case,PCB, Switches,Plate,Padding,Lube,Keycaps and everything

#

soldering it all

twin fox
warm rampart
#

tbf you can be way more efficient with lower level languages for stuff like that

lone wolf
past mauve
#

Aight Imma head out, nice hanging out

warm rampart
#

later dude

lone wolf
#

Seeya man :)

warm rampart
#

this the one i made ^^

tacit kite
#

Looks cleean

spare ocean
warm rampart
#

lmao

vernal pawn
regal granite
#

Does anybody know how to make arrays work in constructors in Java?

unkempt trail
#

how could jvscholz sounds so crispy clear no buzz even though his mouth is far away from the mic? is it because of the mic quality or theres some setting?

finite rapids
#

whats the best language to learn for starters ?

whole imp
finite rapids
whole imp
#

yes! plenty of tutorials on youtube also if you'd like to learn

#

went through first and second year computer science with a toaster of a laptop just fine lol

violet tundra
#

what is the use of super().init()while creating a inherited class?, bruh discord converts lowecases to italics, but you know what i'm saying

whole imp
#

not sure if i botched that explanation

violet tundra
whole imp
#

yes

violet tundra
#

cool, thanks a lot

timid nymph
#

how to start localhost/8080 ?

whole imp
#

are you making a webserver or something

violet tundra
timid nymph
#

my local server

violet tundra
#

node based?

#

that's all i know, hope a web dev can answer this

open mural
# timid nymph how to start localhost/8080 ?
import socket
import sys

# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = ('localhost', 10000)
sock.bind(('127.0.0.1',8080))
sock.listen(10)
optional_headers=('''Content-Length: 55743
Connection: keep-alive
Cache-Control: s-maxage=300, public, max-age=0
Content-Language: en-US
Date: Thu, 06 Dec 2018 17:37:18 GMT

Server: meinheld/0.6.1
Strict-Transport-Security: max-age=63072000
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Vary: Accept-Encoding,Cookie
Age: 7
''')
response=('''
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>A simple webpage</title>
</head>
<body>
  <h1>Simple HTML5 webpage</h1>
  <p>Hello, world!</p>
</body>
</html>
''')
while True:
    connection, addr = sock.accept()
    print('conn:',connection,'addr',addr,'recv',connection.recv(1600))
    connection.sendall(bytes(response,'utf-8'))```
Here's a basic example of web server
timid nymph
#

tnx

open mural
#

XD

#

it might be filled with errors since its been awhile

whole imp
#

when i did my web development module, i used XAMPP and it made running webservers a lot easier

#

has Apache in addition to allowing for databases, php etc

open mural
#

it is advisable to go for XAMPP/apache/nginx etc if you are working on production critical application how ever if you want to learn network programming(ie sockets ) programming it will be a good expirience in my opinion

whole imp
#

just depends what you're using the server for, but yes @open mural is speaking facts

open mural
little reef
#

Please help with this

gleaming dragon
#

Does anyone know if James pc set up is a modern setup that just looks old?

grim vale
#

he has a 1060

#

and some pretty modern cpu that I don't remember

#

but you can just read the description like the text on screen tells you to

mystic crater
#

oh actually it could be E i honestly forgot if java is pass by reference or value

little reef
#

The answer key says its E and I have no clue how

gleaming dragon
mystic crater
#

yeah so whats happening is the array you are passing to changeIT is not being changed

little reef
#

So changeIt doesn't effect the code?

mystic crater
#

it creates its own array but doesnt affect the array being passed to it (nums)

#

its because nums is being passed to changeIt by value, as in we pass a copy and the original will still be intact afterwards

little reef
#

Thank you so much

whole imp
#

its E if you're wondering

#

marwanos explanation is correct

#

java does pass by value

regal quartz
mystic crater
little reef
#

Thank you all, just cramming for the AP test tomorrow

mystic crater
#

good luck!

elder trail
#

Hi guys

#

Hows it goin

haughty harness
#

Finals week and Iโ€™m dying lmao

#

Currently trying to force myself out of bed to grind

elder trail
#

Finally understood basic sorting methods (bubbleSort) so I'm feeling kinda happy

#

I'm goin slow but safe

little reef
#

Kind of confused with the result after each sort

idle dew
idle dew
shadow pagoda
#

beginner python question --

#

is my way better or how much does it matter here?

little reef
#

Ik it works just not sure how

elder trail
open mural
#
b=''
for i in range(0,len(stri)):
    if(i==n):
        continue
    else:
        b=b+stri[i]

return b

#

@shadow pagoda if you dont want to use string.replace() you could do something like this

shadow pagoda
#

i see

#

is it ever a bad thing to shorten code as much as possible?

open mural
#

nope it isnt

shadow pagoda
#

on codingbat the solutions are always way shorter than mine heh

open mural
#

shorter code == more readable

open mural
#

it dosent matter there are 100 solutions for same problem

#
# with the power of regex
import re
kek = 'smtn'
re.sub('s', '', kek)```
#

is another method

shadow pagoda
#

cool thx

elder trail
rich canyon
shadow pagoda
#

so longer code could potentially run faster than shorter or no?

rich canyon
#

No, not in particular. Longer code could be better managable but it all depends on your situation and what you want do to. If your code is working and you can manage it and it relative fast than it is good code (in my opinion, Im not a software engineer ๐Ÿ™‚ ).

lusty bridge
#

i feel like, particularly employers, would prefer shorter code if it is just as efficient bc it is better for maintainability and makes it clearer yk (idrk)

rich canyon
#

But then is the question is shorter code clearer and better maintainable (JK)? Everyone has different thoughts about it and it will be a long discussion and you don't get a clear answer ๐Ÿ™‚ .

idle dew
#

can anyone help me how to disable slow mode on discord

karmic cradle
#

Can anyone help me setup a virtual machine on my PC? I run windows but my class needs a linux OS ... having tech issues plz help

karmic cradle
karmic cradle
stoic hawk
#

yea

#

what linux flavor are you searching for?

#

is it ubuntu/

#

?

#

and are you working in windows 10?

#

@karmic cradle

regal vale
#

anyone know java i can dm?

coarse river
#

@mystic crater Heyy sorry to bother you again but I still have one issue with my program can you help me please?

mystic crater
#

yeah whassup

spare ocean
coarse river
# mystic crater yeah whassup

ok so I basically fixed but the problem is with the length of logs() it should be 979 but it is only 4 (it is taking the forst dict in consideration only)

#

import re
def logs():
with open("logdata.txt", "r")as file:
logdata = file.read()
pattern = '''
(?P<host>.[^-])
(\s-\s)
(?P<user_name>-|\w
)
(\s[)
(?P<time>.)(?=])
(]\s")
(?P<request>POST.
)(?=")
'''
for one_item in re.finditer(pattern, logdata, re.VERBOSE):
return one_item.groupdict()
print(logs())
print(len(logs()))

mystic crater
#

i still dont see you using the correct regex tokens (^$)

coarse river
#

I tried to use it but the document is one full string so it is taking the last element in consideration and returning nothing

river nexus
mystic crater
#

true ^^

river nexus
#

I just jumped in without knowing what the problem is. Hope I didn't just throw a misplaced comment ๐Ÿ˜„

coarse river
#

i know the problem is with the return bc when I used print it worked fine but I don't know how to fix it

river nexus
#

I don't know much python, but I'd say you should check out the map function

#

so that you can return the groupdict() of each element

mystic crater
#

you could save them in a list then return it at the end of the function

coarse river
coarse river
regal vale
#

had to create an algorithm to print out prime numbers till a certain point but having to call another method that checks if theyre prime

#

if that makes sense

#

couldnt get it to work for some dumb reason

#

turns out i had a for loop with bad condition

storm marsh
#

heyy im a beginner in code but iโ€™d really love to learn coding, which language would you recommend me to study first and do you have any particular tip ?

spare ocean
sand gate
#

Also copy and paste from stack overflow a lot, lol

idle dew
storm marsh
#

thanks so much everyone, iโ€™m so glad you helped me, your advices really motivated me !! thks!! ๐Ÿ™‚

elder trail
#

guys any good course of DS and algs w implementation (regardless of PL)

idle dew
#

In general, Brilliant offers great courses

coarse river
#

@mystic crater @river nexus
thanks for your help guys. I submited the assignment and got a full grade!

river nexus
#

cool

mystic crater
#

Nice bro congrats

elder trail
#

Guys i need help on implementation of Data structures, does any1 hae a video or a course?

river nexus
#

What kind of data structure?

elder trail
#

i mean, i can surely find the info of that course on internet for free, but the structure of the course will be better than doing it myself i think

river nexus
#

While this will probably explain the concepts, if you're looking for actual implementations, there's no escaping foraging through github for other people's implementations

river nexus
#

These are quite good for educational purposes. Most of them are suboptimal implementations that you'd need to fiddle around with for better efficiency, ..etc.

inner tiger
#

Hi can anyone explain why the answer to this would be d and not c

elder trail
#

i think

#

@river nexus knows better

river nexus
#

In the

public static void increase(int y) {
  y++;
}
```, you pass a normal integer. So when you do ```java
increase(y[0]);

It behaves like ```java
increase(1);

Since the function is passed an integer, it is not aware of the fact that it is an element in an array, it just received a copy of it.
elder trail
river nexus
#

When you pass integers to functions you pass them "by value" which means they are copied. However, for something like arrays, copying them is a headache so they're just kept in place and their address is sent to the function, so when you edit that passed array, changes are made in the original one.

river nexus
elder trail
river nexus
river nexus
#

well most of them at least

elder trail
river nexus
#

they're just there for HR to have questions to ask you when you're applying for a job

inner tiger
#

thanks so much for the explanation @river nexus ! So when we are calling increase(1) , y becomes 2 in the array? and now the array for y = {2,2,3,4,5} , however, 1 remains the original primitive value for y[0]?

river nexus
#

Not really. When you call increase(y[0]) the function receives it as increase(1) and thus it has no context of being in an array.

#

it gets a copy, increments the copy, then the copy is actually discarded when the function returns. So actually nothing is changed

elder trail
inner tiger
#

got it, that makes sense, however, the copy is fully discrded? so the result of increase(1) <-- 1 is not stored anywhere?

river nexus
#

yup

inner tiger
#

Thats a lot clearer, tysm! appreciate the detailed response

elder trail
inner tiger
river nexus
elder trail
inner tiger
#

Nice! what course are you following for it for self-learning?

elder trail
#

Im reading Data structures and algorithms in JavaScript (i like the language)

#

And taking a youtube course of implementation of DS and algs in C++

inner tiger
#

Nice!! I haven't really touched C++ at all and only have a tiny bit of knowledge on JS, my DS and algs class is gonna be in Java from what I see in the syllabus. Good Luck man!

elder trail
#

I'm kinda going hard with it as u can see

twilit pivot
#

My toaster isnt working ๐Ÿ˜“

little reef
#

Confusion

wispy elbow
#

I just know old tech lol

#

XD

serene oracle
#

hey guys, i know python, i want to get into competitive programming but with the language C++, any tips on practice for competitive coding

inner tiger
# little reef

I believe the answer is D, extending the class A (parent class) onto class B (child class) means that class B inherits from A all the methods and instance variables within it. Therefore, although class B COULD use the message method already, the fact that you declare it again within class B means that you are OVERRIDING the method to behave in a different manner than it was declared in class A. Hence when you call line 4, your output would be "B2" instead of "A2"

little reef
#

This was the explanation but it made no sense

#

Also I have been trying to use VS Code but it keeps showing this

#

It didn't before but after I downloaded Python package it occurred

timid violet
#

le python?

#

Python est dur

#

Vous avez un virus de cheval de Troie. Ton ordinateur va se briser

inner tiger
#

@little reef I didn't read the question properly

#

So basically they are asking what will happen if you remove the message method from class A

timid violet
#

oui

little reef
#

Lmao you know what's sad about this? My AP test be tomorrow ๐Ÿ˜ฆ

#

And I can't read problems either

#

Reminds me when I accidently forgot to finish an entire page of a math test

#

Three times in a row

#

So I gave my test to my teacher to make sure I finished

timid violet
#

non

#

it bad for yu

#

but can do

#

if practice

little reef
timid violet
#

advanced caus yu r tayking hard class

inner tiger
#

Pretty much, the explanation says you will get a compile error because on line 3 when you call obj1.message(3), obj1 is an object of class A even though you instaniate it as a new object of B (because of inherited shared properties).

When you call the .message method on the obj1 it will go to class A to look for the method and execute it. Since the method will not be there if you remove it you get an error, IT DOES NOT suffice to override the method in class B (what is gonna be overriden if its not there to begin with? - ex: how will a child inherit blue eyes from a parent if the parent and their whole family history has only ever had brown eyes? )

LONG STORY SHORT: The child always inherits from the parent, the parent CANNOT inherit from the child EVERRR

timid violet
#

@red kelp BONJOUR, J'AIME STRAWBERRie shorthcaike

red kelp
#

bon j o u r ??

inner tiger
little reef
#

Bet thx bro

inner tiger
#

Np man, best of luck on your exam and lmao mood man, bless the discord people for helping me out as well ๐Ÿฅฒ

timid violet
#

sorry

#

not spelling good

#

dont make fun

red kelp
#

english

timid violet
red kelp
#

because im american

inner tiger
#

yeah I think this server is USA based primarily @timid violet , thats why there may not be many other languages spoken

inner tiger
#

You're welcome ๐Ÿ™‚

fluid jewel
little reef
#

Last problem

#

Answer is D don't know how

#

Also what does static do vs just an int?

amber nexus
#

static means it can be called without an object of the class

#

you can just do class.(whatever the static thing is)

#

it also technically makes it so there is only one of that variable since there cant be many of it linked to different objects

#

but it's not immutable

#

So basically the answer is d because the variable x is different for each object (first, second, third) but the y variable is the same for each object, so any change that is made to y in each method call changes the y value everywhere. So if you understand that, to get the answer you just follow the program and do the math

severe spoke
# little reef Answer is D don't know how

Y is incremented each time a SomeClass object is created. This is because y is a static variable (belongs to every object in the class). When we call the incrementY function later, the first call increments by one. The second call has a parameter so the second incrementY function is called, which adds 10 to Y. getY returns the static y variable which is 14.

#

hopefully that helps

lean gyro
#

can someone help me with a cs problem?

#

this is the question

inner tiger
#

Hi can someone explain how the answer is C please

#

like how are we getting an ArrayIndexOutOfBoundsException, wouldnt the for loop stop before the program crashes since 5 < 5 would not be true?

amber nexus
#

Yeah you seem right, unless we are both blind, there seems to be no error there... Have you tried running it?

inner tiger
#

''' I

#

yes I figured it out thank you though

#

The print statememnt is actually NOT in the for loop

amber nexus
#

lmao

#

guess we were blind

#

didnt notice the missing bracket

pearl cedar
# little reef

You can check out the status bar at the bottom to verify that VScode is recognizing the correct language. If it's correct, I guess the squiggly could be due to a VScode linting extension you may have added

#

Anyways good luck to everyone taking APs. I failed my AP CS exam in high school, but now I'm out here teaching people how to code so it's all gonna turn out fine y'all

azure pawn
#

usually it is some weird high value which is obv > 5 in your case

inner tiger
digital wadi
#

is Hp Envy good for student??

azure pawn
#

which model ?

#

and it really depends on your needs

digital wadi
#

x13

azure pawn
#

it's decent for office work but for CS i'd recommand xps 13 from dell

amber nexus
tacit kite
#

many of my colleges get by with a 100$ thinkpad, for instance

umbral plume
#

does anyone know how james changes between mac and windows on his pc?

idle dew
#

Probably bootcamp

wheat swallow
#

Has anybody experiences with the IntelliJ IDEA for Java? Is it normal for the build to take 5 to 10 seconds even for just a simple "hello World" script? Seems ways to long

craggy blaze
#

that is a while lol

warped raft
#

Can you run linux on macOS if so whatโ€™s the best way to get it

#

Would I need to use bootcamp

slim chasm
#

I need help with adsa

#

Anyone?

rustic mesa
idle dew
amber nexus
#

w_fofaprocurando w_fofaprocurando w_fofaprocurando ๐Ÿ‘€

#

RIP

idle dew
#

Gonna fix it tho

#

Cant leave it like that

tacit kite
modest yoke
empty sphinx
#

Can someone who knows word pretty well help me?

#

i have to create a table of contents but some titles don't appear

idle dew
#

Did you update the table?

empty sphinx
#

Do i somehow have to modify the style of these titles to specify to word that they are titles? I can't find that option

idle dew
#

I often forget

empty sphinx
idle dew
#

Haha one sec

#

In the home tab, you can select styles and format the text with that

neat viper
#

Any machine learning experts here? Can someone help me understanding Test-Time Augumentation. And is it possible to apply this to the validation set or is it only for the test set?

idle dew
#

If you choose one of the headings, it will show up in your table of contents @empty sphinx

#

Once you select Heading 2, the option for 3 will show up and then 4 will show up etc...

empty sphinx
#

the thing is i have to use a specific style for this, and i think it isn't considered a heading @idle dew

idle dew
#

Ah

#

Hmmmm

#

Lemme think

#

Worst case you can add it to the TOC yourself at the end

empty sphinx
idle dew
#

It has to be clickable and then send you to the page?

empty sphinx
#

yup...

idle dew
#

One sec, lemme record it for you

#

There's another way

#

I hope that does it for you. You can select the level of indentation for each of the styles

#

It's a bit convoluted, but I think this is what you need

#

@empty sphinx

empty sphinx
idle dew
#

You are very welcome! Good luck with your assignment! ๐Ÿ’ช

empty sphinx
#

Thanks! Good luck with your work too ๐Ÿ™‚

idle dew
#

Thank you!

hushed needle
#

does anyone know how i should go about this? I don't how to get rid of the application because this message keeps popping up.

grim vale
#

For the JavaScript smart people, if I have a function with a setTimeout, if I want to repeat this function n times, but want to wait for it to finish before repeating it, should I wrap the function call in a setInterval or is there a smarter way to do it?

#

so long as the function finishes completely before repeating is really what I'm concerned about, rather than just repeating it twice every time it's called

spare ocean
grim vale
#

I did not because I haven't googled what that is, yet

spare ocean
#

so you can try to do a setInterval, if will not work, maybe a promise, be sure that u cant put setTimeout inside another timeout cause its all async functions

grim vale
#

yeah to give you some context

#

I'm writing a function that if you do
!study number, you gain the study role for that amount of sessions

#

currently the sessions are set to 5 seconds because I'm not spending too much time waiting for a function to run, so 5 seconds is a nice amount of waiting

#

then it gives you the Break role, after the study part is done

#

however, if I want to do !study 2, it just calls the function twice instantly, where I want it to wait until study session 1 is done before doing study session 2

spare ocean
#

Is it discord bot?

grim vale
#

I was going to do like
let currentSession = 0;
for (i = 0; i < currentSession; i++) {
function here
currentSession++
}

#

yeah

#

that was one way I was gonna do, but I figured that way is kinda, dumb?

spare ocean
#

It can simply add the user's ID to the "session" and check if the same user creates a session, give him an error, because the last one is not finished?

grim vale
#

oh

#

if you have the study role

#

it removes all ability to speak

spare ocean
grim vale
#

you can only react to force end a session

#

it's to incentive people not procrastinating

#

If you do the !study command, it forces you into a position where you can't be distracted

#

eventually I'll learn how databases work and make a leaderboard

spare ocean
#

maybe then some object Date, which will be removed from the array of sessions?

grim vale
#

since people enjoy seeing themselves as #1, which would incentive people further

spare ocean
#

I think it is clearly necessary to use the library for date or the built-in Date() than interval, at least because of the semantics of the code

grim vale
#

yeah so far, I've enjoyed writing my own code since I'm using discord bots as a teaching myself how to code excercise

#

but if I should just, resort to libraries to make life easier then why not

spare ocean
#

Date() built in JS, it's also good, just libraries are even easier

grim vale
#

so if I'm understanding this correctly, or if my thought process is correct

#

if I change the session to be one minute for simplicity

#

Date() has a time in it, so if I check that & it's 17:30:00
!study 1 = 1 minute of study, 30 seconds of break
if time =17:31:00, remove study & apply break
if time = 17:31:30, remove break, apply study if studySession < 1 & repeat

#

ok so it looks like

#

a server I'm in uses 30 and 31 as emotes

spare ocean
grim vale
#

yeah I had to do 17:31:00

#

because if I do : 31 :

#

it's an emote

spare ocean
grim vale
#

idk

gleaming dragon
#

What kind of clock does James have?

warped raft
#

Pomodoro clock

#

Some people just get small kitchen timers and set the time on their own

lusty parcel
#

i know i'm late to the conversation, but true

idle dew
#

Can somebody please explain java lambdas to me i can kinda-ish use them but not really, and im still confused on how they work and what you do with them.

little reef
#

Just took the AP test

#

Prolly got a 4 minimum

sleek wyvern
#

ayyye lets gooo im proud of youu

idle dew
#

Is that a good score?

little reef
#

4-5 can count towards college credit

#

But then I came back and realized I have a presentation I never started due tomorrow

idle dew
#

Daaaamn

#

Nice dude! Congrats! ๐Ÿ˜Š

idle dew
#

That has always helped me, since if you forget what you want to say, at least you know what to talk about

little reef
#

Nah i just wing it because its history

#

and its a video I have to record

idle dew
#

Hahah also nice

azure pawn
#

hey anyone familiar with windows.h header file in C ?

blissful badge
#

hello, ฤฑ have 0xc000007b error, can you help me?

azure pawn
#

reinstall cpp packages

#

or check your .NET framework version (try updating)

idle dew
#

hello

azure pawn
#

Hi

idle dew
#

how much JS do I need to start learning Angular or Reactjs ?

azure pawn
#

that's relative but imho : Once you feel comfortable with basics of : DOM manipulation and AJAX and how you deal with different librarieries in the same proj

idle dew
#

oh it must be a long road then ๐Ÿ˜…

azure pawn
#

depends on how much effort you put into it , if you're aiming for a full stack js dev you'd take a year to be market ready usually (average(

#

some people learn faster so yh it depends

idle dew
#

I do learn fast, but I dont know how to practice and on what

azure pawn
#

i'd say project based learning is your best friend

#

Clone websites if you don't have ideas for ones

#

or create your own , but the more you code , the better you get

idle dew
#

thank you bro ๐ŸŒธ

blissful badge
blissful musk
#

Anyone else here a dev or just students

idle dew
#

dev also last year student

azure pawn
#

Some good resources :
FreecodeCamp (ofc)
Coursera ( google data analysis course )
udemy (zero to mastery series of courses - any course really but i would suggest web dev 2021 )
front-end-masters
official documentation for any language you're learning
CodeWars (start with kyu8 if you're an absolut beginner)
if you're looking for a roadmap for a specific field loop up : roadmap.sh
if you're looking for valid udemy coupons (100% off) check : real.discount
TheOdinProject
if you want to get started with Cyber security : HackTheBox | Hacker101 | Hackthissite
good books : Head First Java / SCHAUMS programming in C /The Art of Computer Programming (for algorithms) / Algorithms in a nutshell

#

@sleek wyvern here is the list hope more people contribute and you'd add it to resources channel ^

sleek wyvern
blissful musk
idle dew
#

also a react dev, but mostly front-end so I may very on the tech. I currently worked on Nextjs and Flutter mobile projects

blissful musk
#

I work on a pretty standard react/graphql codebase and we can dip into the backend if we're familiar with the feature

ivory crystal
#

Y

idle dew
#

same thing exactly

#

using wordpress graphql as back end

#

next on the frontend layer

#

they assign me to the whole project so I need to study 12 hour straight lol

blissful musk
#

lol jesus, dude wordpress backend is a nightmare depending on what you're doing. My first paid job ever I had to migrate a database to wordpress and it was ridiculous. Maybe its changed since then ๐Ÿ˜†

#

Next sounds cool though and Graphql is so much easier than REST

#

more config though

idle dew
#

naah its still a hell lol

blissful musk
#

3 columns*

#

it was like [id, key, value] that was the schema for the table that all of the content on your entire site went in lol

idle dew
#

I'm learning dev and my first try on a project? a damn pern stack

i got the backend connected easy and its simple but react is blowing my brains out

idle dew
#

Anyone here Animation artist
I need to make a 3 minutes film
Can anyone help me out

#

I will pay for it accordingly

#

Dm me

pseudo ridge
#

some1 pls tell what wrong here, ping me

rancid tide
#

iirc strings are immutable

#

instead of trying to edit the input string and then append it, try using sampstr += sampStr[i].upper()/lower etc

#

Can't say I've ever really used python before, but this worked

#

@pseudo ridge

pseudo ridge
#

TysmRoar UWU UWU @rancid tide

rancid tide
#

Yw!

high heart
#

Does anyone know a good resource to learn hdl like verilog for a computer architecture course?

spare nimbus
#

would pomodoro method work with learning python? or is it just really the method i prefer to learn with?

grim vale
#

100% how you learn best

#

Pomodoro is good for building habits for studying

#

Not actually studying itself

#

What you do in that hour is how you'll retain the information, pomodoro just helps you build the habit and groove of setting aside time to study

#

For me personally, with JavaScript, I make Discord Bots, it's how I've been teaching myself JavaScript, I don't particular do the pomodoro method when making them since I tend to have spontaneous bursts of energy as opposed to consistent effort

thorn lantern
hot anvil
hot anvil
#

thnx

humble seal
#

helo mates

#

is someone a c++ god?

#

cuz I thought I was but apparently I am not

#
#include <iostream>
#include <fstream>

using namespace std;

const string alfabetmala="aฤ…bcฤ‡deฤ™fghijklล‚mnล„oรณpqrsล›tuvwxyzลบลผ";
const string alfabetduza="Aฤ„BCฤ†DEฤ˜FGHIJKLลMNลƒOร“PQRSลšTUVWYZลนลป";
    char Cezar_PL(char znak, int klucz)
    {
        int i=alfabetmala.find(znak);
        if (i>=0 && i<35)
        {
            i=(i+klucz)%35;
            return alfabetmala[i];
        }
        i=alfabetduza.find(znak);
        if (i>=0 && i<35)
        {
            i=(i+klucz)%35;
            return alfabetduza[i];
        }
    return znak;
    }
 string Cezar_PL(string s, int klucz)
{
        string szyfrogram="";
    for (int i=0; i<s.size();i++)
        szyfrogram= szyfrogram+Cezar_PL(s[i],klucz);
    return szyfrogram;
}
int main()

{
    string t_jawny, szyfrogram="";
    int i, klucz;
    int kod;
    cout<<"Tekst jawny: "; cin>>t_jawny;
    cout<<"Klucz: "; cin>>klucz;
    for(i=0;i<t_jawny.size();i++)
    {
        kod=t_jawny[i]+klucz;
        if (kod>'Z') kod=kod-26;
        szyfrogram=szyfrogram+char(kod);
    }
    cout<<"Szyfrogram: "<<szyfrogram;
    return 0;
}```
#

This code ought to crypt the messege with polish sugns

#

but it does not

azure pawn
#

what output do you get ?

grim vale
#

also yes, as Good mentioned, what is your output (and expected output)

humble seal
#

Its Cesar Code, for example I want word "Sล‚oล„" encrypted into "Vorq"

#

It moves 3 letters

#

sry i'm not a native

#

thats the output I get so not even close

grim vale
#

c plus

#

it introduces syntax highlighting

#
#include <iostream>
#include <fstream>

using namespace std;

const string alfabetmala="aฤ…bcฤ‡deฤ™fghijklล‚mnล„oรณpqrsล›tuvwxyzลบลผ";
const string alfabetduza="Aฤ„BCฤ†DEฤ˜FGHIJKLลMNลƒOร“PQRSลšTUVWYZลนลป";

my mistake, it's c++ not cp

#

if you add that beside your back ticks, it highlights stuff making it easier to read

humble seal
#

So could you help me? xd

grim vale
#

I'm cooking food atm, but I'll check it out after

azure pawn
#

@humble seal what is the expected output tho ?

#

hmm you forgot an X in your alphabet

humble seal
humble seal
azure pawn
#

and why is why
i=(i+klucz)%35; but then kod=kod-26;
seems like a mismatch in constants

azure pawn
#

And btw All Polish letters are greater than 'z' in terms of ASCII

#

so you must change the encoding

#

that causes conflicts

humble seal
#

even after changing it

#

it still cause trouble

azure pawn
#

try it with English Alphabet

#

i don't c any obvious errors on the code

humble seal
#

With English Alphabet it works fine

#

But i need it with the Polish one : P

open mural
#

my program is being killed by os its being killed because its using all the memory could anyone help me debug this memory error it is supposed to read a csv file and put that data into a linked list

#

os is killing the program

empty river
#

Can i Use CSS to make Clock like jimmy, which he uses on live stream?

azure pawn
#

hmm maybe try adding

#

std::string utf8 = u8"z\u6c34\U0001d10b";

river nexus
#

There could probably be some weird logic in the loops but tbh this indentation is a pain to read

azure pawn
open mural
#

XD im new to c/cpp

rugged relic
#

hi guys, is someone good with python? i need to modify this program a little and i don't know how.

  1. if someone enters wrong amount a massage "you entered wrong amount" must pop up and the program has to be killed
  2. if someone enters wrong payment a massage "you entered wrong payment" must pop up and the program has to be killed
    i would be really grateful if somebody would help me understand this, because i'm not that good with python yet
azure pawn
#

i'd say redesign your algorithme and as sisyphus said use free

open mural
open mural
azure pawn
rugged relic
#

amount = float(input("Type in required amount: "))
sum_payments = 0

while sum_payments < amount:
payment = float(input("Type in your payment: "))
sum_payments = sum_payments + payment
print("Current sum of payments is: ", sum_payments)

overpayment = sum_payments - amount

print("Overpayment is: ", overpayment)
print("Sum of payments is: ", sum_payments)

river nexus
#

wrapping in 3 backticks helps with code formatting

azure pawn
#

first thing you didn't declare amount ^

#

so the while loop doesn't really make sense to exit

river nexus
#

Not a python user but AFAIK you don't need to declare, you just define and use as if it was there all along XD

rugged relic
#

yeah it's a program i had to prescribe from my teacher, so i did and don't know what to do with this

azure pawn
#

sum < amount

#

sum is initialized to 0

#

amount should also be initialised

#

that's the first glance at the problem

humble seal
river nexus
#

amount is initialized to input() in the first line

azure pawn
#

ooh didn't c that my fault

#

copy pasted without the first line xD

river nexus
river nexus
rugged relic
#

i assume that it has to work if someone puts 0 as amount or payment, but i'm not sure, my teacher didn't specify it

river nexus
#

did you ever deal with exceptions in any programming language?

rugged relic
#

yes i did, but they were a lot easier

river nexus
rugged relic
#

okay, i'll try to use it, thanks

river nexus
#

keep in mind that this will only handle invalid floats. so if you want to, for example, reject negative numbers, you'll need to check it yourself

hot anvil
#

@azure pawn did you study the coursera google data analysis course??

gleaming dragon
#

Whats a good way to start coding for a begginer?

grim vale
#

check pins friendo

gleaming dragon
#

What could be a good language to start with? I started Python in college but didn't finish it.

idle dew
#

I've heard Java is a great place to start

wooden heart
#

hey i am using discord on arch linux, and when i am sharing screen , the options of sharing other applications is not coming any solutions

gleaming dragon
#

Alright I opened a bunch of tabs and 1 tab is for CodeWars, though it says start with Kyu8 for absolute beginners, to sign up it already gives me a code to begin with! It says it doesnt execute properly but I don't know how to execute it properly???

gleaming dragon
grim vale
#

well code is quite broad

wheat swallow
#

do you wanna make games, websites, analyze data etc.

gleaming dragon
#

I guess games would be good for me.

grim vale
gleaming dragon
#

I started that 1, I click to sign up. Choose Java, and bam a whole code that doesnt execute properly...

wheat swallow
#

hm c++ is the one used mostly for games, but it's not at as easy to learn as others. I would recommend python or java. and if you like it you can still switch to c++ later on for game development

grim vale
#

C# probably isn't a bad place

#

allows them to dip into unity quite freely

#

ok so @gleaming dragon

#

that very first one

#

just click submit

#

If you have a problem where code doesn't run correctly, or compile

#

compile it anyway & see what the error is

#

the error will tell you what the problem is

gleaming dragon
grim vale
#

yep

#

what does the error tell you?

gleaming dragon
#

If I were to take a wild guess

#

It says ";"

#

So delete that and it works?

grim vale
#

Delete what?

gleaming dragon
#

no add!

grim vale
#

"error: ';' expected
return a * b
^

#

So, where the arrow points is where the error lies

#

If it expects a ; to be there

#

why not try adding one & hit submit again

gleaming dragon
#

I just did, and it worked

grim vale
gleaming dragon
#

Though there was no arrow..?

#

It was just plain

grim vale
#

There is an arrow

hot anvil
#

for me C is the best for beginners first they will learn all the fundamentals such as pointers piles files

grim vale
#

yeah, but for someone who doesn't understand syntax or logic flow or anything of the sort

#

Getting them to start with C, and having to deal with manual memory alloc in alot of exercises

#

probably isn't the best course of action

hot anvil
#

but with that they will learn all theoretical and practical things

grim vale
#

yaeh

hot anvil
#

plus of they want to switch to any language i don't think they will have problem with that

grim vale
#

I think C# is probably a pretty good place to start, for someone who wants to do game dev

hot anvil
#

c# gives many possibilities it's also good for desktop windows apps dev

wheat swallow
grim vale
#

C++ definitely is a good language to learn

#

just not a good one to learn first

gleaming dragon
#

Isn't Coding CS?

wheat swallow
#

yeah and no, there is a lot of theory behind CS that you don't need to know imo

#

if you start out at least

hot anvil
#

in my opinion you will learn theorical parts sooner or later while you're coding

hot anvil
#

i have a cs degree and it's really helping me like recently i learnt python and i didn't have much problem with cause earlier like i knew what's high lvl language and what's lower lvl language or how it's compiled and stuff

grim vale
#

ok but

wheat swallow
#

nobody denies that it helps a lot. The question is if it is the best way to start out.

grim vale
#

they don't have a cs degree

hot anvil
#

yh my point is that beginners should at least get the basics of theoretical stuff bcz that's gonna make learning the language much easier

wheat swallow
#

There is a huge difference if you enrol in a CS degree or just want to start out and test the waters. If you are not sure if you like coding, starting with C or too much theory can be frustrating and boring and turn people away

hot anvil
#

yeah that's for sure

gleaming dragon
#

Says choose the languages I wish to train on, basically just I can choose multiple. is it best to pick a few or just 1?

hot anvil
#

i think the best thing is to choose one on the field that you wanna work and stick to 1 langauge to master it

pearl cedar
grim roost
#

does anyone know how it is possible to do a data transfer from a machine on a network to a private server via vpn and firewall?

#

distributed systems and cloud computing can be a solution?

hot anvil
#

@pearl cedar i'm studying data science may i ask you some question in dms?

pearl cedar
grim roost
unborn talon
#

im not sure if that was descriptive enough to be helpful, but if you use rsync/sftp/scp or something you should be able to get it across.

grim roost
boreal magnet
#

Hackerrank has language proficiency problems which i find useful

azure pawn
hot anvil
#

what's your niche ? are you into data science?

azure pawn
#

thinking about switching to big data/data analysis next year

#

college here is different , i studied 1 year of "pure CS" , now i get to choose whatever field want to continue in (SE, data analysis , Multimedia and design , Web Dev ,IOT etc )

hot anvil
#

oh okey

stuck crypt
#

Hello guys, I need help in a school work involving clustering. Does anybody here knows some methods used in clustering?

hallow mist
#

using deep learning or more statistical methods such as kmeans, etc.?

hot anvil
#

i know kmeans(the theoretical part)

stuck crypt
#

The course bioinformatics, so I was wondering how could i relate clustering with biology

hallow mist
#

your gonna need someone that specializes more in biology than ml probably, but thats coming from someone who knows nothing about biology

stuck crypt
#

ok thanks anyways

hallow mist
#

this is what a quick google search brings up if it means anything

main acorn
#

@hallow mist do u have the link for that?

hallow mist
#

not sure I can paste links but if you want I can dm it to you

main acorn
#

yes pls

tacit kite
tacit kite
azure pawn
tacit kite
azure pawn
#

i'll enroll google data cert this weekend most likely

#

i mean it is in R (meanwhile IBM's is in python) but i guess it's about the logic ๐Ÿคทโ€โ™‚๏ธ

#

how about you where you planning to start ?

wheat swallow
grim roost
tacit kite
#

Btw, MIT has a paid online course in ML with certification. Not cheap (around 2k) but content is good and most importantly you get MIT certified

azure pawn
azure pawn
hot anvil
#

Iโ€™m studying the ibm data science course is it worth it??

#

This one

cyan warren
#

anyone learning low level system design or AWS ? Dm

modest wolf
#

anyone understand this psuedocode smh. if given the array 3,2,5,4,1 whats the output be, i got the answer but the psuedocode seems vauge

hot anvil
#

I didnโ€™t understand it but if u want a algo that sort data which is table i can help you

unborn talon
#

wait what, is consider every ith value of data starting at data[1] meant to be a second for loop

mystic crater
#

i think it just puts the biggest value in the array at the end so basically only the first iteration of bubble sort

unborn talon
#
for i = n-1; i > 0; i-- {
 // consider every ith value of data from data[1]
  for j = 1; j < n; j++ {
    if data[i] < data[j] {
      swap data[i] and data[j]
     }
   }
}
hot anvil
mystic crater
#

makes more sense tbh

mystic crater
#

actually if it was bubble sort they wouldve put two loops since they already used one so ig it just puts the max at the end

hot anvil
#

as you said it would do just the first step of sorting

unborn talon
#

if you could sort in n, wouldnt you get an award

hot anvil
#

the best sort algorithm by it's complexity it's the merge sort

unborn talon
#

good point

hot anvil
#

it's as i remember O(n)=nlog(n)

tacit kite
modest wolf
#

im learning algo analysis

#

heres the step not look like the psuedocode she gave

#

maybe the slides got problem she not that organize lolll

modest wolf
#

felt so dumb learning analysis kekw

#

why at k+1 iteration it swap min of range [k+1, n] to data[k] but not data[k+1]
the pseudocode said at i would swap min of [i,n] with i

uncut void
#

hey does anyone know how to simple else and if statements in python?

vast elm
#

Anyone know how to implement the read/unread status for a private chat room?

#

Itโ€™s setup with socket io and Postgres, I just donโ€™t know what the data models should look like and when to push/receive the updates through the websocket

finite rapids
#

will python work in a laptop?

#

will it crash or like freeze my laptop?

jaunty narwhal
sand gate
#

yes definitely

#

most programs that people run anyway require a ton of code anyway so your first few projects should be much faster

modest wolf
#

i need analysis of algo tutor uwuwu

#

any free tutor dono wall

errant ferry
#

hey everyone

gleaming dragon
#

Hi

ashen gull
#

Any one builts ruby gem here ?

idle dew
#

can someone help me as to how to make a digital Magazine?

nocturne raptor
pastel onyx
#

this isnt related to coding but is the power output of usb a 3 more than usb a 2

tacit kite
pastel onyx
idle dew
#

Does anybody know or does anyone know of any sources on how to read a file and store the contents in the file into an array in C?
I'm more comfortable in Java but my assignment requires me to code it in C and I dont know how to do it T^T

hushed pecan
fluid jewel
#

My computer got this. How to fix its guys

unborn talon
#

ruh roh, what were you trying to do? it wasn't shrink the volume that was currently mounted was it?

fluid jewel
unborn talon
#

On your current boot drive?

#

Wait did you run the command twice

fluid jewel
#

Now i dont know how to reboot windows10 again

unborn talon
#

just turn it on and off again?

fluid jewel
unborn talon
#

ah... ok... so youre in windows 10 still but your keyboard isnt working?

fluid jewel
#

Wait i post wrong image

#

Its Verifying DMI Data Pool stuck and my keyboard didnt work tho

#

When i F12 its stuck but in Del its work

unborn talon
#

what motherboard do you have?

#

there might be a setting in there that you need to change about "uefi/bios" boot mode, set it to uefi

fluid jewel
#

I didnt check cpu stats so i dont remember

#

@unborn talon

unborn talon
#

this is on boot?

#

ok, start your computer. instantly mash del until you get into bios then send a photo of your bios screen

fluid jewel
#

@unborn talon