#ot1-perplexing-regexing
1 messages · Page 630 of 1
has anyone ever taught you to not keep a lady waiting????
please answer🥺 🥺 🥺
🥺
:D
i'd rather be able to be invisible
rad choice
im quite confused about this convo :0
oh no. now you're a part of it
or soda
this convo is confusing
I can't guess whether dennis and ghost.peak know each other
how about i give u up?
its pretty straightforward to me
:(((( thats mean
well, you're the one driving it
im proud of it 😌 mean is cool
this whole conversation isn't straightforward
okay i gtg thanks everyone for this convo :3
ur welcome
lmao 👋
being straight is fake
facts
lol
dennis is my little brother from another mother
absolutely not
i'm gonna kick you
do y'all know each other \🤔
this isnt creepy!!!
lmfao
i feel like either one is lying or both
resisting the urge to kick you right now
:((((((((((((((((
I just wanna say a joke!!!!
ok
knock knock
KNOCK KNOCK @terse sluice
fbi open up
just say whos there:(
now to figure out if you mean IRL or not
nah if we were IRL together, i would've kicked her already
kick me i dare you
who's there
sounds like domestic violence
hawaii
I'm gonna have to report this
then don't \😴
no
By the way, I've been told that a fix is being written for the opensuse thing, should I wait or try and install the drivers
kick me i dare you
i'm being forced to do all this
triple dog dare you >:(
um... if you don't need the NVIDIA driver right away, maybe wait
this is my last cry for help
Great, I'll do that
The default nouveau thing should work fine until then, yes?
that seems a lot more accurate
I don't make typos, you just be hallucinating
\😩 I totally saw you edit that
Lies
aboo is back!
@undone pivot hiii
there is sum ting wong
dennis is threatening me @undone pivot
Turns out it shouldn't cause problems if I install it
I guess I'll install it
If it doesn't work I have two issues to figure out 🥴
I already read your conversation lmao
top 10 abooza betrayal
what did you do?
Fancy words like that stump me easily
nouveau
Nouveau
I just fixed it
Sounds like a line of hygienic products
lmfaoo
I just went and installed Nvidia with zypper
I know which one you're talking about
did you do the grub2.conf thing too?
No
huh
so basically exactly what I suggested
I wonder if you contaminated something last time with the manual install or something
or if it was because it was the offline install
I used the same installation media
the medium is just your USB
what didn't work again
When it loads, it goes to a black screen and my monitor cycles through different inputs
Continously
Now it's working fine
that moment when you try to use your gpu out of windows 
Typically used with rich the Nouveau Rich....
How rich the vocabulary
so I got invited into turing. (Because of my linkedin account I think)
now I have to answer these questions about work experience that I don't have and there is no correct answer what do I do?
Anyone disagree?
https://twitter.com/kiwidotmtf/status/1495915190998781952?s=20&t=JDvktbFb8UW1keCaY67ImQ Ah yes, a T-cup
that's terrible
joke gone wrong
lol
oh so about 6K more in staff
i got around ~4.5K messages
Yeah
hmm how come the prefix notation of A - B - C is - A - B C and not - - A B C
wouldnt - A - B C mean - A (B - C) = A - (B - C) = A - B + C
test msg
they probably have wrong precedence or something
wdym
- - A B C is - (- A B) C which is A - B - C in infix
- A - B C is - A (- B C) which is A - (B - C) in infix. So it does seems wrong to me, yeah
thats what i thought too
but
every online converter i find shows me -A-BC
dammit Raj
i think they just convert to prefix using the postfix version
the what
i wonder what tutorial they consulted
i lost 3 marks because of this BS in an exam today
you were using a calculator?
no
your teacher was?
i did it by hand and got --ABC
it was marked wrong
lolol
tf
they're doing some wack ass shit to find the prefix
they reverse it, calculate postfix and reverse back
like ???
this is what my teacher wants me to do too, i guess
very wack
what the heck
is that
rubbish
are they literally applying commutativity to subtraction
what the heck
I stood outside for 3 minutes bruh
snow?
Its winter, dunno what you expected tbh
It's hot here 
London
oh nice
snow is fine yes, heat is fine too, very bright sun is also alright, BUT SNOW AND SUN IS UNACCEPTABLE
this was sponsored by snow-blindness 🥴
Hai everyone I’m really in need for help in java
Please feel free to ping me if u can help me
...are you going to actually ask your question?
Oh will do my bad
I'm trying to go through an array once more and divide every value by the length of the string. Then save that value in a double array and return it.```
s = s.toLowerCase();
int[] count = new int[26];
double[] frequency = new double[26];
for(int i = 0; i < s.length();i++){
if(Character.isAlphabetic(s.charAt(i))) {
frequency[(s.charAt(i) - 'a')]++;
}
}
for(int j = 0; j < s.length();j++){
frequency[count[j] / s.length()]++;
}
return frequency;
}```
however i keep getting an error code :
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 26 out of bounds for length 26
idk how its getting out out of the length
hope its not stupid i got trashed so bas on java server
idk how its going above the index range
What's the full traceback?
thats the full traceback and code
I doubt that's it; there must be a line number and everything.
huh, how are you running it?
there's definitely a line number somewhere
at Brutus.frequency(Brutus.java:31)
at Brutus.main(Brutus.java:51)```
which one is line 31
oh, so you do have an IDE
yeah
to start with (and your IDE sees the same problem according to that highlight), it's definitely not right how you're never actually touching count
you use it in that second loop, but never ever modify it. It's just an array of zeros.
oh crap
whats with the - 'a', what does that do
im simply trying to divide my count list to the length of the list
get the index of character in the alphabet
yup
in Java chars and ints are basically the same thing
so you can just do some_char-a and use that as an int.
im basically trying to implement Ceaser cipher decryption
Python analogue is ord(some_char)-ord("a")
oh lmao, would be less confusing if you replaced that with the ascii num for 'a'
mm, hard disagree
magic numbers in the code are bad. 'a' is way more understandable.
i shouldve though about that
basically my first for loop gets the amount of times a char is repeated in alphabetical order
anyway, besides the count thing, your second loop is wrong. What you want is for frequency[i] to be count[i] divided by the total number of characters (length of the string). Instead you increment elements of frequency.
the second one is broken
yes exactly
problem is count i is an integer
yeah, you probably need (double) count[i] / s.length() to coerce it into double before dividing.
widening, you mean? Yeah, dividing two integers gets you integer division, which truncates and gives an int back. But if you cast one of the ints to double (or float, no matter), then that operation instead widens the other integer to the same type, and produces a result of that type.
yes sorry ahahah
im really tired sorry for my stupidness
why ++? you can't ++ the string's length.
(Your IDE probably tells you something similar by the way, check what it's complaining about with that angry red highlight)
oh yeah im already incrementing right
still getting an error
you also seem to be setting frequency, rather than an element of it? that shouldn't even be the right type
(this is also the kind of problem your IDE should be telling you about)
double[] is the entire array
thats were i need to store it tho?
frequency is the entire array, like the entire count, not a single element like count[i].
not quite. See how (double) is gray? That means your IDE thinks it's useless. Can you see why?
The result of the division would get converted to double even without an explicit cast, because you're assigning to a double. Here, this (double) does nothing.
But that's not right. After all, it's not the result of the division you need to cast to double.
(basically, what the current code does is divides two ints, like 7/10 -> 0, and then casts it to double: 0 -> 0.0)
oh
so its acutally not converting nothing
since the divison u said just rounds up to 0
down, not up, yes
hint: you could scroll up to where I suggested to use (double) and see how what I wrote differs from yours :p
alright will do
?
that message, yes
either the numerator or the denominator has to be a double for the division to work like you expect, yeah
yeah. What you want is to cast the two integers to doubles before dividing them. But because of widening, it's enough to cast either one - the other will be widened to the same type.
so (double) count[i] / s.length() (which is ((double) count[i]) / s.length())
or count[i] / (double) s.length()
or even (double) count[i] / (double) s.length() if you want to be verbose. All three work the same.
increment what?
ohh ok yeah since u said we just one
add it to frequency ?
oh okay i got it
with the parentheses
my bad forgot
[j]
so it should be like this right ?frequency[j] = ((double) count[j]) / s.length();
the double is inside like u said
looks good
man still getting the same error 
sure; note that the outer parentheses could be removed but you're of course not obliged to do that.
yup remouved that
same line
over what? the length of the string?
but the size of frequency (and count for that matter) isn't the length of the string, it's the size of your alphabet, 26.
i made both arrays [26] tho
yes, that's what I said

so my for loop still goes above right
somehow
oh shit yeah beacause it can be different lengths
so im using wrong length
shouldnt it be
alternative point of view: think about what each loop is supposed to do.
The first one counts the number of different chars. It iterates over the string.
The second one just makes the frequencies from counts. It iterates up to their shared length, 26.
for(int j = 0; j < count.length;j++){
yeah i should definetly follow step by step like u said
invalid I think (shouldn't it be length()? Your IDE probably knows).
ah, that one's on me then
haven't written java in a while and not missing it at all, lol
it correctted it for me
(also that length here is just 26, but it's not bad to write more generic code)
then the collections with their .size() 🥴
to avoid errors i should write 26 right ?
i think it worked
3 7 2 0 2 6 8 2 1 1 0 2 0 6 1 1 0 4 0 0 2 5 2 2 2 3 [0.03896103896103896, 0.09090909090909091, 0.025974025974025976, 0.0, 0.025974025974025976, 0.07792207792207792, 0.1038961038961039, 0.025974025974025976, 0.012987012987012988, 0.012987012987012988, 0.0, 0.025974025974025976, 0.0, 0.07792207792207792, 0.012987012987012988, 0.012987012987012988, 0.0, 0.05194805194805195, 0.0, 0.0, 0.025974025974025976, 0.06493506493506493, 0.025974025974025976, 0.025974025974025976, 0.025974025974025976, 0.03896103896103896]
no, the more reliable way would be to use length
well, actually... meh, doesn't really matter
oh alright
use 26 I guess, it's a bit shorter and makes clearer it's a constant
will do
!?!? what if the english language decided to add theta to its alphabet tomorrow huh???
thank u so much guys
C-style for-loops like these make me so uncomfortable lol
I haven't used a language where you have to do them for a loong time
but from a big of googling, Java still doesn't have nice stuff like zip and enumerate, which is a big horrifying
im still halfway through this ceaser cypher thing
can i add u guys
can anyone give me just a lead to my next method i literally dont understand it 
i honestly dont know how my methods are helping for this
do you know how to calculate this chi square thing by hand
surely you got taught what that is
what's it look like
- the english one
divided by english
isnt it the frequency of a letter alpha for example (the number of occurrences divided by the total number of letters in the text???
he didnt go over it or anything
yeah.
freq_alpha is frequency in your text, English in, well, English.
english is length of my text right ?
no? it's the average letter frequencies in English
oh ffs
yes i did that in my first method
i need a for loop in my main
let me draw it on my ipad to be sure xD
oml sorry for the crap image
is this correct ?
oh wait there may be an erro r
i also have this method that was given to me
so you need to loop over this array and your other frequencies array together, and plug in those values into this formula
the value you get from this array would be English_alpha and the value from your other array will be freq_alpha
shit this sounds so easy for u guys i feel so far
my first loop consists of chi-square right?
chi square is the final value after summing together each term you get in this loop
or do i need to to first go through this double list to find the closest one
ok got that one
my first index in this list a right ?
the first element in your frequencies array is the frequency of "a" in s, = freq_a
the first element in your english array is the frequency of "a" in all of english = English_a
if you use these two in the formula (freq_a - English_a)/English_a, you get a double value
repeating this for all the letters, and summing together these doubles will give you the final chi square value
ohh ok
this is just mathy notation for for (char alpha = 'a'; alpha <= 'z'; alpha++)
the first element in your english array is the frequency of "a" in all of english = English_a just to be sure, this is the frequency of times a letter is repeated in alphabetical order
ohhh algiht but im missing one step to get to this right ?
what step?
i need to compare with these doubles ?
you get one double from your frequencies array, and one double from this english array
alright
then you plug those into the formula, and add the result to your sum
yesss?
but were do i add the int of my first method that counted the number of times a letter was repeated in a string ?
the count array?
yes
that array was only for generating the frequencies array, you dont need count after that
wait so i did twice the same thing
s = s.toLowerCase();
int[] count = new int[26];
for(int i = 0; i < s.length();i++){
if(Character.isAlphabetic(s.charAt(i))) {
count[(s.charAt(i) - 'a')]++;
}
}
return count;
}```
yes if this was an earlier task you were presumably supposed to use this method to calculate frequencies
what doesn't make sense? you were likely meant to call to count in frequency to avoid reimplementing the same thing.
im guessing i need to run the count method inside frequenct
yup
yeah
my god i just realised this
so in my chisquare im going to call frequency right and that other method ?
oh
chi square takes the two arrays as parameters
ohhh yeah
alright ill work on changing the method
and ill let u know on the xhisquare
thank u so much
.latex $\sum \limits_{\alpha = a}^{z} f(\alpha)$
this is not relevant to the conversation anymore
but i wanted to use the command anyway

🍻
.latex
\begin{equation}
s = \sum_{\alpha = a}^{z} f(\alpha)
\end{equation}
is the same as
\begin{verbatim}
s = 0
for (char a = 'a'; a <= 'z'; a++) {
s += f(a);
}
\end{verbatim}
alright dude i manage to fix my count method to be called in freq
so like u said i need to call in main chi method with freq and the english alpha thing
im going to the US
she's back baby
can it be not like the tex bot 🥴
no
thanks for the api
thank @mellow spire
Aha take that
I'm taking a screenshot and framing it
Oh can you
yes
winner
make it 2222 , easy win
😢
ha
ha
no
hsp this doesnt feel right ```py
public static double chiSquared(double[] frequency, double[] english){
double sum;
for (char alpha = 'a'; alpha <= 'z'; alpha++){
sum = (frequency[alpha] - english[alpha]) / english[alpha];
}```
mmm its not right
you shouldnt be resetting sum in each iteration - you should be be adding to it
yes my bad
also i think you forgot to square the numerator, like in the formula
ah crap
double sum = 0;
for (char alpha = 'a'; alpha <= 'z'; alpha++){
sum += ((frequency[alpha] - english[alpha]) * (frequency[alpha] - english[alpha])) / english[alpha];
}
return sum;
}```
looks correct
not quite

rip
note that these are after all normal arrays, zero indexed
oh wait yeah the array index
so unlike your formula, the index shouldn't start at 'a' (which is something like 66?) and go to 'z', but use sane people indexing - 0 to 26
hmm i think this would be weird with streams because no zip
then <= to 26 right ?
yeah 0 to 26
shhiitt im out of rnage again
line were its calulating
so im guessing theres an issue with my operator ?
0 to 26 inclusive is 27 total. There isn't 27 chars in the english alphabet.
oh shit yeah
so 0 < 26
mb typo
alright seems to work
i think something might be wrong
im getting 3.2
and the shift should be aprox 13
double sum = 0;
for (char alpha = 0; alpha < 26; alpha++){
sum += ((frequency[alpha] - english[alpha]) * (frequency[alpha] - english[alpha])) / english[alpha];
}
return sum;
}```
is there an issue ?
looks good to me
mm rust
>> fn chi_square(freq: &[f64], eng: &[f64]) -> f64 {
freq.iter()
.zip(eng.iter())
.map(|(f, e)| (f - e).powf(2.) / e)
.sum()
}
smh, use powi
O
i used .pow(2) first which it said doesnt exist, and suggested i use powf instead
probably because "f"<"i"
yeah
so powf is found first when searching for pow
y no operator for pow 😔
welp uh i need a solution for this decription xD
offset was my chisquare which i rounded up
im guessing it cant resolve because oim using a tring an int ?
huh?
holy crap i got a haskell solution work on first try
chi_square :: Floating a => [a] -> [a] -> a
chi_square xs ys = sum $ map term $ zip xs ys where term (f,e) = (f-e)^2/e
main = print $ chi_square [1.0,2.0] [3.0,4.0]
(yes i know its terribly formatted)
🥴
hey guysdoesnt seem to be working
im not sure if its the decryptor or my chsquared
Wh wg o awghoys hc hvwby mci qob gczjs obm aoxcf dfcpzsag xigh kwhv dchohcsg.
correct output ```java Brutus "Vg vf n zvfgnxr gb guvax lbh pna fbyir nal znwbe ceboyrzf whfg jvgu cbgngbrf."
It is a mistake to think you can solve any major problems with potatoes.
this is my method to decrypt which should work ```StringBuilder result = new StringBuilder();
for(int i = 0; i < args[0].length(); i++){
char ch = args[0].charAt(i);
if (Character.isUpperCase(ch)) {
ch = (char) ((ch + shift - 65) % 26 + 65);
} else if (Character.isLowerCase(ch)) {
ch = (char) ((ch + shift - 97) % 26 + 97);
}
result.append(ch);
}
System.out.println(result);```
its the same as i did for the encryption ?
@gritty zinc sorry for pinging its just this thing is due soon really soon sorry 
i used ASCII nums instead of "a" and stuff
the ceasar shifting is fine, just by the wrong shift. so your program doesn't choose the right shift for some reason. debug that part
why does haskell have such weird syntax
lol
lol
Imagine not writing perfectly formatted Haskell
They probably mean unfamiliar?
Is it the $
oh yeah I will
🥴
Unbased and confused opinion
i know, I'm not biased at all
The julia solution is probably very nice here
Sthn like sum(@. (freq-eng)^2/eng) should work i think
i tried debugging like u said using prints but idk were the problem is
i chnaged 3 times the the chisquared so many times, same results
3 7 2 0 2 6 8 2 1 1 0 2 0 6 1 1 0 4 0 0 2 5 2 2 2 3
0.03896103896103896 0.09090909090909091 0.025974025974025976 0.0 0.025974025974025976 0.07792207792207792 0.1038961038961039 0.025974025974025976 0.012987012987012988 0.012987012987012988 0.0 0.025974025974025976 0.0 0.07792207792207792 0.012987012987012988 0.012987012987012988 0.0 0.05194805194805195 0.0 0.0 0.025974025974025976 0.06493506493506493 0.025974025974025976 0.025974025974025976 0.025974025974025976 0.03896103896103896
Decrypted: Wh wg o awghoys hc hvwby mci qob gczjs obm aoxcf dfcpzsag xigh kwhv dchohcsg.
stock market 📉
which one
Or hella expensive if its not able to be exported
Not nice for people holding stocks...dont panic and dont sell at a loss nao lol
this is bad lol
sanctions are probably going to hit the banking system, not necessarily exports
RUB goes down, russian exports get cheaper
people all around the world get slightly less sober
oops didnt mean to ping
oh no not the stockholders!!!
All good, I hadn't thought about just the money market value tanking
Lol i hold stocks but im not going to panic
Maybe just get a bit depressed lol
the stonks prices are gonna tank lol
who holds russian stocks lol
sell now buyback in like 3 days
(this is not financial advice)
it doesn't really matter what stocks you're holding lol everyone is nervous about stock prices falling so they're falling
is there any api to let me listen to eas (Or specifically WAS (Wireless Alert System))
Gets moar depressed but otherwise its a great day
putin
SPOTIFY: https://open.spotify.com/artist/5fby9y0wBI3eLUM4WDcM38
ALL REVENUE GENERATED FROM THIS VIDEO WILL BE DISTRIBUTED TO 'Slightly Left of Centre' respectfully as original creators.
Animation by Slightly left of Centre
https://www.youtube.com/watch?v=63jrVM79Gus
Song by Boney M
https://www.youtube.com/watch?v=kvDMl...
Lyrics:
There lived ...
lmao
😔
question
although I might already know the answer. Best way to make buttons function... JS or HTML (form action)?
I'm thinking form action so that I could use href
you could code your logic for the specific button inside a function, and call the function whenever there is an onclick event on that button
or onsubmit event if it's a form
this what I'm doing currently...
but I'm not sure if it's the best way, since the browser doesn't have a way of displaying the linked URL
not sure if it really matters
i am not sure what you mean? when the client submits the form. they are supposed to get back a URL?
and you want to display that URL?
Ah I see what you mean. If that's the case then the other solution is probably what you want
Assuming it's just a simple GET request?
yeah basically
just not sure it matters or not if it isn't there
it doesn't matter to ME, but I'm not sure it matters to other people
visitors of my site
I personally prefer seeing the small little url on the bottom of my browser, but if it's a form making POST requests such as a sign up or login form, i dont really mind that much
hmm
I saw this
So everyone else has to
!otn a dense-twitter-shitpost
mod power 
What is segmentation error in C
accessing memory you aren't supposed to
core dumped?
the biggest tech lie is that onedrive and office allow for collaborative editing of documents
mf getting sync errors every fucking time i open a doc someone else has open
just email the docs between the people who need them, incrementing the version number each time
much easier
file_name_temp.doc
file_name_temp2.doc
file_name_tempsmith.doc
draft_temp_2_DELETEME_final(1).docx
doc_V7_final2
btw
just do the shite on git
everyone can commit
and then just have someone merge and edit out the flaws
Bold to assume my coworkers know what git is
git and office documents dont get along well
see, its not linux, you dont need 27 years of senior dev experience
just to turn on a file manager
imagine looking at xlsx diffs
mariosis do you get such errors every time though?
it's like, once a month or so for me
i dont cause i sit down and sort them out
in the 6 months i've been here im the only one without sync errors at any time
what's causing them for others then
i haven't really figured it out, but it seems like the way Teams does "collaborative editing" is by locking it to one editor at a time
autosave, crashes, people keeping files open for an entire eternity
i keep my files open perpetually 
to turn on a car you must not explain how its entirity works, phisically and chemically, up to subatomary detail
you must not know anything but to shove the misabirth of a key into that keyhole and then turn it clockwise
we're not turning sharepoint into a git repo lol
some things are just not worth the effort
its simpler, easier and preferable to have operations struggle with excel workbook v<whatever> than even pretend to try to use git
its also funny, they get irrationally mad at excel being slow
yeah no
using excel, like, ever using excel would drive me beyond the point of insanity
excel is the most popular language, change my mind
if you must use shitty office programs at least use openoffice
everything excel has
have you ever worked in an environment that actually used openoffice?
i daily drive it
there is a significant difference between using something for personal stuff and using something in an office environment
half our product is excel
I know people who use macos Numbers for their personal spreadsheets and are happy
What's good
which, all the power to them, but you aren't doing accounting in Numbers
OpenLibre/OpenOffice for Excel it's just not as good as you might think . The UI isn't as easy to operate and it's a bit unusual. Even Google sheets can be frustrating
In. Other words open office can work for u if u know how to use UI
But it's free 

Pry ?
U mean fisher pry 
if i rephrase you can say "don't take msft excel from me"
Ohh
I could imagine google sheets replacing excel is google invested really hard into them
at times you will see a company laptop has open office as well as Excel
It's because im so appealing
libreoffice draw is better at editing PDFs
OpenOffice as well?
probably
👀 yes sir
Vim
Is it just me or smart pointers in c++ are over used?
you mean smart pointers?
they seem pretty appropriately used to me
That's why they are over used
they are too verbose for how needed they are

I bet my pointers are the smartest
Aha
Syntax wise?
😩 i bet my ptrs are the weirdest
Interesting, so they're like rust smart pointers
indeed
Rust
Dude this shared ptr thing
I'm being honest with. U
I once had 2 threads with 2 shared ptrs each in the same memory
And that was the most cryptic bug i worked on
yeah, debugging threads is a nightmare
Frrrr
Multiple Threads writing same OR reading frm same memory through shared ptrs is considered an undefined behaviour.... I needed to establish an async work queue
😔 😔 😔 .
U work in c++ backend?
I don't work, but I have written threaded code before
was it at some kinda Internship or like shortly at ur job?
just as a hobby
I wanted to send requests really quickly, and spawning threads seemed like a good idea
👀
I send requests so fast, that by the time I sent them, they were already sent
also for doing networking in the background of a game
Any russians around that could talk with me about military |:?
ahem
is this chat dead?
can I use it?
okay
thanku
SCP-001 doesnt exist
it was created by the O5 council for them to "motivate" their workers
because SCP 001 is such a mystery the scientists and guards would work harder in order to unravel info about 001
001 is kept in the utmost secrecy in the foundation, only the O5 council has access to it
(I can just imagine the looks on the new O5 members faces when they realize 001 is fake, haha)
and the world ending SCP known as 2195 (i think, lemme check rq)
2317
dam
ok
they send MTFs into there to make it look like they're doing a good job of containing the XK class event world ending SCP
in reality, they can do nothing to stop it
it's all a show
one day, the last chain will break and 2317 will enter our dimension and lay waste to the world as we know it
😦
phew
that was a lot
So the SCPs are real ?
But how could they know that there’s other dimensions where there’s a creature who will enter our dimension if they aren’t even sure ab finding other living things outside our planet ...?
ooooo thats a good explanation
Walks into this chat via a portal
👍
report it to @polar knoll, not here
too much effort
that's annoying, since you took the effort of taking a screenshot and posting it here instead
fwiw, next time, please submit a report to modmail and we can deal with it appropriately
hi which is the channel for help on installing python
have problems with running it with vscode
you can just pop into any of the available help channels.
like #help-rice is available atm
!pypi pillow
Whats up with Russia and Ukraine
We had almost a 30 min long convo on this in #ot0-psvm’s-eternal-disapproval
@spark wasp u there?
O
that was 14 hours ago
there are living things inside our planet. One day they will wake up and doom us all
please.
let me do my shit
there is an SCP from another dimension that can doom us all. It is one of the most powerful anomalies the SCP foundation has seen
SCP 2935 (O, death) you can read it up on the scp wikidot
fun fact: IRL they already woke up (in terms of appeared) 2 million years ago and they're called humans
nice
@rough sapphire
the question channel closed.
if you want to print something without a newline after it, set the end argument on print to an empty string:
print('bla', end='')
<head>
<style>
p {width: 100%;
height: 100%;
font-size: 50px;
text-align: center;
color: black;
font-family: "Comic Sans MS", "Comic Sans", cursive;}
h5 {text-align: bottom;
font-size:20px;}
</style>
</head>
{% load static %}
<body>
<img src="{% static 'doge.png' %}" height="400" width="350" style="display: block; margin-left: auto; margin-right: auto;", alt="a picture of doge"></img>
<p>hello</p>
<h5>hello again</h5>
</body>
</html>
shit is fucking with me
it loads "hello" but it doesn't show "hello again"
oh, I just want another text beneath the <p>hello</p> , but it doesn't seem to work
Hmm, yes. You code is bearly readable, but wait
Its not showing up in the dom?
😭
no, it's not showing up
huh
But hello is
hello is, yes
which framework is this
yes?
wdym? like django?
I should change my name I'll do it rq
yes
<DOCTYPE html>
<html>
<head>
<title><!--Your Desired title here--></title>
<style>
p {
width: 100%;
height: 100%;
font-size: 50px;
text-align: center;
color: black;
font-family: "Comic Sans MS", "Comic Sans";
}
h5 {
text-align: bottom;
font-size:20px;
}
img {
display: block; margin-left: auto; margin-right: auto;
}
</style>
</head>
<body>
<img src="<!-- Location Of you picture pls -->" height="400" width="350" alt="a picture of doge"/>
<p>hello</p>
<h5>hello again</h5>
</body>
</html>
This might work
okay
The problem was
the indents are funny lol
Its not a browser problem lol
You didn't have the starting <html>
<html>
<title>the-doge.net</title>
<head>
<style>
p {width: 100%;
height: 100%;
font-size: 50px;
text-align: center;
color: black;
font-family: "Comic Sans MS", "Comic Sans", cursive;}
h5 {text-align: bottom;
font-size:20px;}
img {
display: block; margin-left: auto; margin-right: auto;
}
</style>
</head>
{% load static %}
<body>
<img src="{% static 'doge.png' %}" height="400" width="350" alt="a picture of doge"></img>
<p>hello</p>
<h5>hello again</h5>
</body>
</html>
this is my full code, I had the html tag
oops
indents are off
ok
What is this {% load static %}?
static directories
also, I think I found the problem
you can just add the image by just path to the image
and .png is case sensitive
Ooops
Huh
I did try that
What's that
It gave me a headache
Dude you would die then if you take a job as a devloper
You need to know unix
Wdym
Bruh
There’s a reason why I used static directories
./static/doge.png smh
the . is crucial because you need to specify that you are in the current dir
Or it would go root dir
smh
or else do static/doge.png
https://stackoverflow.com/questions/28918845/what-exactly-does-serving-static-files-mean if you need help
that's basically what {% static 'doge.png' %} does
Umm interesting
also, it throws errors if I even try ./doge.png
it cannot parse it apparently
I found it
I found where it went wrong
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>the-doge.net</title>
<style>
p {width: 100%;
height: 100%;
font-size: 50px;
text-align: center;
color: black;
font-family: "Comic Sans MS", "Comic Sans", cursive;}
h5 {text-align: bottom;
font-size:20px;}
img {
display: block; margin-left: auto; margin-right: auto;
}
</style>
</head>
<body>
<img src="./static/doge.png" height="400" width="350" alt="a picture of doge"></img>
<p>hello</p>
<h5>hello again</h5>
</body>
</html>
there you go
This guy is hiding 💀
then?
it's all the way down there
Same as yours just better for older browsers
nevermind I fixed it
that doesn't work
I doubt it even works
actually it doesn't
I tried it before
Oh ok
it threw it to the far left side of the screen
the solution was actually pretty simple lol
I looked at the CSS
then I decided to remove width and height
it worked
yay
thanks for helping btw
🤔
I still don't get what you are saying lol
You just overcomplicated it 🤣
<head>
<style>
p {
font-size: 50px;
text-align: center;
color: black;
font-family: "Comic Sans MS", "Comic Sans", cursive;}
I guess 😂
You don't even had to have the css
For the image?
then you could've said * {font-family: font}
...
this is what CSS is btw https://www.w3schools.com/css/css_intro.asp
if you didn't know
it's for styling shit
I hate frontend
yes bro?
JS for frontend?
You think I don't know abt css?
I feel sorry for you
yes full-stack
welp, I didn't know you were developing frontend
the pain must be unbearable :/
wtf are you saying....
JS for frontend 😦
The thing was you confused me with the first code
why
i guess he hates it
js is for dom bruh?
Ask js questions I'll answer but just don't ask me about in-depth css
still
I hate it
I didn't want to fuck with CSS but I had no choice
HTML by itself is the bare bones
I don't want to fuck with CSS anyways
Css is way harder than you think
then why couldn't you help
I use pycharm, it really hates CSS
that's why I never wanted to lay a hand on it so I moved to VSC for this project
You should've used css in an external file
I did that
idk why it didn't work
maybe you could help me :P
But you didn't know how to link it didn't you?
I did?
<link rel="stylesheet" href="">
oh I did id=
Looked something link this then?
I was wondering why it was id=
thanks 🙂
btw href="file name or path to file"
thanks
Your age?
why age
wanted to know
🤔
most of my friends and people in communities where I chat (i am russian) just "wtf is going on why we have a war with our brothers"
our president is mad
Would you do an internship unrelated to your study?
no
pillow talk 
when you ask people questions and they respond with
huh?
honestly its my fault for asking
i should know better than to expect others to know what their job is
for me, it is a normal response
its normal if you get asked a dumb question
if i explain fully what i dont understand and even offer screenshots for help then responding with "Huh?" is just gonna piss me off
huh?
Lmaooo
REEEEEEEEE
rip

me or something