#ot1-perplexing-regexing

1 messages ยท Page 571 of 1

inland wolf
#

ekonimix

surreal otter
#

she's nearly doubled her order Queue this morning, and it's 11AM

clever furnace
#

Can u really rickroll ur os kernel??

#

Pls tell me u can

#

Then i can call myself the ultimate rickroller

vapid nymph
#

so... @viral parrot has a script that can do that

twin charm
#

something like playing a sound effect the moment the pc boots up?

near bolt
#
public class Main 
{
  int x = 5;
  int y = 10;

  public static void main(String[] args)
  {
    Main myObj1 = new Main();
    Main myObj2 = new Main();
  }
}```
#

over here, would myObj1 be 5 and myObj2 be 10?

#

cuz i tried to check using

System.out.println(myObj2.y);```
#

but when i print, i have to manually declare .x or .y

acoustic moss
#

over here, would myObj1 be 5 and myObj2 be 10?
no

#

each object will have two fields x and y

#

myObj1.x and myObj2.x are both 5

#

myObj1.y and myObj2.y are both 10

near bolt
#

oh icic thanks

acoustic moss
#

๐Ÿ‘

vapid nymph
#

Omfg

#

I'm using Notepad++ to build a P2P blockchain based social network.

lost vortex
kind hound
#

I wonder how you rickroll at the kernel level

low chasm
#

Rust

tardy rain
#

Im kinda glad people are keeping some traditions alive like rick rolling, but im also kinda sad cause that shit cringe af famalam

olive hazel
#

It's simple: For all you cute animal lovers:

A
Cute
Little
Golden
Retriever
Puppy
Video
Designed
To
Make
You
Say
Aww...

Just when you think the video cant get any cuter.... it does

For all you dog lovers out there, you will be so happy to see this adorable little puppy

Enjoy this video, Alex!

Disclaimer I do not ow...

โ–ถ Play video
lunar crescent
#

i won't fall for that

#

ik that

olive hazel
#

(;-;)

#

mission failed

low chasm
#

I was going to call for it

#

But then they said that

hollow lance
#

title clearly wants you to click on it but is too vague

olive hazel
#

lol

low chasm
#

They haven't perfected the art yet

hollow lance
#

iirc that video is many years old

olive hazel
lunar crescent
#

somebody broadcasted a rickroll to space, lmao

#

the dedication

vapid nymph
#

there is something about seeing this that is so nice to see

latent scaffold
#

seeing wot

open fern
#

you're seeing the parser switch document psf/black has and GVR's additions

mellow spire
#

it ain't fake

#

i got it, but I don't have epic games lol, can't download on linux

silent plaza
silent plaza
#

ye, like how netflix was

mellow spire
#

sad, requires payment

soft jetty
#

i mean

#

its still free

inland wolf
#

yes

winter terrace
#

>thing that you pay for for free
>credit card info required
pithink

inland wolf
#

its how netflix does it

#

and amazon primes free trial

winter terrace
#

but like

#

yeah sure free trials exist

#

but i dont think epic can give free trials for discord nitro

#

epic and discord are in no way related, company wise

soft jetty
#

lol

#

basically though like

#

the scam part is them wanting to charge you if you forget to cancel

#

or for future purposes - which could be helpful

lunar nexus
#

thats happening to me all the time

soft jetty
#

but say you forgot to cancel before it ran out, boop there goes the money you didn't want to spend

#

you could also just get a burner card offline and preload like 1 dollar onto it

#

and then it'll accept it

lunar nexus
#

its paper money losing value

lunar crescent
#

inflation?

surreal otter
#

wonder how much Discord makes in 3 months, and how much of that they refund

versed saffron
cerulean basin
#

How come you decided against using a testing framework?

#

Why is there an __exit__ but no __enter__? That dunder is meant to be used to implement a context manager.

versed saffron
#

I've never used a testing framework/done any testing before but I just figured because I have to parse + monkeypatch the tests in, I wouldn't be able to do it

versed saffron
solemn leaf
#

lmao

near bolt
#

in c, scanf requires users to input every value in a new line

#

can we get the input to be on the same line

mellow spire
#

@solid pollen do you have the akarys heart emoji source?

solid pollen
#

Hmmmmmm

mellow spire
#

or hmm, just copy the link from gurkult

mellow spire
woven sleet
#

sus

solid pollen
#

Akarys sus

#

Yeet 'em

inland wolf
#

yes

silent plaza
#

anyone want nitro? i dont have credit card, so if anyone has credit card use this

#

Oh pydis bot delete nitro gift?

inland wolf
#

yes

acoustic moss
#

probably self bots

inland wolf
#

yes

acoustic moss
#

possibly*

inland wolf
#

now ur nitro is gone

acoustic moss
#

rip

silent plaza
#

self bots cant delete my message

acoustic moss
#

oh ye

silent plaza
#

pydis bot

acoustic moss
#

idk how gift nitro messages work, i thought they get deleted automatically on claiming

#

idk

inland wolf
#

yes

#

so pydis probably deleted

silent plaza
#

so i shud not send it here?

acoustic moss
#

correct

silent plaza
#

ok

acoustic moss
#

ok

inland wolf
#

or the mods are self botting sussyballs

silent plaza
#

lol

acoustic moss
#

wow is that an accusation

inland wolf
#

no

#

just a thought

silent plaza
#

pydis bot delete nitro gifts and put it #deleted-message-logs lol

acoustic moss
#

lmao

wheat lynx
#

the pydis bot does delete nitro gifts, yeah, because it isn't a great idea to send them here...

inland wolf
#

yes

wheat lynx
#

on such a large server it's likely there will be selfbots that will just claim it automatically

silent plaza
#

meh selfbots cant claim this one

#

it needs credit card to accept

inland wolf
#

yes

silent plaza
#

the epic games thing

inland wolf
#

and u think all people dont have credit cards?

silent plaza
#

most wont who ever are selfbotting

inland wolf
#

hmm

#

perhaps

silent plaza
#

imagine i selfbot with a card, discord catches me and bans me and my card hmm

inland wolf
#

yes

silent plaza
#

nah nvm discord will never ban their source on income lmao

latent scaffold
#

lol

latent scaffold
#

so they do have an incentive to ban botters, kind of

harsh tundra
spare dawn
#

Anybody who have early given ZCO ?

harsh tundra
acoustic moss
#

bird

inland wolf
#

๐Ÿฆ

lunar crescent
#

birdo

last mantle
inland wolf
#

lol

vapid nymph
latent scaffold
#

that's kinda weird

inland wolf
#

ikr

#

i feel like the lower arm of the log should be yellow

vapid nymph
#

here's some more

#

i downsized them so i could send more w/out filling the screen

acoustic moss
#

automute when

vapid nymph
#

lol

vapid nymph
#

brb

#

no nvm the extent of my editing stops before making a custom vsc office logo

latent scaffold
#

lol

jagged fog
#

there are a lot of ppl abusing the new Discord/Epic nitro giveaway, I assume there will be a lot of bans Pepe_Ummmmm

vapid nymph
#

here we go

last mantle
vapid nymph
jagged fog
last mantle
#

ok

vapid nymph
latent scaffold
vapid nymph
#

because of 30 nitrohack accounts

last mantle
#

lol

#

i mean discord should have expected this

vapid nymph
jagged fog
last mantle
#

it is probably intentional

#

it is most likely intentional

#

hmm

vapid nymph
last mantle
#

is that illegal?

#

mostly is i guess

jagged fog
vapid nymph
#

exactly, its illegal

#

hence why i haven't claimed it

jagged fog
#

but they don't even check the adress, you can type whatever adress you want

#

and how come they don't check very high number of ppl using the same cards?

#

it's just bad screw up from them

last mantle
#

what will discord do now lol

vapid nymph
#

duh

last mantle
#

lol

jagged fog
#

as long as Epic is loosing money it's alright by me SataniaLaugh

#

I'm pissed by their way of throwing money around

last mantle
#

i mean, its better than Apple just consuming money

#

EPIC is atleast giving stuff around

#

for free

jagged fog
#

It is

#

but they killed Unreal Tournament and I won't forgive them

last mantle
#

lol whats that

jagged fog
#

it's a game

last mantle
#

fortnite i guess

#

some internal scams or something

#

who knows

#

all I know is that they are very much in loss giving away free stuff like this

#

i feel that discord kinda purposely gave away 3 months of nitro on epic

jagged fog
#

they are dumb

#

I think they want to attract ppl to their store/launcher

#

so they are giving and throwing money at it

#

they just forgot one thing

#

to actually improve the god damn launcher

vapid nymph
#

sdfg

vapid nymph
#

asdf

last mantle
jagged fog
#

it was supposed to have marketplace for cosmetics or smth but it's dead

jagged fog
last mantle
#

launcher is fine on higher end PC's

acoustic moss
#

is epic games dying or something

last mantle
#

on slower ones, its ass

jagged fog
#

doubt

last mantle
acoustic moss
#

why would they give out free stuff at a loss then

#

thonk

last mantle
#

to attract ppl

jagged fog
#

they still have a shit ton of money, and few software that still make hundred of millions

acoustic moss
#

o smort

jagged fog
last mantle
#

well at least the consumers are benefitting

acoustic moss
#

i ain't part of it ๐Ÿ˜ค

last mantle
#

i got such good games

#

๐Ÿ˜‹

jagged fog
mellow spire
#

I regret having it now for some reason

last mantle
#

i use steam only for CSGO and R6S

#

everythign else, epic

vapid nymph
#

my discord rn

acoustic moss
jagged fog
#

I just don't get it, launcher has been around for years and years and it's still ultra shit, why don't they spend some money to pay devs to improve it?

acoustic moss
#

engine-x

#

or nuh ginx?

#

nuhginx.

acoustic moss
#

or en-jinx?

inland wolf
jagged fog
last mantle
#

electron is ok

acoustic moss
#

protons thiough

#

chonky bois

last mantle
#

i guess they used javafx or something

inland wolf
#

inb4 neutron

jagged fog
inland wolf
#

lol

last mantle
#

flutter? idk

inland wolf
#

inb4 qt

last mantle
#

Qt too yeah

#

wut

#

:(

acoustic moss
#

๐Ÿฟ

inland wolf
#

inb4 inb4

jagged fog
#

dunno those are kinda oldish, trend is having desktop apps with web technology

#

ig new qt6 iirc that is more modern

last mantle
#

Qt6 is pog

inland wolf
#

flutter isnt old, qt6 idk anything abt

latent scaffold
#

Meanwhile, I have no clue as to how Qt6 compares to Qt5

last mantle
#

i mean yeah its not like electron - with the web tech

#

its only PC

#

but its really performant

last mantle
latent scaffold
#

3D? O.o

last mantle
#

OpenGL improvements iirc

inland wolf
#

3d!? thats 1 more than 2d!!!!!!

last mantle
#

they can't come close to Qt

#

Qt is so fking vast

latent scaffold
#

I've not seen any "3D" Qt applications

last mantle
#

its insane

vapid nymph
#

hello?

inland wolf
#

yo can u tel me some well known qt apps

last mantle
vapid nymph
#

earth to

#

okay

latent scaffold
inland wolf
#

oh yea LG tvs use it too

last mantle
#

yup

#

lufthansa uses Qt too

inland wolf
#

but what consumer app

#

uses it

#

does sharex use it

last mantle
#

consumer none, cuz companies are lazy

#

oh wait

inland wolf
#

bruh

#

wait

last mantle
#

Maya

#

maya uses it

inland wolf
#

qt is hard to write?

#

i see

jagged fog
#

qt is huge

last mantle
#

i mean

#

sorry

#

C++ is hard to uhh

jagged fog
inland wolf
#

process

last mantle
#

processing

inland wolf
#

hmm

last mantle
#

maintain, error handling is tough i guess

inland wolf
#

i mean

#

if lg can make good looking ui

#

with qt

vapid nymph
#

fuck discord

inland wolf
#

so can i ๐Ÿ™‚

last mantle
latent scaffold
last mantle
#

the startup times are ass sometimes

inland wolf
jagged fog
last mantle
vapid nymph
#

it started to work as soon as i turned on my vpn

jagged fog
#

besides why are you concerned with GUI perfomance? It's mostly just buttons and stuf

jagged fog
vapid nymph
#

although i suppose that means that it could be area related

last mantle
#

not a memory hog ๐Ÿ˜Ž

vapid nymph
#

so where i live is having issues with discord maybe

last mantle
#

as i said, its used in places where hardware is kinda limited

#

like cars

#

etc

inland wolf
#

yes

last mantle
#

yes

inland wolf
#

and tvs

#

moment

jagged fog
last mantle
#

fuck java

inland wolf
#

wha is that

last mantle
#

hah

inland wolf
#

lol

#

3 billion devices

#

jovo

#

how does it

#

run on a toaster

last mantle
#

regarding flutter, the crossplatform compatibility is so damn good

inland wolf
#

i agree

jagged fog
#

swing is ancient and look outdated

inland wolf
#

lol

last mantle
#

you only need to use flutter tbh

inland wolf
#

swing old?!?

last mantle
#

why learn anything else

inland wolf
#

just wait till they make it faster

#

its going to be Satisfaction

last mantle
inland wolf
#

they already made it faster on desktop wit flutter 2

#

and better on web

last mantle
#

yeah but Qt is modern with material theme etc and still performant

#

hah

inland wolf
#

take that ๐Ÿ˜Ž

jagged fog
#

dunno I always had high memory footprint with that, after optimatizations best I could do is 20mb for ultra simple app monkaHmm

inland wolf
#

javaerz

#

wtf

#

i thought javas vm was exceptional

#

3 billion devices*

jagged fog
#

by now it's like 20 billion

inland wolf
#

lol

#

youd think they would increase that number on the installer

#

wait

#

i thoguht that kinda stuff was made in c

vapid nymph
#

@latent scaffold@inland wolf

#

hence why the vpn works ๐Ÿ˜›

inland wolf
#

yes

#

just listen to this

#

while doing math

#

especially trigonometry

vapid nymph
#

LOL ITS A CLOUDFLARE ISSUE

#

tomorrow, amazon aws and microsoft azure. Or maybe Google Cloud Compute

#

after all, fastly was just hit

#

hmmmm

#

.status cat 206

median domeBOT
#
**Status: 206**
honest pawn
#

Lol

#

.status dog 206

median domeBOT
#
**Status: 206**
honest pawn
#

๐Ÿ˜ณ

latent scaffold
#

D: that's sad

honest pawn
#

I think I'm sticking to .status cat

acoustic moss
#

๐Ÿ‘€

vapid nymph
honest pawn
#

What

inland wolf
#

๐Ÿค”

silent plaza
bleak lintel
inland wolf
#

lol

#

he knows.

vapid nymph
inland wolf
#

run while u can boy

silent plaza
#

๐Ÿƒโ€โ™‚๏ธ

latent scaffold
bleak lintel
edgy crest
#

travelling salesman in rust ferrisParty

inland wolf
#

did he manage to sell anything

edgy crest
#

yes

#

he sold ants

#

i mean

inland wolf
#

ant trafficking

edgy crest
#

it is all ants

inland wolf
#

ant right violation

edgy crest
#

so they sold honey or smth idk

inland wolf
#

ants dont make honey

#

but ok

edgy crest
#

wtv

inland wolf
#

ig they just stole it from the bees

#

smart ants

edgy crest
#

yes

inland wolf
#

steal from bees and sell as their own

edgy crest
#

yes

#

nice it works on more points too, and the performance is great

#

ACO is epic

inland wolf
#

aco

acoustic moss
#

very ncie

inland wolf
#

ikr

gritty zinc
edgy crest
#

SFML

gritty zinc
#

gesundheit

edgy crest
gritty zinc
edgy crest
#

yeah

gritty zinc
#

interesting

inland wolf
#

yes

gritty zinc
inland wolf
#

smfl

edgy crest
#

hmm

gritty zinc
#

I wonder how they compare

latent scaffold
#

so fuck my life

inland wolf
#

lol now vinam has to rewrite again

edgy crest
#

i find it comfortable to use sfml

inland wolf
last mantle
latent scaffold
vapid nymph
#

@latent scaffold

latent scaffold
#

VSCode :[

bleak lintel
#

solve those warnings ๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘

edgy crest
bleak lintel
#

Rust compiler warnings are always quite clear though so it's not too crazy

edgy crest
#

yeah

latent scaffold
#

lmao I'm always so picky about solving warnings as soon as I get them

edgy crest
#

not sure what to do about this one rn tho

latent scaffold
#

always gotta have that green check mark

gritty zinc
#

well, depending on what you are doing in None, you can use the .entry way instead of matching on what get gives you

vapid nymph
#

this was the first draft

modern haven
modern haven
#

๐Ÿ˜‚

fossil salmon
#

@quick ridge This is all I like to see when I'm in my terminal. Current working directory and whether I'm in a git repo or not haha

quick ridge
#

๐Ÿ˜ฉ cant function without it lol

fossil salmon
#

Well I can add more features with zsh plugins, but I don't like to see too much information on the screen at once

tribal knot
#

Me: *sees the channel name*
Also me: *ghost ping mods*

quick ridge
fossil salmon
#

yikes...

quick ridge
fossil salmon
latent scaffold
#

Are we talking about prompts

#

cause like

#

oh heck I took that at 4:20

fossil salmon
latent scaffold
#

This message was sponsored by zsh + powerlevel10k

fossil salmon
#

I remember discovering zsh and thinking the powerline themes were awesome so I installed powerlevel9k ๐Ÿคฆโ€โ™‚๏ธ

#

It was a good thing powerlevel10k uses the same configs

latent scaffold
#

lol

#

Love zsh tbh

fossil salmon
#

It's so nice

latent scaffold
#

I eventually should really look into configuring it more, my zshrc feels so empty

fossil salmon
#

Mine is super empty

#

I need to get my git plugin back honestly

#

So helpful

latent scaffold
#

what does a "git plugin" entail?

fossil salmon
#

You could do it all with aliases, but it's easier to just use the plugin

latent scaffold
#

oh, I see

fossil salmon
#

Some bat nice

latent scaffold
#

lmao I couldn't even be bothered to format it

fossil salmon
#

Hahaha

#

Meh

#

Formatting shformatting

latent scaffold
#

At one point, I did care... but now with like poetry, p10k and stuff, I get confused where I'm meant to put things

#

like p10k demands that it be run last

#

or something

fossil salmon
#

Yessss I used to run into that issue a lot

#

But I don't do a lot of configuring anymore

latent scaffold
#

Thankfully zsh is kind of great out of the box

fossil salmon
#

It is

#

I actually stopped using powerline and went for the default theme

latent scaffold
#

it has quite a few built-in prompts

#

if you enable the prompt component, you get the prompt command

#

has some pretty "okay" basic prompts

fossil salmon
#

My biggest issue was how much time I spent configuring things and not actually using them haha

#

I even started getting into ricing which I quit shortly after because it's very time consuming

latent scaffold
#

Yeah, I barely did anything with my KDE "rice"

#

Eventually I just go with "this looks good enough, and it's effective"

fossil salmon
#

Right

solemn leaf
mellow spire
lunar crescent
#

it doesn't work with light mode

inland wolf
#

L

dry flume
edgy crest
brazen ingot
#

@edgy crest which linux distro are you on?

inland wolf
#

manojro

brazen ingot
#

ok

#

@inland wolf how about you?

inland wolf
#

windows

brazen ingot
#

ohk, i am also thinking of shifting to linux distro

inland wolf
#

yes

brazen ingot
#

Well, but I am beginner in using linux os

#

Like fully beginner lemon_pensive

inland wolf
#

contrast moment

rough sapphire
#

Oh, damn

slender vector
inland wolf
#

ayyy

#

i got ubuntu on a non-system drive

#

now i have both linux and windows

#

i can make fun of both sides now ๐Ÿ˜Ž

last mantle
#

imagine using ubuntu wahsadaflol

inland wolf
#

ok

#

bro

acoustic moss
last mantle
inland wolf
#

guys

#

im using apt

last mantle
#

i chose arch/opensuse cuz i hated apt lol

#

imagine doing update && upgrade

rough sapphire
#

๐Ÿ‘‹

brazen ingot
#

@rough sapphire Hello!

#

Is this @distant stump ?

rough sapphire
#

hibrainmon

distant stump
#

No its not me

near bolt
#

for boolean values, when do we use if (!isEliminated) vs if (isEliminated == false)?

gritty zinc
#

well, the latter is more verbose for no reason

near bolt
gritty zinc
#

sure, why not? you can compare two booleans with ==

#

it's just a weird way of doing that

edgy crest
#

yes

near bolt
#

oh ok thx

gritty zinc
#

in Rust, clippy has a lint for this

edgy crest
#

o

#

is clippy nice

gritty zinc
#
    if a==false{
        println!("yay");
    }
warning: equality checks against false can be replaced by a negation
 --> src/main.rs:5:8
  |
5 |     if a==false{
  |        ^^^^^^^^ help: try simplifying it as shown: `!a`
  |
  = note: `#[warn(clippy::bool_comparison)]` on by default
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison

#

clippy is amazing.

edgy crest
#

o, ill give it a try

gritty zinc
#

if you're using rust-analyzer or the Rust extension, you already are using it, I'm fairly sure

gritty zinc
near bolt
rough sapphire
#

Huh

near bolt
#

i always get confused when returning true or false in a loop

#

eg.

bool vote(int voter, int rank, string name)
{
    //iterate through each candidate
    for (int i = 0; i < candidate_count; i++)
    {
        //check if it is existing name
        if (strcmp(name, candidates[i].name) == 0)
        {
            //if name matches, add vote choice to correct location in preferences
            preferences[voter][rank] = i;
            return true;
        }
    }
    return false;
}```
#

like here, you return true in the for loop, but false in the outer loop

#

i want to put false as else under if but at the same time it shouldnt be in the for loop

tranquil orchid
#

The rust-analyzer extension is great

gritty zinc
#

oh, under the if? That's just wrong, that'd mean the loop always ends on the first iteration no matter what

near bolt
#

why is it if we put under else it would end on the first iteration no matter what

gritty zinc
#

...well, in what case will

        if (strcmp(name, candidates[i].name) == 0)
        {
            //if name matches, add vote choice to correct location in preferences
            preferences[voter][rank] = i;
            return true;
        }
        else {
            return false;
        }

not return?

near bolt
gritty zinc
#

not sure what you mean

acoustic moss
#

then it'll return false

gritty zinc
#

show the code you're suggesting then

acoustic moss
#

strcmp(name, candidates[i].name) is either == 0, or != 0
if its == 0, it'll enter the if and return true
if its != 0, it'll enter the else and return false

#

in either case, it ends right in the first iteration

near bolt
#
        {
            //if name matches, add vote choice to correct location in preferences
            preferences[voter][rank] = i;
            return true;
        }
        else {
            return false;
        }```
acoustic moss
#

what about the fact that it always ends in the first iteration

near bolt
gritty zinc
#

cuz you're going to return false anyway
why'd that be the case?

acoustic moss
#

if its outside the loop, then the full loop has to complete before you return false

#

its entirely possible that it would return true at the 5th iteration

near bolt
# gritty zinc > cuz you're going to return false anyway why'd that be the case?

I'm not sure but this is how I see it, I think there's a conceptual error

for this function, if there's a name input that isn't listed in the previous array, it shd return false and it would break completely so it doesn't matter if the subsequent values in the loop are true/false cuz by returning one false value, the program breaks

yeah I'm not sure when we return false, does the program end?

mild abyss
rough sapphire
#

I decided to use an old tablet (6/7 years old) as a second screen to go through some tutorials

#

it's a bit slow... I might format it latter, maybe have it run linux

#

but this left me thinking, is there a way to fight against programmed obsolescence?

#

note: i'm around 30 minutes in, I can't still get a video to play ๐Ÿ˜‚

#

technically it plays, but it's always a youtube add on endless loop

blazing acorn
#

I have an 8-year-old Android tablet that I use mostly as an ebook reader and sudoku player

#

you can install firefox with ublock origin, and youtube works just fine

latent scaffold
rough sapphire
#

it's windows

#

one of the first hybrid asus tablets

latent scaffold
#

oh jeez

tribal aurora
#

what test framework do you guys use for c++? gtest, ctest, cxxtest?

bleak lintel
#

net traffic graphs

latent scaffold
#

what's "ens3" even mean

#

Reminds me of like... ethernet

#

also I see you use Stylus :O
what for?

bleak lintel
#

so slot 0 is ens0

#

etc.

#

you can also get enp1s3 for other types of pci adapters

latent scaffold
#

Interesting. I definitely won't remember that

bleak lintel
#

and then you will also see eth0

#

which is where no firmware information can determine a name

#

oh and eno[1-N] as well

latent scaffold
bleak lintel
#

the whole thing is called predictable interface names so you can consistently script around network interfaces

latent scaffold
#

makes sense

bleak lintel
latent scaffold
#

Yeah, I only have it for a single theme

solemn leaf
#

sus

inland wolf
#

no thoughts on the list

stark oasis
#
โ”Œโ”€[username@box] - [~]
โ””โ”€[$] ubuntu-drivers list

WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
nvidia-driver-450-server, (kernel modules provided by linux-modules-nvidia-450-server-generic-hwe-20.04-edge)
nvidia-driver-460-server, (kernel modules provided by linux-modules-nvidia-460-server-generic-hwe-20.04-edge)
nvidia-driver-465, (kernel modules provided by linux-modules-nvidia-465-generic-hwe-20.04-edge)
nvidia-driver-418-server, (kernel modules provided by linux-modules-nvidia-418-server-generic-hwe-20.04-edge)
nvidia-driver-460, (kernel modules provided by linux-modules-nvidia-460-generic-hwe-20.04-edge)
nvidia-driver-390, (kernel modules provided by linux-modules-nvidia-390-generic-hwe-20.04-edge)

What is this warning and is this a security issue of some kind? package has invalid Support Legacyheader, cannot determine support level

GPU seems to work.

#

Do I need all of those drivers to use 460?

latent scaffold
#

should just be able to like sudo ubuntu-drivers auto-install

stark oasis
#
โ””โ”€[$] ubuntu-drivers --help | grep install | tail -n 2
  autoinstall  Deprecated, please use "install" instead
  install      Install a driver [driver[:version][,driver[:version]]]

I tried to do ubuntu-drivers install nvidia-driver-460 but it just says
no drivers found for this installation

That being said, everything seems to work. I just dont like that warning.

#

I don't want the 390 and anything i dont need

#

These drivers are all installed via apt, but i feel like they are baggage and vulnerable to be left there if not needed

#

well 460 and 390 are there. I think im going to straight up remove 390 and if it breaks, I will fix it in recovery shell.

latent scaffold
#

weird

stark oasis
#

Okay, so apparently its not installed. Maybe the output of ubuntu-drivers list refers to options, not things that are installed... I dont like the warning but I dont know what it means and apparently no one else on the Google does either haha

#

It works so maybe i shouldnt worry about it

#
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
#

what does this mean

stark oasis
#

that makes sense

#

ty

latent scaffold
#

Oh wow, this is kind of epic

quiet tusk
#

Any MTG players in da hood?

#

I need some input on something I'm working on

inland wolf
#

that is cool

latent scaffold
inland wolf
#

intellij?

latent scaffold
latent scaffold
#

this is through the EduTools plugin

inland wolf
#

nice

#

cool stuff

quiet tusk
#

I'm working on building a 6th color of magic for MTG. Its a fun challenge (a hard one too)

#

I'll ask you guys to suspend your disbelief, I know and agree with most of the reasons not to add a sixth color: its just a fun thing to keep me busy is all

#

Anyway, I've toyed around with mechanics but I've decided what I really need to do is define the color's personality first and let the mechanics stem from that

#

Gold is the color of perseverance in the face of adversity. Goldโ€™s truest belief is that anything is possible with only a dream and the will to make it happen. This sense of pragmatism stems from a deep mistrust of the natural orderโ€”one which it believes exists solely to grind down peoples and their achievements. Pragmatic and ever the optimist, Gold seeks to manifest its own destiny through cooperation, wit, and an unyielding will to build a better world.

#

My color is Gold and as it stands right now it sits between Blue and White. I wanted to get you guys thoughts. I know its just one paragraph but I've actually put a great deal of thought into it. As the thesis paragraph for the entire color it should embody all of the core concepts I'd like my color to have

#

Those ideas are, loosely: hard work, endurance, technology, technocracy, mistrust of nature, stubbornness, wit, cooperation, defensiveness, capitalism, social responsibility (taxation will be a fun mechanic to play with), and sustainability

#

The main thing I think I'm missing is the capitalism related stuff ๐Ÿ˜ Not sure how to work it in

gritty zinc
#

it seems to me that unlike the mindsets associated with every other color which can go anywhere from nice to really scary, this one is strictly "good".

quiet tusk
gritty zinc
#

pretty much

quiet tusk
#

The main character flaws I'm trying to work in as of now are pretty weak. That its distrust of nature and its stubbornness leaves it blind to the nuances of the world, and that being capitalist and technocratic, it leaves little room for the weak or for democracy

#

I think the core of what I'm working with is different enough from the other colors to work with. Have you got any suggestions?

gritty zinc
#

you could go further and make them the kind of rational that would, being a ruler, euthanize all the elderly and sick people because they are a waste of resources... but that's kinda White

quiet tusk
#

I mean, I really like the idea of taxation

latent scaffold
quiet tusk
#

For technical reasons I want to stick with capitalism, but communism (the Russian kind) might be a bit more accurate

quiet tusk
#

Pragmatic + Authoritarian = taking from the strong to give to the weak

gritty zinc
#

uhh do you mean the opposite?

quiet tusk
#

I guess so. (I've got competing ideas fighting in my head)

#

I suppose an authoritarian communism works well. China's government is technocratic and nature and the whole idea of communism was supposed to be a better world for everyone

#

And I could take examples from the real world. Especially when it comes to one of white and blue's main intersections, detention (forced tapping, preventing untapping, and preventing creatures from attacking or being tapped)

low chasm
#

hi

#

ok

eager cliff
#

Imagine Like.
Needing to Declare That You Are defining a function.

low chasm
#

amazing, amirite

eager cliff
#

instead of just assuming it based off a name and a () ๐Ÿคช

low chasm
#
fn main() {
}
``` so pretty
eager cliff
#
int main() {

}
low chasm
#

I prefer type declarations with : and -> over type name

eager cliff
#

Rust is one character shorter

#

!

#

like, Python's typehints?

low chasm
#

yeah, rust too

eager cliff
round rose
#

C++ also supports that format

#

auto func() -> returntype

eager cliff
#

exactly why we do not use C++ =D

round rose
#

I'd say that's one of the few things that C++ does right

eager cliff
#

GOD DAMNNN

low chasm
#
fn foo() -> Vec<u32> {
  let mut myvec = Vec::new();
  let mut x: u32 = 10;
  myvec.push(x);
  myvec
}
gritty zinc
#

why mut x

low chasm
#

does C have type inference?

round rose
#

It's a mess, but the -> annotation feels better than whatever that is

low chasm
#

I was intending on chanign it

eager cliff
#

C has no type inference to my knowledge.

low chasm
#

rust better then

eager cliff
#

HRRRRRRRRRRRRRRRRRRRRRRRRRRRRNG

low chasm
#

gotta have the type inference

round rose
#

C++ has auto

low chasm
#

lmao

solid elbow
#

C doesn't have type inference, C++ does.

low chasm
#

hm

#

rust better

round rose
#

yes

latent scaffold
#
fun main(args: List<String>) {
    println("ooga booga")
}
#

did I do that right

low chasm
#

kotlin?

latent scaffold
#

yes

gritty zinc
#

nice

eager cliff
#

we should just return to monke and code in C.

low chasm
#

no

#

only rust

eager cliff
#

anarcho primitivism.

latent scaffold
#

lmfao this language is cool but so much is new to me

round rose
#

Go back, I want to be monke

low chasm
#

Rust can compile to JS, can C do that?

gritty zinc
low chasm
#

fine, asm then

eager cliff
#

your computer is not a fast PDP-11 gang.,

#

BUT WHAT IF IT IS???

gritty zinc
#

it argues that C fails at being a low-level language by not having the right design for modern processors

eager cliff
#

eh yeah honestly i could see that.

#

i never fully read that paper though.

#

but i can see it being true.

solid elbow
#

yeah, any assumption that C will behave the way your hardware behaves is unfounded. It's low level, but it's no longer just a macro assembler

eager cliff
#

also how dare you assume my computer specs. boxneutral

#

not even ANSI C can save us now.

#

truly terrifying times we live in.

solid elbow
#

for instance, hardware has predictable behavior on signed integer overflow, but that's undefined behavior in C, and optimizers can remove code based on an assumption that signed integer overflow wraps

#

This function, for instance:

int add_5(int *x) {
    if (*x + 5 < *x) {
        printf("Overflow detected!\n");
        return 1;
    }
    *x += 5;
    return 0;
}

isn't gonna do what the author expected it to.

#

The optimizer's gonna come along and optimize that to:

int add_5(int *x) {
    *x += 5;
    return 0;
}
eager cliff
solid elbow
#

it'll remove the branch that can only be true if the user's code performs a signed integer overflow, because signed integer overflows are undefined behavior, and so it's allowed to ignore the case where they occur.

latent scaffold
#

I think I'm falling in love

gritty zinc
#

and you can have a sealed class Animal with subclasses Cat and Dog, and then you can match on it!

#

@latent scaffold

fun main() {
    handle(Cat("Whiskers"))
    handle(Dog("Dawg"))
}

fun handle(animal: Animal){
    when (animal){
        is Cat -> animal.meow()
        is Dog -> animal.bark()
    }
}

sealed class Animal(var name: String){}

class Cat(name: String): Animal(name){
    fun meow(){
        println("${this.name} meows!")
    }
}

class Dog(name: String): Animal(name){
    fun bark(){
        println("${this.name} barks!")
    }
}
#

check this out

#

Rust-like enums and pattern matching in Kotlin โค๏ธ

#

note how I didn't need any type casting in handle

#

unlike Java, Kotlin is smart enough to know that inside an is Cat match arm, animal is a Cat and so has meow

#

And what sealed does here is allows us to not include an else arm in that when which would be required for a normal class

#

because with sealed classes, the compiler knows all possible variants at compile-time and so can be sure two arms is all that can happen.

latent scaffold
#

Ohh, that's cool

#

There are so many small things that I'm learning that I find to be really neat

latent scaffold
#

oh yes, that was in the Koan

low chasm
#

CAT CAT CAT

#

CAT AT

#

hm

#

I should learn kotlin

latent scaffold
#

yes

#

I'm liking Kotlin

low chasm
#

hm

#

ok

low chasm
#

cypherial

#

help

#

what jdk do I use

tardy rain
#

Openjdk

low chasm
#

ok

#

what version of jvm

latent scaffold
#

openJDK 16

tardy rain
#

I feel like 15 is the most recent lts

#

Huh 16 is available

latent scaffold
#

17's still in early access

low chasm
#

hm

#

I'm frustrated

tardy rain
#

I guess time flies when youre having fun stuck in a lockdown

low chasm
#

no more kotlin today

#

I fucked up my intellij settings and it wont work

fallow warren
#

ah

latent scaffold
low chasm
#

k

#

bootin intellij

#

some wsl shit

latent scaffold
#

uh... what

low chasm
#

I duno

latent scaffold
#
sealed class Animal(val name: String) {
    init {
        println("Created Animal named `$name`")
    }

    fun speak() {
        when (this) {
            is Cat -> this.meow()
            is Dog -> this.bark()
        }
    }
}

class Cat(name: String) : Animal(name) {
    fun meow() {
        println("${this.name} meows!")
    }
}

class Dog(name: String) : Animal(name) {
    fun bark() {
        println("${this.name} barks!")
    }
}


fun main() {
    Cat("Whiskers").speak()
    Dog("Brutus").speak()
}

I decided to play around with some of sealed class

#

This is great haha

fallow warren
#

I thought this was python
I was so confused

#

Looks great

latent scaffold
#

This is Kotlin

tardy rain
#

Why does kotlin get such colourful highlighting

latent scaffold
low chasm
#

what theme is this

latent scaffold
#

Man, I always thought Kotlin was just "Java but better"

latent scaffold
low chasm
#

i want it

#

ok

#

I need to fix my fucked up settings first though

#

Might just do a complete reinstall

#

I have no idea what the fuck went wrong

latent scaffold
#

it's not IntelliJ

#

it'd be the JDK

low chasm
#

I've installed like 20 jdks

#

none work

latent scaffold
#

What OS?

low chasm
#

windows

#

Its probably because of WSL

latent scaffold
#

ah. I dunno then

low chasm
#

and I can't find the settings where WSL is configured in intellij

#

fuck, I wish valorant worked on linux

latent scaffold
#

I think it's your terminal

low chasm
#

then I might just switch over my PC too

low chasm
#

I changed it to powershell though

latent scaffold
#

ยฏ_(ใƒ„)_/ยฏ

#

I dunno, all I had to do was like sudo zypper in java-16-openjdk or something like that

#

also, EduTools is actually kind of neat

low chasm
#

fuck

latent scaffold
#

yes

low chasm
#

what do i do

#

im in a dilemna

#

why cant linux just take over yet

latent scaffold
#

Yeet WSL

low chasm
#

I'm very tempted at installing arch on my pc

#

but my friends would freak out at me

#

because then no more valorant

latent scaffold
#

I guess just dual boot for a single game

vapid nymph
#

wow

#

a server im in is getting raided

#

with over 50 accounts

#

just mass pinging

#

defintely they are testing if their bots work since there's only 200 total members

#

and 100 of those are bots

low chasm
#

damn

#

kind of sucks, eh

vapid nymph
#

and close and block 87+ people from modmail

#

for all reporting the same thing

fallow warren
#

eh discord moment

vapid nymph
stark oasis
#

Im having a brain fart. What is the word for when a company is legally entitled to get paid if you profit off something because they own its engineering. Like... they have engineered a seed, so farmers must pay them if they sell its fruit
it starts with a t maybe?

#

no, its a patent

acoustic moss
#

were you looking for trademark

solemn leaf
#

there's a better term for it

#

wait lemme thonk

stark oasis
#
var lBuilder = $SM.get('game.builder.level');
        if (lBuilder === 0) {
            Notifications.notify(Room, _(`a ragged stranger stumbles through the door and collapses in the corner. 
            one arm must be slotted with some type of chrome -- an amputated stump -- no, automated SurgOps intelligence, 
            with a Deploy&Maintain strategy to administer PIVC: peripheral intraveinous catheter. loading six rounds into 
            his arm in less than a second, he cocks one back and fires. The orgasmic wave that comes over his eyes could 
            be nothing else but the pink Moderna octogons. a racemic mixture of isotopes for which they own the patent.`));
            lBuilder = $SM.setget('game.builder.level', 1);
            Engine.setTimeout(Room.unlockCity, Room._NEED_OCTOGONS_DELAY);
        }
        else if (lBuilder < 3 && $SM.get('game.stability.value') >= Room.StabilityEnum.Insecure.value) {
            var msg = "";
            switch (lBuilder) {
                case 1:
                    msg = _(`the stranger shivers, and mumbles quietly. their words are unintelligible. 
                    an s-deck in their pocket chimes with alert every few seconds: \"warning: 
                    battery at 5%. disconnection from net violates terms of service and may affect your credit. 
                    our policy has been updated.\" `);
                    break;
                case 2:
                    msg = _(`the stranger crawls to an outlet plug and ports in his s-deck in the fetal position. 
                    upon powering on with a familiar start up sound, the device begins to send alerts 
                    with such regularity that as the stranger begins snoring where he lie on the ground, 
                    it's a relief to hear else but the frequent jingles from a proprietary deck.`);
                    break;
            }
graceful trout
quick scroll
#

hey guys, anyone here interested in collaborating on an open source project using Next.js, TS and GQL? It's a really cool project and would be amazing if you could dm me if you're interested :)

clear plume
lavish talon
#

Aint valorant a rootkit?

vapid nymph
near bolt
#
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
   char s[200];
   scanf("%s", s);
   char *t = "Hello World";
   if (strcmp(s, t) == 0)
   {
       printf("OK");
   }
   else
   {
       printf("Wrong Answer");
   }
}```
#

idk why but when i input Hello World, it shows the output Wrong Answer

#

did i do sth wrong somewhere

rough sapphire
#

see what is answer? print strcmp

near bolt
rough sapphire
#

print the difference. strcmp(s, t)

near bolt
rough sapphire
#

okay if im not mistaken a string ends with that character

#

add that in Hello World

#

hold on

#

\0

#

"Hello World\0"

near bolt
near bolt
#
int main(void)
{
    char *names[] = {"Bill", "Charlie", "Fred", "George", "Ginny", "Percy", "Ron"};

    for (int i = 0; i < 7; i++)
    {
        if (strcmp(names[i], "Ron") == 0)
        {
            printf("Found\n");
            return 0;
        }
    }
    printf("Not found\n");
    return 1;
}```
#

this works

near bolt
rough sapphire
#

i'll need to think, im currently kinda stuck in my own shit, gimmi some time to get back to you.

near bolt
#

ah ok no rush thanks

inland wolf
#

good day

#

what seems to be the issue

near bolt
#
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
   char s[200];
   scanf("%s", s);
   char *t = "Hello World";
   if (strcmp(s, t) == 0)
   {
       printf("OK");
   }
   else
   {
       printf("Wrong Answer");
   }
}
#

for this

inland wolf
#

yes

near bolt
#

when i input Hello World

#

it shd give out OK

inland wolf
#

yes

near bolt
#

but the output was wrong ans

inland wolf
#

try making char *t = "Hello World\n"; instead

near bolt
#

hm it still prints wrong ans

inland wolf
#

hmm

#

OHH

#

can u send me a screwenshot of ur prgramming runnig

#

@near bolt

near bolt
#

when i put \n it's the same output

inland wolf
#

can u print out what scanf read

near bolt
inland wolf
#

yea

#

so

#

thats how scanf works

#

scanf only consumes non-whitespace characters

near bolt
#

ohh i see

#

i think i can use a loop

#

to get 2 words

inland wolf
#

yes

#

if u were running this program locally

#

u wouldve already recognied the issue

rough sapphire
#

or may be you can make a while loop and getc thingy

#

read till null char

near bolt
#

oh yeah

inland wolf
#

yes

gritty zinc
#

I wonder what game can I write an AI for

#

I want some game I play so that I can measure its performance

#

chess would be awesome - it is very well researched, would be implementing something like alpha-beta pruning...

#

problem is, I don't play chess ๐Ÿ˜”

rough sapphire
#

alpha beta pruning would be kinda....

#

bud do you imagine how much nodes

#

i made alpha beta prunning on ttt

#

but chess. well environment can be made in a while but dude, alpha beta pruning.

#

imagine the no of nodes only on first move

gritty zinc
#

uhh, it's used for chess anyway though, I'm pretty sure

rough sapphire
#

it is?

#

is alpha go built on alpha beta pruning?

gritty zinc
#

the Wiki article for A/B uses chess as an example, and also I think I saw in the description of some chess AI (Deep Blue, I think?) that it uses it

#

Deep Blue used custom VLSI chips to execute the alpha-beta search algorithm in parallel,[12] an example of GOFAI (Good Old-Fashioned Artificial Intelligence).
yup

rough sapphire
#

wow

#

if you do make it, ping me i'd love to see it.

gritty zinc
#

that fills me with dread somewhat lol

#

like I said though, no idea if it's a good idea for me to do it for chess

#

I'd need to start with doing a chess engine...

rough sapphire
#

did you do it for some small game?

gritty zinc
#

nope. I've never implemented classic searches, that's why I want to

acoustic moss
#

isn't alpha beta pruning just bruteforcing but skipping a few routes
idk

gritty zinc
#

hmm, some codingame tasks are probably about it

rough sapphire
acoustic moss
#

somedayโ„ข๏ธ i'll try learning this stuff well

rough sapphire
#

thats why i kinda like AI more than the underlined ML

gritty zinc
#

lol

#

I did implement a genetic algorithm

rough sapphire
#

which one?

#

try best first and A* too btw, heuristics are fun.

gritty zinc
rough sapphire
#

oh yeah i think you shared video no?

gritty zinc
#

yup

rough sapphire
#

yeah i've seen it, i was confused how all this UI

gritty zinc
#

that's a video of the site's UI

rough sapphire
#

which algo btw?

gritty zinc
#

not sure what you mean by that

rough sapphire
#

which algorithm?

gritty zinc
#

are there, like, distinguished algorithms among "genetic algorithms"?

#

it's just, like... generating some totally random chromosomes (each gene encoding an action), evaluating them, then crossing them over and mutating them for many generations

rough sapphire
#

oh, i never had this algo

#

ima check this thanks.

gritty zinc
#

what algorithms do you think of when someone says "genetic algorithms"?

#

like, I wasn't even aware there are any specific ones

rough sapphire
#

i thought you meant generic algos like bfs, dfs, best first, A* and some more

#

like these are all with what i started AI

gritty zinc
#

ah, genetic, not generic ๐Ÿ˜…

rough sapphire
#

yeah thats why i was confused

gritty zinc
#

basically genetic algorithms are a fancy way of local search, like simulated annealing and beam search

rough sapphire
#

ah i do know stimulated annealing

#

oh yes small probability

#

like annealing i see

acoustic moss
#

would you say that implementing a simple neural network is a good starting project for someone with no experience of ai/ml

acoustic moss
#

oh rip

rough sapphire
acoustic moss
#

aight then

rough sapphire
#

you can get result with libraries easily(using NN and CNN) but not knowledge

acoustic moss
#

what would you suggest as a first project ๐Ÿค”

rough sapphire
#

i can tell you what my sir did to us.
make environment first for small problem, then make agents like bfs and dfs with backpropagation.

#

(making environment and agent separate helps a lot) you don't need to make agents again and again for new problem.

gritty zinc
#

in genetic algorithms:

  1. You have a pool of solutions, not one. I do from 100 to a few thousand
  2. Instead of just mutating solutions, you also cross them over (apply some binary function that takes two solutions and produces one or two or several "children")
  3. After generating the children on each step, you select the next generation from the previous one and the children. This is usually done in a mixed elitism-and-random fashion - say, take the top 20% solutions and also 30% of the other ones randomly. Or always take the children. Or some other way.

so this is a very broad category, broad enough that technically you could consider similated annealing and gradient descent to belong to it - they are just weird variants where the population size is 1, there's no crossover, and the mutation and selection function are very specific

inland wolf
#

same

gritty zinc
#

(this is skipping a few steps, such that the selection of parents of the next generation is also an arbitrary function)

#

(I have done totally random, weighted by evaluation score, and best-2-of-random-4)

rough sapphire
#

i see, so can we not pass a function to check solN? thats what i did in some algos.

#

because there can be a LOT OF possible solN strings

gritty zinc
#

what do you mean?

rough sapphire
#

assume possible SOLNs for chess

#
  1. You have a pool of solutions, not one. I do from 100 to a few thousand => this
#

instead of checking if we reached from a pool of solNs can we not just pass a function which just tells us if that is a solN? it seems more efficient to me.

#

because as we increase space, the no of solutions can increase exponentially or may be follow even H.

gritty zinc
#

by a pool of solutions, I mean, like, a pool of different actions/action sequences/whatever each chromosome is

rough sapphire
#

oh so possible next actions.?

gritty zinc
#

like, in my lander, each chromosome is an action sequence of a fixed length

#

(long enough to predict the entire path to the landing)

rough sapphire
#

ah i see.

#

alright so we define them and do cross over and then mutate over probabilities

#

similar to annealing.

gritty zinc
#

this shows, for each step of the flight, what the population was at the end of that step

#

note that far more than one generation passes between each flight timestep

#

each path is colored from red to yellow according to utility, and valid landing paths are green

#

in this case, it was able to plan a landing on the first frame