#ot1-perplexing-regexing

1 messages · Page 565 of 1

near bolt
#

if i dont do it, it has errors

acoustic moss
#

you could do for (int i = 0... in the loop and it'd work fine here

#

what is the function supposed to return

near bolt
#

of the toSearch value

near bolt
verbal glen
#

just out of curiosity that's java right?

acoustic moss
#

ye

near bolt
#

wait

#

i found my mistake

#

i forgot to add int in front of i

acoustic moss
near bolt
#

yeah

#

i realise

verbal glen
#

why do Java and C# look the same

near bolt
#

is there a more efficient way to do it

#

like directly print i

edgy crest
latent scaffold
#

I think C# was the successor to J#

acoustic moss
#

you could directly return i; inside the loop if (arr[i] == toSearch)

latent scaffold
#

and J# had to die because Sun didn't like that Microsoft did that

acoustic moss
#

instead of making the b variable

latent scaffold
#

so lawsuit and bam

#

C#

acoustic moss
#

and simply return null; outside the loop

#

because if the loop ends without returning it necessarily means that the thing wasn't found in the array

near bolt
#
public class search {
    static Integer linearSearch(int arr[], int toSearch) {
        int size = arr.length;
        for (int i = 0; i < size; i = i+1) {
            if (arr[i] == toSearch) {
                return i;
            }
        }
        return null;
    }
#

like this

acoustic moss
#

ye exactly

misty tendon
#

As I said in #ot0-psvm’s-eternal-disapproval , I own a synthesizer and is trying to follow the footsteps of music to be like Jean Micheal Jarre, but sadly i lost interest right after buying it. I am looking for motivation atm:

last mantle
#

O

rough sapphire
#

!e

print(input("Write some trash"))
royal lakeBOT
#

@rough sapphire :x: Your eval job has completed with return code 1.

001 | Write some trashTraceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
rough sapphire
#

!e

print("oh shi..")
royal lakeBOT
#

@rough sapphire :white_check_mark: Your eval job has completed with return code 0.

oh shi..
rough sapphire
#

!e

print("Writing PHP code is the worst torture")
royal lakeBOT
#

@rough sapphire :white_check_mark: Your eval job has completed with return code 0.

Writing PHP code is the worst torture
mellow spire
#

@topaz aurora Do you still use NixOS? Wanted to test something out

topaz aurora
mellow spire
misty tendon
#

@mellow spire You need someone with NixOS? I can install it

mellow spire
#

would be awesome 😄

misty tendon
#

it will be installed by then

rancid yacht
#

who pinged me here

#

oh lel

#

it was a response from like 2-3 months ago

rough sapphire
#

.topic

median domeBOT
#
**What websites do you use daily to keep yourself up to date with the industry?**

Suggest more topics here!

rough sapphire
#

mcdonalds

#

And Wingnuggets

#

pog

solid pollen
#

wat

plush oyster
#

.help

median domeBOT
#
Command Help

AdventOfCode
.adventofcode
All of the Advent of Code commands.

AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.

AvatarModify
.8bitify
Pixelates your avatar and changes the palette to an 8bit one.
.avatar_modify
Groups all of the pfp modifying commands to allow a single concurrency limit.
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
.mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
.spookyavatar [member]
Spookify an user's avatar.

plush oyster
#

.invite

rough sapphire
#

.catify

median domeBOT
#
Out of the question.

Your display name is too long to be catified! Please change it to be under 26 characters.

rough sapphire
#

Cat liker

covert hound
#

I use vim btw

inland wolf
#

i use windows btw

plucky robin
#

!e
print('')

royal lakeBOT
#

@plucky robin :warning: Your eval job has completed with return code 0.

[No output]
plucky robin
#

.catify

median domeBOT
#

Your catified nickname is: devcd | ᓇᘏᗢ

opaque bronze
#

.catify

median domeBOT
#

Your catified nickname is: 𝙲𝚊𝚙𝚒𝚝𝚊𝚒𝚗𝚎 𝚁𝚎𝙻𝚄 | 🐈

brazen ingot
#

.catify

median domeBOT
#

Your catified nickname is: Bibliopole | ᓂᘏᗢ

brazen ingot
#

noooo

#

.uncatify

rough sapphire
#

.uncatify

#

no

#

How expensive do you think therapy is?

crisp helm
#

.catify

median domeBOT
#

Your catified nickname is: waterfalls | ᓂᘏᗢ

thin swallow
#

.catify

median domeBOT
#

Your catified nickname is: Delta-V PINGME | ᕦᘏᗢ

thin swallow
#

.catify

#

catify

#

.catify

median domeBOT
#

Your catified nickname is: Delta-V PINGME | ᕦᘏᗢ | ᕂᘏᗢ

brazen ingot
#

@solid pollen Nice name, it would take time to ping you from now on pensivebounce

solid pollen
#

haha

brazen ingot
#

fastest response ever

solid pollen
#

Blame @misty dew

brazen ingot
#

how come?

misty dew
#
print("".join(__import__("random").choice("aaaaakrys") for _ in range(32)))
#

that's why

brazen ingot
#

oof esotericcc lattkkeeeecrszy

misty dew
#

lol

#

it's not that esoteric

#

just the one line import

brazen ingot
#

oof

#

well, what is the link doing in your status?

misty dew
#

oh that's a website I made

brazen ingot
#

haha, sounds nice!

#

Is that hosted on linode?

misty dew
#

no, heroku

brazen ingot
#

noice

#

How many members are even using that service?

#

Did you maked that UI?

#

Looks cool, nice photos

misty dew
misty dew
brazen ingot
misty dew
#

ikr

brazen ingot
#

and you too

misty dew
#

thanks

brazen ingot
brazen ingot
misty dew
#

thank you! I'm in discussion with some people right now to try and get it out to the eduction market

brazen ingot
#

haha, sounds gg

#

@misty dew What's that purple button in the web bottom left corner?

misty dew
#

oh that's arc

#

you can click on it to see a blurb

brazen ingot
#

oh, lemme see wait a sec

#

Oh monitize your site witout any ads right?

misty dew
#

yep

#

I will put in more ads later tho

#

I just entered it in a competition and i want it to be as good as possible

brazen ingot
#

Yeah.

misty dew
#

so not a lot of ads rn

brazen ingot
#

Well, it will be great!

misty dew
#

I hope so 😄

solemn leaf
#

@crisp helm sustf

rich moon
#

which one is the imposter

#

oreo or oreo_fall

plucky grotto
#

aaaaaaaaaaaaaaaaaaaa, my folders are full of this garbage

#

linux was a mistake

solid pollen
#

Wow, that's a cool looking website @misty dew ! Did you made the vector art on the front page or they are stock images?

inland wolf
#

is this stock?

royal sundial
#

uh

#

i got an mac

last mantle
#

Sad

spice flame
#

unless its for work thats a bad idea

misty dew
solid pollen
#

ooh thanks!

vapid nymph
#

okay what is that badge that @bleak lintel has

#

he got all of them smh

bleak lintel
vapid nymph
#

im not clicking that

bleak lintel
#

lol

#

i mean

#

your call

#

otherwise just go to https://blog.discord.com/ and find the most recent post

Discord Blog

Discord is the easiest way to talk over voice, video, and text. Talk, hang out, and create a place to belong with your friends and communities.

vapid nymph
#

its a link from you, why would I click it 👀

#

@bleak lintel sorry I might be a bit Na because my Chem teacher Rick rolled me

harsh tundra
bleak lintel
#

ty nicky 🙂

vapid nymph
rough sapphire
last mantle
eternal wing
acoustic moss
#

what if i'm a moderator at a server with 1 person (me) and 5 bots

#

hypothetically, of course

#

of course

inland wolf
#

lol

eternal wing
#

Lolol, I do not think you will be accepted Sadge

vapid nymph
#

Wow, you were lol

#

nice

edgy crest
#

tfw i have rarely seen fisher moderate though

vapid nymph
#

Uh oh

twin charm
#

nvm

vapid nymph
#

What role was that

edgy crest
#

ah nevermind

twin charm
#

unpingable role

edgy crest
#

search from: fisher !ban theres a lot

twin charm
#

<&id> right?

vapid nymph
twin charm
#

aa

vapid nymph
twin charm
#

<@&787816728474288181> Yo whens the code jam?

vapid nymph
#

But I do think the events category is wonky...

edgy crest
#

shouldnt python-events go in the events category

vapid nymph
# vapid nymph But I do think the events category is wonky...

It moves up and down in the channel list, disappearing and reappearing when there are active events or not active events.

Sometimes there's events that it doesn't disappear during, and other times events are over for days but still higher in the channel list and the events category is still no where to be seen.

#

It's very interesting and doesn't seem to make much sense.

eternal wing
inland wolf
#

are all mods here verified mods now?

#

hmm no

last mantle
#

Sadge

mellow spire
#

Vco, fisher and joe just as far as I know

inland wolf
#

yo edge stable has math solver now

#

@latent scaffold rejoice

#

for ur math equations will now be solved

latent scaffold
#

oh yes I just read a single message up

inland wolf
#

yes

latent scaffold
#

We've had that in dev for a while

solemn surge
#

@🥀veyren.#8833

mild abyss
#

thats why

mild abyss
#

👀

inland wolf
#

yes

latent scaffold
#

lol tbh I could never find the math solver

#

I've probably gotta update actually

#

haven't done sudo zypper dup in a few days

last mantle
#

ok

mild abyss
latent scaffold
#

wot

mild abyss
#

dupe yaself

last mantle
#

hi foxxy

mild abyss
#

hi guys

latent scaffold
#

I don't get it

last mantle
#

i learnt julia

mild abyss
#

nice

mild abyss
last mantle
#

which

mild abyss
#

julia

last mantle
#

hoomans?

latent scaffold
#

no robots

mild abyss
last mantle
#

ok

#

yeah

#

ik

#

i was in it

mild abyss
#

oh cool

#

going back to sleep

#

goodnight

last mantle
#

gn

wraith hound
#

You,,,,,,, can,,,,,,, never,,,,,, have,,,,,, too,,,,,,, many,,,,,, commas,,,,,,,

twin charm
#

ok,

brazen ingot
#

lol,,,,,,,,,,,,,,,,

twin charm
#

!e

print(",".join("can't have too many commas".split()))
royal lakeBOT
#

@twin charm :white_check_mark: Your eval job has completed with return code 0.

can't,have,too,many,commas
wraith hound
#

!e

x = ","*random.randint(1,10)
print(x.join("can't have too many commas".split()))
#

Oof

#

I did that wrong

twin charm
#

!e

from random import randint
print(","*random.randint(1,10).join("can't have too many commas".split()))
royal lakeBOT
#

@twin charm :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | NameError: name 'random' is not defined
twin charm
#

srslly?

wraith hound
#

!e

import random

x = ","*random.randint(1,10)
print(x.join("can't have too many commas".split()))
royal lakeBOT
#

@wraith hound :white_check_mark: Your eval job has completed with return code 0.

can't,,,,,have,,,,,too,,,,,many,,,,,commas
twin charm
#

!e

from random import randint
print(","*randint(1,10).join("can't have too many commas".split()))
royal lakeBOT
#

@twin charm :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | AttributeError: 'int' object has no attribute 'join'
brazen ingot
#

lol

inland wolf
#

alright

brazen ingot
#

!e ```py
print(",,,,".join(import("random").choice("biblliiiople") for _ in range(16)))

rough sapphire
#

ok

royal lakeBOT
#

@brazen ingot :white_check_mark: Your eval job has completed with return code 0.

l,,,,b,,,,l,,,,l,,,,i,,,,i,,,,i,,,,i,,,,b,,,,i,,,,b,,,,o,,,,i,,,,i,,,,i,,,,b
rough sapphire
#

lol

twin charm
#

!e

from random import randint
print((","*randint(1,10)).join("can't have too many commas".split()))
royal lakeBOT
#

@twin charm :white_check_mark: Your eval job has completed with return code 0.

can't,,,,,,have,,,,,,too,,,,,,many,,,,,,commas
brazen ingot
#

!e ```py
print(",".join(import("random").choice("can't have too many commas") for _ in range(16)))

royal lakeBOT
#

@brazen ingot :white_check_mark: Your eval job has completed with return code 0.

t,c,a,h,v,n,n,h,y, , ,a,o, , ,o
rough sapphire
#

lol

latent scaffold
#

uh

rough sapphire
latent scaffold
graceful basin
#

it will not roll the randint once per separator

latent scaffold
#

oh, I see

clear plume
#

Two of my OT names in two days

#

Wow

rough sapphire
#

ok cookie

brazen ingot
#

who said cookie?

tardy rain
#

That person is a bot

twin charm
#

wait what

rough sapphire
twin charm
#

who are you even referring to?

twin charm
rough sapphire
#

?

twin charm
#

?help

tardy rain
#

Not gonna say names in case skynet is watching

twin charm
#

I'm gonna pretend that I got the joke.

tardy rain
#

Haha yes

rough sapphire
#

ok anti boomeru

twin charm
#

skynet is a sentient AI or some shit?

rough sapphire
#

no

#

it's cod

tardy rain
#

Skynet is the AI main villain from the terminator series

twin charm
#

oh alright.

rough sapphire
twin charm
#

I knew that plumber seemed weird.

tardy rain
#

Itsa me mariosis

#

Dont trust the hive either

#

Its a bot

twin charm
#

ok I'll trust neither of you.

twin charm
rough sapphire
#

Who's hive?

tardy rain
#

Idk their message history is weird

rough sapphire
#

oh I see

tardy rain
#

Looks like a markov chain bot

twin charm
#

.wiki markov chain

tardy rain
#

A Markov chain is a stochastic model describing a sequence of possible events in which the probability of each event depends only on the state attained in the previous event. A countably infinite sequence, in which the chain moves state at discrete time steps, gives a discrete-time Markov chain (DTMC). A continuous-time process is called a conti...

twin charm
#

interesting.

tardy rain
#

Its a cool d.py bot idea

#

Maybe we should build a markov model cog

rough sapphire
twin charm
#

and that model will respond to messages?

rough sapphire
#

🔫 I got a gun

twin charm
latent scaffold
tardy rain
#

Its actually part of a phrase

#

We're making fun of a friend, we named two characters after a phrase

tardy rain
#

Marios is a manlet
Mariosis | amanlet
I got the first part lmao

edgy crest
tardy rain
#

Theyre game characters, you wont find the other guy here

edgy crest
#

o

#

the names are creative tho

rough sapphire
#

I want to see people pronounce my online alias

tardy rain
#

Oo but seriously tho

#

Markov chain cog as soon as i figure out how to run the bot locally

hollow lance
tardy rain
#

Goddangit foiled again

#

Can you link the source?

hollow lance
#

not sure if it's open source lemme check

twin charm
#

so what would Markov chain bots do?

twilit shore
#

markov chain, obviously

#

what if ur markov chain lead into another markov chain

#

which lead into another markov chain

#

markov ception

twin charm
#

yeah and what would that bot do?

twin charm
#

make Markov chains?

#

I think I understood the concept a bit. But why a discord bot and what would it do?

tardy rain
#

Eh, maybe we can do better

twilit shore
#

generate python code!

#

reads esoteric channel

#

and makes some weird shit

twin charm
#

I thought thats what GPT-3 does.

tardy rain
#

The result would be a command like

!markov @mariosis#4292
bot> generated text personalised to the user selected
hollow lance
twin charm
#

hmmmm.

twilit shore
#

gpt3 is like three markov chains \s

twilit shore
#

simultaneously

hollow lance
#

gpt-3 can sound like a human for like paragraphs

#

o

#

ok

twilit shore
#

yup

tardy rain
#

!pypi markovify

royal lakeBOT
#

A simple, extensible Markov chain generator. Uses include generating random semi-plausible sentences based on an existing text.

twilit shore
#

should’ve added /s earlier

tardy rain
#

The goal is just to have the bot say soemthing funny i guess, not output meaningful, coherent speech

#

Anyway, first step is figuring out the bot

twilit shore
#

darn

hollow lance
tardy rain
#

V nice

#

Now for thinking time in front of a screen

rough sapphire
tardy rain
rough sapphire
tardy rain
#

🥴

rough sapphire
#

Reported

tardy rain
#

Neat

inland wolf
#

bruh

twin charm
#

"I like your funny words magic man"

hardy tartan
#

has anyone here used rofi before?

rough sapphire
#

i have

tardy rain
#

tfw create-react-app comes with 82 moderate severity vulnerabilities

twilit shore
pastel fractal
#

hi

strange musk
#

hmm...is there any channel where I can get experts to optimize a simple piece of code?

rough sapphire
#

never

#

let ur kid

#

wear

#

crocs

tardy rain
#

Crocs arent the problem in that image

#

Wtf is that haircut

latent scaffold
#

My God. Took me ages to figure out you both weren't being homophobic

acoustic moss
#

lmfao

edgy crest
#

confusion

acoustic moss
#

got deleted🤔

carmine niche
#

what a jaba "programmer" means when they talk about getters and setters:

public class Car {
    private String color;

    public Car(String color) {
        this.color = color;
    }

    public String getColor() {
        System.out.println("color was accessed");
        return this.color;
    }

    public void setColor(stirng val) {
        System.out.println("color was assigned");
        this.color = val;
    }
}

Car myCar = new Car("red");

// assignment
myCar.setColor("purple");
// access
System.out.println(myCar.getColor());

what C# programmers mean when they talk about getters and setters:

public class Car
{
    private string _color;
    public string Color
    {
        get
        {
            Console.WriteLine("color was accessed");
            return _color;
        }
        set
        {
            Console.WriteLine("color was assigned");
            _color = value;
        }
    }

    public Car(string color) {
        _color = color;
    }
}

var myCar = new Car("red");

// assignment
myCar.Color = "pink";
// access
Console.WriteLine(myCar.Color);
dark oak
#

damn Java sucks

carmine niche
#

meh

#

it is ok, i guess

tardy rain
#

That looks better in java than c#

carmine niche
#

it is just the epitome of "enterprise code" and ends up feeling very clumsy

dark oak
#

i only use it to mod minecraft

tardy rain
#

Maybe im just tired but how does Color and _color relate

carmine niche
carmine niche
tardy rain
#

Ok i was confused by that Color = color line

carmine niche
#

ah

#

i changed it to be more consistent with the Java version

tardy rain
#

Now everything makes sense in the world again

carmine niche
#

lol

carmine niche
# tardy rain That looks better in java than c#

the main reason that i find the C# code superior is:
A) the getter and setter are implicitly called upon access or assignment of the property, which reduces the boilerplate that .setField() and .getField() introduce
B) the getter and setter are syntactically tied down to the property whose functionality they implement, which is a major advantage over java where, at least in the code i've seen, the getters and setters typically have some considerable space between the fields upon which they act, which just makes it harder to parse and understand imo

last mantle
#

newline braces suck

carmine niche
last mantle
#

no

#

no

carmine niche
last mantle
#

you have weird ass emojis

carmine niche
tardy rain
#

That reminds me, I should check out lombok

carmine niche
#

what's lombok

last mantle
#

better

carmine niche
#

furry 4 life baybeee

tardy rain
#

Its a plugin to cut down on boilerplate iirc

carmine niche
#

😩

#

pain

dark oak
#

@carmine niche dude ur life depends on setters abd getters?

carmine niche
#

no

#

but i think you underestimate the difference that small quality-of-life differences in a programming language can make

last mantle
carmine niche
last mantle
#

ok

carmine niche
last mantle
#

oh god

carmine niche
#

nyaaaaaaaaaaaa

last mantle
#

leave ferris alone

carmine niche
#

ferris is a catgirl and there's nothing you can do about it

#

does javascript have pattern matching

last mantle
#

it has a switch

carmine niche
#

that is not pattern matching

last mantle
#

idk about pattern matching

#

yeah

carmine niche
#

switch semantics and match semantics are different

#

C# has a switch statement with match semantics which is a bit odd but it really doesn't affect anything that much

acoustic moss
#

alt insert moment

vapid nymph
#

code owners are nice af

topaz aurora
acoustic moss
carmine niche
#

yes

#
class Car
{
    public string Color { get; private set; } // auto-implementation get/set

    public Car(string color)
    {
        Color = color;
    }
}

var cars = new[] { new Car("red"), new Car("blue"), new Car("magenta") };

foreach (var car in cars)
{
    switch (car)
    {
        case {Color: "blue"}:
            Console.WriteLine("best color uwu");
            break;
        case {Color: var clr}:
            Console.WriteLine($"blue is so much better than {clr} smh");
            break;
    }
}
topaz aurora
#

Stringly-typed colors lemon_pensive

carmine niche
#

u expect me to make a color enum..? 😩

#

i mean

#

i can if you want

#

ig

#

i'd rather not 😩

acoustic moss
#

lol

last mantle
#

what are enums for in py

carmine niche
acoustic moss
#

kinda do

last mantle
#

enum.Enum

carmine niche
#

😩

inland wolf
#

lol

last mantle
#

its a stdlib ig

acoustic moss
#

yes

#

but

#

its kinda different from enums in java (and other langs too ig)

last mantle
#

hmm

#

so yeah, why do they exist in py

inland wolf
#

wait u can destructure in switch cases?

carmine niche
#
>>> from enum import Enum
>>> class Color(Enum):
...     RED = 1
...     GREEN = 2
...     BLUE = 3
... 
```someone pass me the bleach please
acoustic moss
#

i'll take it too

last mantle
#

yeah i see no point

acoustic moss
#

i mean you could also do

#

Color = Enum('Color', 'RED GREEN BLUE')

carmine niche
inland wolf
#

hmm

#

u seen the switch expression?

carmine niche
#

where people might be say, an array or a linked list of people objects..

acoustic moss
#

slightly unrelated but I hate how fall through is the default behaviour

#

when you don't break

inland wolf
#

same

#

but it allows u to match two cases

acoustic moss
#

i would prefer syntax like case A || B:

#

i think(?) python's patma would use |

last mantle
#

yeah so why would people use enums over dataclasses

acoustic moss
#

tf is >D:

carmine niche
#

a typo

acoustic moss
#

ok

acoustic moss
last mantle
#

o

acoustic moss
#

enums are for when you want to specify different types of something

last mantle
#

i see

acoustic moss
#

dataclasses are just classes but with a lot less boilerplate

acoustic moss
carmine niche
#

you are allowed to give multiple cases the same behavior:

switch (val)
{
    case 1:
    case 2:
    case 3:
        Behavior();
        break;
    case 4:
    case 5:
        OtherBehavior();
        break;
}

but you are not allowed to "fall through":

switch (val)
{
    case 1:
        SomeBehavior();
    case 2:
        MoreBehavior();
    default:
        EvenMoreBehavior();
        break;
}
inland wolf
#

yes

#

it needs to know when u end the case

acoustic moss
#

what gets executed for val = 1 in the second case codeblock

inland wolf
#

behavior()

#

thats what i said above

inland wolf
carmine niche
#

by the second case do you mean the second codeblock?

acoustic moss
#

yes

inland wolf
#

o

carmine niche
#

nothing happens

#

it doesn't compile

inland wolf
#

maybe i should read

acoustic moss
#

O

carmine niche
#

you aren't allowed to fall through

inland wolf
#

yes

acoustic moss
#

hm

carmine niche
#

you can also pattern match by type

#
void PrintType(Shape s)
{
    switch (s)
    {
        case Rectangle _:
            Console.WriteLine("rectangle");
            break;
        case Square _:
            Console.WriteLine("square");
            break;
        case Circle _:
            Console.WriteLine("circle");
            break;
        case Triangle _:
            Console.WriteLine("triangle");
            break;
        default:
            Console.WriteLine("unknown shape");
            break;
    }
}
graceful basin
#

That's pretty neat. I kinda like Rakus system, where you can fall through, but you must explicitly state you wish to fall through, and break is the default

carmine niche
#

mm

#

you can also

#

do

#

this funky thing

#

which does not follow at all from the normal switch syntax

inland wolf
#

switch (4){ case >2: break; }

carmine niche
#
void PrintType(Shape s)
{
    var shapeType = shape switch
    {
        Rectangle _ => "rectangle",
        Square _ => "square",
        Circle _ => "circle",
        Triangle _ => "triangle",
        _ => "unknown shape"
    };

    Console.WriteLine(shapeType);
}
acoustic moss
carmine niche
#

C# is full of surprises

inland wolf
#

ye the switch expression

graceful basin
#

Java has that too, with similar syntax

carmine niche
#

ah

acoustic moss
#

wait what

inland wolf
#

lol

graceful basin
#

No idea if it can match on types though

carmine niche
#

doubt it

#

last i checked java didn't have patma

#

but then again there's so much about java i don't know

#

i am 98% certain though that java cannot

void SeatParty(Person[] party)
{
    switch (party)
    {
        case {Length: > 6}:
            Console.WriteLine("We cannot currently seat that many people.");
            break;
        default:
            Console.WriteLine("We'll be right with you.");
            break;
    }
}
#

:D

inland wolf
#

dang

#

java slander

#

maybe it can

graceful basin
#

I think java 15 or beyond plans patna

acoustic moss
graceful basin
#

Yup

acoustic moss
#

guess i'm on the wrong version then

carmine niche
#

oof

acoustic moss
#

i'm on 11.0.2 apparently

graceful basin
#

Oh wait, you need ;, not ,

#

It's a 13 feature

carmine niche
acoustic moss
graceful basin
#

Yeah, that isn't something java can do

#

Raku probably can

inland wolf
#

thats like an if let in rust

#

cool shit

carmine niche
#

iirc the latter will error if party is null

acoustic moss
#

70.5% of all raku mentions in this server have been from lakmatiol lol

carmine niche
#

whereas the former will simply evaluate to false

inland wolf
#

is does pattern matching?

#

dang

carmine niche
#

:D

#

C# pog

#

linq pog

#

patma pog

#

F# pog

inland wolf
#

i was learning f#

#

then i stopped

#

idk why

carmine niche
#

sad

inland wolf
#

lol

carmine niche
#

F#: You thought LINQ couldn't get any sexier, but it did.®

inland wolf
#

damn

clear shale
#

Dogecoin to the moon

acoustic moss
#

🍿

latent scaffold
#

I started learning F# then gave up

#

I swear the Microsoft docs were kind of confusing

#

there's like no really good resources to learn with

inland wolf
#

imagine being confused by docs

#

couldnt be me

latent scaffold
#

lol

#

well they're kind of weird

#

I didn't wanna follow them because I felt like I was going in the wrong direction

inland wolf
#

which one were u following

#

i was just using the reference

latent scaffold
inland wolf
#

yes

latent scaffold
#

Welp. It's that time again... I need a new project to work on

#

I need to pick something to learn and apply it

#

I'm thinking... poetry and something else

edgy crest
#

you too

#

?

latent scaffold
#

me too wot

edgy crest
#

out of projects

latent scaffold
#

yuh lol

edgy crest
#

saem

latent scaffold
#

Pixels was fun but like... too territorial for me rn

edgy crest
#

yes

latent scaffold
#

I learned something handy with rich and logging, though

#

as well as some minimal image processing

primal mauve
#

rich is fun

#

I'm looking to learn sockets but it seems too complicated for me

latent scaffold
latent scaffold
primal mauve
#

yeah

latent scaffold
#

I mean really it's just saying "hey connect to this IP with a TCP socket and send over some bytes... then listen for some bytes in return and process them"

#

although I imagine my wording isn't exactly... correct

edgy crest
#

it all just comes down to sending and receiving jerry

latent scaffold
#

pretty much

#

My first networking project was making an HTTP client

#
GET / HTTP/1.1
Host: www.google.com
edgy crest
#

you could do HTTPS too

#

python got a ssl module

latent scaffold
#

HTTPS is where things get shaky for me

#

In Rust it's a huge pain

edgy crest
#

yes

latent scaffold
#

Asynchronous SSL

edgy crest
#

in rust it is

#

thats why i just leave HTTPS to the popular crates PES_SadGePray

latent scaffold
#

lol

#

I've done it in Rust before

#

but it took a lot of tinkering

#

and working with crates with poor documentation

edgy crest
#

ee

neat aspen
#

before any object oriented languages were made what programming languages and paradigms were being used?

edgy crest
#

variables

#

and functions

lunar crescent
#

.topic

median domeBOT
#
**What is your favorite video game?**

Suggest more topics here!

inland wolf
#

i dont like the invite to server button when u right click a user

latent scaffold
latent scaffold
supple flicker
#

guys tips to become a blockchain dev?

rough sapphire
#

study

white anvil
latent scaffold
inland wolf
#

bro

#

im sorry to anyone who likes this

primal totem
#

Is this channel about crypto currency dev or can I discuss crypto trading here?

lunar crescent
inland wolf
#

well u can talk about anything here

lunar crescent
inland wolf
#

yes

primal totem
#

cool , thanks. you guys invest in crypto?

lunar crescent
primal totem
#

: (

harsh tundra
primal totem
#

ohh, thanks for the info mate.

olive hazel
#

topic

#

.topic

median domeBOT
#
**What is your favorite sport?**

Suggest more topics here!

olive hazel
#

hmm

rough sapphire
#

Bean removal

olive hazel
#

just running

lunar crescent
olive hazel
#

.topic

median domeBOT
#
**Name one famous person you would like to have at your easter dinner.**

Suggest more topics here!

olive hazel
#

Hmmmmm

#

"joe"

narrow pecan
harsh tundra
narrow pecan
#

Haha, yeah

#

Then I'm part of the peasants

harsh tundra
rough sapphire
#

dogecoin

#

sheesh i didn't know i was being so controversial 😳

latent scaffold
frozen marten
inland wolf
latent scaffold
#

MOOO! kinda good in a weird way ngl

inland wolf
#

debatable

inland wolf
#

lol

last mantle
vapid portal
#

Do you see it

inland wolf
#

aha

vapid portal
#

reject amogus

inland wolf
#

no

harsh tundra
vapid portal
#

another what?

#

pixel thing or motherland?

harsh tundra
#

Pixel thing

#

I'm not in a mood. Our discussion then reached discussing how socialism is different from Soviet Union and how we have people in the served whose families were directly affected by Soviet Union

#

I hate it when socialists idealise Soviet Union. And I'm leftist and socialist myself...

vapid portal
harsh tundra
#

I didn't "get political". I mentioned my discomfort

#

You were the one who brought the flag up

#

I just summarised what was talked about earlier and that flag is now abandoned

vapid portal
#

Discomfort? I never said USSR was best socialist country or anything, do not want to get in fight with people

harsh tundra
#

You went with emote saluting the flag and then asked about "new pixel thing or motherland"

#

I said I'm tired of this as it was already discussed and summarised the earlier talk

vapid portal
#

intense scrolling trying to find that discussion

harsh tundra
#

848876450731655208

#

Ah, I copied id instead of url

#

Wait a second

vapid portal
#

People seem to not get angry when flags apear in pixel thing cause they know it is most likely a meme and not get mad over it.

harsh tundra
#

It was discussion about flags and some people started saying that no flag should be there

#

I said that from all things, only Soviet Union flag shouldn't be there as it's not really a representation of anyone like queer flags or country flags

vapid portal
#

Nobody finds a problem with Indian flag. It is just a flag, same with ussr

#

They who made it are probably just joking or something

harsh tundra
#

Dude, did you really just compare existing country to "meme"?

harsh tundra
#

I know person who made it and they're Indian

#

Pakistani people were drawing Pakistani flag

vapid portal
#

Look at this. Do you think this person is serius

#

They where joking.

#

Same with whoever made USSR flag on the pixel thing.

harsh tundra
#

And I said I told them it's not a joke for me because my family was directly affected

harsh tundra
tardy rain
#

Nazi flag is also a flag, why dont you try that one and see how it ends

harsh tundra
#

And I pointed you to a discussion and you took one thing from it. Bravo /s

vapid portal
#

Then they are joking.

vapid portal
#

That will end up with server war

harsh tundra
#

The server rules are pretty clear

#

The author of the flag agreed that was insensitive of them

#

And you want to justify anything with "it's a joke/meme"

vapid portal
#

So, they said they did not mean to make it and offend you. They did not mean anything political when making it(I hope)

harsh tundra
#

No, they didn't say that

#

"I didn't mean to offend you" doesn't mean they didn't offend me or anyone else

#

And they didn't say that

#

Impact > intent

#

they understood why it was wrong and apologised. Its different from what you said

dark oak
#

i need a package from snap store on arch should i enable snap?? im not sure

#

why whould palastine flag be offencive ?

vapid portal
dark oak
#

what you talked is more offencive

harsh tundra
#

Dude... I already said, existing country vs totalitarian regime, not existing anymore

#

You're sealioning at this point

dark oak
harsh tundra
#

You said someone made IN flag as a joke without knowing anything. Forgetting we are a diversive community

twilit shore
#

might wanna calm down

harsh tundra
# dark oak i just want advice from arch experts

We're python-focused server, so we don't have many arch expects. Isn't there another package format you might use? Enabling snap for just one package seems a bit much but I mainly use Ubuntu, so idk

harsh tundra
#

A lot of formats or a lot of packages you want from there?

dark oak
#

nah there are alot arch experts

dark oak
harsh tundra
dark oak
#

weird

#

i switched to arch like 4 days ago

#

i used ubuntu for 2 years

tardy rain
#

Dont draw any flag, problem solved

inland wolf
#

ikr

acoustic moss
#

there's too many flags at this point to turn around lol

#

eye estimate is ~15 at least

tardy rain
#

Instead of silly flags people should just say "hello world" in their native language

inland wolf
#

yes

#

true

tardy rain
#

Or just "hello" or "goodmorning"

inland wolf
#

just make that ur country's flag

tardy rain
#

Aight get to it people

edgy crest
#

make conway game of life animated

#

stonks

#

penguin with wide beak

inland wolf
#

is that a nor gate

#

nor-way?

#

please tell me it is

#

||amazing||

edgy crest
#

omg

inland wolf
#

fuck me

rough sapphire
#

epic

edgy crest
rough sapphire
#

no 7000000000000000000000000000000000

inland wolf
#

i did not google image search

#

of course

twilit shore
#

hive is markov chain

#

💯

rough sapphire
twilit shore
#

hahahahahahhahahahhahahahhahaa

rough sapphire
tardy rain
#

Yes

honest star
#

@rough sapphire Please keep things in English on this server, thanks.

rough sapphire
#

WTF

#

Me saw un this Channel i can say russian

#

@honest star

harsh tundra
rough sapphire
#

()_()

harsh tundra
#

"Well, we have offtopic, but it's still required to speak English in those"

mellow spire
#

anyone got brew here?

#

need to test something

quick ledge
#

joe, probably

#

Vestergurkan too

last mantle
#

Vivek too

quick ledge
#

whoa

last mantle
quick ledge
#

hello lemon_pensive

mellow spire
#

@bleak linteley you got brew?

vapid nymph
#

@solid pollen

solid pollen
#

I wonder if you can manually insert a filename into the database and watch the world burn

vapid nymph
#

Lmao

solid pollen
#

I can give you a script that should be able to do that

graceful basin
#

if you create an invalid file using e.g. a linux system, windows will complain

vapid nymph
#

I'm currently on mobile so I can't do anything right now

solid pollen
vapid nymph
solid pollen
#

shameless plug: it is from my upcoming talk

vapid nymph
#

Because if it's unclonable how can you commit it

#

🤔

#

Hah if it works then I'll probably have to report some resulting vulnerability on github

solid pollen
#

Wait, I am missing a function aren't I

#

Yes haha

vapid nymph
#

This is inspired by this reddit post

graceful basin
#

there are things that depend on this, unfortunately

#

so it is here to stay

deep nexus
#

even in 64 bit windows?

graceful basin
#

yup

solid pollen
#

Okay, now it should work

graceful basin
#

copy CON file.txt is the equivalent of cat <<EOF > file.txt

solid pollen
#

Hmmmm Git may not like a file that contains a NUL byte, not sure

#

Maybe not actually

deep nexus
#

~ works fine as a folder name on linux while windows gives the biggest fuck you when you use a disapproved letter

vapid nymph
#

Lmao

graceful basin
#

~ is a shell feature, not a OS feature

vapid nymph
graceful basin
#

it's more a matter of linux having raw bytes as filenames

vapid nymph
#

It should error immediately

graceful basin
#
error: invalid path 'W|ind0"?.md'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
vapid nymph
#

Wait why

graceful basin
#

where windows uses UTF16 for filenames

vapid nymph
#

How did it clone con

#

Or did it rename the folder

graceful basin
#

I cloned into .

vapid nymph
#

O

#

Hm...

#

Should edit description into uncheckoutable then

tribal aurora
#

where is jack ?

#

I can't find him

#

@tranquil orchid oh here

tranquil orchid
#

me

rough sapphire
#

.topic

median domeBOT
#
**If you could be anyone else for one day, who would it be?**

Suggest more topics here!

rough sapphire
#

Lenin

#

jk

#

I'd be a nuclear warhead tbhh

#

or god

rough sapphire
#

guys i have a crazy idea

#

perhaps joe doesn't have copious amounts of free time

#

but thats just a theory

mellow spire
full needle
#

@shell raptor is that 1.25 for a box or just the domain?

#

i need to pick up a cheap box in the next few weeks

shell raptor
#

it's, like... total garbage

full needle
#

o

shell raptor
#

the domain is $6.12 per year

full needle
#

i dont want total garbage haha

shell raptor
#

well, let me find you the stats rq

full needle
#

ill find something on lowendbox maybe

shell raptor
#

@full needle huh, it seems that they don't offer it anymore. The cheapest is $2.43/mo with:

  • 1 core
  • 1 GB of RAM
  • 30 GB of storage (SSD+HDD, not sure what that means. there's also a $2.5 offer with just a 20GB SSD)
full needle
#

ah thats not bad

#

whom is this with?

shell raptor
#

their website is exclusively in Russian

full needle
#

o no

shell raptor
#

(not the control panel though)

full needle
#

no thanks, ill go with an english site 😛

shell raptor
full needle
#

😔

scarlet wind
#

||translate||

full needle
#

sure sure, but what happens if there are any issues. id rather deal with a team that speaks english

shell raptor
#

yeah, good point

full needle
#

ill check lowendbox in a week or so im sure i'll find something decently cheap

harsh tundra
#

I started reading about ovh's vps plans and domains and gave up, as always

#

too much info, my brain started overheating

full needle
#

lols

#

ovh is good, expensive tho. most people are just ovh resellers, they buy a bigger ovh plan split it up and sell it so its cheaper

harsh tundra
#

I want to find something in EU because I remembered I can put it as business expense and deduct VAT and stuff...

#

hm, or how does it work for "importing" services? I might actually not have to pay VAT at all then, I think... I should ask around

#

https://europa.eu/youreurope/citizens/consumers/shopping/vat/index_en.htm "VAT on telecommunications, broadcasting and electronic services is charged in the country where you live (the country where you are established, have your permanent address or usually live), and not in the country from where you purchase the service. These rules apply to services puchased both within and from outside the EU."
so I think it doesn't change anything where I buy the vps?

Your Europe

Paying VAT on purchases made by EU residents in other EU countries.

grizzled shell
#

guys i want online talent show ideas

vapid nymph
#

@solid pollen

solid pollen
#

lol GG

inland wolf
rough sapphire
#

laughs in linux

grizzled shell
#

any good video ideas, i wanna edit a cool video for talent show\

rough sapphire
edgy crest
inland wolf
#

😱

latent scaffold
#

ugly linux

inland wolf
#

easter egg ⁉️

last mantle
#

damn witcher 3

#

18+ 👀

acoustic moss
#

prn 👀

inland wolf
#

ha :)

#

not anymore

rough sapphire
#

dude my fuckin phone makes a sound whenever I click any interface element

#

This is so annoying and I can't turn it off unless I mute it

inland wolf
#

why tf

#

is that an accessibiltiy feature

#

maybe check accessivilty settings

last mantle
rough sapphire
#

I already searched everywhere lmao

graceful basin
#

the most radical place to look is in developer settings

rough sapphire
#

Already did so.

#

I have a rooted phone and still can't get rid of this shit

inland wolf
rough sapphire
#

There is no such menu on my settings

#

The only way I get rid of it is by turning off notification sounds

graceful basin
#

odd

rough sapphire
#

Yeah

#

And dude it is everywhere

latent scaffold
#

What phone have you got

rough sapphire
#

But not everywhere I click my screen

latent scaffold
#

for me it's in my sound settings

rough sapphire
#

already scrolled through everything

latent scaffold
#

Vibration settings?

last mantle
#

wait wait

inland wolf
#

his phone is rooted btw

last mantle
#

xiaomi likes to fuck phones up

#

hmm

rough sapphire
#

They do yea

latent scaffold
#

¯_(ツ)_/¯

rough sapphire
#

It's not MIUI

inland wolf
#

its not keyboard vibration

#

and its rooted

latent scaffold
#

Not that I'd know the difference

last mantle
#

lol

latent scaffold
rough sapphire
#

This specific line of phones has googles android one program

inland wolf
#

but u rooted it ri

#

so does it still get updates

#

probably does

rough sapphire
#

it's still stock firmware

inland wolf
#

i see

obtuse widget
#

Guys

graceful basin
#

sound > advanced > touch vibration doesnt change it

obtuse widget
#

i got banned from coding den, bc i was talking badly about pride month

inland wolf
#

L

obtuse widget
#

how do i appeal?

last mantle
#

well you don't hehe

obtuse widget
#

hm

rough sapphire
#

Nope it does not turn it off

#

There's a touch feedback option but it doesn't change it

#

I would just put a random custom ROM here but

#

Most of them don't seem to want to work with mobile data

honest star
obtuse widget
#

tysm

full needle
#

psh, that place puts python under scripting cat

#

how dare they undervalue us

brazen ingot
full needle
#

go steal their cookies bib

rough sapphire
#

Русские собираю пати на обмен знаниями или просто повеселиться в лс

frozen coral
royal lakeBOT
#

:incoming_envelope: :ok_hand: applied warning to @rough sapphire.

harsh tundra
rough sapphire
#

.topic

median domeBOT
#
**Who is your favorite Writer?**

Suggest more topics here!

rough sapphire
#

Jhon cena

#

👌

gray sail
#

b

hollow lance
harsh tundra
#

Please read about the plant "pain"

#

We have no proof that the electrical signals are interpreted like in animals, that it's feeling or anything like that

hollow lance
#

just because we humans feel pain differently doesn't mean that plant pain is invalid

#

that's pretty speciesist of you

rough sapphire
#

Agreed

harsh tundra
#

Also, being bred to live a protected life and then die so the parts can be used != being held in a cage with not even a slight similarity to natural environment and die

hollow lance
#

idk, i think they're pretty similar when you consider that canaries were meant to be used just like plants are, to save human lives, canaries by preventing methane-exposure related deaths and plants by helping prevent starvation and mineral deficiencies

jagged fog
#

interesting convo thinkW

hollow lance
#

but really, overall, saying that using canaries to prevent human methane-related deaths is cruel implies an existence of morals and ethics, which can't really be scientifically proven

harsh tundra
#

"parts can be used" is false with canaries and true with plants, and "held in small cage in environment nothing like natural one" is true for canaries and false for veggies...

I live in the countryside. We eat meat. We eat our own chicken. But they run around and get every plant-based leftovers which they love to check out and eat. I wouldn't compare them to "factory" chicken stuck in large quantities in small space, would you? That's the difference, the treatment before the death

hollow lance
hollow lance
#

anyway, this entire argument is based on different interpretations of morals and ethics and neither can be proven to be right or wrong

#

so this won't go anywhere so i'm going to do my history homework since i have the final in two days

harsh tundra
gilded prawn
#

That's actually wrong, they didnt die unless someone royally fucked up and wasnt paying attention, by which poijt the miners were also fucked

rugged echo
#

Daily dose of deep ot conversations

gilded prawn
#

they would pass out, yes, and that can be considered cruel, yes, but as a general rule they didnt die

harsh tundra
harsh tundra
tardy rain
gilded prawn
#

source is talking with friends who worked in an active coal mine and continue to work there now that it's a museum

jagged fog
rough sapphire
#

Plants feel pain

harsh tundra
#

Birds are really sensitive to smoke, gases, even some scents, so the dying quicker than miners would be "also fucked by that time" sounds plausible. Also who would save the bird when it passed out, they would probably just evacuate without it...

rugged echo
#

Debate gets serious when you hear them say "source?" Lmao

gilded prawn
harsh tundra
harsh tundra
gilded prawn
#

considering how sentences evolve it's not too surprising a topic to end up on actually

#

and definitely one worthy of discussion, relatively few people actually know the history behind it

harsh tundra
#

I'm really sensitive about birds now because I'm lil birdie's foster parent, so it felt really bad ._.

harsh tundra
#

Science is actually reluctant about calling those signals in plants "pain". So the whole "they are the same and morals are not scientific so I win" was actually wrong on so many levels... You cannot take "science" for one argument and deny the same science for the other part

jagged fog
#

If I could I'd like to not harm any living thing, but the fact is just by living you need to consume other living things just to stay alive. And not just by consuming but just by living and trying to make your life more comfortable.

tardy rain
#

just be a chloroplast, problem solved

latent scaffold
#

Are those what make plants green?

#

or am I misremembering