#tech-related-help
1 messages · Page 18 of 1
ahh, going to do some guessing here but standard cmos features
um did you check your computer supports UEFI booting?
No. Its legacy but i want to convert UEFI firmware for Virtual Setup
virtual setup?
Yeah. I want to learn Android Programming but my pc didnt support VT so i have to setup in bios
what pc is it?
Dell
what specific model
Legacy
no like is it a dell latitude 2210 or a dell optiplex 790 or something
I only know that come from 1984-2008 award software. Hardly to remember which is dell latitude or optiplex
hey
But there anything i can do to fix my pc bro
Dig around bios for a setting that lets you boot uefi instead of legacy. There’s a chance your bios doesn’t support uefi though…
Its still legacy. Im tried to convert but failed like first pic and now my pc cant start windows
Yeah it didn’t fail to convert. It succeeded
Well but i cant find anything similiar with uefi setting. So hopeless
My keyboard stil not working tho
yeah i dont know sorry
Its ok, thanks for your jelp tho
Do you have another computer?
Maybe you can connect your hard drive to the other computer copy your data
And install a fresh windows
@fluid jewel
No. I only have 2 laptop but all of them are Mac
You can read NTFS formatted disk in Macos
you might need a sata to usb or something of the sort
How do i do that bro
Neither of them i have tho
Ok ill read it. Tks for your help
Your welcome
I hope you can fix it.
Or do you have an empty disk?
Then you can also do a fresh install on that one
Copy the data over
And move back to your primary disk
Oh. If you have a usb you could boot windows 10 installer potentially and convert it back to legacy maybe?
Hi can anyone explain how this is D, I tried tracing the code and got 256
It's a recursion problem
4* 3 * 2 *1 *1 its the factorial function of n
And the function has the logic for factorial calculation
Yea exactly
got it! thanks!, yeah I should've taken a closer look and realized it was a factorial function formula
anyone else use anki with cs?
a good way to visualize these is writing down the statements and what there output should be in like a chart if you cant solve it in your head
like:
rose(4) = rose(3) * 4
rose(3) = rose(2) * 3
rose (2) = rose(1) * 2
rose(1) = 1 * 1
then going back up and filling in the numbers:
rose(2) = 1 * 2 = 2
rose(3) = 2 * 3 = 6
rose(4) = 6 * 4 = 24
24 final answer
Hey Folks, anyone in robotics professionally please reach out to me
does anyone know what kind of visa should i get in order to search for a job in the us ?
Anyone know react.js ? I'm building a pomodoro app and I need help with it
green card
ask here
Can anyone help me...............
I am not able to connect nodeJS to MySQL database (workbench) if anyone know how to connect please help me.
what os
Windows
i might be wrong, but isn't mysql workbench just a client, and not the mysql server. so maybe the mysql server isn't running?
created a local host
And it’s running? How are you trying to connect from nodejs to the server and what’s the exact error
can you join voice channel
i will show you the code if possible correct and help me
@unborn talon
Anybody please @everyone
Hello. I have a question regarding creating an environment in gym, Python. Is it absolutely necessary for the action_space and observation_space to be the minimum size?
I'm trying to check for a state value within a setInterval , but the if check isn't doing anything.
whats your code?
How do I send it. Just paste it here?
yep
const handleStartStop = () => {
if (intervalId) {
clearInterval(intervalId);
setIntervalId(null);
} else {
const sessionInterval = setInterval(() => {
if (sessionLen > 0) {
setSessionLen((prevSesLen) => prevSesLen - 1);
} else {
console.log(sessionNo);
console.log(sessionType);
if (sessionNo < 4) {
if (sessionType === "Focus") {
setSessionType("Short-Break");
setSessionLen(() => shortBreakTime * 60);
} else if (sessionType === "Short-Break") {
setSessionType("Focus");
setSessionLen(() => focusTime * 60);
}
} else if (sessionNo === 4) {
setSessionType("Long-Break");
setSessionLen(() => longBreakTime * 60);
} else {
clearInterval(sessionInterval);
}
}
}, 100);
setIntervalId(sessionInterval);
}
};
@spare ocean
oh, i think you might have a problem where setinterval doesn't get an up to date copy of state
if I'm not mistaken, clearInterval takes the interval ID, try assigning the interval to a variable or problem not here?
yeah the problem is still here. im reading the article. The problem is with state within the setInterval. clearInterval is working fine.
if thats not important ill check it in editor soon
thank you.
ive got it working in a code sandbox, my logic around changing between sessions is wildly wrong though
can i see it?
ill dm you a link, its pretty thrown together 😂
ok
oh i can't because of your friend settings
check now
sent
are you done guys?
not yet tho. but we've decided we'll work on it and build the app. are you free enough to hop on ?
Hey guys i was thinking about buying myself a tablet in order to getting more organized in my studys. Annyone can recommand me anny devices? I was thinking about getting a Samsung galaxy tab s6 Lite with 64GB . It costs 269Euros which sounds affordable for me . I know IPads are very reccomended by a lot of students but i need to keep it Budget friendly 😛
thoughts?
can i get all setState hooks pls
so your expected output: 1, 'focus'?
@spare ocean yeah when sessionLen become zero I want it to enter the if check
But it doesn't
Building a pc is easy but making it fucking work is hard for some reason
As I understood in the interval, you will not remember the state in any way, this should be done in the useEffect hook, and the function itself clears \ starts the interval via handleStartStop
Oh I see so that's why it wasn't holding the state.
What’s wrong?
who knows about packet tracer?
anyone wanna do a group of programers where everyone can work together and create a program?
sounds like a hackathon
yeah but more virtual
like create a pomodoro timer?
and not like a one time thing something like you do as a programming group
lol
its what 乇urus is doing
seems cool I'm in
Accept my friend request going to add you to a group
Monitor doesn’t display anything when the pc is turned on.
Im a beginner at programming, im interested as this could be somewhat of a learning experience for me. Its fine if you dont want to have me in if you’re looking for experienced
friend me @idle dew
Would love to
Don't fall into that fox hole
If you wanna get organised a diary is sufficient, buying tech does not help you get organised IMO
🦊
Yes sure , it depends the most on myself . the only thing is , so far i always worked with paper and pen . But since i entered medical school , i cant work with the same efficiency as in High school so i thought about changing my way of taking notes and to compress all the stuff i write down on one tablet .
Oh my bad I thought you were a middle school-er
Well with my experience, I would suggest you buy an iPad for the following reasons
Reliability
Good cross platform along with a mac
No crashes
Good apps such as goodnotes
apple pencil support
Are you from India?
And more easy to use back up system
don't want your work to get deleted due to a technical issue
@idle dew I beieve you on this one 🙂 IPads are very simple to use and work really great , the only problem is the price and i never used apple products before so compatibility would be a problem. I ordered the samsung galxy tab s6 lite now and i hope it will do fine
and Also an iPad lasts longer than your average android phone
I only have an Air 4 and it's fine
You can also get student discounts too
No i always save my work on a cloud this wont happen. I live in germany btw
if you buy from apple official store
The thing is my android tab glitches and crashes so frequently it was so frustrating @idle dew
Have you seen the basic iPad model?
Also apple care is such a peace of mind
I broke my screen and they fixed it without drama
hi guys, any suggestions on which platform i can learn java and be fluent with it?
Friend's request accept
sounds cool
Yes
You can prepare from this site called journal dev. His content has in depth and clear explanation of concepts
Hey please add me in too 🙋🏻♀️
thank a bunch!
Has anyone used freeCodeCamps Machine Learning with Python Certification? If so, thoughts? Was it worth the time investment?
sounds fun, im taking IT at uni may i join?
you should create an alarm app just James saying YOOOOOO
I think someone on this server is collecting his YOOOOO voices
Hello, can someone teach me how to find the equivelant resistance?
Is anyone here a CS major and want to study together or is there a CS group chat in this discord?
Beginning on studying computer science, maybe we can share our studies in the future if needed.
lesgo can i join to the programmers?
10ohms I think. Just Keep shorting resistances like r1 are in parallel
Can u teach me ?
I legit dont understand im getting tilted xD
Sure
Its 10 ohm ur right.
tutor room 3
has anyone here worked on Yara?
Im having an issue at the moment with an easy code, it says it can't find a symbol in my code but it told me to write the EXACT thing it wrote..
So when you are coding, are you expected to know some strings or something like that???
Because I been looking at the same code for a few minutes now and I honestly have no clue what I am suppose to do!
can you share your code?
what is the error?
Me ....
I don't know what I am doing
Test it to see what it was but this is what I get
I'm trying to understand this but no matter how hard I look or where I look I just don't understand it. For example
class Kata {
public static String multiTable(int num) {
return ""; // good luck
}
}
I start with that, it doesnt tell me if I have to add to it, if there is something I have to use from that, then I have some "sample tests" below it and its even more complicated and is so frustating that I am trying my best to keep my cool.
you will be adding code to that function to get the results located on the left
how you do it to get the results is up to you
the sample is just an example of what you can do with the function
So for me to do something with the results I need to add something cool, what exactly do I need to add not quite sure, do I need some special code in order to get the results? Is the answer literally on my face and I am to blind to see it?
you have to figure that out since its a coding challenge if i am correct
so you have to think things through creating variables, doing some math to get the results
doing math is not hard for me, but no one has explained, teached or at least display how to create a variable... I am new to coding, and it feels like I needed some sort special training just so I can get start on a code that for anybody else seems like it was very easy
Right
there are a lot of great sites/videos to start learning how to do all those things.
for the basic syntax
{variable type} {name of the variable} = {value};
for example you want to create an integer
int number = 1;
for types of variables https://www.w3schools.com/java/java_variables.asp
or other websites
but i would look at videos first before diving into coding challenges
Videos on youtube or codewars?
I have never used codewars, i usualy look on youtube
Alright
yeah since you are still new. you need to at least get the core fundamentals down. I have never used codewars and it looks like you are using the knowledge you already have to solve challenges and what not
How was this resolved (it's asked to find Norton equivalent)
does anyone want to form some coding challenge group? (leetcode, hackerrank etc)
anyone studying electrical and electronics?
we can make a seperate channel or ask the admin to make a separate section for us
still need help?
no bro, already understood and did all the exercises
Thanks anyway
someone tried adding a channel before they dont want to but try your luck
yo guys if i have a function in python that return a boolean and a set, is it possible to use only the set output?
returns*
is the boolean in the set?
no, for a bit of context it returns a boolean and then a set
'return False and Population_set'
btw i changed the 'and' with a ','
you can say a, b = func()
and b will be the set
and a will be the boolean
if you return as a tuple
np
i wannaa
Yes please
sure
any preferences on which platform? (leetcode/hackerrank/code kata)
i use leetcode and hackerearth .. codeforces sometimes
ive just started working through Top Interview Questions on leetcode
which is mostly me looking at the question and going lolwut
you become better by starting that way 🙂
lets have a 100 days of code challenge.. maybe 5 leetcode questions per day.. 2 easy 2 medium 1 hard or 3 easy 2 medium
the monthly challenges?
the leetcode monthly challenge? thats fine too
oh, i misread you sorry; i thought you were saying leet code had an 100 days of code challenge 😂
yeah lets do this!
how do we go about it?? make a new group??
i was hoping we could get a "coding" channel created but ive just read someone wanted an electrical one and couldnt get it
can i join in

anyone knows the best way to populate databases? I was thinking about using a python script
sql?
what format is the data in?
If you’re dealing with tabular data, read it in from a csv in python and execute sql
Oh if you’re generating random data then yeah. Python random vars into sql
Unless you’re using an ORM then just use that lol
btw you can just do
INSERT INTO table
(col1, col2, col3)
VALUES
(X, Y, Z),
(A, B, C),
(D, E, F);
im stufying this tomorrow if i get it ill help you
I mean its not super random, because I need to match users ID to their name and not insert duplicate date
im making it a script that writes to a txt doc i guess
Make sure u learn thevinin before and after u just got to use the converstion.
my idea was to do something like a class User
class User:
def __init__(self, id, username, mail, passwd, location, firstName, lastName, country, birthDay, address, phoneNum, type)
...
but i need to populate that class before writing it to the txt file
@onyx rose Ok but it's very difficult, don't sweat it, you might not get it as well, I'm going to skip the excercise for now
Not sure if this is helpful, but if you're writing a class anyways, maybe using SQLAlchemy's declarative base will be helpful (I think this is what xanderle meant by an ORM). https://docs.sqlalchemy.org/en/13/orm/extensions/declarative/basic_use.html. Basically something like this:
Base = declarative_base()
class User(Base):
__tablename__ = 'user'
id = Column(Integer, primary_key=True)
.... # define all columns
# insert using session:
engine = create_engine('<mysqlenginstring>')
Session = sessionmaker(engine)
session = Session()
session.add(User(id, username, ...)) # insert a new row
session.commit()
@mystic moat Im kinda intrested in what youre studying there, can you send me the URL, please ?
hey does anyone have some "multi pages" HTML/CSS "proj ?
tottally forget about it and i have 3h before deadline lol , i'd really apperciate some help
I have interest in coding so going to learn python anyone have tips for me?
It's good to have some idea of what you're actually gonna use it for
A lot of people do these "learn to code" type things but don't end up really remembering or understanding it because they don't get to apply it to anything
Start small, watch videos covering the basics. Go to websites which have practice problems. Practice, practice and practice. Eventually, you'll start to do projects and it'll expand your knowledge as you go along.
I've also tried getting to learn Python, but sometimes it can be so hard to setup my IDE. Virtual environments are so confusing, and every time I try installing a new package or library I run into problems. Recently, I was trying to mess around with APIs, so I tried installing the requests library through my terminal, but I kept running into issues, so I just gave up on it.
i wanna learn game development in unity but i cant find any good resources, any tips
I can recommend as a starting point for game dev the book "the Art of Game Design" by Jesse Schell.
And for learning Unity there are tons of good YouTube videos, a few years ago i liked the videos from "Brackeys".
@normal jacinth ty ill check em out
I am going to make a small game and do list app for the start btw ty for the respond
Thank you for advice
how are we gonna keep track?
we're just making a mini group chat and posting there
any programmers with data structs and algos experience in here ? i got a tough assignment and i wanted advice
probably be easier to just ask
i need to make a simulator that captures the spread of covid through a given population size. We are given 3 different files of 2 million Persons. Each person visits other ppl periodically every 1-7 days.
the population starts with a given number of ppl that have covid 1-10
my question is, what data structure should i use ?
i was thinking hash table or btree
but splay also seems logical
any insight ?
ping me if anyone thinks of something
Does anyone draw with Siemens NX 12 often and can help me with a problem?
to me it seems like a graph problem but ¯_(ツ)_/¯
youre right bro we gotta find the shortest path for each person that interacts with each other. im just wondering what structure i should pair it with cause i need to store the 2 million Persons
but for sure graphs thanks 💯
whats your worry about the 2 million? processing time?
ahh, so when you say a hash table you're thinking you can instantly look up a person and see if they're infected or not?
yes my bad i forgot to explain, we have to beat my professors runtime 💀
so i need a structure with a crazy good time complexity
hows the data presented?
is it a 2d array or are you given a graph + how do you determine if someone is infected or not
we're given a file with
First line format: <population>,<number of starting people>, <first starter ID>, <second starter ID> …
All succeeding lines have the format:
<Person ID#>, <# people visited>,<first person visited ID#>,<frequency of visits to first person>,<second person
visited ID#>,<frequency of visits to second person> …
so its essentially an array to begin with
we are given the ids of the ppl infected
but theres also a catch
you cant give someone else the virus for the first 3 days you have it
what language are you doing it in?
and is frequency of visits an int or an array?
like how do you tell if someone visits someone else in an iteration
we're given <frequency of visits to x person> and frequency is randomly set to 1-7
b-tree and a queue for the sound of it then
so every 1-7 days it will iterate
oh YOO my partner and i were considering btrees
thanks man that sounds solid
and a queue to set frequencies back in order i see
genius dude ty
ah, like the queue stores infected ids, so you can just pop them off and add them to a different queue for the next iteration
ohhh i see so the btree would just hold all the Person objects right
and chances are the same leaf node accessed holds the person being met
improving the number of cache hits right ?
which would overall make the program much more efficient
i was thinking a b-tree because of the access time? you could also do an avl tree
imo do it with whatever tree, benchmark it, swap the tree for a splay tree. benchmark it
you should just be sneaky and multi thread it
bro youre so knowledgeable and helpful honestly thanks so much, just curious, howd you learn?
wat. the b-tree and splay tree were your ideas. my only addition was using a queue to track infected
Glad to help
lol its nice to bounce my ideas off someone though, and brainstorm so i appreciate it 💯
anyone's familiar with theoretical informatics ?
Is there anyone who could help me with assembly language?
I'm using atmega328p
ive done a bit of assembly, nothing crazy beyond blinking lights and a countdown timer, what are you trying to do?>
Guys do u know any website for tracking the news about the field of computer science
Hacker news is the best in my opinion. It's not only CS news, but they do tend to be most popular since the community is mainly people in tech. Also the comments are pure gold for me. Very well crafted arguments are presented by the readers. Highly recommend - https://news.ycombinator.com/
Hi does anyone know much about webscraping? I need to get the results from this energy comparison site: https://www.moneysupermarket.com/store/gas-and-electricity/enquiry/ but I don't know how to autofill the details (address/usage etc)
Bro im still trying to understand the methods i wont be able to help you still.
I have some questions i have to answer my self in order to help ya
Hi , I'm new to coding in general, one of our first assignments was to build a payroll program. However, I can't seem to figure out what I'm doing wrong, and for example, if I input (50,20,n) I get 1100.00 instead of 902.00. Any help would be appreciated!
STANDARD_WORK_WEEK = 40
TAX_RATE = 18
OVERTIME_FACTOR = 1.5
all_data = True
hours_worked = float(input("How many hours worked?"))
hourly_wage = float(input("Hourly wage?"))
tax_status = input("Exempt from taxes?")
if hours_worked <= 40:
normal_pay = hours_worked * hourly_wage
ot_pay = 0
elif hours_worked > 40:
normal_pay = 40 * hourly_wage
ot_pay = (hours_worked - 40) * hourly_wage * OVERTIME_FACTOR
else: all_data = True
gross_earnings = normal_pay + ot_pay
if (tax_status == 'y' or 'Y'):
TAX_RATE = 0
else:
TAX_RATE = 18
net_earnings = gross_earnings - (TAX_RATE / 100) * gross_earnings
print("Net wage is " + "$ " + "{0:.2f}".format(float(net_earnings)))```
which language is this?
think its python
ah had a hunch that it was
Um i'd definitely do some print statements towards the end, print your gross earning and your net earning @normal ether
oh i figured it out, you dont have a proper boolean condition in your if statement for your tax_status
the reason why the if statement is seen as true here is because your boolean condition is "or 'Y' "
In Python, characters can be converted to their ascii values, and in the concepts of falsy and truesy values for python, 0 is seen as false and any number that is not 0 is seen as true
therefore 'Y' is seen as an ascii value that is something NOT 0, and makes your if statement true
something like this should help @normal ether
thank you so much dude i really appreciate it
yea np 😊
feel free to let us know the installation errors you're running into, maybe we can help.
How I can make 2 computers exchange data/connect if they arent using wifi but they can be really close range?
like a network storage?
or are the computers offline & not connecting to a network at all
also to jump on this point, @normal ether I would highly recommend having print statement in every single conditional expression, it helps track what is working & what isn't during testing, you can see how far your program runs before facing problems, or just to check if the conditional is working
even something as simple as print("Gets to checkpoint 1", print("Gets to checkpoint 2") etc
nothing fancy, just any sort of indication the conditional works
Hi I'm new to python, our teacher is asking us to make a for loop, that would print the sum of an array of numbers and also output a string with an equation with the numbers in the range. So for example, the input/output should look like this Starting number?:10 Ending number?:20 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 = 165
All I really have so far is ```py
starting_number = int(input("Starting number?"))
ending_number = int(input("Ending number?"))
for x in range(starting_number, ending_number):
print(x+x)
Also, we aren't allowed to use functions like sum or .join or any string manipulation, only basic iteration
Hi! So you could have a variable called sum, and as you print the numbers out, you keep track of the sum being added up. At the end, you'll print all your numbers out with a '+' operator and then you can print a statement for the final value of the variable sum. Hope that helps!
Thank you so much man I really appreciate it that really helps
npp!
Is someone here who work with matlab?
In order to exchange data, you need a medium. If they are close by, the medium or the method you would use is Bluetooth or NFC depending on what you wanted to communicate given that the 2 computers have bluetooth modules. If they're far away, chances are you will have to use some form of a network whether its wifi or ethernet.
Hi, I have a question for coding a class-based Tetris game in Python (using the turtle, time, and random libraries). Is there a way to pass a list of lists that I initialize in a class for a tetrimino tile to a method within my playing board class? I want to add multiple list of lists (for each tetrimino tile) to a list within the add_tetrimino method, so that I can randomly make a choice of what tetrimino I will add to a grid that I drew on a turtle window.
relevant code
dijkstras algorithm is op
use an infrared led on one pc, use an infrared receiver on the other pc. write a program that streams the data across in raw bits. just make sure their clocks are in sync
omg thats another way xD
oh wait you could just encode it as sound and use audio, thatd be way easier
idk what your transfer speed is tho
hey guys, is there anyone familiar with network planning? I've got to do an assignment in which I have to plan the network for a fictitious enterprise from bottom to top (related topics are domain controllers, dns, dhcp, vlan, AGDLP-principle, vmware etc.).
Does anyone know a good website to study computer architecture?
which kind of computer architecture?
computer architecture for cs
ahh for us we are learning mips
based on verilog
ahh im not not sure but i prefer youtube video learning
I need to get a better understanding about gates, flip-flops, shift register, counters, adders, subtracters, multiplexer & de-multiplexer, encoders, decoder, priority encoder, K-map, boolean algebra, and De-morgan’s law.
oof sorry but i do not know any website rip
ok dont worry
Hello chat, so basicly i wanna tryout the dumb phones soo anyone has a recommendetion? (And i wanna buy something whatsapp with in)
@onyx rose Solved it
I work with matlab
If you sell I don't think your going to get a lot of money but it is completely up to you
computer arch is Sadge
had to drop it last sem
hopefully will do better next time
@remote geyser It isn't too bad as long as you study the material and actually have a strong understanding to it. If you need help reach out
problem was I was doing my capstone course
so most of my time was on that
I didnt manage my time well
really that is interesting that they put comp arch that late in your course listing
yeah it's actually at the end lol
most schools I have seen it taken early like 2nd year
like spring of senior year
Yea I took comp arch my 2nd year spring
yea that is crazy
and your computer engineering?
yeah
it might be slightly different? The guy is intense
idk
the type that makes u feel really dumb for not knowing the material lol
yeah my plan is to relearn computer organization and verilog
I have forgotten most of the topics there
@idle dew bruh my 970 is still holding up after 5 years. What are you doing to your GPU lol
Yea there are good sights to check out that can help with verilog and comp organization
And good luck man some professors are just mean and shouldn't be teaching anymore
@void halo thanks! Yeah I'd be happy to check those resources out
Me and my classmates our conducting a research for our app. Can u guys pls. answer this survey?https://forms.gle/HBVhM2Jb5zuenuzH8
is there a way to not to have hate bias towards algos and data structures?
ngl I don't like solving algo problems by myself and I just like solving things with a good amount of google search and stack overflow and copying code, I still can't grasp nor like leetcode challenges and things like that
is there a way to not to have hate bias towards algos and data structures?
eat a sweet every time you solve one causing a spike in dopamine. your brain will associate DSA with reward. 👀
what if u cant solve any😎
just eat sweets? ¯_(ツ)_/¯
join a discord and ask for help tbh
Neso academy helped me a lot
Anyone a Golang dev?
Late response but what did you do to a 2080 that it's "run down"? Did you do a marathon on a carpet with socks on and then touch the circuit board?
try and guess which os am i running
I know something, not that expert though
Just curious what people build as like personal projects with it an such if you have any experience in that
one of my friends built some kind of command line tool to help him with file management, or a tool to print poggers ascii art
lmao
gl :)
tyty!
looks like kali
nope
bruh, spoiler: we can't get which os you're running based on which wm you're using 😂
The only clue is top left icon, but I don't know it
thats the challenge bro
mmmh, i think you're running GNU/Linux
try uname -o, screenshot and send us the pic
POG
but i am running arch
lol, you've been fooled 😂
nice setup anyway (even if I'm more of a tiling wm guy), which wm are you using?
what does wm mean btw?
windows manager
Yeah, they're a little bit different
I run i3, it's a tiling wm so i can increase my productivity
As far as i know, James use this on his laptop too
hey how did you get that ubuntu thing in terminal
I prefer dynamic window managers such as awesomeWM, tried i3 one time, configuration is really ugly
please tell me
the command
how do you use it
allright
does anyone know if there is some free RISA-3d course online?
well done 👍
You see? There's wm and de, they're two different things 😊
ooh ok
You can learn a lot on archwiki about that. Anyway congrats for installing arch dude
aarigato
I tried awesome just gave up and left it. It just seemed like loads to learn but I’m probably wrong. Bspsm “just worked” for me. But I like that awesome can swap between tiling and floating very seamlessly
Maybe it is just the matter of taste, I don't like the way you have to configure bspwm, with awesome it's just a lua script and I already familiar with this language
Ahh, yeah I don’t know lua… I should probably learn it for nvim as well
does anyone know any open summer tech programs or internships that college students can still apply to in usa
most summer tech internship in the US are closed now.
i believe some have a mid may deadline i found some but was still hoping i can apply to more :(((
thank you tho!
np
if I see any I let you know but typically that is what I have seen in my process of getting internship and full time opportunities
Yeah i honestly have been so caught up with school that i barley got the time to apply to programs but thankss again!
uname -r is more efficient to guess what os he was running
sorry for the delay hahaha
also when you are using a tiling window manager like wm you aren't using any DE
because of this
the whole point of that was checking os (uname -o) and not kernel version (uname -r) lol
Wait, that diagram is cool but I'm not sure that it'sright. You still need and X Server with i3, right?
I found this link, and it seems pretty straightforward https://www.reddit.com/r/archlinux/comments/77qkbm/does_i3_require_xorg/
you dont get a full desktop env, you just get something light ontop of x
Yeah I got it, but in some cases you can guess the distro by the kernel 'cause some distros use custom kernels, and the os of every single distro always have been GNU/Linux
I3 is a wm right ? So it is necessary to use a display server, I guess i3 always use X but there could another wm that use other display servers for example Wayland
That's right, is what you get when you install BSD by default
just to clarify, a desktop env is everything from system menus to task bars to a file explorer. (gnome/kde)
a window manager, manages windows. it puts the windows decorations on and lets you move them around (awesomewm/openbox)
a tiling manager, manages windows as tiles... go figure (i3/bspwm)
That's right
NOT STUDY RELATED hey guys i have a problem with my pc so i have a dual boot linux and windows the problem is that when i try to shut down my pc through windows it doesn't work
do you mean that when shutting down in windows, the option to switch to linux on boot doesn't work?
if so maybe try going into bios and choosing your linux from there
nah like when i try to shut it down when i'm on windows it doesn't shut down
like i have to entre linux to shut it down
ive never heard of that before
yh it's weird
did it work before dual boot
i searched about it and i tried the solutions that they suggested but nothing worked
yh
the only thing I can find on google is that maybe your booted into the wrong boot manager for windows
try this?
it seems to be a pretty common problem actually, thats very odd
i tried that solution didn't work
oh okey
and to make it sleep what's the command?
okey thnx a lot appreciate it
How can I change purpose of chip set of wireless mouse?
Does anyone have project ideas to practice design patterns? Or can someone share with me their final project if they took a similar college course? Thanks in advance.
Install ubuntu and you will love how you can control everything from just terminal
Hi guys so my pc got a virus or smth I guess and all of my documents turned into .pcqq files. Is there anything I can do except restarting?
Python vs c++
Which is better?
if you can become op at cpp you can become op in any other language
from my experience and what ive heard, cpp optimizes computer time while python optimizes programmer time lolll
if you want to learn basic programming and get an idea go with python
if u wanna dive right in to the heart of programming, cpp
in my opinion cpp is better
Tysm
yeeee no problem
@gleaming trail I've a Joke
Why Python developers wear glasses?
Lol
classic
You are Indian?
yep born and raised in America tho
I put this joke from tvf cubicles web series
california baybeeee
Ok
tvf cubicles ?
I'm born in india bit don't know hindi,
I'm in Japan rn
It's a web series
So no one experienced it?
if you have no file back ups
ur fked
thats rough man but full reset seems like the likely play
Im using a HC-SR04 sensor in a Atmega328p xplained mini so I need to use timers, so I guess i just load 1 and 0 to the registers, right?
hello, can anyone recommend a problem that is possible to be given a solution by an application?
Nope
I checked
Files cannot decrypt since the password is in a remote server
I cleaned all the files with several antivirus softwares such as Trojan
Now I am restarting it
Thank you for helping tho
I will from now on
Yo I've been confused on one part of this pretty easy assignment for python, the goal is to create a program that calculates the sum of a range of numbers, and then output a string with an equation with the numbers in the range. And u can't use the sum function or .join or any string manipulation. So like this Starting number?:10 Ending number?:20 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 = 165
Whenever anyone has time some help would be appreciated 🙏
Here is one way to do this:
You can initialize a variable as the starting number ( i = 10). You need to initialize one variable to keep track of the total ( total = 0) and one variable to keep track of the string you're going to print at the end (message = '').
Then implement the rest using a while loop. Within the while loop, have one line of code which adds to the total, and one line of code which adds to the string, and finally, one line of code which adds to i
Guys who is intrested in data science, i need help in numpy
sure what is the problem?
np.argmax(an_array) u can find the max number index but if there is two max number identical . How can i find the index of this two number ???
I don't use java a lot
But seems to me that this syntax ('0' || '1' ||...) will not work, java does not recognize that you are trying to compare a character with each of these characters.
You may be able to do compare equality like this:
if (input.charAt(i)=='0') || (input.charAt(i)=='1') || ....
Alternatively, I suggest checking whether your input character is within a character array.
https://stackoverflow.com/questions/14484558/how-to-find-if-an-element-exists-within-a-character-array-in-java
wow thanks will do apreciate it
I think this is the same problem u have? https://stackoverflow.com/questions/17568612/how-to-make-numpy-argmax-return-all-occurrences-of-the-maximum
Tested this myself, seemed to work
import numpy as np
a = np.array([45, 2345, 752 , 234, 45, 2345])
two_max_idx = np.argwhere(a == np.amax(a)) # returns an array with 1 and 5
Thank you so much
We have to use stack overflow so much bro
how do u mine bitcoin fast
anything to do to learn robotics/mechatronics? like does anyone know any courses or projects one might find online? Also could someone recommend a software i need to master for the same subject?
that is the python code
def RangeSum(start, end):
start = int(start) #converting input text to int
end = int(end)
range1 = end - start
if range1 <0: #if range is negative then starting number is bigger than ending number
print("ending number should be bigger than the starting number")
elif range1 == 0:
string1 = str(start)+" = "+str(start)
print(string1)
else:
sum1 = 0
counter1 = 0
string1 = ""
next_number = int(start)
while (counter1 <= range1):
if string1 == "":
string1 = str(next_number)
else:
string1 = string1 + " + " + str(next_number)
sum1 = sum1+ next_number
next_number += 1
counter1 += 1
string1 = string1 + str(" = ") + str(sum1)
print(string1)
RangeSum(10, 10)
RangeSum(10, 11)
RangeSum(10, 20)
RangeSum(10, 9)
@normal ether ^
In regards to Robotics the first software I think you need to understand or master is something called ROS (Robotics Operating System). If you are truly interested in a career in robotics you need to have a clear understanding of how to use ROS and the applications available with it
The link is to a good course that I believe would be useful for you
Hey, can anyone code here? Need a quick hand with a project
you can also do
if(Character.isDigit(input.charAt(i)))
Learning C makes me sleeping
oh thanks a lot man. that was really helpful. Tbh a lot of peeps are suggesting the same. Ill start my practice with it asap
hello
Hi
I'm searching for a mail anti phishing app or extension
Does someone know something about that?
I'm struggling with my project (anti phishing app/web extention)
Hey y'all. I am tryin yo find m in Matlab any suggestions??
Thx
ARM v9 guys?
Anyone here knows Typescript ?
Yes ?
the more the better
the bigger the m the more accurate you go
although it would be hard to get infinity on a computer lol
you just make for loop and iterate over this until you are satisfied with the answer, simple numerical method of summing previous chunks to the next one
@unborn ferry
n=1;
m = 1000;
PI=0;
for n=0:m
PI=PI+4*(((-1)^n)/(2*n+1));
end
something like this
you can always plot it to grasp it so you add a vector of zeros and you add the current value of pi to the next element
and ofc don't forget matlab arrays start from 1
so there might be a little error in my code, I have uninstalled this app
so I can't check
Yea man if you ever need help with it let me know. I am currently a graduate student studying Computer Engineering w/a Concentration in Robotics (AI). So I can give you some pointers if you ever need any
learn also about some control theory, like basic PID control and how kinematics and dynamics of 3-6 dof robots work
and when making your projects don't forget to include all forces and torques working on your robot, this thing almost costed me my undergrad degree
Hey guys, I'm just starting to learn JavaScript on this website and i have no idea why my code on the right would be incorrect. Any help would be appreciated.
You’ve missed a capitalisation when you’re using checkProp inside the square brackets to access the property. It should be checkProp rather than checkprop
ahhh, thank you
No problemo
Hey man, you know any python? I'm coding a website and I'm using flask and Ive ran into an issue
yes?
hello everyone, does anyone know how to make this problem?
A company pays its employees a commission based on the value of the sales made
in the week, the commission is paid as follows: if you sold 400 or less pay
3% commission, more than 400 and less than 1000 pays 5%, and 1000 or more pays 10%.
A vector is given with the sales of the 10 salesmen of the company carry out a program
Using loops that present a table with two columns, the first column will contain the
value of sales and the second the value of the commission.
sales=[200 500 100 800 300 1000 2200 350 50 1300]
any help would be very appreciated :))
It has to look something like this
is it worth learning ?
sure tell me about the issue ?
Any post-grad who majored in or doing robotics/mechatronics/AI/ML personnel? Would like to hear some experience in the industry. (tag my name, so I will be notified.)
Is that a coding problem? What language? Seems trivial, but you gotta specify the language
yes it is a coding prolem, it is matlab, sorry my bad!!
i dont need it anymore tho 🤣 but thanks anyway
np, feel free to ask anything
every control theory and other theoretical bullshit is so rarely used you'll forget it, except the PLC's, softstarters, inverters, Eplan, spider, and PID
and I am talking about automation / control engineer job, it closely resembles electrical engineering job and basically when you will land a job you learn everything from the beginning
plus most of the time you'll begin with low-paid job because you need to learn how to make all of those control cabinets
IF you'll land a job of course
about AI / ML... I didn't try to get a job in this field but you need to know how to operate on big data and it is really close to data scientist from what I have heard so you need to know how data analyst works, so basically you might start with spreadsheets and excel lol
other field you can try is making embedded systems if you're fluent with C
Not sure excel will get you far. R is a good start in data analysis, even though many have shifted to python, for instance
If you are deeply interested in mechatronics then i suggest go on and do some courses on those. One i would suggest is autonomous mobile robots by eth zurich on edX. Other than that you'll find a lot of theoretical knowledge on some coursera courses.
Try learning some softwares like ROS which helps a lot in these fields. Have a combined knowledge of coding, electronics and mechanical stuff. It helps a lot in such courses. Have a deep knowledge in linear algebra. If you are solely interested in the coding part then start learning machine learning and interact on bigdata. Rest assured you'll do good on what the professors are teaching and how much efforts you out in them.
Even ill be doing my post grad in the same field soon, so i have fresh knowledge on the same. Feel free to contact me if you need any help. cheers mate 🙂
If you want a job in it. Yes
yep!
Alright, Thanks
I work on angular.
Pretty good
So I'm trying to build an application where a customer uploads a file with their email details, and that file is sent as an attachment to our domain email
@remote elbow what I'm doing is opening the file with app.open_resource() but I get a namerror saying that "app" is not defined
double check the scope of the "app"
day 2 of hacking with swift, posting my mandatory course assigned update to everyone. Have a good one ✌️
Hey how I can send a message from 1 pc to another by only using LAN cable without wifi/internet?
Sockets
I have chat program for lan with python with internet, but right now talking without internet connection
Yeah you can tag me no problem, but I am not talking about local network or any internet connection
just no internet at all
and plug the LAN cable on both computers
oh lol
you dont have a dhcp server
you need to assign them both static ip addresses
@timid nymph
I am doing that right now in adapter settings ethernet
can you ping them?
When I type ipconfig in cmd it shows me that custom IP
But then it asks me for Network credentials
Ok I think I made progress
My files are shared
Now I think I will need to create a program that decode the ASCII system so I can send messages through that cable
Right?
From 01 to Hello World
I will have to do that with c# maybe
Where can I find docs for that?
Can you send a link please?
Anyone here good with notion? I have a question 😊
anyone has experience with data struct ?
I'm struggling with stacks concerning infix post and such
Would an i5-3570, 8gb ram be good for programming, please @ me if you have an answer.
@grizzled thunder yes it is very decent
ok thx
Get 16gb if you can
What do you need
Do anyone have PPT upon DDIDS ?
DDIDS: Dynamic Distributed Intrusion Detection System!
does anyone have a good way to make large decision tables, I need a table 2^11
This will take forever by hand and is going to hid mistakes
I tried to look up a generator but they all seem alittle cluncky
hello! i have a question regarding python language. so i have been going through my exercises for my final and i was wondering is counter the number of times the loop will be doing?
for example I had one of them this way:
and the other :
the counter time changes so it refers to how many times I want the loop to go?
In this case, not exactly
Here it seems like you are establishing a constraint on the counter which allows the loop to terminate eventually
Which is "counter<10"
How many times the loop runs depends on the initial value of the counter variable
ohhh yes so the variable put in this case is to stop the loop at a certain point?
thank you so much!!
I want to run C++ code in Ubuntu which has SFML graphics library
how do i get to run or add the paths? i am lost
any help?
Welcome, it's best if you think of loops as code which repeats until a condition is met, that really helps simplify thinking
This article specifies some flags you need to compile code with SFML
https://www.google.com/amp/s/www.geeksforgeeks.org/sfml-graphics-library-quick-tutorial/amp/
Might be helpful
Not really a school question, but I tried dual booting linux via usb and it didn’t work: tried multiple usb sticks, two pc’s, and I did it by downloading the iso and putting it into both rufus and yumi (one by one not both at the same time)
Btw also tried fat, fat32 and ntfs
Does anyone have tips or things I can try?
imo, It's better to install the OS directly onto the hardware instead of using a live usb
Can you define the problem you ran into
Just saying it didn't work doesn't help us
Maybe some screenshots
If you have
Yeah I could try, do you have a yt tutorial or smth?
Well I have booted ubuntu before and it worked just fine, now I downloaded BunsenLabs and yumi/rufus doesn't even show up
it shows in the list with devices in the boot section but then it tries to boot up from it, fails, and boots up windows
What's your main OS and disk space?
Safe booting mode*
I havent done it on purpose but I could look into that, thanks!
I think that's required if you wanna boot from a live usb to install the OS
Ive got 196 Gb free and I'm running windows 10
I'd like to help people here but every time I check this channel the questions are already answered 😆
Does anyone jknow some book to learn python in deeeep?
I am just learning computer science!
What kind of computer should I get?
I prefer desktops btw!
yes 3 networks but if you want to be more precise it is best to include the outer part of the routers since it is technically part of that network
heyo guys im currently in the eleventh grade and i wanna get into coding and stuff which language do you recommend for a beginner
i did some basic java in 10th grade
python is good
also c++
depends on what u want to do
if you want to start with web developing, learn html and css
okay thanks m8
I got a question about adding/removing an item from a Bounded Buffer using a monitor
in the line: bb->start = (bb->start + 1) % bb->size; i dont understand why you need the "% bb->size"
does anyone knows how to use the software QGIS?
What I'm doing a fresh install (I use arch btw), I partition my disk as follows : 512MB FAT32 for EFI partition, 2GB for swap partition, 30GB EXT4 for Root Parition and finally 69GB EXT4 (nice) for home partiton. Here's a video which pretty much sums up a basic install though I would recommend, as a beggininer, you skip the BSPWM installation part and install a fully fledged desktop environment like KDE Plasma for example. https://www.youtube.com/watch?v=yiouCwLtzHo
In this video I am going to do the Arch Linux install with the 03.2021 ISO and the BSPWM Window Manager and LightDM!
*** Become a Patreon to support the channel: https://bit.ly/39tSfgS ***
*** Follow Me on Twitter: https://bit.ly/3gKkPeR ***
*** Donate to the channel by visiting my Website ***
My Hardware:
AMD Ryzen 9
32 GB RAM
Sapphire RX 570...
Swap will depends on stuff. Don’t just copy someone else’s swap
Also you can install bspwm and kde 👀
I had this issue when I tried dual booting a live usb drive contain a flavour of Tails Linux. You need to disable legacy mode and enable uefi mode in the boot windows settings. You can find the boot settings by clicking F12 or whatever shortcut key it displays on the screen. Then disable legacy mode and safe boot option, enable uefi mode. Things should work fine then.
help
i dont know much about html but is there anyway that i can use a varible for the url link so that i dont need to create each .html for each url
is this what you are looking for
help!!
idk whats wrong
its about spiral traverse
oh
it was indent problem
it correct now
anyone familiar with using SQL connected to C++ to get a database?
Anyone knows how to get leetcode premium for cheap?
Hi, guys I'm looking for someone who can prepare for SAT/TOEFL IBT with me. If anyone is interested you can message me directly here or at instagram: edushab_ and then I can introduce myself and tell about myself so you can make a decision
error with installing pypotrace on windows, anyone know how to fix? asking for someone else
dont use windows, use wsl2
Anyone familiar with djl and mxnet? Or deep learning in java in general?
Have you tried turning it on and off again?
Hey guys. Is macos terminal language same as normal linux distrubution's terminal language ? (kali,ubuntu)
Any software engineer here?
or better dual-boot
Yeah, it's all UNIX.
depends, macos now default runs zsh, most linux distros will use bash
ZSH and Bash are just UNIX shells, they are both still UNIX and use the same sort of 'syntax'
but yeah the choice is up to them
Hey, I just tried this solution because it seemed the easiest way, but I can’t find the options I have to disable/enable. I’m running the 2005 version (02.59) of the american magatrends bios
Okay problem fixed; I had to change the boot priority within the list of hard drives AND in the list of all drives
Thanks everyone who helped!
any other windows to linux beginners having trouble. Ive downloaded Manjaro xcfe twice and each time i get past the dl i run into some weird inexplicable problem. I want to get a mac like dock and when i used the sudo command
- I cant see my password. i know it hides it on purpose but it indicated that i was typing it before (at least i think)
- It must not be typing at all because i use the same password for login and admin and it keeps saying wrong password but i know its right
Where exactly are you stick?
Maybe your password is just wrong. Typing without feedback is hard when you're not used to it.
Do you get any error messages?
no it just said wrong password i checked to make sure caps wasnt on or anything
Maybe you set it incorrectly. Or you are using the wrong user name.
Is it a graphical UI or just text?
Im a super beginner to anything linux honestly im not sure what that means
Ah, ok. Maybe I can help.
can i dm you?
gyus any body give me 2d array programme in c program
Ty @latent folio @unborn talon
yeap
If anyone is into reverse engineering here just wanted to share a popular title that I'm learning from: Practical Malware Analysis - The hands on guide to dissecting malicious software
Someone in another discord suggested this to me when I didn't know where to start
So I'm passing it along I guiess
Anyone have recommendations on a foundational data structures & algorithm course or learning material? A little background: I've done CS50 and the Princeton Algorithms 1 course by sedgewick. I'm looking for something less complicated (less mathy) but will give me the strong fundamentals as I progress towards Leet Code, CITC, etc. I'm currently able to implement some basic data structures from scratch and explain use cases (Hash Tables, Heaps, Linked Lists, etc). Thank you in advance!
There are two courses - one course by Stanford which is paid and one by Princeton
both on coursera
there's also an algorithmic toolbox course
thank you for your reply, I'll look into those courses. To clarify, is it another Princeton course aside from the one I mentioned?
Nope, same
Any Mac specialist here who can help me find out who manufactured the display of my MacBook air 2019? I had an LG display, but it got replaced so I would like to find out if I have a Samsung display now
Are you looking for OOP sorta data structures? Like data-access objects, business objects, factories etc?
I have a good book, I learnt from (if I can find it)
I'm looking for a resource that will give me a foundation going into technical interviews, software engineering, competitive programming. Excuse my lack of familiarity with the concepts you described but I don't believe I'm looking for that but if you have an opinion on it I would be interested. Some more background: I currently am working with JavaScript, Java, Rust, Bash (in order of proficency). I have interviews for roles surrounding Full Stack Developer and Backend Developer.
A lot of people are a fan of https://www.amazon.co.uk/Cracking-Coding-Interview-6th-Programming/dp/0984782850 for coding interviews, it's a lot of computer science-y algorithms. Also, I use https://www.hackerrank.com/ every now and then but that's mostly technical questions to improve your experience of using the algorithms. Best of luck!
Buy Cracking the Coding Interview, 6th Edition: 189 Programming Questions and Solutions (Cracking the Interview & Career) 6th by McDowell, Gayle Laakmann (ISBN: 1235264539136) from Amazon's Book Store. Everyday low prices and free delivery on eligible orders.
I know some people use that book for prep for big 4 interviews
I'm currently working my way through that book and love it! I've just read online that the book may not be enough, especially for those without a CS background. Thank you so much for your help! I could just be overthinking and should just keep hitting the books hehe
https://www.amazon.co.uk/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882/ is also a good book, I use it all the time and has improved my code massively but probably not hugely useful in an interview
Buy Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin) (Robert C. Martin Series) 1 by Martin, Robert (ISBN: 9780132350884) from Amazon's Book Store. Everyday low prices and free delivery on eligible orders.
I've got that book and it's just collecting dust on my shelf, need to get back on it 😞
I strongly suggest just brute forcing your way into leetcode as quickly as possible. It sucks at first but you will progress like 100x as quickly. Just look at people's solutions in the comments and try to understand how they work. It is super hard to learn algorithms and data structures on your own without practicing. It will take literally years longer
If you are still at the phase where you like to learn from learning resources rather than solving problems, it will be near impossible to land a job. It takes time to get the mindset shift unless you get an internship or just force yourself to start
hehe I'm the same with the Rust book. Except it collects dust on the web 😅
Thanks for your suggestion! I think I will do both and work my way in leetcode and CITC. I definitely don't want to be stuck in course/tutorial hell at this stage in my journey so thank you for that.
I was stuck in it for a long time before I got super lucky with an internship. Remember, you don't learn things in order to do them, you learn things by doing them. This is especially true in programming because it's all patterns. The more patterns you've used, the better engineer you are.
To put it in perspective, people use leetcode to learn to code. So as long as you know if/else and functions you should be good to go
Never a truer word, it is very practical
hey guys
i have this mini cs project
cryptography and stuff
i'm supposed to give someone a code and time how long it takes for them to crack it
im a loner, so i hopped on here to ask
please don't cheat, if you want to be truly of help (i.e - please time yourself and give me the actual time and please don't use online decoders, it's a waste of time).
anyways
here's the code
BMLUV OBPFK
Good luck, y'all
Is there a theme or anything? What is the context?
mine's already pretty easy b/c i'm a beginner so im afraid i can't tell you about anything cuz it'll be a major spoiler.
guys any general tips for optimizing cpp programs ?? i need to shave off a few seconds from my runtime
Thank you for this
any cybersecurity learners here?
I have a guess, where do I confirm it
just here please
So then I would be revealing it to everyone
if it is correct @glacial leaf
idm tho
should i go ahead?
yeah sure
oui, doing a lot of CTF's and attempting to do bug bounties
not found any $10,000 vulnerabilities yet 😞
Probably more useful for independent study-ers, but https://www.doradolist.com/universities.html really useful site to find books. Shows you all the books universities use for certain technical subjects.
Here you can see a list of some of the top universities in Electrical Engineering and Computer Science in the world. Under each university you will find a list of technical books that have been or are being used in that university.
What is the difference between “100” and 100? Explain.
in programming?
first one is string and second one is an integer, with the first one you can't calculate for example and with the second one you can. don't know if that was your question tho
hey what is a way that I can effectively delete all content of a string from a struct ?
which algo should i use ?
Dijkstra
oof if only I knew anything about cryptography xd
can anyone help me with a math that needs thevenin resistance>
thanks man
I can try
Likewise you can send me the question or just put it into this chat
Hi for an assignment I have to make a program that calculates the sum of a range of numbers, and outputs a string with an equation with the numbers in the range. We can't use any string manipulation and if the first number is greater than the second number it should say invalid. So far I have this:
starting_number = int(input("Starting number?"))
ending_number = int(input("Ending number?"))
sum = 0
expression = ''
if (starting_number < ending_number):
print('invalid')
for x in range(starting_number, ending_number + 1):
sum = sum+x
expression = expression+str(x)
equation = expression + '=' + str(sum)
print(equation)```
But when I run it, it shows invalid anyways, and also it doesn't output the string properly, it looks like this
Ending number?25
invalid
202122232425=135```
Sorry I'm really new to python
How do I fix the string, and also the if statement?
Idk if you guys can see this but there are block whenever I see something with a black /grey screen and this is really annoying do you guys have any fixes for this
-
you've got the wrong comparing sign, change it to 'starting_number > ending_number'
-
add 'else' before for loop
-
for adding white spaces, you can add after str(x) + ' '
Hey what are some good guides to learning python? I already have programming experience with pascal
you did almost right, just little mistakes.
Hi, I also learn python, and found great videos:
https://www.youtube.com/watch?v=rfscVS0vtbw - beginner
https://www.youtube.com/watch?v=HGOBQPFzWKo - intermediate
I also use kaggle courses : https://www.kaggle.com/learn
Thank u so so much!!!
I have a question for the java programming language if someone knows the answer please respond, alright so how would you read a txt file outside my Jar Program?
anyone know python can help me with a coding issue?
Solve the quadratic equation ax**2+bx+c=0
import math
a = float(input('Enter a:'))
b = float(input('Enter b:'))
c = float(input('Enter c:'))
d = (b**2 - (4ac))
x1 = (-b-cmath.sqrt(d))/(2a)
x2 = (-b+cmath.sqrt(d))/(2a)
print('The solution are {0} and {1}'.format(x1, x2))
whats the issue here?
found it out
try natural language processing or semantic analysis
thanks 🙂
@gleaming trail why'd you delete it? Was just having a look at it
i figured it out loll
oh gg
gg man 🤝
I think the first one was based on standard graph flow algos
was still reading the second one when it vanished in front of my eyes
yep i planned on doin a depth first search for the first one to find max flow recursively from the bottom up and keep record of optimal path so O(V+E)
second one was how you would test for k-colorability in a graph
particulary a bipartite graph
yep
u wanna think about it or should i share my answer ?
nah, i was just trying to remember if this is true or not
i know how to check for bipartite
ah ic ic good stuff. these are basic interview questions so def good if u can create these algos
can anyone tellme whats going on here
n is a variable that hold the input casted as an integer.
don't know what's going on with a and b.
h is initialized as zero and so is i.
line 8 is a for loop
- = is what we use to increment
i + = 1 means the value of i is incremented by 1
as far as i know, u need to initialize x. idk how you put for x in a[:n] when u haven't initialized it but maybe there's smth i'm missing
print (h%2) means print the value of h modulus 2. so like...when h is divided by 2, what's the remainer? that's what it's gonna print
h+ = int(x)**int(b[i]). so += is an increment.
I've never seen an increment that doesn't look like line 10
but that's cuz im a beginner
wow tysm
sorry that i can't help you with lines 2, 3 and 9. i admit to my shortcomings.
hi
Anyone have any idea why php mailer is sending the emails from the same place its being received?
sorry do u mean the emails in the from and to section are the same?
yes
is this web design
sorry man im in hs i've only done python and html.
hope someone can help you with this soon
its chill im sure its something small ill play around till it fixes itself
ok
Hello, is there anyone here who practice LeetCode problems with java language?
yeap
Oh holdup I looked it up nvrm
asus tuf fx505dt 16gb ram a good pc ??
yep
Lmk if you need help
I learned react about 3 years ago and i dont remember i single thing
I'm guessing it's python, and I have 10 minutes to burn, so let's do this. 🙂
General purpose :
gets as input: amount of variables aka n, list of numbers aka a separated by spaces, list of numbers aka b separated by spaces.
goal: to calculate for each item in a aka x x to the power of corresponding item in b aka b[i] add all of them up, and then check if sum is divided by two
line breakdown
- waiting for an input from the user
input()and converts it to an integer(int) - inputs() always returns a string containing everything the user wrote until the line break(when the user presses enter) so if the user wrote for example "1 2 3 4 5 6" is a string containing numbers, but we want to operate on each number and not a string, so we split it. the
split()function get a string, and returns a list of string, for example "10 20".split(" ") will return ["10", "20"] - same as line two
- initiate h to be 0
- initiate i to be zero
- a is a list, so for x in a[:n] means: for each item in a, until the N-th item, do the following
9)as we discussed in line two, each item in a and b is a string so we convert it to intint(x)int(b[i])(b[i] mean the I-th item in the list b).
next the* *just mean to the power of (3* *2 is 9)
h+=is the same ash=h+ whatever
10)we increment i by 1 to get the next item in b - % returns the remainder of dividing the left hand operand by right hand operand
__a more readble code __
amount_of_items = int(input())
base_numbers = input().split(' ') # no need to write the sep, as it's the first arg of the function anyway
exponent_numbers = input().split(' ') # no need to write the sep, as it's the first arg of the function anyway
sum_of_powers = 0
index = 0
for base in base_numbers[:amount_of_items]:
sum_of_powers += int(base) ** int(exponent_numbers[index])
index += 1
print(sum_of_powers % 2)
If you can hold your cash until summer I'd wait bro. I have a Hp Omen Ryzen 7 4800h GTX 1660 Ti w 8GB RAM and 500 SSD, got it for 900. Original Price is 1,300
Its very fast and good
It went on sale a few times last year
strongly recommend it
Render Speed pretty good for Blender, photoshop works great. Fast screen 144hz. the cpu is pretty gud 
tysm!!
need help bois
ive got an algorithm in mind but i wanna discuss it to make sure it seems good
Reading it, give me a sec
sounds good, gotta take out the trash rq loll take ur time
i know its only been 30 minutes but does anyone have an idea for how they would do this
The description of the graph is simple
The problem feels very vague to me, in the sense of what is the result we're aiming for
Guys help
I opened a website gogoanime.com and your iphone has been hacked and hacker is watching you messages came i do know now that it was fake but I didn’t know then and i clicked on the link below and download the vpn app from tge app store where it took me and then the confirmation for payment for buying smthng msg came i didnt confirm it and deleted the app and cleared all cookies and data in safari and chrome
Now is this ipad safe
<@&717391911132069929> what is this sus link bruh 💀
yeah i see what u mean; i didnt go too in depth i just basically laid out how i would run a critical path analysis to find the latest/quickest path to get everyone there
keep in mind this question should be answered in about 30 minutes so u dont have to be too specific
ill send what i put exactly in a bit
i think its reasonable
i see, how r u sorting the tree tho ?
based on adjacency list of dependent batallion ?
I thought a BFS should be ideal if we want the setup to be fastest
Since the lower nodes are dependent on the upper nodes
Didn't really give it a lot of deep thought since it's a bit vague but this is what I got
What'd you make of it
There will definitely be a root battalion which doesn't depend on any other battalion otherwise there will be circular redundancy
So I thought running a BFS from that root should be ideal
i feel like it could work but i feel like u could make it even faster. honestly that sounds like a pretty solid algo tho. i would just talk about the fact only 500 battalions can be transported a little more
i split it up into two parts
i basically set up an event node graph
from there i used topographical sort to set up the path based on dependencies to one another
using critical path analysis i found the optimal timing to ensure all battalions were at their best potential at time of war ie no time wasted sitting around
i connected the ships 1-501, 2-502 to assure no time was wasted and only 2 trips were used
this is O(V+E) for the sort
Ah okay yours does seem more thought out
yeah we're studying graphs rn lolll
I still think that this would give the same time for the completion of the setup
Since the bottleneck are the lowermost nodes
Still, a nice solution
Hi! what link are you referring to?
yep i see ur point the main problem is deploying the dependent battalions last
omg i thought u deleted it the person alrdy did i guess lmAOO
it was "get discord nitro and GTA cheats" with a bit.ly link
oh, didnt see it but one of the mods handled it already. thanks for the ping! gl studying :)
yeye thanks man 💯
Hey can someone codeing in masm32? I need help I have test right now
Any good english books or youtube videos for algorithms and data structures?
Anyone here know a ide for C++?
hey yall, anyone know if this thing called "AMDRSServ" is anything to worry about? its on my start up, i have no idea what it is. should i be worried? should i remove it?
a good one
other than that
i want something that doesn't need much setup for C++.
im not too sure
Sure
why specifically me tho
you know c right
Yeah
so what editor do you use
VSCode
and the compiler
what os are you on
Linux dual booted
do you know how to setup vscode for c in windows tho