#tech-related-help
1 messages ยท Page 16 of 1
thats really cool
right now I want to try remake the gravity gloves from half life alyx
rn I'm trying to brainstorm some practical things to do tbh. Might try build a little robot arm and mess around with servos! I do know I wanna try design my own pcbs too!! everything about hardware really fascinates me. Guess I just don't know what to do with all this interest lol, but the gravity gloves and robot arm seem really awesome to me. Might be cool to get like a hand tracker match movements to a little robot arm. Seems really complex though
I barely know how to use resistors properly lmao, I'm a completeeee noob to circuits so trying to get the basics rn
Awesome..
Gl..let me know once you are done
Guys i wanna start coding and i dont know how can i start and am confused about it! Please someone provide some tips for starting .
really depends on what you want to do. web development, operating system stuff, game development, etc.
data analysis maybe
Here's something formal to get you started off if you like structure etc
my other tip would be, look at some examples of what people have coded up. If you find something interesting, put it in a list of "inspo projects". Once you sort of are comfortable enough to program, try break down those cool projects into little tasks you can do.
EG, you really like a videogame; lets say uhhh, undertale!
okay, break it down into one cool feature you'd want to try make yourself; ie, a character moving around.
now break it down even more; ie, a square on a screen moving
now break it down even MORE; ie, just having something show up on a screen.
When you achieve something, by looking stuff up, and researching on how people have done it, move forward to the nest broken down task and try learn how to do it.
This is the method I use for when I want to try self learn something
The key is to have a project/goal that ACTUALLY excites you.
So for me, it would be making some sort of interactive game. Hence the examples of coding movement to happen when someone presses a button etc.
Anyway, if you really don't know a thing, just dive straight into some online free course and COMMIT to it. Don't compare different courses. Just pick a direction and move. Once you learn more, you'll be able to redirect yourself and really ask "okay, what do I want to learn??"
anyway I reccomend you dive in with a coding language like C++. If thats too difficult and you're having a hard time, then just go the Python route
trying C++ first could really benefit you. But also, the language you learn also depends on what you want to do with your coding skills etc, so just try research on what other people you look up to have done etc.
Sorry for the ramble lol, I hope its useful at least
Thanks for the advise man.
The above things which you told and the course you provided will really help me a lot. I was really confused on how to start but now i will be able to start and make a clear decision on what i want to do afterwards. Thanks a lot for taking time and explaining these things to me. I really appreciate it and thanks again!
Awesome! I'm glad >:3
dms always open for any questions also btw!
Alr man I'll be sure to msg you if for any queries
if you can, avoid the rust people they get itchy and weird if you mention doing c++
smb explain to me why is discord burnt in the brave browser? screenshot doesn't show it and it also disappears when using any other app
people
what do you think about a 3D computer? where you can interact with the things ina 3D space. move a point wusing mouse
I am willing to buy a laptop.. Any recommendation from you guys is appreciated..
Min spec:
AMD 7 /Intel core i7 ultra/ 16GB RAM
okay
budget?
anyways ill give you midrange and super expensive aND sUper cheap recomendations
Tnx bud
Welcome, i actually had a few more
Hi, im new to thinkpads. What do you guys think about T470 with i5 6gen? Is it worth modding?
are there any good books on steady state sinusoidal circuits or textbooks with solved problems?
Books by Alexander Sadiku or Boylested are pretty basic knowledge.
Will they do?
@novel falcon
I didn't pick the book written by Boylested i will check it out
You can also check BL Threjas book.. They have 4 volumes.. You can choose as your matter of preference
Can anyone suggest some books for Linear algebra, calculus , Probability and Statistics at GATE level
Bro is targeting AI !
Are you looking for books strictly?
Yup I need books and tonnes of questions on the topic
Anyone got any idea why this happens?
show the whole file
you can upload jt to pastes.dev or smth
most likely the issue is in a line above
like an open bracket withiut a closing one
though i never learnt python so idk what itd look like really
Gemini said
This video uses a humorous edit to poke fun at the anxiety some programmers feel regarding the rise of AI.
The video is split into two sections:
The Top Section: Features a headline claiming that Nvidia CEO Jensen Huang declared "coding is dead" and that English will become the "new programming language." (Itโs worth noting that ...
53569
I can't understand from this share file
Hi Antares tos user
YO is there any good LRTA* algorithm documentation, that anyone knows of? LET ME KNOW!
scary
why not use Vscode? and of all text editors you use VIM?
like
bro
hehe
you deserve everything you get
Lol
does anyone knows how to use the stylus extension in brave browser?? like i downloaded the file, now what? the website says to open the stylus manage page but where is it??? i cant find!
if it's an extension, then it should appear somewhere in the bar on the top right
yess, i checked there but its not there. i also went to manage extension
still not there
L1 = {w : the number of 0s in w is a multiple of three}
L2 = {w : every 1 in w is followed by at least one 0}
(b) Give the state diagram of DFA for L1 โฉ L2.
How to Solve this problem without using cross product since it's too lengthy for quiz and exam.
Sry just read this, something like this would work for that
A: 0->B, 1->E
B: 0->C, 1->F
C: 0->A, 1->D
D: 0->A, 1->X
E: 0->B, 1->X
F: 0->C, 1->X
X<- Fail case, A is Accepted
Hello, is there any fellow active FlutterFlow users here? If there is please dm
Hello //so I've been using endevour Linux form last 5-6 months and from the start there were mirror issue and I couldny download or update anything I've tried fixing it countless times from chatgpt help cuz I know nothing about stuffs like that so yea chatgpt gave me commands to change to different mirror and also did some reflector thingy . I've tried to troubleshoot the issue sooo mnahyyy timesss it drives me nutsss just thinking about retrying it. I've a vague idea of why it might happen cuz when I was downloadg endevour iso the network was bad and download interrupted so I've tried redownloadig iso of arch Linux๐ cleanly without any interruption ....sooo the main concern is I m a studio noob in terms of system trouble shoot and if I run in some arch problem I'm cooked .so if anyone have some advice and suggestion please tell me ๐ญ
so what happens when you update repositories
what output
pacman -S i think
and i dont get what you said in the second part with the redownloading iso
When I do sudo syuu thingy to upgrade whole system it show url 404 error and after I change mirror and tried a lottt it still showed url 404 error (which apparently is broken mirror but I changed to every good mirror ) but it started downloading the apps but it got stuck again in several other things wait lemme do it again and show u reasults
can i dm u idk how to send ss or phto file here
sure
anyone here has experience with IEMs. on r/IEMs they say weird stuff like bright and neutral and whatever but i dont really understand how i can find my preference
like some say they want more treble because they like that kind of musoc
music
but somehow i listen to every genre of music
i was thinking of buying tanchjim bunny
for no real reason other than the price and positive reviews
I BOUGHT THEM!!
i hope they arrive soon ๐
W
i think youll love em if you havent tried those "audiophile" peripherals
and then you'll hop in to the deep rabbit hole ๐บ
hey guys, anyone here have tried Dell latitude laptops?
currently eyeing for dell latitude 5420
as an upgrade from my current T470
tho im not sure about the overall build quality and linux compatibility
especially the keyboard and trackpoint (which i really love from what thinkpad offers)
refurbished thinkpads are still expensive in here, at same price i can get higher spec from refurbished dell latitude
i probablyx will fall into the rabbit hole
i do that a lot
i spend like 2 hours reading the subreddit and figured that i didnt understand shit
so im hoping that i kinda get a better understanding of what i want from IEMs
and then when i do, i will buy new ones for around 100โฌ :)
hello is anyone familiar with robot kinematics, dynamics and control? im really struggling to find material easy enough for me to understand
and robot vision as well
mhm, a wise man one said, if you have a robot vision, then you have a vision, like a robot.
is the wise man you?
mhm, the wise man wishes not to answer, this complex and mysterious doubt.
oh, what should i do with such insightful wisdom
the wise man says, to hogwarts shall you go, if you want to learn magic, to MIT you go, if you want to learn engineering, to Harvard you go, if you have a house to donate.
the wise man responds... protect it, like your life depends on the correlation of life.
i am not worthy enough to be the bearer of such knowledge
the wise man, wishes to sleep, and will no longer bear the doubt.
please do.
wisdom increases with sleep
Can anyone help TT
i am stuck between choosing an Ipad A16 or a Boox Go 10.3 for Sixth Form, I'm choosing Math, Chem and Bio so ill 100% be writing lots of notes but im not sure if i need to run any graphic-intensive apps (which the Ipad) would be best suited for, and if not ill just choose the Boox Go 10.3
( forgot to mention) but ill js use the tablet for note taking and reading manga/books. I have a pc at home
I had the same situation but if you take harder math or chem courses you should most likely invest in an good laptop and use a program like mathcad for notetaking (sorry for my bad English)
iโve been using a latitude 5480 since before i was into thinkpads or linux or anything because i was able to get one free and i donโt really have any issues with it, cant compare it that much because i dont have experience with higher end laptops but its good and sturdy, it can heat up and get noisy but what can you expect from a laptop like this and i have not had any compatibility issues daily driving it with arch
been thinking about upgrading for uni soon but not really sure what iโd get
frameworks are pretty enticing
you have a solid laptop/desktop set up for school work first? i bought an ipad pro for my first year of uni and while it was great for taking notes, i did have to buy a legitimate computer for writing reports, spreadsheets and all that jazz after the first year
if so, then id recommend the ipad, the responsiveness and app support for the apple ecosystem for education is too good to pass up on when youre trying to have a "it just works" experience when youre at school
that being said, i own a book go 7 for reading books in bed and while i love the page turn buttons, fumbling around w android e-ink displays hasnt been my favourite
im not sure if my sixth form really needs me to do all of those super technological stuff as some people dont even use ipads or laptops ๐ and i have a laptop at home which i use with a monitor and kbm
and plus i really prefer the boox go 10.3 design and screen benefits over the ipad
Dk what sixth form breathing technique is, I just donโt think you should stake something you need reliability for on a niche product
i get ur point of needing something reliable and fast, i'll take it into consideration
Best of luck homie
hi raul, there's a beginner's guide on NX product section of the siemens support centre portal, under "getting started". get your institution to make you an account if you don't have one already, it's a useful thing to have. also i haven't used NX but in star-ccm+ there's built-in documentation if you hit f1 (or help>help in the menu), it might be similar for NX
check the curriculum but i would've thought pencil + paper would be enough for those subjects, so it seems unlikely you'd need graphics power
ahhh i see, tho i just got myself an AMD ryzen 5 4650u T14 gen 1
definetly a big upgrade from my t470
checked some latitudes unit while searching for upgrades at the shop, and yeah seems like i really enjoy how thinkpads are built and especially how the keyboard feels + im already used to using trackpoint
and currently running it with cachyOS all good ๐
I have a personal project thing at my school, and i really need to learn how to use servo motors. Can someone give me a breakdown and how to code a servo motor with an arduino?
Also im a complete beginner, so anything u know would be helpful
thats true, i guess i just need to wait until my first day at sixth form ๐
heyyy anyone knows a good ads blocker for spotify app for linux ?
search for spotx bash
hmm ok ill
you can probably do this more cleanly with pihole, plus all the other ads are blocked as well
I'll try this too thanks for suggestion 
heey, I have a quick question. Does anyone know autocad? I have a question about scales and all
What 3d printer should I buy? Id want one thats a reasonable price and good for beginners
Does any body have an affordable mini-laptop they can reccomend??
I didn't know much before but for my exam I studied a lot of it, so go on
Hey, I want to start a group of skilled devs from disadvantaged backgrounds to prepare for the upcoming global recession. lmk if you'd like to join.
I am using PowerToys in Windows 11, which is similar to Spotlight Search on Mac for faster responses. However, I am seeing a warning and cannot find my folder. Can someone please help me with this problem?
Feel free to pin me multiple times plz
Have you tried reindexing? It seems there's a history of this bug happening with the software
^ I'm sourcing from here; open your windows menu and search for "indexing options", then click to Advanced > Troubleshooting > Rebuild
You can checkout our product & give a starts on my GitHub โญโญโญ
https://github.com/atharvnaik1/GraciasAi-Appstore-Policy-Auditor-Opensource
Star and Upvote ohh I'm becoming a lot demanding :-) :-) exigent dev ๐ !! Product Hunt link:: https://www.producthunt.com/products/gracias-ai-opensource - atharvnaik1/ipaship-app-reviewer
Sir, I am using the Powertoy app
well powertoys is a microsoft product, so obviously it integrates with windows features, and search indexing is a feature that allows you to search for any files on your pc and not just apps
search indexing also speeds up the search process
hmm ya
but my problem solution?
Anyone here learning theoretical compsci? id love to try and learn by conversing about the topics.
anyone has a branding or design system portfolio? i'm studying about it and i want to discover new works
Anyone here learning about networking and wanna link up?
What is the best study timer?
hey yeah i wanna start learning networking aswell
Awesome! I know the CCNA and the Network+ are lists of things to learn. Is it cool if I add you?
yeah sure
the one that works the best for you personally.
I like to use Flip Clock though, it's really nice, so I'd suggest you try that one. It's an app
It has a nice simple layout, can be customised to be pomodoro or even just a regular timer.
Free version is pretty good, nothing annoying.
and you can also like, view graphs breaking down how much work you've done etc for each category. (each category gets its own customisable timer)
eg studying for one subject Vs another
Should be on any phone app store
WE'RE SO BACK BAYBEEEEEEEEEEEEEEEEEEE
I do
hi idk if its the right chanel, but i'm trying to design a PCB and i'm having real hardtime to do it... i'm seacking for help !
Honesty the best place would be the adafruit server on discord not here lol
Oh god i replied 4 days late
Can anybody suggest me what subject I should minor in (I am majoring in CS)
Math
Stats can be good if you want to get into data analytics
Cyber sec, AI slop everyware cyber sec demand gonna skyrocket
Hi! Does anyone know how to make a VPN site to site in ASA 5505 packet tracert? (If you know any tutorial to follow, I would appreciate it very much)
trying my luck here too
Any gods of x86-64 in here?
I'm trying to save a 128 byte buffer on the stack and access it after a recursive call. I keep getting bus errors, I think I'm misunderstanding something fundamental.
linux based btw
Any programmers here? Super road blocked on a Data Structures Proj
what's the question
Making Linked Lists but idk what to do or how to just keep the thing as null before I assign it with a link
like I made a Node class which ig is like chain links and then the Linked List class to make a list using the Nodes connected to eachother
you can make a dummy node
You got some source & question you can show?
or have a 'list' class that will keep a pointer to the first node
Not really a source question but its mapped off of Micheal Main - Data Structures and other Objects Using Java
My prof really likes working off of txtbook
hm
Idk if Im allowed to do that with making a list that points to Node
Im prolly describing this weird -_-
hmm, i mean
you gotta point at the list somehow
so you just hold a pointer to the first node?
mhm
yup
until final node which is linked to nothing
I believe im only allowed to go through it by following the links of the links
in most basic form yeah
okay, so whats the problem again
But when I generate a node there is no other node to link it to
so its just node
do I just create a method to link it to a new node?
sry I meant the link is just null
yeah
at least thats the default I have
Ah
Idk why Im making this so frustrating lol
Ill try, thx @covert phoenix !
im not sure how textbook that will be, but it should definitely work
pg 177
My guess is around 180~?
Theres like a section of just linked lists
Theres a section on 178 that talks about the null reference but im kinda confused
I dont quite understand what you are confused about. Is it the case with a list of only one entry?
which edition of the book are you on
i believe it's about connecting new nodes
the general idea is to have a method for it
@rustic mesa Kind of yeah
In the case of one entry the "link" should just not point to anything
Null, 0, -1 or point to itself
And save the pointer to this node somewhere, because when you add to the list you want to do the following
- Create a new node which points to nothing
- Enter the node you saved (first node)
- Traverse through the links node by node until you find the last one which has a null pointer
- Change the null pointer to point at the new node
For the 3rd point would I just make a loop that iterates through
Node link = Node ....
Sure, if you want to be a good CS student you should do it recursively :p
Node next = link.getLink()
@rustic mesa Hmmm, so just calling Node again in the loop?
Just think that you only have access to the very first node. There is no way you can jump in the middle of the list or whatever
yeah
Gotcha
You dont have to do it recursively, but that's the preferred way
While loop also works
I would recommend get the basics of it done first
especially in java and high languages like that
then if you can, do it recursively
but getting it working first is the important step :P
Ok, cuz im not super good at recursive I always get mad errors
Go for a while loop then
yeah
while(node.pointer != nil):
node = node.pointer
neat while loop, get it functional, then go for recursive because, why not, challenge yourself
Anyone here proficient in x86-64? (linux)
any good tutorials for creating a discord bot?
was going to play around with it over the summer
freecodecamp has one
thanks ill check that out ๐
ah, love linked lists.
Ye I hope someday I will too :(
why๐
where are they used tho?๐
I currently am only using them in university, so I don't have a practical example sadly.
okeyโน๏ธ
I learned x86 but only 32 bit instructions, they should only differ in things like word size and number of registers though
Depends how much of the instruction set you need help with though
Just wondering if there is a smart way to save local variables larger than 8 bytes on the stack.
Atm I'm just pushing it 8 bytes at the time
But it seems like it's the only way
I believe that's generally the only option for dealing with larger values yeah
I would say try writing something that does that in c and disassemble it to see how your c compiler does it
But all primitive types are 64 bits or less
@solid patio Ye working with them in Uni too but my prof makes em super confusing
they are really easy if you got the concept once
I highly recommend playing around with linked lists.
I get the concept its implementing em that sucks
Working at it for a little so no questions atm
just kind throwing shit at it to see what works
got any recomendations for improving skills in recursion?
seems super convinet but ye not great at it
What are people's thoughts on learning C vs. C++?
sounds dumb, but just do some exercises with recursion - sooner or later you'll just get used to the concept.
Got any recomendations?
Depends on what you wanna do and what your current knowledge is :)
C is used for different things
than C++
C is for microcontrollers
rn working with java for my class
uh, I only program stuff that gets thrown onto my head from university - maybe try hackerrank oder leetcode?
good stuff is there I guess
same same
this
I'd provide you with the stuff I get from university, but I guess since its in german I don't really think it'd help you
Right. And embedded stuff. But what about using it for general purpose? Using it as something faster than Python or JavaScript
well, if you want to speed up and optimise part of your Python code, that might be a solution because it is low level programming, but sounds like pain in the ass, you need to be very creative with it because C is kind of strict
Depends on what you want to do / what you wanna learn, tbh.
I started to get into programming because of game hacking, so C++ was the point where I started.
Just tryna be a better programmer tbh
I'm really interested in making CLI/TUI programs, not so much gamedev
(how did you guys get the fancy colors btw?)
been doing it for a couple of years know but only recently began programming in an academic setting
typically jsut did it for personal projects or data science in labs
yee ^^
I have to say, if you learn all of the programming fundamentals its pretty easy to quickly switch over to a different langauge -> for example I learned C++ and switched over to Java because of university and it worked out perfectly fine (so far)
I'd focus on learning programming principles and fundamentals, maybe just start a random C, C++ or Java programming course
(there's many very good free ones on there, udemy or something like that)
I'm already pretty familiar with programming fundamentals. I use JS, Go, and Python everyday for my day job
ah, alright
But I've been wanting to dive into a lower-language and have been bashing my head between C and C++
makes things easier
C++ is the hardest language around, but fun
thx!
nah, pointers, vectors, deconstructors, memory management
How's it fun?
but C kinda has the same thing, so I guess there's not much of a difference in starting to learn C or C++. (starting to learn)
I'd start with C
I've only ever read that C++ is complete garbage
funny, I only read that Java is utter garbage and everyone hates it.
Java, too hahahah
maybe, its like java but worst
C++ is omnitool or swiss army knife of programming languages
it has everything
go with C, fun language
especially memory allocation, pointers and references
and moving bits around
plus it is simpler than C++ without many unnecessary things like namespaces, templates and other bollocks
and you can program Arduino and embedded as a hobby!
very true. and it leaves a smaller footprint and quite portable
i guess you'll be fine either way, but I'd probably take @thorny rock advice
not really a subset, they are compatible to some point but sometimes code from .c won't work in .cpp
indeed. c++ is more like c with stilts (classes)
oh and with C you can easily learn and grasp all of those basic data structures like nodes, linked lists and dynamic arrays, because you need to code them from scratch with pointers
C++ has Vectors ๐ญ
omg it looks like a torture
i talked to a friend about this, and he said, for my purposes, if i need anything more than python that c++ would do the trick because, as janas said, it's a swiss army knife and, unlike C, strings are well handled, which is a PITA in C
in C you don
't have string type, you can only create array of characters and you need also to create functions that will allow you to handle them
and i don't know if C can operate on Unicode
If you want to learn C in the future then I recommend you reading "The C programming language" by Kernighan and Richie, this book is a Bible of C
Right. That's where the pain points start lol. Reading and parsing a file requires A LOT of work, when everything is a character array.
isn't fscanf unsafe?
For specific cases sure
fscanf seems like it works for a file with one or two lines. but what about a big file of strings?
snprintf(msg, 1024, "Hello, %s", "world");
printf("%s\n", msg);
free(msg);```
that's some complicated way to write hello world
just to concat char arrays
oh
and the other thing with C
and C++
learning what all of the error communicates mean
this might be mind boggling if you are used to Python / Java errors
most of error messages you get in C/C++ might not get you anywhere
they can only lead you to depression
how often do you use gdb?
I never used it o,o
most of my diy projects and uni coursework projects were simple enough to not to use the debugger
our professor never told us a thing that this exists
damn
he won't
Im using pycharm for python coding and i like the way they indexing as the same time i coding too
that a thing you should know yourself
janas, what are you using now?
your nickname gives me eerie feeling
rn java
0x memory offset then Cisco its okay dude :""
my STM32 lies in a box for about 5 months now
and I don't plan to use it anytime soon lol
to grab C skills back
Btw has anyone do android dev in python before. I need some help about Vixy and Linux VM
which IDE?
Intellij, I love it
Im using Eclipse rn and its quite a crap
no problem mate
I love intellij but goddamn is it slow to open
I prefer Node JS
not really, you just need SSD
I have SSD, I just work on huge projects at work. Often multiple
Need more RAM and a better processor atm
scala ftw btw
oof I wish I worked on any big project
Node JS isnt only for backend?
or even getting skills for junior dev
nop
oh, i will download it
You can use it for scripting
You can do anything with node JS
So did I, until I did haha
how did you land a job, and what are the skills you need for entry level job?
Yes. Anything you can do in Python/Ruby can be accomplished with Node.
I wonder if I can get enough of skill in this in 5-6 months
try build kernel with it then
GentooJS
Nice advice bro. Ill research about it
My circumstances were special with working as an IT-support before asking for a development job instead (after 2 years)
But my friends managed quite easily to land jobs with no real experience when they were in their 2nd, or 3rd year of college.
Yup. I always store JS file in Node while doing database in MongoDB and SCSS in IntellJ
But my friends managed quite easily to land jobs with no real experience when they were in their 2nd, or 3rd year of college.
can you elaborate on this?
how do they land jobs if they have no experience?
I study CS in a university known for being quite tough and theoretical. So just the school projects and a good interview was enough for them to get hired
Copy Cat from Stackoverflow and Github
Sounds like all it took was a firm handshake
They just trust that we learn quick ๐คทโโ๏ธ
Try to give them a binary tree search algorithms. Dfs or BFS
I think that would be no problem lol
imagine using graph search in everyday work
*insert tablet kid scream"
i guess grinding it out in school is better than the cringe "It's aLl aBoUt wHo yOu kNoW" route
I bet the situation is very different in other countries but here it can get you quite far
Scandinavia
I guess I harbor bitterness about getting passed over for a job because another candidate, who was absolute less qualified, firm-handshaked their way in.
~all about the journey~ lol. but i understand what you're saying
ey any suggestions on what I can start learning right now for computer science major
codings
which ones
java
Python
most of the code youll use is object based so its all similar
it also depends what you wanna do with the code
CS is a set of major bruh. Pick one of them
All the resources you need to give yourself a world class computer science education
can someone help me with python?
perhaps
it is really basic, i started learning 1 hour ago
like i want to insert an word input not a number but it isnt working
but with number it works :'c
Are you using the input function ?
Ok I think I see why
yes
offensiveeeee
sorry I did not want to answer to this sentence !
i was joking
the code i put was
p = int(input('Who do you wanna know about?' ))
In python, the string are written with quotation marks, so if you forget them, he will think it is a variable
Oh
isnt it right, tho?
the int() function convert what is inside into an integer
oh
so if you put text that does not look like numbers, he will be lost
didnt know about that, sorry
bad mistake :S
You are learning, it is normal
ill look for it, thanks a lot < 3
A = int(input("Input your number here: ")
If you want to convert into string.use print(str(A)) or % for calendar
but with int i can have a word as answer? i thought i couldnt
No you can't
"If x is not a number or if base is given, then x must be a string,
bytes, or bytearray instance representing an integer literal in the
given base."
Use lambda lol
I think you are trying to mess things up more than actually help
I have a short pdf...in Spanish. Its my hw for tic ( a subject ) and it might help(? ๐
yessss
Hi any resources to start data science (ML/Deep learning) please ?
im confused rn
Well then, gl with your guide
You can start with AI for dummies pdf
Amm....okay
And try to search in ytb how to create your own python language. What none of school sesson or anyone in here can help you
You just have to remember that the int function is used to convert something that looks like a number into an integer.
It can convert binary value into decimal (or other bases)
It can convert a string that contains only numbers and whitespace into an actual integer.
It can convert a float or other number's type into an integer.
Can i send pdf's here?
i think so
thankssss
Sure it
im hoping it wont be bad for my pc 
Its really basic and short, because it was an optative exercise
Dont worry ๐๐
thats fine
i know nothing
I learn python in w3school
How old r u now???
kaggle. there is a lot of courses for begginers there
3rd years but i learned from high school
In my case, i started with C and processing, and now im finishing with python
Ohhhh, niceee
Well i only choose python as my main language for the rest of my life so i didnt started in C or C++,C# before
guys whats the best way to learn dsa?
Whats your roadmap to learn python btw. I'd love to hear it
Are you studying computing or somthing???
Advanced Machine Learning
Sorry for disappointing you...but ive just started, and maybe it will end there ๐ . Im still in my last year of highschool...so im just trying to survive and pass
It seems to be interesting ๐ฒ
Its ok, i can understand that. You learn what you like is more important
Yep. Im starting research for Recommendation System like Netflix or Ytb tho
WHY is Youtube recommending me videos from 10 years ago ??
๐
Ytb recommendation based on what people watch most in recently to the past until you can choose type of vid you like
If you just use ytb for music habits only. They will recommended from pop song to Micheal Jackson songs
Also there are a difference between recommendation and classify, random system tho
do you remember when you started programming?
When i first saw Sophia in TV. My father told me do you want to make a robot like her to play with
I said yes and he started introduce me for an IT professor at National University
do you know how long ago that was?
5 years ago
gotcha
I wouldn't be afraid to learn other languages, in my opinion what's difficult is just learning new features, so if you know a couple languages that cover most features in current programming languages it's pretty easy to pick up a new one
e.g. if you know say c, python, and java many other languages should be easy to learn
yea i think its not about the language, but rather the paradigm
exactly
but whats the point of learning too many languages,,u wont be using any of them
True. But i chosen python to go with because its the only language resolve the Machine Learning problems
all depends what kind of job you go into, and the way the job market is today that'll likely change many times
If C# can use for ML ill learn it for Real Estate Website + Recommendation System project now
It looks great on your rรฉsumรฉ
does it? didnt know that
Actually Microsoft can create all-in-one language tho but the antitrust law avoid them to do that
it depends on where you apply, but more importantly it allows you to apply to more offers.
Can someone help me with JAVA? I need to somehow visualise data from Oracle database ๐
Should look something like this:
P.S. I already have some code, but we don't study Java in university, so I don't even know the syntax
i asked in general but i realized there is special chat for this. im planing to coding this summer. i wanna buy mac but m1 would be enough for it? or should i buy the i7 one?
No. In resume you must have only tech stack for your desired position
what sort of coding are you planning to try that requires a powerful machine?
I've worked on a 2007 thinkpad for years and it's been fine
I got it for 40 pounds of gumtree
If c# then better windows notebook
Very small projects?
cant finish :d
it all depends on the technology stack
yeah just hobby stuff. My study just has me working in LaTeX and with simile
i will start studying computer engineering in collage
so i dont really know what program we will use
does the school not give you an idea of what sort of hardware you'll need? might be worth contacting them and seeing what they suggest
idk but if i search i think i can find it
Notebook with i7 or ryzen 5 or 7 will fit exactly
Mac or win doesnt matter
because you can use a virtual machine
so then it depends only on what you prefer: mac os or windows and also price)
when I was doing my undergrad you could get a half decent discount on macs for being student, they were still pricey but it helped
is that still a thing?
i dont live in us so idk
I'm in the UK
right specially if you willing to buy a apple product :d
in russia because of tax macs is very expensive)
turkey too
ehehe, apple's aftercare and customer support used to be pretty great, but like I said in the general chat they were too pricey for me, so I went with linux
๐ฅ
and the cheapest computer setup I could get away with
i did the same thing for my gaming pc
anyway that's enough chatter for me, this report won't write itself! Nice chatting to you two
Mobile utilities for students?
Anyone knows whether I can set a python Twitter bot to execute a program compiled in CPP?
u won't need a crazy powerful laptop for coding unless u do ML for long periods of time
m1 macs are very powerful
although I am not sure if it is good for programing as of not since it uses a new architecture and u might encounter compatibility issues with certain softwares
I would recommend u getting a ryzen laptop without dedicated gpu
forget about intel laptops
I'd recommend ThinkPad
yeah u might wanna look into the lenovo ideapads too
lenovo ideapads are so fucking sexy
and they are cheap
and with ryzen cpu
u'll be cooming all over the place with it
hi, im just buying a new mouse for gaming and daily stuffs, i just cant descide and want to ask here. One of my options is Glorius Model O and the other one is Deathadder elite. Which one should i choose?
deathadder elite is really good
might be little pricey but its good
i've been rocking that mouse for 3 years now
no problems
thanks
My deathadder elite (v1) lasted around 2 years before the left click didn't work anymore.. v2 has (allegedly) a better lifetime
what do you mean by limit
limit the amount of memory each application takes to run ??
sorry idk any app like that
im sorry
There is this prescheduled shut down commands for windows if you are interested
"cmd shutdown /s /t " is what I meant
You can enter this command on run page
calculate the esteemed time according to seconds and write it to the end with a space between
i think cold turkey does that?
idk if you can set it up like you can only spend 2 hours and theres a timer, but you can limit apps. i think you need to pay for full version though
@heady sphinx is it to stop gaming?
have u checked r/stopgaming?
one solution is to make another user profile
and use paternal control to limit hours allowed
(ask a trusted person to make an admin password)
@heady sphinx
I didn't understand can you please type it out again (English is my third language)
why do people prefer LINUX for coding?
Linux is just an environment. You can use Windows, Linux, or MacOS for development.
But, if you're exclusively programming software for Linux, then it makes sense to use Linux
Either because one they are being cheap or two because Linux is less OSy as in windows is made for even a chimpanzee to understand where as Linux is a bit more of a barebones OS, so things run smoother / faster on Linux.
I recently swapped my laptop from windows to linux, as I mainly program in C/C++, and C just works out of the box on linux lol
What kind of C/C++ work do you do?
Well at my job, I've been a C# developer for awhile, and have been interested in embedded systems, and so have been learning that on my own time. I'll be going for my masters in Electrical/Computer engineering this fall. My job is going to move me into an embedded systems role. I work for a defense contractor and we make Intelligence, Subservience, and Recon software for military aircraft, so alot of the embedded work revolves around that stuff.
Surveillance*
does anyone know a pomodoro app that i dont have to build on linux?
I dont have gnome
Very cool. Are you located near or around Washington? Seems like a lot of the defense contracting work is based there
esp for the government
Nashville Actually! I work for L3Harris in particular. We have an office here in nashville.
sure, what's your distro? Otherwise I'll find the git repo
regoltih
package manager?
apt
its ubuntu but with i3
gotcha
you ok with using a terminal for a bit?
cuz they have a .deb in their relases folder
they are in the snap store ๐
i know you are not supposed to use them but fuck it
thank you thouh, it works fine
so you got pomotroid now?
Yeah
What interesting projects that you guys have implemented that piqued recruiters interest before?
building of a 16'' motorized telescope for the tracking of satellites
that sounds amazing, how long did it take you
about 3months with friends
its a HS project that got me into compsci before I had my abitur which is the german HS diploma
any competitve programmer here?
wish i was bro
Oh I need a rival so I can Improve much more ๐
Maybe you can get me into that world, I always was such a fan of it, ya know, kickstart and all the stuff
I mean
I'm a programmer and I even got a job
But I'm not a competitive programmer 4 sure bro
oh I'm a jobless programmer ๐๐ I hate doing development stuff, I more into solving things and learning about data structure and algo, but Im not that pro, I think you can start with codeforces, solving bunch of A problems with 800 score, solving 200 problems would make a huge impact on your logic in programming
I find it intersting solving those problems so I encourage you to start
So my first goal is to solve around 200 "####A" problems
yep u will start improving daily
and u can find online some problem sheet, or a roadmap to expert rank, it would be useful
just start with bunch of problems per day, like 3-4
Does anyone have any experience with building Maps in JavaScript?
I was going to use JSON arrays, but it got pretty messy due to me knowing literally nothing about JSON
and I was recommended to use maps
For reference, my arrays look like this
{
"Apple Tree": [
"apfelbaum",
"apple tree",
"manzano"
],
"Ball Cactus": [
"kugelkaktus",
"ball cactus",
"cactus bola"
],
"Pumpkin": [
"kรผrbis",
"calabaza",
"pumpkin"
],
}
I was previously going to make a for loop to check each array
so if the message cotains kรผrbis, calabaza or pumpkin then the tree has to be a Pumpkin
and it iterated through each array
can someone tell me how to find what's beeping in discord?
any server you don't have muted
Some servers are set to "All Messages" rather than mentions only. Go to the various servers, hit the down arrow and go to notification settings for each respective server, and set to Mentions only, or none at all, depending on what you want.
Thanks brother you're a pogchamp
I'm doing data structure course in python. I'm having problem with understanding recursion, searching and sorting and memoization. Can anyone suggest me any videos regarding following topics done in python which can help me?
Instead of videos, read this : https://drive.google.com/file/d/1ijk7pfUQ9DHvlLA1Wy4FLubNWKM_KRoH/view?usp=sharing
Extremely in depth and precise.
Help me guys. I need some documents about google collab to convert kivy files into apk pls
You still need help?
im not a Javascript fan, but I think its the same concept in c++
let myMap = new Map() let keyString = 'a string' let keyObj = {} let keyFunc = function() {} // setting the values myMap.set(keyString, "value associated with 'a string'") myMap.set(keyObj, 'value associated with keyObj') myMap.set(keyFunc, 'value associated with keyFunc') myMap.size // 3 // getting the values myMap.get(keyString) // "value associated with 'a string'" myMap.get(keyObj) // "value associated with keyObj" myMap.get(keyFunc) // "value associated with keyFunc" myMap.get('a string') // "value associated with 'a string'" // because keyString === 'a string' myMap.get({}) // undefined, because keyObj !== {} myMap.get(function() {}) // undefined, because keyFunc !== function () {}
Its a bit different
u can use myMap.set(key,value)
in Java you have 2 kind of maps
and 2 Lists
I recommend using LinkedList for Jessica
then the functions are the same as C
add, remove, contain, ...
yeah someone had told me about Maps, it's why i mentioned it originally
since, I hadn't heard of them before
was hoping someone could teach me
sorry edited, map is not optimal since it returns an array, forEach just loops through the list
I was told Map would be nice due to it storing it all in memory & only running the array once
since, I'm doing it for eveyr tree & language in the Forest app
which is 73~ trees and 14 languages
so basically, when you have a list, for example x=[1,2,3,4,5]
map allows you to apply a lambda function to each element of the list and returns the modified list, so
x.map((element) => element +1)
would return [2,3,4,5,6]
in your case you just want to loop through the tree list so a forEach would be recommended
yeah my originally plan
was a foreach loop
but then someone told me about maps
and now we're back to foreach 
the map function would be useful if you have a list of strings, and you want to map each string to a tree, then map would be ok since it retunrs a new list with the belonging tree
well it's 73 arrays with 14 strings per array
but if foreach works better
then I'll just use that
i mean, the screenshot i attached would do it for just one string, so if you have multiple strings, a map would be ok to map each string to the belonging tree
and this map funcion on the strings would contain something like the code i sent, to find the right tree
added the external map, i hope it's more clear now ๐
can someone recommend me a book related to "Number Theory"
Information Theory
thank you!!
Do you have any quality tutorials or best practices on how to learn git and version control systems? Because I have no idea how to learn this
These are some helpful links to play around with git in
https://explainshell.com/
https://training.github.com/downloads/github-git-cheat-sheet.pdf
https://ndpsoftware.com/git-cheatsheet.html
thank you so much, gonna try to learn it but this thing always feels like a black magic
does anyone know swift?
bro what PL do u use?
Do you recommend learning it? honestly I kinda into C++ but i know if taking all the way into learning it would be worthy
I mean, theres no chance that im gonna see c++ in my job but i read that is pretty damn awesome in competitive programming
I only like it in problem solving, like using data structures, understanding them deeply, STL, and especially algo
exactly
in next week I'll be learning JS
Its easy
I wanna jump into web development field
Has a really low learning curve, not as low as Python but u will get the hang of it pretty soon since u know the fundamentals
so I use c++ to learn algos and data structures and Javascript to implement
If u want to learn fast, go for Vue.js, if ur looking for a job, learn React.js
I'm looking for a job actually, but I'm stuck with html, css shi*
I hate everything about designing stuff xD
so basically I think C++ is the easiest PL
you can go for it, it had a huge impact on me mentally, and logically
Ill going to learn it for sure bro
In fact i was following codebeauty's 10 hr C++ course
you only need the ultimate-basics to start competitive programming, then along with solving problem you will face new things that would force you to learn
so you do not need a 10h course, you more likely to get bored
start with something simple like cin cout and loops, then start solving easy problem on codeforces
I already have it
if you solved one problem then you should be ready to go, once you face something new you can ask me or start searching for a specific thing
Fun fact: if u know formatting in Python, u basically know how to concatenate and read input in C
exactly
Ill spend my next 30 mins of study in codeforce
Good Luck Bro
I would say Java is easier
think so too
I hate java so much xD
How much have you used it
not alot rly but from what ive done so far it is not fun XD
I completely learnt the OOP concepts using java back to first year in college, used it in make a hotel-reservation system
Itโs good for learning OOP concepts. My college teaches the intro classes in Java
learnt
Procedural Programming
Functional Programming
using C++ and C
Object-oriented Programming
using Java
Scripting Programming
using python
The easiest? For a beginner?
anyone here good with LaTeX?
I wouldn't say good but half decent, why?
I'm writing my thesis and it's my first time using latex and I'm struggling with a small formating issue
Google is your best friend when it comes to latex, if you have any specific questions or screenshots you can drop in that would make it a lot easier for people here to help.
whats your thesis on
Hello I am looking for friends who are involved in Web Design. I know high level html and css and I am doing a few projects, feel free to write.
Have you a GitHub?
Hi, Im struggling in my Web Tech class due to this How to Website assignment on dreamweaver , anyone willing to help me?
As @hallow mist said , i know something too. Just upload screenshot or code snippet and we can try to help you
nope, its banned here in Syria ๐ญ
back in my first year in college I was taugh c and c++ for programming fundementals
github banned in syria? ๐ฎ
someone expert in tensor / matrix / c++ that could help me?
@hallow mist @bitter tiger Thanks for the offer! I'm trying to get the even spaces after the colons but i don't know how. I've tried different things but it's not working as I was hoping ๐ฆ
It should look something like this
the text is part of a minipage and the closest i've gotten is using \hspace
hspace, or alternatives like \ ; or \ : was gonna be what I recommended at first glance, I haven't had the need to do spacing like this so idk. Does hspace not work or is it just tedious?
it's tedious and because the words in front of the colons have different lengths i just have to guess and estimate which distance to use with \hspace
this isn't exactly your problem but it related very closly: https://stackoverflow.com/questions/63561383/vertical-alignment-of-text-in-latex
maybe try some form of this ^
thanks for your help! luckily i just managed to find an easy solution, the "tabbing"-environment allows to do this without a hassle
totally forgot to mention, it has to do with econometrics ๐
guys, does double can be used with all numbers?
what lang?
c++
do you predict using huge numbers? 10^308?
C is best
why?
Why?
yes
how is C "really good?"
C++ is low-level and flexible lol
And portable
C++ is very high level
C is one lever higher than Assembly
yes
lower level doesnt always mean better
it's all about the job
What? do you use python
Python for idiots
how is it for idiots?
yea bro, go and do some AI with c, ill be waitin
yeah
Nah bruh I only use assembly for network analysis
it's like he just discovered /g/ lol
VHDL lessgo
and all kinds of signals and hardware stuff
I had assembly last semester ๐ซ (I'm in my first year idk why we see assembly before python or c++ that was very painful exam)
Omg ,just have a patience
I have I have I liked it it was just quite difficult in the beginning
Had to spend quite a lot of time on that course
Those idiots make a Discord bot for you and everyone used. Trash opinion
yea
it depends on what things
you need to accomplish
each language has it's perks
i think c is pretty good if you're trying to optimize
but for large scale apps
i'd go with java
also im taking assembly rn
LEGv8
i think it's easier than actual programming
hey any sound engineers that could help me?
Cant do but you can find sketch documents to learn about it
Im taking harvard's cs50' any thoughts?
I think if your attempting to gain practical skill nah but if you plan on continuing with computer science then yes
If you want practical programming applications do the self taught stuff through websites like codeacademy
i cant seem to understand what im doing wrong i am tasked to "assign an IP address to subnet 1 to the R3 interface connected to the Office3network." then do the same with subnet 2 and office2network. i assigned the IP address(172.16.10.1/24) to gig0/0 but when i try to assign a IP address(172.16.10.33/24) to gig0/1 i get a syntax error "172.16.10.0 overlaps with gig0/0" anyone can assist me?
@idle dew hey do you have any github links from where I can revise my OOPS concepts in Java or C#?? I don't want typical theoretical questions... if you could help I will be greatful, Thank you in advance
@austere wolf Where are u from ? I got a decent Arabic OOP course, made me absorb the concepts
ooops I am from USA, I won't understand Arabic
@idle dew at this moment I am all jumbled up,idk what to do and what not to tbh, and i am looking for every help I can get!
so u've learnt OOP ?!
I got an Object-Oriented Software Engineering
OOSE course
It's just GREAT
yes, I just need to revise it quicl=kly
During the period Sept-Dec 2002, lectures from Tim Lethbridge's course SEG 2100, based on this book, were recorded. http://www.site.uottawa.ca/school/researc...
oh quicly
quickly*
actually
I would recommend javapoint
whoaa thank you so much!!
Java OOPs Concepts, OOPs, (Object-Oriented Programming), procedure-oriented vs object-oriented, java oops concept with examples, oops features, object, class, inheritance, polymorphism, abstraction and encapsulation.
would be the best choice
Yeah I am referring to JavaTpoint as well but I am not sure would it be enough...
otherwise watch like first 3 videos
and then start with a software engineering textbook, if u wanna go in depth
Ohkkies! Thank you!
ok one last thing @idle dew do you have any resources for design principles? It's something from undergrad and I have totally forgotten about it
I see the videos do have content about these topics as well
I really recommended the playlist I gave
yes exactly
cuz everything is connected and related
start with OOP
yep!!
and try to practice the concepts u learn
๐
good luck ๐
first u need to find a problem
then analysis this problem, or it might be a situation not a problem
analyze it
try to contribute with a software engineer and watch him how he works, much better than doing it alone
if u can find internship that teaches software engineering principles
I recommend this book
Design Patterns: Elements of Reusable Object-Oriented Software
ill be seeing CS50 week 1 lecture in room 3
how do i get internships?
Im currently learning JavaScript and will try to build something using that
just want some good projects in my resume
JS is great imo
maybe a really good crud?
I have no idea, we have nothing like that here in syria, but my friend who lives in london told me about it
will check that
check the MERN stack
what are u into? web, mobile? it depends
currently trying to complete this web dev course and work on some projects. I just want some projects on my resume.
I have the whole summer to work on personal projects
will do. Thanks
try to contribute with #100_days_of_code
they have some decent peojects ideas
The Official Website for the Challenge
alright. Thanks
wlc
question: in a reuglar company, do u get the designs from the ui/ux designer and then u implement it as a frontend developer?
So yeah, that would be part of their job normally, but everything is explained in detail in that chart.
thank youu!!
No problem.
Q: im interested on signing up for computer science elective in my school and i want to prepare myself. Where do i start?
ping me
Depends how prepared you want to be and how much time you have
I want to be real prepared, ive got plenty of time too.
3 months?
Yep
Best place to start then is the free course from Harvard through edX. CS50. It's entirely free, and you submit assignments and they are graded automatically.
is CS50 good if im looking 4 an internship?
How experienced are you with comp sci or more specifically programming? CS50 is an introductory course. It provides a superb foundation to build on.
0 to null exp
i mean i know how to code but iw unfamiliar with the "core"
So, CS50 would probably be the best place to begin learning the necessarily problem solving and thinking schools that help you to understand what's underneath and make you a better programmer.
You watch the lectures, do the problem sets and labs, and the project and you will be well on your way. It will take time, and it will be difficult but if you can get through it then great.
thanxs a lot bro
No problem.
I work as a frontend engineer and saw this q so I figured I'd chime in - Basically the workflow goes like - At the beginning of a sprint (basically your team is given a set of tasks and a deadline of like 2 weeks to a month). A lot of frontend engineering tasks have literally nothing to do with the UI, for example refreshing validation tokens when a user logs in from a new country. On the other hand, there's a lot of UI - related tasks (i.e make a signup form). In this case, in the description of your tasks you're usually provided a link to the designs drawn up by the UI team (we use software called figma). There we can interact with how stuff works (i.e on hover, on click, etc.) and we can leave notes with questions, or a lot of the time we can ask them in slack. Like (hey I noticed the corners on this button weren't rounded like the others, was that on purpose?)
Once I'm done developing the feature it has to first pass a high enough % of tests, and then it has to be approved by my manager, a peer, the designer, and the UX lead. Other than when my final work is being reviewed, I have 0 interaction with the UX team. They work more with marketing and business/product development and even the data team to figure out optimal user flows and whatnot. IDEK they're usually stiffs I try to avoid them.
Anyways go be an engineer its mucho dinero and much fun
^ I do door to door sales now which is a completely different field because I make more and its more fun to me. However I'm miles ahead of everyone else because of my engineering experience. Developing critical thinking skills extends to everything, and having an understanding of technology is literally beneficial everywhere. Even if you don't become an engineer the skill-set you develop is invaluable. Also @elder trail if you want internships/jobs in tech without college bootcamps are incredible and even offer money back guarantees. They also have partnerships with a ton of companies so you can literally get a job before you even graduate. IMO it's far more beneficial, cost-effective, and time-efficient than taking college classes unless your actually gonna go through a whole comp sci bachelor's.
Any tips for improving Solid Works skills?
SOLID?
In object-oriented computer programming, SOLID is a mnemonic acronym for five design principles intended to make software designs more understandable, flexible, and maintainable. The principles are a subset of many principles promoted by American software engineer and instructor Robert C. Martin, first introduced in his 2000 paper Design Princip...
Nope but I got it thx again
how and what do you use to test things like html and css i never really got that
i mean what's there to test it either renders correctly or it doesn't
bro ur reply has to be within a frame ๐, thank you so much it helped alot, I wanna ask, I do competitve programming and im in 4th year of cs college, how much would it take for me to land my first job as a junior frontend developer
does anyone have experience with immersive labs?
i'm looking to start my pen-testing career. i'm studying robotics but doing immersive labs to try and get there.
hello, is here anyone that knows machine learning in python? i just need an opinion
@versed condor I know a little, whats the question
I need to make an environment for some reinforcement learning algorithm, and I am not sure if it is better to use tensorflow or gym
what are you trying to achieve with your algo
I want to make an agent that plays chess
Im still starting out with deep learning and most of my work has been in pytorch so I can't help you, sorry
tensorflow vs gym for the agent I dont think would make too much difference but im assuming youre making it all from scratch?
no worries, thank you for answering ๐
yes
@versed condor I think Open AI-Gym would be better for your purpose as the framework since its more designed towards RL and training agents. Tensorflow could be used to optimize your agent and help it solve OpenAI Games. You would use OpenAI GYM as the environment and can use keras, theano or tensorflow to solve the computational algorithm and provide to the GYM env the algo.
I hope that makes sense...its like the crack of morning so I may..be making more sense in my head lol
There should be a gym-chess env already https://pypi.org/project/gym-chess/ you can take a look and build your skeleton around that..if that helps. Idk your DS experience so..im trying to not obfuscate my words
also if youre writing in python..I would look into cython to speed up your code.
ok, it makes sense
thank you very much, I m fairly new to machine learning and I was a little confused by the libraries lol ๐
Its okay..sometimes I dont even know why there is so much for the same thing.
Well I hope it helped a little and if not..just lmk..ill try again..im pretty sure..my agent brain needs some reinforcement learning itself ๐
thank youu, hope it will all go smoothly
may i ask, is there any decent resources u know for starting Machine Learning ? I'm completely beginner with AI stuff
I cant paste here since it would be adv but ill DM you
I would appreciate it
Any programmers? Im taking java this semester and I'm having trouble fully understanding why Constuctors are useful. I'm very bad at grasping info through reading, so a summary and an example (of the full potential) is best for me to understand
edit:
what I understand so far: Its like making a variable with sub-variables for convenient access.
hello. Im fairly good at java, so if you want you can DM me with any question you have, maybe I can be of help
Hi! Does somebody know which notebooks are good for school at the moment?
Hello! Does somebody know Haskell? I really need help rn
Hi all! Does anybody here is into hacking? I'm starting my journey with CTF and would like to know if there are websites similar to ctf learn (like with the same convention of solving challenges without virtual machines)
HTB is really helpful
A way to understand it is imagine a class as a mold
An instance/object of that class is what you get when you pour something into that mold.
Each instance has it's own variables and methods where the initial values are taken from the mold but can be changed later on using getters and setters for example
Now what a constructor does is it pours into the mold so you can have specific initial values for your instances.
A default constructor does the same but you can't specify those initial values
Here is a concrete example:
public class Person {
//instance variables
private int age;
private string name;
//constructors
Person() {} //default constructor does not NEED to be explicitly coded in
Person(int ageInput) { //constructor that takes age only
age = ageInput;
}
Person(string nameInput) { //constructor that takes name only
name = nameInput;
}
Person(int ageInput, string nameInput) { //constructor that takes both age and name
age = ageInput;
name = nameInput;
}
}
Here we have multiple constructor each has a specific case use depending on whether we would like to have default or initial values for age and name
Hope this clarifies the whole thing
Ahhhh, okay, makes much more sense now, thanks :))
You're welcome ๐
A constructor is mainly useful when variables are private such as age and name, otherwise there is no way to set those variables
Whereas if age or name were public, they could be set without the use of a constructor
does anyone know how to use debugger in vs code?
Truee ^^ I personally use them even when the variables are public but you should rarely have them be public anw
It depends on what language you are working with
Ye, It can depend on the language a bit. I've seen in some languages like c++ it's not uncommon to have public variables all over the place
e.g. when using a struct
im working with php, and a mamp server
when i run it, its not showing anything, variables and other stuff
CSS and html are heavily integrated with javascript so they are tested as complete components. Tests are split into 3 types, unit, integration, and end-to-end (e2e). Unit tests test a specific function or component. For example an addTwoNumbers(x, y) function you might test that addTwoNumbers(2, 4) returns 6, and that addTwoNumbers(0, 'x') returns "please input 2 numbers".
Integration tests are for testing if your function/component fits in the systems its used in. For example you may have a collection of button, textbox, and tooltip components, and you test if they work in the context of the forms they are used in. So you might check that the parameters being passed between the components are right, or that the state of the global variables are correct at a given point, for example how many notifications a user has.
E2E testing is kind of where you test the 'html and css' or in reality, the actual user experience. These are usually long and slow, and actually render your browser on the screen, take control of your cursor and keyboard and literally go through the motions of making actions on your site. You might have one suite for all of the user login and registration and it just whips up a browser and spends 10 minutes making users and clicking random buttons and whatnot and you can actually watch it on the screen.
While most companies use all 3, usually unit tests are written the most, integration tests next, and e2e for only super important flows. In react (the most popular frontend framework) its usually more common to write integration tests most, unit tests second most, and e2e tests least. This is because react is all based on components, and because they are commonly packaged together to make the ui elements your users are interacting with, its better to test them as a collection anyways
can someone help me in regex python plz?
its been 3 hours i dont even know what im doing
It really depends on so many factors. Where you went to school, where are you looking to move, etc. Competitive programming is a great start but if you really want to stand out I suggest you get involved with an open source project or event. A lot of the big ones have programs for CS students where you can apply to get a mentor and work on a big feature for the next release. An example of one is the Django Summer of Code. Doing something like that or even just contributing to a project like django would do wonders for your resume
If you like comp programming though and end up getting pretty good, a ton of companies will basically hire you purely off of that
@blissful musk really nice write up ๐๐ป
damn this channel is a blessing
Ohhhh that makes so much sense. Im still in uni and we havent learned E2E but ive used the other two and was always wondering how i could test html and css components that way
If you still didn't figure it out in 2 hours ill be available to help by then
Helloo every body! Freecodecamp vs Codeacademy? ๐ค
Depends on what you want to learn. ;)
Explore but alredy develop some good skills
Nice be glad they teach you testing at all! I learned almost nothing about testing in school except maybe like a chapter in the intro course
thank you!
Does anyone have resources for studying data structures and algorithms
Learn and master the most common data structures in this full course from Google engineer William Fiset. This course teaches data structures to beginners using high quality animations to represent the data structures visually.
You will learn how to code various data structures together with simple to follow step-by-step instructions. Every data...
what exactly are you trying to use it for
I have an assignment where i have to create a dictionary for each set of data from the log in records of a website
I tried to search for a solution for this specific assignment on stack overflow but they were all wrong
well give me an example of your regex and what you're trying to search for using it and we'll work through it
okay thanks one sec
import re
regex = re.compile(
r'(?P<host>(?:\d+.){3}\d+)\s+'
r'(?:\S+)\s+'
r'(?P<user_name>\S+)\s+'
r'"(?P<request>POST.+?)"'
)
def logs():
with open("assets/logdata.txt", "r")as file:
logdata = file.read()
data = []
for item in regex.finditer(logdata):
data.append(item.groupdict())
return(data)
raise NotImplementedError()
the code is printing everything correctly but I still get an error message when I run it in the jupyter file to submit the assignment
whats the error?
AssertionError Traceback (most recent call last)
<ipython-input-2-8eb2407cb5e6> in <module>
----> 1 assert len(logs()) == 979
2
3 one_item={'host': '146.204.224.152',
4 'user_name': 'feest6811',
5 'time': '21/Jun/2019:15:45:24 -0700',
AssertionError:
assert len(logs()) == 979
one_item={'host': '146.204.224.152',
'user_name': 'feest6811',
'time': '21/Jun/2019:15:45:24 -0700',
'request': 'POST /incentivize HTTP/1.1'}
assert one_item in logs(), "Sorry, this item should be in the log results, check your formating"
this is the code written by the instructors to check the code
did you try checking the len of what logs() returns?

