#ot1-perplexing-regexing

1 messages · Page 555 of 1

dull barn
#

sad

low chasm
#

Oh lol

#

Nah, it's my name

mighty oyster
#

Oh was talking to @dull barn lol

low chasm
#

Lmao

#

:P

#

I remember this ot name

#

Fairly sure it was ankith's

dull barn
#

@mighty oyster I want to insult you but I would break the rules

mighty oyster
#

Why thank you

dull barn
#

btw if any mods look at this I invited @mighty oyster

low chasm
#

Uh

dull barn
#

Now i can call @mighty oyster a grease ball

low chasm
#

Insulting other members can still get you muted

dull barn
#

Does cussing?

low chasm
#

You can curse

mighty oyster
#

Ya seriously a grease ball? I ain’t a wookie lol

low chasm
#

Lmao

dull barn
acoustic moss
low chasm
#

Haha

#

Hi hahastinky

mighty oyster
acoustic moss
#

hello there

low chasm
acoustic moss
low chasm
#

They're offline atm

mighty oyster
low chasm
#

Lmao

dull barn
#

I haven't watched star wars

acoustic moss
low chasm
#

Lmao

#

It's a minute till one am lol

#

And I cant fucking sleep

dull barn
#

watch youtube till 3

low chasm
#

Lol

#

I've got to wake up at 4 :P

mighty oyster
#

3 hours of sleep and a bunch of coffee is all it takes sometimes

dull barn
#

wtf, why sleep then?

low chasm
#

I need to wake up at four am, stuff my face, and fast till sunset

mighty oyster
low chasm
#

Haha

#

It's gotten pretty bearable

#

I'm on my last week

dull barn
#

Im already a skeleton, if I fast id die

low chasm
#

First week sucked, and I didn't really feel the second week

low chasm
#

Ironically, I'm not really losing weight

dull barn
#

sounds like @mighty oyster

mighty oyster
low chasm
#

Haha

winter heart
low chasm
#

Ramadan, yeah

#

I've come to enjoy fasting, you feel pretty calm the entire day

twin charm
#

hmm.

winter heart
#

yea, and body also gets detoxify.

low chasm
#

Ankith, this is your ot name, right?

twin charm
#

ot2 yes

#

ot1 is object's.

low chasm
#

Ah

rough sapphire
#

Not really a pyhton involved questiom but how could i make it in yagpdb bot settings (when giving rep) that a person can only give it to each person once (to avoid +rep spamming)

twin charm
#

the day the catify command got merged.

low chasm
#

Lmao

#

All ots were chaos

#

!user

royal lakeBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

low chasm
#

Pfft

#

Didn't !user used to work in offtopic channels?

twin charm
twin charm
low chasm
dull barn
#

.catify

median domeBOT
#

Your catified nickname is: ☻KhatShaggerxX☻ | 🐈

low chasm
#

Working on catify was fun

dull barn
#

I am one with the khats now

low chasm
#

Anyways, I gotta sleep, it's one am, gn yall

dull barn
#

see ya

twin charm
#

bruh why does catify have the emoji as an option for catify? it breaks the whole essence for having a cat made out of characters.

twin charm
low chasm
#

anyways, bye

twin charm
#

👋

vapid nymph
#

@low chasm hey u were interested in modmail right?

eternal wing
#

@vagrant hare hello!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

vagrant hare
#

hello

eternal wing
#

yayayay

vagrant hare
#

XD

eternal wing
#

one of us

#

welcome

vagrant hare
#

😺

robust briar
#

hello

eternal wing
#

.catify

vagrant hare
#

.catify

median domeBOT
#

Your catified nickname is: Asterhelix | ᓂᘏᗢ

robust briar
#

.catify

median domeBOT
#

Your catified nickname is: Hdidddy | ᕦᘏᗢ

eternal wing
#

Ok, wow, way to spam guys /s

robust briar
#

i am above the law

acoustic moss
#

👀

eternal wing
#

@crisp shell good morning griff

mellow spire
#

did you edit your pfp fisher, or that's the orignal?

wise schooner
#

anyone know why do these function differently? :(

inland wolf
#

hmm

#

maybe the square rooting and squaring is return a different value?

#

is check_square checking for perfect squares?

wise schooner
#

yep

inland wolf
#

hmm

wise schooner
#

i checked that. 4 works fine and returns 1

#

how tf does 5 return 6 then

inland wolf
#

also in the rust side u dont need the return keyword

wise schooner
#

i know, i just added it to make them look similar lol

inland wolf
#

hmm

wise schooner
#

nvm got it

#

5..3 is empty in rust

inland wolf
#

wait

#

u cant change the step of a range in rust?

#

in the python one u set -1 as the step

wise schooner
#

you can but it just takes unsigned integers lmao

inland wolf
#

bruh

wise schooner
#

(1..10).step_by(2) works

#

(10..1).step_by(-1) doesn't

inland wolf
#

hmm

latent scaffold
acoustic moss
last mantle
#

:0

wise schooner
primal spruce
#

So how do you get a decreasing range in rust?

inland wolf
#

good question

solid pollen
#

You don’t

inland wolf
#

u can do reverse

#

or u can use

#

std::iter::range_step(100i, 0, -1)

#

according to SO

#

of course

latent scaffold
#

The negative step is kind of useless though

edgy crest
primal spruce
#

I see. Ty.

edgy crest
#

but i think this will be from 9 -> 0

acoustic moss
#

🤔

#

shouldn't it be 10 -> 2

#

idk

latent scaffold
acoustic moss
#

no wait

#

what

#

e

#

ye

#

that

latent scaffold
#

that'd be 10 to 1

acoustic moss
#

yeah

#

makes sense to me

edgy crest
#

ah yes

#

my bad

latent scaffold
#

10..1 I think would just be ... nothing

edgy crest
#

yeh it should be None or smth

latent scaffold
#

{10..1} would be an empty iterator me thinks

#

(10..1) might be like an empty Vec

#

or Tuple, maybe

rough sapphire
#

i like cat\

lunar crescent
wet gorge
#

@analog dawn HI GAGWANG

#

@analog dawn

analog dawn
#

@wet gorge HELLOO

sterile sapphire
#

my god this is depressing

#

this was 3 years ago

rough sapphire
#

why can’t i see images

#

help me

#

That's a vague question though

#

There are a lot of factors that might be causing your disability to see images

valid marten
#

whats the difference between signed and unisgned bits?

rich moon
#

nothing much in terms of how they are stored (all 1s and zeros) but how they are interpreted are different (usually first bit with signed is an indication of positive or negative)

acoustic moss
edgy crest
honest star
#

being graced with both salts is a wonderful but rare occurrence

edgy crest
low chasm
#

wheoah

rough sapphire
#

meow

#

my first application in c sharp

acoustic moss
#

poggers

edgy crest
#

can you use C# on linux

graceful basin
#

yup

#

C# is fully cross platform using .net Core

edgy crest
#

oh nice

sand inlet
#

@prisma merlin basically, they/them is the pronouns that people should use to refer to me

sand inlet
#

no

#

they can be singular or plural

#

the use of it as singular is older than the use of you as singular

viral nexus
#

Can you use Windows on Windows?

verbal glen
viral nexus
#

Lol I never thought somebody would answer it’s a joke

verbal glen
#

oh

viral nexus
#

I know what a VM is

valid marten
#

is there a way to change where a file is located within the folder? i sometimes hate having them be in alphabetical order

harsh tundra
#

right-click, "sort by"
or if you have a details view, click on column name

valid marten
#

wait u can color a file?

visual bridge
bleak lintel
#

happy birthday

lost vortex
harsh tundra
#

happy birthday!

lunar crescent
sterile sapphire
#

happy bday

visual bridge
#

Thanks everyone!

edgy crest
#

seems like a lot of people have birthdays in may

acoustic moss
#

my man came for the bday wishes and then left the server lmao

last mantle
#

lol

acoustic moss
#

oh wait no they didn't

#

mb

last mantle
#

boo

acoustic moss
#

was confused by the lack of roles ok

#

and i can't ping them either

last mantle
#

boo

acoustic moss
#

ok

last mantle
#

ok

lunar crescent
#

ok

kind quiver
#

ok

rough sapphire
#

ok

brazen oxide
last mantle
#

ok

plush lion
#

yo

rough sapphire
#

no

plush lion
#

..

#

okie

mellow spire
last mantle
#

meh

#

look at us

#

🥳

solemn leaf
prisma agate
#

Gm everyone

twin charm
#

omg this server icon is spinnin'

twin charm
twin charm
#
border: 5px solid white;

anyway I can make this multi-coloured? like a gradient

latent scaffold
#

oh that embed matches up nicely haha

twin charm
#

damn thanks

#

yeah hah

twin charm
#

by the looks of it, the inner and outer image are both starting at the top and then increasing the size towards the bottom making it looks cringe

#

ayy lessgo

last mantle
#

nice

twin charm
#

border too thicc.

#

I'm specifying everything using px I wonder how messed up it'd look like on mobile or larger monitors 👀

gleaming thicket
#

tardy frigate
#

@glass junco just saw your closed help channel, which kind of structures are you trying to find?

latent scaffold
#

any of y'all care to explain what the heck happened here

last mantle
latent scaffold
#

QDriverStation

last mantle
#

made by?

low chasm
#

whaoh

last mantle
#

whaoh yes

low chasm
#

haha

latent scaffold
dreamy plover
#

floppa

lime maple
#

Hi

#

This is offtopic right?

#

This is offtopic right?

drifting sage
#

Yeah

#

!ot

royal lakeBOT
lime maple
#

Cool

graceful basin
#

oh wow, an eshop in my area is selling 3060 at double msrp, even more if you consider buying power.

vernal sparrow
woven saffron
#

...

atomic gazelle
#

i made an entire operating system, to make a dvd logo bounce around.

#

dont ask

glass junco
#

Sorry for replying so late 🥲

last mantle
#

use cheats 😎

glass junco
#

I do

#

Takes ages

last mantle
#

huh

glass junco
#

Flying around In spectator mode

last mantle
#

you can search for structures lol

glass junco
#

And using admits to find fortresses

glass junco
last mantle
#

admits?

glass junco
#

Admist

#

Google it

last mantle
#

Now what's that

#

Ok

glass junco
#

Seed viewer

last mantle
#

I mean , you can just locate the structure right?

#

Why bother with all this

glass junco
#

Yes but the biome

#

I need the biome

last mantle
#

Biome + structure?

glass junco
#

Yea

vapid nymph
vapid nymph
austere forum
#

i wonder whether i can build discord bots with Dart....

low chasm
#

You should be able to build a discord bot with any language that can make http requests :P

wraith hound
#

And has support for websockets

#

So you can connect to the gateway

low chasm
#

mhm

wraith hound
#

I still need to make my final pfp

low chasm
#

hm

wraith hound
#

I'll probably write some SVG code and animate it using css

low chasm
#

Cool

#

lmao

#

alexabot

tardy rain
#

alexa, purgeban this fool

vapid nymph
latent scaffold
rich moon
#

im not too surprised there isnt much good fortran ides

tardy goblet
rich moon
#

lol i was using that too but i was wanting intellisense of some sort

#

couldnt find much vim plugins for fortran tho @tardy goblet

tardy goblet
#

i... didnt use em

#

hardcore

#

also at a time i didnt know much on vim plugins

rich moon
#

i just hate typing the same thing out again and again

winter terrace
#

you know what's sadder than playing minesweeper to pass the time?

#

playing homemade minesweeper to pass the time

latent scaffold
#

kmines

tardy frigate
#

set the same coordinates, the dimension, the biome filter,,, etc

rich moon
#

yeah only problem is that u gotta know the seed and some servers dont let u see it

tardy frigate
#

look for one that seems like its close, then check its coordinates by zooming in on it, and using the go to function on the biome finder

rugged echo
#

absolutely love this username

vapid nymph
#

hey nice

#

all of these channel names

#

are staff named

rough sapphire
#

they usually are

#

Oh

#

What's the probability though

#

i'll say >0.5

#

they once changed a channel to cricket channel coz cricket was all over lol

honest star
#

Small Leaks, but I'm excited about the work Code Jam Team has been doing so far

wraith hound
#

Ooh

#

I'm excited

eternal wing
harsh arrow
#

hi

rough sapphire
#

Hello

honest star
eternal wing
#

Well, griff made it look nice tbh

#

I am incapable of making things look nice

honest star
#

That's like.... exactly what I wanted and more

#

@crisp shell DO YOU WANT TO HELP?

eternal wing
#

😄 I am happy we could help then, haha. Let me know if you need anything else on that doc

#

Griff does what I tell him (jk, I am pretty sure he is down to help though, he is asleep now I assume)

honest star
#

3 weeks until the announcement. I know we're on track but I'm neeeervous

acoustic moss
#

👀

wraith hound
#

Could you guys just like, leak the whole thing now?

edgy crest
#

if i dont get my summer vacation in 3 weeks im quitting this school

last mantle
#

ok

rough sapphire
#

Hello

eternal wing
#

Stay in school lemon_warpaint

edgy crest
wet stone
#

Why do I get this number:
-1656666645
when trying to raise 755 to the 35th power? I am using c# but the py alternative of my code is thi:

for i in range(powNum):
  result *= baseNum # basenum being 755 and pownum being 35

This result is clearly wrong. Using Python I get the correct answer:
53474078223908916685764088140188037261466695416304204069705118629344659763594972901046276092529296875

graceful basin
#

@wet stone C# ints use a finite amount of bits, but python ints are unbounded

wet stone
#
namespace beginnings
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(getPow(755, 35));
        }

        static int getPow(int baseNum, int powNum) 
        {
            int result = 1;
            for (int i = 1; i <= powNum; i++) {
                result *= baseNum;
            }
            return result;
        }
    }
}

is my C# code, python alternative above.

graceful basin
#

Yes

wet stone
#

does any C# datatype have no boundry?

#

any datatype that can store a number*

#

such as double?

graceful basin
#

System.Numerics.BIgInteger

wet stone
#

thanks man

rough sapphire
#

I'm looking at an init.vim files, and I see two lines which I don't really understand vim inoremap <silent><expr> <C-Space> compe#complete() inoremap <silent><expr> <CR> compe#confirm('<CR>') I understand the inoremap <silent><expr> part, but I don't understand the key mappings that <C-Space> and <CR> refer to.

#

@solid elbow

#

Trying to set up LSP and compe on nvim

solid elbow
#

Ctrl+space and enter, respectively

#

CR is "carriage return", which is also called enter

rough sapphire
#

hmmmm, okay

#

I wonder why Ctrl+space doesn't actually do anything in terms of autocompletion then

solid elbow
#

What do you see if you type ctrl-v ctrl-space in insert mode? It may insert something that looks just like a regular space, or it may insert something that looks like ^@

rough sapphire
solid elbow
#

Well, ok. Not what I expected, but fine

#

That means that it's recognizing ctrl-space as a distinct keypress from space, which was what I wanted to know

#

If you do :verb imap <c-space> what does it show?

rough sapphire
#

so the mapping is working...

#

maybe I'm misunderstanding compe?

solid elbow
#

Yep. It's been mapped, and the keypress is recognized, so the compe#complete function is firing, but not doing what you expect.

#

I don't know that plugin, so I doubt I can help with that

rough sapphire
#

yeah, no problem

#

I'll RTFM

solid elbow
#

Good luck!

rough sapphire
#

thanks

rough sapphire
vapid nymph
#

Guys @eternal wing djg Noam now rftm is sleepvnos

eternal wing
#

I am no less confused here than I was just a second ago Sadge

inland wolf
#

same

vapid nymph
#

@inland wolf same ig rksbwi

inland wolf
#

rksbwi

#

?

vapid nymph
#

RksBWi*

#

Sanity - >> window

edgy crest
sinful river
#

Is is a hackathon like thing?

edgy crest
#

its code jam

acoustic moss
#

you're telling me that the Code Jam Team is working on a Code Jam ⁉️

edgy crest
#

yes

#

you did not participate

#

?

acoustic moss
#

i wasn't in the server during the last code jam

edgy crest
#

neither was i

acoustic moss
#

o lol

edgy crest
#

but they got winter and summer jams

#

i would get something to do when it comes

wet stone
#

my sorting algoritm is finished finally /s

acoustic moss
#

idk what 1093 is supposed to mean

wet stone
#

its my line count

acoustic moss
#

bruh

wet stone
#

i needed a lot of else ifs

wet stone
#

max list size of 10 though

#

each time it goes else if for each one

#

it checks each one past each one

#

and makes the pist

#

list

#

then it sweeps

#

and checks

#

if its wrong it will go again

edgy crest
wet stone
#

so i copy pasted that

#

and if its wrong again it will just error out

#

but it shouldn't be

glass junco
crisp shell
latent scaffold
#

that looks aggressive out of context lol

solid pollen
#

DO YOU THINK?

latent scaffold
#

;-; YES

solid pollen
#

BUT KUTIE IS EXCITED

gritty zinc
#

otn a KUTIE IS EXCITED

tranquil orchid
#

it's getting close 👀

latent scaffold
#

69,420?

tranquil orchid
#

Correct

mellow spire
#

veryyyy far

narrow pecan
#

I'm still safe for now

tranquil orchid
#

for now hyperlemon

solemn leaf
#

13456 msgs for square of 116

#

🕵️

#

79 msgs LESSGO

latent scaffold
acoustic moss
#

think I should have one of the highest (number of messages:number of days in the server) ratio

rough sapphire
latent scaffold
#

318 results

rough sapphire
#

oh that's less. you're less efficient.

#

in opening eyes of people today

acoustic moss
#

clearly you haven't ranted about manjaro enough yet

#

rant more

#

dewit

rough sapphire
#

yes. this was not expected from you.

#

now people will end up using it more.

latent scaffold
#

no because it always makes me feel sad

rough sapphire
#

but if you won't help people how will they stop using it.

last mantle
rough sapphire
#

internet is full of wrong information.
they need a right person.

latent scaffold
#

no matter what

#

My efforts are fruitless

#

and I don't know enough about what I'm talking about

rough sapphire
#

this was not expected. why did you become so hopeless?

inland wolf
quick ledge
#

when their system got bonked

#

I guess

last mantle
#

ok

rough sapphire
#

you're no more toxic. you're accepting it even after you know you're wrong.

edgy crest
rough sapphire
#

why don't you install manjaro in your pc now cyph

latent scaffold
#

because I am too lazy

last mantle
#

poor cat

rough sapphire
#

installation is very easy

#

especially in manjaro

inland wolf
#

easier than arch ive heard

latent scaffold
#

indeed

rough sapphire
#

yes from some reliable source which is hopeless now

#

then install it. its easy.

#

easier than arch

last mantle
#

choose other distros tbh cuz manjaro breaks easily

rough sapphire
#

nono manjaro is good

#

it gets installed easily ngl

latent scaffold
#

mhm

inland wolf
#

ye

low chasm
brazen oxide
#

have you guys ever slept 8 hours in 3 hours?

rich moon
#

totally makes sense

sterile sapphire
#

yes bc I can time travel

#

I also ride 50 foot tall dinosaurs to work

last mantle
#

lol

low chasm
austere forum
#

damn, the infamous number is here...

wraith hound
#

Make it 6969

honest pawn
honest star
austere forum
brazen oxide
honest star
# sinful river Could someone give me a brief idea about what it is?

So our code jams are essentially we put in a team with other people who signed up for it. We give you a python technology/framework to use and a theme, and the you have to make something with your team within 10 days using the framework/tech and incorporating the theme!

It's a lot of fun and gives you an idea of what it's like to contribute to a team in a fun and chill environment.

#

To ensure that people have enough python knowledge to meaningfully contribute we do a Qualifier that people have to pass to be eligible to participate in the code jam. But it's nothing hard and just testing to make sure you know the python basics and stuff

brazen oxide
wraith hound
#

When do you release the theme and framework/lib/tech thing?

honest star
#

Additionally, this year, I'm going to host a Git + Github Bootcamp to allow people to get familiar with how to contribute using git and github in a team before the event. This'll hopefully let people feel more comfortable in the team before the code jam officially starts

honest star
wraith hound
honest star
#

The earliest the announcement will be is June 1st

honest star
brazen oxide
honest star
# wraith hound That's pretty cool! I'm sure it would be helpful

Mhm! I'm going to set up a few repos on my personal account and add the people participating in the bootcamp to them. So we'll be actually doing the making new branches, making commits, PRs (if applicable) and actually ~doing the thing~. I've found git makes sooo much more sense once you actually do it in a real environment, so I'm hoping to osmewhat simulate it

honest star
brazen oxide
wraith hound
acoustic moss
honest star
#

:3c

#

See, I action feedback

acoustic moss
#

dm response when

rough sapphire
#

is codejam like google codejam?

wraith hound
#

Sorta

#

But not really

rough sapphire
#

so what's the difference?

wraith hound
low chasm
#

also, Hi :D

graceful basin
#

it is also much simpler.

honest star
#

I added your think to my organizing page for the esoteric stuff

acoustic moss
#

👀 ye

#

epic

honest star
#

Once I get past my finals I'll spend more time fleshing it out and get a schedule for it

acoustic moss
#

yo

#

leaks

honest star
#

small leaks

#

itty bitty

acoustic moss
#

👀

wraith hound
#

Leaks are nice

low chasm
#

lmao

low chasm
#

Dawn, do you make your PFPs?

wraith hound
#

Not this one

#

I will though

#

One day

low chasm
#

Cool

rough sapphire
low chasm
#

Lol

acoustic moss
#

aight
time to go back to work on the nightmare that is gui designing

low chasm
#

haha

wraith hound
#

#

When you realize you opened a pr to a repo that's half dead

low chasm
#

lmao

#

i mean, only half dead

subtle dagger
#

what is he easeist windows manager to customize

low chasm
#

Hm

#

I'd say its either i3 or openbox

subtle dagger
#

i thought people say i3 is hard

low chasm
#

hm

#

well, openbox is easy enough to configure

subtle dagger
#

ok

#

what os are you on?

low chasm
#

I'm using windows atm :P

#

I daily drive openbox on my laptop with arch, and its great

#

Openbox looks nice enough, and its easy to work with

#

its pretty lightweight as well

subtle dagger
#

i think every window manager is light

#

whats the ram usage

low chasm
#

Most are light, openbox is just lighter

subtle dagger
#

ok

low chasm
subtle dagger
#

great

#

now i need to install arch and openbox, then figure out how to conifigure

low chasm
#

Good luck :D

subtle dagger
#

thanks

latent scaffold
subtle dagger
#

Il see

latent scaffold
#

How much RAM do you have? @subtle dagger

subtle dagger
#

4gb

latent scaffold
#

so then why're you so concerned about RAM usage?

#

Just go with XFCE and be done with it lol

subtle dagger
#

I don’t like xfce

latent scaffold
#

right... yet you'd like a WM more?

subtle dagger
#

I guess so

latent scaffold
#

I'm not sure I understand but whatever

#

I always found Openbox kind of ugly haha

#

You'd probably have to do a lot of tinkering to make it look any good

#

Anyways... you can make XFCE look really nice

#

with very little RAM usage but still a full-featured desktop

#

I can't find any screenshots of Xubuntu when I had it

#

this is all I could find haha

#

obviously I did nothing but change the location of the task manager and the color scheme

low chasm
#

haha

#

mhm, do those first

#

yes

low chasm
#

@rough sapphire

#

alright

#

so what question did you have?

#

Alright, redefining a variable isn't changing it

wraith hound
#

It can only be changed when you have mut

low chasm
#

Redefining is exactly what it sounds like, your redefining it

#
let x = 10
let x = 40
``` In this, the second `x` has shadowed the first `x`
#

If you do ```rust
let x = 10
x = 20

late sedge
low chasm
#

yes

gritty zinc
#

where are the ;s

low chasm
#

oh yeah

#

Oof

late sedge
#

oof

low chasm
#

I mean, the thought is there :P

gritty zinc
#

Rust without ;s makes me think of Kotlin

low chasm
#

lmao

gritty zinc
#

I mean, same name:type = value syntax, even has println(thing) 😅

low chasm
#

Haha, I prefer name: type = value over type name = value

late sedge
#

why not

#

variable != constant

low chasm
#

well, constants and variables are somewhat different

late sedge
#

a variable is scoped

low chasm
#

Constants can be declared in any scope

late sedge
#

a constant is accessible throughout the whole code

low chasm
#

Constants also have to be annotated

late sedge
#

yes

#

well in rust they have to be defined outside of all scopes

#

nope

#

thats exactly their purpose

low chasm
#

Constants are exactly that, constant values

late sedge
#

^

#

same with the modules

#

they all have to be defined in main.rs

#

in the main.rs file, outside of the main function

gritty zinc
#

@rough sapphire Constants are names the exact values of which are known at compile time.

late sedge
#

not runtime

gritty zinc
#

That's why you can only use literals and other constants in a const expression.

#

A constant isn't calculated at runtime, the exact value gets stuffed straight into the executable

#

presumably the compiler is also really good at optimizing based on the value of a constant:

if MY_COOL_CONST == 1{ //Compiler knows exactly what MY_COOL_CONST is, so if it isn't 1, this branch gets yeeted out entirely and the ASM won't have a check at all.
    //...
}
late sedge
#

also macros are damn genious

#

the only thing i dont really like/am getting kinda used to is the fixed amount of arguments

low chasm
#

Macros are great :D

gritty zinc
#

I think that's right, yeah

late sedge
#
rs      cpp
const   constexpr
var     const
mut var var```
gritty zinc
#

wdym?

#

I think if you write out the values to the right, then you can rely on the compiler guessing them from the values

#

that said

#

why the hell do you have a 200-element tuple

late sedge
#

you have to define the type

gritty zinc
#

though, heh, I am also guilty of type creep

type CallbackFunc<'a> =
    &'a mut dyn FnMut(&HashMap<Position, F>, &HashSet<Position>, &[Position], F);
#

Tuples can be heterogenous.

#

(have different types)

late sedge
gritty zinc
#

Though also, it's a good idea to use a struct to group values instead of a tuple

#

just nicer, and in Rust this is zero-cost (structs have the size of their values combined, pretty much)

late sedge
#

just use vectors

gritty zinc
#

ah yes,

fn my_fun(args: &[str]) -> Vec[String]:
#

a perfectly normal function

late sedge
gritty zinc
#

I love the style it's written in

#

there is, but it's not the only way

low chasm
#

There is yeah

#

but its not used a lot of the time

gritty zinc
#

you'd use return if you're buried in 4 layers of loops/matches/whatever and want to end it all the function and return

low chasm
#
fn foo() -> i32 {
  10
}
``` is perfectly fine
gritty zinc
#

but for simple stuff, you often just let the return value "bubble up" like this

low chasm
#

I might do a similar thing with my language, I've grown to like it

#

It was annoying at first though

gritty zinc
#

In Kotlin you can outright do fun my_fun() = 5

#

hmm

#

I don't think I recall, actually, don't think I ever needed to do if my_int{

#

yes, but not in Rust I believe

gritty zinc
#

@rough sapphire basically, I don't think it's a problem to have to write if my_int!=0, I think that's significantly more readable than if my_int for 2 more chars

#

and much more readable if it's something more complex like a vec

#

if !vec.is_empty()

#

hmm, what do you do in Julia for this?

late sedge
#

and a statement at the end

gritty zinc
#

No, it's the same as3..0.
uhh
with a step of -1

#

rust's range syntax doesn't have step, sadly

#

Ah, I thought you were talking about the if num thingie 😅

late sedge
gritty zinc
#

hence I was surprised as I didn't know Julia had anything weird about that

gritty zinc
#

yeah, that's what you have to use

late sedge
#

imo much better since its explicit

gritty zinc
late sedge
gritty zinc
#

true

late sedge
#

yup

#

annoying but genius

rich moon
#

me who hasnt completely figured out lifetimes yet

tardy rain
#

'static all the things

rich moon
#

lol wut

#

doesnt that mean nothing gets deleted till the program ends

tardy rain
#

Cant have expiring lifetimes if everything lives forever

rich moon
#

doesnt that mean everything is tied together lol

#

wait that means there is no difference between leaking memory

#

and tying everything together

distant hazel
#

so who plays minesweeper?

wraith hound
#

I do

#

It's a fun game to pass time

distant hazel
#

me too but I haven't played in ages

#

downloading now

wraith hound
#

I just use Google's minesweeper

#

The one that comes with google play games

rough sapphire
#

I tend to just google minesweeper and play it there

wraith hound
#

^

latent scaffold
#

KMines

sterile sapphire
#

idk why i found this funny

latent scaffold
#

I also do not know why

rough sapphire
#

nice name

calm dawn
#

idk if that's teaching the bird that the dude is in charge or that the trash can lid is

glossy bloom
#

are there any good windows shells other than cmd/powershell? i wanna be able to use something like ubuntu/wsl but if i run it inside a windows filesystem its slow af (duh)

graceful basin
#

git bash

#

but wsl2 at least should be pretty fast even on /mnt/

last mantle
#

@inland wolf have you tried state management in flutter?

inland wolf
#

ye

last mantle
#

so

#

i have a function that i want to call from another class

inland wolf
#

provider 👌

#

yes

last mantle
#

hmm

#

hmm

last mantle
#

uhh how do i do that

#

this is why i like the imperative style :/

inland wolf
#

imperative is cring

#

make a callback or sometin

#

or use some state management sys

#

flutter has docs on it

last mantle
#

hmm ok

inland wolf
#

ye

last mantle
#

ye

last mantle
#

on yt

inland wolf
#

netninja

#

but he doesnt have state management tutorials

#

i dont think so

last mantle
#

ah ok thanks :D

inland wolf
#

his app is way simpler

#

ye

last mantle
#

i learnt basics through docs so

#

hmm

inland wolf
#

ye

#

docs are good

rough sapphire
#

state management in flutter is okay.
react is beautiful in that IMO.

#

and with hooks now its more handy

inland wolf
#

hooks are cool

#

bruh

#

someones made a flutter_hooks package

rough sapphire
#

wow

#

they did! that's great!

#

but it must be using state internally.

#

and well, hook were internally from a long time but not exposed so its kinda not same.

inland wolf
#

perhaps

bleak lintel
#

no more cfduid

#

🦀

twin charm
#

I'm just gonna pretend that I know what that is.

inland wolf
#

same

tranquil orchid
#

Knowing joe, I'd say
C- cloud
F- Flare
U- Unique
I- Identifier
D- something

#

Or does the ID stand for identifier

#

I actually don't know if the D in ID stands for something holdon

#

Ok yeah so just part of identifier

#

Did I get it right

inland wolf
#

we may never know

mellow spire
#

cloudfare cookies?

spare dawn
#

http://www.usaco.org/index.php?page=viewproblem2&cpid=855

#include <cstdio>
#include <algorithm>

const int N = 3;
int capacity[N], milk[N];
/*
N is the number of buckets (which happens to be a constant value of 3)
capacity[i] is the maximum capacity of bucket i
milk[i] is the current amount of milk in bucket i
*/

void pour(int i, int j)
{
    int amt=std::min(milk[i], capacity[j]-milk[j]);
    // Amount of milk to pour is the minimum of the remaining milk in bucket i and the available capacity in bucket j
    milk[i] -= amt;
    milk[j] += amt;
}

int main()
{
    freopen("mixmilk.in", "r", stdin);
    freopen("mixmilk.out", "w", stdout);
    for(int i=0;i<N;++i)
        scanf("%d%d", capacity+i, milk+i);
    for(int i=0;i<100;++i)
        pour(i%N, (i+1)%N); // Pour milk from one bucket to the next
    for(int i=0;i<N;++i)
        printf("%d\n", milk[i]);
    return 0;
}``` ---> not able to understand the main function.
bleak lintel
#

@twin charm @inland wolf @tranquil orchid @mellow spire cfduid was a cookie set on all cloudflare traffic

#

it was used as part of the bot detection thing

#

however, it made cookie consent difficult

mellow spire
#

i was close 😮

bleak lintel
#

so they just removed it

#

if you visit https://pythondiscord.com/ now you won't get any cookies set

#

Cloudflare is deprecating the __cfduid cookie. Starting on 10 May 2021, we will stop adding a “Set-Cookie” header on all HTTP responses. The last __cfduid cookies will expire 30 days after that.

mellow spire
#

Oh nice, what was the reason it was present before and not now

bleak lintel
#

keep your eyes peeled on the cloudflare blog actually for a different thing 🙂

bleak lintel
mellow spire
#

i will give it a read, thanks

lucid raptor
#

this @opaque bronze

opaque bronze
#

ok

lucid raptor
#

I hope that clears things up 😄

acoustic moss
#

interesting

alpine edge
#

best like to dislike ratio

last mantle
#

oof

#

which vid

rich moon
#

sees no downvotes

#

redditors

#

sees no downvotes

#

looks like a job for me....

last mantle
#

same

topaz aurora
#

Finally lemon_pensive

low chasm
#

haha nice

bleak lintel
#

what a cool graph

inland wolf
#

ikr

bleak lintel
#

which IX has the most traffic

#

isn't it one of the german ones

#

I forget nonw

#

oh it might have been AMS-IX

lime maple
#

What's the full form of idk

#

I dare you to tell lol

bleak lintel
#

ya 9.1 Tb/s

lime maple
bleak lintel
#

hello

lime maple
bleak lintel
#

oh wait peak was 10.012 Tb/s hmmmm

acoustic moss
#

joe
graph for most used lancebot commands
when

bleak lintel
#

Internet Exchange (IX) AMS-IX recorded peak traffic of 9Tbps on 1 November around 7.30 PM a new ‘all-time record’ for the company.

bleak lintel
acoustic moss
#

sed

bleak lintel
#

wew 836k prefixes

lime maple
#

Tbh if pycharm wasn't heavyweight it would have been skyrocketing even more

bleak lintel
#

lol what

lime maple
#

Pycharm is heavyweight

#

I understand why lol

bleak lintel
#

ya, wasn't sure where it tied in lol

lime maple
#

Lol

#

I am a sublime guy

#

:P

#

I like the names of the off-topic channels

acoustic moss
lime maple
#

Ok bud

#

Facts

#

Wait hold up

#

Is Joe one of the owners?!?!?

bleak lintel
#

yes

acoustic moss
#

ye

lime maple
#

The hell?

acoustic moss
#

hmph

lime maple
#

How is vs code...

low chasm
#

VSCode is pretty RAM heavy

lime maple
#

Illuminati

#

Confirmed?!?!?

low chasm
#

It is electron after all :P

lime maple
#

Pycharm is lighter

low chasm
#

Pycharm is definitely heavier

acoustic moss
low chasm
#

yes pls

#

rust ide

lime maple
acoustic moss
#

mfw there isn't even an ide dedicated for rust

low chasm
#

Both of which have excellent Rust support

acoustic moss
#

dedicated
as in
solely dedicated to rust like how pycharm is dedicated to python

low chasm
#

eh

lime maple
#

Imma go play minecraft

acoustic moss
#

eh yourself, i use vscode

low chasm
#

theres not a dedicated IDE for a lot of languages

acoustic moss
#

there's a dedicated IDE for the good languages

low chasm
#

No need to single Rust out :P

low chasm
#

D:

#

Rust is good

drifting sage
#

VSC is good for many languages I think

low chasm
#

yup

lime maple
#

I thought of learning programming in 2020 cause I saw the owner of minecraft notch writing code in eclipse and I thought it would be cool if I can do that

drifting sage
#

lol

acoustic moss
#

eclipse 👎 🤢 🤮

lime maple
#

I do not regret it

low chasm
lime maple
#

For java it's good

low chasm
#

Just use intellij :P

lime maple
#

Oh facts

#

Yeahh

acoustic moss
#

here come the write code on pen and paper jokes

#

same

#

except i use vsc too

#

lol

#

oh damn

#

gh student?

mellow spire
#

I use nvim and pycharm for python

low chasm
#

haha same

mellow spire
#

And vscode for C/C++

acoustic moss
#

O

mellow spire
#

Yeah

acoustic moss
#

yeah its lucrative af

mellow spire
#

I got pycharm student pack

acoustic moss
#

the benefits page of the gh student pack is just an endless scroll

#

ifkr

lime maple
#

I want that

lime maple
#

How to get it?

#

The pack

acoustic moss
#

you mail them

#

with proof that you're student

#

if you have a school email

lime maple
#

REE

lime maple
#

Mine

acoustic moss
graceful basin
#

the pack is pretty neat

last mantle
acoustic moss
#

n

#

o

lime maple
mellow spire
#

I applied for the pack, still waiting, got pycharm student pack thi

#

Tho

graceful basin
#

the only thing I am actually using is the azure trial for a private container registry

lime maple
#

My man's have pycharm professional

graceful basin
#

turns out selfhosting one is a horrible PITA

acoustic moss
#

PITA?

graceful basin
#

Pain in the ass

lime maple
#

Lmao

acoustic moss
#

idk

#

Well, just write how you plan to use GitHub

low chasm
#

duh

#

smh

acoustic moss
#

You might also mention how you plan to use GitHub

last mantle
#

just say, e

bleak lintel
#

lol

low chasm
#

Just too high

bleak lintel
#

what's this for

#

student plan?

#

ya they don't vet it super tight

low chasm
wraith hound
#

You need that much?

low chasm
#

I thought it would take a few months lol

bleak lintel
#

yeah they're fast

wraith hound
#

I just wrote "I want to open source some projects and do cool stuff with git"

low chasm
#

They said mine would take a month :p

bleak lintel
#

yeah I got that when I submitted a takedown request lol

wraith hound
#

They say a month, but they take varying amounts of time

#

Mine took a week

bleak lintel
#

just depends on how busy the applications are

wraith hound
#

What do you want from it?

#

You automatically get Pro, and they give you a bunch of codes and stuff for other sites

bleak lintel
#

yeah, some will give you a code, some will authorise with github

#

lol

#

just tinkering

#

lul

low chasm
#

lel

bleak lintel
#

we're good on the intern front right now lol

#

pls pls pls ask!!!!

#

i'm open to explain general flow or the components

#

it helps me understand thigs as well lol

#

well, that specific diagram is showing the process that network traffic (i.e. you browsing to pythondiscord.com) actually get into the cluster

#

it hops through several different things before it ends up in the hands of django

#

cluster in this context is kubernetes cluster

wraith hound
#

I have heard of the row from Graphite to Loki, so I'm happy

bleak lintel
#

so anything "in the cluster" is running on our server/communicating within our cluster

wraith hound
#

Wrong reply

bleak lintel
#

so we have a 3 node cluster

#

which means that there are 3 physical servers in one cluster, and kubernetes assigns services to each node

#

so say I tell it to run redis, I tell the cluster to run it and then kubernetes picks a free node and places redis on it

#

pretty much!!

#

it's a group of VPS' talking to each other

#

3 VPS' joined together and able to speak over the network, that's the cluter

#

yep

#

each node is a VPS

#

and the nodes together combined with the control systems of kubernetes is the cluster

#

this is one of the best diagrams I've found of it

low chasm
#

did discord just crash

bleak lintel
#

basically each nodes are like your workhorses, they are the ones actually running the stuff

#

and then that blue rectangle is the control plane, which is usually another server which just sits there and coordinates the nodes

#

so you say to the control plane "please schedule this deployment" and then the control plane passes that on to a node

#

yep

#

if you're self hosting it's normally a 4th VPS, if you are using a managed cluster by someone like Linode then they generally handle the control plane

#

Laravel is the PHP webserver thinkingcrew

#

we use Linode, so the cloud provider API is Linode

#

and that's used for things like creating a storage volume

#

or creating a load balancer

wraith hound
#

DevOps is cool

#

Quite interesting

bleak lintel
#

that's the kubernetes manifest for creating a volume

#

and then when you apply that to the control plane it reaches out to the cloud provider and applies it

#

the control plane is the brains, it coordinates the nodes and works with the cloud provider to join it to the nodes (e.g. mountig volumes)

stark prawn
wraith hound
#

Pokemon makes no sense sometimes

#

🤷‍♂️

low chasm
#

haha

rich moon
#

stacking all the speed evs

bleak lintel
#

lol

#

hmmm

#

so

lime maple
#

Where did u learn python Joe?

bleak lintel
#

let's make a list of where things travel before they reach django

#

lol

#

one sec

wraith hound
#
  1. Uh, the site API?
#

Cloudflare?

bleak lintel
#

there are many things your request passes through before it reaches us