#tech-related-help
1 messages · Page 6 of 1
and the expected outputs:
I really want to learn
because it tooks 2 weeks to finish this code. My level is introduction
Thank you in advance
I'll take a look in a few hours if no one else has gotten to it, yet. What are your outputs that are different from expected?
I can write the outputs. Your the first person to answer. Thank you
Sage’s money: 100
Number of games: 3
Game 1
King's cards: ()('Diamonds', '3')
Total value: 3
Sage's cards: ('Clubs', '3')('Spades', 'K')
14
Do you want to hit or stand? [H/S]H
Sage's cards: ('Clubs', '3')('Spades', 'K')('Clubs', 'K')
Total value: 25
You busted! You lost!
Game 2
King's cards: ()('Spades', '2')
Total value: 2
Sage's cards: ('Spades', '8')('Spades', '6')
14
Do you want to hit or stand? [H/S]H
Sage's cards: ('Spades', '8')('Spades', '6')('Diamonds', 'J')
Total value: 24
You busted! You lost!
Game 3
King's cards: (*)('Clubs', '10')
Total value: 10
Sage's cards: ('Clubs', '8')('Spades', 'A')
18
Do you want to hit or stand? [H/S]S
King's cards: ('Spades', '5')('Clubs', '10')
Total value: 15
King's cards: ('Spades', '5')('Clubs', '10')('Hearts', '8')
Total value: 23
King busted! You won!
Final money is 50
Process finished with exit code 0
I bold the differences in my codes and the outputs in one test this outputs are different. If the content of this code is necessary I can send you the purpose of this code.
This kinda doesn't make sense
Like the line where they hits, and then the sage gets clubs 3, spades, k, diamonds j
This is from the previous game
if anyone understands of eletric circuits could u pls explian how u get the equivalent resistance of this circuit (may not be english name sry im not english)
I forget if this means if the switch is going to be on or not. I'm assuming it's going to be on.
So we can assume R1 is in series with R2 & R3, but R2 & R3 are in parallel: Req = R1 + 1/R2 + 1/R3
R3 isn't alone, as it has an inductor. so assuming angular frequency we turn it into R3_L = R3 + 2pi * f * L
The new equation will be R1 + 1/R2 + 1/R3_L
I think this is right, but haven't touched physics in a while
Oh ı did not understand
hmm i see thanks
Like how does the sage get those cards is the question
When you hit, you are supposed to get an additional card, not a new hand
yes you are right.
do you still need more help, Alice?
Do someone know blender ?
I wanna know if its possible to make the camera taking all your screen
yes I did not find the mistake in code
hi im fairly new to c and c++ i wanted to know if there is any way to learn them both in parallel... the thing is i need to learn c to just score well on my university exams while i need c++ for the projects i actually wanna build... i do not have a ton of time but i see myself going back and fourth between learning c and then learning c++ so i end up wasting a lot of time and messing syntax up i mix c c++ and even python syntax up while programming 🥲
Hi, I have a IBM thinkpad T60 and i´m trying to install arch or kali linux. But I have some kind of problem related with the kernel when I try to boot. Does anybody know any solution? In case not, How could I download older versions?
It's a T40 srry 😅
C++ is a superset of C. If you learn C++, you will know everything in C. You will just not know what C doesn't have that C++ has, if that makes sense.
Update BIOS and maybe try disabling some non-essential hardware in BIOS. Don't know what the true issue.
If this doesn't work, use the arch or kali linux archive
great job making the differences bold. that really helps. Their expected output seems wrong if a king is worth 11 points. They have 3c Ks and Kc, that should equal 25 if a K is worth 11. In regular blackjack, a K is only worth 10, so I'm not sure what the rules are in this game.
In the second bolded part, it's hard to say. The cards are randomized through shuffling, but you're using a seed value of 0. If their code also uses the same seed, but perhaps on a different version of the python library or something, the randomness yield a different value.
Resolveu? rs
Oh thanks, How can I fix this
do they give you rules for what you're supposed to do?
yes I can send you
ye ye i figured it out haha
has anyone here ever made a PCB in KiCad?
hello everyone!! can anyone help me to clear some doubts in blender to create virtual room
Hello, had anyone ever tried doing pwn buffer overflow CTF's?? xc I cant get the flag on this one
yes
Everyone, I need your help. What actually happened to this laptop screen? Is there a clue??
err the boot screen or the white line down the middle?
i get that screen on my laptop when i take out the ssd
Boot screen. Never mind with that white line lmao
i would recommend takin it by someone to fix cos i think that screen has a bunch of different causes
might be ur drive is not connected properly
or the boot order is wrong
or the drive is corrupted
i am an art major so idk xd
if i had that screen i would
- unscrew back of laptop, take out drive and plug it back it and try to make sure its atleast connected as best as it can
- make sure boot order is correct so go into BIOS, go to boot order tab and make sure drive with os boot is the first one that boots
I have a terminal IBM model m atm, and I want it to work on my regular computers
does anyone know the best way to do that?
currently my soarer's converter connects just fine but my computer doesn't register any keystrokes or anything
I think what I need to do is swap the PCB with one designed for a personal computer (basically one that is PS/2) and then use a soarer's converter off of that to remap the keys bc the terminal board doesn't have a super key and has a couple keys in weird spots
if anyone has any suggestions or anything lemme know I want to figure it out
just dm me if you got something for me
does anyone know how to turn hard code into secure code in c programming?
ive been struggling for this QQ
Build the code like your solving that case and then expand to include other cases
But I prefer you just start from the top and do it again like you're coding for multiple cases
can sum+= pow(numdigit,digit) be written in any easy/different form in c++ ?
It's gonna be longer and even harder to do because you'll just use a for loop and do the pow function yourself
like we can write sum++ or sum= sum+1
in that way can we simplify it ?
sum ++ is the most simplified way
sum = sum + pow(numdigit, digit ) is this correct ?
okii thankssss
No problem 😁
🙏
i have a 2016 ipad pro, it’s quite slow and dies in <4 hours. i was wondering if it was worth getting an e-reader or just sticking with the ipad. i use notion on my laptop (my main device) to organize my notes between devices (my pc and ipad) and mostly just use txt documents or word documents. however going into my a-levels i’m getting a lot of textbooks, some i’ll be using digitally, so would an e-reader be worth it?
try a factory reset yet?
Can someone recommend some graduation project idea thwt involves machine learning im a cs student and i want to open my mind on how things work
- Language modeling on mobile devices. 2. Trading with machine learning 3. Neural ordinary differential networks 4. Cloud infrastructure for machine learning services 5. Distributed training of neural networks 6. Data analysis with graphs. These are some research projects i did. I can give a small intro if you want to do something like this or similar
If you want increase your chances on the job market i recommend 4. Actually 2. is also good for this. If you want to do a good scientific research then the rest are good
so the thing is i have to get a project idea like a real life project and use different type of developments like app ,web and also it have to include machine learning
if for example i say i will work on planner or something simple like that it wont be accepted
- You can built a bot or an app that trades bitcoin on some demo account using machine learning models
ok i will research more about it and if i need help can i ask you?
sure thing bro
i need urgent help
is it better to use 2 operating system on single drive ??
i thought of using windows and linux on my ssd and keep hdd free ?
it's called dual-booting
ya but should i use u drives or 1 should be better to boot them ??
like should i keep both of them in sdd or 1 in ssd and other in hdd ?
both in the ssd is fine
also there are a lot of youtube vis explain that
as I told you the keyword to find vids about is => dual-booting
write it on youtube
ok ok thanks 👍
Which is better hp victus or acer nitro
Victus
can u pls send me the file lol i have to do it for school and i been behind
cbs following master zen full tutorial its due like
soon
hi can anyone avalible for a python homework objection help?
elaborate your problem please
I did not understand the problem
the outputs does not match the teachers outputs
I sent you a DM about it.
hey, currently have to learn network engineering for uni and there's something that I'm not sure about; does subnetting increase the amount of usable Hosts in an IPv4 network? I'm pretty sure it doesn't but wouldn't 192.168.0.128/24 refer to a different host than 192.168.0.128/16, even though they "share" the same adress? Or is subnetting just a concept that isn't even implemented in the IPv4-packages but rather used to visualize and direct the routing of packages?
No, subnetting does not increase the number of IP addresses. With every network (even subnets) there is one “address” that used to identify the network as a whole, then another is used for the broadcast address on that network.
Subnetting is a technique of dividing a single IP network into smaller subnetworks or subnets. This can help to reduce network traffic congestion, enhance local routing capabilities, and save IP addresses.
When subnetting is done, the number of usable hosts per subnet decreases while the number of subnets increases.
Regarding your question, 192.168.0.128/24 and 192.168.0.128/16 refer to different hosts because they have different subnet masks. The subnet mask determines which part of an IP address is the network portion and which part is the host portion
Ok, I think I understand. Thank you a lot for the relatively easy explanation 👍
Should I learn Java or C# after Python?
what are your goals?
I want to learn programming. But the main reason I want to learn these two programming languages is to make games. I don't know which one to learn first.
C# tends to be used in the Gaming space, especially with programs like Unity. Someone else I am sure can confirm or deny this 🙂
yes, 100% learn C# if you are interested in game development
I don't really see a reason to use Java in game development unless you have some platform specific need like you want to do something on Android in Java...
but Unity uses C# and can build to Android or iOS for you
Thanks, I will consider what you said.
Been software engineer (job) since 2017, coding since 2015. I programmed in all of those languages.
I will try to give some advice, hope it helps 🙂
C# is game development or .NET tech stack (web apps)
.NET is not as popular when compared to Java/SpringBoot stack or Python stacks.
So I would consider C# only for game development.
C# is widely used in Unity engine, which powers most of indie games.
C++ is also very popular for game development (e.g. OpenGL library), especially for low-level hardcode stuff. It is also used in Unreal Engine, which powers a lot of AAA games.
Java and generally JVM languages (Kotlin, Scala) are for large-scaled enterprise applications (server backend).
Most of enterprise apps are jvm based.
Java and framework for it: SpringBoot is basically a gold standard for eterprise web services.
You will never be out of work, they are always required, but there is a chance you might not be doing a lot exciting stuff.
Kotlin (which is JVM based language and similar to java) is native language for Android applications. If you want to program android apps (not games), this is the language. Java is discouraged for Android apps, currently most native android apps are Kotlin based (though a lot of apps are now being written in Flutter framework which uses Dart I believe).
- Python
It can do most of stuff Java can, though slower.
But it is easy and it can do machine learning (AI). So if you want to do that, python is natural choice.
If I wanted to do game development I would pick C# and Unity Engine.
If I want to do backend/AI stuff I would pick python.
If you have any questions, let me know)
I would disagree that C# is only for game development, at least in the United States, C# is very popular among businesses, especially in areas near Microsoft satellite shops. C# is especially unpopular among FAANG type places, but otherwise, it's pretty big.
with a lot of FAANG layoffs, the ratio of jobs has improved for C#,too
True, it is popular as well, what I meant that I would not consider it since in my experience Java/Python is a better/more popular choice, especially since most of the stuff nowadays running on the cloud where Java/Python is extremely popular)
All major players (AWS, GCP and Azure) are heavy on Java/Python )
also, .NET is not the web tech stack, but maybe ASP.NET
Azure is a microsoft product...I'm sure they're heavily integrated with .NET
you can probably two click publish from visual studio into an Azure deployment
at the end of the day, it depends on what companies/industry you want to go into, and if it's gaming, like he said, then C# is 100% the answer (compared to Java)
Yes, I use Azure at work, we use Python for all services (major medicine company).
Previously I used Java.
Overall, again, just my opinion)
as a side note, for these kinds of questions, this is a good resource
Good resource! I think they have for 2023 as well
the 2023 survey shows 30.6% of developers use Java and 27.6% use C#. that's pretty close!
that's closer than I thought. I wonder if it will overtake Java any time soon
I hope Python will outrun them both at some point, with AI hype and all 🙂
I personally really dislike working in Python and love working in C#, but everyone has their own preferences
I was a game developer so if you have questions shoot it. I used Unity.
have you ever launched a game on steam? have you worked on any multiplayer games? what genres?
I wasn't a PC game developer. I worked on multiplayer games. For Personal project I worked on an RTS game. For business FPS type
It reallly depends what part of the game industry you want to be. It also depends on company type too. Some companies are very much not professionalised. They do whatever when programming a game. And, some companies value recruiting specialists.
Game Developer I think is a very broad term. You can breakt it down to several more terms. Gameplay programmer is one of them. They widely work on scripting the gameplay. Game Engine Developer is it is what you hear. Tools Engineer (I also did this) is something you do to help the development environment. Graphics (If you are doing .shader but Unity migt not need this. Rather technical artist) Network Engineer (If the company is a bit big) sometimes even people specialized more on physics.
But, if there is no specialization in the company probably a game developer has idea in any of this field. As well as programs these. Therefore, being a game developer requires understanding of several other discipline if the targeted companies do not have specialized roles.
Would it be enough to know C# at first to use Unreal Engine and Unity? And do you have any suggestions about programming? What I should or shouldn't do?
To be able to use Unreal Engine, you need to study C++. Although, its not a pure version of C++, still it requires for you to understand and apply c++. So learn C++ for sure if you are going to go for Unreal Engine.
Unity on the other hand preferred by many studios since it uses C#. However, C# in Unity is following a bit different pattern than usual. Due to the fact that its own SDK and Monobehaviour-based programming.
What you should do is open and start grinding experience on these programs (up to your choice). Don't worry about your clean code and what you shouldn't do at first. Because to be able to understand what you shouldn't do you should understand what you are doing. Plus, there will be loads of questions in your mind about how to do stuff.
Once you've started, I can suggest you a Game Development Math channel where you can increase your skills about space geometry, matrices etc (You don't need this but it gives you flexibility when you are writing some scripts. Also, it gives you basic understanding of what you're dealing with.)
Yes that would be nice and thank you all again
Is rust good enough for building low latency systems in hft?
I won't need my multiplayer feature for quite some time, but I'd like to structure my implementation such that I won't need to recreate everything once I try to fit multiplayer in. Are there any resources that you would recommend? I'm an experienced C# programmer, but first time trying to write network multiplayer code and relative beginner to Unity.
Depends if you want to use unity netcode or sometning like mirror framework. But you might need to restructure some parts
However you can build on top of singleplayer.
Like another layer but uses multiplayer movements etc
yeah, you can think my model will be like FPS, so I am already thinking about what client is going to do hit detection and confirmation. It's low/no budget, so I can't have my own dedicated servers. I am thinking I will have to accept that my game will be easy to cheat in but would like to minimize the egregiousness it to some degree...like maybe allow a very generous range where they can claim they shot from and shot to, but not from across the map or something
You could be more experienced when it comes to designing multiplayer approach to be honest.
If it comes to systems and algorithms such as trigger systems due to object positions etc without using colliders(since it gets trigger) thats what I like
yeah, there's a game in my genre that is singleplayer. the community asks him for multiplayer often, but he says he can't do it without rearchitecting the whole game...I just don't want to get trapped in that position if possible
I should try to find some Unity discords to join, maybe 🙂
First, try to find a framework that you want to use. Let me send you netcode
There are sample projects that you can find through this. Download and test how they are developed. Also: https://docs-multiplayer.unity3d.com/?_ga=2.124046349.660531791.1686679138-2010455084.1636063859&_gac=1.180045654.1686756323.CjwKCAjwyqWkBhBMEiwAp2yUFoJ7lbuUglGwuka4opZKtKC4pJMMF9lWmZhaQ7SjkmVtRoFwdbopChoC07QQAvD_BwE
This site provides Unity Multiplayer documentation, references, and sample code tutorials.
However, if you are going to use mirror:
https://github.com/MirrorNetworking/Mirror#made-with-mirror
thanks!
I need to research to figure out the pros/cons of each framework
reading the mirror docs, it seems like it should be able to handle what I need, though
Netcode could have had advantage too I haven'T c hecked thast out but Unity itself released it
after more research, fishnet has a lot of good reviews, too
Haven't heard that before
If you any questions about Unity hit me up
ty so much! 🙂
does anybody recommend a website or youtube channel to learn mips assembly? im lost in my computer architeture class ;-;
don't have a resource, just a tip...especially for MIPS, if you're lost, you need to start from the very first part that you don't know. Everything builds on top of each other, so it's going to be impossible or very difficult if you try to do things out of order
thanks for the tip @dapper niche
Anyone here familiar with i18n library, it is used to add multiple languages in websites
does anyone know what math is needed for gave dev? currently i’m only familiar with vectors
if you have a role where you need to do a lot of 3D space manipulation, then parts of linear algebra mostly. Very likely will want to know kinematics/physics as well.
https://www.amazon.com/Mathematics-Game-Programming-Computer-Graphics/dp/1801077339
thank you so much!
I worked with it a little bit (but really a little bit, I just translated some static texts in several languages and then displayed an icon which language to choose).
return {
userId,
userName,
category,
};
}
export const rows = [
createData("#876364", "ABC", "Manufacturer"),
createData("#876364", "ABC", "Wholesaler"),
];
export const tableHead = ["User ID", "User Name", "Category"];
i m passing tableHead to a component, how can i add i18n to change lang of this data, or should i use other array of tableHead with different language and change it via state management?
i did it with state management in vue using vuex. every time user chooses language using an icon it will update the value lang in vuex store. it will then automatically trigger components to reload because components are tied to data in store. Additionaly i also put it in browser store so it persists across browser restarts/reloads
there is also a way i believe to have a parameter to i118 which sets an a language based on ip of the user. So if user comes like from country in europe it will display language of that country if present
but i am not sure if all that is correct way, i am not a frontend dev. there are also other approaches like embedding language into url as path. But it did not work for me because i had Single Page Application
if you have questions on my implementation let me know 🙂
hm, thank you ill see what i can do
Anyone has any idea how to deploy graphql backend for free :/
yes. google aws amplify.
Is that free?
it is free to deploy. but if users will use it and you will have traffic then yes you have to pay. But check aws free tier, maybe there are some yearly free quotas there)
yeah there is a free tier for it as well it seems)
250k queries for the first 12 months after sign up are free i believe
Okay thanks :).
Hey just started to learn TS, I am using codeacademy and stumbble upon the 'product ' file like this
{
name: 'fanny pack',
price: '30',
preOrder: 'true',
},
why all of the data type is in single quote?
Can we declare a data type for them or it is not good practice for TS
railway.app is another free hosting service. i often use it for deploying side projects or small sized projects
https://railway.app
a tutorial from apollo graphql - https://www.apollographql.com/tutorials/side-quest-deploy-railway/02-deploying-apollo-server
would be better if you share the "product" file
okay bro
BRO
FRЕЕ GIFТ DISСОRD NIТRO - https://u.to/0E67Hw
does anyone have tips on making your first game in unity? i want to try making a short rpg game but am struggling with finding good tutorials on youtube that actually explain the steps instead of just telling me what to do
I am not a game dev, but this guy really helped me during my computer graphic class (it was 6 or 7 years ago though), I needed to create RPG game in Unity:
https://www.youtube.com/@awesometuts/featured.
He also has some courses on Udemy, which are like 10-15 bucks for 30h course.
I think this one is very popular as well: https://www.youtube.com/@Brackeys, but I don't know this channel
thank you so much! appreciate it
so i've been borrowing this laptop for a year from a friend and it's time that I will give it back to him, I wanted to put all my files to google drive so I can clear up all my files from this laptop. do you guys think it is fine to put it on my drive?
lol what do you guys think?
btw it's 86GB total and I currently have 2TB subscription but only a trial for a month lol.
instead just save an image of it and then share that
wdym
this is used for forensics but im pretty sure itd work the same
or if ur gonna do al that i recommend using the api if possible
are you replying to a different person?
nah he's saying you to archive it to a .img file
What will happen to ur files after 2tb subscription. Will it jus disappear like poof
it doesnt, you wont be able to upload files and recieve emails that's it.
i decided to upload it lol
because it isn't really my important google account, it is for gaming stuffs and random accs
but im not sure if I could actually still recieve emails because I had been recieving it even after I reached the 15GB mark even before I started my trial subscription
im hoping i could still recieve so if there will be an emergency such as changing passwords id be able to do it.
Hey guys, do you know ressources to learn more about embedded systems ?
I already know GNU/Linux, I know programming via python (although I learnt more about algorithms and how programming works) and I was wondering if there's anything that I'm missing out on here
yo anybody know how to unlock phone without losing data, cause i forgot my pincode and i really want to have my pictures
what type of phone is it ?
You can upload it to aws s3 maybe. Check aws free tier to see if it will be free for 12 month.
You can also put it in aws S3 Glacier, it is even cheaper.
Check the prices thgouh
Or just buying external HDD...
Anyone know how to customize a simple widget code in Javascript? I'm trying to customize this widget live chat box to a different width.
Hello!
I am CS Student and my 3rd year is gonna start soon, I only have basic coding knowledge as of yet and I want to crack a decent internship, I just want to know what projects would you guys recommend building by integrating blockchain and ai together or by making use of the technologies separately. I am open to suggestions from everyone!
My target is to make at least 3 projects in a time frame of 5-6 months or less if possible, I am ready to put in the time even 10-12 hours a day. Just advise me on what the most efficient projects according to you are to display my knowledge of the fields.
As of now I have basic knowledge of blockchain and I am entirely new to ai, I know a lot of you might say that these are not domains that can be mastered in such a short time but I don't need to master them just yet, I just want to build some decent projects that I can include in my resume because as of now it is completely empty.
guys is taking harvar's CS50 a good poing to start? i have no knowledge on the subject.
or should i just learn random coding language at a time ? let's say python.
- some live coding excercise. try leetcode. 2. Create a solid service on the cloud so you can present it live and put it on github. Or better 2 projects. What the service does is not that relevant, but putting some simple machine learning logic will win more points i think.
I got a job when i was in my first semester, i just showed them my github and projects and then did some live coding. Good luck!
CS50 is a good introduction to CS, if you want to learn Python, go with CS50P, if you are more interested in Web Programmaing WITH python, js, etc then go with CS50W, or for CS in general just aim for CS50x and then you can choose what you want to do next
Anyone know any good resoures online for studying elecrical engineering
if you only have basic coding knowledge, I would say what's the point of trying to crack into AI and blockchain? Do you specifically want an internship in the AI/blockchain field? If not, you should focus on the fundamentals. Otherwise it's like trying to learn physics without having strong algebra skills. You'll be trying to learn two things at the same time when not knowing one thing will make learning the other that much more difficult. AI/blockchain is "fancy," but if I'm interviewing a newgrad, I'm going to rigorously test their fundamentals. Specific domain knowledge would just be a bonus.
any web developer here, im kinda dumb, and i need help
Depends on the person, their personality, their objectives, etc.
Quick personal opinion on the various languages you listed:
Python - Good for someone unsure if programming is right for them. It'll give you quick results with very low friction and frustration. Python is also heavily used in the industry, so chances are high that it'll be useful skills in the long run.
Java - Covers same use cases as Python, but in a structured way that's more "standard" or common in other languages. There's more boilerplate and slightly more friction than Python. This structure will transition you very naturally to C#, C++, JavaScript, etc.
C++ - Most modern programmers have probably skipped this. This is the highest friction language where it'll take a lot of work to create anything resembling software you're used to interacting with (aside from command line apps). This is a good starting point and target if you're already committed to being a professional programmer and won't give up AND you want to work in domains where having knowledge of lower level details will matter or industries that use C++ (high frequency trading, game development, etc.)
Win/mac doesn't matter too much unless you want to do development specific to that platform or iOS.
I started with java. But depends what you want to do. If it is just general question i recommend starting with python. I think it topped java some years ago as most popular language. Generally python is suited for most things devs do, from backend to scripting. It also is very well suited for big data (pyspark/databricks) and machine learning (most ML libraries are python based). I even write cloud infrastructure with it using cdk. So in 2023 I would definitely pick python over any other language unless I have some specific needs. Ps: it is also the default language people use in leetcode style interviews because it is easier to use python for graph/array problems.
what kind of coding do you want to do
Also, try not to get paralyzed trying to choose what language or tech to learn. it takes 1 week to 2 months to learn a piece of technology, generally speaking. If you work for 40 years, that's 480 months. So...2 months max out of 480 is nothing. It's the concepts that you learn from learning the tech that's important and will carry you forward in the future.
An experienced programmer can pick up the fundamentals of python in 1-7 days or so
can you throw out some examples of space research, like specific fields
you're fine, and you'll do great! your dad will be super valuable when learning
good luck!
you are self taught or just learned from college
heree. I haven't programmed for a while but I think I can help you. what's ur problem?
Can anyone help me with AutoScraper if possible?
Gonna do comp sci next year, does anyone know which languages would be most beneficial to study over the summer?
I'd suggest do Java aur C++
the ones your school uses, assuming you meant you were going to school?
otherwise, I'd say the main market languages to learn are python, javascript, java OR C#, C++ extra credit...and SQL
I need help fast and it would be greatly appreciated. How do I upload a custom html website project to a wordpress.com hosted website?
project structure looks something like this
index.html
about.html
css/
style.css
workshops.html
workshops_html/
workshop1.html
yes, it is better to stick with the one your school uses as was already mentioned above. Otherwise you can scroll above and see similar question was posted two days ago and there are answers)))
i just need u to understand i dont know any tech but i do am trying to learn but my brain is like built like a 2 year old. i dont understand how i need a web hosting in order for me to connect my domain, i paid one but i just dont understand on where ill put my code but 😵💫 yh i dont know if that makes sense
yeah chill i understand
I don't know much because I always used free hosting.
I understand that when you buy a web hosting, they give you access to a control panel where you can put your code or link it to your github repository, and add your domain
i dont understand the term github reporitory, i have a github tho hahaha
it's just a ✨place✨ where u upload your page code
Yo what laptop u usin
how do i get my function to quit saying "'i' does not exist in current context"? im basically trying to just define the function before I actually use it in the forloop, which uses the variable i in the counter.
nvm i got it fixed :_)
hi do you still need help?
no i figured it out
ok good luck
thanks for offering tho: )
you are welcome
guessing you just needed to make "i" a parameter in the Grade function
it's funny how cryptic error messages are because they're so technical and not plain english...but eventually they start making sense somehow
also, you can just call .Average() on the arrays instead of computing it yourself:
LINQ Average method usage examples. Average in query expression. Commented Enumerable.Average implementation. ➤ double result = list.Average();
Hello, my name is Ahmed Elbeltagy, and I am a doctor currently preparing for the USMLE (American board) exam. I apologize for any inconvenience this may cause, but I wanted to reach out to my previous email contacts to inform them that I have a new email address. Unfortunately, my previous account was deleted by fault, and I lost all my data on Discord🥲 💔 . As I value your support, I thought it important to keep you updated on my progress. I will be sending friend requests to all my previous contacts soon. Thank you for your understanding and continued support✨ 💐 ❤️ .
@everyone
does anyone know any good tutorials on how to interact with npc characters and make them drop an item afterwards for a unity 2d game? so far i’ve found videos that help with only the interaction part
i just started coding with python and i importet some stuff for a project but now other things dont seem to work... i would like to use import random but the command just turns dark gray and wont work... can anybody help me?
A in app purchase Problem
Any good book recommendation to understand programming preferably Python?
were you able to fix it? probably was something about python environments
Are you a beginner? Python is a low-level language, if you start programming I would recommend C or C++, that are high-level and you'd learn more key concepts. However, if you really want to start learning Python, the "Python Cookbook" is a good recommendation
that's the opposite of how things are usually phrased. "low level" means closer to hardware and exposes more details. both python and c/c++ are high level languages, but c/c++ are considered lower level.
omg, my bad, got confused right there 😅 you're actually right
the random library comes with python standard library
I don't use Pycharm as an IDE but I think it turned grey because you imported the library but never uses it in your code,
Nope I didn’t look at it anymore
It’s weird cus it worked before and now it doesn’t work anymore
show me some of your code?
you can use this website to past you code
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.
you don't need to sign up or login
are you coding on CLion?
I'm used to code my Python code in VScode, so I'm not familiar with another IDEs, but there must be something about your python evironments or interpreters, search for that and you might find some solution on the internet
Hey guys I’m saving up this summer to get a semi-decent laptop. I’ve had my eye on rugged laptops (mostly for the look) are things like Panasonic any good for handling coding and programming apps?
Programming requires very, very little compute resources, generally speaking. There are a few exceptions, of course...like if you were working on a HUGE project that you acquired from somewhere else or game development or anything with a massive amount of data, etc. will get sluggish without enough compute.
You can probably do most college curriculums on a $50 computer
I'd recommend used macbook like 1.5-2 years old ones (that ones that were returned immediately or was just sitting on demos/shelves), they are pretty cheap. It is unix based so commands are the same as linux.
To effectively perform computer programming, you would typically need a computer with the following specifications:
-
Processor (CPU): A fast and capable processor is essential for running programming tools and compiling code efficiently. Look for processors with multiple cores and high clock speeds, such as Intel Core i5 or i7, or AMD Ryzen 5 or 7.
-
Memory (RAM): Sufficient RAM is crucial for running programming environments, compilers, and multiple applications simultaneously. Aim for at least 8GB of RAM, but consider 16GB or more for complex projects or multitasking.
-
Storage: An SSD (Solid State Drive) is recommended for faster program loading and file access. It helps improve overall system responsiveness. Aim for at least 256GB of storage, but more is better if you work with large files or databases.
-
Graphics: While programming doesn't heavily rely on graphics, a dedicated graphics card can be beneficial for tasks like running virtual machines or GPU-accelerated programming. Look for cards like NVIDIA GeForce or AMD Radeon with at least 2GB of VRAM.
-
Display: A high-resolution display (Full HD or higher) provides more screen real estate for coding, debugging, and reading documentation.
some of my friends are struggling because They have a simple computer, Visual studio or android studio (both) need a good computer to run smoothly.
ThinkPads are a no brainer in this field, cheap and reliable, if you need to repair it, spare parts can be found for like 10 buckz
Thank you
Got it
Saving this thank you
I was considering a thinkpad
Any DevOps Engineer here? I have few questions
is there any way i can allign the grade and credit hours to a row like it shows in the top left example? i set up a ClassDetails() function to write it in the console using escape sequences and it works fine with the first 3 courses, but the last 2 course names are too long so it staggers them out of place. i know i could just type it out with Console.Write() but i want to make it adaptable for incase if i want to change the course names
if you want to adjust the columns based on the longest entered course name, you would find the maximum string length and use that as part of the configuration
int maxLength = courseNames.Max(c => c.Length)
something like that will probably do it
does anyone here use a virtual machine (parallels) on mac to use power BI? i'm having trouble signing in to import a google sheet 🥲
basically i selected some always allow option & now that option never pops up again and idk how to get it back 😭
You don't necessarilly need all that hardware. Learn how to really use a computer first. Get Linux, get minimalist software, learn the gnu coreutils, learn bash, get rid of your bloated IDE and you might be suprised how fast "old" computers are.
yea, C++ was created back in the late 1970s...people were programming back then on what would be toasters today.
yes he can choose a lightweight text editor or integrated development environment (IDE) like Notepad++, Sublime Text, or Visual Studio Code.
focusing on learning programming languages that don't require significant processing power, such as Python, JavaScript, HTML, and CSS. These languages can be used for web development, scripting, and basic software development.
He needs to avoid resource-intensive tasks like 3D game development, machine learning, or video processing, as these may require more powerful hardware.
there is also another way which is useing online coding platforms like Repl.com, Codecademy, or freeCodeCamp, which allow him to write and run code in his web browser without installing any software on his computer.
Is anyone here familiar with tensorflow's function tf.GradientTape()? I want to compute the gradient of a function cost(k,c) in respect to its parameters, but I'm having trouble because cost(k,c) returns a float number
Any network engineer here ?
Still haven't understood why exactly do people use that?
it’s like the toyota of laptops
I might try to help with e.g. infra! 🙂
That really doesn't help me understand
yo, i'm currently learning OOP in python, and we've been doing getters and setters. but what I don't get is: what exactly does the getter do? all of the error-checking and defensive coding seems to happen in the setter, and i don't really get why the getter needs to return an attribute. this is probably a really dumb question ;)
you would actually understand this better in a language like java or c
usually, when doing oop, we give variables private access, meaning we don't allow someone to do object.attribute and get the value of the attribute
so in that particular class you can't access to an attribute with object.attribute directly, but only using object.getAttribute()
we do it because it helps to protect the data
Generally speaking, getters and setters allow you to run extra operations before getting or setting the value. Perhaps when you set the value, you want to set something like "10000," but when you get it back, you want it in the form of "$10k" ... just a made up example.
some characteristics of why some people might like thinkpads or older thinkpads:
- function over form. instead of having things like unupgradable or repairable components to make things super thin to look good, the components do their jobs and can be replaced or upgraded as necessary.
- reliability -- thinkpads were/are developed for the business market, where reliability counts for more than flashiness that the consumer market products often make tradeoffs for.
- keyboard -- older thinkpads probably had the best laptop keyboards ever, personal preference of course.
- trackpoint -- some people like the trackpoint 🙂
- value -- since they are so reliable and repairable, cheaper used ones can be smart purchases.
- culture -- I think because of all these reasons, there's now an "image" for young thinkpad users where they end up expressing that it's more about their skills and what they can do rather than how fancy their equipment looks.
That's more of an exterior look
What about what it offers as in functionality?
what's more of an exterior look?
can you elaborate?
an example of my own opinion is the 12" macbook. It was made super thin and looks cool, but as a result, the keyboard is awful
if you think of servicability and upgradability as part of functionality or not, I guess that's up to you
if my system is useless in the future because it doesn't have enough RAM to run my target application, I would say it's lost its functionality
also for "productivity," the older thinkpads have taller aspect ratios
I heard that it was good for data encryption, for example.
I honestly don't know what you're talking about, not trying to be difficult. But hopefully I answered your question about why people might like thinkpads.
but why would one need two functions for the job? couldn't you format and error check all in the setter? thanks
you may want to store it in a different format compared to how you retrieve it
it's not really a common thing to do, so I wouldn't worry about it too much
okay
but I'm coming from the world of C#, maybe in python it's used more frequently? not sure
oh yeah, academic stuff is all made up stuff, haha
but if i may ask one more question, could you help me understand what the getter does specifically and what the setter does specifically? thanks for your time
from a C# perspective, they don't "do" anything. They only allow you to write your own code that executes when they get called. For example, if you were to ask "what does a method do?" Well, methods don't do anything except what you define them to do
setters get called when you try to set the value of a property, and getters get called when you try to get the value of a property
what they "do" is whatever you define them to do
their key value is when they get invoked and they happen to pass the value as an argument when the setter is called so that you can interact with it
omg this was the one
tysm
my brain has been unlocked now
okay, great, hope it helps! haha
tysm <3
👋
Hey guys I am going to be starting college in the fall for cyber security and started a blog just to track my progress and try to keep myself accountable you can find it at https://raider-sec.blogspot.com/?m=1 or follow me on instagram @ raider_security
hi im now studying cyber security in university as well haha
Do you like it so far
This summer I’ve just been doing a bunch of try hack me, picoCTF, reading a ton of books and trying to learn Python and Linux
this is my sem 1 in fresh year
currently the hacking is not covered in the lecture yet
we are now learning maths, c programming and introduction to cyber security
ya i like it so far
do you learn programming in c?
Thinkpads are also among the few computers that can be librebooted.
I haven’t started learning c programming yet just Python but I started reading a book called hacking the art of exploitation and they go a little bit in c programming
You'll most likely learn C in college. It has more specific knowledge and interesting relationships with the hardware of computers, since it can deal with more low-level structures such as memory usage. I'd suggest you to start learning the basics
There are courses that teach C++ or Java as well, but C is a good intro to both
Hello, has anyone ever used the MSP430G2 LaunchPad from TI? I would need some help trying to set up a connection between the micro and the PC
Does anyone have some browsers recommendations? Currently using Opera GX
maybe if there's something you don't like or find missing, you can make your own browser extension
I'm trying to make my own tab manager extension right now
anyone here knows how to use silvaco? , i need help with some parts
Hi everyone, I'm trying to implement a Gradient Descent algorithm to determine the k (spring constant) and c (viscous friction coefficient) of a damped harmonic oscillator experiment. As you can see, the blue line fitted well with the orange data in the first picture, but the second one kinda sucked. I don't know much about the relationship between the number of iterations, learning rate and precision, but something is really off. Can someone help me?
Brave. It's like chrome but much better in terms of privacy and usuability, as it's more customizable. Extensions: Use Vimium or Vimium C for vim bindings. OneTab is also a nice extension. Dark mode of course. Video Speed controller. Keepassxc browser for keepassxc integration.
Minimalist browsers you should try out: qutebrowser, vimb, browsh, w3m, links, lynx, elinks
Literally never heard of those browsers before, wow, they all seem so interesting
I don't use Vim so Vimium C won't be required
Although, what's keepassxc?
I don't have a lot of time rn gotta go speak latter sorry.
Alright. Thanks for the help
onetab is actually the extension i'm trying to replace with my own. I want to add more keybinds, filtering, sorting, categorizing
Im back. So chrome the browser is based on the open source chromium which is also the base of Brave. That means everything that works with chrome should work with brave, like chrome web extensions for instance. Keepassxc is a password manager. You should really get a password manager, for strong passwords is a security basic requirement. So as for the other browsers, as you don't use vim, no need to have a look at qutebrowser or vimb, as they are meant to be vim-like browsers. Browsh is a minimal browser in that it significantly diminishes bandwith usage by loading images as text (I mean it uses unicode colored characters to approximately render images). The other browsers are terminal browsers. w3m is really a pager, but it can work as a browser, getting the html for a page and paging it. Terminal browsers can be handy when sshed in a server, when your xorg server crashes or just as a minimal browser for instance. Plus I love the terminal.
Arc if you're on macOS
Still brave is best in my opinion
That would actually interest me I was seeking to replace Onetab with something better too. I like having everything as files on my system. Are you working on an extension or something? Edit: just saw your previous message.
Do you know of a way of exporting all the tabs in the browser as a text file? I was thinking to use something similar to the bookmarking system Luke Smith uses with a little bit of bash.
Onetab misses easy ordering and categorising of lists of tabs in my opinion, so I switched to Better Onetab but it's full of garbage javascript and lags terribly. I want something simpler, with text because text is universal and something I can change and fiddle with however I like.
For the password management, I got bitward
I find it really comfortable
I'll definitely look in Brave and Browsh
I'm going to start studying Java and C++ in the summer so, I don't know if that will help with other browsers
In any way
I think I'll go with
Brave
in the past, what I had to do was read the local storage that OneTab was writing to and used my own script to process it and resave the file...an interim messy solution
I was wondering, Brave has a restore previously opened tabs on launch feature, so surely that means it stores the opened tabs in a file somewhere. Maybe it could be possible to read from that and to change that file to whatever list of tabs I want to restore.
maybe try here? https://superuser.com/questions/662329/how-do-i-recover-tab-session-information-from-chrome-chromium
@idle dew Was thinking, having a password manager on multiple devices wouldn't only increase the chances of it being accessible in case of hackings?
If a password manager only appears on the phone then if someone hacks into a computer, he wont have the password manage
If however appears on both phone and computer..
what you're talking about is encapsulated in the CIA triad (more devices = more availability/ease of use at a cost)
Makes sense.
It maybe that you overfitted model on the orange data. So the blue line is always the same because it was overtrained it on specific dataset. So when you try different dataset it does not work.
If you have overfitting the following can be applied:
- increase the amount of train data. Try various data so it generalize better.
- train less. The simple trick is that you need to stop training when evaluation metric (e.g. double square error, precision, or whatever metric you use) stops improving over several epochs.
This is general advice, of course there are other things you can do (google how to avoid overfitting)
Does someone know how to configure the VirtualBox? i need to install the VMs in another Hard Drive but i can't
why don't you use vmware it's more user friendly in my opinion
just click on that arrow and surf into the other hard drive from my pc or something
yea I just did it the other day. I don't know how to help you because it just worked for me. Are there any specific errors you're getting?
I always used VirtualBox for studying, my ex-professors from my previous technical course told us how to use it, i learned about it a little but i never tried to change the hard drive, but now i need to xD
it does a error after finishing the process
when you start the process of installing it does a error
Lol ... just find out
It was an error with the HD permission
I tried with another HD and it worked, so i just gone through all the settings because i wasn't allowed to modificate everything there
I installed virtualbox there but i couldn't install a VM there
but now i can
Anyway, thanks for helping @dapper niche @crimson thistle 🙏
hi guys im about to become a major in data science and AI and i was just wondering what i should proactively seek to learn before entering university
could i ask you for some advice?
no worries
i'm curious tho, if i may ask, are your vms linux distros ?
Windows and Linux
nice nice
anyone here knows how to use silvaco? , i need help with some parts
Hey bro, sure 🙂
My specialization at college (starting from 3rd semester) was machine learning, data science and data engineering. I also worked 2.5 years as ML/MLOps engineer + have a cloud certification in machine learning from AWS.
It depends on what you want to do but this is some general advice:
- For college: first, focus on the basics (bias/variance, gradient descent, optimizers etc.) and the data (Exploratory data analysis, Feature engineering). A lot of models are already pretrained nowadays -> anyone can use them by simple import. 95% of work is to process data before training, making sure there is no data leaks etc.
- For career: Focus on the engineering part, a lot, especially cloud stuff. How to host a model, how to deploy it, how to automate retraining. + Do projects, like side projects.
Hope this helps a bit. If you have any questions let me know!
is this... a scam link?
don't trust those links, they are scams
anyone using linux
I need a help
On my other system, the ethernet is connected but it's saying no internet access...
Hi why is it that I can't connect multiple routers to a modem?
does anyone how to increase the range of the routers
you can try wifi repeaters
try to ping 8.8.8.8 through your terminal to see if you can reach. You can also try to dig to check if your dns can resolve
You should be able to, but it can depend on your configuration. There's a few answers to routers connection on google
does anyone here work with matlab?
Thanks
I did it, but it isn't working
When I freshly installed, it worked fine...
But after changing the kernels due to the screen flickering, the ethernet is not accessing internet.
By any chance are you using Linux Mint? I know it has a lot of ethernet troubles
Is it a dualboot? Sometimes you need to check if windows is sharing ethernet or something like this
With windows quick boot i think, i could find the forum message about that
that was very detailed, i'll keep it in mind. thank you 😄
Can anyone tell me the roadmap to learn ML or how they learned it?
https://i.am.ai/roadmap/#fundamentals majority of what you need to learn is in here
ML is there as well that becomes more specialized to AI later on
I am trying to create a programm to move my mouse randomly
but it doesnt wor
this is the error i get... could someone help me
Do u think I needed to the install kernel which is the latest...
hello is there american students there ?
i'm french and i have questions on applying to american universities
i'm an undergraduate and i'm going to enter in a french engineering school and i wonder how can i apply to the MIT in parallel
hello guys i am willing to start my software dev journey and i am wondering if i should learn react or flutter can u guys please help
As a great general rule always download the most recent thing as they are the more secure. I don't know if it can help with ethernet but it doesn't hurt to try ^^
The program is fine, I use the same to prevent from laptop sleeping when uploading videos to youtube.
KeyBoard interrupt Error is when you interrupt process yourself. Like pressing Cmd/Ctrl + C.
Try to run your programms in isolated .venv or conda environments.
I use this:
import pyautogui
import time
SLEEP_SECONDS = 60
counter = 0
while True:
x, y = pyautogui.position()
pyautogui.moveTo(x, y)
time.sleep(SLEEP_SECONDS)
counter += 1
if counter >= 300:
exit(1)
Yes.
- Number one (most important): Free coursera course on ML (2013) from Andrew NG, it is also on youtube. It is basically a standartd course for basics of ML. He explains most math basics in very easy manner. This course is like hello world for ML, most people did it.
You can also take second part called Deep learning or Neural networks or something like that to understand gradient descent in neural networks.
PS: don't do any homework here in his courses, it is outdated, but basics is essential.
-
Udemy course on python + data science. To get understanding of how to implement all of that (I recommend Jose Portila). scikit learn, Numpy, matplotlib etc. For Deep learning learn PyTorch, not Tensorflow.
-
Build your projects (on the cloud, like AWS or Azure). You will learn the rest by doing (e.g. large Transformer models for example for generative AI, NLP etc.).
It is essential that you learn that.
After that you are good to go for ml engineer, at least it was in my case some years ago.
Thank u, I saw the video of a YouTuber yesterday, he said similar things too
but first he suggested to learn about packages like numpy, pandas, and matplotlib to make the foundation
And after that I should start Andrew NG course
No problemo.
PS:
At some point you will learn deep learning. Some advice to not waste your time:
-> don't bother to learn tensorflow/keras for deep learning, always use Pytorch, it is industry standard. Most model libraries like HuggingFace are hooked on Pytorch. Tensorflow/Keras was popular once, but PyTorch is now way more popular.
Okay
flutter is cross-platform mobile development, primarily. It is also used for frontend development of websites, but very rarely.
react is one of the 3 biggest players (angular, react, vue) for frontend development.
If you meant "react native", then it is also cross-platform mobile development.
So depends what you want to do. For career in frontend development I would definitely suggest react. But if you want to build your own side project in mobile space then you can go with flutter.
Ok
@here yo, I have solved your problem? https://dailyfrontendproblem.com/ need a feedback.
yo does anybody know what ide/code editor james uses?
Depends on your budget and program you will use
i think emacs
a mac (I bought a used one, 1.5 y old, that was used only to displaying stuff, it was 45% of original price), it is unix based so most scripts work just as linux, but without overhead to do stuff manually. The only thing it does not do good is game development. But it is the best for developing most other stuff, in my opinion.
Sure
I don't know how I'm going to program, I don't know anything yet but I'm going to learn hahah
I have a Windows and Arch Linux dual boot PC here
Thanks for the tips, should I get a Mac or a thinkpad
*I will take.
if you are not yet sure what you are going to get your hands into then i suggest buy some windows laptop. You will obviously have easy option to switch to linux in future which is much more robust and loved for programming.
Now about what laptop to get, well honestly I don't really use windows laptop but if someone asks me to suggest one, i'll probably go with MSI Katana GF66 if its available in your country.
About thinkpad however, don't hate me but I don't think it is very cost efficient, but that could be because the country I live in so eh
But if i had money, i would probably get a thinkpad because I like the aesthetic lol, also is quite powerful
Hello there
In september I'll start CS in uni and I wanted to ask how should I setup my current desktop computer, if I should install Linux on a VM or whatever. Literally any tip to optimize my computer for CS, thanks in advance.
I think he is an emacs user. but that's a operating system, not a code editor.
congrats on starting ur computer science program. for me, i think u can start with operating System. While it ultimately depends on your personal preference and the requirements of your program, many CS students find it beneficial to have a Linux distribution installed. Linux offers a robust development environment and is widely used in the field. You can install it as your primary OS or use a virtual machine (VM) to run Linux alongside your existing operating system.
and also learn and use a version control system like Git. It will help you keep track of your code changes, collaborate with others, and manage your projects effectively. u can also create a GitHub or GitLab account to host your code repositories and showcase ur projects.
dont foget the backups and security. Regularly back up your important files and code repositories to prevent data loss. Consider using cloud storage services or external hard drives for backups. Additionally, install reliable antivirus software to keep your system protected.
emacs is an os sorta
I dont remember correctly but i think he uses arch linux in which he uses emacs for coding stuffs
Will definitely install it as a VM, do you have a tutorial for that?
Don't know what a git is, I got a github account though for future necessities. I also don't know what a repositoire is
On that matter I was thinking of creating a Home Network Drive
And for the antivirus, what would you suggest?
do I really need to clean my laptop internally? or let it be, there is no issue with my lappy, but I haven't cleaned it internally ever since i bough it 2 years ago....I do clean it externally everyday....
any1 any advice?
Yes you need to clean inside of your laptop.
sure, these are some of the tutorials infos i found online and from my friend.
firstly,
visit the VirtualBox website (https://www.virtualbox.org/) and download the appropriate version for your operating system. Run the installer and follow the on-screen instructions to complete the installation process.
Then,
choose a Linux distribution that suits your needs. Ubuntu, Fedora, and Debian are commonly recommended for beginners.
Visit the respective distribution's website and download the ISO file for the latest stable release.
Then,
open VirtualBox and click on the "New" button to create a new virtual machine. Provide a name for your VM and select the type and version of the operating system (e.g., Linux, Ubuntu). Allocate the desired amount of RAM for the VM. A minimum of 2GB is recommended, but you can allocate more if your system has sufficient resources. Create a virtual hard disk or use an existing one. The recommended size for the virtual hard disk is 20-30GB to accommodate the operating system and additional software.
then youll have to configure VM Settings
Select the newly created VM from the VirtualBox main window and click on the "Settings" button. In the "Storage" section, select the ISO file you downloaded earlier and attach it to the virtual CD/DVD drive.
In the "Display" section, increase the video memory to enhance the VM's graphical performance. Explore other settings as needed, such as network, shared folders, and USB support, to customize your VM
And start to install Linux on the VM
Start the VM by selecting it from the VirtualBox main window and clicking on the "Start" button.
The VM will boot from the attached ISO file, and you can proceed with the Linux installation process. Follow the installation prompts, such as selecting the installation language, disk partitioning, username, and password.
LASTLY
Configure the VM and Install Additional Software. Once the Linux installation is complete, you can customize the system settings, install updates, and additional software as needed. Set up networking, install development tools, and configure your preferred programming environments.
Rmb to consult the official VirtualBox documentation or online tutorials specific to your operating system if you encounter any issues during the setup process.
Thank you SO MUCH for this.
Git is like a time machine for your code. It helps you save different versions of your code as you make changes. You can go back in time to previous versions if needed. It also lets you work on different features without messing up the main code. Git makes it easier to collaborate with others and keep track of your code's history
I was thinking of making a clean install of windows again but I'll just clean everything up.
A repository, often called a "repo," is like a folder or storage space for your code. It's a place where you keep all your files and their history. The repository stores different versions of your code, allowing you to track changes, collaborate with others, and easily access previous versions if needed. It's like a central hub where you store and manage your code for a project.
personally, im using kaspersky. but u can try avira, avast, bitdefender or norton. It's recommended to review the specific features and pricing of each option and choose one that best fits your needs.
Thank you again for this.
Rmb to back up your data before formatting the hard drive and have the necessary drivers and software ready for installation.
I'm noting you could make a youtube video or essay on this, hehe
HAHHAHA noo, im just collecting some useful information for u 
Thank you a lot, mind if I send you a friend request for future problems in case of need?
i dont mind 
hmm If ur laptop is running fine without any performance or overheating issues, cleaning the internal components may not be necessary. However, if you notice problems, such as overheating or reduced performance, it's a good idea to clean the internal components to remove dust and improve airflow. If you're not confident in doing it yourself, seek professional help to avoid accidental damage.
@deep hull should I use WinDirStat to clean up my computer?
I have installed Ubuntu in VM but don't know how to use it. Although i have vs app in window, i don't have it in Ubuntu. What should I do next? I need to install all apps I need again?
yes you have to install apps separately in VM
then i will
Thank you
mac/thinkpad as others said, but I will also add I'm a big fan of microsoft surface laptops because the aspect ratio of the screens is 3:2 instead of 16:9 or 16:10.
It was recommended to me so I used it. I didn't find it extre~mely helpful since most of what was taking up the internal storage space was some chunky system stuff itself but - it did help me recognise some big Adobe apps that I didn't need and were filling up the space so I got rid of that. I'd say WinDirStat is good for some garage cleaning.
I used it
Didn't quite help much
I wanted to delete garbage system files
Hey does anyone use Neovim here??
you learn vim first
then switch to nvchad or any similar config
once you get used to it, you can build your own dotfiles
Yeah you are right but I am already using neovim
I was just asking because I wanted help in configuring lsp in neovim
do you have Mason setup?
if not then you can have a look here https://github.com/williamboman/mason.nvim
if its already setup, do :Mason and install the preferred language server
No I have the neuralnine thing setup
https://youtu.be/JWReY93Vl6g
This one
Today we will go through the full setup of the Neovim editor including an advanced config. We will use the WSL on Windows for that.
Config File: https://github.com/NeuralNine/config-files/blob/master/init.vim
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: https://www.neuralnine.com/books/
💻 The Algorithm Bible Book: h...
oh i have never seen anyone doing that kind of setup
Im not really sure but im guessing thats outdated?
Honestly if it is very confusing, you can just use already configured nvim like nvchad
WinDirStat is a tool that helps you analyze disk usage on your computer. It visualizes how disk space is being used and helps you identify large files or folders. While it doesn't clean up your computer directly, it assists in identifying files you can delete or move to free up disk space.
I also got an urgent problem
I need to finish the installation of the VM, but the VM won't actually turn on and apparently it's because the Virtualization Technology isn't turned on
To turn it on I have to access my BIOS and apparently, my BIOS, has a password enabled
ALT + R won't bring up the recovery password
So I'm locked out of the bios
I'm trying to search for another way to enable Virtualization Technology
If you're unable to access your computer's BIOS due to a password, you can try using default passwords specific to your computer model. If that doesn't work, you can clear the CMOS by removing the CMOS battery from your computer's motherboard. If you're not comfortable doing this, contact your computer's manufacturer or a technician for assistance. They can provide a master password or guide you through the process of resetting the BIOS password.
Removing the CMOS batter from the motherboard is too risky
Asking for assistance though will take too long
Don't think Asus will even acknowledge the problem
what about try power off ur computer completely and disconnect it from the power source. then open the computer case and locate the CMOS jumper on the motherboard. The jumper is a small connector usually labeled "CLR_CMOS" or something similar. next, by moving the CMOS jumper from its default position (usually covering pins 1 and 2), you can reset the BIOS settings. and then leave the jumper in the new position for a few seconds and then move it back to its default position. lastly, close the computer case, reconnect the power source, and power on your computer.
That is also really risky
A clean install of windows would do the job?
Or flashing the BIOS maybe?
hmm i think performing a clean installation of Windows can help bypass the BIOS password. but It involves completely reinstalling Windows, which overwrites the existing operating system and its associated settings. so, remember that a clean installation erases all data on your computer, so back up important files first!! You'll need Windows installation media and a product key. Follow the instructions carefully during the installation process.
oohh flashing the BIOS is a potential solution to bypass the BIOS password. It involves updating the BIOS firmware with a new version provided by the manufacturer. BUTTT, it carries risks and can cause damage if not done correctly. so its better if u do ur research and follow specific instructions for your computer model, backup important data, use official firmware, and consider seeking professional help if unsure. Approach the process with caution due to potential risks involved.
@deep hull researched a bit more, installing window again and flashing the BIOS WONT fix the problem
hmm then i think it indicates that the password is likely stored in a different location or there may be additional security measures in place.
why dont u try to contact ur computer's manufacturer or a professional technician for further assistance.? bc attempting other methods or procedures without proper knowledge or expertise can lead to unintended consequences or even permanent damage to your computer.
There's basically no risk in trying to use jumpers to reset your BIOS. Why do you think it's risky?
I would argue that flashing the BIOS is even more risky, and yea, installing windows has nothing to do with bios configuration, so that won't work.
For the simple fact I can't see the CMOS battery on the motherboard, out all of the clutter that there is
You don't need to see the battery, you only need to access the jumper. The motherboard manual will tell you where it is.
CMOS Jumper, that's the name?
depends on the manufacturer, Dell even has a specific "password reset jumper"
yea #12
no, you need to connect the two pins
You need to connect the pins using a jumper block, you can borrow it from a different part of your motherboard if there is one, just make sure to put it in the same spot
wtf
otherwise, you can connect it using something metal like a screwdriver or ballpoint pen tip
once you connect it, probably just need to hold it for a few seconds and then it should be reset
Just to summarize
I turn off the pc
Use a jumper block for one minute
Pull the block out
And I'm good to go?
I would add these steps, but that's just me...
turn off the pc > unplug the power cable > press the power button a few times to help drain the power > resume the steps you indicated
I just need to find a jumper block
or a screwdriver or anything metal
fork, knife, etc.
sounds scary, but maybe there's a youtube video showing it to put you more at ease
nope
paperclip
Clearing your cmos wll help out reset the bios so your computer can boot again or fix any other problems.
Like, comment, and subscribe
What about this one?
I don't know what that is, but looks way too big?
just watch the video i linked, should be pretty straightforward
you can also disconnect the power supply from the motherboard as another precaution, if you feel comfortable doing that
To add if anyone is using this method, please make sure your pc is completely off as well as the power supply switch is set to "OFF" to avoid any complications.
Thanks everyone for the help! It worked
And to think just a paper clip would have worked
nice! yup, it's not as scary as you thought 🙂 the real question is, why did you steal someone's computer and not get their password first 😄
hehehehe
To be honest I'm not understanding when the BIOS did decide to setup a password on its own..
I'm wondering if one can access his virtual machine from remote, mobile included
you definitely can...how hard is it to configure? I don't know, but fundamentally, the network messages need to redirect from the host pc to the VM. I RDP and SSH to VMs all the time
I love learning more about this, what's RDP and SSH?
Learn how to use Remote Desktop in Windows.
you can remotely use windows with the GUI and everything. you'll have to google ssh to get more details. When I use it, it's just like having a terminal open on the OS, no GUI
Thank you very much!
can someone give me recommendations about how to learn deep learning /ML ( total beginner here)
Think this was asked like 3 times this week lol
thank youu so much
i am also interested in image processing but idk how to start it exactly , if someone can help me have a clear vision on that , it would be great
i can help.
I solved it already haha, thx dude
start by doing some image recognition tasks.
Use YOLO model. It is one of the best, very lightweight as well.
I once built signature detection model with YOLO and put it into a service, it is still used in the place where I used to work.
Just google it "YOLO model image recognition", plenty of resources, use the recent ones 🙂
PS if you need just process some images and manipulate them in the form of multidimensional arrays/matrices use python-opencv (also ton of tutorials). It is an industry standart and works great with other libraries like numpy for matrix manipulations and Pillow for displaying images.
thank youuu 🤝🏼
ooh how is it like in hardware
I don't understand your question, can you clarify?
how do you like being in the hardware industry
I'm not. I'm a software engineer, but I've built a lot of PCs in my life. I just took that picture from the internet to help someone reset their CMOS
Hey guys do anyone of you know any projects that include cybersecurity and arduino
Apparently you can make firewalls and keyloggers w/ arduino
cooollll what is knowledge prerequisites
it would be complex as a first project, but i'm currently building a GPS Tracker/Connected alarm for my bike
i wasn't ok with every gps on the market because they send and keep every log of gps/alerts for 3 years on their server unencrypted and can give it to gov if asked
it have vibration detection, mouvement detection and crash detection as well as real time location
everything is encrypted on the arduino and decrypted on the device/app i built
with my server that connects both and store information, but totally encrypted and knows nothing about my location/trips
the relationship with cybersecurity would be encryption, you will learn a lot of how encryption works on low level and how to make effective encryption (that isn't just a MD5 hash), how sha really works and how encryption keys works and manage them effectively
does anyone know how to use photoshop well
anyone know where i could learn how to use arch 😭
u can try Arch Wiki, https://wiki.archlinux.org/ . its an excellent source of information for Arch Linux. It provides comprehensive documentation on various topics related to installation, configuration, package management, and more. The Arch Wiki is highly regarded and often considered the go-to resource for Arch Linux users.
or
Arch Linux Installation Guide, https://wiki.archlinux.org/title/Installation_guide
it provides step-by-step instructions for installing Arch Linux from scratch. It covers the installation process, partitioning, bootloader configuration, and initial system setup.
or
Arch Linux Forums https://bbs.archlinux.org/
its an active community where you can ask questions, seek guidance, and engage in discussions related to Arch Linux. It's a great place to connect with experienced Arch users and learn from their expertise.
or
u can just search up yt channels like "Chris Titus Tech," "DistroTube," or "The Urban Penguin" for Arch Linux-related content.
or
u can also use books and online guides available that focus on Arch Linux. like "Mastering Arch Linux" by Michael Plant and "Arch Linux Handbook: A Simple, Lightweight Linux Handbook" by Dusty Phillips
Thank you so much ❤️
Found this for the keylogger if you want https://github.com/spacehuhn/wifi_keylogger
anyone here that has Security+ cert ?
I'm a mech engineering student. I'm learning AutoCAD. It would be really helpful if anyone could guide me the best way to do that by suggesting websites/lectures/quizes and stuff.
im struggling here too ( i need it for plant layouts )
u can still use windows and for an IDE (place to write code and run it ) u can use vs code its the most famous one out there
does anyone here know anything about downloading all the files from your google drive? my school email is about to be deleted and i need to back it up. i tried "google takeout" but it's not like it saves the files in an accessible format lmao. it also did not give me the option to download all my google docs
sooooo, i dont really know any way besides manually downloading each important file of mine from each google platform/product 🥲
Yes, I can help you with that. To download all your files from Google Drive, you can follow these steps:
Go to your Google Drive by visiting drive.google.com and sign in with your school email account.
Once you're in Google Drive, select all the files and folders you want to download. You can do this by holding down the "Shift" key on your keyboard and clicking on the first file, then scrolling to the last file and clicking on it. This will select all the files in between as well. Alternatively, you can use the "Ctrl" or "Cmd" key to select individual files.
Right-click on any of the selected files, and from the context menu, choose "Download." This will initiate the download of all the selected files and folders as a zip archive.
Google Drive will start preparing the files for download, and once it's ready, a download prompt will appear. Click on "Download" to save the zip file to your computer.
Depending on the size of your files and folders, it may take some time to complete the download. Once the download is finished, you can extract the contents of the zip file by right-clicking on it and selecting "Extract All" or using a compression software like 7-Zip or WinRAR.
Please note that if you have a large number of files or if your files are quite large in size, the download process may take a while. Additionally, keep in mind that some files may have specific formats that can't be easily accessed outside of Google's applications.
-chat gpt
interesting that you can't just change the email to a personal email?
Ubuntu Vs Arch Linux which one is the best?
depends on ur needs and preference.
Ubuntu: User-friendly, beginner-friendly, stable, extensive software availability, less customization.
Arch Linux: More advanced, highly customizable, rolling release model, requires more technical expertise, active community support.
Choose Ubuntu if you want an easy and stable experience. Choose Arch Linux if you prefer customization and have advanced technical skills.
hey :D , question , are there any recommendations for sites to buy an ereader from ? im looking for something that can fit in my pocket and be able to download pdfs and such on it (bonus if it can support spotify/mp3s 🙏 )
have u tried amazon? http://www.amazon.com/
they offers a wide selection of e-readers, including Kindle devices, known for their portability and support for various e-book formats, including PDFs. Some Kindle models also have built-in support for audiobooks and music playback.
or
barnes and noble http://www.barnesandnoble.com/
they offer the Nook e-reader series, which supports PDFs and offers a compact and portable reading experience. While they may not have built-in support for music playback, you can use third-party apps to access Spotify or play MP3s on some Nook devices.
or
kobo http://www.kobo.com/
its a popular brand known for its e-readers that support various e-book formats, including PDFs. Kobo devices are portable and offer a comfortable reading experience. Some models may also support audiobooks and music playback through third-party apps.
or
best buy http://www.bestbuy.com/
its a reputable electronics retailer that carries a variety of e-readers from different brands. You can explore their website to find e-readers that fit your requirements, including those with pocket-sized designs and support for PDFs.
Free shipping on millions of items. Get the best of Shopping and Entertainment with Prime. Enjoy low prices and great deals on the largest selection of everyday essentials and other products, including fashion, home, beauty, electronics, Alexa Devices, sporting goods, toys, automotive, pets, baby, books, video games, musical instruments, office ...
thank u ! :D
thx yes i'm begginer so i think i will choose ubuntu btw if i get experinced enough can i change to arch
Yes, if you gain enough experience and feel comfortable with Linux systems, you can certainly change from Ubuntu to Arch Linux.
Keep in mind that Arch Linux follows a do-it-yourself (DIY) approach, requiring manual configuration and a good understanding of the Linux system components. It provides a minimalist base installation that allows you to build your system according to your specific needs.
thx man
guys i want to run this code of a spinning cube but it keeps just generating it frame by frame in terminal
thank you!!
Anyone got any ideas on how to make an entirely new gmail acc w/o providing any personal info? Eg; phone numbers
ask a friend if he can create an account and in the phone number question if exists an skip button... When u recently created an account on gmail on your laptop it will ask for the phone number, but if someone didn't created an email in a long time he can probably skip the phone number
So just use someone else’s phone number? Sos for the late reply
I think what they're saying is with a different computer and IP, you might not be forced to verify phone number. I don't know this is true, but that's how I interpret what was said.
i would use an different mail provider, proton is a mail provider from switzerland wich is secure and dont steal und sell ur data like google does
hey guys i have a problem too, i installed artix linux lately and startet some configurations in the terminal, now it gives me the following error: Attention: The program "/bin/bash" has crashed.
does anybody now how to fix that?
heres also a screen, but its written in german
Most reaserch I did led me to either an error of patch (but pretty old as it was of last year mostly) or a user problem saying that creating another user or su could work
and why dafug does my terminal look like this on my PC:
ye same here
first i have to solve my first problem
i cant acces the tty console
cd /dev
rm -f console
ln -s ttyS0 console
ttyS0::askfirst:/bin/sh
if you need to copy/paste
and where i should i paste this in?
ah right
dumb question: have you tried to reboot?
jus a normal reboot?
yes multiple times, its like that since days
and i rebootet my laptop quite a lot since then
damn
rebooting is anyway my first problem solving tool
i can tell the last thing i did before it quit working
yeah i'll try to see if i find something
i changed to artix linux lately so im still a bit confused
- make sure you edit the
~/.bashrcfile that applies to your current user environment. You may be using a different configuration file, such as~/.bash_profileor~/.profile. Check these files to see if any changes have been made there and edit them accordingly.
Run the echo $PS1 command to display the current value of the PS1 environment variable. Make sure that the PS1 entry you modified is present in the ~/.bashrc file and that it is not overwritten by other variables or scripts.
Restart the terminal (QTerminal) or shell session and check again that the new name is displayed in the shell prompt.
-
make sure that you use the syntax for
PS1correctly. Note that the part with the new name in parentheses may be surrounded by single quotes or double quotes. For example:``bash
PS1='[\u@\h MyName \W]$ 'or ```bash PS1="[\u@\h MyName \W]\$ "Choose one of the two variants and make sure that you use the appropriate quotes in the
~/.bashrcfile. -
also check other configuration files, such as
/etc/bash.bashrc, to see if any global shell prompt settings have been made there that might override the value ofPS1. Edit these files accordingly to display the desired name in the shell prompt.
If you still have trouble changing the name in the shell prompt, it may be helpful to provide specific information about your system and the shell you are using so that I can help you further.
yes, i asked chat gpt something and he literally destroyed my shell
Is that your main OS with stuff on it or is it pretty new with nothing to save?
Maybe you should try reinstall it
If you want other propositions, maybe try the artixlinux reddit before.
That might be over my capacities.. Sorry
try Crtl + Alt + F2
takes you to TTY2, maybe this would work
and you can try from F1 to F6
Am learning open cv with python
so i need a projects that test me as i go
project focused to be precise
for UML I use PlantuUML/Structurizr
Heyyyy a fellow Ubuntu enjoyer
I downloaded Linux a couple of days ago
nice man i downloaded it too in a vb its so fast and the ram usage is low what about you
Vb?
Yeah I find it really nice
Only problem is compatibility with games
well i mainly use it for programming but for games there is no better than windows
virtual box its like running linux without changing the os
Oh you mean virtual machine
Still gotta understand why Linux is better for programming
for me i use it for the performance its way too fast to run code than windows (at least for my pc ) and also for the customisation
yes
Oh yeah
Running programs. Installing packages
Are so fucking fast
It's impressive
yes fr
also windows use too damn ram the ram usage is over 55% but in linux its just 21%
and sometimes less
That is incredible
Linux uses like
500mb of my ram
And leaves 15.5 available
Windows uses ALL OF IT
AND + apparently, windows has so much spyware
yeah lol
also its FREE while i had to pay for windows
i heard about that too while its not in linux
but the hard part is there is ALOT of commands that i have to memorise its not that beginner friendly
There's indeed
A learning curve
But learned that
You're gonna be efficient af
Me included
i hope so
gl 🍀
Ty, u 2 :)
Hi all! Maybe someone came across and can help, onenote blurs pdf, I use the ipad version. How to fix? On a PC, the pdf file is very high quality, but on a tablet it is not very pleasant to read the text
hey ...
anyone got any good/cool ideas to build a project using java , c , c++ or python
other than minigames and management systems (eg. tic-tac-toe or library management sys)
Here for Python there's this list that seems pretty diverse
https://hackr.io/blog/python-projects
The lists I found for other projects were more conventional (tic-tac-toe and management)
the commands just give you extra power. you don't need to use any of them to use linux as a normal OS. I put my tech illiterate relatives on Mint several years ago, and they didn't know the difference between windows and linux. Aside from gaming, there's also visual studio to consider and hardware pieces might not have drivers for linux.
Ty
yeah true
wait u are saying learning c is a good intro to java ?(i was just scroling up and i saw your message)
learning Java is easier if you know C first. Learning C is easier if you know Java first, etc. C/C++/Java/C#/JavaScript, etc. are all C-family languages, so they have a lot in common.
best book i found is python crash course the third edition
i thought java was low level language
but i agree with u learning c as the first language cuz it makes high level languages easier
they're all high level languages, C/C++ slightly lower than Java
I think my point is different from your interpretation. My point is that learning ANY of those languages makes learning any of those other languages easier. It doesn't mean that there's a specific order that one needs to go through or that there is an ideal order.
Anybody have tips to make studying for the Comptia Network + more intereting?
I am forgetting what this is called. I think it's called a directory in Python, what's it called in Java? I looked it up its saying hashmap;-;
-
Official Documentation.
-
Book Fluent Python. The original book is about 8 years old, but a new edition came out last year I think.
It is by far the best book on Python there is. It is huge, but basically a gold standard for Python engineers. The author is one of the most famous Python developers in the world and a Fellow of the Python Software Foundation.
You don't even have to read the whole thing, just pick the chapters that interest you.
If it is a little complicated, you can start by any crash course 🙂
Java is not low level because you don't have to manage memory yourself, there is a garbage collector that does that for you.
Also, its applications are pretty far away from low-level CPU stuff. Like nobody uses Java for robotics. It is mostly server backend code 🙂
//User function Template for Java
class Solution {
int print2largest(int arr[], int n) {
// code here
int fmax = arr[0], smax = -1;
for(int i = 0; i < n; i++){
if(arr[i] > fmax){
smax = fmax;
fmax = arr[i];
}
else if(arr[i] > smax && arr[i] < fmax){
smax = arr[i];
}
}
return smax;
}
}
@wise sentinel this is another approach
thanks bro
thx i thought it was hard and get a lot of hate but seems to be fun
Programming is the best kept secret. It's super fun, but no one knows unless they've done it. It also pays well to boot!
the catch is that doing it professionally may be very different than "what's fun"
Thanks will check them out
sounds like you need some pointers on pointers 🙂
pointers are very obvious if you start with assembly programming
which is a true low level language
did you hear of brainf**k they say its harder than binary itself
yeah, i wouldn't say that or even compare it that way, but it's made to be confusing
im searchin for a pentester that, dont have to be an professional jus someone passionate, or if u know someone who knows someone, dm me
guys i cleared my high school, and now i am going to apply for cs degree... but i started DSA, does anyone have any advise for me?
You can solve these, a lof of algos are included: https://neetcode.io/practice
DSA also includes understanding of sorting algorithms, but for those you can use youtube.
I would also go through the implementation of hashmaps/stacks/deque/linkedlist/tries etc to understand how they work.
A better way to prepare for coding interviews.
thanks
Has anyone here used react native (expo)
hi guys, i have a question related to whether should i buy windows or mac, ill be starting computer science engineering soon, i have NO clue
Ig it boils down to personal preference
Neither. Get Linux.
based advice.
Plus apple stuff is pretty pricey for what they're offering
It doesn't really matter what os you pick personally only difference i noticed was one is more user friendly (windows) and the other is faster (mac) but that's just me
I haven't used Linux so I can't say anything about that
if u are starting cs get a thinkpad
Anyone doing here Game Dev??
so yeah, Could you give me some general tips to start?
i'm fluent in HTML/CSS (learning Javascript)
but i know what my goal is i just don't know how to get there aka game making. Someone Got some tips?
So Linux
What role do you want to do in game dev? Sounds like you want to be an engineer? Two tech paths:
- Learn C++ and Unreal
- or Learn C# and Unity
Then, you'll want to pick up on some game design patterns or architecture, there's a lot of resources for that. If you want to learn game design as well...that's another large discipline to cover. All depends on what your goals are.
older intel based mac has the best compatibility -- you can run OSX to publish iOS apps, run windows, or run linux on a VM. I use visual studio a lot, so I dev on windows. I'm guessing your school will expect everyone to have a windows machine, so having a mac won't get you any advantage other than if you want to explore ios or mac development on your own.
can someone help me out with deploying this react app it's failing in the build part
https://github.com/subuxd/ecommerce-cart
Hi 🙂
Depends on what you are going to do, but if it is not game development, Mac OS is generally considered more developer friendly. It is a unix based OS, so most shell commands are the same as linux, but using mac is much more pleasant than linux.
Regarding more developer friendly experience: for example, on Windows there is no ssh utility for network connections, you have to use an external program called putty (as far as I remember). You are also stuck with Windows CMD or Powershell, which are different from UNIX systems, unless you use git-bash or something like that. Most servers are Linux (hence Unix) based, so using two different command line tools for local development and server development is an overhead.
In my experience, almost all the developers I have worked with have always chosen Mac (usually when you join a company they ask what laptop you will use, and it is usually mac or windows).
But in the end it is not that important, currently at my work I use a Windows laptop (I had no choice) and it is ok. And as already pointed out by other people, in your case it might be better to go with what your school generally uses.
mac is good but i really hate the animation
guys why the duck its skips the toppings question and it used to work but i added spaces and now this shit happens and even after redoing all of those
here is the code
#include <stdio.h>
int main()
{
char topping[24];
int slices;
int month,day,year;
float cost;
printf("how much does a pizza cost in your area?");
printf("enter as $XX.XX)\n");
scanf(" $%f",&cost);
printf("what is your favorite one word pizza topping?\n");
scanf("%s",topping);
printf("how many slices of %s pizza",topping);
printf("can you eat in one sitting?\n");
scanf("%d",&slices);
printf("what is today's date (enter it in xx/xx/xx format).\n)");
scanf("%d/%d/%d",&day,&month,&year);
printf("\n\n why not treat yourself to dinner on %d/%d/%d",day,month,year);
printf("\n and have %d slices of %s pizza!\n",slices,topping);
printf("it will only cost you $%.2f!\n\n\n",cost);
return 0;
}
it's because of your indentation
you have to make sure you indent your code properly or else it will skip the line
so should i remove all the white spaces?
no
it's more of how you indent the code. not the spaces between the line
it matters how much you shift the lines to the right or left
the problem that it worked first time
but i added an \n in the 5th printf
maybe its the reason
nop its not
test it but still
it has nothing to do with indentation. C doesn't care about indentation at all.
what you need is a space in front of %s
scanf(" %s",topping);
the problem that you're experiencing is due to how input buffer is handled, you can google that.
nvm i figured it out
I FORGOT THE DAMN $ IN THE FIRST LINE WHEN THEY ASK ABOUT THE PRICE OF THE PIZZA SINCE I SHOULD WRITE IT IN $XX.XX FORMAT NOT JUST WRITING THE FLOATING POINT
99.99% of my c code problem came from forgetting ; at the end of the line or some dump things
The C compiler doesn't care about indentation.
Don't know if I should learn C or Python, but I think I'm going to go with C
How could I start learning C? Where do I find resources? What themes and bases should I look at?
10 or 6 hours videos don't count, they just explain the lexicon but they don't implement it very well
In april til may I studied C++, so I have a bit of knowledge in my brain, for programming
everyone has their own preferences on how to learn, but I just read the K&R classic cover to cover
hey guys, im seriosly searching for a pentester to test my online security and work together on online tegrety. If u are some kind of pentester or into cyber security and having a tiny bit of time, please dm me because im willing to share some of my knowledge and Motivation to help each other!!! Also if u know somebody, who knows somebody hook me up!
for me it was hard to learn from that book due that i didn't have any prior knowledge other than scratch if that's count
yes learning c made high level languages like python and js easier
the easiest way to learn c is this book called
C Programming Absolute Beginner's Guide (3rd Edition)
it made it soo easy i still wonder to this day why ppl think c is hard
if u want i will send a pdf
Yea daddy
ayo chill
also its just 280 pages dont freak out with that 600 the other 320 just retype the code he used earlier
yes daddy
🤨
sus
just gotta take it one page at a time
some people just have a hard time learning programming in general, it's not the language. But, people prob also think C is "hard" because it's difficult to create programs that resemble modern software that they use without knowing a lot of libraries to leverage.
well i still believe that hard concepts can be easier with the right tutor
yup, that goes with almost anything
but the expression "when the student is ready the teacher will appear" is worth thinking about, too
yes absolutely
My first account was lost a long time ago, I forgot everything. My iPhone 7 was lost a long time ago, I don't have an account anymore
I just wanna recover the account
I finally remembered what my account name was
Flotres#4828
anyone here use org-roam? I am having issues in terms of doom/reload, and "wrong type argument: stringp, nil", I will provide the problem code after
guys, anyone ever load tflite model on flutter?
Today i recieved this
what is this can someone explain
i live in India
does this means it's a start of a Zombie apocalypse 😂😁
test alert
they do the tests, same was done in Germany one year ago. A lot of people freaked out because it was very loud 🤣
hey can someone help me with this error i was downloading nvchad and i am getting this error
Error detected while processing /home/aumpatel2624/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/aumpatel2624/.config/nvim/lua/core/init.lua:67: attempt to call local 'autoc
md' (a nil value)
stack traceback:
/home/aumpatel2624/.config/nvim/lua/core/init.lua:67: in main chunk
[C]: in function 'require'
/home/aumpatel2624/.config/nvim/init.lua:1: in main chunk
hi guys can you help me for calculate code storage in python
and who have best python material pdf by the way
hey can someone colaborate with me in making a project that uses arduino wifi mkr 1010 and it is cybersecurity based
Has anyone here ever implemented optional transformation in text editor?
Hey guys my python code did not work can anyone help?
it is a simple example for using dictionary
probably faster if you paste it
Go ahead
Anyone has multiple-choice exercises about oop and java to practice? I have final exam on wednesday
ask chatgpt
theres official nvchad discord server, they’ll help you figuring out
M8SYatKw4r
thanks mate but i solved it already
sure thing
hej! computer engineering vs IT, what should i go with for my basic diploma (am a total noob (high school junior w/o any computer background n all) n want broader exposure but lol idk much bout the fields except i find the content of the darknet diaries interesting) can smn please shed some light on dis?
hard to come up with a brief description that's accurate, but here's my attempt.
The two disciplines are almost completely unrelated. CE is very low level, detailed, mathematical, and precise. It's like building and designing a ship inside a bottle using a grain of sand at a time.
IT deals with large systems like coordinating ships passing through the panama canal or diagnosing why a ship's steering system isn't working, needs to be upgraded, or replaced. Or maybe adding a second engine system and creating a procedure to swap engines while the ship is running if one engine system needs to be turned off.
Of course, there are many, many different roles in these disciplines, so this is a vastly simplified description. I'm not familiar with darknet diaries, but a quick googling makes me believe it's more close to computer science.
For what it's worth, my focus is computer science.
ayo can someone explain why if (count == 0) the same as if (!count) in c
In some languages 0 means false 🗿
keep in mind it might be considered poor style to do the latter
anyone know the best ibm thinkpad I can get for cheap on ebay
I’m trying to learn Linux and programming
im trying to fix my brothers desktop pc for him and it does not display or boot but the fans are spinning at full speed and the gpu light is on but nothing happens, any tips or help would be appreciated, thanks.
If all the fans are spinning loudly, make sure your CPU is connected right to the cooling system.
If the fans are spinning normally then it's okay.
Try putting the video cable your using into the GPU card slot, it won't display anything if you have it in the motherboard.
If that doesn't work check your input/settings on the monitor.
If that doesn't work, check your operating system or boot device.
These are some possible solutions.
remove every non essential component -- disk drive, mouse, keyboard, video card, ram, etc. reinstall 1 piece of ram and try it again with the monitor connected to the motherboard graphics port. See if the motherboard is outputting any error code that you can read on the motherboard itself.
check for thinkpads closest to you, x200 series for example. Prepare to purchase a new ssd. Installation is very easy with old thinkpads. I‘d say don‘t spend too much money and time as long as you get started with programming and stick with it you‘ll be fine.
aight thanks :)
If you aren‘t sure wether to get one or the other offer post it
yeah, just focus on something that has a clean keyboard for the most part. If you want to run a virtual machine, you'll need higher specs, but if you dual boot instead, it's fine.
ill try that out, thanks.
thx
did you use a software to plan out the electronics?
hi i'm gonna enter one of the prestigious aeronautical french universities, any books recommended to study ?
u can try
Introduction to Flight by John D. Anderson Jr.
it provides a comprehensive introduction to the principles of flight and aerodynamics, making it an excellent starting point for your aeronautical journey.
Aircraft Performance and Design by John D. Anderson Jr.
This book focuses on aircraft performance and design principles, covering topics like aircraft stability, control, and propulsion systems.
Mechanics of Flight by A.C. Kermode
This classic book covers the fundamental principles of flight mechanics, aerodynamics, and aircraft structures.
Introduction to Aerospace Engineering with a Flight Test Perspective by Stephen Corda
This book combines aerospace engineering principles with a focus on flight testing, giving you a unique perspective on the subject.
Aerodynamics for Engineering Students by E.L. Houghton and P.W. Carpenter
This book provides an in-depth understanding of aerodynamics, vital for any aeronautical engineer.
Fundamentals of Astrodynamics by Roger R. Bate, Donald D. Mueller, and Jerry E. White
If you're interested in space-related studies, this book covers the principles of astrodynamics and spacecraft trajectory analysis.
Nah the wiring was very easy. Just some approriate motor drivers , an arduino mega , and 2 batteries
Didn't need a EDA to plan things out.
Plus most electronics software are Hella old and ment for a closed section of people . Nothing flashy. Some won't even sell you their software if your NOT a company
I’ve been looking for stuff just so I can learn without ordering parts, lmk if you have any you know of
tysm!
there is an app called CRUMB check it out it might be the one you are looking for
Tysm
Lit exactly what I’ve been looking for
I’m tired of using these 2d engines
np hope things work for you
I got this issue in a macbook air mid 2013 where after using the device for a while I notice there are some safari extensions that are suspicious because I didn’t download it and it crashes when I click on the app icon . I downloaded malwarebytes and “quarantined” the stuff they detected. After that the wifi isn’t working anymore even if it indicates that it is connected I tries every possible solution I could think of even reinstalling the os but i didn’t do the trick now I’m left off with no access to wifi or no mobile hotspot in my macbook
I tried safe boot but it didn’t connect to the internet. However, in mac os built in recovery system it successfully connect.
have you tried factory reset? is that different from what you did to reinstall the OS?
Hello everyone are there people here who studied machine learning ?
and here is a road map https://i.am.ai/roadmap/#fundamentals
@formal hatch these are the resources to ml
Thanks
I wish it would work but it got the same error
I guess I have to live in recovery utility mode now
tho i'm not studying ml
Is the OS clean? Like clean reinstall no external programs downloaded and stuff?
Is the os up to date? And are your date and time set correctly?
When you click on the wifi menu, can you see a menu item named Wi-Fi recommendations? If you can see it run it.
Is there any way you can try to connect it through cable? If so does it work?
You could also try to renew your IP address.
cool 👌
can someone explain why tf the output is different altough its literally the same damn code
here is my code
int main()
{
float num1,num2,result;
char choice;
do {
printf("enter your first number to multiply:");
scanf("%f",&num1);
printf("enter your second number to multiply");
scanf("%f",&num2);
result=num1*num2;
printf("%.2f times %.2f equals %.2f\n\n",num1,num2,result);
printf("do you want to enter another pair of numbers ");
printf("to multiply (Y/N):");
if (choice=='n')
{
choice='N';
}
}while (choice !='N');
return 0;
}```
here is the books code
int main()
{
float num1, num2, result;
char choice;
do {
printf("Enter your first number to multiply: ");
scanf(" %f", &num1);
printf("Enter your second number to multiply: ");
scanf(" %f", &num2);
result = num1 * num2;
printf("%.2f times %.2f equals %.2f\n\n",
num1, num2, result);
printf("Do you want to enter another pair of numbers ");
printf("to multiply (Y/N): ");
scanf(" %c", &choice);
// If the user enters a lowercase n, this if statement will
// convert it to an N
if (choice == 'n')
{
choice = 'N';
}
} while (choice != 'N');
return 0;
}```
its litteraly the same although mine's output is "do you want to enter another pair of numbers to multiply (Y/N):enter your first number to multiply:"
and the book's output is just "do you want to enter another pair of numbers to multiply (Y/N):"
why
I don't know anything about C so i don't know if it's the reason or not
Np 😂😂
i really appreciate it you are a life saver even chat gpt couldn't figure it out
you should look up this category of tools called "diff tool"
wait
it will compare two files and show you the differences
its not working fuck it
you also have " %f" instead of "%f"
i really hate c it cause mental ilnees
you just need to mature in your development processes
but c dont care about spaces
it's inside the quotation
it's a space inside a string literal, not inside syntax
by development process, I mean you need to write a very small snippet of code and test it
holly shit its working
if you write everything and then test it all at once, you won't know where you went wrong
bro thx
at least, it'll be harder to figure out where you went wrong
but why just adding space fix the problem
you'll need to level up your debugging processes
that's something you can ask chatgpt about
ok
but stop blaming the language and see how you can improve, that's my advice
hats off for fixing the problem
my eyes saw that there was a character difference
thx @idle dew and @dapper niche
i don't know why it would cause a functional change, but i saw it
i haven't touched C in forever
lol me too this is why i keep doing dumb things
its almost a year
i didnt use c
i also mean that i could fix your code without knowing any C
that shows you that programming is more about fundamentals than language knowledge
fr
Ok
its about problem solving skill
beginners always ask "what language should I start with?" like it's the most important thing and they get stuck on it...but it doesn't really matter
I'm going off on a tangent, though 😄
Lol
yea, being methodical and detail oriented is key
i think its a good idea to work on my debugging skill
it'll be critical in the future. writing your own code is EASY. imagine having a task in the workplace where you have 100,000 lines of code across thousands of different files and have to figure out what's causing the bug you're supposed to fix or where to add the features you need to add
1: you don't have the luxury of building it piece by piece and testing it in isolation.
2: you didn't write the code, so it's in a completely different style and thought pattern than how you brain works, so it's like reading a foreign language that you understand somewhat
writing something completely from scratch is < 1% of professional work, but it's like 99% of student work
Debugging someone's code, can become really difficult sometimes,
I guess to get rid of this, one should contribute to more open source projects 🙂
Also funny, but often mentioned is when people read their old code, they don't realize who wrote it and start complaining about how bad the code is and how hard it is to understand. They realize later that they wrote it, haha
@errant sorrel
Guys I need help, my sidebar which is category is overlapping my footer, I will give more images in dm
you can send images here
I fixed the issue , it’s the anti virus scanner overlap the os antivirus or sth it blocked the wifi for no reason at all and since I can run the wifi in the recovery utility mode then the only thing that is wrong is the disk with the software installed so I deleted that disk and start out fresh . Lesson learned
Good job!
I really have a love-hate relationship with it lmao
Hm, but it does.
Picking a popular language that you can use for an idea or a career is better than picking something like the Lisp or Perl languages.
This is an exaggerated example, I know.
But relearning takes time. Even within the same ecosystem.
Scala is also a JVM with many similarities to Java, but it is very different from imperative Java. It takes at least a year to write good Scala code with pattern matching etc.
I agree with you though that this is not the most important question. I think it's better to ask what do I want to do instead of what kind of language do I want to use 🙂
hi everyone! I have an issue
shapes = input()
data = shapes.split(",N,")
data_split = []
numeric_data = []
total_width = []
total_width_2 = []
dl_drawn = False
for shape in data:
elements = shape.split(",")
data_split.append(elements)
print(data_split)
for tip in data_split:
if isinstance(tip, list):
for i in tip[0]:
if i[0] in ('E', 'R'):
height = int(i[1])
width = int(i[3])
total_width.append(width)
elif i[0] == 'S':
height = int(i[1])
width = height
total_width.append(width)
elif i[0] == 'V':
width = int(i[1])
height = (width + 1) // 2
total_width.append(width)
elif i[0] == 'T':
n = int(i[1])
width = 2 * n - 1
height = n
total_width.append(width)
for tip in data_split:
if isinstance(tip, list):
for i in tip[1]:
if i[0] in ('E', 'R'):
height = int(i[1])
width = int(i[3])
total_width_2.append(width)
elif i[0] == 'S':
height = int(i[1])
width = height
total_width_2.append(width)
elif i[0] == 'V':
width = int(i[1])
height = (width + 1) // 2
total_width_2.append(width)
elif i[0] == 'T':
n = int(i[1])
width = 2 * n - 1
height = n
total_width_2.append(width)
total_sum = sum(total_width)
total_sum_2 = sum(total_width_2)
for tip in data_split:
if 'DL' in tip and not dl_drawn:
if total_sum_2 > total_sum:
print("-" * (total_sum_2))
else:
print("-" * (total_sum))
dl_drawn = True
I have this input : T4,DL,R2x3,DL,N,N,O1,V5,T3
and heres output
I tried to draw '-'*(width)
and ı have to find the width however I confused because my data_split has 2 list inside. And I have to compare the sum of the values inside each list but I cannot do this in one for loop so I try to do for i in tip[0]: and for i in tip[1] but does not work
Can anyone help?
note: this is just a little part of an homework project in python
Helop
Help
help
HEEEELP
does anyone know how to install a cpu cooler?
air cooles
HEEEEELP
!!!!!
I need help guys
help me
pls
bro just go to yt
thats where i came from
but my motherboard isweird
or im just stupid
nah dont be harsh on yourself
Gonna take a hard guess as the pictures aren't too obvious but imma say you fan support is too big for your card? But that's just based on the pictures with different angles
Could you just put the fan in just to see the size?
Even better just tell me, when you place the fan support is it touching things around your cpu?
Might be it, the second pc I have in my room just has a cpu fan that is too big if i was trying to get it in the 1st pc
Nope
ok what's the black thing with screws around your cpu? Is it holding something ? that might be where you need to place your fan support screws
I decided to use a worse cpu cooler, and give the better one to my friend
Thank you tho
yes, but people who are asking aren't asking between popular and unpopular languages. Plus, learning one language first doesn't lock them from others. Their questions are often about the order of languages that they learn. Learning Lisp is actually really useful so you can read and work with SICP. Lisp is very fast to learn the basic syntax completely. So yes, what languageS you know when you're about to enter the workforce is important, but the language that you start off with...not so much, as long as you don't choose something ridiculous, which I don't see anyone doing. But, I do see a ton of people in analysis paralysis while looking at their choices and end up not starting with anything.
