#ot1-perplexing-regexing
1 messages · Page 53 of 1
literally me
ngl my js is full of stuff like
//TODO TODO TODO GET EVENT FROM SOCKET CHANGE THIS
bcuz i write the frontend first
n then forget to actually implement the functionality
Why do people buy houses if they can just rent them @ionic moth
bc landlords can evict you, raise the rent, and can be assholes
owning is cheaper in the long run
if you have enough to buy one to begin with, yeah
Mortgage tends to be cheaper than rent
The townhouse I was living at last was like $1200 for 1200 sq ft
My apartment in Portland was $675 for 200sqft
hai @carmine niche, can I bother you about an Ada thing? I'm trying to build ada_language_server and things aren't going my way. I can't figure out how to build spawn and include it, as its a dependency of the language server.
I just keep getting errors like this and have no idea what to do to fix them
lsp_client.gpr:19:06: imported project file "spawn" not found
I got similar problems for gnatcoll but I was able to just include gnatcoll-core in my nix flake. No luck with spawn.
(i know nearly nothing about the build system. i'm just trying to set up a dev env.)
also, does ada have a community anywhere?
h... hhhhh......
ALS is a fuck
wonderful.
you can keep trying to build it if you want but it isn't worth it
it's a dogshit LSP
oh alright then
i just figured since it was from adacore it'd be alright but
if not, very well
it doesn't do almost anything you want out of an LS and also is subject to invalidation like every 30s
you're better off just using gnat studio
or vs code
i'll take a look at the former
would you happen to know which vscode extensions work best?
Is your compiler added to PATH? It can't find your include location
literally trying to learn cs rn. elaborate please
Are you on windows, Linux or Mac?
The compiler is what will allow us to turn our C source code into Executable for our target system.
Start off with GCC compiler for C to keep things simple, since its included with linux* maybe.
Have to install it manually for windows
This guide can help you get some
C/C++ compilers with MSYS2
https://code.visualstudio.com/docs/cpp/config-mingw
Additionally you can install WSL , windows subsystem for Linux , to run the gcc command in Linux command line. You will have a Linux option in your IDE there after installation.
WSL is standard these days among developers which is why I mention it.
As others mentioned there's a Microsoft compiler which you can get from installing Visual Studio 2022
if you're on windows you can use Visual Studio
i think the recommended compiler for Windows is MSVC, but you could use something like mingw or WSL to get access to gcc and clang
what compiler are you using for Windows? MSVC?
if possible , get visual studio community edition , it does all this for you
it also has debugging
visual studio is also great for C++
And what is MSVC?
a compiler
the issue here is the include headers path not being in the correct variable
It won't if you don't have a compiler
they do lol
Meh. I thought I ran into such error before. Could be path variable like mentioned
trying to use VScode in my first semester of uni made me consider changing majors
if the compiler isnt in PATH what would be producing this error?
what language were u trying to use?
C++
forgot to specify that lol
the compiler set up was easy, i had to learn a lot to get it going but i managed to understand it in the end
the LSP just wouldnt work for some reason
yeah , it can be annoying
if you are on windows -> use visual studio for C++ lol
After install the compiler and restart my IDE, it was able to find the header files?
and the debugger is still confusing
?
I like to use Ubuntu for programming and general use 🙂
the ub' is pretty nice for that yeah
whenever i get a node-gyp error on windows, i just use ub
@alpine kiln the core issue here seems to be that the location of your headers (an example of one is stdio.h) is not known by the compiler.
Probably unchecked something in the setup. How do u get a C compiler during vs code setup anyway other than explicitly anyways
you dont
VSCode doesn’t install one for you.
they probably installed it indirectly through Visual Studio.
gcc exists for windows?
mhm
that is what gcc under Windows is, Mingw
installing Vs community rn
It's kind of a fucked up solution since it's like 40GB for vs community
I think we can get the MSVC compiler separately but eh whatever
Fun to play around with VS community
Should i just use it instead of vs code?
you could
is it that large?
in like minimum configuration
C/C++ Desktop Development
It's good for C++/ C#
No
im gonna work in python and java
then you dont need vs..?
Use Pycharm and intelliJ community editions for those 🙂
and VS Code with prettier extension, live server, language server extensions for html+css+js
prettier extension?
Code auto formatter
but like why
Having a consistent style is important for working with a team , who may be on different systems and editors
ah
i pretty much never worked in a team tbh
In Google C++ code, they make you do two spaces for indentation for example. Think of working with thousands of engineers lol. Google also has legacy goto code instead of try/catch error handling i think
not four?
for me four is more readable
it kinda adds more separation
I don't really know why, maybe to prevent anyone from putting a tab literal character on accident.
You wouldn't type tab to put in two spaces unless you configured it to do so
i dont use tabs at all
cuz
in my terminal 1 tab = ~4/8 spaces?
while in IDE it is 4 spaces
in nvim it is... from 1 to 4 spaces??
basically it makes no sense
its weird
It's usually four in windows I suppose
But the main point here is, just go with the style convention of your organization. Don't spend time arguing about style of indentation or where to place curly brackets
yeah
That moment the docker system prune -a command just hangs there...
Total reclaimed space: 15.561GB
now add --volumes
Hold please...
what does that command do? 
!remindme 90h do this command on computer
Sorry, you can only do that in #bot-commands!
prunes the system
Ok lame
Remove unused data
Options:
-a, --all Remove all unused images not just dangling ones
--filter filter Provide filter values (e.g. "label=<key>=<value>")
-f, --force Do not prompt for confirmation
--volumes Prune anonymous volumes
like, the pruning in a min max algo? removes the unneeded parts?
Total reclaimed space: 3.6GB
I didn't know about the volume flag.
TIL! yay.
I always muck around in --help before running a new command 🙂
sometimes that's overwhelming and I get lost
fwiw I normally don't need to worry about these things at all. My dev machines are typically freshly built on a regular cycle.
like,
$ clickhouse-client --help | wc -l
1173
Still smaller than most man pages.
😭
Start diving man and you might as well enroll in some educational course. Absolute depths of knowledge buried in those tombs.
oh.. oh dear. The running build did NOT like the volumes being emptied mid-build.
lmao
understandable
That is a very angy docker
the strat is to just guess at which of the command options do what you want, then / for them
|| just use nix ||
Wait, no, just angy python. /sigh
ModuleNotFoundError: No module named 'distutils.cmd'
old package?
Can we just sunset anything < 3.10 and be done?
I can't spell
can? yes
will? no
A generic testing Dockerfile. It installs the supported pythons and runs pytest against all of them using nox. I switched it up to build the initial venv with 3.11 instead of 3.8 and, of course, 3.8 and 3.9 are now angy.
don't venvs need to be separate for separate versions though
Yup. nox handles all that.
The docker container is just a duplicatable environment that has all python's installed.
interesting
All the python's what?
installed
The python's what installed?
Super fun setup too. Just code it :5head:
@nox.session(
python=["3.8", "3.9", "3.10", "3.11", "3.12"],
)
def tests_with_coverage(session: nox.Session) -> None:
"""Run unit tests with coverage saved to partial file."""
print_standard_logs(session)
session.install(".[test]")
session.run("coverage", "run", "-p", "-m", "pytest", TESTS_PATH)
all your installed are belong to us
Their installed. :3
Their what installed
Can I fix the typo, yes. Will I? No.
🤣
No no, their installed.
What is an installed
Well that is the question, isn't it? I'm just a dev, I don't know.
it's an installed, duh
Reminds me of the question "what is grammar?" A question to which I have a similar answer; I am just a writer, I do not know.
But yeah, dirt simple Dockerfile I use when I don't have my normal machine just so that I don't need to wait for a CI to tell me I missed a test in some version.
FROM ubuntu:focal
ENV LANG=C.UTF-8
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends software-properties-common
RUN add-apt-repository -y 'ppa:deadsnakes/ppa'
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3.8-distutils python3.8 python3.9 python3.10 python3.11-venv python3.12
RUN rm -rf /var/lib/apt/lists/*
WORKDIR /src
ENV PATH=/venv/bin:$PATH
RUN python3.11 -m venv /venv
RUN python -m pip install --upgrade nox --no-cache-dir
COPY . /src
CMD ["nox"]
Python 3.12 👀
Early testing!
have you learned about lowering strings?
Today wasn't suppose to be a "play with the template" day. But black went and released an update including mention of a pre-commit mirror where, and I quote, "mypyc wheels go brr".
So here I am, playing with new toys.
I'm gonna believe daylily put that in
I almost want to log into the work machine and test the new mirror out on a large repo there. Almost. :3
no please explain
fyi: There are help rooms where you can not only post images but you can also hold a conversation about your issue. #❓|how-to-get-help
ty but im already in a convo in #python-discussion
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
@alpine kiln
And can post code inside of discord with triple backticks
While true:
Cool```
@wicked haven If you want fun things to shove into command line/text editors when something starts up, here's a pile of ideas. Some more relevant than others:
https://github.com/radareorg/radare2/blob/af742c05f6e8155566b7a6941f8d7ccb3a81f8ba/doc/fortunes.fun
UNIX-like reverse engineering framework and command-line toolset - radareorg/radare2
ah random Toki Pona in there
I've been using Radare2 for quite awhile now and I still get tripped up when some of them pop up.

Is it theoretically possible to make a peer to peer group where you are unable to tell who's IP belongs to which user?
well, you could use communication protocols that don't use IP addresses
That's possible?
indeed
I guess I was taught about this.
I just never knew it meant that.
So, for example, IP and POP are two exclusive protocols for communication?
No, that doesn't sound right.
IP isn't a protocol 😔
well it is
but like, you wouldn't say "IP" communication protocol
You would have to use an indirection layer in between, which then means the peers aren't communicating directly in the same sense a tcp/ip connection is
Uhuh.
but just use a server at that point if you want to isolate the users
Hypothetical time. There are three people with peer to peer connections to each other simultaneously. Whenever they post a message, the message is sent to the other two.
Is it still possible to find the IP of a specific user I want?
Hmmmmmmmmm...
if they all have connections to each others simultaneously, then you already have all the IPs
Yes.
But which is which?
I was told that packets also contain their origin so I suppose you could find out pretty easily.
As an attacker: I attack everyone
😔
then you could look at timing issues. If they all send the message, then the recipient could look at whoever consistently send the message faster since they don't have any hop to get to me
Sorry, let me rephrase.
I have a new idea, anyway.
There are three people. Bob, Matt, and Jeff. They are all connected to each other.
Matt types "hello".
Is it possible to get the IP of Matt?
they had his IP as soon as he connected
But how do we know that the IP is Matt's?
It could be Bob's, right?
If we have two IPs to look at, then how do we know which is the one we want?
if a message from Matt came from this IP, the assumption would be that the IP is of Matt
yeah!
it would need to identify itself somehow
So, what if I tried making a system where a message is hot-potato'd around to further obscure the origin of the message?
I can in theory imagine some weird encryption scheme that would pool messages in a way that every message comes from every IP piecewise
that's one of the conceits behind protocols like Freenet, I think
Freenet is a peer-to-peer platform for censorship-resistant, anonymous communication. It uses a decentralized distributed data store to keep and deliver information, and has a suite of free software for publishing and communicating on the Web without fear of censorship.: 151 Both Freenet and some of its associated tools were originally designed...
Bob Matt and Jeff are in a big ring. When they send a message, they pass it to the one of the right. If they already have it, they stop sending it along the circle.
Want me to use a diagram?
So, we don't actually know how far along the chain it has traveled, right?
ah, if you just want rings, you can use a very similar thing to what tor does
Interesting...
So, if Matt says "hello", then are we able to tell which IP originally sent it?
if you wanted even more security, you could actually hide all IPs but the prior and following node (if you just have 3 people, that's everyone still). But you could absolutely come up with an encryption scheme that would hide the origin of a message
well, since you only receive from the previous and send to the next, as long as the previous node doesn't tell you about the other IPs, you only need to know who you are sending to and receiving from
Ahuh.
Not only that, but you don't even know the other IPs to begin with!
Let alone get data from them.
You just know two people, a person who gives data, and one to send to.
It's like how a Mafia works, I guess.
also pointing out that p2p requires to think hard about your protocol so that I cannot just send a set_health(@recursive_error, 10_000_000)
replay attack moment
There are some apparent issues though. It would be horrible for performance and network traffic.
If you were running something public, you would have to make it so it had a benchmark for connection speed.
It is a whole job in companies that do require fast access to data (games, audio/video calls, etc.)
whole teams even
like then, think about your poor player in Australia when trying to play with some americans. The lag would just be terrible
ayup
real time is hard
Maybe this system could be scripted so that people refused to hold hands with you if your ping sucked.
Or you know, just use it for small unimportant transfers.
I thought it was for a game
Depends on the fidelity of the game.
I doubt sending "hello world" would take more than a minute or so.
that's why relays/proxy are so popular
Yes...
you can pop up some in Asia, USA, EU, Africa and get some good speed overall
plus you can make the security easier for yourself
given how popular they have always been, I wouldn't call it the "future".
You could make games where they don't "close", and you can revisit them to make your own local servers.
Kind of like how source games work.
Anyhow, thank you all for the chat, I really should sleep.
Goodnight
and quite hostile to gc'd languages
@versed veldt can I join your pygame team? I can help with artistic stuff and game ideas
Wait, there's a pygame team?
Holy shit, this guy made a terminal game without having to struggle with horrendous text kerning issues.
Wizard.
I guess I'd be interested talking with you as well since coincidentally also made a name generator.
I’m trying to do one
https://replit.com/@PyNon/Wendys-Big @dreamy silo only 2 levels are complete
PFFFF
This is nefarious.
You should name the difficulties after menu items.
Okay
This seems like a fun hobby.
:incoming_envelope: :ok_hand: applied timeout to @fading warren until <t:1694344737:f> (10 minutes) (reason: newlines spam - sent 118 newlines).
The <@&831776746206265384> have been alerted for review.
hey guys 🙂
fellas i have a sort of statistical modelling problem:
- i have a bunch of players and a bunch of tasks
- a task has a difficulty rating, like 1, 2, 3, 4, the rating comes from an API (i think this is called data driven development? wtvr)
- players complete tasks and receive (arbitrary) points
- players are ranked by how many points they get
- a lot of tasks are unrated, and i want to rate them somehow
whats a good way to model this? stupid answers are welcome, i will probably be drawing a linear regression over 2 points here lol
(not posting it in the datascience channel because im a filthy TS user)
youre the only one, but not for much longer >:3
you can
I used to do this occasionally on school chromebooks
guys i need help, is here somebody who works on vsc? so my code has different colors like functions for example print() are blue but i used to see purple print(), so does somedy know how to change colors for function variables keywords a.s.o??
The color comes from themes you can install as extensions, not sure if there's other way for that
Do you guys like endings of movies and TV series that are left open to interpretation?
no
I don’t like it. I’d rather have the story explain exactly what happens
yep
those are the best imo
How?
Think of a movie ending where the main character gets shot and dies but it’s not revealed who the perpetrator was. How would that make you feel?
it has to be done well
depends
in that scenario, sure
but it can also be done well
@tranquil orchid can lightning strike and kill me if I'm, let's say.. skydiving through a storm cloud that's actively producing lightning?
Yes I know someone woukdnt be skydiving during a storm, or through any sort of cloud (illegal and risk reduction/safety precautions)
If my 4th grade flow of electricity and wiring up a basic circuit to power a lightbulb with a 12volt battery is correct youd still die
You might be interested in HV cable operations.
So why are so many people saying that something with enough voltage to connect the ground with a cloud wouldnt kill you?
Simply because you're not on ground
Seems illogical
What's that
Even Google is returning true that itll kill you, and other sources on google return things that say it wont
Yeah I'll pass on the high voltage cable stuff, I grabbed a electric fence meant for keeping bulls contained as a kid. Electricity sucks
I've been shocked by mains voltage twice in my life
Once out of my control (wires in the wall got crossed with coax and I tripped the electric off to the entire floor of my apartment building when I went to plug my Internet in)
Once due to tired negligence on my part (screwdriver slipped into wall socket while installing adapter screw)
The latter happened only a week or so ago
Maybe 2 weeks.. Time blends together a lot recently
time blends together ever since the shock
Time blends together for me always
.
i've had to use python notation because idk how to represent it neatly in math notation
@hexed sierra any ideas on how to do [cos, sin][k%2] in math notation
hmm
what do the brackets represent
that it's a list, and you use cos for even terms and sine for odd terms?
you can split the sum into two sums, one with sines and one with cosines, with a term (-1)^k(plus or minus 1) in front to take care both of the list of 1 and -1s and the sines and cosines
alternatively, as cos(alpha x + (1 + (-1)^k pi/2)/2)
later on it gets turned into a kth derivative and then the cosine sine alternation is captured in that
that's smart
didn't think of that
there must be a way for the 1s and -1s kinda like that too
it's periodic, so you can look at some square wave or sine wave stuff
just pick the frequency judiciously
i actually pick up that exact 1, -1 pattern again later on from somewhere
so it just all squares into 1
pretty neat
ah ic
some weird fourier parseval stuff happening there
btw the sign in what i wrote may or may not be wrong, i never remember if it's + or - pi/2. you can iron out the details 😛
cos(x-k%2*π/2) or (if it is required to be an analytic function) cos(x-(1-cos(π*x))*π/4) or as cos(x-sin(π*x/2)²*π/2) (depending on how suspicious you find it) 😊
however, note that because you are iterating over cos,-sin,-cos,sin, it can be expressed as d**k(cos(x))/dx**k
or as cos(x-π*k/2)
ah even better, that takes care of the sign as well
wait a minute, I know how to do this one
@crystal spruce, do you know very much about generating functions
that is to say, formal power series
yeah
never mind, sorry, there is an extremely elegant way to solve the summation to a closed form
why on earth are you asking me 👀
@crystal spruce you know about Euler's identity (exp(i*x)=cos(x)+i*sin(x)), yes
ok before you go on the original integral is https://media.discordapp.net/attachments/713280492035768340/1150758026534461530/395901889046249475.png?width=1080&height=235
oh
well why did you change it to that then
you made it more difficult, it would seem
actually wait no
anyway, so that we are clear, you know what the e**-x**2 is subtly hinting at, yes
not particularly no
it's an even function, you might be able to do some residue shenanigans by dividing by 2 and extending the integral to -inf to inf, then integrating over a complex half space
i haven't learnt complex analysis 
dronebetter is writing a dissertation here
if you try to integrate e**-x**2 from x=-∞..∞ (which also occurs as the Gaussian distribution's probability density function) to infinity on its own (and discard the rest of the integral), it is very difficult with elementary methods, the easiest way to solve it is to create a 2-dimensional integral, the Cartesian product of the e**-x**2 one with itself (which as such has the square of the original one's output), then convert it to polar form, by substituting the integrand of e**-x**2*e**-y**2 = e**-(x**2+y**2) to an e**-r**2, for the ds you use the fact that r is scaled by 1 into the displacement across the input plane but dθ is scaled by r (which we multiply by 2 on the left and divide on the right, for reasons that will become clear), so you have ∫_{θ=0..2*π}∫_{r=0..∞}(2*r*e**-r**2/2) which is 2*π*∫_{r=0..∞}(2*r*e**-r**2/2), from which you may use the fact that d(e**-r**2)/dr=-2*r*e**-r**2 in reverse to get 2*π*∫_{r=0..∞}(2*r*e**-r**2/2) = 2*π*[-e**-r**2/2]_0^∞, which is 2*π*(-0 - -1/2), so the 2D integral's output is π, so the 1D integral's is sqrt(π)
there are a few other ways but this was the way in which Gauss solved it, I believe
since the whole integral is even, you might be able to use a similar procedure for it
extending to -infty, enforcing rotational symmetry
the cos(arctan) bits feel too awkward for that imo
idk it might work i haven't went down that route
Also note, in solving this, as my first step I would use the fact that cos(a+b)=cos(a)*cos(b)-sin(a)*sin(b), the cos part may be instead cos(α*x)*cos(2*β*atan(x))-sin(α*x)*sin(2*β*atan(x)), then maybe use the fact that a trigonometric function of (a constant times an inverse trigonometric function) typically has a form in terms of elementary functions on the inverse one's input, in this case the cos(2*β*atan(x)) "unravels" to (((i-x)/(i+x))**β+((-i-x)/(-i+x))**β)/2
(though I am probably even less knowledgeable than you)
wait a minute sorry yes this will only lead to more ugliness probably
that's exactly what i did
and it gets to this
im looking at hermite polynomials rn
because if i can use some orthogonality properties to simplify it
that'd be nice
wait a sec
ooh i might be able to get rid of the sum
cursed integrals are great
like genuinely
doing integrals is honestly one of the things keeping my mental health up
even if im not that good
you are going to be shown the intended solution to this and it will cause you to bang your head against a wall repeatedly
i know that alpha=beta=n=2 yields something stupidly simple
like 2sqrt(pi)/3e
so that is very possible
¯_(ツ)_/¯
wow
people are after money in all possible ways, if they saw that demand was high, they want to profit
Hello, I have a question about how computers store 1s and 0s. So we have some min and max voltages, denoted as Vmin and Vmax respectively, and if the electrical signal is within a certain threshold, like +-5% of Vmin then the computer interprets it as a 0 (or a 1 doesnt matter), and if it is within +-5% of Vamx then it is interpreted as a 1. Is this how it works?
The nature of digital logic is more like: there is a threshold voltage and any potential above that voltage is (let's say) a 1 and anything below can be considered 0
Hardware doesn't "know" what a 1 or a 0 is, it just does what it does. The notion that some levels represent numeric values is something people impose on it to make what it does useful to us
hey guys, how do i factor tgis
a²-b²-2b-1
hint: write it as a²-(b²+2b+1)
ohhhhhh, ok
actually, it has a voltage band of acceptable voltage
for 5V TTL logic , any input signal between 2V and 5v is logic 1
any input signal between 0.8V to 0V is logic 0
and voltage between 0.8V to 2V is undesired voltage
so it is not a fixed threshold (like anything above 2.5V is 1 and below is 0, doesnt work like this , in practice)
Ok, here's the first stupid question (prepare for more haha, sorry). Why does it have to be compared to a certain threshold? Can't it be exact? Like either 0 or Vmax? Is it because some factors ay introduce noise in circuits, like maybe heat for example?
you cant have exactly 0V or 5V , thats why you have to have a band of voltages
I mean, I'm not an electrical engineer but isn't voltage the potential difference between two points?
yes it is (voltage difference to be precise , but yeah)
The way we defined voltage at a point was the potential difference from infinitely far away to that point
Sorry but I have to ask why
what do you mean why ? why what ?
Why you can't have exactly 0V or 5V
Yeah
ohh , well cause its real world, there will be always some noise , error , drift
So you have a signal at exactly 5v and you connect a wire from that to an input of the next gate.
Well some small current is going to flow from that signal into the gate and then it becomes 4.999v because of the wire resistance, right?
Even if you had that ideal signal you wouldnt be able to connect it to other things and it still be ideal
sorta yeah
what about this how may i factorize this
yeah , there will always be some loss in the wire
synthetic division
wut
Pull out a 4x^2 out of the first 2 terms and a -1 out of the last 2
Can you give me an example? Like if I try to store the integer 5 in my computer, it seems possible that there would be an error is some signal and it would fall in that undesired band you talked about and so the representation would be erroneous? But that doesnt seem to happen in practice right?
yeah, because error correction mechanism are used in modern hardware (the scenario you described is very rare if it is implemented correctly , but it can still happen)
for ex - servers that run 24x7 are equipped with special RAM called ECC RAM . ECC standing for Error correction code.
they implement some algorithms/hardware that can detect and automatically correct errors in bits
now what???
dont mind my handwriting...
Hi.
I see. Thanks!
how do errors in bits get corrected algorithmically
hallo
simplest example would be checking parity. Are you aware of what an EX-OR is ?
Nice to meet you.
I am very interesting about your task.
no....
my task is praticing math, whats interesting bout that
Do you want to develop for it.
is it bitwise or???
wut u mean by develop for it
I am web and software developer.
I can make for your task.
If you have any dev task, i hope you give me it..
well... , i really dont know how to explain this in simple terms, but ill try
so when you get some stream of bits like 1010001 , the sender will perform some operation on it (like parity checking) and then append its result to the bit stream, this whole thing on receiving this stream at receiver , the receiver will check the bits , apply the same operation on them , get a result and then compare that result with the result sent by sender, if they both are same , then we know that whatever was sent is the thing that has been received
if you need more info , i think there is a youtube video by yotuber 3blue1brown , you can check it out
ohh, so its more of like you do some things with the binary, the other guy does the same this with the binary they have and they check if both outcomes are equal and if its equal, they say that the binary is correct
but what happens if the appended output also has gotten an error
correct
i feel like thats very unlikely but if it does happen but now the main binary string is correct, does it state the correct binary sequence to be false??
well , then you have an actual error (keep in mind that the actual algorithms implemented are much more complex than this and will most likely correct the error, but yeah , once in a blue moon chance that this happens , you will have an error)
ohh, so there are algorithms that are built for more complex error
our modern hardware is so much error corrected that we dont even have to think about it for day to day use
but in critical applications like a quantum computer , this is like one of the many big bottlenecks for making a quantum computer
ok great but can you help my math???
yeah , parity checking is really not ideal. for example -
1010 and 0101 both have the same parity (XOR of both binary sequences is 0), so we literally have 4 errors in the string, but simple parity check will say that this is ok
depends on what it is , long time no see with math 😅
you can just post the question here , ill see if i can help ||as long as it is not for an ongoing exam||
yeah, you need synthatic division for this
i got upto here bc of robin
idk how to explain it, you can try googling it
wait but doesnt synthetic division require a divisor??
yes , you have to guess it iirc
whats iirc
if i recall correctly
leave division, i wanna factorize this
hmmmm
maybe you can use a^2 - b^2 formula with a = 4x^2 and b = 2x+1
maybe factor the 4a^2 - 1 further?
not too sure tho, try it
how
2a+1 and 2a-1
but these 4a² and -1 have tgis with it in bracket
4a²(2a+1)(2a-1)-1(4a+1)
i have reached here
k , i think this works , my answer is smth like
(4x^2 + 2x +1)(4x^2 - 2x -1)
|| did this in air, i could be wrong, plz dont quote me||
yeah i'd do that
and then i doubt they want you to reduce further
since both terms involve a square root
just left that question and the next question, am more confused
x²-x-6
that one's just factorization
yea, and what i do here
x common??
factorize -6, find factors that add up too -1 (coeffi of middle term x) and when multiplied give -6 (the last term x coeffi of x^2)
damn your words are complex
r u sure you have been taught how to factorize ?
i am a backbencher so uhhh, prbbly they taught it, i never learned it
i would explain you using pen paper , but i cant rn 😅
weird that they gave you this along with x^2-x-6
alr8 , its easy . maybe you should watch a lesson on it first
since the help we give you is limited and in the end you willl have to apply yourself
just tell the first thing i should do, i will try to understand from there
that turns into this iirc?
x₁ + x₂ = -c = 6
x₁ × x₂ = b = -1
i forgot which parameters you have to invert
other way around
x₁ + x₂ = c = -6
x₁ × x₂ = -b = 1
?
how did c and b come, there is only x
and also yeah instead of c and b you use p and q
the roots have to multiply to -6 and add to -1
not add to -6 and multiply to -1
c and b refers to parameters of quadratic equation
ahh
ok........
you just said "the other way around"
ax² + bx + c = 0
oh yea that one, am i supposed to do that
do what?
do tge quadratic stuff here??
ok ,
so x^2-x-6 can also be written as x^2 -3x +2x -6 ( how i came up with -3x and +2x is the core logic of factorization of similar expressions )
now we have x^2 -3x +2x -6 , from first two terms , we can take x common and from second two terms , we can take 2 as common , so it becomes -
x(x-3) +2(x-3) , then we take (x-3) common from both terms
so it becomes
(x-3)(x+2)
hence , x^2-x-6 = (x-3)(x+2)
oh that was simple
you're looking at
(x+a)(x+b) = x^2 + (a+b)x + ab
so if you match it against x^2-x+6, you want
a+b = -1
ab = 6
or what rohan did
i already solved it, you could have told to do the quadratic stuff
ok yeah i guessed x₁ and x₂ correctly (-3 and 2) but messed up vieta theorem itself
i didnt know , you knew it as quadratic stuff 😅
or just have told the midpoint break
you were literally looking at quadratic equation ¯_(ツ)_/¯
again , i dont know how much terminology you are aware of , so i just told in simple possible terms 😅
i should not have been confused here but because of the past question, it took most of my brain cells and i thought this question was rather complex....
Note that you may write 2*x=y, then it is y⁴-y²-2*y-1, which is expressible y⁴-(1+y)², to find its roots you may write y⁴=(1+y)² so y²±(1+y)=0, rewrite as 4*x²±(1+2*x)=0, the quartic may be rewritten (4*x²-2*x-1)*(4*x²+2*x+1)
i left that question already...
solved it
now write it in terms of linear factors
(4a²+2a+2)(4a²-2a-2) =
4a² + 2a + 2 = 0
D = 4 - 32 = -28
...you sure that is possible? (within real numbers)
that has a complex solution
the other factor has real roots
yep
data QuadraticEquation=Equation{a::Float,b::Float,c::Float}
solveQuadratic e=let d=b e**2-4*a e*c e;p=sqrt d;l=2*a e;s=[(-b e+p)/l,(-b e-p)/l]in if d<0 then Nothing else Just s
Prelude> solveQuadratic (Equation 4 2 2)
Nothing
Prelude>
Nothing means that it's complex
Prelude> Equation 4 2 2
Equation {a = 4.0, b = 2.0, c = 2.0}
Prelude>
?
ah
what program is this btw
i am programming something similar
equation solver
qalculate
wtf do you mean false?
you are not supposed to compute
that's why i am programming my own thing lmao
cuz complex
gl on parser
it's hard
Kind of an open ended question. I've created an app that connects to a roomkit conferencing device like a Cisco sx 20 and logs all the calls it gets using a websocket connection (library pyxows). One thing I've noticed is that the app doesn't last longer than 36 hours before crashing. How can I begin to troubleshoot this issue?
What may be of use is looking at sys.setprofile/settrace and using that to see in which function/line the crash happens. Also, check kernel logs for a potential OOM kill
no one got any ideas? 
what if i use cats as an incentive? 
Dog
Not a dog
!dog
» dotenv
» docstring
Source?
i would throw a decision tree or sth at the problem but its for a simple discord bot and i dont think i could find an ML model implemented in pgPL/SQL 
im thinking of using some simple clustering algorithm, wonder which algo would work for this
i didnt understand what "this" is
pointer to current instance of a class
Kitty 😻
no
i remember a funny tweet where someone said "C devs complain about OOP but write functions that all have &a as the first parameter" and it is kinda true, thats honestly how i feel about OOP
Google says yes and no, so no help there. And you know how electricity works
I guess if the lightning can jump from you to something else, then yes.
But without that other jump, nope.
Catt
bnuuy
do you plan on skydiving through a cloud during a thunderstorm?
haven't you seen mission impossible? it's clearly possible!
i dunno man but last I checked none of us were tom cruise
tom cruise wasn't hit by the lightning though
ok well whatever
I dont intend on ever skydiving, or breaking the law and going through a cloud
lmao
Who is that in your profile picture?
tom cruise
Wait until you get a job in tech. It’s better than university.
Work is where real learning happens
i have a job in tech
It’s better isn’t it
it's comparable
why would you be in uni for the rest of your life
That’s my point
why would anyone be in uni for the rest of their life
I’m showing you that work prevails over uni
it doesn't make sense. no one stays in uni for the entire life
Fine. Then id rather work for four years than go to uni for four years
It’s horrible having nearly no money left in your bank account because you spent so much money on tuition fees.
Maybe you prefer uni > work because you didn’t pay your own tuition fees
i don't think i said which i prefer?
average phd candidate
Michael Nicholson (born 1941) is an American perpetual student from Kalamazoo, Michigan, who as of 2016 has received one bachelor's degree, two associate's degrees, three specialist degrees, and one doctoral degree, along with 23 master's degrees, including ones in health administration and special education administration. He has been in school...
based asf
but average person in academia
?
?
generalization, or something
I mean it sounds fairly unlikely
But definitely possible
Ty jackyboy
Lightning can form and connect between two clouds so it doesnt really need the ground in some cases
Only one way to know for sure
I mean of course
It's never about the ground
It's just a difference in potential
Thanks jacky boy, always helpful
dude i just spent an hour trying to get my database to store a value thats coming from an json API only to realise an hour later that i was trying to store the wrong value
the jSON returns key A and key B and i spent an hour trying to somehow shove A into the schema only to realise that i actually needed B
bruh
huh seems weird 
I guess the world record or whatever is the achievement in it of itself
:incoming_envelope: :ok_hand: applied timeout to @round hawk until <t:1694521818:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
What can we do to stop inflation?
You and I? Nothing
I really like how there’s trade schools for electricians, plumbers and HVAC and you can be an apprentice for those trades. Would be nice if there was a trade school for tech jobs.
There’s no need to write essays
It’s just pure trying to get into the workforce
that's the goal of a bootcamp
aren't coding boot camps generally not that good tho
ho do i take the first picture to match the second picture
indeed
Multiply out by conjugate
huh, what happens in a bootcamp??
try one and find out
whats a conjugate
ohh, multiply the numinator and denominator by that value
right
oh thanks
np
i got completely different value...
dont mind the hadwriting
ohh, i see the mistake...
You sure bootcamps are exactly like the trade schools for electricians and plumbers?
i'm not familiar with trade schools for electricians and plumbers. i believe it's similar
No they are not
Trade schools are accredited
Most anyway
By trade schools im guessing you mean apprenticeships
Where you work and go to school together
I was more relating the focus on skills over theory
Oh
But there are software apprenticeships
In the UK at least
It could be a thing elsewhere
¯_(ツ)_/¯
whats the barrier to having apprenticeships in the US anyway
in the US that'd be like a co-op program
nothing I guess.
just no one does it
yea not bad, though i have heard that the middle years are rough
first couple years are nice cause youre some 18yo kid making real money like 25-30k with no degree
and last years are nice cause you graduate and you can jump ship to bigger bucks
but somewhere in the middle youre stuck with low pay and no opportunities
guy on my team came from an apprenticeship 7 years in hard stuck at 30k until we got him
tho he probably could have left way earlier
Can't be exactly the same. Easy to recreate work environment with plumber/electrician, but not so much with SWE.
meh. some features or bugs handed to a new grad could probably be given to a student too
I cant imagine working anywhere as a student tbh
I was even more clueless than i am now
no internship?
no
cba
i want my excel job back lmao
but with better pay ofc
and no office time
and noone to bitch at me for shit
and no work to be done
Based
learn python for excel
I make myself tired from reading phone
Gotta. ... focus
dont need python for excel
theres a perfectly good api with vba
the problem is that anyone hiring vba people are probably doing a bunch of excel work and those people are most likely financebros
and financebros like going to the office for some reason
Fuck
we're trying to move out and its turning into a nightmare
agents are trying to rush us but our notice is 2 months long
how do people move apartments
with difficulty
oh?
oh
wuts this?
rent going up, gf wants a pet, thats about it
oh?
every listing i see is only like a couple days off and they go off the market immediately
do people push start dates back?
or am i supposed to pay rent on an apt im not livign in
housing problem is real everywhere
its hell
everyone keeps telling me to put in notice first and then search
but thats crazy
Yes Robin put cat pic back on!!!
I need to uninstall for now I guess
Ahhhhhhhh
Reset my schedule
this is so trippy
this what too many catnips do to you
Infuriating living with restricted speech because of people getting sensitive and easily offended.
that's why i'd rather shut up, regardless if people are sensitive or not
I mean it’s quite sad that folks have to silence themselves because of people being so sensitive
We have to live in a society to appease the sensitive. Absolutely disgusting.
infuriating having the same argument every couple days
All for expressing their beliefs and opinions
just dont be an asshole, whats the problem
i take solace in realizing the time I spent doing more satisfying things for myself than, just arguing about things for the sake of arguing
i swear im not old
Big difference between being an asshole and having a civil and respectful discussion.
There’s one thing to blatantly call names and insult people, another thing to respectfully express your ideas , beliefs and sometimes facts in a civil manner.
the thing is, whatever we say, we will get a response. You can interpret this response in a myriad of ways, and it's simply how conversation works.
restricting your speech is me here and now muting you or smth
Like an entire conversation had to be terminated because people got sensitive when the folks were having a discussion like mature adults
someone can call me an ahole outta the blue and, well, it's their right ig
you've never once explained what thoughts you were expressing and how you were restricted from expressing them
Because you never privately contacted me
i guess it devolved into something that wasn't productive for this channel or server
you're not privately contacting us right now, youre posting in a public channel
either post with proper context or what you're doing is just ranting and its annoying
All I’m saying is if you want an answer you can DM me
i dont care for an answer, stop spamming the same silly complaint lmao
You clearly do care otherwise you wouldn’t have asked
its been a week since the first time you posted this bait
maybe you should stop
people arent interested
i carried heavy things all day today, i can barely open a bottle of orange juice
i need an adult
rip
and yet
its still company time
steal from big corpo i salute thee
gotta get that quality distraction in, right
I'm at school 😤
It’s a way better option to grow resilient than to be a sensitive person.
Are we doing this shit again
not very resilient of you to complain so often kekmao
No kidding
no
have an orange juice 🧃
it has nata de coco in it
I’m resilient in the context of hearing other people freely express their ideas in a civil manner even if I don’t agree with them.
And so we all should be.
We're not gonna allow people to express opinions that violate our code of conduct. I want to be clear about that.
That’s how we understand one other. Not to refrain them from expressing their thoughts because of the sensitive and the easily offended.
it was a bajillion degrees 2 days ago
Damn, I barely missed it
it was a bajillion degrees this afternoon
i was cooked
its supposed to storm here
We had a blistering summer
It's currently 64 out and I'll be running errands today so that'll be nice
i step barefoot on an exposed ceramic i swear i heard it sizzles
64c is still pretty hot ngl
64f is chill weather
Global warming hit hard 😔
so 64f is, 9/5 * 32
.wa s 64f to c
about 17.8 degrees Celsius
17c is refrigerator (i live in tropical areas)
Cold
Coat and Hotpot time
temperatures in the 60s (farenheight) are peak weather I dunno what yall are on about
cozy
s?
60-70 range
.wa 66f to c
i've never lived in a cold place before, i'd probably get sick a lifetime over before I adapt
.wa s 66f to c
about 18.9 degrees Celsius
Ohno
uk moment
setting AC at 18C i need a thick jacket
I wish there was a debate channel
we visited the gf's parents and they have carpets everywhere
.wa s 32c to f
we've got pretty cold and hot weather here, but we haven't gotten much snow last few years 😔
a warm milk with biscuits
89.6 degrees Fahrenheit
I use human units
Mine average "cool/fresh" weather
farenheight just makes sense
gotta use 2 decimal points to make celsius as accurate as fahrenheight and that's just silly
Aka "wrong" units
"Yes, it's twenty-two point six eight degrees outside"
-statements by the utterly deranged
had kelvin be the SI and the common standard at the same time
22.7
Do you feel 0.1 difference?
that reminds me of how tightly the body keep our temps, its insane
actually humans can tell differences pretty accurately up to half a degree fahrenheit
We regularly get like 32C here and oh my god do I notice it
i exaggerated my capability
i'd probably dehydrate
0.1 of a degree Celsius is far less than half a degree F
Same
I feel 20c as very cold
holy shit
last year we only had one day hit that high
and the previous two years max height was 104, and that only happened for one day
you can probably cook something
you can cook eggs on asphalt at lower than 107 ambient lol
lmfao
side of the road special
assuming it's been in the sun, that shit absorbs heat like nobody's business
.wa s 0f to c
about -17.8 degrees Celsius
.wa s 50f to c
10 degrees Celsius
I actually did it as a teenager, people kept saying "It's hot enough to cook an egg on the street"
.wa s 100f to c
what state?
about 37.8 degrees Celsius
so I tried, it was like 100 degrees, and it did start to cook on the pavement pretty much immediatley
and lo and behold they weren't lying
@young shoal southern alabama
saves gas/electricity
ouch
if you can stand being outside in 100+ degrees with 90+% humidity
wonder if it's enough to heat a pan and actually cook something edible
technically yes
Yeehaw and such
💀
reflection cookers exist
use a thicc cast iron pan (Black and very heat absorbant) with a reflection cooker around it
it'll get hot enough to cook beef no issue
lmaoo
45c and 97% average summer weather
uninhabitable
so happy i live in tropical areas
You would not last 3 minutes in Toronto, Canada during the winter if you think 20 degrees Celsius is very cold
go north 😔
i dont have to deal with 4 challenges in a cycle
I would like to
no snow tho
but as far north as I want to go is getting this hot already too @young shoal
it got up to like 110 in portland this year
Idk, 5 years ago i felt -40c as ok
meanwhile canada having a record setting wildfire season
cold is way different than heat for me
you're not ok u probably need to go to a doctor your limbs are deteriorating
Boss man wearing shorts in the winter in Toronto
I do not believe that is the correct usage of thicc...
Just saying
With proper clothing
once you get down to like, 0f anything colder doesn't really feel colder
oh ok
at least in my experience
that sounds like a trick that can kill
I couldn't tell you the difference between 0f and -14f aside from at -14 I started feeling my eyes freeze
bcos at some point you just go numb
not the eye themselves but any tears around them
lmao sounds like a hazard
life of a delivery driver
Perhaps you should cry less often
the only bad answer
It comes just to speed that you start feeling cold after getting outside?
it was snowing and I was out bringing people food at -14 lol
thank u for your service
pretty much. year before that it eas like -10 and my roommate and I had to go out in the snow to work on his car to try and solve a coolant leak, it was miserable
at 30 degrees, it's cool but nothing too bad. I can be out in it for an hour or two before I'm really feeling cold.
at 0 degrees, it's cold after 15-20 minutes
at -14 it's cold immediately and I would like to go back inside
heat really depends on humidity, I can work outside in 100 degrees with low humidity all day no issue. 50% and I'll start feeling it in a couple of hours, 70% and it's 30 minutes, anything higher and it's a no go outside asthma kill me day
aboo aren't steaks holy or something
I hate those “Which were discussed in class?” kind of questions
source?
Me
debatable
eh?
Steak is beef
cows
me
ah, I'm not Hindu
debatable
I can eat beef
No debating!
why not?
Proof?
😮 🥩
cut of generic meat
Show the steaks
I've sent pictures of steaks before, haven't I
whatever, let me find one
couldn’t find a steak, so have some short ribs instead
and no, it's not burnt ;-;
😌🤤
leak grades
Those are perfectly adequate ribs
Nothing short about them
average ribs, even
Some would say they're big
I was an average student through and through, just like my nick
we got a couple of steaks the other day, I'll make bulgogi and send pics 👀
👀
the average MC
Easier to be a better employee
I’ve been much happier after I got a job
The real learning starts after college
why is real learning easier? school is rigid, real life is fuzzy
lmao my sister wrote a bunch of formulas on her arm the other day before a test
so cheating
No I’m saying it’s easier to be a better employee
how?
No need to answer questions like “Which X was discussed in class?”
Or “Use only the techniques taught in class”
but you will need to answer "which technologies did Senior Dev Daniel say we want to use?"
"ayo , our client requires us to use python 2 instead of 3 , figure the shit out"
or "we're stuck with legacy Python"
No I won’t because I’m the only dev in my company
sure, "what technologies did you research?"
You wont always be
"what technologies will we use?"
Big difference between that question and “Use only the techniques taught in class.”
that's not the equivalent I brought up
see the messages about Python 2
legacy software
millions of lines of code written in Python 2. can't change it to python3; too costly
also , if you mess up your project or smth in class, your teacher might give you some as marks bcoz you tried (like , it wont be the end)
the client wont give a shit unless you give out a properly working product (this might literally be career ending)
Look. All I’m saying is I’m having a better time in life having a job than I ever did in college. I can pay to enjoy hobbies, I can go out to bars and clubs; I couldn’t do any of that while I was in college because I had no job and it was cramming me with assignments
Cool
you can believe that, but your evidence hasn't been very good


