#ot2-the-original-pubsta

652 messages ยท Page 54 of 1

jovial island
#

makes it think its just a regular usb drive

#

so i think i can burn an iso in this

#

and boot from it

hazy laurel
#

RIP your phone when you have to format the drive

languid osprey
#

Ah yes, who needs phones anyways? My phone is now a flash drive

jovial island
#

well its just gonna be an installation media

languid osprey
#

Eh

hazy laurel
#

yes and you have to format for that

languid osprey
#

Technical details

jovial island
#

no?

hazy laurel
#

yes

jovial island
#

oh nah nah

#

it isolates from the other files

hazy laurel
#

\๐Ÿค”

jovial island
#

kinda terrible to explain

hazy laurel
#

That doesn't make much sense to me

jovial island
#

id love to vc and show it to you

hazy laurel
#

me? vc?

jovial island
#

perhaps

hazy laurel
#

Chase Atlantic amirite

#

who's vc

#

idk her

jovial island
#

look

hazy laurel
#

this is a gr8 song btw. 10/10 would recommend

jovial island
#

to make things simple:

#

using root privileges

#

allocate some of the space from the internal sd

#

create a separate partition

#

enable usb debugging

#

use root privileges to mount the new partition as a mass storage device

hazy laurel
#

I wouldn't be so clueless if my Samsung could be rooted

jovial island
#

hopefully format that partition

hazy laurel
#

but nope

jovial island
#

and drag and drop the files there

hazy laurel
#

I live in America of all countries

#

stupid Samsung

jovial island
#

here im gonna try loading arch linux into it

#

and show you

hazy laurel
#

oh my

jovial island
#

for the record

#

doing that because arch is like 500 mb

#

nevermind holy shit its 800 megabytes now

#

da fuck they doin

hazy laurel
#

Arch packages are bigger than other packages

sullen gate
#

I uSE UbuNTu

jovial island
#

okay imma record a video to show you

languid osprey
#

Fools, I use Hanna Montana linux

jovial island
#

i use hot wheels linux

sullen gate
#

I am Also BEGINNEr To LInUX

languid osprey
#

:P

#

We love beginners here

hazy laurel
hazy laurel
sullen gate
languid osprey
hazy laurel
#

yes

#

Hanna Montana needs her sleep

languid osprey
#

Id like to call it advertising

languid osprey
sullen gate
#

adveRTECIsSINgG

languid osprey
jovial island
#

uh what

#

i was recording a video and my phone blacked out on me

#

mf was at 80% charge what

sullen gate
#

i Was gonna download Gnome Manjaro but instead I downloaded Ubuntu 20.04 not LTS because I forgot it meant Long term Support and thought it was limited time support :/

median blade
#

Good

sullen gate
median blade
#

Manjaro has ass support

jovial island
hazy laurel
jovial island
#

yeah i dont think ill be doing that

languid osprey
#

Why the fuck manjaro

sullen gate
hazy laurel
#

see and nobody believes me

languid osprey
#

Just use a different os with gnome

hazy laurel
#

99% of Manjaro users get Manjaro because of the DE defaults

sullen gate
#

didnt know anything about Manjaro att

hazy laurel
#

or should I say... DEfaults

jovial island
#

i get it girls, you're all pretty but

languid osprey
jovial island
#

uh my phone dont wan turn on

hazy laurel
#

:T

languid osprey
hazy laurel
jovial island
#

it happened while i was recording a video

languid osprey
#

Lol

jovial island
#

100% unrelated to me fucking around with root privileges

dusky cliff
hazy laurel
#

They don't call me "Nick Jonas, the clairvoyant" for nothing

median blade
#

K

jovial island
#

rust is a terrible programming language

hazy laurel
#

WHY K

jovial island
#

i mean the name says itself

#

rust

#

old

#

bad

languid osprey
median blade
#

Cuz k

languid osprey
#

What in the actual fuck

hazy laurel
#

hate that

jovial island
#

the name dude

#

read between the lines

languid osprey
#

What in the fuckity fuck

hazy laurel
#

Hate when people respond with "k" or "ok"

languid osprey
#

Rust is amazing

jovial island
#

the fuck did you just say about rust, you little shit?

hazy laurel
#

uh oh

#

Who's Rust

jovial island
#

ill have you know

hazy laurel
#

oh yes I've made 0 progress in learning Nim

languid osprey
#

Rust is an amazing language

jovial island
#

i graduated top of my classin the navy sels

languid osprey
#

Have you heard of memory safety before

cerulean panther
jovial island
#

ive been involved in numerous raids in al qaeda

languid osprey
jovial island
#

i have over 300 confirmed kills

languid osprey
odd sphinx
#

honestly

#

java is better than rust

jovial island
#

he's right

languid osprey
#

OK what in the actual fuck

#

You don't deserve to be in ot

jovial island
#

you know

#

perhaps i should go sleep!

languid osprey
#

Yes maybe

jovial island
#

because its like

#

3 am

#

or some shit

#

bye

languid osprey
#

It's 1:42 am for me

languid osprey
odd sphinx
languid osprey
#

It's a weekend, who needs sleep?

hazy laurel
#

fair point

languid osprey
#

I need to advertise rust as much as I can

hazy laurel
#

wait quick question

cerulean panther
hazy laurel
#

can one be home alone if they have pets

languid osprey
#

Hm

odd sphinx
#

classic rustaceans ๐Ÿ˜’

languid osprey
#

Well then they aren't alone are they

hazy laurel
#

home alone + pets or... home with pets

dusky cliff
jovial island
#

10 seconds after i say ill sleep my phone turns on

hazy laurel
#

I am home alone

#

with pets

dusky cliff
#

hi home alone i'm dad

jovial island
#

fuck it ill just buy a USB drive tomorrow

hazy laurel
cerulean panther
#

lol

hazy laurel
#

actually now I think I'm lactose intolerant

#

it better be almond milk or something

dusky cliff
#

okbr

#

i'll get you chicken milk

hazy laurel
#

oh

#

is that a thing?

sullen gate
#

tf is chicken milk

#

ahem MELK i meant

hazy laurel
#

Surely chickens don't have milk

#

they've got no nipples, do they

wide totem
#

Yay panic attacks

sullen gate
#

Unless you mean...

hazy laurel
#

OH NO

sullen gate
dusky cliff
hazy laurel
#

oh no ;-;

dusky cliff
sullen gate
#

OH SHI-

hazy laurel
#

Mr. Sir \๐Ÿ˜ญ

sullen gate
#

Bruh

#

!bonk @dusky cliff

dusky cliff
#

;)

sullen gate
#

it didn't work?

#

MAn

#

Unfair

#

Poopoo command lol

hazy laurel
#

surely that's not a self-bot

dusky cliff
#

thou shalt not bonk me
-me

dusky cliff
languid osprey
#

Lmao

hazy laurel
#

am I high

sullen gate
#

prob

dusky cliff
languid osprey
#

Thou shall not bonk

hazy laurel
#

hah

#

I see

sullen gate
#

How to find ID of Man

dusky cliff
#

right click and copy id

languid osprey
#

Anyways, it's almost 2 am, and im getting sleepy, gn yall :D

dusky cliff
#

sleep is for the weak

hazy laurel
#

You know

sullen gate
#

Y e s

languid osprey
hazy laurel
#

I wonder if that ever originated as "sleep is for the week"

#

and no sleep is for the weekends

dusky cliff
#

why would people not sleep on weekends tho

sullen gate
hazy laurel
#

no work, no school

dusky cliff
#

if anything they'd sleep more

languid osprey
#

Lmao

hazy laurel
#

you can stay up on weekends

sullen gate
#

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

languid osprey
#

I stay up late on weekends

sullen gate
#

Y E S

hazy laurel
#

I stay up late every day hahaha

sullen gate
#

ahahhahahh

Cries in dead inside

hazy laurel
#

yes

languid osprey
#

Anyways, bye fr now

dusky cliff
#

sure

#

now that aboo is gone

#

rust is terrible

hazy laurel
#

yes

sullen aurora
#

.topic

rustic harborBOT
#
**If you could travel anywhere in the world, where would you go?**

Suggest more topics here!

sullen aurora
cerulean panther
sullen aurora
#

ok

hazy laurel
#

that's just a command to come up with a random topic for conversation

sullen aurora
#

oh okokok

hazy laurel
#

The off-topic channels don't really have a topic

sullen aurora
#

ok

misty urchin
#

You cooud say it's undefined

tranquil ridge
woven hornet
#

can i ask a java qn here

#

when do we use static void myMethod()
or
static variabletype methodname(variabletype variablename)?

#

both are for defining a method

cerulean panther
cerulean panther
dusky cliff
#

also note that the static keyword isn;t necessary

#

If you use the static keyword, the method gets attached to the class
If you don't use it, the method gets attached to individual instances (objects) of the class

odd sphinx
#

ye

dusky cliff
#

ye

tranquil ridge
#

ye

cerulean panther
#

ye

woven hornet
#

oh okay thanks!!

odd sphinx
#

epic

woven hornet
#
public class lesson0 {
    static int add(int firstnum, int secondnum) {
        int sum = 0;
        for (int i = 0; i <= secondnum; i++){
            sum = firstnum + 1;
        }
        return(sum);
    }

    public static void main(String[]args) {
        int a = 4;
        int b = 10;
        int c = add(a, b);
        System.out.println(c);
    }
}
#

im not sure why the output gives 5

#

it should be 14

#

im creating a loop to add 1 to 4 ten times

dusky cliff
#

sum = firstnum + 1
this just does sum = 4 + 1 in every iteration

odd sphinx
#

because u are setting sum to the value of firstnum + 1 every time u loop

dusky cliff
#

in every iteration, you want to set sum to its current value + 1

odd sphinx
#

so that would be sum = sum + 1

#

or in shorthand: sum += 1

dusky cliff
#

or sum += 1
or sum++

odd sphinx
#

or even shorter sum++

woven hornet
#

ah i see okay i get it

dusky cliff
odd sphinx
#

or even shorter return firstnum + secondnum;

dusky cliff
#

lol

woven hornet
#

yeah it was a constraint

#

can't add directly

#

thanks guys!

odd sphinx
#

or even shorter System.out.println(10 + 4);

#

np

dusky cliff
#

or even shorter System.out.println(14);

odd sphinx
#

hmm

#

now how would u shorten that

#

System.out.println(0xe);

#

nop

#

if the 0x wasnt there it would be smaller

dusky cliff
#

System.out.print(14) kekw

odd sphinx
#

no

#

it has to \n

dusky cliff
#

says who

odd sphinx
#

me

dusky cliff
#

ok

odd sphinx
#

ha

#

u know when u drink a hot beverage

#

and ur tongue burns

#

but for some reason u continue drinking

dusky cliff
#

no

odd sphinx
#

and now ur tongue cant taste anything

hazy laurel
#

Java :faint:

odd sphinx
#

damn

hazy laurel
median blade
#

dart better 100%

dusky cliff
#

๐Ÿคฎ

odd sphinx
#

yea

hazy laurel
#

Just about everything's better than Java

jovial island
#

ู‡ู†ุง ูŠุฃุชูŠ ุงู„ุฑุฆูŠุณ

odd sphinx
#

ye

jovial island
#

ู‡ู†ุง ูŠุฃุชูŠ ุงู„ุฑุฆูŠุณู‡ู†ุง ูŠุฃุชูŠ ุงู„ุฑุฆูŠุณู‡ู†ุง ูŠุฃุชูŠ ุงู„ุฑุฆูŠุณ

dusky cliff
#

no

#

english only

hazy laurel
#

I understand completely

odd sphinx
#

ikr

dusky cliff
#

otherwise bonk

jovial island
#

ุฃุบู„ู‚ ูˆุงูุนู„ ู…ุง ุฃู‚ูˆู„

median blade
#

lol

dusky cliff
#

bonk

median blade
#

bot?

jovial island
#

ุฑุงุฆุน. ู„ุทูŠู

odd sphinx
#

bruh is he using google translate

median blade
#

might be a bot

hazy laurel
#

I wonder if he realizes that he misspelled enlightenment

odd sphinx
#

lol

dusky cliff
#

lol

round moss
#

@jovial island hello, please keep all conversation on the server in english.

jovial island
#

ุฃู†ุชู… ูŠุง ุฑูุงู‚ ุฃูุถู„ ุฃุตุฏู‚ุงุก ุงู„ู„ู‡

dusky cliff
#

bruh

hazy laurel
#

:|

jovial island
#

@round moss ok

#

ุฃู†ุชู… ูŠุง ุฑูุงู‚ ุณุชุฒูˆุฑูˆู† ุงู„ู„ู‡ ู‚ุฑูŠุจุงู‹

odd sphinx
#

speak ุงู„ุฅู†ุฌู„ูŠุฒูŠุฉ bro

#

damn i used to know arbic

#

now i forgot ๐Ÿ˜”

round moss
#

!mute @jovial island 12h you were already told to keep it english.

clever salmonBOT
#

:incoming_envelope: :ok_hand: applied mute to @jovial island until 2021-05-15 20:00 (11 hours and 59 minutes).

hazy laurel
#

was that... a threat?

dusky cliff
#

was what a threat

median blade
#

e

odd sphinx
#

perhaps

dusky cliff
#

o

#

idk

hazy laurel
#

Google Translate said "You guys will soon be visiting God"

dusky cliff
#

hm

odd sphinx
#

same

hazy laurel
#

oh well. if it's just a visit

odd sphinx
#

ikr

median blade
#

damn, so considerate

odd sphinx
#

just a visit

hazy laurel
#

that's on the implication I'll be back

odd sphinx
#

ye

#

it includes a return trip

hazy laurel
#

๐Ÿ‘๐Ÿฝ

dusky cliff
#

nice

#

bring back some souvenirs

odd sphinx
#

ye

#

some heavenly chocolate

hazy laurel
#

Pearls, from the pearly gates

dusky cliff
#

ambrosia

hazy laurel
#

Forbidden fruit

odd sphinx
#

and a trident

dusky cliff
#

and my axe

hazy laurel
dusky cliff
#

poseidon can be visiting the skies too

odd sphinx
#

ikr

dusky cliff
#

you might carpool with him on the way

hazy laurel
#

so he just...

#

swims up there?

dusky cliff
#

ye

hazy laurel
#

flying = swimming in the sky?

dusky cliff
#

ye

hazy laurel
#

There's gotta be a Bruno Mars song for this

odd sphinx
#

ye

dusky cliff
#

lol

#

bruno mars is vibe

hazy laurel
#

he's 199.08 million miles away from us

odd sphinx
#

brij

hazy laurel
#

no

#

we don't need a 199.08 million mile long bridge

odd sphinx
#

we can just believe

#

and get there

hazy laurel
#

wake up in the sky

woven hornet
#

sry i have another qn

#
public class q2 {
    static int fib(int x) {
        if (x<=1){
            return x;
        }
        else {
            return fib(x-1) + fib(x-2);
        }

    }

    public static void main(String[] args) {
        int x = 10;
        System.out.println(fib(x));
    }```
#

i tried using recursion to get the term in a fibonacci series

#

i got 14 for the tenth term

#

but it shd be 55

dusky cliff
#

your code outputs 55 for me lol

#

didn't even change anything

#

you sure you're running the correct file?

#

14 was (correctly) printed in your last code too

odd sphinx
#

yea

woven hornet
#

im using intellij

#

and it's my first time

#

i have a few classes

#

when i try to run the java class q2 for eg.

#

it runs another class instead?

dusky cliff
#

are you sure you're running class q2

#

i've never tried it but I think it should complain if more than one classes has a main(String[] args) method

woven hornet
dusky cliff
#

maybe remove/comment out the main method in all other classes

woven hornet
#

im quite confuse, is it a class is synonymous to a file for python

dusky cliff
#

java?

woven hornet
#

when i add a class in java, it's like adding a file in python?

woven hornet
#

but when i add a file in java, it's like a folder?

odd sphinx
#

yea in java u usually write classes in seperate files

dusky cliff
#

not really
you can have multiple classes in the same file, but only one of them can be public

mostly tho each class is one file

#

@woven hornet send a screenshot of your intellij window

dusky cliff
#

how are you running btw

#

are you clicking on run in the top right corner of the window

odd sphinx
#

cant u choose which class to run

dusky cliff
#

you can

odd sphinx
#

is there a dropdown next to the run button

dusky cliff
odd sphinx
#

that lets u choose

#

aha

#

there is

#

i guessed that btw

dusky cliff
#

nice guess

#

bro

odd sphinx
#

B)

#

okbro

woven hornet
#

after i press this

odd sphinx
#

wait but thats right

#

or is it breaking becase q4 has errors

woven hornet
#

it goes to another class

woven hornet
#

but im not at q4 yet

dusky cliff
#

ye it tries to build the whole project before it runs

woven hornet
#

i just want to run q2

woven hornet
#

so i shd create a new file

dusky cliff
#

maybe just comment out everyhting in q4 for now

odd sphinx
#

ye

woven hornet
#

okay lemme try

odd sphinx
#

whats the shortcut for commenting in intellij

#

ctrl+/ ?

dusky cliff
#

just put a /* at the top and */ at the bottom

#

mutltline comments ok_handbutflipped

#

ctrl / should also prolly work lol

odd sphinx
#

yes

woven hornet
#

yup now it gives q2 output thx

odd sphinx
#

nice

dusky cliff
#

epic

woven hornet
#

but its strange

#

cuz when i try to run q0

dusky cliff
#

๐Ÿค”

woven hornet
#

it gives q2 output

dusky cliff
#

lol

woven hornet
#

so does it always give the last output

dusky cliff
#

run it with the green button next to the class name

#

instead of the button in the top right

woven hornet
#

oh yup it works

woven hornet
dusky cliff
#

they're prolly the same

woven hornet
#

oh okie got it thx!

dusky cliff
#

:nice:

odd sphinx
#

:epic:

hazy laurel
#

I think maybe I might tackle learning vim

#

do I really want to, though

round moss
#

if you have some time to waste, sure

hazy laurel
#

I always feel like learning it when I'm really tired hahaha

round moss
#

I also feel like doing things the most when tired

hazy laurel
#

My main issue with vim is that I'm not the most proficient of keyboarders... I feel like I'd lose more time not using my mouse

#

My drive for learning vim, though... is that maybe I want to start working with Nim and see how things are on vim (or nvim) compared to VSCode and IntelliJ IDEA

dusky cliff
#

nim on vim

hazy laurel
#

yes.

#

nimvim

dusky cliff
#

yes

median blade
#

Eh use vim keybinding on vscode like Zee does

#

That's the best way

hazy laurel
#

but

median blade
#

Vim in itself ....

hazy laurel
#

I don't like VSCode

median blade
#

Then use JetBrains + vim

hazy laurel
#

but Nim doesn't work well with JetBrains

median blade
#

Bruh

#

Why do you not like vscode

hazy laurel
#

lol I can't even use PyCharm to create an empty Nim project

odd sphinx
round moss
#

the main advantage of knowing vim is that you can use any editor without learning a new set of keybinds

median blade
hazy laurel
#

idk, just not much of a fan of needing to configure everything a specific way

median blade
#

Wha

odd sphinx
#

funny

median blade
#

It's just extensions

hazy laurel
#

some things are a little annoying to configure, though

#

specifically build and run tasks

median blade
#

Huh

round moss
#

vsCodeVim is really obnoxious to configure

median blade
#

Hmm

odd sphinx
#

theres configuration?

round moss
#

yup

odd sphinx
#

what do u configure

median blade
#

It has its own init vim right?

odd sphinx
#

also @median blade if u set ur cursor to have animation

round moss
#

didn't find a .vimrc parser for it

median blade
#

Hmm

round moss
#

had to write their crappy json

odd sphinx
#

with vim it will look epic

#

o i never used a .vimrc

median blade
#

Like vscode vim?

odd sphinx
#

i just use it for the keybinds

#

and i didnt map any new keybinds

#

maybe i could

median blade
#

I find copy paste stuff annoying in vim

#

Have it disabled till u learn how to do that

#

I always bind escape to ii

round moss
#

l put space f for format, space r for run, jk for normal mode, enabled easymotion

median blade
#

ah I never use run in vim

odd sphinx
#

whats easymotion?

median blade
#

Always have a terminal at the side using tmux

#

I got some errors usign vim run

hazy laurel
#

lol I always trip up on the hjkl keybinds because of Brawlhalla

#

since I use jkl;

median blade
#

There is no need to use those tbh

odd sphinx
#

i just use arrow keys lol

hazy laurel
#

I wonder what it's like to just use wasd

median blade
#

I would like that

odd sphinx
#

same

median blade
#

Or anything that feels like arrow keys

#

Instead of a row

hazy laurel
#

yes because hjkl feel super weird to move with

#

I'll always think h is up for some reason... and j down

round moss
#

I very rarely hl tbh

#

I just use ^$IA and wb instead

hazy laurel
#

which is why I'd think hj are up/down

#

because they'd be the most used

round moss
#

the home position is jk for me

dusky cliff
#

arrow keys are really weird to move around with on my laptop's keyboard
like
the up and down are scrunched up into the space that normally a single key takes up

odd sphinx
#

ah yea

#

i hve that in my laptop too

#

jut use an external keyboard

dusky cliff
#

wasd for lyf

odd sphinx
#

yes

hazy laurel
#

Ah, that's handy

#

if you wanna make a file within a folder and also create the folder

#

you can put the folder in the name

#

like when I wanted to make main.nim in an src/ dir... I'd make a new file named "src/main.nim"

round moss
#

yup

odd sphinx
#

ye

hazy laurel
#

Okay, so WebStorm works with Nim

#

but PyCharm Professional and IntelliJ IDEA Ultimate do not

round moss
#

fascinating

hazy laurel
#

IntelliJ actually had this weird bug where I really just couldn't have a Nim file with more than one line

odd sphinx
#

spectacular

dusky cliff
#

lol

hazy laurel
#

ah yes. I already found a bug... and that's if you hit enter inside of a multi-line comment, it adds another closing to the multi-line comment even if there is already one

odd sphinx
#

remarkable

cerulean panther
#

lol

hazy laurel
visual oak
#

what is going on here

odd sphinx
#

icecream

visual oak
#

๐Ÿฆ

#

Im actually eating ice cream right now

hazy laurel
#

yes

odd sphinx
#

nice

visual oak
#

eating ice cream while im in joe's garage

cerulean panther
odd sphinx
#

agree

hazy laurel
#

Is it Nim that does the "result variable is returned" thing

#

ah yes.

proc foo(): int =
    result = 64

assert foo() == 64
odd sphinx
#

ye

pallid violet
cerulean panther
#

das not python afaik

pallid violet
cerulean panther
pallid violet
cerulean panther
#

np

pallid violet
#

c)

jovial island
#

oh man

#

my brain does not appreciate only 5 hours of sleep

pallid violet
#

i slept for like 9 hours

crisp vessel
#

I wonder how long it would take to read Python's official documentation

round moss
#

a pretty long time, it has hooks into pretty much all of posix

crisp vessel
#

I'm planning to read it all

radiant socket
#

but why

round moss
#

well, start with modules that don't hook into the OS

crisp vessel
round moss
#

sure

radiant socket
#

might as well read 3.9

#

but again, why

crisp vessel
#

I wanna get better also to fill my knowledge gap

radiant socket
#

that's not how you get better

jovial island
#

reading the entire documentation isn't gonna make you a python god

#

you can't simply retain that much knowledge

#

in one sitting

#

the sad truth is

radiant socket
#

or multiple

jovial island
#

there's not a magical method that will instantly make you better

#

it's the same thing with school

#

just study

#

and study

#

and study

dusky cliff
#

and coffee

jovial island
#

and of course

crisp vessel
#

I won't read the documentation on one sitting yert

jovial island
#

don't bite more than you can chew

jovial island
crisp vessel
#

I will do one chapter a day or smth

jovial island
#

trust me

#

you won't retatin the information

crisp vessel
#

I don't think you know how I study by reading yert

#

I use feyman technique

round moss
#

well, enjoy yourself. If you run into something you don't understand, feel free to ask here, there are some passages which are really written for people who already know things

crisp vessel
jovial island
#

yeah

#

uh pydis has a resources page

#

which contains a lot of reading material

#

you might wanna take a look at

#

it

#

!resources

clever salmonBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

crisp vessel
#

Another reason I use docs because they have in-depth stuff which is hard to find unless you buy these books

jovial island
#

good luck soldier

crisp vessel
#

Also people(YouTubers) almost always say the same thing For must stufflemon_angrysad

crisp vessel
radiant socket
#

you cannot get better by passive learning

#

you have to actually make projects

worn sluice
#

delete discord

cerulean panther
#

make your own and don't invite people, there your alone now

#

not really

worn sluice
#

um

#

ok?

#

u might get a warned for that but

cerulean panther
#

its not funny, its just unusual

worn sluice
#

u canโ€™t just spam memes

#

like ur asking for a warning

sinful sun
#

Bro

radiant socket
#

cool

lucid osprey
#

hello.

#

Is there something like a 'markdown viewer' I can download? I just want to preview .md files.

#

locally, without the use of internet.

sinful sun
#

Vscode has an extension for that i believe

#

Actually not sure its an extension or a builtin thing

low sleet
#

I think VS Code does it out of the box, PyCharm does too

lucid osprey
#

sweet, I'll just search in the extensions.

low sleet
#

Sublime has a plugin afaik

lucid osprey
lucid osprey
#

ayy stelercus is now a project lead

cerulean panther
#

noice

elfin vine
#

Any tips on a Python debugger? The one in Visual Studio Code I can't figure out how to like go into a function. For example: ```
def a():
print('oops')

a() # breakpoint, how do I follow into a?

#

None of: Step Over, Step Into, Step Out all just jump to the next breakpoint

#

I want to follow the code each line, without setting a breakpoint on every line ever

elfin vine
#

I don't like PyCharm, but at least I can appreciate its debugger

vague shadow
#

So you put a breakpoint on line 4, and step into doesn't work for you?

#

I've just tried it on my vscode and it's gone into a() for me

vague shadow
elfin vine
#

Yeah, idk. I'll double check ๐Ÿคทโ€โ™‚๏ธ

odd sphinx
#

for step into, step out and step over

vague shadow
#

They said that didn't work already, None of: Step Over, Step Into, Step Out all just jump to the next breakpoint

#

Clearly they know about the existence of these buttons

wide totem
#

huh

#

i can't

#

actually

#

test

#

this

clever salmonBOT
wide totem
#

custom logging levels how

scarlet totem
#

uh

#

welp that doesn't work

wide totem
#

๐Ÿค”

#

oh

#

no.โ€ฆ

#

hm

#
# Configure the "TRACE" logging level (e.g. "log.trace(message)")
logging.TRACE = 5
logging.addLevelName(logging.TRACE, "TRACE")


def monkeypatch_trace(self: logging.Logger, msg: str, *args, **kwargs) -> None:
    """
    Log 'msg % args' with severity 'TRACE'.
    To pass exception information, use the keyword argument exc_info with a true value, e.g.
    logger.trace("Houston, we have an %s", "interesting problem", exc_info=1)
    """
    if self.isEnabledFor(logging.TRACE):
        self._log(logging.TRACE, msg, args, **kwargs)


logging.Logger.trace = monkeypatch_trace
#

@clever salmon is being a bad pizza

daring jay
low sleet
#

hi @grim seal can I bother you about kubernetes gopherhappy

low sleet
#

awesome

#

i'm mostly wondering about whether you'd be able to share some good practices on how to version control the manifest yamls

#

i've deployed kwzrd.site on my cluster today and even managed to set up https so i'm very proud of myself

grim seal
#

niiiice one

low sleet
#

but i'm wondering about what the best way to do some things would be

grim seal
#

yeah the way we do it is just having all manifests in a repo, if I want to see the state on the cluster then kubectl diff has pointers

low sleet
#

ohh thats useful

#

yeah i have a private repo with my yamls for now and that's worked fine for me, but I felt like things got a little out of control when I started also using helm

grim seal
#

ah yeah,

#

we store the helm values files in the repo for the most part, and then include secrets through CLI args

low sleet
#

okay, so you only version control the values yaml

grim seal
low sleet
#

i thought it wouldnt make sense to add the whole chart to my repo

#

but i wasnt sure

#

if i do, and then pull a new version, it'd allow me to see the diff of what has changed inside

#

but maybe i shouldn't have to worry about that?

#

i'm now talking about a 3rd party chart, not my own

grim seal
#

hmmm yeah

#

I keep my eye on upstream releases to try avoid that, but we don't VCS them in any way

low sleet
#

mmm okay

#

so just version controlling my values is prob fine then

#

i also wanted to ask whether you think it'd make sense to make a helm chart for my own app, so that i can manage the whole cluster using just helm

#

or if it's fine to just apply the yamls with kubectl when i change them

grim seal
#

yeah we just do manifests for our own services

low sleet
#

okay

#

that's basically what i wanted to know thanks ๐Ÿ˜Œ

grim seal
#

๐Ÿ‘Œ

low sleet
#

yeah ok

#

lovely thank you

grim seal
#

np, feel free to ask if anything else crops up

wide totem
#

lol did u click it

languid osprey
#

no

#

...why?

#

im tempted to click it now

daring jay
#

That's a noice link

#

Not kidding

wide totem
#

lol

#

ty

#

DUDE I JUST REALIZED

languid osprey
#

WHAT

wide totem
#

we did a challenge with joe

#

and never

#

once

#

was there a single rickroll

languid osprey
#

lmao

hazy laurel
#

If that's a joke, it's not a very good one

#

nvim is neovim

wide totem
#

oh

#

wasn't a joke i actually thought wrong

hazy laurel
#

oh. sorry lol

wide totem
#

this is jason's neovim

#

it looks a lot like vscode

#

enough that i have begun to confuse thumbnails of the two

hazy laurel
#

ah

languid osprey
#

I want config

wide totem
#

when he's done he'll share it

#

!remind 6d json neovim config

clever salmonBOT
#
I don't think so.

Sorry, you can't do that here!

languid osprey
#

Cool, thanks :D

viral hare
#

i tihnk at this point

#

ill just use vim emulator in vscode

#

looks about the same as above

#

and i guess its kinda similar

#

in terms of feel

hazy laurel
#

lmfao I don't feel like trying out Vim today

#

I did last night... went into :Tutor and immediately left

wide totem
hazy laurel
wide totem
#

ah

wide totem
#

Huh

#

It did for me

#

Perhaps you somehow verified it in your cache

jovial island
#

who

hazy laurel
#

Looks like a link to me...

jovial island
#

is the SHIRT MASTER

hazy laurel
#

I already know it's a rickroll

jovial island
wide totem
#

.src

rustic harborBOT
wide totem
#

wut

#

why

#

why are these three files needed

#

often, i've seen bots with just the one file, bot.py

sinful sun
#

You need init to make it a module and you need main to run it like one

wide totem
#

and how are they run

sinful sun
#

python -m module_name

wide totem
#

so u can run the bot that way?

#

hm

hazy laurel
#

yes

sinful sun
#

Ye its pretty common with bots from what i see

hazy laurel
#

I think the __init__.py might be useless in that context, honestly

wide totem
#

launches lancebot clone

wide totem
shadow elk
#

In modern versions of Python you don't always need __init__.py, although I'm not sure why that happens. Something about namespace packages.

hazy laurel
#

hmm

hazy laurel
wide totem
#

what is the difference between init and main

#

why have an init that has code if you have a main that has code

hazy laurel
#

main is what you call when you run it

#

init... I think is called in any situation

#

but I don't see a reason to use it unless you're importing that package

wide totem
#

ah

#

that's why init exists

#

to configure the logger

#

still launching sir lance clone

hazy laurel
#

yes but shouldn't you just do that in main if you're never going to import the bot?

wide totem
#

because of typing, it imports the bot in every file

daring jay
#

I think

wide totem
#

yeah

#

mostly

#

as you can see

hazy laurel
#

I have a robot project that I can run as python3 -m, the __init__.py is entirely useless

wide totem
#

it ran __init__.py and then __main__.py

hazy laurel
#

yes, but you don't need both

#

because you'll probably never import the bot

wide totem
#

but you do, often

#

that's why its like that

wide totem
hazy laurel
#

Okay, then it's perfectly acceptable to have __init__.py haha

wide totem
#

now this makes sense

#

i also kinda wanna kick this project to the moon

#

two swords are better than none ยฏ_(ใƒ„)_/ยฏ

#

especially double edged

sinful sun
#

What

hazy laurel
#

Sounds like an Arch user

daring jay
#

Ummm

#

What's the context to that statement

sinful sun
#

There is none, arch bad

jovial island
#

i am proud to say i have deleted arch from my life

shadow elk
#

@pastel nest where did you read up on a wa? ๐Ÿง

pastel nest
shadow elk
#

@echo fern a spy

#

put dispenser here

pastel nest
daring jay
#

Lol

viral hare
#

that bot sus

daring jay
#

My guess is that that was actually a webhook

#

Unless someone just wanted to make a bot clone of kutiekatj

wide totem
daring jay
#

The message that object linked

#

Oh wait

#

Latkecrszy said it was a webhook

#

Right after

#

Well I came up with it without knowing

#

So I still came up with it

hazy laurel
dusky cliff
#

@shy lynx Hey there! I remember seeing you on reddit some time back, loved your nerf gun video ๐Ÿ˜ƒ

median blade
#

Ah yeah

jovial island
#

yo

#

hi

cerulean panther
jovial island
#

how u doing?

cerulean panther
#

good, hbu

jovial island
#

good, just came back from a weird night out

#

what do you guys do here?

cerulean panther
#

off-topic stuff

jovial island
#

nice : P

#

has been a while since i saw that

#

mid 2000s chats

#

icq, msn

languid osprey
wide totem
#

Yeet I just finished turning this code into a module and redoing the logger

languid osprey
#

A lot of it is fuck manjaro

wide totem
#

Now I can change the logger again

languid osprey
#

Btw, fuck manjaro

jovial island
#

logger is never done

jovial island
#

anything else is self flagellation

hazy laurel
#

Excuse me

languid osprey
#

I use arch btw :P

jovial island
#

unless you need a slim machine and go for arch

wide totem
#

I just realized I can change the logger again to use the custom logger but I don't see much of a reason to tbh

languid osprey
#

Hi cypherial

hazy laurel
#

Excuse me! D:

languid osprey
#

Excuse you

hazy laurel
#

I'm going to cry

languid osprey
#

Oh no

#

My condolences

hazy laurel
#

:L "Ubuntu Fedora Arch"

#

hmph

#

I'm truly hurt

languid osprey
#

Haha

jovial island
wide totem
#

Wdym

#

Oh fuck

hazy laurel
wide totem
#

Ur right

#

Sigh.

jovial island
#

Mint?

#

or sth of the like

wide totem
#

I have to keep that feature

hazy laurel
#

:/

#

my nickname

jovial island
#

what was that distro that the logo was a bunch of squareS?

#

oh

#

hahaha

languid osprey
#

Lmao

jovial island
#

the lizard

hazy laurel
jovial island
#

maybe

hazy laurel
#

that's all I can think of with squares

languid osprey
#

I've been wanting to try opensuse :P

jovial island
#

no

hazy laurel
#

openSUSE Tumbleweed is gr8

languid osprey
#

Why not?

jovial island
#

manjaro is the one with the upside down L

hazy laurel
#

oh

#

that's Waluigi

jovial island
#

why do you go opensuse?

hazy laurel
#

Well... I wanted something rolling, right

#

but Arch's stupidly bleeding edge

jovial island
#

ohh

#

makes sense

hazy laurel
#

like when I was using Arch... everything would break constantly

jovial island
#

its a paper-cut edge distro?

hazy laurel
#

well... there's no blood

jovial island
#

arch to me is for slim virtual machines

hazy laurel
#

I disagree with that, personally

jovial island
#

why?

languid osprey
#

Arch can be used as a daily driver

#

Plenty of people do it

hazy laurel
#

Arch doesn't really improve performance at all

#

it depends mostly on what DE you use

jovial island
#

well the point of arch is to never invoke X at all

languid osprey
#

Arch is whatever you turn it into

jovial island
#

but at the same time having x dependencies

#

just in case

hazy laurel
#

Well I'm like 99% sure that's not true

jovial island
#

you might be right, im not a linux master, thats just what i decided arch was for after xorg-config broke for the 10th time

languid osprey
#

I use DE and X with arch

hazy laurel
#

because the ArchWiki guides you through DM and DE install

languid osprey
#

Well, a WM

hazy laurel
#

Arch can be used as a server

#

but that's definitely not it's main purpose

#

Arch's main upside is that it's DIY

jovial island
#

there's better distros for a server

hazy laurel
#

Yes, I agree

languid osprey
hazy laurel
#

Arch's definitely more of a desktop distro, though

#

but since it's DIY... it can kinda be whatever you want it to be

jovial island
#

^

#

arch is gentoo for lazy people

languid osprey
#

Haha

hazy laurel
#

Arch has too much hype

#

and I'll preach that until the day I die

languid osprey
#

I have to fuck around with gentoo one of these days

hazy laurel
#

no

jovial island
languid osprey
#

Yes

#

I need the experience

hazy laurel
#

do you tho

languid osprey
#

I can forever brag

jovial island
hazy laurel
#

Arch was more than enough for me haha

jovial island
#

do that one book

hazy laurel
#

Gentoo?

languid osprey
#

Haha

jovial island
#

"linux from scratch"

hazy laurel
#

LFS \๐Ÿ‘€

wide totem
#

I use deb and ubnutnu

jovial island
#

do that and you have the experience doubled

wide totem
#

And Ubuntu is so much more up to date smh

hazy laurel
wide totem
#

Debian is like. On kernel 4.4 stil

jovial island
#

the issue with ubuntu was the amazon shit

hazy laurel
#

was

wide totem
jovial island
#

never forgiven

hazy laurel
#

I forgive Ubuntu completely tbh

languid osprey
#

Snap :P

jovial island
#

hahaha

hazy laurel
#

People complain about Snap too much

languid osprey
#

Ubuntu is fine imo

wide totem
#

What occurred?

jovial island
#

me too, i use lubuntu on one of my machines

wide totem
#

With Ubuntu?

hazy laurel
#

just... sudo apt purge --autoremove snapd

#

oops uninstall Snap in a single command

languid osprey
#

Lmao

hazy laurel
#

but even then

jovial island
#

im not sure uninstall is the same as the purge autoremove

hazy laurel
#

iirc Ubuntu (the GNOME flavor) is the only one with preinstalled snaps

jovial island
#

if im not wrong the purge thing you posted removes orphan dependencies too

hazy laurel
#

and purge will remove relational files or something iirc

jovial island
#

its lika

hazy laurel
#

aka configs and stuff, me thinks

jovial island
#

install cmus -> 500 mb

#

uninstall cmus -> 50kb

hazy laurel
#

lol

jovial island
#

purge ... -> 499 mb

wide totem
#

Lmfao

#

Dependencies!!!

jovial island
#

yep

wide totem
#

BTW what happened with Ubuntu and Amazon?

hazy laurel
#

long time ago, there was some telemetry issues or something

jovial island
#

obviously that comes with other shit that tells what ads to serve