#ot2-the-original-pubsta

652 messages · Page 8 of 1

rotund swallow
#

3 years ago

#

kite's suggestions are execllent

fresh pecan
#

that and the fact that it keeps running even when you close a text editor

#

for me at least

rotund swallow
keen burrow
#

Kite is pretty good

rotund swallow
#

also u can seach docs through it's app

fresh pecan
#

ok whatever

#

use it if you want

slow valve
#

show the auto completion @fresh pecan

fresh pecan
#

also it doesn't work with some libraries

slow valve
#

I mean show what it does like do print()

fresh pecan
#

huh?

slow valve
tranquil ridge
#

i love the vsc autocompletion, thats the main reason i havent deleted it yet

slow valve
#

yea true I will just use vsc

#

sudo pacman -S vsc??

fresh pecan
rotund swallow
#

that's for every editor

#

lol

#

most*

tranquil ridge
#

@slow valve no, yay -S visual-studio-code-bin

slow valve
#

how do I remove sublime?

tranquil ridge
#

yay -R sublime-text

slow valve
#

will it remove all dependencies too?

tranquil ridge
#

hmm idk, but i guess it should thinkmove , whats the prob if it doesnt anyway, its not like they are taking too much space, i bet it isnt even in mb

slow valve
#

target not found

tranquil ridge
#

uh well whats the name of your sublime

slow valve
#

I use sudo pacman -S sublime-text

tranquil ridge
#

wut

slow valve
#

to install

tranquil ridge
#

hmm, try sudo pacman -R sublime-text then i guess

slow valve
#

error

tranquil ridge
#

idk then bruh

#

it always works for me

#

try checking whats the actual name of your sublime application

#

and whats the error anyway

slow valve
tranquil ridge
#

yay -R sublime-text-3

slow valve
#

ok BRUH

#

yay -S visual-studio-code-bin why bin?

tranquil ridge
#

uh for the official binary

slow valve
#

ok

tranquil ridge
#

if that doesnt work then remove bin

slow valve
#

worked!!

fiery oyster
slow valve
#

@fiery oyster why you post it in 2 ot's?

somber belfry
fiery oyster
#

no one helping

somber belfry
fiery oyster
slow valve
#

@fiery oyster is that django?

fiery oyster
#

yes

slow valve
#

BRUH just search on google

slow valve
somber belfry
#

Code is like to vsc what chromium is to chrome

slow valve
#

ohk

elfin vine
#

Wait, I am trying to prove to some friends why it's really bad to blindly format user input. If I know some code uses say .format or f strings, how can I execute code?
Like say something does this print("1{}2".format(var)) how would I set var so that I can freely as the user run code?

wheat aurora
#

Typically it's eval() that you shouldn't arbitrarily allow users to input into, not f strings or format

jovial island
#

or sql queries

#

but you could do smth like eval(‘os.system(“dangerous command”)’)

#

so eval is more important in some cases unless you arent root or in a vm etc

crude trail
jovial island
#

yeah i dont see how its bad to allow a user to input something and then print it out

nova ember
#

With that mindset, you’ll be very cautious when dealing with user input

spark ibex
#

what is this channel

primal comet
#

an off topic.

keen burrow
#

Remember, never trust users!

#

Always consider user input as malicious!

primal comet
#

so make sure that it cant be used as malicious?

vocal acorn
#

Is this sentince technically gramatically correct:
In this hot house is a smaller cold house that is designed to keep the hot insides of the house designed to keep the cold insides of the house it is in out it is in from making the food hot.

nova ember
#

I wouldn’t think so

vocal acorn
#

would brackets showing where the descriptions of the objects tie to the objects help?

nova ember
#

Just write that it’s a fridge/freezer lol

vocal acorn
#

no

storm birch
#

The sentence is sort of grammatically correct, but you can get a "catch all" of a run-on sentence.

primal comet
#

use commas.

pure rune
#

use oxford commas even

primal comet
#

those are the ones that make the weird sentences right?

pure rune
#

a comma used after the penultimate item in a list of three or more items, before ‘and’ or ‘or’ (e.g. an Italian painter, sculptor, and architect ).

primal comet
#

that isnt necessary?

pure rune
#

I dunno? Saying oxford comma sounds fun though

shrewd lance
#

It's not technically necessary (and in certain languages, like Russian, it's actually a defined punctuation error), but it does help clarify that the and/or part still relates to the listed items

#

I'm a big fan of the oxford comma

next token
primal comet
#

that youtube account is almost intresting.

#

(that was an intentional pun)

#

that failed

toxic osprey
#

javascript comma?

#

or c comma?

#

too tired thought it was a semicolon

#

ree

deep saddle
#

Or the absence of wakefulness coma?

alpine lark
#

why is github catopus

nova ember
jovial island
#

Hello guys

#

Im pro at printing messages

nova ember
jovial island
#

:D

#

Look at my best code:
print("Hello world")
Its so impressive lol

#

Im still a noob and i was playing with python for few weeks

nova ember
#

Nicee

fluid plank
#

to think that i can get 40million just for a comma

nova ember
#

Hmmmmm?

fluid plank
#

hrooooom

nova ember
#

hrooom

jovial island
#

I am smart because i always type space after commas

#

Wait did i just broke a chain

#

Sorry

#

hrooooom

unreal sigil
#

One exam to go

#

Very epic

#

Almost done

nova ember
#

Nice

hazy laurel
#

tomato armpits

slow valve
#

ew

#

lol

#

Tomato be like

jovial island
#

@tardy cedar

jovial island
#

Oh hey did you guys know Discord now has a reply feature

#

Did you know tha—

tranquil ridge
#

lol wut

slow valve
#

xD

fluid plank
#

wutt

outer hinge
#

I am watching this Bastard Teacher anime

steel eagle
#

big oof qwerty

fluid plank
#

interesting

slow valve
#

has anyone seen tomato's armpits?

jovial island
#

uhhhhhhh

#

what even is a tomato

tranquil ridge
#

something you dont know

jovial island
#

😇

tranquil ridge
#

i am a poet breadHappy

jovial island
#

I am

#

bread

#

Okay?

#

Lets eat bread then

fresh pecan
#

Uh

slow valve
#

🍅

jovial island
#

🦾

#

just imagine the tomato under this here arm

wheat aurora
#

lmao this is definitely from me and bisk talking about pruning tomato plants

jovial island
#

:D

somber belfry
#

XD

jovial island
#

have you ever just like

#

like cut open the tomato to reach its armpit

#

and then just nomd on it a bunch and mmmhhmm tasty

#

mmmmhm love armpits of tomatos

worn sluice
#

No. Never. Not gonna ever happen.

jovial island
#

nomnomnomnom

#

NOM

somber belfry
#

!kindling

clever salmonBOT
#

Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

somber belfry
#

@worldly adder

#

check this link oout

worldly adder
#

Username generator: purely random? Based on a dictionary? Random but pronounceable? Lots of possibilities. i am going for this

somber belfry
#

Good luck 👍

worldly adder
#

thanks

somber belfry
#

what was your previous project on?

worldly adder
#

one friend had an old printer which needed a usb to connect to your computer or whatever to print. What I did was make the printer able to get the files and print them without connecting by usb

#

if u want i can send u the link to github repo

#

he had a rassberry pi installed

#

so that made it eassier

steel eagle
#

So you just replaced one computer connection with another? :^)

worn sluice
#

I ate some cheese.

#

It was green.

#

My car started talking.

#

Regrets?

#

Infinite.

ancient whale
#

was it supposed to be green?

upbeat sandal
#

@past pulsar do you have any other questions about that?

past pulsar
#

uwu

devout loom
#

@untold folio So if you want an example

#

I have three files: main .py file, _ui.py file which is generated by from .ui and .ui itself.

#

in main file i simply init _ui.py inside another window

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()

        self.ui: Ui_MainWindow = Ui_MainWindow()
        self.ui.setupUi(self)

        self.init_ui()
        self.show()
#

It worked pretty well

#

and logic is contained in MainWindow class

untold folio
#

Hmm ok

gilded herald
#

@untold folio you're living in spin?

untold folio
#

Ye look at my pp

devout loom
#

Good that you're not living in spain without the s

gilded herald
#

ah i see

#

^

untold folio
#

Yeah man. I was feeling cold so I started spinning

#

Because it's 360° 😂😂😂

devout loom
#

@untold folio btw

#

designer generates setupUi method

#

But you can pass anything as MainWindow

#

So i'm passing self in that constructor

#

References to those widgets would be help in UI_MainWindow object

#

But they would be placed in whatever you pass as MainWindow argument

untold folio
#

Ok thanks. I'll look at this again tomorrow. This was very helpful @devout loom 👍

devout loom
#

👍

glad flicker
#

@jovial island exact error

light ridge
somber belfry
#

I skimmed through your readme and it looks good

#

I see a lot of except Exception as e:

#

And you do not use e

#

it'd be better to except specific exceptions

#

you can try incorporating logging into the bot and log errors

#

It's generally recommended to store tokens in a .env or something and load it

#

hold on i have some ss on that

#

you can do the same for your telegram token
install dotenv by pip install python-dotenv

languid osprey
#

Hey

proper python
#

So then, obviously Ernest Hemingway famously spoke "yeet me daddy, that's so on fleek."

languid osprey
#

@knotty patrol Im here

knotty patrol
#

yea

languid osprey
#

Alr, so I'm better with linux, not so much with powershell on windows

knotty patrol
#

ok just tell a command on linux im gonna

#

see

languid osprey
#

If it works on windows?

knotty patrol
#

yeah

languid osprey
#

xD

#

Alr

knotty patrol
#

and if it dont work im gonna search on google

languid osprey
#

Type in vi

#

Lol

knotty patrol
#

ok im doing that

languid osprey
#

On linux it starts vim

knotty patrol
#

humm

languid osprey
#

It won't work on windows

knotty patrol
#

vim ??

languid osprey
#

Since windows uses powershell

knotty patrol
#

im gonna search a command like that

languid osprey
#

vim is a command line editor

knotty patrol
#

but what this do

languid osprey
#

vi? its a linux command for opening vim

#

Like I said, it won't work on windows

#

Theres probably downloadable scripts that'll do what you want

knotty patrol
#

ok an other commaand?

#

you know like the command dir/s on windows

languid osprey
#

That work on windows?

#

Sure

#

Wait don't

#

Type in help

knotty patrol
#

ok

languid osprey
#

It should spout a long message

knotty patrol
#

but ik what it do

languid osprey
#

It shows help commands

#

What exactly are you trying to do here xD

knotty patrol
#

it gonna show every command i can do

languid osprey
#

Yes

#

but I wouldn't mess around with it without knowing what it does

#

Whats your goal here?

knotty patrol
#

act like a hacker

languid osprey
#

Oh

#

xD

knotty patrol
#

|o|

languid osprey
#

Theres probably some downloadable script you can use that spouts nonsense that'll make you look like a hacker

#

i gtg, cya :D

severe socket
#

theres lots

fluid plank
#

bowl on his left hand

#

sounds suspicious

#

pretty suspicious

fluid plank
jovial island
#

@fluid plank among us?

fluid plank
#

hmmm?

jovial island
#

btw help me with turning my programs into exe

#

dm me

fluid plank
#

ah no i dont have time for that

jovial island
#

ok

fluid plank
#

also you can just google

jovial island
#

ok

fluid plank
#

and there is py2exe

jovial island
fluid plank
#

uh no... dude... you have the internet in your hands

#

🙃

median blade
#

why not pyinstaller?

#

arcade docs have a tutorial on how to use pyinstaller

sick harbor
#

sup

stable pier
#

hey @cedar leaf what's the deal with Search-Mailbox? i've run a search and specified a target mailbox and folder to copy the results to, but i'm just getting a log report.

#

no way ~50mb of emails takes over an hour to replicate

cedar leaf
#

O365?

stable pier
#

Exc 2016

cedar leaf
#

you specific target email and target folder?

stable pier
#

yah

#

something like: Search-Mailbox -Identity "User Name" -SearchQuery "Query" -TargetMailbox "administrator@domain.com" -TargetFolder "Search and Recovery"

cedar leaf
#

Do you believe the emails to be deleted?

stable pier
#

no.

cedar leaf
#

are you sure of it?

stable pier
#

yup.

cedar leaf
#

if so, there is -SearchDumpster

#

it can take a while

stable pier
#

yeah, read the whole blurb on search-mailbox

#

i guess i'm just being impatient

cedar leaf
#

what does get-mailboxsearch say?

stable pier
#

sigh

#

error.

#

yaay.

cedar leaf
#

do get-mailboxDatabase and make sure the catalog is up to date

#

also, to do searches, you need to have Search Role which by default is given to no one

stable pier
#

well i'm getting search logs

cedar leaf
#

Ok

stable pier
#

so i can see how many hits

cedar leaf
#

Sure, but to copy content, you need Mailbox Search role but ALSO Mailbox Import/Export Role which again, isn't granted by default

#

you can granted it using ECP to Organization Admin or whatever that top role is (I haven't touched Exchange in 3 years, can you tell?)

stable pier
#

oooooooooooooooooooooooh

#

that's a great help

#

cheers

cedar leaf
#

That might not be the problem but I'm giving my "This is standard stuff that trips people up, check these really simple things before worrying about big issues"

stable pier
#

yeah, weirdly i've been googling and didn't even find that

cedar leaf
#

good luck

stable pier
#

still this god damn GDPR request i've been working on for like a week

cedar leaf
#

Also, when you grant the role, there is replication time between granting the role which happens in AD and Exchange server scanning AD to see the role

keen burrow
#

Oh no, you're still on this

cedar leaf
#

you can speed it up by restarting ExchADTopology Service but that will cause a service outage

stable pier
#

good to know

#

i can wait

#

and yeah Ak

#

my python for searching all the .doc, .xls, etc etc files worked flawlessly

#

so now i'm onto the exchange server

cedar leaf
#

same GDPR request?

stable pier
#

yeah

cedar leaf
#

as much as that will cause hissing in horror, Office365 has all in one search that could have handled this

#

if you think amount of requests will increase, something to mention to the client

stable pier
#

i was thinking about that as i opened the exchange shell

#

they are actually moving towards O365, but it's a long term goal

cedar leaf
#

understood

stable pier
#

our apprentice was having a little moan about how we support so many disparate different pieces of software

#

and how it's a pain in the arse to remember all this shit

#

gotta agree with him in some sense

keen burrow
#

The same apprentice that locked himself out of the servers 4 times or so?

stable pier
#

yes.

#

he's much better now

#

:D

keen burrow
#

I hope so haha

#

How long ago that was? A year?

stable pier
#

done an excellent job of learning

#

oh god

#

i think about 12 decades at this point

keen burrow
#

Hahaha

#

It was around mid December 2019 apparently

#

So yeah, almost a year

stable pier
#

him ripping his trousers crouching to pick up a server is still the biggest crackup for me

keen burrow
#

Hahaha

stable pier
#

"careful, it's heavy. lift with your knees."
rrrrrrrrrrrriiiiiiiiiiiiiiiippppppppppp

#

i couldn't stop laughing for like 10 minutes

keen burrow
#

Poor guy

stable pier
#

he had to walk the floor doing support tickets that day too

#

:D

keen burrow
#

Woops

worldly adder
#

please help me in: help-vanadium

toxic tendon
#

urrrghhhhh i implemented this hellish CMS thing for my school

#

which used to be yaml file + file system

#

but now i have to use fucking google docs

#

as the cms

#

because this is a coding outreach project, and none of the people writing the resources know how to use fucking git

#

arrghhh

grim seal
#

lol

#

enjoy yourself

toxic tendon
#

It's quite fun in a machochistic way

#

But it's like

#

Ugh

somber belfry
storm birch
#

I actually was playing with f1re earlier. wowzers

tranquil ridge
drifting shell
#

🗿

shadow elk
#

@terse jackal Sorry for the warning, I misused the command. You're alright

toxic tendon
#

woo the google docs CMS is almost done

#

i rewrote the entire resource fetching system

#

to be object oriented

keen burrow
#

Noice

proper python
#

how hard could animation possibly be?
the animation tutorial is 2 hours long

shadow elk
#

!e

# `programs` stores a dict mapping a module name to an AST:

programs = {
    "__main__": [
        ("import", "foo"),
        ("import", "bar"),
        ("set", "x", "Value Of X"),
        ("print", "Hello, world!"),
        ("print", ["foo", "y"]),
        ("print", ["foo", "z"]),
        ("print", ["bar", "u"]),
    ],
    "foo": [
        ("import", "bar"),
        ("set", "y", "This is Y, defined in `foo`!"),
        ("set", "z", ["bar",  "u"]),
    ],
    "bar": [
        ("set", "u", "This is U, defined in `bar`!")
    ],
}

# `modules` maps names to `Env`s, in this case dicts.

modules = {

}


# Execute a single command in the context of some module:
def run_command(module, cmd):
    name, *args = cmd
    if name == "print":
        [arg] = args
        print(compute_value(module, arg))
    elif name == "set":
        var_name, value = args
        module[var_name] = compute_value(module, value)
    elif name == "import":
        [module_name] = args
        if module_name not in modules:
            modules[module_name] = run_module(programs[module_name])
        imported_module = modules[module_name]
        run_command(module, ("set", module_name, imported_module))
    else:
        raise ValueError(cmd)

# if it's [module_name, attr] -- take the attr out of the module, which must be defined locally
# otherwise, just take the value as is
def compute_value(module, value):
    if not isinstance(value, list):
        return value
    else:
        [module_name, attr] = value
        return module[module_name][attr]

# create a new Env and populate it by running commands in its context, then return the resulting dict
def run_module(program):
    env = {}
    for cmd in program:
        run_command(env, cmd)
    return env

run_module(programs["__main__"])

print()
print("modules:", modules)
clever salmonBOT
#

@shadow elk :white_check_mark: Your eval job has completed with return code 0.

001 | Hello, world!
002 | This is Y, defined in `foo`!
003 | This is U, defined in `bar`!
004 | This is U, defined in `bar`!
005 | 
006 | modules: {'bar': {'u': 'This is U, defined in `bar`!'}, 'foo': {'bar': {'u': 'This is U, defined in `bar`!'}, 'y': 'This is Y, defined in `foo`!', 'z': 'This is U, defined in `bar`!'}}
shadow elk
#

@languid osprey This is what I'm suggesting ^

languid osprey
#

Hey, thanks :D

shadow elk
#

Do you understand the general idea?

languid osprey
#

Sort of yeah, basically, you have a dict with some programs you can import, and your checking for keywords in the run_command function, and then evaluating them. With the import, your putting the module inside the modules dict, and then assigning it with an env, and then running it

primal comet
#

oh no dinoman

nova ember
fluid plank
#

ooooh nooo he got teeeny tiny armsu

tranquil ridge
steel eagle
tranquil ridge
#

lol

slow valve
#

lemonsaurus + 🧠 = brainmon

tranquil ridge
#

hyperlemon + 🧠 = brainmon

jovial island
#

Hello, what is firebase used for plase?

rotund swallow
#

@jovial island why are u sending
that in all ot channels

jovial island
#

does it answer my question? or you're just here to make silly remarks?

rotund swallow
#

what?
you are spamming which is agianst the rules if u didn't know @jovial island

jovial island
#

Hello

rotund swallow
#

hello

jovial island
#

oui

#

we don't have the same definition of "spam" then

rotund swallow
#

well read the rules

jovial island
#

you're really helpful, thank you mister

proven widget
#

What happened to the No-dms tag?

#

It doesn't seem to work? Or is it something other than !dms ?

unreal sigil
#

Doesn't look like we have one

round moss
#

it was overused, so we ended up removing it

tranquil ridge
#

they are actually different parts

#

like this lol

somber belfry
#

oh yeah

primal comet
#

vivam has emoji

#

vivam has all emoji

tranquil ridge
nova ember
#

You changed your pfp and name >:(

fluid plank
#

also thicc waifus are exceptions

nova ember
#

Ohhhhh

#

But that doesn't mean you have to change your name to that

fluid plank
#

:((

nova ember
#

I mean, fine

fluid plank
#

okiee

#

T_T

nova ember
#

T_T

jovial island
#

Hi

rotund swallow
#

!user

clever salmonBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

noble kestrel
#

what

#

WHA

nova ember
#

That’s a lemonsaurus lemonsaurus

cedar narwhal
cloud parcel
primal comet
#

please don’t spam in ots

slow shale
#

What's the "insights team" role?

nova ember
#

Right

#

We have an annual survey on the server and do some work with, well, insights. That’s what people in the insights team work on

slow shale
#

Oh. That sounds fun. Kind of like stackoverflow developer survey

nova ember
#

I’m not personally too involved in that process, but we have some other people like ks123 who help out a lot with that

slow shale
#

I'd help if I knew how stuff like that worked

#

I'm more of a simulation/data processing kinda guy

nova ember
#

No worries. If you’d like to contribute in some way, we have @clever salmon, @rustic harbor, the site and branding. These are our main areas of contributing. I personally do a lot of our branding

slow shale
#

Ah

nova ember
#

Everything is on GitHub, if you think it sounds interesting

slow shale
#

Cool, I'll check it out

#

What's the GitHub ID it's under?

nova ember
slow shale
#

Aight, thanks

nova ember
#

Happy to help. If you have any questions about contributing, feel free to ask in #dev-contrib

flat dock
#

Does anyone have experience with the MIT Opencourseware for Python? I'm currently working my way through it and was hoping to discuss and/or potentially get feedback on some of the code I'm writing.

radiant socket
#

i don't, but we can still probably help you

flat dock
#

Right on! The course currently has me making a hangman game and I can't help but get the feeling my coding style isn't very efficient. lol

#

I don't expect to be coding with peak efficiency where I've only recently started programing, but I would like to know if I'm making proper use of the things I've learned so far through the coursework.

radiant socket
#

that's reasonable

#

send your code

#

!paste

clever salmonBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

flat dock
#

Before I do that, I just want to make sure that this is the appropriate channel to be doing this. 😛

radiant socket
#

probably a help channel would be better ¯_(ツ)_/¯

#

doesn't really matter what happens in ot though

flat dock
#

o7

#

I was provided a couple of premade functions and others that I was to define based off of the descriptions provided in the docstring.

#

The game works but I can't help but feel I could make it cleaner.

olive thunder
#

do you guys know if updating your repo license apply to all previous commits/versions?

wicked hollow
# olive thunder do you guys know if updating your repo license apply to all previous commits/ver...

No, it doesn't. You can't change the terms under which previously released versions of your software are licensed. You can remove the old commits, or rewrite them to use the new license, but if someone has an old copy of the code from an old commit, and that commit says it was MIT licensed, you can't just check in a new license and say "Oh, and now you owe me $100,000 for using that thing that used to be free"

olive thunder
#

@wicked hollow makes sense, thanks fam

primal comet
#

the more pythons the merrier

proper barn
#

print("Hello Welcome to my class on python tutorials ")

PasswordCount=0

Name=input("\nEnter your name")
print(" Welcome",Name )

print("\nPlease login ")

UserName=input("Please Enter your Username")
Password=input("Please enter your passowrd")
ConfirmPassword=input("Confirm your password here ")

PasswordCount=0
if Password !=ConfirmPassword:
while PasswordCount==5:
PasswordCount =PasswordCount+1

#

Please tell me where i went wrong

slow valve
#

while PasswordCount != 5 @proper barn

#

try that

celest field
#

Dang, I got rusty on Python fast

lapis night
ancient whale
#

unless something's missing

lusty shell
slow shale
#

Funny how ot is now just another help

lusty shell
#

help with pictures xD

keen burrow
#

You can post pictures in help channels

lusty shell
#

i can? :O

#

nani

rotund swallow
unreal sigil
#

I mean those ones certainly do

tranquil ridge
#

but going off off topic is a thing ChirunoSlain

jovial island
#

and general is cancer + hiv

slow valve
#

light mode?

lapis night
#

ewwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww

#

light modeeeeee

grand dew
#

?

timber fjord
#

?

astral edge
#

If your gonna keep talking about stuff other than python?

#

As in image editors

#

GIMP is my favorite btw, so thats why I recommended it

#

but it does work well

grand dew
#

but all ppl prefer a good cracked app than a old app that no one use it

#

tbh i did never seen it or heard abt it

#

and i dont think its better than adobe

#

adobe its like popular and ez to use and there is a lot of vids on ytb that explain how to use it and there is a lot of programs on it

swift canopy
#

who uses light mode?

#

light mode eh? your eyes must be bleeding on a daily basis

#

You know, there are ways to see therapy without it hurting your finances.

slow valve
#

lol "high performance" they say

magic mist
#

idts "high performance" is worth blinding your eyes for but that's just my opinion anyways
try dark tho

jovial island
#

dark is the new cool

tranquil ridge
round moss
#

I would appreciate if google foobar told me if I timed out or returned the wrong result

jovial island
#

maybe failed

#

not timedout

#

unless tests are not increasing input sizes

thick whale
#

CONSTRUCT ADDITOINAL PYLONS

round moss
#

well, optimizing a bit did not help, so I probably need to actually do something smarter than naive BFS

thick whale
#

yes

#

one of my favroite rts games

#

age is def better, but starcraft has a place in my heart

#

yeah

cinder belfry
#

@keen ginkgo , the console is black (unless you change it).

jovial island
#

Hey, can someone help me with mathematical induction please?

drifting venture
#

That's a new one. My code crashed pycharm

drifting venture
#

That's what I get for storing dozens of images in memory

fluid plank
#

lmao

drifting venture
#

I hate matplotlib

#

and pillow

#

Good luck

dusk sky
#

How are y'all doing this fine time?

#

Terrible conversation starter failed miserably

jovial island
#

maybe sleep time for most people here

#

i am doing well and what about you?

#

ah, i forgot to check timestamps before posting

tranquil ridge
#

does joe gets his graph data from @dawn spindle

tranquil ridge
#

oh nice

storm birch
#

coming to friendo soon™️

tranquil ridge
proper python
#

i is burrito

fresh pecan
#

Snek is frand

#

I agree

slow valve
#

@fluid plank starship successfully installed now how do I open it?

fluid plank
#

@slow valve what shell do you use?

slow valve
#

okay

fluid plank
#

do you use bash?

#

just do

slow valve
#

Terminal Emulator I think that is bash

fluid plank
#

echo "eval "$(starship init bash)"" >> ~/.bashrc

slow valve
#

ok done

fluid plank
#

for zsh
echo "eval "$(starship init zsh)"" >> ~/.zshrc

#

for consistency

slow valve
#

do I do both

fluid plank
#

yeah

#

because for example

#

if you switch to zsh

#

you wont have the custom prompt enabled

slow valve
#

okay

#

so now is it enabled?

#

when I open new Terminal it shows bunch of thing

fluid plank
slow valve
fluid plank
#

wait what??

#

can you open ~/.zshrc and ~/.bashrc for me

#

like in a text editor

slow valve
#

ok

#

eval source <("/usr/bin/starship" init zsh --print-full-init)

fluid plank
#

lol

slow valve
#

this is zsh

fluid plank
#

replace that with eval "$(starship init zsh)"

#

then for bashrc replace the same thing with eval "$(starship init bash)"

slow valve
fluid plank
#

yeah

slow valve
#

bashrc has alot of things

#

do I replace all

fluid plank
#

it is in the end of the line

fluid plank
#

haha

fluid plank
jovial island
#

removing all of bashrc is like removing the entire startmenu from windows

fluid plank
#

like you replaced them all?

#

👀

#

oh noes

slow valve
#

@fluid plank I removed that line and instead of that I typed that

#

there was nothing else than that one line

fluid plank
#

oh okay youre good then

somber belfry
#

bashrc is just bloat, rm it /s

slow valve
#

so in bashrc where do I put eval "$(starship init bash)"

slow valve
somber belfry
#

IM KIDDING

#

please don't do that

fluid plank
somber belfry
#

/s implies sarcasm

fluid plank
slow valve
#

ok

fluid plank
#

it is located near the end of the file

fluid plank
#

the starship with the wrong syntax i mean

slow valve
#

!paste

clever salmonBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

fluid plank
#

that looks like the zshrc one that was wrong before

#

oh you will send it to me

slow valve
#

yea idk what it is

fluid plank
#

i never thought of that haha

slow valve
#

so much stuff

fluid plank
#

smart

#

yeah send it

#

xD

slow valve
fluid plank
somber belfry
#

@fluid plank when did ya start using neovim? 🤔

fluid plank
#

edited it

slow valve
#

so quick

fluid plank
#

@slow valve it is done haha

#

nah it is just one line

slow valve
#

you sonic

fluid plank
slow valve
fluid plank
#

yeah cool

#

now you can config it in ~/.config/starship.toml

slow valve
#

watch me crash it

fluid plank
#

haha no it wont

slow valve
#

lol I don't even have that file

fluid plank
#

then you can start configuring starship.toml

#

to look like this

#

depending on how you config it

slow valve
#

wow

#

I will prolly have a crinj pic there

fluid plank
#

better install nerdfonts first though hhaha

#

but it is optional

slow valve
#

nerdfonts for nerds

#

||jk||

fluid plank
#

in case you need it

slow valve
#

ok

fluid plank
#

but you can install them in the aur

slow valve
#

okie

#

Disable the package module, hiding it from the prompt completely huh what does this mean

fluid plank
#

it means you will disable the python rust and other langs from showing up in the prompt i guess

#

ohnvm

slow valve
#

ok then I won't do that

fluid plank
#

i think it means package managers like npm

slow valve
#

ok

fluid plank
#

The version being shown is that of the package whose source code is in your current directory, not your package manager.

chrome saffron
#

mhm

slow valve
#

how to get python symbol

#

[python]
symbol = ""

#

Like the logo

tranquil ridge
#

what

slow valve
#

vinam

#

I am setting up starship

#

[python]
symbol = "👾 "

#

I want to put the python logo

tranquil ridge
#

ah

slow valve
#

rather than this weird thing

tranquil ridge
#

wait a sec

#

#

bruh discord doesnt support it?

slow valve
#

lol

tranquil ridge
#
symbol = "  "```
#

bruh

#

uhmmmmm

slow valve
#

how did you get that

tranquil ridge
#

i dont remember

slow valve
#

F

tranquil ridge
#

wait let me see if it is visible on github

slow valve
#

bruh fk Image to Text also only gives
[python]
symbol =

tranquil ridge
slow valve
#

lol

tranquil ridge
#

i got it from uncomfy macro ask him

#

@fluid plank need you

slow valve
#

@tranquil ridge try pastebin

tranquil ridge
#

ah k

fluid plank
#

ah use a nerd font for the terminal

#

teach him vinam

slow valve
#

nerd font k

fluid plank
#

u are in xfce after all

tranquil ridge
#

@fluid plank yeah but he needs to put that right

fluid plank
tranquil ridge
#

@slow valve just put the blocky thing and nerd font will render it i guess

#

fluid plank
tranquil ridge
#

starship

fluid plank
tranquil ridge
#

@slow valve yep. just copy the block thing and nerd font will render it

tranquil ridge
fluid plank
#

toony tiny

#

rock golem of dota

tranquil ridge
slow valve
#

which nerd font do you use

tranquil ridge
#

DaddyTimeMono Nerd Font Book

slow valve
tranquil ridge
#

well you asked

slow valve
tranquil ridge
#

which nerd font do you use

#

yes that

slow valve
#

do I need to put that file some where?

#

in the icons folder?

tranquil ridge
#

not the icons folder

slow valve
#

ok

tranquil ridge
#

let me check where hmm

#

/usr/share/fonts/

#

and put the folder there

fluid plank
#

extract it, put it inside a folder, then move it to ~.fonts or what vinam said

#

i prefer putting it in ~/.fonts

#

it is a hidden folder

#

well if it does not exist

#

just make it by mkdir $HOME/.fonts

tranquil ridge
#

i just put things like this inside /usr/share YoumuShrug

slow valve
#

I can't even put anything in /usr/share/fonts/

fluid plank
#

permission denied?

slow valve
#

idk I can't move any folder there

fluid plank
#

haha reason i put it in .fonts

#

i dont wanna sudo cause i am lazy

#

also

slow valve
#

I will just make that dir

fluid plank
#

after moving to any of the folders, do fc-cache -fv

#

to reload the fonts

#

but i prefer reloggin in or rebooting haha idk habits

somber belfry
slow valve
#

yes

somber belfry
#

Putting it in your home is what I'd do

#

...too, ren

slow valve
fluid plank
slow valve
#

got the python symbol

fluid plank
#

imagine your pet fonts crying?

somber belfry
#

pat pat

slow valve
fluid plank
#

ah you need to be in a directory where python will be detected

#

and no

#

thats not how it works

#

haha

slow valve
#

lol

#

python dir huh

fluid plank
slow valve
#

I don't have pyenv lol

fluid plank
#

which is setting my python version to the system python

fluid plank
#

it aint necessary but if it detects a directory having python-version file for example

#

it will show that python logo

slow valve
#

so how I go to that directory

somber belfry
#

hmm, pyenv vs pipenv

#

@fluid plank

fluid plank
#

pyenv is more like having many python versions and is designed for switching versions. pipenv is designed for projects and locking pip packages

#

i dont recommend using pipenv to switch python versions

#

even though it is possible

#

because it is not designed to be that way

somber belfry
#

hmm, do you use pyenv for projects too?

slow valve
#

umm I can't get what I need lol

fluid plank
somber belfry
#

why would you wanna switch between python versions, if not for projects?

#

you'd want to use the global system python for linux tools

slow valve
#

3.9 and 3.8 won't you like the switch?

somber belfry
slow valve
#

pyenv can also do that

somber belfry
#

wait I get it

#

pipenv for packaging your shit

#

so that the versions on your development machine and production machine match

fluid plank
#

i rather not risk using system python for production environments

#

thats why pyenv comes in handy

slow valve
#

agh how can I get this python thing work

#

@tranquil ridge

tranquil ridge
#

?

slow valve
#

idk how to do this

tranquil ridge
#

well it will show on a dir with python

#

or if you use pyenv it will show forever

slow valve
#

How can I get pyenv

tranquil ridge
#

google that, i forgot

#

i can help you after you have installed it

slow valve
#

I get it now

#

nice

tranquil ridge
#

change your font, that icon is tiny

#

like it must not have Mono in it

slow valve
#

Mono?

tranquil ridge
#

check which font you are using in terminal preferences

#

and tell me the exact name

slow valve
#

Monospace Regular

#

and it has Mono lololol

tranquil ridge
#

ye, choose DaddyTimeMono Nerd Font Book,

#

it has Mono but

#

it works

slow valve
#

changed it

#

but same thing

#

oh nvm

#

I chose DaddyTimeMono NF Book

tranquil ridge
#

bigger pepeOK

slow valve
#

ok

somber belfry
#

Python\ Programs hmm

slow valve
#

don't judge on that file name btw

somber belfry
#

lol too late

slow valve
#

lol I was going to say that only

tranquil ridge
#

yeah i got really weirded out by that

slow valve
#

I have a space

tranquil ridge
#

and a backslash

somber belfry
#

you can rename it

slow valve
#

space goes brrrrrrrrrr

#

ik

#

but I am too lazy

#

nvm changed it

#

I just press tab so I am fine anyways

#

I will learn Rust from tomorrow

toxic osprey
slow valve
#

what are you talking about

toxic osprey
#

why imagines taking long time

#

ok nvm

proper python
jovial island
#

👍

icy flicker
#

can't post pictures in general chat

lusty finch
#

im just changing it from celberity to something else

#

did it

icy flicker
#

use celeb - less chance to type it wrong :P

lusty finch
#

finaly

icy flicker
#

now you only need to add a space at the end of each string so the output looks good and you're done

lusty finch
#

i fuckong did LETS GOOOO

#

it took way long than it shoudl

icy flicker
#

use, I dunno, vsc or sublime or some lightweight editor and you'll get warnings for such errors

lusty finch
#

im done coding for the day i need to read for school and my teacher is a pain or else i would code all night long

lapis night
#

that was your code 🙃?

upbeat sandal
#

this is one of the best ot names tbh

somber belfry
#

hahaha agree

unreal sigil
#

Coffee bad

#

tea god

celest field
#

Milk godly

somber belfry
#

Water 🤌 👑

hexed remnant
fluid plank
#

i have not drank coffee for 11 months now

#

idk if thats a success

slow valve
#

@fluid plank my mind is freezing

#

I am learning Rust and agh

steel eagle
#

Rust is a lot at first

#

Are you going through the book?

#

Tbe official one

steel eagle
slow valve
#

I dropped the idea of learning it

#

too much

proper python
#

bruh imagine sleeping
-this post was made by student gang

slow valve
#

lol

steel eagle
#

My history in Java, C, and C++ probably helped me quite a lot with rust

slow valve
#

well I have history with None

limber pollen
#

Probably the only reason I haven't learned Rust yet is because I don't know what to build with it

#

It's a practical language after all

prisma river
#

Have fun with fusefs!

limber pollen
#

Interesting

#

Although I'll write my website in Haskell first

prisma river
#

My plan is to make a cheap yubikey with that lmao

fluid plank
fluid plank
slow valve
#

I tried to learn Java but then got mad

#

the worst thing I did is learn Java at the beginning when I had no programming knowledge

#

I think that's why I got mad lol

fluid plank
#

@prisma river what does fusefs do?

fluid plank
prisma river
#

It allows you to create a custom filesystem without the need for a kernel module

slow valve
fluid plank
prisma river
#

Yeah

#

It is by default with most systems now

fluid plank
#

ooooooooooooooooooooooooooooooooooooooooooooooh

prisma river
#

Or it would be pretty much useless

slow valve
#

If I post childish programs like number guessing on github do I look dumb xD?

fluid plank
slow valve
#

aint what

fluid plank
#

it aint childish

slow valve
#

okay but it is very very simple xD

prisma river
#

Debian and Arch has it, for instance, which is.. most of the existing linux distros

fluid plank
#

i never heard when they defaulted to it

#

i mean fedora defaults btrfs now

#

but fusefs hmmm

#

nah i will just stick to xfs for now

#

haha

slow valve
#

My github has 0 repos lmao

fluid plank
#

it is very tedious to install manjaro again just because of a filesystem

#

:((

fluid plank
#

add some projects you have in mind

#

and try to complete it

prisma river
slow valve
#

should I add the number guessing lmao

fluid plank
#

what are its advantages

slow valve
#

hey can I post my own books on github?

#

like I am thinking of writing one

prisma river
#

The benefits is that you can control the behavior of the filesystem with user code, no kernel module needed @fluid plank

fluid plank
#

wow

#

but idk how to control the behaviour xD

#

let alone modifying a kernel module

#

xD

prisma river
#

Well, the goal of fuse is to not write a module

#

Basically, fusefs is a kernel module, and will link at runtime with your user code, and that’ll control how the fs will react

#

Oooh overlayfs is fuse, interesting

fluid plank
#

sorry i still dont understand :((

#

so i will stick to filesystems i know huhu

fluid plank
prisma river
#

Yeah, I’ve just started

#

Fuse is a tool intended for devs, not for using it as a daily filesystem

fluid plank
#

yeah i read the docs i just realized the purpose of it

#

i will stray away from it for now

jovial island
#

I don't understand why we learn java at school, instead of Python, etc...
Kinda sad

#

memory management

#

static typing

#

I see

#

The problem is

#

Like half the class doesn't understand whats going on, because the teacher sucks at teaching and java itself isn't self explaining

jovial island
#

Like if you see ```
System.out.print();

it's confusing.
if you see a ```
print()
#

you can imagine whats going on

jovial island
fluid plank
#

probably the teachers are from those generations i guess

#

you cant force them to change curriculum now

jovial island
#

Could be, but I guess that's just the languange the teacher have to teach us

#

I asked one of them

#

He said, he doesn't like java

fluid plank
#

well java is fine

jovial island
#

I mean yeah it is

#

still, I'd rather have Python

fluid plank
#

after that you can just switch to kotlin or C or rust

jovial island
#

yeah, that's true

fluid plank
#

you can still learn while learning a lang in school so thats a win win

#

haha

#

but yeah i know how it is frustrating to learn java

#

i wonder how i got a high grade in comsci lmao

#

regretting taking a major in microbiology

jovial island
#

For me it isn't hard at the moment, because I have like 2 years experience in Py, C#, and a few others

#

So I kinda understand everything

#

My problem is, when you look at it from an other persons view, for a student, who never did anything like programming, even basic commands are the hardest ****

jovial island
#

It's complicated

#

Let me explain

fluid plank
#

wait i think i know this explanation but okay go on

#

haha

jovial island
#

Austria is a bit different than other countries with their school system.
This year I switched from the 8th grade secondary school to the 9th grade in a so called "HTL". HTL means "Höhere Technische Lehranstalt" which is like an high school based on technical things.

#

and there I am right now

#

you can say its a high school

#

but somehow its not

#

its different

fluid plank
#

yeah maku told me that haha

#

he is from austria thats why

jovial island
#

ohhh I see

fluid plank
#

i kinda like your school system for some reason

jovial island
#

I mean I can't complain

fluid plank
#

it sounds somewhat efficient

jovial island
#

It is absolutely

fluid plank
#

than the k12 system

#

sounds like a great idea to switch to another system..

jovial island
#

haha

fluid plank
#

so what langs are you learning now? other than python and java?

jovial island
#

I am currently still learning Python, besides learning Java for school

#

That's my main languange I learn

fluid plank
#

i think i will be resting away from python until xmas haha

jovial island
#

Why? :D

unreal sigil
#

lol I've done pretty much zero programming for a good month or two

fluid plank
#

i was learning rust and js at the moment. and i will go back learning python because of this package

unreal sigil
#

cause school got rather busy

#

But have had plenty of time to collect ideas so I can get back to it soon

fluid plank
#

but then, it got too hectic

#

so i do that on weekends

jovial island
#

imagine programming

#

what nerds

jovial island
jovial island
fluid plank
unreal sigil
#

I got a few machine learning projects in mind

jovial island
fluid plank
#

i plan to translate all my python code to rust as much as possible haha

#

bioinformatics and genetics

#

i plan to apply my biology knowledge in order to not regret choosing biology xD. i still love biology but the college sucks at teaching it haha

jovial island
#

Wait...

#

So it's what I said? biomedical engineering? I'm bad at english, I'm sorry

#

Because if it is

#

Thats freaking awesome, because you have to know, that's the category on which my school class is based on

fluid plank
#

idk i think biomedical engineering is another field but somewhat related to genetics

jovial island
#

That's cool

fluid plank
#

thanks sexpistol for this nice article xD