#tech-related-help
1 messages · Page 2 of 1
Are the other interfaces enabled?
When you check your IP, is the DHCP assigning an IP?
You probably shouldn't assign it manually unless you know how it works properly
These are just my guesses ^
Damn
But probably has something to do with your DHCP
What do you mean by that ?
Let me take a schreenshot for you
So dhcp is a protocol that's supposed to assign ip addresses automatically to your network
yes but I have to modify the ip for the robot
and then so that I can control my robot through programs
I think I can help you with that
If I'm not wrong in english it's called low-pass filter
I'll try my best to explain it to you since I do my studias in French
yes it only let the frenquences that are lower than the cutoff frequency to pass
No I understand perfectly what you mean
w is 2pif
f is the frequency
j is the complex
the impendance comes from the Ohm law to alternative current, it's value is in complex it that's why we have the j
And this is how you calculate each of the resitance, capacity and inductance
kk I see
Before you modify it, are you able to go on the internet with your vm?
you mean if I can connect it to the internet ?
You're welcome, good luck 😄
yes
kk
thats good
Do you know what your IP range is for your network?
once you figure that out, try to see what range of ip hosts are available
and then go from there
your ip range of usable hosts would be:
192.168.43.1 - 192.168.43.254
so you can prob go from there and see which host is available (the first one is usually reserved for your default gateway)
VMs usually do not have wifi, it is an virtual LAN (Local Area Network) where your host device is the gateway
It simulates an ethernet connections (cable)
Where is the supposed program to control the robot running?
Try to ping 192.168.43.1, then 8.8.8.8 and then google.com
As the adapter in NAT this is only the range in which virtual machines will run with the .1 as your host device
Feel free to DM me as I probably will miss the response 😄
I set the ip adress for the machine as 192.168.43.26
How can I add a value to a specific number in a dataframe in python. The thing is for school I have to make it so that when a number in the column is less than 800 i have to add 800 to that number to make it bigger than 800.
idk what libraries you're using but maybe use a for loop and loop through the columns of your dataframe. If column is less than 800, add 800 to it and then save it
Mhm alr wait. So the thing i need to make. I have a dataframe with colums:start-time and end-time
And i need to calculate de difference between those comlumbs thats is easy and i know how. But sometimes the end-time is lower then the start-time(when it started befor midnight and ended after midnight). Then i have to add 24hours to the end-time and then calculate the diffrence. But I really dont know how to use a for loop for that cuz that was my first thought too
I found the solution
YO does anyone know to add the waveform of states in the test bench simulation of an fsm project in VHDL????????????????
hello
is there someone who is really confident in c++ and can help me a bit?
there is something weong with the shared pointers
Heyy guys I'm gonna start with c programing today
Any pre requisites or a piece of advice before I start with it
Btw it's gonna be my first time learning coding
You should probably get familiar with the basics of Object Oriented Programming first before you start
actually nvm
I think you don't have to know it yet
but ngl, if its your first time coding, C is gonna be a tough language to start out with
My college decides what to learn so I definitely have to follow what they say
Well, which language should I learn after c ?
Is c even being used these days?
After C, you could learn Java. It'll be easy for you to pick up since they're both kinda similar
But I'd say whats best is you should learn a language that'll be useful for what you want to do
Okayy I get it
I'm doing computer science engineering and it's my first day at college tomorrow
I'm not sure about what kinda work I'll do once I graduate
Tbh I don't even know what are the job roles available
All I know is ui/ux and data science
I'll look into it in detail later
If you want to do a little intro to C before your school you can check this out: https://ocw.mit.edu/courses/6-087-practical-programming-in-c-january-iap-2010/
This course provides a thorough introduction to the C programming language, the workhorse of the UNIX operating system and lingua franca of embedded processors and micro-controllers. The first two weeks will cover basic syntax and grammar, and expose students to practical programming techniques. The remaining lectures will focus on more advanced...
Sure!!!
Yes but c++ more often then pure C
Another great language that is getting used more and more in cloud native world is golang (between python and c)
I also use golang in cybersec related tooling, c++ if I need to evade stuff like AV
But my recommendation would be get good at 1 language first, if you understand the general programming terms switching between languages won’t be much of a problem but a strong fundamental on 1 language is mandatory
He/she should first get familiar with different data types, structures etc, OOP will become relevant whenever he/she can actually write small programs
Can anyone help with react and python flask
anybody familiar with FileStreams and binaryreader? 🥲 (c++)
wtf
just ask ur question. point is, if someone knows the answer they’ll answer
you don’t have to go through the step of asking for assistance and then potentially not receiving the help you need
Has anyone ever used a monitor mode .. and what brand is good for the wifi adapter?
other than the alpha brand. is there any better than that
Can someone help me with this?
Maybe use Figma?
It's a really well known tool for both low fidelity and high fidelity mock-ups/prototypes
I dont know how to use it
it's pretty easy to use, there's tutorials everywhere on internet
any coding students here?or who ve learned pythton before?can u suggest me a online course or website tht can help beginners to learn python?
if so pls tell me tht will be real help
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
thanku💜
How to use Say, Tell and Ask | Learn Englishhttps://www.ecenglish.com
? 🤣
Well you could always just watch YouTube tutorials. It's very easy to use don't worry
You can also checkout freecodecamp and open courseware from MIT
"don't ask permission. just ask permission"
???
what is happening now?? @idle swan
im confused with what you're looking for ser
LET ME KNOWW
BROOOO
best way to study some programming language is reading their org docs
https://docs.python.org/3.12/tutorial/index.html
aight THANKS shennie!!i wanted to text u first but u said u r gonna stay away from social media for a month so i thought it wont be right to do tht.ANYWAYS THANKS A LOT!!!
Boys i need help so i want to convert a disk from gpt to mbr only problem is i have more than 4 partitions so what do? lmao
💀
Hi, I am not able to download any file from google drive. How do I fix it?
Could be a permission issue thing
What device/browser are you using to download?
it seem v good
Windows laptop, chrome browser
I have tried firefox and incognito mode too
Files were downloading fine before, I don't think that I have changed any settings, now the files either stop downloading in between or not even begin to download
yup, still
You mean a debugger?
Edit: GOT ITT SOLVED : ))
Cs/cis folks ..can someone give me an example or teach me about mvc layering in starUML or any other application if possible plz?
Thanks a lot!!
What are org doc?
anyone good with ltspice here?
Just shoot your question. If they know, they'll hopefully help you out
ah ok
can someone tell why my program is so slow?
new to python so dont judge xd
can someone help me with this problem in Typescript? Im learning and feel blocked right now 😦
`const givenAssignments = [{"name": "Roy","hash": "enxo873nx12389"},{"name": "abel","hash": "op81unxohdq98un"},{"name": "leticia","hash": "enxo873nx12389"}]
const checkCheaters = (assignments: [{name: string, hash: string}]) => {
// TODO go through the jobs and check if the hashes are identical, if they are, return the pair that did the plagiarism along with the hash found
return cheaters
}
console.log(checkCheaters(givenAssignments))
// { "enxo873nx12389": ["Roy", "leticia"],`
idk how TS works but supposedly you would range over givenAssignments and use some function that checks duplicates
heyy guys does anyone understands the propositional logic and fuzzy logic ?? I need some help in the theorem of Robinson
it's slow because you use nested loops
so it works in o(n^2)
i see
try not to use nested loops

SHUT UP
Work help!
um I need help getting started with programming. I want to learn the basics. Is the CS 50 course worth it? I need a certificate of completion too
CS 50 certificate is quite expensive
are there any similar courses on coursera with lower cost?
what do you want to be? Depends on what you want to develop
You can learn basics by yourself too
do you want to learn web developing or app developing or games..
If you want to start web developing there is no need to take any private courses
Just learn html, css, php, mysql , javascript with youtube
and goggle
I agree on that
React is a good and popular framework. It's a JavaScript one for web development
You can learn java
with java you can make and websites and apps
personally i prefer web development
If you want to stay sane and earn some money I'd prefer this too
Web development. Backend and frontend
I need it for my CV so 🥲
Not sure how things work there. Possibly, you can check out some people on Linkedin to see what kind of certificates they have in your own area/country.
Unless they are strong certifications, they don't work for me. Cybersecurity related ones are quite a thing. Pearson based certifications are I think well respected.
Rich developers tell
that certifications make no sense
if you are worth employing company employs you with no certifications
But, Violet is probably seeking out certification for entry level positions. On top of that, even though you are well skilled, some areas expect you to have certain certifications.
Does anyone know how to do Java GUI? basically I want to delete the product name and the sales.
This needs to be pinned tbh

it does if you do not have diploma
and also usually developers make good money enough to purchase them
guys help me
I am typing the right username and pass word and it should clear the text field and password field to null
but it turns out that the right username and pass is "wrong"
Guys does anyone actually know how to clean laptops screen
damp microfiber cloth
Do the course
Unless you are in a hurry
cs50 is so good as a start. no need to buy the certification just watch the course to gain knowledge.
True
i59400f still okay or it's better to invest in another motherboard?
guys does anyone know Java Swing GUI?
what i wanna do is sort these names by alphabetical order
I have no idea about what you are doing but i may have an idea? Just sort the array of the names and list it?
You may find a library that has the method already or create a simple algorithm
such as in C#, System.Linq provides you a method
List <string> newList = "YourListNameGoesHere".OrderBy(a => a[0]).ToList();
I haven'T checked but this should work for C# listing
Does anybody use QGIS here?
does anyone know how to do a pseudocode for huffman coding? my prof only taught us the algorithm, and I have no idea how to implement it in like code snippet
does anyone know of any good applications or websites to use to create a website? (preferable free since it is a school project that I am working, but plan to create my own for personal use in the near future)
I'd like to learn how to do it by myself, but I don't mind getting help right now
if you'd like to code it yourself:
Learn HTML and CSS. Here's some resources.
https://developer.mozilla.org/en-US/docs/Web/HTML
https://www.freecodecamp.org/news/html-crash-course/
You won't be building full blown amazing website but its a start.
Then learn JavaScript and how it can be implemented with HTML.
https://www.youtube.com/watch?v=PkZNo7MFNFg&t=145s
Taking it further:
You don't need to be a full blown HTML/CSS god but you'll need to be comfortable with JavaScript if you want it to look amazing (this is where frameworks come in).
Since its for a school project, it'll be perfect because you can show significant progress throughout the semester/term
And yes, also remember google is your friend for when you get stuck 😉
thank you!!
Using the 14 bit model (5 bit for exponent & 8 bits for mantissa) what is the decimal number representing this binary (00111011100000)
(hint: the binary number is normalized and bias is used). HELP
Does anyone think they could help me out with putting music into an ipod classic? I tried numerous youtube videos, but none of them seem to fix the issue I am having. I can't even say for certain what the issue is, but it is telling me that I need to turn on icloud music transfer onto my ipod classic, and I don't know how to do that
Yo I am programming Assembly for MIPS. I am trying to store characters in an array using (.space 100). But I am getting a lot of excemptions. I don't know where to store and how to store char values. I heard of the stack but I am not sure. If there are any people, who are more informed on the subject, which I highly hope for. I really need your help!!!!
^^^^PLEASE HELP NEEDED^^^^
anyone here knows how to generate G-code from SolidWorks? I badly need help. thank you.
^^HELP NEEDED WITH GOOGLE SCRIPTS (works like java I guess)^^
How can I save Google Slides as PDF? BLOB doesn´t work or I´m missing sth Idk.
hey quick bash scripting quesiton
if i declare a variable in one script 1, and i call this script within another script 2. but 2 also has the same variable. I tested it out and it seems like the variables are local to the file they were defined in but im not too sure and i cant seem to find anything online
ik they are global within the script they were defined in by default but im just wondering across scripts if theres smth i need to worry about
I think you'll be fine unless they both access the same thing and change something
The only way I can see something being a problem is if you somehow pass variables as arguments to the other script.
Like if script 1 calls script 2 with arguments
Anyone here familiar with Finite State Machines? I need to make a state diagram for an elevator system with 4 floors. (Moore) Been hard stuck after a few tries.
hi guys do you know good resources to learn react? but please without video courses
i was learning from this https://github.com/Asabeneh/30-Days-Of-React but the author is writing in classes instead of functions which is kinda weird
w3school
Definitely check out the official React documentation (the message above mine)
Ahh okok sounds good thanks for the help
,
( Pro tip: CS people don't like to answer questions but they like to correct people 😉 )

lmao
i am trying to pull the request but there is no option of create pull request here help plss
Does anyone know how to make a font bigger in anki(phone version) ?
When I change font to large this appears but nothing changes
assembly 😅
good luck brotha
I think the question should also give you the delays of the DFFs and XOR gates relative to the Clock cycle but assuming only 1 DFF can change per cycle then AB would be 00->01->11->10->00
I finished the assignment ASSEMBLY is ez af
just a few indians and a few forums AND BOOM
COMPUTER SCIENCE IS EZ
Can you link two comboboxes in java without listener
is the answer
0,1
1,0
0,1
1,0
??
As ntg is given intially to the first xor consider the input as 0. From this chain process continues. So from that first input to A flip flop will be xor of (0,0) input
Ooo I gotta revisit the subject again I guess🥲
import java.util.*;
import java.util.TreeSet;
import java.util.ArrayList;
public class Hash_Map_Demo {
public static void main(String [] args) {
HashMap<Integer,String> hash= new HashMap<Integer,String>();
TreeSet<String> myTree = new TreeSet<String>();
ArrayList<String> collect = new ArrayList<String>();
hash.put(1, "h");
hash.put(2, "e");
hash.put(3, "l");
hash.put(4, "l");
hash.put(5, "o");
hash.put(6, " ");
hash.put(7, "w");
hash.put(8, "o");
hash.put(9, "r");
hash.put(10, "l");
hash.put(11, "d");
for (int i = 1; i < 12; i++) {
collect.add(hash.get(i).toString());
}
System.out.println(collect);
myTree.addAll(collect);
System.out.println(myTree);
}
}
i did smth like that but i have no idea why the all myTree objects are not printed
ı couldnt figure it out that part @south ice
ı have to get to school ı couldnt spend time on it , i ll take a look after exam
is it possible to become a software engineer/ developer by self learning only?
yeap
Hi.....I need help with this assignment : " Given one dimensional array of integers A[100}. Write One address instruction assembly code to find the minimum number in the array " or at least could u plz send any youtube video that helps 🥲
As soon as you develop software you're a software developer mang
Yer a wizard harry
Hi! so I've been trying to make this code run but it kept getting an error
its c++ does anyone know why it won't work?
Where is endl
Yes definitely. This guy gives a general idea on how to do it
https://www.youtube.com/watch?v=aaRFyHGiAAY
What is a self-taught programmer? Is it actually possible to become one? How do you become a self-taught software developer? The answers are in this video! And if you're serious about becoming a self-taught software engineer, check out ProgrammingExpert at https://www.programmingexpert.io
0:00 | Introduction
0:32 | What is a self-taught program...
can someone help me fast with linked list(c++) on school project?
aks your problem. Maybe can help. programmer is a pretty wide field. What Language is your problem? What field in this language is your problem?
Can anybody share your insights on Android Rooting? I need a proper tools to do it. Tried all those tools like Magisk, iRoot, KingoRoot, OneClickRoot and few more. Not even a single tool was useful in rooting my android phone. HELP ME WITH MY PROJECT!!
same here
I practiced through snake game on CMD
it was fun. I edited out a bit
which editor do you use? im having issues whenever i try to compile my program on visual studio code
What language?
c++
Hmm
IIRC, there's a different vs code for that
I could be wrong though
Ik that there's two types of vs code?
i installed mingw6 but i get weird errors about the compiler when i try to run my code
when i restart my vscode the error is gone 😂
yes there is visual studio and visual studio code
Maybe try just visual studio?
when i used visual studio my code never compiled, so i used vscode
Damn
Yee
thank you for ur help tho! :)

hey! can anyone help me with this?
apparently CLion works very damn well, thanks!
Visual Studio
jetbrains IDEs are goated for every language
hi everyone. New wannabe programmer here, how does github work and how do i write code in it or smth????

It's kinda of a platform where programmers put there code in it so other programmers have access to it so they can study it and try to find any error or something
Github is a popular website/platform where people can store and collaborate on projects (centralized repositories).
There's more to it than what I just said though
Before using Github, you should first look into "Git"
ok but how do I start I am so lost, everyone is throwing words out like machine gun fire!!! XD
I am not Rambo where do I start?
my end goal is to understand where to run code from stored repositories of my collegues
Thank you kind programmer!
r u taking linear algebra? @cerulean patrol
yes I am living, breathing, pure Linear Algebra in the flesh babyyy.
i had it on my previous semester, it was painful 😂
yeap almost as painful as programming is for me XD
But I am gonna tackle my demons
I am gonna be the best programmer to ever live
***Picking up a language and using it: ***
Pick up a programming language (most people start with Python since its very easy)
Before anything, learn how to code first and do some researching/googling about the language (what are it's use cases and why learn that language etc)
-
Learn the syntax and basics (Figure it out yourself on what to learn with google)
-
Have some projects in mind (start small) and try to develop that project overtime.
Doing coding exercises also help (you can find some online by just googling it).
You can use this website to learn a lanaguage. It already has a structure for people to learn. https://www.codecademy.com/catalog/language
Otherwise spend a good amount of time getting familiar and developing projects.
***Learning version control: ***
Version control is very important in programming because you may want to save how your code is currently or may want to revert back to the way your code was before it was broken, etc etc.
The most common version control tool people use is "Git".
You can learn it relatively fast on YouTube or via documentation.
https://git-scm.com/
Getting into GitHub
After learning Git, you can start using Github. Like stated earlier, Github is a great platform to store and collaborate on projects. Github is not hard to learn if you understand Git properly.
Going beyond
Depending on what you build/ what language you use you can start looking into frameworks.
For example if you want to develop a website with Python, you can look into Flask
This is my quick rundown to getting started 😉
You are a f******g LEGEND
yeah but
THANK YOUUUUU
the most valuable tool you can use
is using Google
A lot of beginners need to learn how to google things properly
and use it first before asking any questions. but yeah
Happy to help!
I am gonna learn how to google better, I appreciate the time you dedicated to me, I promise to not let it go to waste, I am gonna fight like hell!
Yee no worries
bro tbh just look up a random language and start learning how to code in it
i personally started with java
i think python is pretty good first language
get an ide like one of those jetbrains ones or vscode and just look up videos on how to start coding
has anyone taken a course regarding finite automata? i got a question
when I am printing an arraylist in java its giving me a hex
can someone help
ArrayList<Patient> patDetails = new ArrayList<Patient>();
I did this patien is my class
and used an iterator to itirate through my list
but its giving me a hex code
🙂
im not willing to ask a really long question if there's nobody who's taken it, don't answer with no help
its just a question on why is hex printing or not......
im not replying to u lol
oh its ok
how are you iterating through the list?
oh no its fine I think I fixed it
good luck with this approach
nvm i didnt lol
SITUATION: I am making a menu driven program and created a class patient in there i created a constructor with getters of all my declared attributes for my object like name,age,allergies
and in my main I wanted to ask and input from a user then It would eventually be in my patient details and display those info p.s I if ur gonna say use arraylist i already i did
I love it
but its giving me a hex code 😦
if anyone has spare time to help I really need it
thank you in advance
it says you never used it locally
but i have other methods too which i havent used locally and they arent giving me an error
oh it definitely helped, someone dmed me
see no error for this
It's just a good practice to ask doubts instead asking if you can ask doubts. Not every time you'll have people like myst dming. I was also shared this link the first time I asked to ask. Asking in public gives different approaches. Just better for learning.
i know what you mean, the thing i had to ask required a really big discussion and a lot of questions in one, i was in a hurry and had no time to write paragraphs if no one was there in the first place
Did you declare them publicly
You've never used this anywhere?
That doesn't make any sense tbh. Usually IDE warns you about method or value you declared but never used for the sake of development
Except, they are declared public.
can anyone help me comment this and explain how this code works
you can if it returns sth
anyone know where i can learn c++ ?? I already know the basics and stuff but idk where to find info about in on more depht
You can pick up a c++ handbook if you want but i recommend you learn advanced c
Some books i use:
1.the c odyssey- unix and the open boundless c
2.the c programming language
3.c++ handbook(ssi)
4.let us c
5.the c++ programming language
I would also suggest looking at "exploring c" but i cant recomend as i never used it :)
what is it
so i am trying to set a "path" for a file ( i am using anki) but i dont what that means
and the instructional video isnt working...
FileNotFoundError: [Errno 2] "/usr/local/opt/graphviz/2.40.1/bin/dot/dot" not found in path.
this is like the main issue
the path
i need a code
that can get me to the right path for the save of the file
i am using homebrew and graphviz on mac
ill just ask the developer if this dosnt make sense
hey guys , i have a budget of $2000 , should I buy a gaming laptop or build a custom pc , (for machine learning)
What are the issues with a gaming laptop ?
would be grateful for an answer , thank you
can someone explain to me whats the diff of just a setter compared to a constructer with parameters am still learning java
Hi there, can anybody tell me what am I doing wrong here? I keep getting compilationn errors for the Subject enum. Any help would be appreciated, been struggling with this for some time now.
the setter method used to assign or change values of the instance variables of a class while the the constructors are used to initialize the variables
On hold on im wrong
in addition to this, the constructor runs automatically when you create a new object, but for the setter methods you have to call the method on that object
hey anyone know if there are more tech internships coming out late 2022 or early 2023
i kinda fucked up by applying late and i only started around last month or so and it seems like everything is done!h hahahahahahahahahh aaaaaa
ive been checking on linkdein and stuff but im not sure if theres another round coming out soon, might have to take a return offer from my previous company but at this point in my career i wanna try other things
Yeah it's a bit tough with all the layoffs but definitely still hunt for diff tech jobs and use the return offer as a safety net
And if you do find a different offer, you can use it as leverage for a better salary
Hi guys! Anyone knowledgable about Generative Adversarial Networks?
Guys am creating a CRUD file for students and CRUD file for teachers and I wanted to ask how can I link my saved students and teachers into another CRUD FILE which is booked tutoring where I can booke a schedule between a teacher and student?
how can i type name of file in text file?
Lets say there is 1 file which is commands.text
in another text, when i type echo $n it gives me commands.text
how can i put only the name commands as output ?
also the \n doesnt work because i want to print filename next to 1st output
Can't think of the direct solution but look into awk
its a built-in linux tool used for parsing
but i think you'd first echo $n and then use pipe and then use some kind of awk
or you could just do it lazily and use grep
Thank you so much, how can i embed the command i use in bash into text to make it a script? i could output the base name with a command in terminal but when i typed it with echo " ", it output the whole command as a string
hi 🙂 someone knows if wearable computers have operating system and explain it ?
yea most of them run with a certain operating system cuz they are computers at teh end of the day
but its not like ur normal windows OS
like its often specialized by a company or the manufacturer and is usually hard to like mess wit
esp when it comes to companies like apple or google, if u look into cheaper options u can prolly jailbreak them
why do u want to know tho?
yes plz
idk what ur question is but 🤷
sorry I misunderstood, thanks for explaining 🙂
what watch do u have?
I have an exam and the teacher gave us that question
oh mb 💀 i coulda explain it in a more smarter way
its okey, dont worry 🙂
could someone maybe help me? I'm new to this course 😅
use regex
I don't think they are allowed to use regex
on each iteration i would first take the substring of 4 characters
then check if it holds
you can also do it by nested if statements
like if the first two letters of the substring is "co"
and the last is "e"
then increment the count
you don't even need nested conditions
just one if statement
I have a bit complicated solution for that
I got it now! Tysm 🤍
I can't find the wifi driver even tho I'm connected via ethernet cable
hi there, is anyone here know how to create a function that reads string pointer values and stops in specific word in cpp ?
have you removed your py set up on the control pannel?
sometimes when u reinstall python it keeps the "setup.exe" file
thats why its giving u an error
Linux
It says the package isn’t supported by your processor
Do you know what CPU ur computer has?
hi is there anyone who knows how to code in mips assembly language?????
You should join the Python server
Not advertising but there are many experts who can help
Hey anyone help me out have started to reset my hp laptop 5 hours ago .. now it has stuck at 68 percent what should I do ???..😢
"How to format HP laptop by USB drive?" "How to install Windows 10 on HP laptop" Easiest workaround: https://www.easeus.com/utilities/ostogo.html (this tool is for running Windows on your USB drive.)
Before you do this, with the battery and power cord unplugged, press and hold the power button for approximately 15 seconds, if still it won't shut down, use a screwdriver to open the battery socket and remove the battery and put it back in (it's easy and there are videos about it on YouTube)
Download the best Windows bootable USB creation tool or creator to make portable USB drive for Microsoft Windows 11, 10, 8.1, 8 and 7. EaseUS OS2Go is your best choice to copy and clone an installed Windows OS to a USB drive.
nah bruh when i used windows and that happened i just turned the thing off
I guess leetcode is the option
I am a complete beginner in Matlab. For now I need to learn about following code from scratch. So I want someone who can teach me (callor text) how it works,elements and so on.
m = input("Number of Rows:");
n = input("Number of Columns:");
a = zeros(m,n);
for i=1:m
for j=1:n
a(i,j)=input("Enter the element of matrix row-wise");
end
end
for i=1:m
for j=i+1:m
q=-a(j,i)/a(i,i);
for k=i:n
a(j,k)=a(j,k)+q*a(i,k);
end
end
end
for l=1:m
c=a(l,l);
for k=1:n
a(l,k)=a(l,k)/c
end
end
a=rref(a)
It looks like the code is building up a matrix of dimensions mxn as defined by the variables m, n, a (this variable is the matrix and it’s instantiated to the desired m x n size with values of all zeros).
The first set of for loops asks the user to input each value of the matrix along iterations of row and column. The second set of for loops overwrites the user input (since we’re adding values to the same matrix) by filling in matrix values according to some formula (look at variable q and the assignment of a(i,j) in the for loop
is anybody doing „advent of code?“
Is anyone here that knows how to code a instagram bot wich can be used for organic growth? For example a bot that can subscribe, like and unsubscribe again?
just practice and you'll get better ...
Boys this the script i have(trying to output the elements of an array)
but this the output im getting
anyone know what im doing wrong (its written in c btw)
when i try it with an int array it works just fine
well how do you want the output to look like?
float numbers are printed by default with a few decimal digits
you made a float array you get a float array
hello, everyone! does anyone here know where and how I cant edit a pdf file (for free)? i'm really struggling w this one and have spent the last 4 hours trying out a bunch of free websites but to no avail. please help me, i would appreciate it a ton!! tia
Hi. Can someone help me with my homework? It is about Javascript and React. I am a slow learner and I am afraid I can't solve it on time. It makes me sad, because I practice a lot but I am a beginner in Javascript and I should focus on CSS first.😕 If you have time to help me, please write to me! Thank you very much! 🙏
whats the question?
Hi can somebody help me with that:
I want to block porn on all of my devices. What the best solution? I thought about configurate my wifi device but i cant get access to it…
Yea i had millions of extensions but hey are way too easy to get rid off if u are 🫦🫦. I need something more effective;( also for my future i dont want my kids to surround the systme too easily! … i need help pls
there is a way to block websites from host
nope
it's the most efficient way to solve an interval scheduling problem
can someone help me with this c++ project using class inheritance and templates
Ty so much!
so i have these two class Staff and Customer. They almost have the same attributes and I wanna reduce code duplication so how do I do that?
do I just public class Staff extends Customer?
pretty much but I reckon user is a more appropriate word instead of customer
I have a context and then 5 smaller tasks but I don't know how to start it. I am afraid I will fail 😦
Context:
The task is to create the price calculation webpage of a fictitious company SufniGSM for used mobile phones. The price calculation will be done by an external API, which is able to provide a recommended price by the properties of the phone.
The API endpoint address is:
https://softcamp.hu/webler/arkalkulator.php
The price calculator expects the following GET parameters:
-
brand : free text field, manufacturer of the phone
-
model : free text field, exact type of phone
-
os : free text field, operating system. Possible values: ios only
or android -
releaseYear : number, date of release of the phone (must be less than 10 years old)
-
startScore :number, from 1 to 10, how good the phone was in your company's opinion at the time of release.(properties of the phone to provide a recommended price.)
-
startPrice : number, the opening price at launch (USD, in US dollars units of measure are not allowed, only number!)
-
condition: number - the current condition of the phone from 0 to 100, where 100 is almost unpacked (so it is in perfect condition) 0 means the phone is broken into pieces.
Some examples of the API:
iPhone 8 (2017), at release was a 10/10 phone with a starting price of $699, currently is is a 80% phone.
https://softcamp.hu/webler/arkalkulator.php?brand=iPhone&model=8&os=ios&releaseYear=2
017&startScore=10&startPrice=699&condition=80
Samsung Galaxy S20 (2020), was a 10/10 phone at launch with a starting price of $999, currently it is a 95% phone.
https://softcamp.hu/webler/arkalkulator.php?brand=Samsung&model=Galaxy S20&os=a
ndroid&releaseYear=2020&startScore=10&startPrice=999&condition=95
Huawei P40 (2020), was a 7/10 phone at launch, starting price $899, currently it is a 88% phone.
https://softcamp.hu/webler/arkalkulator.php?brand=Huawei&model=P40&os=android&releas
eYear=2020&startScore=7&startPrice=899&condition=88
In response we get back a JSON format data with 2 properties: error, data. If there is an error, it contains the error message, otherwise null. If there is no error, the data property is filled with the phone's data, like brand, os, model, releaseYear, but the important thing is
recommendedPrice and details.
The recommendedPrice is the recommended retail price considering its condition, and in the details the depreciation over the years has to be shown, with 100% condition.
We will work with this API.
The other API is the https://api.coinstats.app/public/v1/fiats api endpoint.
Can somebody help me with this, please? 😕
hey there, if I deactivated my facebook account. Will I still be able to recover it?
i think you can, but only after 30 days after you deactivated it.
Aww thanks
I can't find your message but I saw someone asking about DBMS books in another chat, here are some books that helped me out a load when I started (I will say tho, learning by doing is the best way I have found to learn DBMS systems. Just don't do it on a production DB, you will get slapped by a manager, can confirm)
- An Introduction to Database Systems By Bipin Desai
- Foundations of Databases By Serge Abiteboul and Victor Vianu
- Understanding Database Management Systems (I can't remember who by, I didn't finish it as the semester ended)
do you know how SR flip flops work?
I reccomend:
1: Install VS Code
2: Find a way to deploy a website (start with only HTML):
- I reccomend you install the Live Preview VS code extension. Watch a youtube tutorial for this, or sth
3: Deploy a pure html
4: Add javascript to your site, and make sure the javascript runs (print something)
5: Make an API call to one of those two API providers, just use fixed values first
6: Add HTML forms or something, to be able to get data input from the user
anyone knows how to configure Anki like James?
I know he uses the Review Heatmap which I have installed but
The time you spent studiying is a single card?
or the subject you are studying?
Thank you 😁
Yo guys does anyone here know how can i make this output using c++
@ruby hinge you would use the std library and then "cout" like:
#include <iostream>
int main () {
std::cout << "1" << std::endl; //endl is used to end the line and go to the next
std::cout << "23" << std::endl;
std::cout << "456" << std::endl;
std::cout << "78910" << std::endl;
}
This is a very inefficient and also poor way to do it! So, good practice to go away and see if you can make this more efficient, maybe use a function to not have to repeat code 🙂 I dont want to give all the answers 😉
As a note, I haven't used c++ in like 4 years, c# gang now
thank you very much! 😁 i was thinking to maybe use the for function for this one but wasn't sure exactly how
You could absolutely use a for loop 🙂 Maybe see if you could put the numbers into an array and then access the array using the for loop, a little hint for you there
ayoo
anyone here works with ubuntu ?
yeah i can help with linux related issues
if anyone here by chance uses OpenBSD as their main OS plz dm me, looking to flash it on my laptop and would like to ask some questions before i do that.
Can someone help me with arduino code,i have 2 shift registers and one 8x8 matrix display,im making tic tac toe but i have problem with controling matrix display..feel free to dm me
Hi everyone. Im in the beginning stages of learning classes in Python. Theres an example I have been looking at and cant understand how 'j' is apart of this output. Any explanation is appreciated.
How would i create a different modal for different list elements in an unordered list?
Does someone here know about springboot jpa ? I've got a rly stupid error here
yep
i think it’s syntactically incorrect
does anyone know how to arrive at an andwer for this? i have no idea wth is going on here
num++; means num = num + 1;
num--; means num = num - 1;
num += num; means num = num + num;
num *= num; means num = num * num;
ahunned
but i think i fked up my linking or my work enviorment
basically when i install stuff it goes into this /python3.10 dir but for some reason when i press the little run arrow it default runs 3.9
I tried to relink it using this solution online but i seem to have fucked it and now nothing runs
anyone know what i need to do or if i can reset everything
Here is a better image
It seems to have installed
it always use to be like this and i would jus ttry a million ways to install it and eventauly by sheer luck manage to get it working but i really wanna figure out wtf is going on now
@scenic oriole try pip install wheel then pip install pandas
Yea ive tried that xd the issue is I think when i write pip install ___
it always installs in some random dir and not where my vscode is checking
but idk how to check/change these paths 😦
Just in case if you still need other's opinion, obviously your project and default environment has linked to different python versions, you can change the paths or use venv. If you don't want to spend more time for this, you can simply uninstall all your python versions and re-install the one you want to have (but if your python within conda, it will be different case).
mhm yea i might just try venv cause it basically installs everything on a local env and not globally like i’m doing rgt
i use to spend like 10-15min every time i wanted a library so annoying lol i just dont understand how to setup the paths xd
Not everything, just the ones you desired to have in your project
I never have/use Mac before but Python has docs for their users. Try read this docs, I hope it can help you
Greetings to all,
Could you please help me with a user research interview for my #ux project? Please say hi if you are interested.
Can anyone vc with me on indent spacing / tab issues for python? It's really impeding my progress and can't figure out solutions to stop this bad habit 😓
Gentle Rain at night for Sleep, Insomnia, Study, Relax. Gentle Night Rain Sounds (No Music, No Thunder) Gentle Rain for 2 Hours with a Dark Screen - the Rain is just visible. Highly recommended for Sleeping and insomnia. Also ideal for Relaxing or Studying. Light Rain works well for Reducing Stress or Anxiety. Gentle Rain to Block Noise, Help Ba...
Rain Sound On Window with Thunder SoundsㅣHeavy Rain for Sleep, Study and Relaxation, Meditation.
No matter where you are, it is really hard to get a good night sleep when it is raining outside. But worry no more, with this app you will be able to enjoy the rain sound on window without worrying about the noise disturbing your sleep. It also cont...
i am definitely not an expert in this but i have some minimal experience in coding
-
coding basics include variables (stuff u store data in), if-else statements, while and for loops but most of them you can just learn online with any beginner tutorial guide on youtube
-
i think you must first determine what you want to do with the skill. do you want to make a website? the best learning happens when you have a clear goal and project in mind. i suggest that you look for cool projects that you can copy and learn from. freecodecamp is a great place to start.
-
i think python is a great language to start with. most peeps say that it is easy to learn because you dont have to memorize too much conventions.
-
only if it supports/is essential to the job that you are applying for. i dont think all fields require or need coding experience. nevertheless having coding expoerience on your cv definitely shows that you have problem solving skills
-
im not exactly sure with this, but keep making projects with deeper difficulty and i am sure you will grow
-
freecodecamp, Harvard CS50, and i think your recommended will bring the rest hehe
-
i think coding is possible for any laptop, just check the documentation when building stuff
do you want to expand from python?
is a good python website
its for beginners though not sure how far youve made it in your journey
ohh
then that website will be
the bible
good luck 😎
Heyy! I kinda want to get into coding too. T-T
will it be okay to give me the link to all the resources you found? Its okay if you cant tho, thanks!
😭 NOO, i dont know arabic😭
But its okay then, thank you tho🌸
OKAY!! thank you tho.
If i find anything, ill let you know too : )
Yes, lets keep our hope on the people here. 👾
Good luck with your coding!
Thank you sis! Hope you have a great day too ✨ 🌸
Since Q4 is only question I think not anyone at study age can answers yet so i'll only focus on this one
Yeah, learning programming language will make your CV better, but your math and logic thinking, problem solving skill will be the best choice. I've seen alot ppl applied their cv with 2-5 years experienced at JS, Python, Java, etc or frameworks like React, Angular, Django,etc but very less ppl will apply their problem solving skill into their cv. You'll see your lecturer taught you how to convert OOP knowledge into assignments but when customers asking you to convert their problem into real OOP knowledge, you might have a very very bad nightmare during the project
So conclusion, Logic thinking and problem solving make you cv perfect than ever. Anything else beside technical skills, i won't tell you rn either you can learn it during exposure to the working environment
Well then, it will be okay. I suggest you go to interview practice websites like leetcode and hackerrank,etc to improve both basic problem solving and coding skills
https://carlanderson.xyz/how-to-write-javascript-when-you-dont-know-where-to-begin/
This website will teach you 4 steps to solve a coding pratice but don't use js immediately, started with C++ or Java, Python will help you study easier
Have you ever tried a coding problem, but ended up staring at a blank editor? Maybe you tried to write a simple function, but didn't even know where to begin?
It's frustrating.
After all, you've spent months working to understand JavaScript's basics. You've learned all there is to know about
OHH, thanks for pinging me : )🌹
Hello, I'm interested in responding to your text and I would say, python can help you with your work/job/main project as a medical biologist, if not soon, then later, this field will cross your area for sure. One day, your college will talk about it and somehow you two will have a good conversation. We learn the alphabet before words, so we have OOP before programming. It's just a light read with some notes, this is how you will spend your first hour 😊 I hope you have a productive day/evening.
My pleasure 🌻
I can STRONGLY recommend a Udemy course for learning python as an ABSOLUTE beginner. It is only an hour a day. You do not need ANY prior knowledge to take this course, and it only demands around 1 hour per day.
The instructor speaks super clear and gives tons of examples to make concepts easy to understand. There are small quizzes in between the "lectures" and lots of projects and hands on learning to help you.
Once you get through all of the beginner + intermediate lessons, everything else is optional in my opinion.
This is the best resource to learn how to CODE, but learning how to EFFICIENTLY code is a whole different path that you go down. I am talking about Data Structures and Algorithms. This can be tackled after you learn the language if you so choose 🙂
I am not being paid or gaining anything by recommending this course, just sharing resources that helped me a lot.
Hello! Thank you so much❤️
I am really greatful
Hope you are having an wonderful day too🌸 ✨
check out techwithtim
freecodecamp is great i would personally recommend their python in 4 hrs video from Mike
here is the link
Also, for anyone learning DSA and grinding leetcode, check out https://neetcode.io specifically their roadmap. Super useful tool.
A better way to prepare for coding interviews.
Anyone knows how to print even numbers from 250-100 in Java
You can create a for loop and add an if statement to check if the number is even
If yes, print the number
I want to make it in do while loop
No, actually print the numbers from 250 to 100, in do while loop, the number will go down from 250 to 100 but every 2 step... Means using the do while loop, the number 250 will have to be added with +2 everytime untill it reached down to 100
I kept 250 in a Variable x
And did: while(x>=100);
But it only printed 250.
And if i give (x>100);
It prints billions of numbers without stopping.
Give me a proper command
int x = 250;
while(x >= 100){
System.out.println(x);
x = x - 2;
}```
Thankyou bro!! I am gonna check it
Bro, I am Banging my own head right now, I SHOULD HAVE THOUGHT ABOUT IT BEFORE💀
The number is going back from 250 to 100, so the number will have to be Subtracted with two each time, not added, Who the fruck knew💀💀
Now it works perfect💀 you are a saviour
thats great
Just print a range
for i in range(250, 99, -2):
print(i)
range params are the following:
range(*start, *end, *increment)
Thankyou, I actually already got the answer, it works like charm now, and I even understood everything going on.
Is that another Java Command?
I don't need Java Anymore thanks
Actually i am a Beginner and being taught Java, I am in Do while loops right now, Take care have a nice day
ahh okay! i know java as well so I can help with any questions you may have!
Okay, I will ask you my future doubts, Thanks!
honestly
in the best way possible, i wouldn’t recommend html
it’s not something you’ll actually use. if u understand the basic concepts of components, that’s all you do
it would serve you better to learn node js, and then learn frontend libraries from there (react, angular)
there are plenty of good resources to learn on youtube
hii i'm a bit confused abt the client server model, can anyone explain it to me like im five?
like the process between a client and a server ? @midnight delta
w
dm me
i got an analogy 😂
Does this code cause an infinite loop ?
yeah like if you want to access a page, the process behind it
i couldnt dm you because its set to only friends haha
well that website (webpages) are hosted on a computer somewhere to run the foreseeable future (server). when you click onto a website, you (client) sends a request (asks) to the server to send that webpage content into something visually
the server then sends that content (usually js) and the client receives it, and then your browser renders it into that page
lmk if anything sounds weird
oh i see, but when the servers sends that webpage, does it send the "recipe" to the client on how to recreate that webpage or does it send an actual copy that the client downloads?
as in does the server build that copy itself or does the client build the copy?
it sends the code for it and ur browser builds it
ohhh okay thats the main thing i was confused abt, thanks a lot for clarifying !!
ohh thats a useful idea
ahh srry
what camera did james used in this stream ?
Probably his normal camera with effects on top of it
Can anyone help me? I am fetching data from an API and need a clever way of connecting data. I am looking up NFL teams from their matchups. I want to be able to fetch a team's name from one link to another.
(LINK A)
https://sports.core.api.espn.com/v2/sports/football/leagues/nfl/teams?limit=32
Under "items" are all links to each team. The issue is that these looked to be sorted in alphabetical order at first, but they are not.
(LINK B)
https://site.web.api.espn.com/apis/v2/scoreboard/header?sport=football&league=nfl
If you follow ["leagues"]["events"]["competitors"] you will see ["id"].
I assumed that this "id" would map to each team in alphabetical order (Arizona Cardinals: id = 0, Atlanta Falcons: id = 1) and so on but unfortunately it does not. Maybe someone can recognize a pattern on how they are organized?
For example, the Baltimore Ravens ID is 33, but there are 32 teams in the NFL so my index went out of range. The odd part is that it works for some matchups but that must be luck since they are not sorted correctly.
**Since it is not, how can I match the team matchups (link a) with their respective links in (link b)? **
Here is my code if that helps too: https://pastebin.com/g6sdFuz7
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Im coding in python
why dont u just split the string shortName or name under each game entity in events list
so u can split Jacksonville Jaguars at New York Jets by at, so u get Jacksonville Jaguars and New York Jets @gusty creek
Yes that is a workaround, but I want to get the ref link so I can access that team's stats by its ID. The issue is that the ID #s go in acending order from 1-34, but they skip 31 and 32. This was my issue, I didnt see this. it goes 29,30,33,34 for some odd reason. I put in a if/else block as a bandaid but I need to come up with a more optimal solution now
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
here is a working file
but you can see the mess of an if/else statement in my create_schedule() method
Does someone understand springboot / java ?
is anyone here good in mobile app dev using android studio?? Im trying to recreate this ui design but im kindof stuck on how to do it ;_; much help would be appreciated...
yep
ask your questions here
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<section class="heading">
</section>
</body>
</html>
GUYS THIS IS MY HTML FILE
*{
margin: 0;
padding: 0;
}
.heading{
min-width: 100vh;
width: 100%;
background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(eduford_img/banner.png);
background-position: center;
background-size: cover;
position: relative;
}
for some reason when am running my website the background is not poping out
heyy guys, is anyone here who created a casypass program before ?
Hello Everyone,
Greetings for the day!
If anyone working in UI/UX , UX/UI domain please let me know , happy to connect with you guys.
Thanks,
you need some child elements/values inside <section></section>
you can also add those css values to body instead of section
why is it important for cybersecurity domains such as googke and facebook to safeguard their data?
google*
#include <khepera/khepera.h>
static knet_dev_t * dsPic; // robot pic microcontroller access
int main()
{
printf("\nKhepera 4 - testkh4\n");
// initiate libkhepera and robot access
if ( kh4_init(0,NULL)!=0)
{
printf("\nERROR: could not initiate the libkhepera!\n\n");
return -1;
}
/* open robot socket and store the handle in its pointer */
dsPic = knet_open( "Khepera4:dsPic" , KNET_BUS_I2C , 0 , NULL );
if ( dsPic==NULL)
{
printf("\nERROR: could not initiate communication with Kh4 dsPic\n\n");
return -2;
}
/* ADD YOUR CODE HERE */
return 0;
}
does anyone understand this code
it looks like ur supposed to add some functionality where the comment is, everything before that is just to init it
how can i ignore ".ipynb_checkpoints" when i use Jupyter? does anyone know? :<
what r ur problems?
i don't have ideas and i don't solve problems
i dont understand wht u mean

I have ideas, but I can't put them into practice, and sometimes ideas never come to me
dm me
how so?
What are the ideas based on, Game, App, Program, Algorithm
in java, if you have public attributes , do you still need objects to access them outside of the class?
im assuming now but jus curious
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
what do you mean by this question
Nvm sry I got it answered
void main()
{
char name[10],email[10],gen[10],dept[10],ariv[10],dod[10],cls,y,card[10],o;
int age[10],adult[10],child[10],sum[10],count,opt,p;
printf("xyzUNIVERSITY\n");
printf("by xyz\n");
printf("WELCOME TO TRICOLOUR AIRLINES\n");
for(count=0;count<10;count++)
{
printf("Enter your name:\n");
scanf("%c",&name[count]);
printf("Enter your email:\n");
scanf("%c",&email[count]);
printf("Enter your gender M/F/O:\n");
scanf("%c",&gen[count]);
printf("Enter city of depature:\n");
scanf("%c",&dept[count]);
printf("Enter city of arrival:\n");
scanf("%c",&ariv[count]);
printf("How many no. of adults?\n");
scanf("%d",&adult[count]);
printf("How many no. of child?\n");
scanf("%d",&child[count]);
printf("Enter date of departure\n");
scanf("%c",&dod[count]);
printf("1.ECONOMY CLASS=> 6000 Rs\n");
printf("2.PREMIUM ECONOMY CLASS=> 8500 Rs\n");
printf("3.BUSINESS CLASS=> 15500 Rs\n");
printf("4.FIRST CLASS=> 39000 Rs\n");
scanf("%d",&opt);
if (opt==1)
{
sum[count]=(adult[count]+child[count])*6000;
cls="ECONOMY CLASS";
}
else if (opt==2)
{
sum[count]=(adult[count]+child[count])*8500;
cls="PREMIUM ECONOMY CLASS";
}
else if (opt==3)
{
sum[count]=(adult[count]+child[count])*15500;
cls="BUSINESS CLASS";
}
else if (opt==4)
{
sum[count]=(adult[count]+child[count])*39000;
cls="FIRST CLASS";
}
printf("Press y to confirm tickets");```
scanf("%c",&y);
if (y=="y")
{
printf("total cost of flying= %d",sum[count]);
printf("Select mode of payment:");
printf("1:Credit/Debit card\n2:UPI/Gpay/Paytm");
scanf("%d",&p);
if (p==1)
{
printf("Enter card no:");
scanf("%c",card[count]);
}
if (p==2)
printf("pay at this ID:1234567890");
}
else
count=count-1;
printf("Enter c to continue\nEnter e to exit:");
scanf("%c",o);
if (o=="e")
break;
}
}```
Can someone help me debug it?
Continue to above one
<stdin>:2:1: warning: return type of 'main' is not 'int' [-Wmain-return-type]
void main()
^
<stdin>:2:1: note: change return type to 'int'
void main()
^
int
<stdin>:35:20: error: assigning to 'char' from incompatible type 'const char [14]'
cls="ECONOMY CLASS";
^
<stdin>:40:21: error: assigning to 'char' from incompatible type 'const char [22]'
cls="PREMIUM ECONOMY CLASS";
^~
<stdin>:45:21: error: assigning to 'char' from incompatible type 'const char [15]'
cls="BUSINESS CLASS";
^~
<stdin>:50:21: error: assigning to 'char' from incompatible type 'const char [12]'
cls="FIRST CLASS";
^~
<stdin>:54:16: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
if (y=="y")
^ ~
<stdin>:54:16: error: comparison between pointer and integer ('char' and 'const char *')
if (y=="y")
~^ ~
<stdin>:63:32: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
scanf("%c",card[count]);
~ ^
<stdin>:71:22: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
scanf("%c",o);
~ ^
<stdin>:72:14: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
if (o=="e")
^
<stdin>:72:14: error: comparison between pointer and integer ('char' and 'const char *')
if (o=="e")
~^
5 warnings and 6 errors generated.
how can i stream with old camera ?
can out send it as a code block
cout<<"hello world"
use ` three times in the beginning and three times at the end
The first error states you are not returning anything for main. You have to have int main(){} and return a int. I just use
int main(){
return 0;
}
The next error is you have a char[] array... You cant have a char array only string or int.
Also for if(y=="y") since your defining y as a char it has to be if(y=='y') or y is a string
also your formatting for printf is not correct
||https://alvinalexander.com/programming/printf-format-cheat-sheet/|| printf() formatting page
Overall I would re-read/listen to your compsi lecturer and pay attention to small details.
Got it thankyou much for help.
Written and Edited by: kablaa
Main Website: https://hackucf.org
Twitter: https://twitter.com/HackUCF
Facebook: https://www.facebook.com/HackUCF/
More resources: https://github.com/kablaa/CTF-Workshop
Music:
"Voice Over Under" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0
http://creativecommons.org/lic...
Excellent crash course for anyone who wants to watch it.
not buffer overflows again
The video has nothing related to buffer overflows.
Is someone good at digital logic? Like fsm, logic ports, boolean algebra or verilog language?
I've taken a course
speaking about computer science
What are you having issues with
I've taken a discrete mathematics course in the past
Just understanding better how the delay works in carry look ahead and the difference with the ripple carry.. and also how to create counters from ports to verilog
tcs is so fun
Whats that acronym
its related pretty deeply tho
It talks nothing about the buffer
It talks about stack and heap
Registers
asm it self is quite abt buffer overflows
like pwn in general
u need to understand those topics well enough to be good at binary exploitation
Its a day by day journey of learning
great vid tho
anything related to asm gives me bad ptsd
there are also stack based buffer overflows
infact i think most of them are based around the stack
Ended up summarizing this video, heres the summary:
Every C program has 4 main components:
Heap, Stack, Registers, Instructions
Memory is allocated on the heap whenever functions such as malloc, calloc are called. As well as when global & static variables are declared.
Registers are small storage areas in your processor that store addresses & values (anything that can be represented with 8 bytes or less).
In the x86 architecture, there are 6 general purpose registers: eax, ebx, ecx, edx, esi, edi. Along with 3 reserved registers: ebp, esp, and eip.
The reserved registers are used to index the stack:
ebp (also known as the base pointer. contains the address of the base of the current stack frame)
esp (stack pointer), which contains the element of the current stack frame (top element of the stack frame)
eip (instruction pointer, always contains the address of the instruction that is currently being executed)
The Stack is a data structure comprised of elements, that is managed by operations. These operations include:
Push (Adds a stack to the top)
Pop (Removes a stack from the top)
Mov (Given two arguments, copies arg2 into the location referred to by the first arg)
add (adds the value of the two arguments, and stores the result in the first argument)
sub (Second arg is subtracted from the first)
lea (Load Effective Address) Syntax: Register, Address [Places the address specified by its second operand into the address specified by its first operand. This instruction is usually used for obtaining a pointer into a memory region.
cmp (Compare) This is actually equivalent to the sub instruction, except instead of storing the result into the first argument, it will set a flag in the processor.
jmp (Jump) Compare instructions are always followed by a jump instruction. Takes an instruction address as its argument, checks the state of the flag, and depending on the state, set the instruction pointer to its argument. There are many types of jmp instructions, here are a few:
je = Jump if equal to
jne = Jump if not equal to
jg = Jump if greater than
call (Calls a function, user-defined or a PLT function)
leave (Called at the end of every function, it essentially destroys the current stack frame by setting the stack pointer [esp] to the base pointer [ebp], and popping the base pointer off the top of the stack.)
return (Always follows a leave instruction, since the base pointer has already been popped off the stack, the return address of the function is now at the top of the stack. The return instruction will pop the return address off the top of the stack, and then set the instruction pointer [eip] to the top of the stack)
nice
to install forest
If you go to your Settings, then tap General, then Software Update
already did
Whats the issue?
Old phone
You need to upgrade your phone then thats not something we can help with.
Not my main
Oh
Its a hardware issue nothing you can do you have to upgrade your iPhone to a newer model in order to update your firmware.
3:49
What about it
What about those time stamps
Are you trying to show me the forest app?
can you take a screenshot of the software update screen
Does it say your phone isn't compatible?
@idle dew If you can press the download button still you can just ignore that and still update
anyone already found some bugs from chatgpt?
Heyo @everyone ,
Greetings for the day!
This is my officially first UX & UI Case Study , Your valuable feedback will help me to improve myself as UX & UI Designer , so please leave your feedback and happy new year in advance.
thank you so much!
https://www.behance.net/gallery/160233787/Breath-Mental-Health-App-(UX-UI-Case-Study)
that's right. I and my friends are trying it...
and several large corporate websites
can anyone solve this? im trying to categorise the numbers into a traffic light system(red,yellow, green) and used a for loop and if statement and i just get this is an output
i want those numbers within the column (gen_asp['Work_for_emp_nosocial_impact']) to turn into red yellow and green as an output in my dataset
and when i ran the column again after my for loop code, its still numbers which means my code most likely didnt work 💀
@dusty tundra you are just printing not modifying the array or creating a new one, also if i == ['1', '2', '3', '4'] won't work, you need something like if i >= 1 and i <= 4
I would create a new list and append the labels to that instead, if you are doing something fancier you can use an encoder
Can i pen test the app???
I got some new SQL injections I want to try out 😈
demon
@wild willow i’m looking for a ctf team, wanna team up lol
I had a stroke typing that sentence for some reason
Maybe, cyber is only my minor so my skills are limited
What lvl where you thinking
that’s fine bro, i’m not great either
just for upcoming jeopardy style ctfs
I will send you a friend request and when I am back in school the 5th I will probly be able to
bet !
What distro do you use
i run pop os as my main
on host
but when i need kali i just vpn into it
cuz if you have premium on tryhackme they give u a few instance
Gotcha
I am mint atm and red hat virtual desktop
dopeee, red hat is great
i haven’t tried out mint yet tho
like as ur main os?
Very user friendly and customizable
Mint is main
I have had mint for a couple of years
niceeee that’s a w
yeee felt
i can’t use windows lol , i got used to linux a bit too much, plus i don’t game much so it’s not bad you know
i have played rocket league on linux before though, it wasn’t as complicated to install
are you on htb or thm ?
I just use linux for labtop and Windows for desktop
I dont even touch wine for linux
Heard its buggy and last I tried fucked up and had to revert to last snapshot
yeaaa 💀
i uninstalled it just in case i get windows malware on my machine somehow
i have like a whole malware analysis vm , for whenever i reverse stuff, flare vm hooked with remnux
virus total is great too
for signature based detection
I dont go to much into malware anylyse only because my minor is cyber and i just need the basics atm
yeee felt, it’s like a whole new world , how people say “there are absolutely 0 people in this world who are experts in cybersecurity”
there’s too much to know
on top of that i don’t think there’s one college / uni / course / certification that will teach u malware analysis
it all comes with personal experience like writing proper yara sigs and reports
reversing advanced malware that is heavily obfuscated | packed
and like special malware that’s written in GO LANG, maldocs etc
i’ve tried doing a “hard” forensics challenge on hackthebox and i wanted to end myself
the only reason i got the flag was because i was able to put the pieces of it together and just guess from strings
Guys, i have windows 10, is my upgrade to windows 11 free?
And also how can i upgrade to windows 11? By going to the care center?
I wouldn't upgrade to windows 11 atm
yes it is free but how ralv said it’s not a great idea
true, youtube videos be carrying me
It will put more strain on your cpu but the UI and windows management for 11 is great. If you on labtop with a cpu over 3 ghtz I would say go for it. Other wise I think not switching will extend your pc life a little longer.
Good, But now let me tell you a twisted story, because (because my life is twisted)
Actually for some reason, the windows 10 of my PC became slow, and it's not turning on Anymore (because of bad hardisk sound, we guessed it's because of the hardisk, hardisk died, will the service centers give free windows 11 after giving a new SSD? Also if not windows 11, will they be able to make the windows 10 come back? (And yes I am moving to SSD)
(Sorry for silly questions, i am 14 :/)
Just ask them they should be able to do what ever windows you want. If you have windows 10 legally the update is free no matter what. I dont think a hard drive could break windows unless a virus was installed. Just take it to your service centers and hopefully they can fix it. Some times trying to fix something yourself will no knowledge can further damage it.
Yup, And someone explain my father, he already tried uninstalling certain softwares by accessing the file from thar Recover mode(i mean he clicks a command and it takes you to the function from where you can insert a Window or something) he did it 30-40 times, he agreed to go to a service center but still he is saying that "i could still try harder-" 💀
Does anyone here know multiple linear regression using C++?
Just make sure the cpu is 2.5 giga Hertz or more. If you want to have full support for programming. 8 ram is fine you dont need an ssd if your on a budget.
is here any c sharp expert?
chatgpt
i had to make method of adding a product through the input, is there any website or video which can help me make that (its like a very basic dot net (c sharp) program)
adding a product in a shop cart*
Pls help with c and d part
Highly doubt these will work on a mobile app tbf ;p
i just started learning c++ and the jargon and the words it uses confuses me, what should i do?
Cry and start learning again and then a small cry break and continue again
Eventually it will somehow make sense
anyone usign Linux as a main machine for everyday use for college?
well, i have been learning them the right way all along
any frontend here? need help thanks
what u are still in high school -_-
i use it for coding and doing task which i would say are college equivalent
and have been using linux since last ~2 years
Nice! Awesome job starting early with coding 😄
learning java rn
and if i have variables in my main method but wanna communicate to another do i need to use objects?
hmm noice cool cool
Hi guys! Could you please help me with Algorithms and data Structure(Java). I literally cant understand it. 6-10 ex. i need help really bad. deadline will close in 2 hours=(
I need help with understanding wtf is fanin and fanout and how to apply that on adders, any notes or articles would help🙏
are you using a company, school, or personal account?
school
I liked these questions
I'm sure the professor who gave you these questions is a good person
hi
Anyone here has inkpalm 5?
then i would talk to your school about your account
probably talk to the front desk and they might give you the contact information of the school's tech support team
anyone studying statistics?
i know only the basics
ok I am a bit confused why does the while statement end when I put as a statement '\0' or NULL is it because this character represent the end?
this string concatination code made me start thinking about this
C is fuc**ng insane man
if you main C you gotta be a lunatic fr 100%
oh, no:( i'm sorry
I must become a lunatic in order to help people
do you know of any websites with hardcore exersises in C?
you mean that it could cause problems with memory if it exceeds the amount?
I am practicing coding with pointers, because I am too used to using variables all the time.
it's for an upcoming exam, it isn't like I wanted this.
you are right
o okkk
thanks
yeah turns out its a school district wide problem
hello, i need help about python, is there anyone that can help me?
does anyone with eletronics knowledge want to help me with some exercises?
Hello studying for an exam and have some questions about networks, how many simultaneous connections with a single router NAT are possible and why ?
me but high school one lol
u dont need to use them at all
granted its all opionated based, but imo, cpp and c are some of the best languages you can learn
you learn so much since u program at such a low level
yo quick question in C if I allocate memory with malloc and then decide to allocate more memory with malloc the new memory will be serially allocated to the previous right?
oh damn hopefully it can be resolved as soon as possible - gl with school 💪
Does anyone know why i cant turn on my bluetooth ?
mybe you need an extra bluetooth stick
at least my pc needed that stick to get bluetooth
i used to be able to connect normally
Is anyone here good at python and sql that could help me with some work?
thanks man
I already did it man
ty for sharing books on your page. From the coincidence that I was just looking for that, I really appreciate it.
does anyone know how to put timer on my video when joining a voice channel?
where
just open a pomodoro timer in a chrome browser and select to stream that chrome browser
ppl are using 3rd party software apps like **OBS **that allows you to edit whatever you want on your video
im pretty sure there are many videos about setting it up - adding timers, images, etc.
Can do when I get home
Does anyone with some Python Knowledge wanna help me out on a project? I cant import a module although its installed
the one with uml diagrams
google extensions vpn
look up on chrome
if ur on firefox look up firefox extension vpn
Hey guys! This message is mostly for CS students 🙂 I'm thinking on the idea of opening a coding club at my uni, though I study economics. Could you please share your knowledge on how coding can be applied in economics/business. I would really appreciate to read your opinion on this!
Hey guys This message is mostly for CS
Anyone that knows how to use geoda?
hey guys! Does anyone know how I can redesign a report in excel using visual basic?
hello I need help, can someone tell me what is wrong with my code? I am currently doing CS50P, and when i run the check50 command , it shows error but when I give input manually , it seem to work
def main():
time = input("What time is it? ")
hours, minutes = twenty_four_hours(time)
hours = int(hours)
minutes = float(minutes)
time = convert(hours, minutes)
meal(time)
def twenty_four_hours(n):
a, b = n.split(':')
a = int(a)
b = b.lower()
if "p.m." in b:
a = a + 12
elif "a.m." in b:
a= a
else:
return(a, b)
b1, b2 = b.split(' ')
return(a,b1)
def convert(c, d):
d= d/60
return(c+d)
def meal(m):
if 7<=m<=8:
print("breakfast time")
elif 12<=m<=13:
print("lunch time")
elif 18<=m<=19:
print("dinner time")
else:
exit()
if __name__ == "__main__":
main()
the error given by cs50 is :
:) meal.py exists
:( convert successfully returns decimal hours
expected "7.5", not "Error\n"
:| input of 7:00 yields output of "breakfast time"
can't check until a frown turns upside down
:| input of 7:30 yields output of "breakfast time"
can't check until a frown turns upside down
:| input of 13:00 yields output of "lunch time"
can't check until a frown turns upside down
:| input of 18:32 yields output of "dinner time"
can't check until a frown turns upside down
:| input of 11:11 yields no output
can't check until a frown turns upside down```
idk what is wrong
can someone help
hello, i have a question. when i transfer my files on google drive does it take up storage on my laptop? does it mean transferring them on gdrive is useless when i want to free up space by deleting files in my desktop?
your convert() function is returning "Error\n" instead of "7.5" for that test case. Means you havent accounted for an input case. Dont know what this exercise is but you should take a look at what that function is expected to return and think about where it would cause an error
curiously are you using python3? in python 2 using ints like 5/100 will floor and return 0
when u upload your files on google drive a copy of the files is stored on the google drive so you can delete your files from your pc but if you ever need them back just go to your google drive and download them from there
i checked manually , it is not giving any error
Whats the test case?
For now just try hours = float(hours) on line 4. Got a feeling its probs type issue
Did that , still showing same error
Wait a sec , i send
see so basically the question is, user will give input in either 12 hrs or 24 hrs time format, it only 7:30 is given , means it is in hours, but if p.m. or a.m. is given then we will have to convert it to 24 hr format and then to decimal (like 7:30 p.m. shld be converted to 19.5 and if it lies in the time slots(either breakfast or lunch or dinner) then it shld give the output and if it is not in the time slot, then no output)
this is the code for checking output through a program, when i run this i get errors
there is one additonal challenge with ques ( i coded keeping that in mind also)
Hello
Where do i start with learning how to make simple programs? Any books/courses/websites/whatevers?
I have never done anything like this before (besides VERY simple c++ programs and even simpler html websites in highschool that i had to do but didnt necessary enjoy at the time) and i am clueless where to start
Just want to do it in my free time, will probably NOT practice more than 30 mins/day unless i really start liking it
Im a law student, midterms just ended for me, so im just looking to spice things up i guess
hello @elder swan... You can start with web dev its easy and fun but if you want to learn more about programming and all you should start learning C. Its going to give you a lot of basics like it did for me...but remember that its just my pov and i got it from my experience, so you should ask more people and look for what you want as a priority so you can aim the best programming language for you.
Int(b1)
Do cs50
still showing error
ok, since I cant see what the actual input for the test case is, I shouldve asked you to do this earlier. add print() statements throughout execution and do a trace of your code. print the variables as well as their types. when you run the test they should show up and you can go from there
hours, minutes = (input("What time is it? ").split(':'))
minutes = minutes.split(' ')
hours = float(hours) + 12 if "p.m." in minutes[1] else float(hours)
convertedtime = hours+(float(minutes[0])/60)
out = "brekky" if (convertedtime >= 7 && convertedtime <= 8) else ("lunch" if (convertedtime >= 12 && convertedtime <= 13) else ("Dinner" if (convertedtime >= 18 && convertedtime <= 19)))
a short way to write your code if you wnat to look at something, dont be like me and use ternary operators like this tho
you could just try change your convert function to this:
def convert(c, d):
return(float(c)+(float(d)/60))
i need help with a python project
you need to think about why the testing program would output an error from your convert function. It could me a typeerror, syntaxerror, a whole range. but since the function works on your dry run its probably not a syntax error. so i'd think that its being given the wrong type and youre not handling it
@abstract willow post your question i can try help
do you have any script that covers everything in python 3 like i need to make soemthing that covers
All 4 basic data types and various operators
Input statements
Formatted output
Error Handling
Password protection
Modules(suggest Math and Date/Time)
Functions with parameters
Conditional Structures
For and While loops
Advanced Data Types(lists)
Searching
what are the 4 basic data types? int str list dict? ord float long double? i dont get what youre asking for
what are you trying to build?
you can look for competitive programming templates and they will cover some of the common ones like inputs and formatting
are you looking for a type of reference sheet or something to use for learning?
ik nothing abt python but i have this assignment due @ 11:59 and i just need a file that uses some of these elements
yo anyone that knows C ?
pull up google and look up a python tutorial on each of these elements and write a script
if you write something and its not working and you post it here im happy to help
havent used it in a while but if you post i can try
ok so
I am making a program that uses nested structs and I dynamically allocate memory for both through malloc but I don't know how to store values, I am kind of lost.
dont know how to do that either but post what you have so far maybe we can figure it out together
this looks useful
code so far
I am finished with pointers and dynamic mem. allo. and now I am moving on allocating mem for nested structs it works but I have no clue how to store values in the allocated memory.
tried a lot of stuff and even moved the for outside the function of mem allocation to make it easier still throws errors
The struct is similar to the array used in the c programming, but the only difference is that an array contains the values of the same data type whereas the struct contains the values on the basis of user-defined data types. The structures in c programming provide better performance when we have to deal with small groups of the same values. In t...
It might help if you try just assigning for the non-nested struct first. Then when you can get those values stored try the syntax for nested
you can use this as a parallel to refer to
in this scenario I think there is too much going on and youre trying to debug in one file, if you use that small example in another file and just mess around with that and run it I think you'll esaily figure out what the problem is
thank you I guess, man C sucks sometimes...
I sucks that it has to be one of my main languages alongside rust
yeah I think graphics/games/space industry is the only places its used now. most of the fast movign tech side of things is all java and python, even though theyre legacy codebases
(90% of the time)
found the problem was my fault 100%
man I hate C
it's like you try to start an arguement and then the truth gets smacked in your face
the problem was the memory wasn't getting allocated btw
because I wasn't using call-by-reference
that is not supposed to be celebrated
they use too much memory
and too many components for simple code
rust is starting to blow as well due to how good the compiler is.
I am looking forward finishing C and moving on because I am 100% sure one day C will die completely
development overhead for C is crazy though. I cant imagine developing any product in C other than games or highly optimised systems because you can whip up products in java and python so quickly and leave everything to dumballoc
Can sb help me with my python code?
just ask
alright, thanks!
Hello you all, is anyone studying /studied anything related to Compilers / Parser / Syntax-Directed-Translation and so on? I really need your help. 🥰
just here to say i can help guys in C or Go if needed !
anyone expert in AI i have a test tomorrow
just ask the question
Don't ask to ask, just ask
This is quite specific but if anyone is dealing with code I'd like the assistance.
My problem comes with learning g coding in general, specifically OOP. How do you visualize the code your working with? When you are learning about, say, a MERN stack how would you go about remembering the different ways of coding them, what objects we are manipulating, the environment variables etc?
Tl;dr when you are looking at code you have to learn, what is the best way to visualize how it all connects and how to write it up again so it works properly?
Try making a diagram to show how the elements of the code are related to each other, such as how the processes of each function affect the code. You can try this on a piece of paper to make diagrams or in Canva, in Diagrams.net, Excalidraw or TLDraw.
In addition, try writing down comments to explain what each part of the code does. This will help you remember what they do, making it easier to modify the code when needed.
hi there everyone, I'm learning Node.js and the guy teaching me is too fast XD, can anyone recommend study material for Node and also I'm having issues using Mongodb offline. Thanks
Thank you for the advice 🙏
Hello everybody, I'm preparing for a Databases exam and I was wondering if anybody know a website or a youtube channel with people solving exercises like that one. Any kind of source would be helpful.
Hey guys I wanna make an app or website tho I have zero knowledge on it but Im willing to learn. Anyone who could help me?
Aww thanks
Hiii, Im trying to create a logistic regression model for this table where the contraceptive use (No and Yes) will be the dependent var using R. How do I transform the contraceptive use columns in order to build the model? Does the weight parameter in glm() help?
I need a help in C
😭
hello is there someone who wants to make 2 simple websites with html and css only (would pay a bit if wanted and fast enough)
