#tech-related-help

1 messages · Page 5 of 1

spare bronze
#

In what time for n=1000000

modest wolf
#

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

spare bronze
#

Oh I wasn't referring to that problem

#

I meant the one above that

#

I was so confused

modest wolf
spare bronze
#

Yeah I was thinking wait what it's not that quick of a problem.

glad wyvern
#

something like this ig

#

the is_prime function is very optimsed

#

not sure if it can be optimized even further tho

spare bronze
#

Just implement a timer quickly and let's test

glad wyvern
#

for n ??

#

lets try it for n = 1000

spare bronze
#

I'm not at my pc so only have a screen of a particular n

glad wyvern
glad wyvern
#

one sec

#

i know you can do some timer thing using python

spare bronze
#

Yeah something like time.instant then stop and get the difference in times

glad wyvern
#

ye

spare bronze
#

It says it's explicit my terminal screenshots

#

Wut

glad wyvern
#

lmao

#

weird wallpaper or smth?

spare bronze
#

Nah

#

I crop it

spare bronze
#

There

#

It works now

glad wyvern
glad wyvern
#

one sec

spare bronze
#

It's just a picture from the 80s

glad wyvern
#

lemme convert it in ms

spare bronze
#

And microseconds

glad wyvern
#

not sure what unit it is in

spare bronze
#

N=1e6

glad wyvern
#

man python is so dumb

#

but its fast

#

as in to implement

#

not in performance

#

better now

spare bronze
#

Cool

glad wyvern
#

its way less than that tho

#

ig

spare bronze
#

Its hard in python

glad wyvern
#

2377 ms is like 2.3 sec

#

there is no way it is that long

spare bronze
#

Very clean code though

glad wyvern
#

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

spare bronze
#

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.

spare bronze
glad wyvern
#

very sleep rn

spare bronze
#

Cool can't wait!

glad wyvern
#

alr gtg

#

have fun

spare bronze
#

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.

modest wolf
#

I need Leetcode buddies

spare bronze
#

Hot take: screw leetcode

#

leaves

idle dew
#

anyone with touchdesigner experience?

gray mesa
neon inlet
#

does anyone good with quantum mechanics ?

#

schrodinger equation ?

spare bronze
#

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)

idle dew
spare bronze
#

and ik it says python but he doesent explain what he wants to do

#

with python

#

or

#

I mean like this

#

(its broken but)

idle dew
spare bronze
#

?

idle dew
#

nvm man geez

spare bronze
#

Nah im confused

#

idk what you mean

#

can you explain

#

@idle dew

#

Im not that fast

idle dew
#

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

spare bronze
#

Ah right ok i get you

#

so what did he want?

idle dew
spare bronze
#

and there is also still no question or?

proud flax
#

real

neon inlet
#

will she told ya

#

like u see those wave functions

#

i want someone to graph them to me in python language

neon inlet
# idle dew

like a script to graph them so they look like this ...

idle dew
neon inlet
#

nd now i gotta translate physics into scripts maan this is so damn hard ngl

idle dew
idle dew
proud flax
#

use a quantum computer

idle dew
#

w

modest belfry
# idle dew damn thanks

You can use it for the graph, but to make it, you need to describe the functions well for the program

idle dew
#

yes yes

neon inlet
proud flax
#

search online

#

i’m sure there’s tons of people who have plotted these equations before

modest belfry
neon inlet
#

i'll try it

neon inlet
#

i'm using pycharm ..

idle dew
#

i found this but im not sure how much of a help this is

modest belfry
neon inlet
#

yeah it's related to quantum tunneling

#

what is that holly

modest belfry
# neon inlet what is that holly

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

neon inlet
#

i don't get u man

modest belfry
neon inlet
#

this is hella bad hh

proud flax
neon inlet
#

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 ...

▶ Play video
#

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 ??

astral plank
#

Do you use Jupyter notebook? You can test the code from ChatGPT in that

neon inlet
#

show me how it's done sir ?

astral plank
#

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)

neon inlet
#

nah it's a sin and co function written in euler form

#

it's a wave so yea

spare bronze
#

like such?

latent mural
#

Anyone good w ReactJS?

#

And can help me debug?

wispy finch
#

can someone recommended me to ReactJs course on youtube ,please ??

wheat heart
#

free code camp

loud marsh
wispy finch
loud marsh
gray mesa
#

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?

uncut quartz
#

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

spare bronze
uncut quartz
spare bronze
#

what operating system?

#

win/linux/mac

uncut quartz
spare bronze
#

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.

uncut quartz
#

i'm sorry i didn't understand

spare bronze
#

Is it only running on windows or does it have to be able to run on other operating systems.

uncut quartz
#

only windows

spare bronze
#

OK cool so winsound is your best bet

#

however if you want custom sounds

#

use the following

uncut quartz
#

ok thank you

spare bronze
#

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

gray mesa
#

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

spare bronze
#

"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)

idle dew
#

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

shrewd heron
grand abyss
#

Is a Macbook or an Ipad better for Working?

flat sparrow
#

Is taking Computer science fun

#

For uni

frank geyser
#

Idk if fun is the right word lmao

#

But yeah a good thing to study

idle dew
#

How to change language in hyprland ar

#

when i read chinese pdfs the text just loaded as faliure unicode

zealous lily
#

A friend showed me this library and I fuckin died, FuckIt . py

spare bronze
mint seal
#

hi how can i generate prime numbers printing the first 100 numbers?

#

without function

spare bronze
#

in what language

mint seal
#

in python

spare bronze
#

I gotchu bro

#

CHATGPT or I can actually give you the code

desert cipher
spare bronze
#

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)) 


spare bronze
#

@mint seal

misty ibex
#

hey guys

#

can someone recommend me a free pdf editor?

#

pls

urban saddle
#

should I make anki cards for code 🤨

calm ridge
spare bronze
#

💯

spare bronze
# calm ridge I want to say yes, because it's funny <:isekaiPikaXD:957813325511675984> But pr...

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

calm ridge
#

It's cool XD nice reply

idle dew
glad wyvern
#

also wtf did you use to stick it like that lmao

idle dew
#

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

idle dew
idle dew
#

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

idle dew
# idle dew I suggest to call a professional as well I built a pc for my friend and he was a...

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 👍

idle dew
#

Nice man I’m gonna upgrade my pc soon too might have to take some recommendations from you for stock coolers

prisma ridge
#

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

astral plank
bleak jetty
#

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

zealous storm
#

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

severe bison
idle dew
#

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😭😭😭😭😭😭

ember scaffold
#

Look up “What Kind of Mind Does ChatGPT Have?”

astral plank
# idle dew but how can the result of any variable be ALWAYS true😭😭😭😭😭😭

"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?

idle dew
#

thank you soo muchhh!!!! <333333

idle dew
#

https://forms.gle/xDVkfQrwT2kvReQw7
heyy guys i need to collect many responses
for my project
its abt general fitness plssssssssss fill it

gray mesa
#

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?

fiery turtle
#

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???

severe bison
# fiery turtle I am working on a react app and I am getting a fetch error. I checked with post...

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.

fiery turtle
clever owl
#

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)

severe bison
severe bison
clever owl
open solstice
hot falcon
#

can anyone help me understand what the % means in java code

#

if (number % 2 == 0) {
System.out.println(number + " is even.");

zealous thorn
#

returns the remainder when 2 integers are divided

#

e.g., 55%13 = 3

gray mesa
open solstice
gray mesa
open solstice
#

if the parent doesn't have the lowest frequency, you basically have to create some other leaves on the same level

gray mesa
idle dew
#

any youtube channels for studying physical part of the computer like the motherboard and stuff?

mint seal
#

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) ```
mint seal
#

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

dusk turtle
#

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?

brazen trench
#

__ https://flask.palletsprojects.com/en/2.1.x/__

  1. at line 1. "from flask import Flask"
  2. create an instance of the Flask class: app = Flask(name)
  3. Define a route that will render the HTML template.
    for example:
    @app.route('/')
    def index():
    return render_template('index.html')
  4. create a test code to run the flask application:
    if name == 'main':
    app.run(debug=True)
thorn kiln
#

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)

pine heron
#

which one looks cooler? any opinions?

severe bison
severe bison
frank geyser
#

Yeah I like the right more

#

More simple

zealous thorn
magic moon
zealous thorn
dark sand
#

also php

inland sapphire
#

Anybody know how id link my shit in emacs org between different devices? Ive only got it on my thinkpad so far

tight valley
#

emacs org mode ?

glad wyvern
#

and push everytime you do some editing

#

also thats one sexy thinkpad

glad wyvern
#

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

severe bison
glad wyvern
#

but now he is using git

median cloak
#

What desktop environment does james use on arch linux?

glad wyvern
#

xfce (desktop env ) and i3 ( window manager)

inland sapphire
#

X61

#

Copped it in July

#

Also using xfce

#

For chicago95

#

Also just feels good

proud moon
#

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 🥲

glad wyvern
south bobcat
#

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

glad wyvern
idle dew
#

For guys who r studying data science
Which language do u use more?
Java or python or R

zealous thorn
idle dew
#

Kinda true as i know

frank geyser
#

Yeah data science is mainly python

zealous thorn
idle dew
idle dew
languid scaffold
#

is anyone familiar with SOLIDWORKS? Having trouble with lofts

jade summit
wheat vector
#

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

wheat vector
# frank geyser 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

frank geyser
#

Go to hackathons and stuff

wheat vector
#

i try to find ones near me but the good ones are all the way out in the city

frank geyser
#

Yeah that usually is how it is lmao

#

Sucks

wheat vector
#

i prefer face to face too thats why it sucks

frank geyser
#

They have them at my uni so I don’t have to drive

wheat vector
#

tell me why i search up "tech jobs near me" they gon give me waffle house talking about "cleaning technician" 💀

frank geyser
#

Lmaooo

#

Gotta make the mile radius higher

wheat vector
#

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

frank geyser
#

Lmaoo

#

Just go work the frontend dev position at Home Depot

#

They pay good

wheat vector
#

true

frank geyser
#

Once you get the first job it’s easier

jade summit
#

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

ember scaffold
idle dew
#

Can anyone help me with the setup of Emacs org mode ?

idle dew
#

anyone has chegg acc?

hot fable
#

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

idle dew
#

something helpful I found 😄

weary orbit
#

where to learn minecraft redstone

stark crown
flat flower
amber mountain
#

hey everyone, can anyone help me with DFD and ERD? it's for our thesis, btw. The due will be on friday.

stoic garnet
open beacon
#

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 💀

craggy stream
#

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?

jade summit
#

make fun things like, automatic harvesting farm, auto chicken cooker, lag machine

amber mountain
#

Hi, I already have an existing ERD but I don't know how to make it to diagram. Can someone help me?

tame violet
#

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()
upbeat bloom
#

anyone know of any good android emulators for mac? everything ive tried isnt compatible with the m1 chip

upbeat bloom
#

its okay though i gave up

upbeat bloom
zealous thorn
#

lmao

#

what do you need the emulator for

upbeat bloom
#

sims freeplay

#

the greatest game of the 21st century

zealous thorn
#

is there a stark difference between sims freeplay and any other sims game

upbeat bloom
#

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

upbeat bloom
#

also i googled it and it said its not compatible so thats weird

zealous thorn
#

i guess you will have to do without sims freeplay

upbeat bloom
#

no its fine i have it on my ipad

#

:3

idle dew
zealous thorn
idle dew
#

you should try nox app player

upbeat bloom
zealous thorn
#

frank geyser
#

Weird bluestacks doesn’t work

zealous thorn
frank geyser
#

Polar investment banker arc

idle dew
#

cloud pfp

zealous thorn
#

remember those north korean hackers that stole 1bill from bangladesh

#

it was actually me 😳

frank geyser
#

W

zealous thorn
#

did you end up trying those questions

frank geyser
#

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

zealous thorn
#

c9 vs faze

frank geyser
#

Took forever

zealous thorn
#

would you be on team na or team europe 🤔

frank geyser
#

Europe lmao

#

Europe cracked at esports

zealous thorn
#

faze > c9??

#

uncle sam would be disappointed

frank geyser
#

Faze bad

zealous thorn
#

faze was eu 🤦

frank geyser
#

They still bad

idle dew
#

what about fnatic?

frank geyser
#

They annoying

idle dew
#

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

dapper niche
#

trello, asana, jira, etc. something like those?

amber mountain
#

which schema is better? the start schema or snowflake schema?

eager olive
jade summit
#

I think GitHub has a good kanban board for group projects. Jira is good for organizations

idle dew
#

thanks

dapper niche
#

I'm surprised there's no e/mechical engineering or computer science channels. They all get lumped into tech-related?

frank geyser
graceful trail
#

does anyone know if Onyx Boox tablets work in America if you buy them off AliExpress

hot fable
#

it will work but you might have to change the language localization

graceful trail
#

okie thank you sir

old breach
#

can anyone help me with this question? Theory of computation has been really challenging me :''D What does overlapping mean exactly?

median cloak
#

Hi guys,i bought a thinkpad x220 for 40 euros (8gb ram, i5 2620M, HDD 320gb). Is it a good deal?

spare bronze
#

Depends if it turns on 🙂

median cloak
#

it works

fallen timber
# old breach can anyone help me with this question? Theory of computation has been really cha...

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.

lapis perch
#

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?

burnt forge
#

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

nova basin
graceful trail
burnt forge
graceful trail
#

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

burnt forge
#

Yeah but tbh im not insanely smart but i would be interested if it was mainly learning about cybersecurity

dapper niche
# burnt forge does anyone know any good extra curricular activities i could do to beef up my p...

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.

brave wagon
#

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

dapper niche
brave wagon
brave wagon
dapper niche
azure pivot
#

does anyone know on how activity diagram work?

soft horizon
lost gull
#

@keen girder @trim rock is this possible?

trim rock
#

What help do you need tho?

#

You can mill at step intervals or at 45 degree angles

lost gull
#

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

trim rock
lost gull
trim rock
#

If its above ~5 cm deep then do a-b

#

Or else the bit will break fron lateral stress

wheat vector
#

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

azure pivot
soft horizon
# azure pivot yes

It basically shows the flow of activities than occur in a system depending on what the actor does

azure pivot
#

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?

lost gull
#

sorry my internet went out

lost gull
#

aka x 200 y 50 z 50

#

depth of this channel is 25 width is 60

soft horizon
#

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

azure pivot
#

after the payment has been confirmed

soft horizon
#

viewing in usually not considered as an activity in activity diagram

#

if they are making the membership card then yes they are actors

azure pivot
#

and also manage the payment?

azure pivot
soft horizon
azure pivot
trim rock
soft horizon
azure pivot
#

ahh yeah you're right

#

thanks a lot!

soft horizon
lost gull
trim rock
# lost gull 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

dapper niche
lost gull
#

@trim rock can you help me think of any other way to make this shape

trim rock
#

Like how 3d printing workes but u mill

lost gull
#

i will just end the work with 1mm cutter so it can be as fine as possible

trim rock
#

Oke

lost gull
wheat vector
dapper niche
wheat vector
#

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

dapper niche
#

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.)

lost gull
#

@trim rock its finally done

hoary anchor
#

anyone know what the ereaders are that james recommends?

dapper niche
hoary anchor
#

easy thank you sm

trim rock
trim rock
dusty basalt
#

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

misty ibex
#

heyy guys

#

can someone please recommend me a habit track and a pomodo timer?

dusty basalt
#

ticktick

misty ibex
#

Im tired of testing strange apps that looks unfinished

#

its been so long that im in this search hahahha

misty ibex
dusty basalt
#

from the top of my head theres also focus to-do but idk if it has a habit tracker

misty ibex
#

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?

dusty basalt
#

depends on what device ur on

#

it's free on android paid on ios

#

there's a free extension too for browser

lost gull
desert cipher
#

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

slender mulch
#

i think this is an issue other people faced too

#

see if you can find any resolves in the issues section here

misty ibex
#

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

misty ibex
#

i finally found it hahahahah its simple but works perfectly 🥹

dusty basalt
#

or set up ur own timer even

#

oh w8 what did h u find

misty ibex
#

pomodoro-tracker

dusty basalt
#

yooo

misty ibex
#

I mean, Midjourney is here

twilit anchor
#

Question, why are people using Visual Studio Code and not Visual Studio? Genuine question

dusty basalt
#

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

dapper niche
#

there's a bunch of different answers...definitely something better to google. one main difference is the licensing scheme and plugins

heavy garden
unkempt ore
#

just go vim

compact bay
#

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

dapper niche
#

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

compact bay
dapper niche
#

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?

stuck breach
#

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?

winged oxide
#

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

winged oxide
#

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?

frank geyser
dapper niche
# winged oxide I'm reapplying to go to Uni for either Computer Engineering or Computer Science ...

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.

dapper niche
# winged oxide I'm reapplying to go to Uni for either Computer Engineering or Computer Science ...

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.

winged oxide
winged oxide
# frank geyser Use it to take notes and organize them

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

dapper niche
#

maybe try a factory reset. doesn't sound normal for it to slow down significantly

exotic coral
#

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:

#

But instead of a dropdown menu I get this

winged oxide
unkempt ore
#

yes because int temp is not a pointer var

dapper niche
#

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

winged oxide
#

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?

loud marsh
winged oxide
#

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

loud marsh
loud marsh
winged oxide
winged oxide
loud marsh
winged oxide
spice pivot
#

i use goodnotes and i think its great! there is a one-time fee but it does everything i need it to :))

winged oxide
# loud marsh Will do :D

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

winged oxide
spice pivot
#

yeah, my ipad broke recently so i made an investment and got the new ipad & apple pencil

winged oxide
spice pivot
#

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

spice pivot
#

i took it to my local apple store and they said there was nothing they could do

winged oxide
#

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

spice pivot
#

yeah of course i understand completely

winged oxide
spice pivot
#

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

winged oxide
spice pivot
#

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

winged oxide
#

My dad was pissed lmfao

spice pivot
#

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

winged oxide
spice pivot
#

its probably better off waiting until you get there then figuring out what works best for the course youre gonna be doing

spice pivot
#

i have so many wires that ive filled my extension cord so i have to swap around the wires that i need

winged oxide
#

I think that's smarter on my front, both financially and just generally for the amount of stuff to bring over there regardless

winged oxide
spice pivot
#

omg 😭

winged oxide
#

I was a fiend at my previous place

spice pivot
#

aha clearly

dapper niche
winged oxide
dapper niche
winged oxide
dapper niche
#

another alternative if you are willing to start learning git (really useful in the industry) is use github

winged oxide
dapper niche
#

yea as long as you don't have games or large videos in there, it should be enough

twilit anchor
#

Google drive gives you 15gb for free

blissful matrix
#

Hey, does anyone here have some experience with the Samsung Galaxy Buds 2 and Buds 2 Pro? Can't decide, which one to buy

winged oxide
# blissful matrix Hey, does anyone here have some experience with the Samsung Galaxy Buds 2 and Bu...

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

winged oxide
terse harness
winged oxide
terse harness
#

i personally use wireguard, samba and zfs on a linux server that sits in my closet

winged oxide
twilit anchor
#

That's amazing!

neon dock
#

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

twilit anchor
glad wyvern
#

but if you want it to be sturdy then u would be required to 3dp many blockers

dapper niche
neon dock
#

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

dapper niche
#

why CD player, though?

#

maybe just put a bluetooth speaker in there

neon dock
#

getting into cds and physical media lately

#

bluetooth could be an addition

#

but it would be awesome if i could make it play cds

dapper niche
#

yea, I really like this idea

#

wow, it's not cheap!

terse harness
unkempt cradle
#

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

terse harness
pseudo forum
#

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

final shard
#

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.

wheat heart
#

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

dapper niche
dapper niche
wheat heart
#

I tired that but ima do it again when I get home

dapper niche
#

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

wheat heart
#

I got to the installation media and disk management but it wouldn’t let me format my ssd

dapper niche
#

what was the error?

wheat heart
#

I got it working

#

i used diskpart in the command prompt of the instlation media and just cleaned all my drives

dapper niche
#

nice

wheat heart
#

thx for help

final shard
idle dew
#

Anyone use VIM here ?? I need a help

dapper niche
# final shard solving whiteboard problems on my own

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.

brazen trench
wheat vector
#

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

strange zodiac
#

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

vernal haven
#

I wanna learn C

vernal haven
#

not an expert tho

idle dew
idle dew
vernal haven
winged oxide
fickle rapids
#

How do i get to open molegro molecular viewer on mac

exotic gazelle
#

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?

dapper niche
#

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.

exotic gazelle
dapper niche
#

I'm not sure, it's worth a try. otherwise google something like "use laptop as second monitor -wireless"

exotic gazelle
#

oki thank youu

winged oxide
winged oxide
twilit anchor
#

Let me check them

wheat vector
#

i mean resources where its not just blocks of text or just videos

wheat vector
# idle dew

I'm not listening to that chief but at least you tried

idle dew
#

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."

marble bolt
#

guys can how can i create a system like james scholz ??

glad wyvern
fleet tartan
#

Yo.

#

Does anyone know how to make an faq page in HTML?

tired quarry
#

guys

#

hi

#

can someone help me to create very short website only 1 page

dapper niche
#

would be easier to help if the questions were more specific

silver stratus
silver stratus
#

    <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

proper hound
#

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

idle dew
#

does anyone know how i can remove the spotify-tui thingy

twilit anchor
#

DO NOT CLICK ON RANDOM LINKS

proper hound
# soft horizon what r u struggling with?

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:

  1. a graph that compares the average rate of wind gust speed of 5 different cities throughout the years 2010-2017.
  2. 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

tired quarry
#

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?

proper hound
soft horizon
#

DM me the dataset

proper hound
# soft horizon What code did you write for this?

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)")
    
proper hound
tired quarry
#

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*

tired quarry
#

yes

#

can we go to dm

burnt forge
#

does anyone have a predicted computer science eduqas GCSE component 1 paper?

placid grail
fleet tartan
placid grail
placid grail
#

start by a one page add some text some paragraphs as well as some images

#

and try to tinker with :hover effect in css

main quartz
#

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

dapper niche
main quartz
#

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

rain igloo
#

hey guys! any angular developer here?

hardy gate
#

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

placid grail
#

Do tutorials on youtube as well as some quizzes and stuff online

#

Many platform offer help like w3schools and more

hardy gate
#

thanks for your advice

#

I will try but I scared

placid grail
#

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

hardy gate
#

Okey, I just worrying about the days will not enough to be successful because I have only 8 days left

placid grail
#

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

hardy gate
#

Okey I will do it. And, after the exam I will write here. (: I'am motivated thanks for your time

hardy gate
placid grail
placid grail
hardy gate
#

really thanks again!!

open solstice
#

if you are not stressed during the exam you'll do better

#

if you have questions just put them here

dapper niche
hardy gate
hardy gate
idle dew
#

What does the transpose function in python do?

open solstice
#

but if you can send the exact function maybe it'd be better to be sure

modest pasture
#

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

idle dew
#

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 😦

dapper niche
#

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.

idle dew
idle dew
dapper niche
#

the break does not matter. it is purely because you have a statement right after the IF conditional on line 43

dapper niche
#

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 🙂

placid grail
#

Don't click on those links

idle dew
#

first thing i thought when i saw it lol

dapper niche
#

yea, you can report the message

idle dew
#

I did

unkempt ore
#

he prob got hacked

open solstice
#

<@&942391219206647828>

south gazelle
#

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.

south gazelle
#

Yeah. They lied about the course?

idle dew
brazen walrus
#

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.

dapper niche
#

very cool, what is your side project about?

brazen walrus
#

cloud infrastructure

idle dew
#

does anyone know how to best use notion to organise or is it just better to use a notebook??

brazen trench
#

both. But I use it mostly to be organise.

dapper niche
#

I like Oblivion, worth looking into

granite maple
#

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?

idle dew
#

hi guys , so here is very small community for tech i have to talk about to tech

hardy gate
#

Hi! today I will enter an exam for python but i did not understand the classes and object oriented programming can anyone have suggestion
?

brazen walrus
# hardy gate Hi! today I will enter an exam for python but i did not understand the classes a...

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.

Check here: https://pythonnumericalmethods.berkeley.edu/notebooks/chapter07.03-Inheritance-Encapsulation-and-Polymorphism.html#:~:text=There are three more important,common operation in different ways.

All of those topics apply to any language that can be written in OOP way, including python.

hardy gate
brazen walrus
dapper niche
#

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?"

dapper niche
#

probably a little more fair and accurate to say "the challenge with CS education"

ivory bear
#

Heyy guys, does anyone here uses Tia Portal and Wincc ??

unkempt ore
#

its a preprocessor directive

#

i think

slate matrix
#

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.

thick falcon
#

Does anyone have envato Pro? I urgently need to download 2 tempates

dapper niche
idle dew
slate matrix
idle dew
#

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...

glad wyvern
idle dew
#

but i cant find the right code cause i just copied it

#

🤓

glad wyvern
#

this one hmmmmm

idle dew
#

nono

#

the code where the pic is sized

glad wyvern
#

AH

idle dew
#

so code sizin sentence

glad wyvern
#

it should be in the <head> tag

idle dew
#

I cant find that one

#

aight wait im searchin

#

no wait im sending the github repo

glad wyvern
#

k

glad wyvern
#

doesnnt work

#

have u kept it pvt ?

idle dew
#

gimme a sec

#

brrooo

#

where can i make it public

#

im such a noob omg

glad wyvern
#

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

idle dew
#

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

idle dew
#

i cant live my life with this f slim moon on my website ong

#

i did it, now its public

glad wyvern
#

pog

glad wyvern
#

i will make a pr

#

if it doesnt

glad wyvern
#

making a pr

#

the image was messedup

idle dew
glad wyvern
#

yeah np

#

merge it when ur done

idle dew
idle dew
#

bro i literally noticed i uploaded the wrong moon, now i have two different moons. Lives not easy but thats a problem for tomorrow

idle dew
idle dew
idle dew
glad wyvern
#

🤝

glad wyvern
#

yoo

signal crystal
#

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 ...?

dapper niche
idle dew
brazen walrus
# signal crystal hey does anyone know how to send an email once someone presses a button on a wes...
  1. 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,
    )
  1. 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>

gray thicket
#

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.

still monolith
#

idk dude that dont look legit

#

@polar ferry you a mod right? i think this guy tryna scam us

signal crystal
compact bay
#

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();

dapper niche
cold junco
vagrant berry
#

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

vagrant berry
#

And does that work well on mobile phone

dapper niche
#

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?

stiff storm
#

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.

fleet pilot
#

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

stiff storm
#

@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

fleet pilot
#

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

stiff storm
#

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?

fleet pilot
#

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

stiff storm
#

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.

fleet pilot
#

@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

stiff storm
#

Thanks again for the help. Tho, i might need you again for my second exercise

#

i'll try to do it myself first

fleet pilot
#

what gmt are you in

#

I'm gmt -4, so I'm not able to stay online as long

stiff storm
#

mine is GMT +07:00

fleet pilot
#

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

stiff storm
#

sure

#

thanks again

fleet pilot
#

no problem, happy to be of service

hardy gate
#

Hi I have a question about my python code this was my homework but the expected outputs does not match in some points to mine. Can anyone help for this issue?