#tech-related-help
1 messages · Page 5 of 1
its this one int rev_num = 0;
while (num > 0) {
rev_num = rev_num * 10 + num % 10;
num = num / 10;
}
mah brain just stop when it come to math based
Oh I wasn't referring to that problem
I meant the one above that
I was so confused
oh ok my bad
Yeah I was thinking wait what it's not that quick of a problem.
something like this ig
the is_prime function is very optimsed
not sure if it can be optimized even further tho
Just implement a timer quickly and let's test
I'm not at my pc so only have a screen of a particular n
hmm
one sec
i know you can do some timer thing using python
Yeah something like time.instant then stop and get the difference in times
ye
It's a NASA astronaut that's it
There
It works now
yea thats the reaosn
It's just a picture from the 80s
lemme convert it in ms
N=1e6
man python is so dumb
but its fast
as in to implement
not in performance
better now
Cool
Its hard in python
Very clean code though
arigato
the is_prime algo is pretty famous
also as python is slow as snail it is really important to write efficient things in to else it will be a mess lol
btw what terminal are you using
looks sick
Yeah I was opting for a slightly more over the top method. After the competition I wanted to make it crazy fast. But someone could probably shave a few milliseconds here and there off my total In C or Cpp. Can't wait to see if other people have a go.
Alacrity
tomorrow i will try it in c
very sleep rn
Cool can't wait!
Just to bring it back to the top. I want to see some more attempts I might make a little scoreboard if anyone else wants to try.
I need Leetcode buddies
anyone with touchdesigner experience?
real
.
^
In what language and for what task?
I take it you want to graph the wave function right?
(I am not very familiar with this but if you could be more specific someone more skilled will help)
python
you didnt ask the question?
and ik it says python but he doesent explain what he wants to do
with python
or
I mean like this
(its broken but)
they approached me so i thought
?
nvm man geez

i meant
they approached in dm so i asked them to ask in this channel because i couldn't help so that's why i thought i could answer python there
real
hi man
will she told ya
like u see those wave functions
i want someone to graph them to me in python language
im not sure if im right but do you think u could use matplotlib
actually they offered only python, i'm a physicist i study alot of stuff , programming was the hardest thing for me to understand it needs a huge concentration it's not really for me so i face struggles with it
nd now i gotta translate physics into scripts maan this is so damn hard ngl
yes
ahh it's okay and matplotlib is btw only a library in python so you can use it
damn thanks
use a quantum computer
w
do u know how ?
You can use it for the graph, but to make it, you need to describe the functions well for the program
yes yes
L i'm stuck on normal computer already
do u know how ?
search online
i’m sure there’s tons of people who have plotted these equations before
yup
i'm using pycharm ..
i found this but im not sure how much of a help this is
It is usually used when the question is either very difficult or must be written with this.
Otherwise, use the simulator.
writing code will not help u
i don't get u man
thank u😂
this is hella bad hh
that is not even remotely related to your question
ikk
Now that we've covered the particle in a box, we are familiar with the concept of a quantum problem. Let's move on to our second quantum problem, that of the quantum barrier potential. With this one, we don't have an infinite square well containing a particle, we have a free particle that encounters a barrier of finite potential. This is a good ...
this is literally the video that explains what i need to graph
The Quantum Barrier Potential
wait is possible using plot The Quantum Barrier Potential python in chat gbt !!
does anyone can try it ??
Do you use Jupyter notebook? You can test the code from ChatGPT in that
show me how it's done sir ?
I'm not a sir but what exactly do you know about python? Have you even touched a script yourself?
You basically write in ChatGPT "Plot The Quantum Barrier Potential in python". It should write a script for you (although ChatGPT's coding abilities need lots of work). Then, you just copy the script and paste it in Google Colab if you don't know how to start up a Jupyter notebook server.
Anyway, I just did it. This is the output.
(I've 0 physics knowledge, I'm only a programmer so I can't tell if it's what you want)
this may be some inspiration https://jakevdp.github.io/blog/2012/09/05/quantum-python/
can someone recommended me to ReactJs course on youtube ,please ??
free code camp
check out firebase and i could never recommend more than ZTM course on udemy(https://www.udemy.com/course/complete-react-developer-zero-to-mastery/), its 15$ to 20$ under sale, sale are frequent on udemy, if u want for free i recommend go for crash courses one after one
thanks alot
thanks
youre welcome
hi i'm a cs student and i currently use an ipad to handwrite notes with goodnotes. do u guys recommend any other apps or things that help your workflow in general?
hey everyone, i have a problem i'm trying to do an alarm that makes a sound with a python program, but the problem is i can't download the playsound option
What operating system are you on.
Oh yes I can!
visual studio
oh my bad 😅 windows
Ok so
Does it have to run on other os s ?
I have a cli timer that has a alarm both in python and in rust.
i'm sorry i didn't understand
Is it only running on windows or does it have to be able to run on other operating systems.
only windows
OK cool so winsound is your best bet
however if you want custom sounds
use the following
ok thank you
one sec
import os
beep_sound = "beeping.mp3"
os.system(beep_sound)
This doesn't work on windows I realise but (if you want it on linux)
One sec let me hop on windows and just quickly check the other thing i pasted workds
from pydub import AudioSegment
from pydub.playback import play
beep_sound = "beeping.mp3"
sound = AudioSegment.from_file(beep_sound, format="mp3")
play(sound)
(pretty sure something like this would work)
too
Does anyone have recommendations for books/resources to learn about concepts of programming languages (sonceptual study of programming language syntax, semantics, language definition structure, data types and structures, control structures and data flow, run-time consideration, interpretative languages, etc.)?
I'm taking a course at my university for it, but the professor is pretty lousy, and the textbook we use isn't very great either
Purchase Programming Language Pragmatics - 4th Edition. Print Book & E-Book. ISBN 9780124104099, 9780124104778
"Programming Language Pragmatics" by Michael L. Scott
"Concepts of Programming Languages" by Robert W. Sebesta
"Essentials of Programming Languages" by Daniel P. Friedman and Mitchell Wand
"Types and Programming Languages" by Benjamin C. Pierce
"Programming Language Foundations" by Jianwen Su
"The Structure and Interpretation of Computer Programs" by Harold Abelson and Gerald Jay Sussman
"Compiler Design: Theory, Tools, and Examples" by Seth D. Bergmann
"Programming Languages: Design and Implementation" by T. W. Pratt and Marvin V. Zelkowitz
These are the ones I and my friends used.
(I personally have the first one)
thanks
hey guys, i'm currently trying to make a data analyst project and i'm bit confused with a lot of things and need some quick help
type notes, writing code is bombacious
Is a Macbook or an Ipad better for Working?
How to change language in hyprland ar
when i read chinese pdfs the text just loaded as faliure unicode
A friend showed me this library and I fuckin died, FuckIt . py
correct fonts installed
in what language
in python
you can try with a while loop
Ok let me write it real quick if you aint gonna use chatgt
This is the second fastest way of doing it (in terms of time complexity)
def generate_primes(n):
primes = [True] * n
primes[0] = primes[1] = False
for i in range(2, int(n ** 0.5) + 1):
if primes[i]:
for j in range(i * i, n, i):
primes[j] = False
result = []
for i in range(n):
if primes[i]:
result.append(i)
return result
print(generate_primes(100))
@mint seal
should I make anki cards for code 🤨
I want to say yes, because it's funny 
But probably not, no
Code is more in the delibrate practice department, than the memory retrival
💯
Abstract: Just code don't memorise.
Just code find something you want to build for me it was a physics simulation. Then pick the language and technologies. And go!!! don't stop until its finished I learnt more doing that than trying to memorise stuff. And in terms of competitive programming (or algorithms etc) practice makes perfect! And get friends to do projects with. I got 4 friends who I code with and after 4 years we started to do well in the Olympiads. And were looking to win next year!
oops sorry glimm
wrong place to attach it but I agree
with you
It's cool XD nice reply
alr thank you
Thank you
The termal paste is rock solid help
hair dryer
also wtf did you use to stick it like that lmao
So my bios says that the water pump is pumping but I feel that only one tube is getting extremely hot and the other not. The cooler is also cold as if the water didnt get in. But in bios it says that my water pump has 3500 rpm
It looks like one of the hoses is clogged inside or something like that but I dont know what to do
macbook
I suggest to call a professional as well I built a pc for my friend and he was able to afford rtx and all of that stuff I selected the components but told him to call a professional as well
Thermal paste is like tricky too much or too less it’s hard to understand and like I guess dryer does the work sometimes but some cases it has not
The cooling problem might be with components
I recommend calling the company of the product as for warranty and fixing
all good, the water cooler is dead, I have researched that the Enermax Aquafusion likes to get clogged and it already happened multiple times after 1-2 years to multiple people. I had mine for almost 3 years so Im still happy with that lifetime. I have put a stock amd fan cooler that I got back in the day with the cpu and it runs fine 35-45 celsius while surfing, youtube, discord and around 65 celsius on full load for a longer period of time. After the benchmark test, it cools immediately back to 40 celsius 👍
Hair dryer and a blade did it for me
Nice man I’m gonna upgrade my pc soon too might have to take some recommendations from you for stock coolers
Hey can someone help me, im facing an issue with my windows 7. It went through a total reset due to repairing (before that it was windows 8.1) and now im unable to update it? Plus it clearly has all requirements for windows 10 but it just wouldnt update, any help will be appreciated
if you want to update it to windows 10, can't you just install windows 10 on a usb/external drive and boot it?
ok so I have already got 2 new mouses to fix the issue but it still permits, so what happens is I got huge input delay like as if I'm on a console ,only when I'm in an fullscreen application like games or anything, it wasn't the case for the old mouse, even now if I connect my old mouse it works fine but what's wrong with the new ones
I don't know if thats the right channel, but I want to deepen my knowledge concerning chatGPT and prompts. Maybe someone can suggest some good websites or yt channels, etc. where I can get more into the topic. Thank u
you can find blog related to it on the open ai website
Hey can anyone explain the meaning of tautology in computers
it says if the result of any logical statement is always true or 1 for all input its is called tautology
but how can the result of any variable be ALWAYS true😭😭😭😭😭😭
Cal Newport’s latest article talks about this
Look up “What Kind of Mind Does ChatGPT Have?”
"All chickens lay eggs". This is a tautology because it's true in every scenario. Same with a variable in a scenario. For example, you have a variable weather=sunny, then your if statement involving that variable can be weather=sunny || !weather=sunny. This is also a tautology. If weather=sunny, the first condition is true, and therefore the statement is true. If weather=rainy, it's not sunny (duh) which makes the second condition true and again the statement is true. So no matter what the variable's value is, the statement is always true. Does this make sense?
yessssss it does make senseee nowww!!!
thank you soo muchhh!!!! <333333
https://forms.gle/xDVkfQrwT2kvReQw7
heyy guys i need to collect many responses
for my project
its abt general fitness plssssssssss fill it
The goal of this project is to develop a machine learning model that can predict a person's level of fitness based on various attributes such as age, gender, body mass index, flexibility, body fat percentage, stamina, hours of physical activity, quality of sleep, nutritional intake, chronic conditions, level of spirituality, and substance abuse....
I’m trying to construct a Huffman coding tree based on these characters/frequencies. I’m confused about when nodes should be on the same level (not siblings) based on frequency. could someone please help me draw this out?
I am working on a react app and I am getting a fetch error. I checked with postman and it is working so I am not sure what I am missing. I have been working on this all day T.T Can anyone help???
I'm sorry to hear that you're experiencing difficulties with your React app. Fetch errors can be frustrating, but let's try to troubleshoot the issue.
First, it's important to determine what kind of error you're encountering. You can do this by checking the response that you receive from the server. If the server responds with an error code (e.g. 404, 500), then the issue is likely related to the server-side code. If the server responds with a successful response code (e.g. 200), then the issue may be related to your client-side code.
If the issue is related to the client-side code, there are a few things that you can try:
- Check the URL: Make sure that the URL that you're trying to fetch is correct and matches the endpoint on the server.
- Check the headers: Make sure that the headers that you're sending in the request match the headers that are expected by the server. This can include things like authentication tokens, content types, and accept headers.
- Check the request body: If you're sending data in the request body, make sure that it's formatted correctly and matches the expected data format on the server.
- Check for CORS issues: If the server is on a different domain than your client-side code, you may need to enable CORS (Cross-Origin Resource Sharing) on the server.
- Check for network issues: Check that you have a stable internet connection and that there are no network issues that could be preventing the request from reaching the server.
If none of these steps resolve the issue, you may need to consult the documentation for the library that you're using to make the fetch request, or seek further assistance from the community.
for some reason I cant fetch or use process.env on jsx I might be mixing things up
anyone can give me information on where to basically start learning software developing? im not in college yet and I figured id give myself a head start (feel free to ping me)
start learning software developing?
what kind of software?
If you know nothing about software ,computer or have no experience w coding go with the CS50 course
yeah i know pretty much nothing but ill check it out thanks, i still don't know what kind of software i want to develop. my school doesn't really focus on computer lessons (if they do it's pretty much the basic stuff like the ms paint)
what is your question exactly
can anyone help me understand what the % means in java code
if (number % 2 == 0) {
System.out.println(number + " is even.");
modulo operator
returns the remainder when 2 integers are divided
e.g., 55%13 = 3
I need to draw a huffman tree using those frequencies/characters. i’ve seen trees with multiple pairs of sibling nodes on the same level, but idk when I’m supposed to do that
you basically start with leaf nodes, select the 2 letters with lowest frequency, put them to leaves, create a parent node for them and give the frequency of the sum of their children, then add the parent to the list you have with it's frequency, and do the process over and over
I get that part, but how do huffman trees end up with more than 2 nodes per level 🤔 i've seen many examples like that
it's about the frequency of the parent
if the parent doesn't have the lowest frequency, you basically have to create some other leaves on the same level
OHHHH. this makes so much more sense now, thank you
any youtube channels for studying physical part of the computer like the motherboard and stuff?
hi can someone help with this code in python I'm trying to write it with basic math like + - * / n trying to remove the break
num = 1
cont = 1
print(num)
total = total + num
while(cont < 10):
num = (num * 2) + 1
cont += 1
print(num)
total = total + num
while(cont < 10):
num = -(num * 2) - 1
cont += 1
print(num)
num = -(num)
total = total - num
break
print(total) ```
nvm
x = 1
sum = 1
sign = -1
total = 1
print(x)
while cont < 8:
x = x * 2
sum = sum + x
cont += 1
sign *= -1
output = sum * sign
total += output
print(sum * sign)
print(total)```
i did it
guys ! i need help pls,,,, in this project im assigned to connect frontend to backend. the frontend files are html and css, and backend is in python
The internet says use either django or flask, and ive chosen flask
But idk what to do after installing flask, do i just add some code in my original python file?
just do import flask in the python file
__ https://flask.palletsprojects.com/en/2.1.x/__
- at line 1. "from flask import Flask"
- create an instance of the Flask class: app = Flask(name)
- Define a route that will render the HTML template.
for example:
@app.route('/')
def index():
return render_template('index.html') - create a test code to run the flask application:
if name == 'main':
app.run(debug=True)
what text editor do you use
i need some help in js i want a pic to appear in a specific area once i click on it but the thing is that area already has a pic on it ( basically its a slider )
( im new to js btw)
which one looks cooler? any opinions?
yooo thanks bruh,, it worked!
vscode
right one w lil blue shade
f91w
🔥
one of the worst things to come out of humanity
also php
Anybody know how id link my shit in emacs org between different devices? Ive only got it on my thinkpad so far
emacs org mode ?
make a git repo
and push everytime you do some editing
also thats one sexy thinkpad
i am pretty sure james also uses git to sync his notes now
Syncthing is annoying to maintain but if you can do that then it is the best option tbh
no it was something else I think ,what I saw in some video. he was not pushing anything
he showed syncthing in the video
but now he is using git
What desktop environment does james use on arch linux?
xfce (desktop env ) and i3 ( window manager)
Yessir
X61
Copped it in July
Also using xfce
For chicago95
Also just feels good
Hi. Anyone here knows ANGULAR with a fake backend api JSON? I need help tho in applying CRUD. If anyone is confident please I need ur help. Really need help in my project. Im still learning but im stuck for 3 days now 🥲
very cool
Hey, if you are working with multiple worksheets with pandas in python and want to make line graphs using data across all the worksheets, what is the best way to implement it ?
for example, each worksheet is a city and they all have info about date and the temp at the time, what would be the best way to incorporate the data across the worksheets to produce a line graph of all the data vs temps on one graph
there is a panda.concat() function so that solves the merge thingy . and the you can just plot a simple graph setting one axis as temp and one axis as date
thx
For guys who r studying data science
Which language do u use more?
Java or python or R
i don't study data science but i imagine it's
- python
- r
- java
Oh thx
Kinda true as i know
Yeah data science is mainly python
sql is probably more important than java lol
Both r important
For my survey we are doing only for java, R, and python. That's why we didn't include sql
It's easier to preprocessing the data but R has a better performance when we are running a code
is anyone familiar with SOLIDWORKS? Having trouble with lofts
both
but python more
Check a couple job postings in a city you want to work in to see what's more popular
does anyone have some practical advice for landing a front end dev jobs
applying for linkedin is literally useless. your application is practically drowned out by 600 other applicants
Networking
does it matter if its virtual? people always say "meet in person at meetups" but nearest meet up is like a 2 hour drive so i figured virtual is the better way to go
Virtual works too but I mean it’s always more personal in person
Go to hackathons and stuff
i prefer face to face too thats why it sucks
They have them at my uni so I don’t have to drive
tell me why i search up "tech jobs near me" they gon give me waffle house talking about "cleaning technician" 💀
most of the jobs near me are like fast food and warehouse so theyre like "oh you said youre developer you can developer some burgers at mcdonalds"
its like theyre mocking me fr
true
Once you get the first job it’s easier
I add classmates and people who went to my school just so I can see what companies in the area have developer positions
If you use the keywords programmer, developer, or computer science you'll have more luck finding positions since tech is similar to lab tech or technician
Also maybe try running your resume through a site like resume worded
Can anyone help me with the setup of Emacs org mode ?
anyone has chegg acc?
you gotta download the library into your project in VS. There should be a page in opencv showing some terminal commands. run those in the VS terminal inside of your project
something helpful I found 😄
where to learn minecraft redstone
ong tho that shit is hard looking
they disabled mine for racism cant make new
hey everyone, can anyone help me with DFD and ERD? it's for our thesis, btw. The due will be on friday.

im actually going to answer this seriously
Check out "Dissecting Minecraft" by LogicalGeekBoy on YouTube, cool playlist about redstone
But personally how I learned Minecraft redstone was through just trial and error
I looked up tutorials on redstone stuff I wanted to build, followed the tutorial, and eventually learned something new from that
If I came across something that was foreign to me I would research on it and watch videos about it
After all that I learned enough to make my own stuff
completely forgot how redstone works though because of academics
i was very into minecraft during summer 💀
hi guys, i'm new here and i'm searching for a good laptop. what brand is the laptop he uses in the videos? and what laptop do you recomend for university?
make fun things like, automatic harvesting farm, auto chicken cooker, lag machine
Hi, I already have an existing ERD but I don't know how to make it to diagram. Can someone help me?
Has anyone tried rendering a decision tree based on the training data of 922509 instances with graphviz? My teacher asks me to visualize the tree with graphviz but when I execute this code, it stucks forever at g.render()
dot_data = export_graphviz(tree, filled=True, rounded=True,
feature_names=['S1', 'C1', 'S2', 'C2', 'S3', 'C3', 'S4', 'C4', 'S5', 'C5'],
class_names=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], impurity=False, out_file="tree.dot")
with open("tree.dot") as f:
dot_graph = f.read()
g = graphviz.Source(dot_graph)
g.render()
anyone know of any good android emulators for mac? everything ive tried isnt compatible with the m1 chip
Blue stacks maybe?
android studio?
i tried but it took too much effort to navigate
is there a stark difference between sims freeplay and any other sims game
yes sims freeplay is a lot worse
but its a lot simpler since its old which is good news for me
its mostly just a nostalgia thing i used to be addicted to it so its just cute to play again
yeah i tried
also i googled it and it said its not compatible so thats weird
i guess you will have to do without sims freeplay
nox app player, genymotion, LD Player app, MEMU Player
?????
you should try nox app player
i did, it got stuck on 99% when downloading and i couldnt figure out how to fix the issue
⏰
99% issues are shit
Weird bluestacks doesn’t work
bluestacks doesn't work but my stack is blue 💯 💰 💸 :benjamin_franklin:
Polar investment banker arc
cloud pfp
no it came from identity fraud
remember those north korean hackers that stole 1bill from bangladesh
it was actually me 😳
W
did you end up trying those questions
Chinese North Korean hacker
nah I just ended up playing valorant til 1 with my friends
We played a comp game that went like 6 or 7 overtimes
c9 vs faze
Took forever
would you be on team na or team europe 🤔
Faze bad
faze was eu 🤦
They still bad
what about fnatic?
They annoying
anyone know a service or something people can use to manage teams and monitor their progress on stuff. - and like share data etc
like make a peer to peer network kinda
trello, asana, jira, etc. something like those?
which schema is better? the start schema or snowflake schema?
Slack and Github probably
always found trello to be very easy to use
I think GitHub has a good kanban board for group projects. Jira is good for organizations
thanks
I'm surprised there's no e/mechical engineering or computer science channels. They all get lumped into tech-related?
I mean those are basically #science-help lmao
does anyone know if Onyx Boox tablets work in America if you buy them off AliExpress
it will work but you might have to change the language localization
okie thank you sir
can anyone help me with this question? Theory of computation has been really challenging me :''D What does overlapping mean exactly?
Hi guys,i bought a thinkpad x220 for 40 euros (8gb ram, i5 2620M, HDD 320gb). Is it a good deal?
Depends if it turns on 🙂
it works
In the context of pattern recognition and the specific problem of detecting a sequence "1001" in a given input string, "overlap" refers to when two instances of the target pattern share some common characters.
For example, consider the input string "11001001". If we were looking for the "1001" sequence without considering overlap, we would find two instances of the pattern:
The first instance starts at the 2nd character and ends at the 5th character: 1(1001)001
The second instance starts at the 5th character and ends at the 8th character: 11(1001)
Notice that the two instances share common characters (the '0' at the 5th position and the '1' at the 6th position). In this case, we say that the two instances of the "1001" sequence "overlap".
When we design a DFA to detect the "1001" sequence without overlap, it means that the automaton will only recognize non-overlapping instances of the pattern. In the example above, it would recognize the first "1001" sequence, and then reset its state, ignoring the overlapping instance.
Does anyone here use notion? Because when I use headings in Notion [I'm specifically using the "mono" font] heading 1 & 3 uses serif instead of mono. is it just me or everybody?
does anyone know any good extra curricular activities i could do to beef up my personal statement. I want to major in computer engineering like James
I don't think there's specific extra curricular activities tht help with what major you take but "All work and no play makes Jack a dull boy". Practice your logic thinking more by playing sudoku, chess, etc. Any sport or routine that helps keep you fit already good. Again, this just an opinion.
ok thank you
nah it's a bug and I have no idea when they'll fix it
cyber defense team
huh? could you explain a bit more please
yeah
idk where you are but in America some schools have a team where they do cyber capture the flag on networks and OSs and stuff
its lihe the thing that cybersecurity nerds do in school
but it looks good to be well rounded in engineering and in that type of thing as well
Yeah but tbh im not insanely smart but i would be interested if it was mainly learning about cybersecurity
there are volunteer/charitable organizations where they specifically have volunteers that work on software. https://www.developforgood.org/ (not an endorsement, just an example that I googled). Also don't know how personal statements are critiqued, just an idea for you to consider
Develop for Good recruits and manages teams of the world's most talented and passionate college students as they work on design and development projects for nonprofits, including websites and web & mobile apps.
ah ok tysm
Anyone familiar with machine learning here
I needed some help as i want to learn ml but i am so confused reading so many ways to start it on internet
if someone can tell me what i should focus on if i am starting out machine learning
there's a few free online courses from universities using python. why not start there?
it would be nice if you can suggest me some...
cause everyone just teaches the high level stuff and do not explain it in detail
sorry I don't have personal experience with any of the courses, but that's what I would do -- take one course and then see where I would want to expand on next
sure i will.. thanks
does anyone know on how activity diagram work?
in uml?
@keen girder @trim rock is this possible?
Yea
What help do you need tho?
You can mill at step intervals or at 45 degree angles
one angle is 32 and other is around 40-ish
but important question will the tool break
is not
i can just make g code go from point a to b etc.
or i could mill out square part and then work on sides
What you milling?
aluminium
What is the size of the thing?
If its above ~5 cm deep then do a-b
Or else the bit will break fron lateral stress
theres a React course im taking online. its really hard to pay attention to. i start the vid and i just get bored
one time it was playing and 2 secs in I ended up playing games on my phone
yes
It basically shows the flow of activities than occur in a system depending on what the actor does
so, let say that i want to make an activity diagram about payment in club memberships. Where it can use third party payment like paypal, visa and etc.
so is there like 4 actors in that diagram?
user, admin/staff, system and third party payment?
or the third party payment is like inside the system?
sorry my internet went out
Yes
200x50x50
aka x 200 y 50 z 50
depth of this channel is 25 width is 60
also if the admin/staff perform nothing during the payment process then no need to consider them as actors
They also come under the third party
they can view the payment and make a membership cards for the user
after the payment has been confirmed
viewing in usually not considered as an activity in activity diagram
if they are making the membership card then yes they are actors
so the admin/staff is more of like verify the payment data?
and also manage the payment?
or they can only do this?
Yeah both verify and manage
manage the payment data?
Mm or cm?
Yes they can make changes to the database where the payment histories are stored
anytime 🙂
mm
Yee just make the bit go layer by layer from a to b. Working on the sides will lead to the bit breaking
Or if you rich buy a fancy bit and go crazy
If you're asking for help, my advice is to find a project that you're excited to build and then when you're viewing educational materials, keep thinking about how what you're learning applies to the problems you're trying to solve in your project. The best way to learn software development is to find something you're excited to build, in my opinion.
@trim rock can you help me think of any other way to make this shape
Divide the volume the be milled into layers and then mill it layer by layer
Like how 3d printing workes but u mill
ik i mill 2mm at once
i will just end the work with 1mm cutter so it can be as fine as possible
Oke
Wait cutter wat?
this things
i dont really get excited to build projects. i was more so talking about staying focused on online courses
right, I meant if you could relate your online courses to something that you're interested in (for example, an exciting software project), it'll help you keep focused. There's usually a way to relate something uninteresting to something you're interested in.
im interested in getting a job in tech
so i could use the things i learn from the course and use them for my portfolio
that sounds like a good idea. I would recommend keeping specifics in mind of what you might want in your portfolio so that things from the course will catch your attention
and in general, if you are struggling to do something uninteresting, maybe challenge yourself to do 5 minutes instead of 2. Then increase as you get better, like strength building. Make it harder to get distracted (put your phone somewhere far, etc.)
@trim rock its finally done
anyone know what the ereaders are that james recommends?
okay thank you
he uses the hisense touch and a variety of boox readers
easy thank you sm
Oh a ball bit
Oke how did it go?
anyone here use mobiussync (https://www.mobiussync.com/) on their ipad? wondering about the safety and ease of use since i have a windows laptop and an ipad
ticktick
Im tired of testing strange apps that looks unfinished
its been so long that im in this search hahahha
im going to try it, ty
from the top of my head theres also focus to-do but idk if it has a habit tracker
i prefer cron in this way, because they are doing an integration with notion and i use notion every day
but ty anyway man
maybe one named "resulvity" its paid, but its really cheap and looks good
to pomodoro
is that "forest" good 4 free or its paid too?
depends on what device ur on
it's free on android paid on ios
there's a free extension too for browser
i just need to make more documentation but everything is el ok
hey, has anyone ever tried to upload a django project to vercel?
i'm getting this warning:
WARN! Due to builds existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings
and i have no clue what's wrong
i found this in the git repo for vercel
i think this is an issue other people faced too
see if you can find any resolves in the issues section here
im searching to a pomodoro timer 4 desktop and chrome extesion or app. Its is being more hard than i thought ahahha
none have all the config, they are simple imcomplete
the only problem in ticktick to me is that sometimes i have to do other things and if i do so i lost my actual track, i cant just track an unfinished cycle
i finally found it hahahahah its simple but works perfectly 🥹
i mean u can just use a discord bot like pomobot or pomomo
or set up ur own timer even
oh w8 what did h u find
pomodoro-tracker
yooo
its true haha i never put discord on options but its a really good tool too
I mean, Midjourney is here
Question, why are people using Visual Studio Code and not Visual Studio? Genuine question
imo vscode starts up quicker and was easier to set up
i think vs is closer to an ide and vscode is closer to a text editor
correct me if im wrong
there's a bunch of different answers...definitely something better to google. one main difference is the licensing scheme and plugins
If you work in a solution with hundreds of thousands of line, VS is a bit slow to boot
just go vim
Hello guys I just weanted to ask for ppls opinion about the project that am planning to make, I wanna make a portrait img of my mom but the details is made of code (dosent have to work tho) but they should all form my mothers face
can u guys tell me if this is possible?
its kinda like art but its a bunch of code group together to form an img
PLEASE DM ME if u guys can help or have time I WOULD REALLY MEAN ALOT thank you in advance
yea, what you're looking to do is something very similar to something like "jpg to ascii" <= I recommend googling that
the issue you'll have is that the code needs to be verbose, otherwise the whitespace will not be able to "draw" anything...unless you handle drawing in the whitespace in some other manner. It just depends on what code you're using. For example, if you're using minified JavaScript and line wrap it, it'll just be a ton of seemingly random characters that you can use...but technically, it'll be code
line wrap or minfield should do
you'll have to look for a tool that will allow you to do custom text, but if you can't find one, are you going to build one yourself?
Hey guys so I'd like to get into photography / videography and i managed to find a usedSony Alpha A6300 in excellent condition at €544, what do camera-savy peeps think? is it a good starting camera?
I'm reapplying to go to Uni for either Computer Engineering or Computer Science (depends on which of them I get into) after having studied Computer Engineering once before and it not working out due to me moving to a new city during Covid and struggling there extremely when it came to mental health. Essentially wasted 3 years there doing nothing and racked up an insane amount of education loan, but now I'm reapplying to try to study again, because even though I didn't learn a whole lot academically, I learnt a lot through the experiences I had there and now I'm eager to throw myself back into studying.
But there is still a while before I need to go back to school (doesn't start until August) so right now I'm just working, and depending on when I finish work, I try to sit down with some coding courses and crank out some modules here and there. I did the C# modules on Microsoft Learn and it has now helped me a lot in gaining basic knowledge about writing and formatting text in C#, but there was not much else it taught me.
So I'm looking for either a C# course that builds upon what I've already learnt or a Java course for beginners, preferably free because I'm STRAPPED AF for cash right now
I have a Gen 4 iPad with a Retina screen that's not in use and I want to use it for something, but I don't know what to use it for, any recommendations?
Use it to take notes and organize them
I'm actually very experienced in C# and dotnet. I won't recommend a course for you because you can find them easily if you google, and I haven't done them myself, so I wouldn't know which to recommend. However, I'll give you some other food for thought:
1 - See if you can get a C# book online or in the library. Sounds like you have some of the basic basics and just need to fill in some details. This will help you a likely help you a little with your first classes. This is 100% what I would do myself if I can endure the potential boredom.
2 - Learning a language more is not that likely to give you a boost in starting CS, IMO, but it depends on your school's curriculum and schedule. I would look at the schedule for your school and see what topics you'll cover during your time there. Then, I would see how I would cover it by learning C# more. Chances are that you'll have to do something completely different to cover those topics, but maybe C# will provide an environment for you to investigate those topics. Feel free to ask about those specific topics and we can see if there's a way to get a head start on covering them.
3 - Leetcode. There are curated lists of problems out there. This will be a very difficult way to learn because you haven't done the coursework, but it'll be very valuable. Try to tackle the "easy" level questions and look up the solutions to them and learn. This will get you experience leveling your logic writing and code reading skills.
4 - If you're more interested in learning software development and not concerned with how well it will get you a head start in school, start learning some widely used components/types of technology, and you can do all these in C#/.NET. Learn how to read from a file and write to a file. Learn how to create and host a Web API (it's literally called Web API in .NET). Learn how to create and host a basic SQL database and perform basic queries -- you can use SQLite to skip a lot of the other setup steps. Learn to host a web front end (HTML/CSS/JavaScript.) This section is the most professionally relevant and will allow you to discover what you're most interested in and give you a foundation to start building your own personal projects.
5 - If you're into gaming, you can do learn Unity because it heavily uses C# and you can leverage your passions to keep you going.
This is a ton of great information, thank you sooooo much❤️❤️
I'm thinking of using it to take notes but I'm worried about the lag, the reason the iPad is not in use anymore is because of it becoming slow and unreliable for the use it was put through, which technically wasn't a lot
maybe try a factory reset. doesn't sound normal for it to slow down significantly
Hey anyone here familiar with html coding?
I am trying to produce a hoverable dropdown menu in Husbpot email, but I am experiencing trouble with it
I tried the following code:
<div class="dropdown">
<button>HubSpot Resources</button>
<div class="dropdown-content">
<a href="https://blog.hubspot.com/">Blog</a>
<a href="https://academy.hubspot.com/">Academy</a>
<a href="https://www.youtube.com/user/hubspot">YouTube</a>
</div>
</div>
But instead of a dropdown menu I get this
Hmmmm, any note taking apps you recommend? Ans also something to note take with as in a stylus or something? I don't know if the Apple Pencil is supported or if I have the budget for it lol
yes because int temp is not a pointer var
your links are malformed. The end quotation is in the wrong spot, unless discord just mangled it.
putting * before the pointer variable dereferences it and returns the value. It's not due to temp not being a pointer var, but due to the * in front of p1
I'm thinking of using an iPad 4 for notetaking at the Uni I will get into in August, it's a bit slow so I might factory reset it, but the Apple Pencil won't support it so what do you recommend me using as a stylus for it? And what notetaking apps would you guys recommend?
notability is the best note taking app, it only downsides that it have a yearly subscription (maybe 10$ depends on where you live)
there's some other great free apps (the default one, Microsoft OneNote, LiquidText)
did not know it was subscription based, for fuck sake
it seems like they might have a education plan where if your school is eligible, you can get the app for free, i'll try and contact them and see
its free but after some time you cannot highlight stuff and there are some limitation in the free subscription
try that it might work, worked for me with other apps
seems like goodnotes is something a lot of users of notability migrated to after notability introduced their new subscription model, might take a look at that
it's just a bit difficult to know if it's available for free or not for me because of me not being enrolled in an university yet, I'll experiment and see tho
it looks like a good app ! might move to it lol XD
if you do, please tell me how it is, DMs are open:-)
Will do :D
i use goodnotes and i think its great! there is a one-time fee but it does everything i need it to :))
We have now moved up to a iPad gen 5, which also was just laying around lol, screen is semi fucked (it works and the touch works fine, but it just scrolls on it's own sometimes and the home button is a little bit pressed in) but I might just buy a new screen and possibly a new button and fix it up and see if it works
Good to hear, will look into it, I assume you use a Apple Pencil
yeah, my ipad broke recently so i made an investment and got the new ipad & apple pencil
Which iPad did you use before?
if you have the funds available i would definitely recommend, the new apple pencil is so cool - you can double tap to swap between pen & eraser which i use all the time
i had my brothers old 6th generation, but one day it just stopped turning on lmao
i took it to my local apple store and they said there was nothing they could do
I would love to, but when I move to wherever I get my uni place I need to work to support myself financially, and after using it on both rent and food, I don't know much I'll have left to use for personal stuff
yeah of course i understand completely
But if it had apple care, most likely they would have moved heaven and earth to fix it
im hopefully going to be in the same position in september so im quite lucky that this happened over summer so i have the tech ready for uni
ofc 😂
What are you bringing into uni when it comes to tech? I'm working right now so I need to start buying stuff that I'm thinking of bringing
im quite a big tech person so ill probably be bringing quite a bit more than most 😭 but i have a laptop and an ipad that i currently use for college, im gonna bring them both and see which one suits my course more
and also potentially a monitor if my mum doesnt need it for work
but i really dont think anyone needs that much :) im just a bit extra aha
I had a laptop and monitor only, and then I ended up buying a whole ass desktop and a second monitor, so I came back home with a desktop pc, two monitors, a router and a WHOLE BUNCH of wires
My dad was pissed lmfao
also one thing i would suggest is not buying stuff before you go! if you've got enough money rn, i recommend putting it aside for once you start
because its hard for you to know what you'll use
Smart, I have stuff already I think, I'll bring one of the two monitors, an external wireless mouse I already have and that should be enough I think
its probably better off waiting until you get there then figuring out what works best for the course youre gonna be doing
haha thats so funny
i have so many wires that ive filled my extension cord so i have to swap around the wires that i need
sounds good :))
I think that's smarter on my front, both financially and just generally for the amount of stuff to bring over there regardless
I did this too....with a 10 input extension cord
omg 😭
I was a fiend at my previous place
aha clearly
outside of hardware, highly recommend getting a system where your documents are sync'd and accessible from any device. hopefully, this handles backup as well so that you never accidentally lose important data/documents
Like software based? Any recommendations? I have a windows laptop and might possibly use an iPad for notetaking, if everything for the iPad is fixed that is, in terms of the screen, Touch ID and acquiring a good stylus
there's a ton out there, but I know dropbox used to be really popular
Keyword: used to, it's a subscription plan now and I'd rather make my own webserver to store my docs with drives I have laying around rather than pay for it, but before it comes to that I'll search around
You can still get a free account: https://www.dropbox.com/basic
another alternative if you are willing to start learning git (really useful in the industry) is use github
Feel like the free one will fill up quick since it's only 2 gb, but maybe not if I just have it for notes
yea as long as you don't have games or large videos in there, it should be enough
Google drive gives you 15gb for free
Hey, does anyone here have some experience with the Samsung Galaxy Buds 2 and Buds 2 Pro? Can't decide, which one to buy
sus:)
Whichever one you have the budget for tbh, I've really tried using earphones for a while but none of the ones I've tried sit in my ear (and I've tried tens and tens of pairs, both wired and wireless), so with this situation, using a wireless one, the chance of me losing one or both is huge so I've just stayed away from them altogether and only use over ears. But I've heard solid things about both from my friend who bought and used both tho
true, I'll look into sorting out my existing google drive and see if I can make it work for my notetakings
if u have spare pc and drives lying around just setup like a network drive. kinda like a home server, and then learn some network and vpn to ur server from anywhere else outside to access ur files
so like my own personal cloud? from what I've heard this doesn't require a ton of resources and and there are a ton of guides out there to set this up easily, I'l look into it, this might be the way I'll go tbh, and plus I've always wanted to try and do this once, maybe with a raspberry pi or something, but I'll defo look into what the best and most practical way to set up this for me will be
u can run it completely off a raspberry pi if u wanted to. it depends on the scale of your server / setup
i personally use wireguard, samba and zfs on a linux server that sits in my closet
i bought a desktop gaming PC on which I tinkered with Fedora Linux through VM to possibly fully convert to Fedora on my laptop possibly (it was fun, but I didn't get too far unfortunately), but I've been thinking about fully diving into learning Linux, which distro are you using? And how long did it take to setup your server?
That's a thing?
That's amazing!
would it be possible to mod a cd player by taking the guts of a nice cd player/speaker and putting them into the housing of a less nice cd player
this is my idea
How would one be capable of doing it?
yeah it would defo be possible
but if you want it to be sturdy then u would be required to 3dp many blockers
is this the nice one or the not nice one?
this is a not nice one, i think it was originally made for children
but how funny would it be to have a sleeper cd player
with hello kitty housing
getting into cds and physical media lately
bluetooth could be an addition
but it would be awesome if i could make it play cds
using ubuntu server, took around 2 days to figure out what i was doing
I'm learning switch statements in C and whenever I try to run the code in terminal and enter my input it displays that it's .exe has stopped working....and hence doesn't displays the output ......There isn't any problem with the written code or any other files that I have of C....If someone knows what's going on and help that'd be great
how are you compiling and show ur code
heey guys Actually i need ressources about the administration servers like the windows server 2012 R2 , it's about how to manage servers how to do a GPO strategie du groupe , giving the permissions to the groups or the organization unit...ect please any hellpT-T
Hello! Do anyone have advices on programming interviews? I am a 2nd year soft.eng student and currently my school changed their marking system to have a programming coding interview at the end of every assignment - students have 30 mins to solve 2 relevant coding interview questions. I do not know how I should prepare, hence seeking help.
Anyone know how to wipe all my drives from bios, I was running Linux and I wanted to go back to windows and everything broke 💀. I’ve been trying to figure out how to just clean wipe both of my drives but Linux won’t let me since it’s installed on one of them
I’ve tired installing windows onto the drive but it still won’t let me (windows installation media)
and I went to bios(msi) and I can’t find where to do it
is it a mock interview where you interact with the interviewer, ask questions, and work together? or is it just you solving a "whiteboard problem" on your own?
boot windows installer or portable linux install running from a USB thumb drive is an option. Then, access the disk utilities from there
I tired that but ima do it again when I get home
you would also go into bios and change your boot sequence to USB first so that it doesn't try to boot from the installed drives
I got to the installation media and disk management but it wouldn’t let me format my ssd
what was the error?
I got it working
i used diskpart in the command prompt of the instlation media and just cleaned all my drives
nice
thx for help
solving whiteboard problems on my own
Anyone use VIM here ?? I need a help
look up neetcode. there's a 150 curated questions of leetcode problems with video solutions. that's how I would prepare for whiteboarding interviews in general, but for one administered by school...they would have to be asking you about problems on topics that they covered specifically. Maybe they can tell you more about what to expect? Either way, some of the primary skills in general will probably be...
-
identify what the problem and what category of problem it is. then, determine the category of solution.
-
exam the test cases that they give you (if any). Come up with your own test cases. A test case would be something like "if the input is [0, 2, -1], what would I expect the output to be?"
-
come up with a high level solution as a description or pseudocode. Run your test cases through this potential solution.
-
Write the code and then run the test cases again through this.
For actual interviews, though, you would do some other things because you can communicate with the interviewer.
for real interviews, I recommend this: https://www.youtube.com/watch?v=DIR_rxusO8Q
Whiteboard Coding Interviews: A 6 Step Process to Solve Any Problem
Check out the full transcript here: https://www.fullstackacademy.com/blog/whiteboard-coding-interviews-a-6-step-process-to-solve-any-problem

does anyone know any GOOD resources to learn react
the course i have is boring af
i capitalized good on purpose bc if i hear another FrEEcOdeCamP UdeMy OdiN pRoJeCT recommendation im gonna lose it
what are you wanting the resources do for you to make react "FUN TO LEARN"?
cause in all honestly you will still have to go through the technical portion
I wanna learn C
haha its confusing for me as well
u can try from freecodecamp
yea
See if Microsoft Learn has any courses, I'm doing their C# course now and it's great
ooh
How do i get to open molegro molecular viewer on mac
Hi tech newbie here.
I have:
- Laptop A
- Laptop B
- Monitor C
It looks like the laptops have 1 HDMI port, while the monitor has 2 HDMI ports
I want to make Laptop A my main device
Laptop B and Monitor C will be my external displays.
How do i achieve this? how many HDMI cables do I need? Will I need a HDMI to USB converter?
if you have windows, you can use an HDMI cable from laptop A to monitor and configure it to extend your desktop. Then, use windows wireless display to use a separate computer (laptop b) as a monitor. However, there will be some latency.
awh, do you think its possible to do without wireless connections?
I'm not sure, it's worth a try. otherwise google something like "use laptop as second monitor -wireless"
oki thank youu
From the laptop's start menu, select Settings. Choose the system and then Projecting to this PC. Now on the primary device (desktop), use windows+P and click Connect to a wireless display link showing at the bottom. Quote is from IndiaTimes.com
Gotta pay for those?
Nope, doing them right now as we speak without a single penny paid
Let me check them
no duh. if i wanted something "fun to learn" it wouldnt be coding
i mean resources where its not just blocks of text or just videos
ROBERT GOULD SHAW
" Dear Father:
Despite my many requests,
it's clear that we're to be used...
...only for manual labour.
Morale is low, the men's good humour
darkened by idleness and despair.
Why keep drilling,
if they'll never be given...
... the opportunity
to prove themselves?
I've written to Governor Andrew
and the general staff in Washington.
But I feel that only a letter
directly from you to Lincoln himself...
...can have the desired effect.
I can think of no other course.
I am sure you both pray, as I do...
... that all this
has not been in vain.
Hey, it look like
we're going the wrong way."
guys can how can i create a system like james scholz ??
what system
would be easier to help if the questions were more specific
chatgpt could
if you want to code it, use html and css.
if you don’t, try carrd.com. Makes easy websites for free and simple ones. :)
code it normally, it’s not any different
<div class="question">
<h3>Question 1:</h3>
</div>
<div class="answer">
<p>Answer 1.</p>
</div>
do smtg like this
and continue
im not coding the whole thing for you or you wont learn
hi there! does anyone here know how to code with RStudio? if so, pls hmu! i just need help coding some graphs but i'm strugglinn ;-; i'd rlly appreciate it
what r u struggling with?
does anyone know how i can remove the spotify-tui thingy
DO NOT CLICK ON RANDOM LINKS
sorry in advance for the long text, but to sum it up i have a very large dataset about Australia weather, and i want to create 2 graphs:
- a graph that compares the average rate of wind gust speed of 5 different cities throughout the years 2010-2017.
- graph that compares the average rate of temperature rises of those same cities throughout the years 2010-2017.
i think the best options are to create a line plot or an area plot, but the coding part and filtering the data is where i'm having trouble
guys
who knows how to change ip adress and etc?
like who is the pro in this local area network and etc.
in addition will there occur problems regarding to the change?
i tried creating this graph for example, but for some reason i can't see the colors for Albury and Brisbane, i'm not sure why
What code did you write for this?
DM me the dataset
ggplot(filtered_data, aes(x = Year, y = WindGustSpeed, color = Location))
-
geom_line(size = 5) -
labs(x = "Year", y = "Average Wind Gust Speed", color = "Location") -
scale_color_manual(values = c("Sydney" = "red", "Albury" = "blue", "Brisbane" = "green", "Penrith" = "orange", "Melbourne" = "purple")) -
ggtitle("Average Rate of Wind Gust Speed by City (2010-2017)")
sure!
guys i have changed my ip address in settings, just clicked edit and saw my ip adrress and etc (there were 2 more ip stuff) from cmd (ipconfig) i just wrote those stuff and i accomplished changing my ip.
but
is my previous ip address will be seen to administration
is it will be visible
i have a big trouble pls dm me i have questions
like did i still changed my ip via settings or it is not still changef
d*
does anyone have a predicted computer science eduqas GCSE component 1 paper?
just restart your router or disable and renable your Internet adapter
Thanks bro, I've been meaning to learn html, but it's very slow progress.
It's all about practice
just try to learn new thing everyday
and don't jump and think it's slow
Start by learning the basics of html and css then u can add some js when you feel ready
start by a one page add some text some paragraphs as well as some images
and try to tinker with :hover effect in css
the trackpad inbuilt into my laptop isnt getting detected when i try and use it, rn im using a mouse but i googled what to do and i dont have a "HID compliant trackpad" thing to update in the first place ? i tried downloading it off some website but idt it did anything except now the mouse i connected is named hid complaint smthn 😭 idk much about this stuff but any idea what i should do
the most basic thing to try would be to download any software or drivers from your laptop manufacturer's site. Otherwise, maybe the touchpad got disabled accidentally somehow, so I would check to see if there is a way to have done that and then undo it
okay well i just tried this and it hasnt changed anything really
this comes up as a hidden device tho
also website said i didnt even need it
hey guys! any angular developer here?
Hi, I try to learn basics of python and my exam is May 26. I am very stressful about it. Can anyone help me. May be we can study together, or may be I can ask the things that I did not understand. Or any suggestion to study efficiently
Only advice is practice
Try to learn thing by thing even if you cant see improvement right away
Do tutorials on youtube as well as some quizzes and stuff online
Many platform offer help like w3schools and more
Don't be, if you are scared u will never learn
U have to accept and be open about it
Dw u will do just fine
Python is an easy language don't let it scare you
Okey, I just worrying about the days will not enough to be successful because I have only 8 days left
I mean what happend happend
Focus on whats now and whats comming
8 days are good to start learning
Everyday learn something new
Like i said if u say you wont do it, u will believe it and u won't
Be open abt it
People can do crazy stuff in 8 days il tell u that from experience
The hardest part is the start
Okey I will do it. And, after the exam I will write here. (: I'am motivated thanks for your time
yes because there are so many excuses
Cheers
Just believe in yourself
Check ur dms
the hardest part of the programming exams is the mental part imo
if you are not stressed during the exam you'll do better
if you have questions just put them here
worrying won't get you closer to your goal. Turn that anxiety into action! Python is an extremely popular language. There are resources everywhere. You should be able to find answers to anything that you need very easily.
thanks for your advice an support !!
You are rightt. There are a lot to do like my other exams. I was just exhausted. But, what happened happened. I will just try my best. And, ı will never do the same mistakes again
What does the transpose function in python do?
it returns the transpose of the matrix
but if you can send the exact function maybe it'd be better to be sure
guys is any one here interested in problem solving ?
i need a road map to get ready for ECPC qualifications and i don't know where to start
Hi everyone im barely beginning to learn some code and I was following my prof video and when they typed their "else" it did not underline red and mine did. As far as I could tell there were no differences between our code and it will not let me save until I fix 😦
line 45 has an opening brace, but it should go on line 44
the code that you have effectively written is an IF statement without braces. When you do that, only the immediately line after is part of the IF statement. Then, when you have braces starting on line 45, that is just a regular scoped section of code. Therefore, on line 48, it detects that it is not immediately following an IF statement, and the error is thrown.
To debug these issues in the future, I recommend deleting lines of code until it works. Then, start adding lines back one at a time until it doesn't work.
Thank you so much! I will definitely begin to implement this form of proof reading myself in the future.
Is is this because of the break that I have or would the break not matter? Like if the bracket was on either side of the break
the break does not matter. it is purely because you have a statement right after the IF conditional on line 43
Ok gotcha thank you very much!
you can verify this by just deleting line 44, then everything will work
np, this kind of thing will be second nature to you soon 🙂
Don't click on those links
first thing i thought when i saw it lol
yea, you can report the message
I did
he prob got hacked
<@&942391219206647828>
I'm doing a T-level for DDD. I was wondering if anyone else is
me and other students across the UK who are studiyng it have made a discord, to discuss how terrible it is
If anyone here is considering T-level: DDD. Don't, do an a-level for computing instead. The government lied. It's not computing related, it's about 80% business. Every student I know who is in the same course, hates it.
government lied?
Yeah. They lied about the course?
where is the one example
Hello. I am software engineer with 6 years of experience (cloud, machine learning, data engineering), if you have any question regarding CS career/study/tech problems etc. just ask. I am from Europe.
I am currently building a consistent routine (wake up at 04:30, cardio and coding on my side project before my full time job), been doing it since march 10th 2023 daily.
very cool, what is your side project about?
cloud infrastructure
does anyone know how to best use notion to organise or is it just better to use a notebook??
both. But I use it mostly to be organise.
I like Oblivion, worth looking into
hi, im needing some help with a bioeletrical impidance analysis device using an arduino and an AD5933 but i not being able to get the code running in arduino. i think the circuit is well connected so i think its really the arduino code. can anyone give me a hand?
what is it?
hi guys , so here is very small community for tech i have to talk about to tech
Hi! today I will enter an exam for python but i did not understand the classes and object oriented programming can anyone have suggestion
?
Classes are blueprints for your objects (similar to real life: like a blueprint of a house). Objects are instances of a class (similar to real life: like actual houses that is already built according to bluebrint).
OOP is just way of programming where you store your data in Classes, and classes methods/functions is basically your logic.
class: House
def open_window():
print("opened")
There are 3 topics in OOP: encapsulation, inheritance and polymorphism
Encapsulation means we don't expose data/logic to other classes unless we need (like private/public functions)
Inheritance means child classes can inherit functionality from parent.
All of those topics apply to any language that can be written in OOP way, including python.
thanks really !! can I ask questions about the classes ?
of course, i might not answer immediatly though because my study sessions are 06:30 - 08:30 GMT+2 daily
thankss
The problem with CS education is very often that they present many concepts and paradigms without being able to teach the student why these paradigms exist in the first place. They might tell you how to use OOP and perhaps a few details on the behaviors, but the student is often unable to get a feel for it since these techniques were created to handle large software products developed by large teams while the student only writes small snippets of code.
What I'm trying to get across here is be aware of the techniques being taught to you while also being aware that you won't have the context for most of it. OOP and other paradigms are all about structuring and organizing code for human beings. It has virtually no functional purpose to a computer at the hardware level. As you progress in your studies, try to keep that in mind -- "how does this organize code or information better for humans?"
probably a little more fair and accurate to say "the challenge with CS education"
Heyy guys, does anyone here uses Tia Portal and Wincc ??
guys if anyone would help explain WEMips( simple machine learning i think- specifically how it stores and loops through hex and characters in ascii) and how Slicing works in python I would really appreciate it.
Does anyone have envato Pro? I urgently need to download 2 tempates
WEMips is not machine learning. It's a simulator/emulator for the MIPS assembly language. Can't answer your question about hex and ascii because MIPS doesn't do that without someone having written a program to do that. Since we don't have the source code to said program, we can't explain it. As for slicing...have you tried googling it? What questions do you have about it?
No clues.whats going on?
Nice. uhm let me make more research about them both and get back at you. tysm for clarifying the Mips being assembly message part.
heyo can somebody help me with fixing my moon on my tab view??
My Moon is so slim and i dont know why
Again, i mean the moon on the Tab Side at the Top of your browser...
make sure you are using the correct size of img
yeah...
but i cant find the right code cause i just copied it
🤓
AH
so code sizin sentence
it should be in the <head> tag
k
settings
then scrool down
ig
anyways that aside
just in your index.html file
in the <head> tag
there should be something like
icon
or favicon
just remove the type thingy there
u should be fine
nothin happened
the type thingy is away
but the moon is slim
I wrote wide in the last text but actually the moon is too slim
voidz help me buddy
i cant live my life with this f slim moon on my website ong
i did it, now its public
pog
does it work now ?
i will make a pr
if it doesnt
bro im in the middle of a yoga session gimme some minutes
bro u safed my life, now i can finally live peacefully
i didnt even knew somebody can just edit my whole code and i just have to publish it, thats insane shit
bro i literally noticed i uploaded the wrong moon, now i have two different moons. Lives not easy but thats a problem for tomorrow
lmao
its fine
ikr opensource is sick
hellyeah
i think its broken link
no i turned it back to privat cause i fixed it, with my buddy @glad wyvern hes the best of the best
🤝
yoo
hey does anyone know how to send an email once someone presses a button on a wesbite. im using node.js and js and html ...?
if you mean it opens their mail client or web mail client to send the email, then you just create a mail to link or form post. Otherwise, you need to set up a mail server...y'all need to try googling this stuff before asking. It's an important life skill.
so what have to show by your github link , any contribution
- In the frontend (html) it is by using "mailto" tag, it will open mail client for the user. But they still has to type everything and send from their mail client like Apple Mail.
2.If you want the backend (server) to send an email, so a user only types something in the webform and backend sends an email, then you will need something like AWS SES (Simple Email Service) on your backend. It will use SMTP protocol under the hood and send email to the emails you whitelisted.
Here how I do it (this is only the final snippet) in my python backend:
response = config().ses_client.send_email(
Destination=destination,
Message=message,
Source=source,
)
- If you want to write your own solution from scratch, it will be a ton of work, and besides, most email providers will put it directly to spam because it is unknown sender from unknown server.
So in the end just go with 1. It is just one-liner.
e.g.
<div><a href="mailto<YOUR EMAIL here"><YOUR EMAIL here></a></div>
Hi. idk where I should ask this. What is the name of fast cutting of videos that youtubers use? I would like to make dynamic videos. I use Vegas pro 15.0. Thank you if somebody can help me. Idk how to cut the video like that, but I would like to use this cutting technique.
idk dude that dont look legit
@polar ferry you a mod right? i think this guy tryna scam us
Ok thank you so much!! Will try these out and look into them
hey guys i have an issue regarding my nav bar where i dont have to click the burger to pull the menu (commin from the right) if i just click on the screen elswhere and it would toggle any one knows how to fix this?
THIS IS THE PROPERTIES ON MOBILE VIEW
.nav-links-nav{
position: absolute;
top: 8vh;
right: 0;
height: 92vh;
background-color:rgba(4, 9, 30, 0.759);
width: 35%;
display: flex;
flex-direction: column;
align-items: center;
transform: translateX(100%);
transition: transform 0.5s ease-in;
}
transform: translateX(0%); not in the mobile view
JS
const navSlide = () => {
const burger = document.querySelector(".burger");
const nav =document.querySelector(".nav-links-nav");
burger = addEventListener('click', () =>{
nav.classList.toggle('nav-active');
});
}
navSlide();
burger = addEventListener
You probably want burger.addEventListener instead
Know* , we use base form of verb with did/did not.
I have a project which I have to type so can anyone pls suggest me any app on which I can design my project and type it, except Microsoft MS document.
Any other app than ms word
LibreOffice ?
I can change font color and size and everything right?
And does that work well on mobile phone
LibreOffice is functionally very similar to the microsoft office suite for desktop, but it's open source. I don't have experience with its mobile offerings
what about google docs?
how i need help with java
import java.util.Scanner;
import static java.lang.Math.pow;
import static java.lang.Math.sqrt;
/*
Write a Java program to calculate a quadratic equation. If the equation has no real roots,
the program should catch the NoRealRootsException and print a message to the user.
If the has real roots output within console.
*/
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
//ask user to input the equation
System.out.println("Standard form of quadratic equation: (ax^2) + bx + c = 0");
System.out.println("Enter the coefficient 'a': ");
int a = scan.nextInt();
System.out.println("Enter the coefficient 'b': ");
int b = scan.nextInt();
System.out.println("Enter the coefficient 'c': ");
int c = scan.nextInt();
System.out.println("The equation: (" + a + "x^2) + " + b + "x + " + c + " = 0");
//find discriminant
double d = pow(b, 2) - (4 * a * c);
if(d > 0){
double x1 = ((-b) + sqrt(d)) / (2 * a);
double x2 = ((-b) - sqrt(d)) / (2 * a);
System.out.println("x = " + x1 + ", x = " + x2);
}
else if(d == 0){
double x = (-b) / (2 * a);
System.out.println("x = " + x);
}
else if(d < 0) {
try {
double x1 = ((-b) + sqrt(d)) / (2 * a);
double x2 = ((-b) - sqrt(d)) / (2 * a);
System.out.println("x = " + x1 + ", x = " + x2);
} catch (Exception e) {
System.out.println("NoRealRootsException");
// it did not show any sign of exception. it shows NaN. how to catch that?
}
}
}
}
I'm struggling with catching exception part.
I have a question, why are trying to get x1 and x2 in d < 0 when you already have it in d > 0?
You didn't get an exception, maybe cause it didn't catch as it already had a value
so maybe use a subclass for getting that exception
Also I would remove the redunant code by:
try {
if (discriminant < 0) {
throw new NoRealRootsException('No equation has no real roots')// NoRealRoots can replace with a subclass of an exception
} else {
double x1 = (-b + sqrt(d)) / (2 * a);
double x2 = (-b - sqrt(d)) / (2 * a);
System.out.println("x = " + x1 + ", x = " + x2);
}
} catch (NoRealRootsException e) {
System.out.println("NoRealRootsException: " + e.getMessage());
}
Maybe this would help
@fleet pilot
can you give me hint on this one:
throw new NoRealRootsException('No equation has no real roots')// NoRealRoots can replace with a subclass of an exception
I'm new to Exception handling
Exception handling where you had it is a great start
however the issue is that your code recognizes NaN as a value
so we can create a subclass of the exception with our own exception
so for the new subclass
class NoRealRootsException extends Exception {
public NoRealRootsException(String message) {
super(message); //superclass constructor
}
}
Once we push it to a superclass, the exception is initialized with the error message
The more I think about it, try to remove getting the x1 and x2 when d < 0
here's my modified code.
import java.util.Scanner;
import static java.lang.Math.pow;
import static java.lang.Math.sqrt;
/*
Write a Java program to calculate a quadratic equation. If the equation has no real roots,
the program should catch the NoRealRootsException and print a message to the user.
If the has real roots output within console.
*/
class NoRealRootsException extends Exception {
public NoRealRootsException(String message) {
super(message); //superclass constructor
}
}
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
//ask user to input the equation
System.out.println("Standard form of quadratic equation: (ax^2) + bx + c = 0");
System.out.println("Enter the coefficient 'a': ");
int a = scan.nextInt();
System.out.println("Enter the coefficient 'b': ");
int b = scan.nextInt();
System.out.println("Enter the coefficient 'c': ");
int c = scan.nextInt();
System.out.println("The equation: (" + a + "x^2) + " + b + "x + " + c + " = 0");
//find discriminant
double d = pow(b, 2) - (4 * a * c);
try {
if (d < 0) {
throw new NoRealRootsException("No equation has no real roots");// NoRealRoots can replace with a subclass of an exception
} else {
double x1 = (-b + sqrt(d)) / (2 * a);
double x2 = (-b - sqrt(d)) / (2 * a);
System.out.println("x = " + x1 + ", x = " + x2);
}
} catch (NoRealRootsException e) {
System.out.println("NoRealRootsException: " + e.getMessage());
}
}
}
and this is the output:
it suppose to show sth like this right?
For this equation, we know there isn't any real roots. So we are correct there.
So far it looks good, just try with other cases
ensure that it looks good
it looks good
thank you for your help @fleet pilot
I'm still trying to wrap my head around java and OOP. This kind of exercise make me quite confused.
@stiff storm I actually think you can do without the exception subclass by just reducing to an Exception
I learned about OOP in java with some websites online
Here's a website that explains some OOPs concept well: https://www.w3schools.com/java/java_oop.asp
Thank you for the site. I'll check it out. I'm falling behind in class so I use this website to learn java: https://www.mooc.fi/en/
Thanks again for the help. Tho, i might need you again for my second exercise
i'll try to do it myself first
mine is GMT +07:00
If you get stuck, people later on can help you if I don't respond. If not, I can help out if need be later
I'll be signing off
no problem, happy to be of service