#ot2-the-original-pubsta
652 messages ยท Page 54 of 1
RIP your phone when you have to format the drive
Ah yes, who needs phones anyways? My phone is now a flash drive
well its just gonna be an installation media
Eh
yes and you have to format for that
Technical details
no?
yes
\๐ค
kinda terrible to explain
That doesn't make much sense to me
id love to vc and show it to you
me? vc?
perhaps
look
this is a gr8 song btw. 10/10 would recommend
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
I wouldn't be so clueless if my Samsung could be rooted
hopefully format that partition
but nope
and drag and drop the files there
oh my
for the record
doing that because arch is like 500 mb
nevermind holy shit its 800 megabytes now
da fuck they doin
Arch packages are bigger than other packages
I uSE UbuNTu
okay imma record a video to show you
Fools, I use Hanna Montana linux
i use hot wheels linux
I am Also BEGINNEr To LInUX
you're ruining the joke
except for the Manjaro ones \๐ฉ
your Pc will be as hot as them wheels at one point
Ruining?
Id like to call it advertising
Ah yeah, my bad
adveRTECIsSINgG
Yes fuck manjaro
uh what
i was recording a video and my phone blacked out on me
mf was at 80% charge what
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 :/
Good
change phone
Manjaro has ass support
in a country where 1 usd costs 5 times our currency
There's no such thing as Ubuntu 20.04 non-LTS
yeah i dont think ill be doing that
Why manjaro
Why the fuck manjaro
because the Gnome layout looked cool
see and nobody believes me
Just use a different os with gnome
99% of Manjaro users get Manjaro because of the DE defaults
didnt know anything about Manjaro att
Yeah
or should I say... DEfaults
i get it girls, you're all pretty but
Know one thing, manjaro is shit
uh my phone dont wan turn on
:T
Nice pun, but not as good as my Rust ones :P
I would just like to say that I predicted this would happen
it happened while i was recording a video
Lol
100% unrelated to me fucking around with root privileges
ono
They don't call me "Nick Jonas, the clairvoyant" for nothing
K
rust is a terrible programming language
WHY K
OK what the fuck
Cuz k
What in the actual fuck
hate that
What in the fuckity fuck
Hate when people respond with "k" or "ok"
Rust is amazing
the fuck did you just say about rust, you little shit?
ill have you know
oh yes I've made 0 progress in learning Nim
Rust is an amazing language
i graduated top of my classin the navy sels
Have you heard of memory safety before
ur gunna trigger people
ive been involved in numerous raids in al qaeda
Ah yes, navy sels
i have over 300 confirmed kills
They sure as fuck are
he's right
Yes maybe
It's 1:42 am for me
Gn :D
sleep
fair point
I need to advertise rust as much as I can
wait quick question
mhm?
can one be home alone if they have pets
Hm
classic rustaceans ๐
Well then they aren't alone are they
home alone + pets or... home with pets
if that was true then the movie Home Alone has a misnomer
10 seconds after i say ill sleep my phone turns on
hi home alone i'm dad
fuck it ill just buy a USB drive tomorrow
jeez man. it's been like 15 years, I want my milk
lol
Yay panic attacks
Unless you mean...
OH NO

that was the joke
oh no ;-;
bonk
OH SHI-
Mr. Sir \๐ญ
;)
surely that's not a self-bot
thou shalt not bonk me
-me
bruh
Lmao
am I high
prob
Thou shall not bonk
How to find ID of Man
right click and copy id
Anyways, it's almost 2 am, and im getting sleepy, gn yall :D
sleep is for the weak
gn
You know
Y e s
Not if I dream about Rust
I wonder if that ever originated as "sleep is for the week"
and no sleep is for the weekends
why would people not sleep on weekends tho
ok Rust fanboy
no work, no school
if anything they'd sleep more
Lmao
you can stay up on weekends
I stay up late on weekends
Y E S
I stay up late every day hahaha
ahahhahahh
Cries in dead inside
yes
Anyways, bye fr now
yes
.topic
Suggest more topics here!
wait is this the topic ?
yes because this is a off-topic channel
ok
Of this channel? no
that's just a command to come up with a random topic for conversation
oh okokok
The off-topic channels don't really have a topic
ok
You cooud say it's undefined

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
yes
it depends on what the method returns, example: if it returns an int do โฌ๏ธ
static int methodname(variabletype variablename)
i think, i don't know that much java, but its like that in other languages that i know.
static <x> methodname(t1 a, t2 b) is the general syntax
<x> is the return type - the type of the variable that the function returns. If the function doesn't return anything, its written as void
a and b are the function arguments - the values you pass to the function when calling it. t1 and t2 are the types of a and b
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
ye
ye
ye
ye
oh okay thanks!!
epic
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
sum = firstnum + 1
this just does sum = 4 + 1 in every iteration
because u are setting sum to the value of firstnum + 1 every time u loop
in every iteration, you want to set sum to its current value + 1
or sum += 1
or sum++
or even shorter sum++
ah i see okay i get it

or even shorter return firstnum + secondnum;
lol
or even shorter System.out.println(14);
hmm
now how would u shorten that
System.out.println(0xe);
nop
if the 0x wasnt there it would be smaller
System.out.print(14) kekw
says who
me
ok
ha
u know when u drink a hot beverage
and ur tongue burns
but for some reason u continue drinking
no
and now ur tongue cant taste anything
Java :faint:
damn

dart better 100%
๐คฎ
yea
Just about everything's better than Java
ููุง ูุฃุชู ุงูุฑุฆูุณ
ye
ููุง ูุฃุชู ุงูุฑุฆูุณููุง ูุฃุชู ุงูุฑุฆูุณููุง ูุฃุชู ุงูุฑุฆูุณ
I understand completely
ikr
otherwise bonk
ุฃุบูู ูุงูุนู ู ุง ุฃููู
lol
bonk
bot?
ุฑุงุฆุน. ูุทูู
bruh is he using google translate
might be a bot
I wonder if he realizes that he misspelled enlightenment
lol
lol
@jovial island hello, please keep all conversation on the server in english.
ุฃูุชู ูุง ุฑูุงู ุฃูุถู ุฃุตุฏูุงุก ุงููู
bruh
:|
!mute @jovial island 12h you were already told to keep it english.
:incoming_envelope: :ok_hand: applied mute to @jovial island until 2021-05-15 20:00 (11 hours and 59 minutes).
was that... a threat?
was what a threat
e
perhaps
Google Translate said "You guys will soon be visiting God"
hm
same
oh well. if it's just a visit
ikr
damn, so considerate
just a visit
that's on the implication I'll be back
๐๐ฝ
Pearls, from the pearly gates
ambrosia
Forbidden fruit
and a trident
and my axe
I think you mean to look in the ocean
poseidon can be visiting the skies too
ikr
you might carpool with him on the way
ye
flying = swimming in the sky?
ye
There's gotta be a Bruno Mars song for this
ye
he's 199.08 million miles away from us
brij
wake up in the sky
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
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
yea
oh
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?
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
im not, but im now trying to. when i click onto q2 and press run, it keeps running another class
maybe remove/comment out the main method in all other classes
ikr
im quite confuse, is it a class is synonymous to a file for python
java?
when i add a class in java, it's like adding a file in python?
yea in java u usually write classes in seperate files
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
okay so I tried it and it doesn't complain
how are you running btw
are you clicking on run in the top right corner of the window
cant u choose which class to run
you can
is there a dropdown next to the run button
ye it tries to build the whole project before it runs
i just want to run q2
ohh
so i shd create a new file
maybe just comment out everyhting in q4 for now
ye
okay lemme try
just put a /* at the top and */ at the bottom
mutltline comments 
ctrl / should also prolly work lol
yes
yup now it gives q2 output thx
nice
epic
๐ค
it gives q2 output
lol
so does it always give the last output
run it with the green button next to the class name
instead of the button in the top right
oh yup it works
btw can i ask what's the difference btw the two green arrows on the left
they're prolly the same
oh okie got it thx!
:nice:
:epic:
if you have some time to waste, sure
I always feel like learning it when I'm really tired hahaha
I also feel like doing things the most when tired
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
nim on vim
yes
but
Vim in itself ....
I don't like VSCode
Then use JetBrains + vim
but Nim doesn't work well with JetBrains
lol I can't even use PyCharm to create an empty Nim project
agree
the main advantage of knowing vim is that you can use any editor without learning a new set of keybinds
.
idk, just not much of a fan of needing to configure everything a specific way
Wha
funny
It's just extensions
some things are a little annoying to configure, though
specifically build and run tasks
Huh
vsCodeVim is really obnoxious to configure
Hmm
theres configuration?
yup
what do u configure
It has its own init vim right?
also @median blade if u set ur cursor to have animation
didn't find a .vimrc parser for it
Hmm
had to write their crappy json
Like vscode vim?
I find copy paste stuff annoying in vim
Have it disabled till u learn how to do that
I always bind escape to ii
l put space f for format, space r for run, jk for normal mode, enabled easymotion
ah I never use run in vim
whats easymotion?
There is no need to use those tbh
i just use arrow keys lol
I wonder what it's like to just use wasd
I would like that
same
yes because hjkl feel super weird to move with
I'll always think h is up for some reason... and j down
the home position is jk for me
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
wasd for lyf
yes
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"
yup
ye
Okay, so WebStorm works with Nim
but PyCharm Professional and IntelliJ IDEA Ultimate do not
fascinating
IntelliJ actually had this weird bug where I really just couldn't have a Nim file with more than one line
spectacular
lol
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
remarkable
lol
what is going on here
icecream
yes
nice
eating ice cream while im in joe's garage
nice
agree
Is it Nim that does the "result variable is returned" thing
ah yes.
proc foo(): int =
result = 64
assert foo() == 64
ye
invalid syntax >.<
das not python afaik
what does afaik mean?
as far as i know
oh, thx
np
c)
rip
i slept for like 9 hours
I wonder how long it would take to read Python's official documentation
a pretty long time, it has hooks into pretty much all of posix
but why
well, start with modules that don't hook into the OS
https://docs.python.org/3.6/tutorial/
I start with this
sure
I wanna get better also to fill my knowledge gap
that's not how you get better
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
or multiple
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
and coffee
and of course
I won't read the documentation on one sitting 
don't bite more than you can chew
^
I will do one chapter a day or smth
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

yeah
uh pydis has a resources page
which contains a lot of reading material
you might wanna take a look at
it
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Another reason I use docs because they have in-depth stuff which is hard to find unless you buy these books
good luck soldier
Also people(YouTubers) almost always say the same thing For must stuff
How do you 
delete discord
its not funny, its just unusual
Bro
cool
hello.
Is there something like a 'markdown viewer' I can download? I just want to preview .md files.
locally, without the use of internet.
Vscode has an extension for that i believe
Actually not sure its an extension or a builtin thing
I think VS Code does it out of the box, PyCharm does too
sweet, I'll just search in the extensions.
Sublime has a plugin afaik
oh? nice
ayy stelercus is now a project lead
noice
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
I don't like PyCharm, but at least I can appreciate its debugger
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
Do you have any updates available for vscode? I'm not sure what else to suggest
Yeah, idk. I'll double check ๐คทโโ๏ธ
there are buttons in the debugger
for step into, step out and step over
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
f11
!src
custom logging levels how
I'll link lancebot's since it's shorter
uh
welp that doesn't work
๐ค
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
Was the line limit implemented?
hi @grim seal can I bother you about kubernetes 
go for it ๐
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
niiiice one
but i'm wondering about what the best way to do some things would be
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
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
ah yeah,
we store the helm values files in the repo for the most part, and then include secrets through CLI args
okay, so you only version control the values yaml
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
hmmm yeah
I keep my eye on upstream releases to try avoid that, but we don't VCS them in any way
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
yeah we just do manifests for our own services
np, feel free to ask if anything else crops up
url lengthener
what the fuck
lol did u click it
WHAT
lmao
That's Nim.
If that's a joke, it's not a very good one
nvim is neovim
oh. sorry lol
i actually thought this was neovim
this is jason's neovim
it looks a lot like vscode
enough that i have begun to confuse thumbnails of the two
ah
Sorry, you can't do that here!
Cool, thanks :D
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
lmfao I don't feel like trying out Vim today
I did last night... went into :Tutor and immediately left
*the above is actually a custom config by jason to make it look like vscode
which is why they said that I think
ah
discord doesn't recognize it as a link, apparently? so it doesn't attach a you're-leaving-discord trap
who
Looks like a link to me...
is the SHIRT MASTER
saved by the ad again
I already know it's a rickroll
cuz it is
.src
wut
why
why are these three files needed
often, i've seen bots with just the one file, bot.py
You need init to make it a module and you need main to run it like one
and how are they run
python -m module_name
yes
Ye its pretty common with bots from what i see
I think the __init__.py might be useless in that context, honestly
launches lancebot clone
that sets up the logger in this sir lance
In modern versions of Python you don't always need __init__.py, although I'm not sure why that happens. Something about namespace packages.
hmm
but you could also do that in __main__.py \๐ค
what is the difference between init and main
why have an init that has code if you have a main that has code
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
ah
that's why init exists
to configure the logger
still launching sir lance clone
yes but shouldn't you just do that in main if you're never going to import the bot?
because of typing, it imports the bot in every file
I have a robot project that I can run as python3 -m, the __init__.py is entirely useless
it ran __init__.py and then __main__.py
tests
Okay, then it's perfectly acceptable to have __init__.py haha
now this makes sense
i also kinda wanna kick this project to the moon
two swords are better than none ยฏ_(ใ)_/ยฏ
especially double edged
What
Sounds like an Arch user
There is none, arch bad
i am proud to say i have deleted arch from my life
@pastel nest where did you read up on a wa? ๐ง
secrets stay secret... i can't betray the leaker.
๐ง <#ot0-fear-of-python message>
uh
it is also thanks to him that i learned about the secret evil bot clone of kutiekat
Lol
that bot sus
My guess is that that was actually a webhook
Unless someone just wanted to make a bot clone of kutiekatj
Where?
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
What on Earth is the conversation above that
@shy lynx Hey there! I remember seeing you on reddit some time back, loved your nerf gun video ๐
Thank you!
Ah yeah
hello
how u doing?
good, hbu
off-topic stuff
Many things
Yeet I just finished turning this code into a module and redoing the logger
A lot of it is fuck manjaro
Now I can change the logger again
Btw, fuck manjaro
logger is never done
go ubuntu or fedora
anything else is self flagellation
Excuse me
I use arch btw :P
unless you need a slim machine and go for arch
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
Hi cypherial
Excuse me! D:
Excuse you
I'm going to cry
Haha
to stop other logging
what do you use?
you'd never guess
I have to keep that feature
Lmao
the lizard
I hope you're not talking about Manjaro
maybe
that's all I can think of with squares
I've been wanting to try opensuse :P
no
openSUSE Tumbleweed is gr8
Why not?
manjaro is the one with the upside down L
why do you go opensuse?
like when I was using Arch... everything would break constantly
its a paper-cut edge distro?
well... there's no blood
arch to me is for slim virtual machines
I disagree with that, personally
why?
well the point of arch is to never invoke X at all
Arch is whatever you turn it into
uh... no I don't think so
Well I'm like 99% sure that's not true
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
I use DE and X with arch
because the ArchWiki guides you through DM and DE install
Well, a WM
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
there's better distros for a server
Yes, I agree
Yes but that probably wouldn't be the best use case for it, since it's not the most stable distro
Arch's definitely more of a desktop distro, though
but since it's DIY... it can kinda be whatever you want it to be
Haha
I have to fuck around with gentoo one of these days
no
i agree
do you tho
I can forever brag
its not at all what is hyped up to be
Arch was more than enough for me haha
do that one book
Gentoo?
Haha
"linux from scratch"
LFS \๐
I use deb and ubnutnu
do that and you have the experience doubled
And Ubuntu is so much more up to date smh
oh yes... ubnutnu
Debian is like. On kernel 4.4 stil
the issue with ubuntu was the amazon shit
was
๐ณ
never forgiven
I forgive Ubuntu completely tbh
Snap :P
hahaha
People complain about Snap too much
Ubuntu is fine imo
What occurred?
me too, i use lubuntu on one of my machines
With Ubuntu?
Lmao
but even then
im not sure uninstall is the same as the purge autoremove
iirc Ubuntu (the GNOME flavor) is the only one with preinstalled snaps
It's not
if im not wrong the purge thing you posted removes orphan dependencies too
and purge will remove relational files or something iirc
its lika
aka configs and stuff, me thinks
lol
purge ... -> 499 mb
yep
BTW what happened with Ubuntu and Amazon?
long time ago, there was some telemetry issues or something
they had ads in the home button like w 10
obviously that comes with other shit that tells what ads to serve

