#ot1-perplexing-regexing

1 messages · Page 630 of 1

gritty fractal
#

you still havent answered

#

has anyone ever taught you to not keep a lady waiting????

#

please answer🥺 🥺 🥺

#

🥺

terse sluice
#

why are you like this

#

please

gritty fractal
#

:D

terse sluice
#

i'd rather be able to be invisible

gritty fractal
#

rad choice

mild abyss
#

im quite confused about this convo :0

gritty fractal
#

uncomfy yae

#

would you rather

#

give up coffee and tea forever

terse sluice
gritty fractal
#

or soda

wraith hound
#

this convo is confusing

#

I can't guess whether dennis and ghost.peak know each other

mild abyss
gritty fractal
#

its pretty straightforward to me

gritty fractal
wraith hound
mild abyss
#

im proud of it 😌 mean is cool

gritty fractal
#

isnt it straightforward? @terse sluice

#

dennis is cool😌

terse sluice
#

this whole conversation isn't straightforward

mild abyss
#

okay i gtg thanks everyone for this convo :3

gritty fractal
#

ur welcome

terse sluice
#

lmao 👋

mild abyss
gritty fractal
#

facts

terse sluice
#

lol

gritty fractal
terse sluice
#

absolutely not

gritty fractal
#

ok fine

#

hes my doggy

terse sluice
#

i'm gonna kick you

gritty fractal
#

:(((noooo

#

🥺 please donttt

latent scaffold
gritty fractal
#

yes

#

hes my DOG

terse sluice
#

unfortunately

#

bruh

#

no

latent scaffold
#

lmao

#

that makes this a lot less creepy then

gritty fractal
#

this isnt creepy!!!

terse sluice
#

lmfao

mild abyss
gritty fractal
#

hes my dog!!

#

i swear!!

#

wanna hear a joke? @terse sluice

terse sluice
#

resisting the urge to kick you right now

gritty fractal
#

:((((((((((((((((

#

I just wanna say a joke!!!!

#

ok

#

knock knock

#

KNOCK KNOCK @terse sluice

terse sluice
#

fbi open up

gritty fractal
#

just say whos there:(

latent scaffold
terse sluice
gritty fractal
#

kick me i dare you

terse sluice
latent scaffold
#

sounds like domestic violence

gritty fractal
#

hawaii

latent scaffold
#

I'm gonna have to report this

terse sluice
#

lol

#

hawaii who

gritty fractal
#

im good. hawaii you?

#

HAHAHAHHAHA

terse sluice
#

i

#

cannot

#

with you

gritty fractal
#

hehe

#

ik ur laughing

latent scaffold
gritty fractal
#

no

low chasm
gritty fractal
#

you said youd deal with me:( @terse sluice

#

jk

terse sluice
#

S.O.S.

#

help

gritty fractal
#

kick me i dare you

terse sluice
#

i'm being forced to do all this

gritty fractal
#

triple dog dare you >:(

latent scaffold
terse sluice
#

this is my last cry for help

low chasm
#

Great, I'll do that

low chasm
#

The default nouveau thing should work fine until then, yes?

latent scaffold
#

the what now

#

did you make a terrible typo for "nouveau"

terse sluice
#

that seems a lot more accurate

low chasm
latent scaffold
#

\😩 I totally saw you edit that

low chasm
#

Lies

mild abyss
low chasm
#

Indeed

#

Rejoice

gritty fractal
#

@undone pivot hiii

#

there is sum ting wong

#

dennis is threatening me @undone pivot

low chasm
#

I guess I'll install it

#

If it doesn't work I have two issues to figure out 🥴

dire siren
#

hm wiki says save our souls

low chasm
#

Holy shit I think it worked

#

FUCK NO

latent scaffold
dire siren
low chasm
#

IT WORKS D

#

I am genius

latent scaffold
#

what did you do?

floral apex
latent scaffold
#

nouveau

floral apex
#

Nouveau

low chasm
floral apex
#

Sounds like a line of hygienic products

latent scaffold
#

lmfaoo

low chasm
#

I just went and installed Nvidia with zypper

latent scaffold
#

I know which one you're talking about

low chasm
#

And then rebooted

#

And then it worked

#

Somehow

latent scaffold
#

did you do the grub2.conf thing too?

low chasm
#

No

latent scaffold
#

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

low chasm
#

I used the same installation media

latent scaffold
low chasm
#

Yes, I used offline too

#

That's weird

#

It didn't work again

latent scaffold
#

what didn't work again

low chasm
#

When it loads, it goes to a black screen and my monitor cycles through different inputs

#

Continously

#

Now it's working fine

latent scaffold
#

\🤔

#

which driver did you install btw

#

glG05 or glG06

shut ermine
#

that moment when you try to use your gpu out of windows pithink

thin cloak
edgy trench
#

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?

floral apex
#

Anyone disagree?

latent scaffold
#

that's terrible

tranquil orchid
#

@steady thunder

#

I don't have that many in staff channels

steady thunder
#

i got around ~4.5K messages

acoustic moss
#

noooo i missed my 69k messages mark

acoustic moss
#

damn

#

😔

#

wait

#

did you change your username

tranquil orchid
#

Yeah

floral apex
acoustic moss
#

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

runic wigeon
#

test msg

small coral
acoustic moss
#

wdym

gritty zinc
acoustic moss
#

thats what i thought too

#

but

#

every online converter i find shows me -A-BC

#

dammit Raj

gritty zinc
#

does it change if you use parens?

#

A-(B+C) say

#

or (A-B)-C

small coral
acoustic moss
#

fascinating

small coral
#

the what

acoustic moss
#

hmm another calculator gives me --ABC for A-B-C

#

aaaAAA

#

yet another one

small coral
#

i wonder what tutorial they consulted

acoustic moss
#

i lost 3 marks because of this BS in an exam today

small coral
#

you were using a calculator?

acoustic moss
#

no

small coral
#

your teacher was?

acoustic moss
#

i did it by hand and got --ABC
it was marked wrong

small coral
#

tf

acoustic moss
#

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

small coral
#

what the heck

#

is that

#

rubbish

#

are they literally applying commutativity to subtraction

#

what the heck

graceful basin
#

Yeah, this is incorrect

#
  • is left associative
marble creek
#

I stood outside for 3 minutes bruh

runic wigeon
#

snow?

tardy rain
#

Its winter, dunno what you expected tbh

runic wigeon
#

It's hot here lemon_pensive

tardy rain
#

I wish it snowed here

#

So far it's been high winds and cold

runic wigeon
#

never snows here

#

whered you live

tardy rain
#

London

runic wigeon
#

oh nice

jovial oriole
#

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 🥴

sick token
#

@mortal heath

#

are you alive

night owl
#

Hai everyone I’m really in need for help in java

#

Please feel free to ping me if u can help me

gritty zinc
#

...are you going to actually ask your question?

night owl
#

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

night owl
#

idk how its going above the index range

gritty zinc
#

What's the full traceback?

night owl
#

thats the full traceback and code

gritty zinc
#

I doubt that's it; there must be a line number and everything.

#

huh, how are you running it?

night owl
#

calling the method

#

through terminal

tardy rain
#

there's definitely a line number somewhere

night owl
#
        at Brutus.frequency(Brutus.java:31)
        at Brutus.main(Brutus.java:51)```
gritty zinc
#

there you go, that's the traceback

#

it has the line numbers.

tardy rain
#

which one is line 31

night owl
gritty zinc
#

oh, so you do have an IDE

night owl
#

yeah

gritty zinc
#

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.

night owl
#

oh crap

tardy rain
#

whats with the - 'a', what does that do

night owl
#

im simply trying to divide my count list to the length of the list

gritty zinc
night owl
gritty zinc
#

in Java chars and ints are basically the same thing

#

so you can just do some_char-a and use that as an int.

night owl
#

im basically trying to implement Ceaser cipher decryption

gritty zinc
#

Python analogue is ord(some_char)-ord("a")

tardy rain
#

oh lmao, would be less confusing if you replaced that with the ascii num for 'a'

gritty zinc
#

mm, hard disagree
magic numbers in the code are bad. 'a' is way more understandable.

night owl
night owl
#

basically my first for loop gets the amount of times a char is repeated in alphabetical order

gritty zinc
#

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.

night owl
#

the second one is broken

night owl
#

problem is count i is an integer

gritty zinc
#

yeah, you probably need (double) count[i] / s.length() to coerce it into double before dividing.

night owl
#

ohh narrowing thing right ?

gritty zinc
# night owl ohh narrowing thing right ?

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.

night owl
#

im really tired sorry for my stupidness

gritty zinc
#

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)

night owl
#

still getting an error

gritty zinc
#

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)

night owl
#

Inconvertible types; cannot cast 'int' to 'double[]'

#

my ide tells me its incompatible

gritty zinc
#

double[] is the entire array

night owl
#

yeah i chnaged that mistake

#

somehow still wrong

night owl
gritty zinc
#

frequency is the entire array, like the entire count, not a single element like count[i].

night owl
#

oh shit

#

my bad

#

my god

#

seems correct right ?

gritty zinc
#

not quite. See how (double) is gray? That means your IDE thinks it's useless. Can you see why?

night owl
#

oh since were diving it

#

its already a double ?

gritty zinc
#

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)

night owl
#

oh

#

so its acutally not converting nothing

#

since the divison u said just rounds up to 0

gritty zinc
#

down, not up, yes

night owl
#

my gad

#

how am i supposed to fix it

gritty zinc
#

hint: you could scroll up to where I suggested to use (double) and see how what I wrote differs from yours :p

night owl
#

alright will do

gritty zinc
#

that message, yes

night owl
#

oh i need to turn

#

count into a double

#

like in his example right ?

acoustic moss
#

either the numerator or the denominator has to be a double for the division to work like you expect, yeah

gritty zinc
#

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.

night owl
#

so i simply just chnage my frenquency to a a (double)

#

and next line increment ?

gritty zinc
#

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.

gritty zinc
night owl
#

ohh ok yeah since u said we just one

night owl
#

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

acoustic moss
#

looks good

night owl
#

man still getting the same error PaulSmile

gritty zinc
#

sure; note that the outer parentheses could be removed but you're of course not obliged to do that.

gritty zinc
#

Your second loop's limits are wrong.

#

consider how big j can get

night owl
#

but i set it up so it doesnt go over?

#

for(int j = 0; j < s.length();j++){

gritty zinc
#

over what? the length of the string?

night owl
#

yeah

#

thats what java server told me was wrong

gritty zinc
#

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.

night owl
#

i made both arrays [26] tho

gritty zinc
night owl
night owl
#

somehow

#

oh shit yeah beacause it can be different lengths

#

so im using wrong length

#

shouldnt it be

gritty zinc
#

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.

night owl
#

for(int j = 0; j < count.length;j++){

night owl
gritty zinc
#

invalid I think (shouldn't it be length()? Your IDE probably knows).

acoustic moss
#

arrays have .length

#

🥴

gritty zinc
#

ah, that one's on me then

#

haven't written java in a while and not missing it at all, lol

gritty zinc
#

(also that length here is just 26, but it's not bad to write more generic code)

acoustic moss
#

then the collections with their .size() 🥴

night owl
#

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]

gritty zinc
#

no, the more reliable way would be to use length

#

well, actually... meh, doesn't really matter

night owl
#

oh alright

gritty zinc
#

use 26 I guess, it's a bit shorter and makes clearer it's a constant

night owl
#

will do

acoustic moss
night owl
#

thank u so much guys

gritty zinc
#

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

night owl
#

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 a_pepecry

#

i honestly dont know how my methods are helping for this

acoustic moss
#

do you know how to calculate this chi square thing by hand

gritty zinc
#

surely you got taught what that is

night owl
#

i have the formula

#

my first freq

acoustic moss
#

what's it look like

night owl
#
  • 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???

night owl
gritty zinc
#

freq_alpha is frequency in your text, English in, well, English.

night owl
#

english is length of my text right ?

gritty zinc
#

no? it's the average letter frequencies in English

night owl
#

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

night owl
#

oh wait there may be an erro r

#

i also have this method that was given to me

acoustic moss
# night owl

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

night owl
#

shit this sounds so easy for u guys i feel so far

night owl
acoustic moss
#

chi square is the final value after summing together each term you get in this loop

night owl
#

or do i need to to first go through this double list to find the closest one

night owl
#

my first index in this list a right ?

acoustic moss
#

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

night owl
#

ohh ok

acoustic moss
#

this is just mathy notation for for (char alpha = 'a'; alpha <= 'z'; alpha++)

night owl
#

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

night owl
acoustic moss
#

what step?

night owl
acoustic moss
#

you get one double from your frequencies array, and one double from this english array

night owl
#

alright

acoustic moss
#

then you plug those into the formula, and add the result to your sum

night owl
#

but were do i add the int of my first method that counted the number of times a letter was repeated in a string ?

acoustic moss
#

the count array?

night owl
#

yes

acoustic moss
#

that array was only for generating the frequencies array, you dont need count after that

night owl
#

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;
    }```
acoustic moss
#

yes if this was an earlier task you were presumably supposed to use this method to calculate frequencies

night owl
#

but what doesnt make sense is he asks us to add this method

#

let me elaborate

gritty zinc
#

what doesn't make sense? you were likely meant to call to count in frequency to avoid reimplementing the same thing.

night owl
#

im guessing i need to run the count method inside frequenct

gritty zinc
#

yup

night owl
#

yeah

#

my god i just realised this

#

so in my chisquare im going to call frequency right and that other method ?

acoustic moss
#

yup

#

wait no

night owl
#

oh

acoustic moss
#

chi square takes the two arrays as parameters

night owl
#

ohhh yeah

#

alright ill work on changing the method

#

and ill let u know on the xhisquare

#

thank u so much

acoustic moss
#

.latex $\sum \limits_{\alpha = a}^{z} f(\alpha)$

median domeBOT
acoustic moss
#

this is not relevant to the conversation anymore

#

but i wanted to use the command anyway

night owl
#

🍻

acoustic moss
#

.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}
median domeBOT
acoustic moss
#

this is so great

#

dont 🥴 me!! ducky_party me or something

night owl
#

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

acoustic moss
#

ye

#

i mean i dont think i said that but that sounds right

night owl
#

oh alright xD

#

wait in my public it should a double array right ?

acoustic moss
#

mhm

#

FUCK I MISSED 22/02/2022 22:22 NOOO

solemn leaf
#

oh no

#

anyway i existed that time

acoustic moss
#

im going to the US

solemn leaf
#

lesho

#

wait latex

acoustic moss
#

she's back baby

solemn leaf
#

can it be not like the tex bot 🥴

acoustic moss
#

no

solemn leaf
#

just mathjax bae

#

.src latex

median domeBOT
#
Command: latex

Renders the text in latex and sends the image.

Source Code
solemn leaf
#

thanks for the api

acoustic moss
#

thank @mellow spire

solemn leaf
#

👀

#

time to make one .tex and pwull req

low chasm
#

I'm taking a screenshot and framing it

acoustic moss
#

hmm

#

i can cheat

low chasm
#

Oh can you

solemn leaf
#

yes

acoustic moss
#

winner

solemn leaf
#

make it 2222 , easy win

edgy crest
solemn leaf
#

😢 ^2

#

wait viman still pink

#

this is unacceptable

edgy crest
#

ha

acoustic moss
#

ha

solemn leaf
#

no

low chasm
#

Wouldn't it be like 2 pm

#

For 12 hour time

night owl
#

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];

    }```
acoustic moss
#

mmm its not right

#

you shouldnt be resetting sum in each iteration - you should be be adding to it

acoustic moss
#

also i think you forgot to square the numerator, like in the formula

night owl
#

ah crap

night owl
gritty zinc
#

not quite

night owl
night owl
gritty zinc
#

note that these are after all normal arrays, zero indexed

acoustic moss
#

oh wait yeah the array index

gritty zinc
#

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

night owl
#

ohh alright

#

so i replace a with 0 right>

acoustic moss
#

hmm i think this would be weird with streams because no zip

night owl
#

then <= to 26 right ?

acoustic moss
#

yeah 0 to 26

night owl
#

shhiitt im out of rnage again

#

line were its calulating

#

so im guessing theres an issue with my operator ?

gritty zinc
night owl
#

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 ?

gritty zinc
#

looks good to me

night owl
#

guessing might be wrong on the site

#

so no i need to find a decryption method right

acoustic moss
#

mm rust

>> fn chi_square(freq: &[f64], eng: &[f64]) -> f64 {
       freq.iter()
        .zip(eng.iter())
        .map(|(f, e)| (f - e).powf(2.) / e)
        .sum()
    }
acoustic moss
#

O

#

i used .pow(2) first which it said doesnt exist, and suggested i use powf instead

gritty zinc
#

probably because "f"<"i"

acoustic moss
#

yeah

gritty zinc
#

so powf is found first when searching for pow

acoustic moss
#

y no operator for pow 😔

night owl
#

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 ?

gritty zinc
#

huh?

night owl
#

my bad

#

this stuff doesnt make sense

#

ill restart from scratch

acoustic moss
#

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)

gritty zinc
#

🥴

night owl
#

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 a_pepecry

#

i used ASCII nums instead of "a" and stuff

gritty zinc
#

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

night owl
#

so theres something wrong in my chisquare calculation

#

but u guys approved the code

last mantle
#

lol

acoustic moss
#

lol

low chasm
tardy rain
#

Whats weird about haskell syntax

#

It looks good

low chasm
#

They probably mean unfamiliar?

tardy rain
#

Is it the $

gritty zinc
low chasm
#

🥴

tardy rain
#

Unbased and confused opinion

gritty zinc
#

i know, I'm not biased at all

low chasm
#

True

#

Python more like pyskell

acoustic moss
#

The julia solution is probably very nice here

#

Sthn like sum(@. (freq-eng)^2/eng) should work i think

night owl
#

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.
young shoal
#

stock market 📉

tardy rain
#

which one

young shoal
#

all of them

#

russia do be getting sanctioned 😳

tardy rain
#

nice

#

vodka about to get hella cheap

dapper dew
#

Or hella expensive if its not able to be exported

thin cloak
#

Not nice for people holding stocks...dont panic and dont sell at a loss nao lol

young shoal
#

this is bad lol

tardy rain
#

people all around the world get slightly less sober

#

oops didnt mean to ping

shut ermine
#

oh no not the stockholders!!!

dapper dew
thin cloak
#

Maybe just get a bit depressed lol

young shoal
#

the stonks prices are gonna tank lol

tardy rain
#

who holds russian stocks lol

#

sell now buyback in like 3 days

#

(this is not financial advice)

young shoal
#

it doesn't really matter what stocks you're holding lol everyone is nervous about stock prices falling so they're falling

gleaming gull
#

is there any api to let me listen to eas (Or specifically WAS (Wireless Alert System))

thin cloak
dire siren
thin cloak
dire siren
#

lmao

thin cloak
#

Rah Rah

#

Still depressed lol

dire siren
#

😔

ebon plinth
#

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

lost vortex
#

or onsubmit event if it's a form

ebon plinth
#

not sure if it really matters

lost vortex
#

and you want to display that URL?

ebon plinth
#

this kind of thing

#

bottom left corner of browser

lost vortex
#

Assuming it's just a simple GET request?

ebon plinth
ebon plinth
#

it doesn't matter to ME, but I'm not sure it matters to other people

#

visitors of my site

lost vortex
#

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

ebon plinth
#

hmm

floral apex
#

I saw this

#

So everyone else has to

dire siren
#

!otn a dense-twitter-shitpost

runic wigeon
#

mod power lemon_pensive

agile mesa
#

What is segmentation error in C

gritty zinc
#

accessing memory you aren't supposed to

rough sapphire
agile mesa
#

Yes

#

Dumped into oblivion

tardy rain
#

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

distant hazel
#

lmfao

#

mood

#

fr

frozen coral
#

just email the docs between the people who need them, incrementing the version number each time

#

much easier

dapper dew
#

file_name_temp.doc
file_name_temp2.doc
file_name_tempsmith.doc

karmic gust
#

draft_temp_2_DELETEME_final(1).docx

dapper dew
#

final_final_form(2).docx

#

This is what a OneDrive should look like

rough sapphire
#

doc_V7_final2

#

btw

#

just do the shite on git

#

everyone can commit

#

and then just have someone merge and edit out the flaws

dapper dew
#

Bold to assume my coworkers know what git is

rough sapphire
#

well

#

its easy

tardy rain
#

git and office documents dont get along well

karmic gust
#

git is not easy

#

especially for your typical office worker

rough sapphire
#

see, its not linux, you dont need 27 years of senior dev experience

#

just to turn on a file manager

tardy rain
#

imagine trying to explain to an excel jockey what a commit is

#

i'd rather quit

karmic gust
#

imagine looking at xlsx diffs

distant hazel
#

mariosis do you get such errors every time though?

#

it's like, once a month or so for me

tardy rain
#

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

distant hazel
#

what's causing them for others then

karmic gust
#

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

tardy rain
#

autosave, crashes, people keeping files open for an entire eternity

distant hazel
#

i keep my files open perpetually meow3c

rough sapphire
#

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

tardy rain
#

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

rough sapphire
#

yeah no

#

using excel, like, ever using excel would drive me beyond the point of insanity

tardy rain
#

excel is the most popular language, change my mind

rough sapphire
#

if you must use shitty office programs at least use openoffice

tardy rain
#

why

#

what does openoffice have

rough sapphire
#

because

#

fuck mincrosoft

rough sapphire
tardy rain
#

irrational brand hate is just as bad

#

if two things are equivalent why would i change

distant hazel
#

have you ever worked in an environment that actually used openoffice?

graceful basin
#

there is a significant difference between using something for personal stuff and using something in an office environment

tardy rain
#

half our product is excel

graceful basin
#

I know people who use macos Numbers for their personal spreadsheets and are happy

rough sapphire
#

What's good

graceful basin
#

which, all the power to them, but you aren't doing accounting in Numbers

rough sapphire
#

In. Other words open office can work for u if u know how to use UI

#

But it's free pydis_peek

distant hazel
#

oh you can pry msft excel from my cold dead hands

#

lol it's not going anywhere

rough sapphire
rough sapphire
#

U mean fisher pry pithink

distant hazel
#

if i rephrase you can say "don't take msft excel from me"

rough sapphire
#

Ohh

graceful basin
#

I could imagine google sheets replacing excel is google invested really hard into them

rough sapphire
#

I dunno why i am here , i should be working

rough sapphire
low chasm
graceful basin
#

libreoffice draw is better at editing PDFs

rough sapphire
#

OpenOffice as well?

graceful basin
#

probably

rough sapphire
#

I mean u can edit a word document and save it as a pdf pydis_peek

#

If u don't have office

rough sapphire
#

Vim

#

Is it just me or smart pointers in c++ are over used?

graceful basin
#

you mean smart pointers?

rough sapphire
#

Yah that

#

I'll amend it

#

0 space in my mind allocated for c++

graceful basin
#

they seem pretty appropriately used to me

rough sapphire
#

That's why they are over used

graceful basin
#

they are too verbose for how needed they are

low chasm
#

I bet my pointers are the smartest

rough sapphire
#

Aha

low chasm
rough sapphire
#

😩 i bet my ptrs are the weirdest

graceful basin
#

yeah

#

std::unique_ptr, std::shared_ptr

#

vs Rust Box, Rc

low chasm
#

Interesting, so they're like rust smart pointers

graceful basin
#

indeed

rough sapphire
#

Rust

rough sapphire
#

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

graceful basin
#

yeah, debugging threads is a nightmare

rough sapphire
#

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

#

😔 😔 😔 .

rough sapphire
graceful basin
#

I don't work, but I have written threaded code before

rough sapphire
#

Hmm

#

:pithink:

rough sapphire
graceful basin
#

just as a hobby

#

I wanted to send requests really quickly, and spawning threads seemed like a good idea

rough sapphire
#

👀

low chasm
#

I send requests so fast, that by the time I sent them, they were already sent

graceful basin
#

also for doing networking in the background of a game

rough sapphire
#

:shipit:

#

Hmmm

dense moon
#

Any russians around that could talk with me about military |:?

onyx mist
#

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

last relic
#

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

thorn lagoon
#

ooooo thats a good explanation

thin cloak
#

Walks into this chat via a portal

violet ferry
#

👍

shut ermine
#

yeah bigots are fictional too
oh wait

#

💀

vapid nymph
shut ermine
distant hazel
#

fwiw, next time, please submit a report to modmail and we can deal with it appropriately

rough sapphire
eternal scroll
#

hi which is the channel for help on installing python

#

have problems with running it with vscode

vital fulcrum
brazen ingot
#

!pypi pillow

royal lakeBOT
brazen ingot
#

lets do it then.

#

talk

agile mesa
#

Whats up with Russia and Ukraine

tulip cedar
normal raptor
#

@spark wasp u there?

agile mesa
#

O

onyx mist
#

they're not real

small coral
#

that was 14 hours ago

onyx mist
onyx mist
onyx mist
small coral
drifting snow
#

@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='')

onyx mist
#
<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

sudden onyx
#

Hey

#

What do you want to do?

onyx mist
#

it loads "hello" but it doesn't show "hello again"

onyx mist
sudden onyx
#

Hmm, yes. You code is bearly readable, but wait

tardy rain
#

Its not showing up in the dom?

onyx mist
#

😭

onyx mist
last mantle
#

huh

tardy rain
#

But hello is

onyx mist
#

hello is, yes

sudden onyx
#

ohhhh

#

@onyx mist

last mantle
#

which framework is this

onyx mist
onyx mist
#

I should change my name I'll do it rq

last mantle
#

yes

onyx mist
#

done

#

Daniel Dominic is typing...
😳

sudden onyx
#
<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

onyx mist
#

ok

#

thanks

sudden onyx
#

Or else it's a problem with your browser?

#

Your browser?

onyx mist
#

google

sudden onyx
#

wait

#

I reedited the code again

#

Copy again if you want it to work

onyx mist
#

okay

sudden onyx
#

The problem was

onyx mist
#

the indents are funny lol

tardy rain
#

Its not a browser problem lol

sudden onyx
#

You didn't have the starting <html>

onyx mist
#

I did

#

I just forgot to copy it

sudden onyx
#

But you had the <html/>

#

Ok

onyx mist
#
<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

sudden onyx
#

nvm

#

btw

#

<title> should be inside the head tag

onyx mist
#

ok

sudden onyx
#

What is this {% load static %}?

onyx mist
#

also, I think I found the problem

sudden onyx
#

you can just add the image by just path to the image

onyx mist
sudden onyx
#

and .png is case sensitive

onyx mist
#

Ooops

sudden onyx
#

Huh

onyx mist
sudden onyx
#

What's that

onyx mist
#

It gave me a headache

sudden onyx
onyx mist
sudden onyx
#

You need to know unix

onyx mist
#

Bruh

#

There’s a reason why I used static directories

sudden onyx
#

bruh

#

bruh

#

wait

onyx mist
#

Of course I would try directories

#

They didn’t work

sudden onyx
#

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

onyx mist
onyx mist
sudden onyx
onyx mist
#

also, it throws errors if I even try ./doge.png

#

it cannot parse it apparently

#

I found it

#

I found where it went wrong

sudden onyx
#
<!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

onyx mist
#

This guy is hiding 💀

sudden onyx
#

Fresh code

#

Will work in any browser

sudden onyx
#

Color issues?

onyx mist
#

no color issues

#

also what's your code meant to do?

sudden onyx
onyx mist
#

it's all the way down there

sudden onyx
onyx mist
#

it's supposed to be up

#

like below hello

sudden onyx
#

your css bruh

onyx mist
#

nevermind I fixed it

onyx mist
#

I doubt it even works

#

actually it doesn't

#

I tried it before

sudden onyx
#

Oh ok

onyx mist
#

it threw it to the far left side of the screen

onyx mist
#

I looked at the CSS

#

then I decided to remove width and height

#

it worked

#

yay

#

thanks for helping btw

sudden onyx
#

🤔

onyx mist
#

lmfao

#

idk how it even works

sudden onyx
#

I still don't get what you are saying lol

sudden onyx
onyx mist
#
<head>
    <style>
        p {
           font-size: 50px;
           text-align: center;
           color: black;
           font-family: "Comic Sans MS", "Comic Sans", cursive;}
onyx mist
sudden onyx
#

You don't even had to have the css

onyx mist
#

I did

#

I needed the comic sans

sudden onyx
#

For the image?

onyx mist
#

no not the image

#

image works fine by itself

sudden onyx
#

then you could've said * {font-family: font}

onyx mist
#

...

#
#

if you didn't know

#

it's for styling shit
I hate frontend

sudden onyx
#

...

#

bro

onyx mist
#

yes bro?

sudden onyx
#

I've been in frontend dev for 1 year now

#

...

onyx mist
#

JS for frontend?

sudden onyx
#

You think I don't know abt css?

onyx mist
#

I feel sorry for you

sudden onyx
onyx mist
onyx mist
sudden onyx
#

wtf are you saying....

onyx mist
#

JS for frontend 😦

sudden onyx
#

The thing was you confused me with the first code

onyx mist
#

I said that to a JS dev and he muted me

#

"JS for frontend"

sudden onyx
#

why

onyx mist
#

i guess he hates it

sudden onyx
#

js is for dom bruh?

onyx mist
#

yes

#

but

sudden onyx
#

Ask js questions I'll answer but just don't ask me about in-depth css

onyx mist
#

still

sudden onyx
#

I hate it

onyx mist
#

HTML by itself is the bare bones

sudden onyx
#

I said in depth css

#

What you were doing was kids stuff in-front of actual css

onyx mist
#

I don't want to fuck with CSS anyways

sudden onyx
#

Css is way harder than you think

onyx mist
sudden onyx
#

Really dude

onyx mist
#

that's why I never wanted to lay a hand on it so I moved to VSC for this project

sudden onyx
#

You should've used css in an external file

onyx mist
#

idk why it didn't work
maybe you could help me :P

sudden onyx
#

But you didn't know how to link it didn't you?

onyx mist
#

I did?

sudden onyx
#

<link rel="stylesheet" href="">

onyx mist
#

oh I did id=

sudden onyx
sudden onyx
#

id is for what its meant for

#

id means an id

onyx mist
#

I was wondering why it was id=

onyx mist
sudden onyx
#

btw href="file name or path to file"

onyx mist
#

thanks

sudden onyx
#

Your age?

onyx mist
#

my age?

#

:waitwhat:

sudden onyx
#

yea

#

just age

onyx mist
#

why age

sudden onyx
#

wanted to know

onyx mist
#

🤔

sudden onyx
#

I'm below 18

#

wahtsoever

shrewd zinc
spring gate
#

Would you do an internship unrelated to your study?

tardy rain
#

no

distant hazel
#

pillow talk dv_pandaSleepOwO

tardy rain
#

when you ask people questions and they respond with

tulip cedar
#

huh?

tardy rain
#

honestly its my fault for asking

#

i should know better than to expect others to know what their job is

tulip cedar
#

for me, it is a normal response

tardy rain
#

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

young shoal
#

huh?

tulip cedar
#

Lmaooo

shut ermine
#

yeah checks out ¯_(ツ)_/¯

tardy rain
#

REEEEEEEEE

tulip cedar