#ot2-the-original-pubsta

652 messages · Page 62 of 1

wide totem
#

17 MILLION MESSAGES IN PUBLIC CHANNELS

tawdry salmon
#

From who??

wide totem
#

for the entire server

#

its a bug that when searching the id of a deleted user

tawdry salmon
#

Oh damn

wide totem
#

apparently just gives every message

tawdry salmon
#

Yeah 17m messages is WILD

#

@wide totem Can you give me that ID?

#

I want to check other servers

wide totem
#

just find a deleted user lol

tawdry salmon
#

I can't seem to find one so...

#

If you could please..?

daring jay
tawdry salmon
#

Thanks :)

#

I'm in a server with 18m messages lol

#

Discord is fucking awesome

wide totem
#

innersloth only has 5m

#

LOL

#

@daring jay what's one of the firefox dev only features?

daring jay
#

Uhhhhh, I think Inactive CSS

#

But idk if that's on nightly or not

wide totem
daring jay
#

It's a dev tools thing

#

It'll gray out CSS that isn't being used

minor geyser
#

@strange acorn

#

pip3 install pygame

wide totem
#

asdf this is in firefox

vague shadow
#

👀

wide totem
vague shadow
#

this also includes archived public channels

wide totem
#

ah

vague shadow
#

but yea, staff channels have a lot

limpid fern
wide totem
#

lemme make 1 million of those

#

myself

limpid fern
wide totem
limpid fern
#

No, channel for partners

wide totem
#

o

wide totem
vague shadow
#

Ah, PyWeek isn't made by Python Discord

wide totem
vague shadow
#

it's a separate org

#

we just host it here and partner with them

limpid fern
#

Now I'm a pleb

wide totem
#

;-;

limpid fern
wide totem
#

u just said you were smth else a few minutes ago

limpid fern
#

I can be a cat and a pleb

wide totem
#

lol

blissful coral
hazy laurel
wide totem
#

@limpid fern what is your pfp!?

limpid fern
#

It me

blissful coral
#

most accurate robots my ass

wide totem
hazy laurel
wide totem
#

lol

#

since the server is named pythot

#

aaaaaaaaaaaaaaaah

#

i mean named python

#

not pythot sheesh

hazy laurel
#

pythot 😳

wide totem
#

i mean that's @limpid fern's nickname smh

limpid fern
limpid fern
wide totem
#

oh that's a very nice pink

limpid fern
#

It's the best pink

wide totem
#

I'd view it on lancebot but i haven't actually finished that command yet

#

xith I'm not dead just busy

limpid fern
#

It's the only colour I had to be introduced to

#

@steep scroll

wide totem
#

was it rgb lighting or post processing?

steep scroll
limpid fern
wide totem
#

like did you light with the pink or filter the image afterwards

limpid fern
#

Yeah, greyscale, then I overexposed it, then added a layer on top with pink and set it to blend mode multiply so white becomes pink and black stays black

wide totem
#

damn

#

nice

#

it looks good

wide totem
#

in hex

#

I need to make a new pfp

#

so whatever color, that's my new pfp

steep scroll
wide totem
#

second worst

#

that's too bad

steep scroll
wide totem
#

that's not half bad

wide totem
#

not half bad

steep scroll
#

Hmm, too good

wide totem
#

give another color

#

🥺

#

ooh

steep scroll
#

I'm trying

wide totem
#

for some reason that feels like VSC Breast Cancer Awareness Month

steep scroll
#

#3EFFA7

wide totem
#

because it looks like a ribbon

wide totem
#

removed all of the differences

steep scroll
#

If you can put it on a background of #70DDFF ok_handbutflipped

wide totem
#

hang on

#

i just had an idea

#

@steep scroll

viral hare
#

make it the same color as visual studio

#

that shade of dark purple

steep scroll
gaunt jacinth
wide totem
#

gimp and colorize

wide totem
wide totem
tribal tinsel
#

hm, what about recolouring pycharm logo? 🤔

#

hm, that's what pycharm's logo looks like under the black square part... 😮

#

decided to play on raster because vector gradients annoy me

tame merlin
#

Could you try a rainbow one?

wide totem
# wide totem

It just dawned on me that I can recolor Firefox dev as well so I can easily tell it apart from nightly lol

limpid fern
#

I'm disappointed in Firefox's, top, text rendering, it looks horrible. Compared with Brave on the bottom. I have played around with some CSS properties but no difference, there are no settings that address this
(Site is Zoe's https://color.koya.io/)

wide totem
#

Who's Zoe

limpid fern
#

A friend I work with

wide totem
#

O

limpid fern
hazy laurel
#

oh yes. black and black

tribal tinsel
#

playing with vectors and just replacing the shapes into rainbows separately would probably be better

wide totem
#

lol

delicate lion
wide totem
#

wow smh

clever salmonBOT
#

Hey @wide totem!

It looks like you tried to attach file type(s) that we do not allow (.ico). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.

Feel free to ask in #community-meta if you think this is a mistake.

wide totem
#

🤔

#

that's interesting lol

#

they preview before upload but don't preview after upload

#

@delicate lion ^

tribal tinsel
#

rainbow pycharm while keeping shape but not original gradients (because I hate vector gradients)

#

also, those "gradients" here are just colours blurred together, I was lazy

wide totem
#

how the fuck can one change the icon on windows

tribal tinsel
wide totem
#

did that

#

when i open it , its still the old icon

#

closed and its okay

#

open and bad

tribal tinsel
#

ah, you mean on the taskbar?

wide totem
#

yeah

#

like

#

its fine when closed

#

and i even restarted explorer

#

and the program itself too

#

vsc insiders fwiw

tribal tinsel
wide totem
tribal tinsel
#

I'm not really customising my windows or anything, so idk .-.

#

omg, since I checked that icon with osu, I decided to open it... I haven't played it in years

wide totem
#

nicky

crude trail
#

changing the shortcut icon also changes the image on taskbar

ember oar
#

How do you change the icon of something?

crude trail
#

I imported the image in GIMP and exported it as .ico
Is there a better way to do it with good resolution? @tribal tinsel

Also if you want to create .ico files I would take all of them ❤️ feel free to DM ^^

crude trail
ember oar
crude trail
#

this is how it looks for me

ember oar
#

I got it

#

but i don't know how to change the logo

#

oh wait i'm so blind

crude trail
#

y it is confusing the first time I know what u mean

tribal tinsel
#

if people have a specific flag on specific icon requests (or, like, different flags on different parts of logos?), I can do them tomorrow

crude trail
tribal tinsel
#

why? Joe has his full name on stuff yet he's way younger than I am

#

also, "real name" is a nice thing to hear 'cause it's not my legal name yet ❤️

ember oar
#

made my own rendition of the pycharm logo

crude trail
ember oar
wide totem
clever salmonBOT
#

Hey @wide totem!

It looks like you tried to attach file type(s) that we do not allow (.ico). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.

Feel free to ask in #community-meta if you think this is a mistake.

wide totem
#

wait wrong vsc

#

except its actually not the vsc logo lol

#

its the vsc insiders logo

#

because the insiders logo is better lmao 😄

#

the gap is very nice

#

horrible when small, great when large

ember oar
#

ugh my ico file isn't appearing

#

in the change icons

tribal tinsel
# crude trail your decision, just wanted to warn you in case it wasnt intentional.

it was intentional because .ico format 😛

and, well, my whole discord history can link me to my name XD
like... my discord account was originally made for SkySaga server (I've never ever changed my username - I was Foxy there, I'll be always Foxy on discord), I worked in their crowdsourced translation project. my profile on the crowdsourcing translation website has the same name and my usual username
if you dig better, you can use that info to get my current legal name (although to get more from it, it would be hard because it's a really common combination)

ember oar
#

i attached an ico file to the folder where the icons are

#

but it won't

#

find it

#

nvm it does

#

but it gets really pixelated

#

dammn it

crude trail
#

Well, you are able to get my name cause I host a website so by law have to have private information in the impressum, but I think thats the only link.
But it is a "cost" thing - if sb wants, they can get private information about me. But the cost is high - so someone might as well get the private information about x other users.

It is like making a website secure - you don't have to make it 100% safe - you just have to make it more save than the competition.
And I am sure someone is screaming at me rn for that sentence.

wide totem
#

*safe

tribal tinsel
# ember oar but it gets really pixelated

because it's not straightforward to bundle several sizes together into one ico, so we have one big... and windows sucks at scaling
I just found that ImageMagick can bundle icos nicely, I'll try that tomorrow

azure palm
#

Do you guys know a lot about windows 10

#

@tribal tinsel ?

#

@wide totem?

#

@crude trail?

wide totem
#

...

#

What are you doing.

#

As in: why ping all of us

azure palm
#

Do you know anything about windows 10

#

@wide totem

jovial island
#

uh yeah why

azure palm
#

Ok I need help

#

@jovial island I can’t open run I can’t use administrator and I can’t open settings

wide totem
#

I understand you might be in a bit of a panic but please refrain from pinging many people uselessly.

azure palm
#

And when it gives me the option would you like this app to make changes to your device the only option is no

#

Sorry

jovial island
#

sounds like organization managed rules to me, is your account administrator?

azure palm
#

How do I check

#

I think it is

jovial island
#

if the only option in the UAC prompt is "no" yours is probably not admin

#

my suggestion: reinstall Windows if you can

azure palm
#

I can’t open settings

#

Also tbis pops up

#

this operation has been cancelled due to restrictions in effect on this computer. please contact your system administrator

tribal tinsel
#

and were you able to open settings before? or you don't know?

azure palm
#

Yea

tribal tinsel
azure palm
#

Yea

#

I didn’t change it

jovial island
#

if it's a computer managed by school or your employer definitely organization rules

azure palm
#

It’s my personal pc

jovial island
#

and only you use it?

azure palm
#

Yea

jovial island
#

have you downloaded anything fishy the past few days?

azure palm
#

Yea

wide totem
#

Uh, what?

azure palm
#

@wide totem wym

wide totem
#

What did you install ;-;

tribal tinsel
#

get usb-bootable linux, scan your windows from there

azure palm
#

I forgot

wide totem
azure palm
#

But I had to disable something to use it

#

But it got locked

#

Idk why

tribal tinsel
azure palm
#

It was in windows security

wide totem
#

Tl;Dr you done fucked up

azure palm
#

How do I fix it

wide totem
#

Imma just come right out and say that

jovial island
#

get other computer, back up data

#

get windows 10 downloader tool, flash USB with windows image

#

boot a CMD with it, run check disk and other image recovery tools

azure palm
#

It’s gonna say do you want this app to make changes to your device I can’t press yes the only option is no

jovial island
#

see if problem fixes itself, if not reinstall Windows from scratch

azure palm
#

How do I reinstall

jovial island
#

get another computer, get a USB flash drive

azure palm
#

Is there another way

jovial island
#

without administrator privileges, no.

azure palm
#

Or should I just give my pc to best buy

#

So they can fix it

jovial island
#

i personally wouldn't do that

tribal tinsel
#

you allowed some shady thing to get into your system and get administrator privileges because you disabled windows security measures put there in place against stuff like that

jovial island
#

yeah that's the gist of it

azure palm
#

Yup

jovial island
#

only way out now is to pull the plug and reinstall

azure palm
#

I’m a dumbass

jovial island
#

without admin privileges you can't modify disks so

#

you can't write a windows iso to a USB drive

#

that's where you need another computer

tribal tinsel
# azure palm So they can fix it

they will tell you that you will need to reinstall system, but only after several hours of trying to do something. if you cannot do the reinstall, they probably could do it

tribal tinsel
wide totem
#

^

jovial island
#

although highly doubtful, malware could intercept writing of a windows install media and inject malware, yes

tribal tinsel
#

change all passwords you had saved anywhere (of course change them from another device) and you may have entered in the last day

wide totem
#

i've fucked up many a OS install.…

azure palm
#

Ok

wide totem
#

lets not go there right now I'm still getting over the last cpu

#

:sad_cpu_noises:

azure palm
#

So if I go on my laptop and go on my pc acc on my laptop and reset the account will it work

tribal tinsel
jovial island
#

i bent the pins on a brand new ryzen 7 cpu once

wide totem
#

lol

azure palm
#

Is 2070 super good

jovial island
#

no, 3080 is super good

wide totem
#

nothing is good for the machine you currently have

jovial island
#

the 2070 is good.

tribal tinsel
#

2077 is shit, they still haven't given us the promised patches

wide totem
jovial island
#

wait are we talking about cyberpunk or graphics cards

tribal tinsel
#

[I know nothing about hardware, so I'm just going with number theme and mentioning a game]

wide totem
tribal tinsel
jovial island
#

don't worry I agree with the sentiment, 2077 is shit.

#

i highly recommend this video if you have time

tribal tinsel
#

found my old message about that broken ram

and one of the further messages sums it up perfectly:
"I have no idea what is inside this. I only run stuff on Vcenter on that machine. Or even not. Idk which machine is that. I'm just here for fun XD"

gray compass
#

A message by @jovial island was deleted that said: ****

jovial island
#

oops

crude trail
# azure palm I’m a dumbass

in the future I would highly suggest to backup your PC regulary.
Perhaps you dont have the buck for it, but I can suggest getting a NAS - you can set it up in a way so it automatically backups every file change (with history - meaning if a virus cryptos your files, you can use an earlier version)

gray compass
#

A message by @jovial island was deleted that said: wait what

jovial island
#

whoa whoa whoa

#

<@&831776746206265384> self bot

gray compass
#

A message by @jovial island was deleted that said: thing thinf

wide totem
#

@gray compass bye

#

@gray compass help

gray compass
#

Crap

#

A message by @wide totem was deleted that said: test

upbeat sandal
#

!mute 822264639022039051

clever salmonBOT
#

:incoming_envelope: :ok_hand: applied mute to @gray compass until 2021-06-06 03:20 (59 minutes and 59 seconds).

wide totem
#

i love that realization lol

upbeat sandal
#

Go back to your regularly scheduled programming 😛

jovial island
#

why thank you very much

tribal tinsel
# jovial island don't worry I agree with the sentiment, 2077 is shit.

the supposed play previews in promo videos are not in the game. they were supposed to fix stuff and give the promised experience by February. they released a small patch in Feb and promised another "part" of it in March. I don't even know if they did it and how it is now - last time I heard, it was still shit for supposed triple A game but would be good for just some game in cyberpunk setting (that price doesn't make it the latter)

jovial island
#

you know a game is shit when stores are trying to get rid of their stocks of it

crude trail
#

1 hour mute for a self bot is rather mild imo

jovial island
#

happened with fallout 76, is currently happening with cyberpunk on last gen consoles

wide totem
#

they got either kicked or banned after the mute

tribal tinsel
upbeat sandal
tribal tinsel
#

ah, no mutual servers already

upbeat sandal
#

So let that be a lesson to you, kiddos

crude trail
#

perhaps mute > deciding what to do/ check evidence > ban

jovial island
#

huh that's weird i still see python as mutual server with the dude.

upbeat sandal
crude trail
jovial island
#

I'm not falling for that one

wide totem
#

damn it

crude trail
#

was about to day - that link looked oddly familiar

jovial island
#

i clicked it and, lo and behold, it was.

wide totem
jovial island
#

i also know that one dude.

wide totem
#

shush

jovial island
#

if you send a rick roll link, delete it and send another people won't fall for the second one

wide totem
#

the first was not a rickroll tho

jovial island
#

sure it wasn't

crude trail
#

I still choose to fall for it. I know it is a rickroll, but the link is blue and glows in a nice way. So I click it. Just like I did with that totally not virus link

jovial island
#

look at my boy, there ain't nothing isopropyl alcohol and time can't fix

#

thermal pads went to shit tho, gonna need new ones

crude trail
jovial island
#

i don't know that one but my gut tells me it's rick

wide totem
#

(this is not a rickroll)

#

promise

#

100% no rickroll

crude trail
#

guess I will pass out in 10 mins then

wide totem
#

ah

#

had i not made it bold it would have previewed properly

crude trail
#

I will complain about my missing AMZN gift card in the meantime

echo fern
wide totem
#

so what language

#

all other languages, this channel 😄

crude trail
limber pollen
#

Promises feel like they were just wacked together

echo fern
#

I like being able to read "the Future is cancelled" in an async manual and giggle, though

crude trail
jovial island
#

i might need to replace this fan :(

echo fern
#

does Node.js still mainly use callbacks for stuff instead of coroutines, or was that changed in recent years?

#

for context on my question,

In the JavaScript world, there is some debate between advocates of simple callbacks and
proponents of various competing higher-level abstractions. Early versions the Node.js
API used Promises—similar to our Futures—but Ryan Dahl decided to standardize on
callbacks only. James Coglan argues this was Node’s biggest missed opportunity.
as Fluent Python (2016) says

crude trail
#

I am currently writing a project in Node, didn't have to do any callbacks so far but maybe I am not deep enough so far

jovial island
crude trail
#

afaik many functions allow the use of callbacks - but if you dont provide a callback, that function is a Promise

wide totem
#

Mmm

#

Typescript and rust seem fun

#

Why learn one language when you can learn 2! + 1

#

All at once too

wide totem
crude trail
#

I am learning JS now and will later jump to TS. If you know JS well, TS shouldnt be much harder

wide totem
#

Nope lol

crude trail
wide totem
#

Just python

wide totem
#

Boo.

crude trail
#

okay, 10 minutes are over I will pass out now

soft quiver
echo fern
#

I tried learning TS a few days ago, but the problem was that I sat with an open editor for 5 minutes and realised that, uhh

#

I don't actually want to do anything in JS?..

soft quiver
#

lol no its not

#

promises dont get better by using ts

#

theyre still just janky js post transpilation

crude trail
#

JS got a lot better with time tho.

wide totem
#

What is promises

jovial island
#

update: putting my baby back together

wide totem
#

And is it possible to not keep promises?

crude trail
wide totem
#

BRB posting on Prosus Overflow

crude trail
wide totem
crude trail
echo fern
#

but consider:

if task not in tasks_to_futures:
    raise KeyError("This task has no future.")
wide totem
#

I await more of these jokes

#

Hm...

#

What does rust do for async shit

echo fern
#

doesn't have builtin (like, in the syntax) stuff for it

#

tokio is the popular async framework

wide totem
#

Oh that sucks

echo fern
#

actually, nevermind, lol

#

it does have async/.await, apparently

#

async lifetimes? that sounds like normal lifetimes but 100x worse, yikes

jovial island
#

pretty clean, repasted, changed thermal pads

#

shouldn't sound like a jet anymore

wide totem
#

Yes if rust did not have it naturally it would have dropped on my good languages instantly

#

(completely subjective list from py point of view)

#

*my

#

Rust is at the top for now due to @limpid fern

#

Do you use rust, @echo fern

#

What languages do you use, and what languages do you know?

echo fern
#

yeah, I can probably say I do at this point

echo fern
wide totem
#

Also please list your subjective favorite languages and for what

#

And please also give a cv and a list of former jobs

#

And name, dob, and ssn

wide totem
#

And what for

crude trail
#

(and if Python isnt on the list we will kick you for being a heretic)

echo fern
#

I guess I can say I truly know Java (that's the language I got taught as roughly my first GPL in high school, so the years of going competitive programming in it better count :/ ), Python, Rust... maybe C# a bit, since I did make a full-ish project in it, if a simple one

#

I tried and loved Kotlin as a replacement for Java, but I haven't really written anything serious in it, only learned some beginner minecraft modding. The problem is that I don't really need to program anything on the JVM, so both of them I don't really have a use for at the moment - but if I go looking into minecraft modding again, I'll be using Kotlin. It's just nice.

#

mostly I used Python and Rust over the last ~6 months, basically

wide totem
#

What are the advantages of rust vs python? Not interpreted vs compiled, I already know the inherent difference there, unless there's a special one

wide totem
#

I've heard of it before

echo fern
wide totem
#

Ah, then what are the differences in coding style?

crude trail
wide totem
#

Like, more than the brackets, but I hear rust is strict typing again?

echo fern
#

they just don't compete with each other, at all. Rust mostly competes with C++, and Python... closest would be JS and Ruby

wide totem
#

Well yeah

#

I would like to know some of the differences because I want to learn a bit of rust at least

echo fern
wide totem
#

At least a bit

echo fern
#

I guess the feature of Rust I long for the most in Python is enums

#

Rust has amazing enums; C++ doesn't have anything as good, say

wide totem
#

Enums? Don't know the entire concept, haven't used them

#

Python has enums I thought

echo fern
#

it's very tied with Rust's match (meaning that we might get something enum-like after 3.10 when match drops!), but basically

#

in Rust, the way you handle several different returns from a function is:

#
fn my_cool_function(<various args...>) -> Result<ResultValue, MyError> 
#

ResultValue is the type the function returns if everything goes well. What's Result and MyError? well...

wide totem
#

Which is literally def - > fn

echo fern
#

basically, Result is a rust enum - a tagged Union. Each instance of Result<A,B> is either an A or a B. This is done, under the hood, by making instances of Result store a value describing what type it is, then the value itself. (this is how all enums in Rust work)

#

And what MyError is? Well, in practice, you'd make it, too, a enum of as many types you like

#

so it'd look kinda like:

#
enum MyError{
    FileNotFoundError(PathBuf),
    InvalidValueError,
    ConnectivityError,
    // I'm lacking in imagination
}
#

now, each of these is a variant of the enum. Two of these are unit-like variants - they don't carry a value, while the first of them has a Path inside (in this example, specifying what path wasn't found)

wide totem
#

But what is the concept of an enum itself?

dusky cliff
#

different variants of the same entity basically

#

enumerations of all the types

echo fern
#

How does this work under the hood? The size of the enum is the size of the tag describing what variant it is (one byte, unless you have more than 256 variants, lol), plus the size of the biggest variant. Here, 2 of the variants are zero-sized and one is the size of a PathBuf, which is 24 bytes. So 25 bytes (but actually ends up 32 for probably alignment purposes)

#

now, the beaty is how these are used. When you call the function, you match on the return value:

#
let res = my_cool_function(<various args...>);
match res{
    ResultValue(r) => {
        // handle successful result
    }
    MyError(e) => {
        // handle error
    }
}
#

how would you handle the error? Well, match on it too, of course:

#
let res = my_cool_function(<various args...>);
match res{
    ResultValue(r) => {
        // handle successful result
    }
    MyError(e) => {
        match e {
            FileNotFoundError(path) => {/*...*/}
            InvalidValueError => {/*...*/}
            ConnectivityError =>  => {/*...*/}
            // Perhaps the other ones aren't expected and so we want to panic when they happen:
            _ => panic!("Got unhandleable error type from function: {}", e)
        }
    }
}
#

In very few other languages can you handle different kinds of results this way. Mostly, if you want to "fail in different ways", your only way is to throw various exceptions.

wide totem
#

wait

#

panic! is the name of the func for raising an error?!

echo fern
#

! is because it's a macro, but yeah. Panics are unhandleable errors, basically, that stop the program

wide totem
#

whut

#

what are macros

echo fern
# echo fern In very few other languages can you handle different kinds of results this way. ...

But then, the caller needs to know (by reading your function's docs, there's no other way in most languages - except Java, where what exceptions a function can throw is part of its very signature) what exceptions your function can throw. What if they forgot to handle some cases? Welp, then once the function throws an exception they didn't expect, it would not get caught and instead crash the program.

#

With enums meanwhile, it's enforced at compile time. When you match on a enum, you must handle all variants (using a wildcard match counts, of course).

echo fern
#

so you get safety. You basically can't mishandle the output of a function.

wide totem
#

not sure why the hell i bmed the first one

echo fern
#

after learning Rust, I want this in every language I use

wide totem
#

also pipes, right?

#

or did i confuse that with f#

echo fern
#

pipes? ah, lol, it might be cool I guess, but I haven't dabbled in functional languages enough

wide totem
#

i confused that with f#

echo fern
#

you already have the good iterator syntax in Rust

wide totem
#

i should read the book before i can read any more of this conversation

echo fern
#
pool = 
    pool
    .iter()
    .map(...)
    .filter(...)
    .collect();
wide totem
#

yep sorry you lost me already lol

echo fern
#

as opposed to pool = [val for val in (map_fun(x) for x in pool) if filter_func(val)] like it'd be in Python

#

and that's listcomps/genexprs, which are nice too

#

with Python's functional programming functions, it'd look like:

#
pool = list(filter(filter_func, map(map_func, pool)))
#

so basically, the cool safe things in Rust is lack of null and exceptions

#

instead, you do everything using enums.

#

Want to represent a value that may not actually be present? In Java, it'd be a "normal" value that just can be null. In Rust, it'd be an Option<T> - which is a builtin enum that's either Some(T) or None. In Java, if you forget to check for null, you'll get a NullPointerException. In Rust, you just can't forget - you can't use an Option<T> as a T without unwrapping it first.

#

Kotlin actually has good enough enums (well, "sealed classes") to allow using them like Rust enums

#

which is pretty awesome, even though unlike Rust it's if-you-want-to and not the normal way of doing things (which would be exceptions)

#

Kotlin also has nullable types - it has T and T? (like, say, Int and Int?) - the difference is that T is guaranteed to not be null. This is way better than Java, where anything can be null and you have to live in fear of it.

dusky cliff
#

what about java's enums

echo fern
#

they are like Python enums, I believe, basically a class with a bunch of predefined constant instances

#

I don't think Java has an alternative to Kotlin's sealed classes

#

the reason you need sealed classes (a sealed class is a class for which all subclasses are known at compile time, basically) for this is so you can match on a sealed class and be sure, at compile time, that you handled all cases

#

well, it's called when in Kotlin instead of match, but same thing

dusky cliff
#

there's so much stuff in java 10+ i have no idea about

echo fern
#

yeah, same

wide totem
#

why can't we just have one language and all just use that?

#

rather than have languages which literally can compile into javascript

echo fern
#

lol

#

admittedly, having actually good languages that compile into JS is a decent solution

wide totem
#

like ts

#

what can you make in js btw?

echo fern
#

like, it should just die at this point, but it's not going to happen, so compiling to JS it is

wide totem
#

just website stuff?

echo fern
wide totem
#

no like what is js used for?!

echo fern
#

like, node.js exists to run general/backend stuff without browsers being related

#

but that always seemed like a nightmare to me

wide totem
#

ah yes

#

writing discord bots in javascript

#

WHY THE FUCK

#

it sounds like pain

echo fern
#

I feel like the main reason node.js exists is because the JS ecosystem had so many libraries, that it was easier for people to start running JS serverside too (to allow using such libraries on the server as well) than use, well, literally anything else

#

well, at least JS isn't that slow. Faster than Python, at least after V8

wide totem
#

delete it

#

get a node.js binary into all of the antivirus engines in the world

wide totem
#

I think it can*

dusky cliff
wide totem
#

ew

#

ew

#

ew

#

no

dusky cliff
#

lol

echo fern
#

good luck compiling arbitrary Python into JS, with Python's reliance on libraries 😛

tranquil ridge
dusky cliff
#

hm

meager lava
#

Why r u using canary

median blade
#

DDR5 RAM 12.5 GHz unveiled

meager lava
#

Imma post my cat pics ig

wide totem
meager lava
tranquil ridge
#

do cats always laze around

#

or are their pics only of them lazing around

meager lava
tranquil ridge
meager lava
#

Haha the grey cat’s body is behind the white’s

tranquil ridge
#

a

#

looks like the grey one is coming out of the white one

meager lava
wheat ivy
#

Hey anybody's up?

tranquil ridge
#

yes

rich cargo
tranquil ridge
#

o

quiet depot
#

coding in feline waves

lucid osprey
#

👋 ​

#

👋

#

I love zero width spaces!

odd sphinx
#

guys

#

what are some things i can do with windows task scheduler

#

i want to use it but idk what ill use it for

tall temple
#

I use it to start automation scripts on start up

#

You could use it to run a python scheduler, if it runs a specific script every minute, that script could compare the time against a json and act accordingly

odd sphinx
#

intersting

#

though for startup i just use shell:startup

tall temple
#

I mean if you're bored, and wanna use talk scheduler to alleviate that...

odd sphinx
#

yes

#

problem is i dont have any automation scripts

#

i only have one authotkey script that runs on startup but its the shell:startup folder

tall temple
#

Using task scheduler as an engine,
And various text, binary and/or json files for data, variables, memory, etc...
Make a brainfuck interpreter that executes an instruction every 10 seconds

odd sphinx
#

bruh

#

lol

tall temple
#

Writing output to a target file, optionally taking input from a specified file, etc..

ancient whale
#

are graphics possible with brainfuck

tall temple
#

Ascii graphics

ancient whale
#

so no?

#

what does it compile into?

tall temple
#

Due to ANSI escape sequences, technically yes

#

It's just really low quality

#

And takes a long time to parse

#

Alternatively, you could write to pixels instead of terminal

#

In which case, yes.

ancient whale
#

with modern gpus?

tall temple
#

So redirect output to something that parses bytes into pixel graphics

tall temple
ancient whale
#

but you're more or less just drawing with it vs actually writing to pixels

#

it compiles to binary tho right?

tall temple
#

It could

echo fern
#

what does? brainfuck is a language specification, like Python, not a specific implementation like CPython

tall temple
#

Actually

echo fern
#

it should be pretty easy to make a brainfuck compiler though

#

like, you can just compile it to C and then compile that

tall temple
#

It's interpreted not compiled...

#

But then is it still brainfuck?

echo fern
#

is Python still Python if it's compiled? 😛

ancient whale
odd sphinx
#

ikr

tall temple
#

Challenge: make an uncompiler to brainfuck

ancient whale
#

challenge denied because I value what little sanity I have left

tall temple
#

I have no sanity remaining

ancient whale
#

whaaa

tall temple
#

You don't need it

echo fern
#

hmm

tall temple
#

Sanity is a lie

#

To keep the population lazy

echo fern
#

how big are brainfuck programs for hello world, say?

tall temple
#

I generated one

echo fern
#

yeah, I'm wondering too if you can, say, genetic-algorithm your way into brainfuck

tall temple
#
++++++++++[>+++>+++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>++.-->>+.+++++++..-------->+.-<<<<++.-->>+++++++.------->>+.+++.----<++++++++.--------.<<<+++.
Comments lol
odd sphinx
#

yes that makes it much better

#

thank u for showing it to us with syntax highlighting

echo fern
#

why

#

the hell is it highlighed like this

tall temple
#

Lmao i accidentally typed py instead of bf

odd sphinx
#

lol

echo fern
#

why are the first two plusses not highlighted

#

this is cursed as hell

tall temple
#

Idk it's a bit dinky

echo fern
#

highlight.js needs some PRs

ancient whale
#

discord needs some PRs in general

tall temple
#

That is hello world

ancient whale
#

can I talk about how clean + beautiful betterdiscord is for a sec or is that an insta ban

tall temple
#

Insta ban

jovial island
echo fern
#

it does mention breaking tos though

jovial island
#

Yeah; this is more-or-less pedantry

jovial island
#

Oh, yeah

delicate violet
#

who else was listening to lil loaded

grim seal
#

yooooooooo

#

hello all

odd sphinx
#

hi jod

hazy laurel
#

Howdy

odd sphinx
#

joe*

grim seal
#

my pings work

odd sphinx
#

yes

grim seal
hazy laurel
#

Your pings work?

grim seal
#

was anyone here while i was trying to diagnose why my /48 couldn't receive pings

odd sphinx
#

thise are some nice pings

grim seal
#

2a0f:85c1:23:: could receive pings, but not 2a0f:85c1:23::1

odd sphinx
#

those*

grim seal
#

and the reason was

#

I was running sudo ip -6 addr add local 2a0f:85c1:23::/48 dev ens3

#

when i should be running sudo ip -6 route add local 2a0f:85c1:23::/48 dev ens3

#

addr only added the gateway IP to the routing table, route, obviously, added the whole subnet to the ens3 device

#

http://[2a0f:85c1:23:1234:5678:9abc:def0:1234]/

#

yeeeeehawwww

tranquil ridge
sinful sun
#

Bro

#

Can you not post a word per line

split sluice
trail nymph
#

you know you can put more than one word per message right?

sinful sun
#

Are you trying to bypass the voice channel check?

split sluice
#

is

#

that

#

?

sinful sun
#

Stop then

split sluice
#

OK

elfin vine
#

Can you make recurring types?

hazy laurel
#

look at their messages

neat light
#

!tvban 849318515298140192 14d Spamming messages to try and get past voice verification- don't do that.

clever salmonBOT
#

:incoming_envelope: :ok_hand: applied voice ban to @split sluice until 2021-06-20 15:04 (13 days and 23 hours).

tranquil ridge
#

tv ban

#

sounds like mom

split sluice
#

why

hazy laurel
#

temporary voice ban

#

I think

split sluice
#

pain

sinful sun
#

Because youre being obnoxious

split sluice
#

i wanted to ask a question in vc

neat light
elfin vine
#

Like: ```py
Dict[
str, Union[
str, Dict[
str, Union[
str, Dict[
str, Union[
str, Dict[
str, # I want to recurr once more
]
]
]
]
]
]
]

Basically my type is a dict with keys being a string, but the value can either be a string or a similar dict
#

Lmao

round moss
#

pyright supports this with

MyDict = Dict[str, Union[str, "MyDict"]]
```but mypy does not
hazy laurel
#

um... Why would you want it to recur like that?

round moss
#

it probably represents a tree of sorts

hazy laurel
#

I see

elfin vine
#
di = {
    'a': 'b',  # Dict[str, str]
    'c': {  # Dict[str, Dict[str, Union[str, Dict[str, str]]]]
        'd': 'e',  # Dict[str, Dict[str, str]]
        'f': {  # Dict[str, Dict[str, Dict[str, str]]]
            'g': 'h',
        },
        # Continue until unknown length
    },
}
# di final type:
dictionary: Dict[str, Union[str, Dict[str, Union[str, Dict[str, str]]]]] = di
hazy laurel
#

psst syntax highlighting

viral hare
#

type hints with any

#

easy fix although defeats the purpose of type hinting

round moss
#

with mypy, you have to use any here

#

since it doesn't support recursive types

elfin vine
#

Yeah that's what I sadly have done so far Dict[str, Union[str, Dict[str, Any]]]

viral hare
#

like i just feel if ur gonna use any u might as well not type hint

round moss
#

it is an escape hatch in cases where the type system is too weak

#

most programming languages have such a thing

wide totem
elfin vine
viral hare
#

like thats not really helping other ppl by telling ur returning any

elfin vine
#

Oh yeah that's true

viral hare
#

unless ur trying to pass lint where u must provide type hint

round moss
#

but yeah, if you run into any a lot, it may be time to switch type checker or just not use type hints

#
Dict[str, Union[str, Dict[str, Any]]]
```in this case it is somewhat useful
wide totem
#

It also works for stuff that can literally take any, do stuff to it, and return the new any

round moss
#

especially since you can just comment that it is a recursive type

elfin vine
#

I can just add in my function doc-string that Any is where the type recurs

elfin vine
viral hare
#

im saying where u just return any

#

like -> Any

round moss
#

yeah, that is mostly useless

grim seal
odd sphinx
#

thats asn is valid 💯 😩

grim seal
#

lmfao

#

@wide totem cloudflare resolved the internal IP in firewall thing

wide totem
#

damn :/

grim seal
#

yep

#

for the firewall at least

#

public sites unchanged

wide totem
#

wdym

grim seal
#

well, if you tripped a firewall event using warp it used to display the internal IP of the warp PoP

wide totem
#

yeah

grim seal
#

now it displays the legit IP in the firewall

wide totem
#

darn

grim seal
#

lol

#

i mean

#

if you want a VPN for that, use a real VPN

wide totem
#

but sites are still given the public ip anyways, right?

grim seal
#

Cloudflare WARP is intended to protect your data in transit

#

yeah

wide totem
grim seal
#

yeah

#

Cloudflare WARP won't hide your public IP from the end site

#

it just hides the SNI and other sensitive protocol items between you and Cloudflare, which protects against invasive ISPs or other MITMs between you and CF

wide totem
#

pardon the caps, accident

grim seal
#

there isn't anything they can change to inject that in there

hot pulsar
#

@vital bramble i dont want to shit up your help channel w/ this, but just wondering what you plan to do? what good is reading only? sounds interesting

#

stuff like blitz just uses post game data not immediate data. i can think of maybe like, for streaming? if you kill someone it could notice and pop something on a stream up?

vital bramble
#

I would like to get live CS in Stream Deck

hot pulsar
#

ah yea streaming. fair enough!

vital bramble
#

currently building the StreamDeck plugin but i can't get live CS very well so i asked Riot if i am allow to they said yes

hot pulsar
#

sounds like a cool project

vital bramble
#

but idk how to memory reading or get the address so i can thats why i am trying to ask for help xD

hot pulsar
#

ya idk anything about how to do that haha

wide totem
#

wut

#

if you're using wsl, use wsl --shutdown in pwsh or cmd to close it when you're done

wide totem
#

@reef kayak

reef kayak
#

hello

wide totem
#

wtf

#

are these random characters

#

they have nothing in them

#

i'm tempted to just delete them and hope for the best

reef kayak
#

It costs $99 to buy Sublime? Damn

wide totem
#

just exported the registry

#

now to delete these 4 keys

#

why did i export the entire registry

#

just the branch

#

ok so far nothing has happened

reef kayak
#

so far

wide totem
#

yes

#

those keys felt like some malicious program imo

reef kayak
#

they did look sketch

wide totem
#

yeah

#

felt like tracking or some shit

wide totem
#

at the bottom of HKEY_CLASSES_ROOT as well

reef kayak
#

hmm

#

if you are worried about those keys, would deleting them really solve everything?

wide totem
#

its fine everyone gets hacked at least once

wide totem
#

BRUH WTF

#

these ones have stuff in them

#

what yhe fuck

#
[HKEY_CURRENT_USER\㡀ǽ]

[HKEY_CURRENT_USER\妐㐔ʋ]

[HKEY_CURRENT_USER\庐봪Ǖ]

[HKEY_CURRENT_USER\蠰版ǰ]

[HKEY_CURRENT_USER\⢆ǝ]
#

those are them in the current_user

#

sigh

#

lemme just

#

tl;dr fuck windows

#
[HKEY_CLASSES_ROOT\䐻ᾡᤀ老]
@=".ahk2_auto_file"

[HKEY_CLASSES_ROOT\眣븅ἀ耀ܐ]
@=".7z_auto_file"

[HKEY_CLASSES_ROOT\隭ű]
@=".vwx_auto_file"

[HKEY_CLASSES_ROOT\ꧠឺȿ]
@=".ahk2_auto_file"

round moss
#

that looks like some malicious program tbh

#

actually no, that is some weird thing

wide totem
#

its the stupid autofile stuff

#

either way, they can recreate those keys if they want them

#

but its typically the text encoding lol

wide totem
#

i-

#
aru@pc:/home/aru $ python3 -m pip  
/usr/bin/python3: No module named pip
compact dagger
#

Did you ever run/install autohotkey on your computer?

wide totem
#

yeah lol

compact dagger
#

Its likely just that

wide totem
#

those weren't there recently tho which is funny

#

i installed it months ago

hoary basalt
#

🤔

#
function Function = new Function(fctn)
junior drum
#

Does anyone know why discord sometimes randomly doesn't let you select things for a while?

#

It hasn't happened before but now just randomly keeps happening

steel eagle
#

Discord is a piece of crap on the front end.

languid osprey
#

Haha, backend too :P

#

Fucking cache issues

steel eagle
#

The back end guys are real awesome, serious pros. The front end guys are crayon eating highschool java class dropouts

#

Consider what discord is and how many users it has, and their seemless updates

#

Cache issues are going to happen

languid osprey
#

Haha, I guess

steel eagle
#

The fact that discord works at all, let alone how good it does (on the server side) is nothing short of miraculous

languid osprey
#

That's fair

woven hornet
#

if i want to equate
points = [1, 2, 3, 4, 10, 23, 43]
letters = [A, C, E, F, G, J, L]
A = 1
C = 2
E = 3 ...
can i equate the two arrays?

jovial island
#

yes we know
len('what') = 4
len('sometimes') = 9
len('never') = 5

dusky cliff
#

setting variables?

woven hornet
#

lets say i have the word ACE
it would be 1 + 2 + 3 points

dusky cliff
#

ah i see

#

its better if you make a dict instead

#

and use that dict to calculate the scores

#

are you familiar with dicts?

woven hornet
#

yeah

dusky cliff
#

so a dict like:

points_by_letters = {
  'A': 1,
  'C': 2,
  'E': 3,
  ...
}
#

then you loop over your word, find the points corresponding to that character from the dict, and add it to the sum

round moss
#

@woven hornet look into zip

woven hornet
#

ok thanks

woven hornet
#

how do i convert a string to integer in c?

#
{
    string s = "22";
    int x = atoi(s);
    printf("%i", x);
}```
#

this isn't allowed?

jovial island
#

i heard atoi is a bad guy

#

you can do
Integer.parseInt(whatever)

#

oh wait thats c

echo fern
jovial island
#

my bad

jovial island
keen burrow
#

Imagine namespaces in C

jovial island
#

kinda character array lol

echo fern
jovial island
echo fern
#

yeah, I too am surprised by this

woven hornet
jovial island
#

oh yes how string

woven hornet
#

they have the ide cs50 library

urban viper
#

typedef string char* lemon_fingerguns nvm that's not allowed lul

echo fern
#

yeah, string doesn't seem to exist, is that a user-#defined alias for char* or something

urban viper
#

atoi should work though, or maybe strtol as well

echo fern
#

can always write your own atoi 😉

odd sphinx
#

a toi

#

sounds french

hazy laurel
#

sounds like "a toy"

odd sphinx
#

a tua

shrewd lance
#

ascii to integer

#

I still resent C's function names

#

Which part of strpbrk means search

echo fern
#

they are named as if the developers code exclusively in notepad and so can't rely on stuff like autocompetion... oh wait 😔

shrewd lance
#

I understand it's legacy names from the time when you'd want them shorter, but like... bruh

#

Prove to me pbrk isn't just a random assortment of letters

urban viper
#

substr? Nah, strstr is where it's at

odd sphinx
#

wtf are these names

shrewd lance
#

Apparently it stands for string pointer break

#

But like

odd sphinx
#

bruh

shrewd lance
#

No

odd sphinx
#

lmao

#

i was pretty close

#

does that mean i am a pro c programmer

hazy laurel
#

no

odd sphinx
#

ok

dusky cliff
#

no

odd sphinx
#

😔

round moss
#

strtol is generally the best way

shut token
#

Anyone interested in this repo?

jovial island
#

anyone know a good program to add transparent background to image

#

I want to specify it myself and not auto transparently

#

pls ping

echo fern
#

..gimp?

jovial island
#

uhhh

#

I guess

wide totem
#

I make all of my pfps in gimp lol

wide totem
#

how do you literally get more workers by asking cf

grim seal
#

because cloudflare is a fantastic company

#

and we're a fairly large non-profit entity

wide totem
#

other people have to pay

grim seal
#

yes

wide totem
#

oh, you are actually registered as a non-profit?

grim seal
#

companies & individuals have to pay

#

not yet

#

not-for-profit is the better term

wide totem
grim seal
#

nope

#

we can do it at any point

wide totem
#

how

grim seal
#

it's just not top of our priorities right now

#

you don't need to be 18 for a company registration

#

I've got a company registration

#

i think i can use it to get cool usernames actually lol

wide totem
#

on like what?

grim seal
#

well

#

i have a trademark on it

#

so any platform that respects trademark law

#

twitter, github, domain names, etc.

wide totem
#

ah

wet mountain
round moss
#

yup

wet mountain
#

oh dear

dusky cliff
#

oh god

#

i would say it looks like a 2001 webpage but i wasn't born then

daring jay
#

Notice: While Javascript is not essential for this website, your interaction with the content will be limited. Please turn Javascript on for the full experience.
😕 I have JS on

dusky cliff
#

don't we all

lucid osprey
#

what happened?

#

yearly tradition to make website look cringe? 😂

dusky cliff
lucid osprey
#

yeet

dusky cliff
#

ankit go to slep

wide totem
dusky cliff
#

hmm

round moss
#

last I tried the experimental branch had so many breaking changes you literally could not use it since it was not documented, macros were half depracated with no resources on what is not depracating and I got the compiler to segfault, so not the best look. I did use the language to learn openGL though.@lone ferry

lone ferry
#

fair. I'm using it to learn it as my first compiled language.

#

I'm not good with the advanced concepts it allows so it's hard for me to break it

round moss
#

I loved the bitsets

#

but bitsets are not enough to make up for just being kind of meh overall

#

can you finally typecheck ranges?

#

or is that still a WIP

#

also, does func actually enforce purity?

lone ferry
#

lol you already lost me. I'm that new. I just know that I liked the idea of it being close enough to python to be able to write code

round moss
#

yeah, for that it is nice

#

but once I started running into issues with the compiler itself, I gave up on it

lone ferry
#

Yeah fair. Not much you can do about that.

round moss
#

also y'know, the whole not having libraries

wide totem
#

@round moss which language?

round moss
#

nim

wide totem
#

holy shit i can't type today

lone ferry
#

I do like it well enough to hope it will continue to grow tho. I'd like to see it get bigger and more popular

wide totem
#

i sent just someone this "unrelated why the hell do British youtubers are be better?"

#

i cannot type rgith nwot

round moss
#

yeah, it would be nice to have nim as a viable option for anything but financial systems

lone ferry
wide totem
#

qwerty

lone ferry
#

I was working on a tetris engine, and the one I wrote for python was struggling for speed because the simulations took too long to do their checks right

round moss
#

yeah, for personal projects, it is nice due to the pleasant syntax

lone ferry
#

I was only able to reach a depth of 2 😢

round moss
#

but for larger projects, is it ever better than C#

#

or even DLang

lone ferry
#

Haven't used those, I only have experience in python, nim, and technically lua. Also what would you consider large?

round moss
#

weeks of work with multiple people

#

the point where you stop caring about how nice the syntax is and start caring about having libraries and resources to fix problems that will always pop up

lone ferry
#

I have no friends that like programming 😢

#

My projects never reach that point in size

round moss
#

like yes, I love apl syntax and totally will use APL to write some things in the future

#

but I am not going to use it for anything that I need to actually have finished

#

same with raku and pony

#

languages matter less than ecosystems

#

which is why I like java

lone ferry
#

God I wish I had reasons to do bigger projects. I just keep doing small personal ones

round moss
#

that's fine

#

large projects are not fun

wide totem
round moss
#

really good

#

rust is good enough that people actually want to create good libraries for it, and general purpose that everyone can find one to make

daring jay
#

How's the Rust ecosystem in comparison to Python's?

wide totem
#

without looking into it

#

i would say that python probably has more

#

literally because rust is 5 years old and python is older than that

hot pulsar
#

5 years?

daring jay
#

5-6 years since the first stable release

daring jay
daring jay
#

Like, how enthusiastic people are about it

wide totem
#

<@&831776746206265384> .exe

#

And it's gone.

#

Not sure if @tribal cape deleted it or if staff did

#

OK that makes its obvious

steel eagle
#

Rust is a wonderful language

#

I've all be ceased using C/C++ for most things because of it

#

I'm still way worse at rust than C/C++ but

round moss
#

the real big thing rust gives you is safe concurrent programming

#

which helps a lot with pretty much the hardest problem in software development

#

yeah, python has more ecosystem than rust

wide totem
#

Explain

#

Do you mean real threading?

round moss
#

yeah, threading, and even async

#

there are lot of things that can go wrong once you start using threads

#

and most IRL applications do use threads

#

data races and deadlocks are often the issues and rust eliminates them

#

it still doesn't avoid race conditions, since those are based on the halting problem, but it makes it a lot, and I mean a lot, easier

#

rust was designed from the ground up to be good at handling threads