#voice-chat-text-0

1 messages · Page 886 of 1

primal yacht
#

going to somewhat afk now ... lunch

prime slate
#

Voice verify

#

there is a channel for that

primal yacht
#

Ah ...

#

And that means I should have joined long ago ... *sigh*

hushed dragon
#
def print_message(num_of_times) {
    for i in range(num_of_times) {
        print("Bython is awesome!");
    }
}

if __name__ == "__main__" {
    print_message(10);
}
primal yacht
#

and semicolons

#

is indentation still required?

brave steppe
zenith radish
primal yacht
#

Is this valid, @hushed dragon ?

def spam(text, count) { for i in range(count) { print(text); } }
#

Not Python ...

primal yacht
#

Can you try?

rugged root
#

If you plan on being on the server for a while, the number of days is a drop in the bucket

#

And it's helped cut down on our hit and run troll problem

#

Used to get like 4 or 5 a day

primal yacht
#

?

hushed dragon
rugged root
#

!user

wise cargoBOT
#
Mr. Hemlock#2740

hypesquad_balance early_supporter

User information

Created: <t:1443481946:R>
Profile: @rugged root
ID: 98195144192331776

Member information

Joined: <t:1525291749:R>
Roles: <@&267628507062992896>, <@&807415650778742785>, <@&267629731250176001>, <@&831776746206265384>, <@&587606783669829632>, <@&797891034906099752>, <@&267630620367257601>, <@&295488872404484098>, <@&764245844798079016>, <@&764802720779337729>, <@&463658397560995840>, <@&542431903886606399>

Infractions

Total: 27
Active: 1

primal yacht
#

!user

wise cargoBOT
#

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

zenith radish
primal yacht
#

of course

#

^w^;

#

6 years ago

#

created

hushed dragon
brave steppe
#

<T:1233445453432>

primal yacht
#

The time shown is relative to to your system's clock (I assume)

rugged root
#

Yeppers

zenith radish
dreamy trail
#

!user

wise cargoBOT
#

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

primal yacht
#

#bot-commands

dreamy trail
#

Oops

brave steppe
#

!user

wise cargoBOT
#
Bluenix#7543

hypesquad_balance

User information

Created: <t:1502182937:R>
Profile: @brave steppe
ID: 344404945359077377

Member information

Joined: <t:1533055860:R>
Roles: <@&267630620367257601>, <@&855822138590363678>, <@&764802720779337729>, <@&463658397560995840>

Infractions

Total: 0
Active: 0

hushed dragon
#

!source

wise cargoBOT
rugged root
#

!source user

wise cargoBOT
#
Command: user

Returns info about a user.

Source Code
primal yacht
#

My IRL age ....
||O-VA nyan~ THOUSANDS!!!! nanoseconds old||
</exit-bad-pun>

#

Co-op programming

#

Ah hellow you two on camera

rugged root
#

Sadly no achievements to unlock

primal yacht
#

brainf**k.NET

#

There are games made in RenPy [1] that run on Android.

[1] RenPy is a visual novel engine using Python

#

...
So Kotlin is similar to TypeScript?

#

The Coding Den has at least one bot made in Go

gentle flint
#
rugged root
#

They wait what? They made one for .NET?

hushed dragon
primal yacht
#

dynamically loading DLLs :/

#

in C++ .... a pain at runtime

#

and unload when not used?

#

Anyone remember OCX Controls ?

gentle flint
primal yacht
#

OCX Controls ... old name for ActiveX Controls

gloomy vigil
gentle flint
rugged root
#

Oh huh

opal mulch
hushed dragon
rugged root
#

I didn't remember it being called that

gentle flint
primal yacht
#

one of your lines does not have enough : ... which may mean you might be at the last line of the file

#

@opal mulch ^

rugged root
#

I'll be back once I get in the van. Have to do a batch of deliveries

gentle flint
#

it comes with instructions

rugged root
#

The best throw pillow

hushed dragon
gentle flint
primal yacht
#

Found it!

hushed dragon
primal yacht
#

@gentle flint I found the link for the official merch store

hushed dragon
serene falcon
# opal mulch

You should check your file .. this bash script could help : cat file.txt | awk -F":" '{print NF }' | sort -n | uniq -c

primal yacht
#

eMac >w<

#

wt*! I heard someone heard "emo macs" *giggle*

#

do you mean like a "cheat sheet" thing?

#

manual?

primal yacht
#

What platform?

hushed dragon
#

NVIDIA Quadro RTX 5000 Studio Edition (16GB GDDR6 VRAM)

primal yacht
#

And ... desktop app or website?

#

Alt-F4 then immediately reopen it .... it will rejoin the call for you

hushed dragon
#

yeee

#

CTRL + R

primal yacht
#

[Ctrl] + [R] fully restarts it?

#

I do Alt-F4 since Discord may have an issue with the device list ... like if I turn off my Bluetooth headset / etc.

#

w<

#

What about time ?

hushed dragon
primal yacht
#

O'Reilly just publishes books ... not writes the books

#

mhm

#

Totally sounds like Sonic the Hedgehog

hushed dragon
primal yacht
hushed dragon
primal yacht
#

OwO

#

He/Him is easier than typing all 5 each time

#

going to claim some stuff in Asphalt 9

#

racing game for mobile and Win10

#

idk for other platforms off the top of my head besides Switch

#

gen Wynaut?

#

mhm

#

There is more than 2 genders

gentle flint
#

I'll be right with you

#

just gotta put on a shirt and start my pc

#

unless you prefer my topless charms

#

hemlock would murder me tho

primal yacht
#

(K twelve) K-12

willow light
#

Now…we wait

#

98°F right now, which is 49 higher than needed

gentle flint
willow light
gentle flint
#

that is rather annoying

#

by the way, since when do Americans use public transport?

primal yacht
#

I doubt political talk is allowed here so I'll not say anything about democrats vs. republicans stuff

#

Normally Republicans in power are the ones taking money away from the people while Democrats are the ones having to give money back to the people after the Republicans took it away

zenith radish
hushed dragon
whole bear
#

might need me some more customisations

#

lol

hushed dragon
alpine path
zenith radish
gentle flint
#

back in half an hour

primal yacht
#

RAR is proprietary

gloomy vigil
#

hello

primal yacht
rugged root
#

Oh neat

primal yacht
#

About the DLL of 7-Zip literally being used inside of WinRAR

rugged root
#

Can I use the source code of 7-Zip in a commercial application?
Since 7-Zip is licensed under the GNU LGPL you must follow the rules of that license. In brief, it means that any LGPL'ed code must remain licensed under the LGPL. For instance, you can change the code from 7-Zip or write a wrapper for some code from 7-Zip and compile it into a DLL; but, the source code of that DLL (including your modifications / additions / wrapper) must be licensed under the LGPL or GPL. Any other code in your application can be licensed as you wish. This scheme allows users and developers to change LGPL'ed code and recompile that DLL. That is the idea of free software. Read more here: https://www.gnu.org/. You can also read about the LZMA SDK, which is available under a more liberal license.

#

Neat

primal yacht
rugged root
#

So wait, 7z came bafore?

#

I always thought it was after the other two

primal yacht
#

How can I add support for 7z archives to my application?
[...] There are other applications that use 7za.dll such as WinRAR, PowerArchiver and others.

#

It might have, but WinRAR totally uses it.

rugged root
#

Neat

#

.... don't know why I keep saying that

willow light
#

Turned out to be 50 minutes late

primal yacht
#

Hence why WinRAR can extract it

#

I'm gaming is why I'm late

rugged root
#

Can't blame you there

gloomy vigil
#

yo guys i am gonna go early goodnight i have a medium cold

hushed dragon
#

see ya

primal yacht
#

Reminds me of defragmentation

rugged root
#

Duuuude

gentle flint
primal yacht
rugged root
#

I miss watching the blocks move around

willow light
#

OMG it keeps getting worse

primal yacht
#

... speaking of that ...

rugged root
#

So soothing

willow light
#

Someone is coughing a lot on this train and needless to say I am very nervous

gentle flint
#

hi again

#

Datacenters R Us

primal yacht
rugged root
#

The only one that comes to mind is Defraggler

primal yacht
rugged root
#

Not sure on the spelling

willow light
#

Not Destraggler?

rugged root
#

I guess that could technically work

willow light
#

Or Bedraggler

rugged root
#

Less so on that one

primal yacht
rugged root
#

I mean in fairness, it does go out and get the stragglers back into their spots

#

Cuteness, do you mind if I ask how old you are?

#

Not a lot of folks remember all that stuff

primal yacht
#

first half of my 30's

rugged root
#

Gotcha, so close to age with me

willow light
#

Cool, I’m in the 0th half

rugged root
#

Undefined

willow light
#

The half before the first half

primal yacht
rugged root
primal yacht
#

Only part of the bottom shown on the top

willow light
#

So that’s where utorrent got that ui from back in 2011

rugged root
#

Oh I forgot that had it as well

willow light
#

I like how we still are young enough that one can still openly admit to having pirated in the past and everyone around just shrugs.

primal yacht
#

omg I got more than just one chunk of my Ubuntu VM

willow light
#

What?!?

rugged root
#

Jesus

primal yacht
rugged root
#

Primary colors out the wazoo

primal yacht
#

This is just my C: ... partition

willow light
#

Disks were a lot smaller back when this was a routine practice

primal yacht
willow light
#

I found an old 256 Gb flash drive from when I was in middle school. Remember when they came with their own UI?

primal yacht
#

color legend

primal yacht
primal yacht
#

or at least disabling it from triggering automatically

hushed dragon
#

What does ctx mean?

rugged root
#

I hate autoplay

#

Context

hushed dragon
#

Context?

rugged root
#

Yep

willow light
#

Context!

hushed dragon
#

Oh thought so

#

Also. I now understand...

primal yacht
#

For JS devs working with a <canvas>, it would be the context that they are drawing on.

hushed dragon
#
   Pass```
rugged root
#

For Discord bots, it's the context of the event or command

willow light
#

For me, it’s the context of the pun

hushed dragon
willow light
primal yacht
willow light
rugged root
#

I mean

#

It's accurate

primal yacht
#

When a file is executed in any way, including by import, it will execute the file ...
[continued]

hushed dragon
#
    print("this will never run")```
willow light
#

Effectively the equivalent of public static void main() {}

#

Is what I meant

primal yacht
#
# one.py
print(__name__)
import two
if __name__ == '__main__':
    print('NUMBER 1')
# two.py
print(__name__)
if __name__ == '__main__':
    print('NUMBER 2')

...

# Bash
python3 one.py
rugged root
#

I'm off the clock, why haven't I left for home yet

gentle flint
#

'cuz we're just so interesting

rugged root
#

And I'm trying to keep things from boiling over

gentle flint
#

oof

willow light
#

Really boiling over

rugged root
#

Are you meeting Ben there?

willow light
#

Train at 25mph due to heat

primal yacht
willow light
#

The heat causes the rails to expand, and due to how they’re built they have to expand upwards.

Unevenly.

amber raptor
hushed dragon
zenith radish
#

#!/bin/env python3

primal yacht
#

#! lines sometimes work on Windows

hushed dragon
#

z z

primal yacht
#

For a properly-configured Apache server on Windows, you can make it run Python

rugged root
#

Could probably make a fridge do it

primal yacht
#

Among our weapons are these [...] and nice red uniforms

gentle flint
#

don't forget the large hats

primal yacht
#

why not just use ssh to port forward to your own local system?

gentle flint
prime slate
#

true...

#

so true...

primal yacht
#

Try making a large program with point & click ... no physical keyboard, no touch screen keyboard ... if anything, only the mouse can use the keyboard

gentle flint
primal yacht
#

Taking a break

gentle flint
#

@alpine path you're gonna end up like me

prime slate
#

@alpine path you mean webhook: github actions -> server or server -> github actions?

#

if first, how to sign the request, so it won't be spammed by anyone Thonk

zenith radish
#

gh -> ur server

prime slate
#

yeah, but how to secure it

zenith radish
#

have a private repo

prime slate
#

I mean

#

I will need to expose the webhook on my server

#

gh actions to pick up it

zenith radish
#

sure setup a resource that checks if it comes from gh

alpine path
#

github pass you an authorisation key

#

that you decrypt to verify it's from gh

prime slate
zenith radish
prime slate
#

wait

#

deploy keys @alpine path ?

gentle flint
#

this dude has loads of stuff

hushed dragon
#
Using default tag: latest
The push refers to repository [192.168.*.*:*/skys-nekobot]
Get https://192.168.*.*:*/v2/: http: server gave HTTP response to HTTPS client```
gentle flint
#

das brüt fors

hushed dragon
zenith radish
hushed dragon
#

"invalid reference format"

gentle flint
flat sentinel
#

helo veboski

gentle flint
#

helo kmaski

#

@flat sentinel ignorantia juris non excusat

zenith radish
hushed dragon
flat sentinel
gentle flint
#

if you have NSFL, do you by extension have Not Safe for Death?

flat sentinel
#

when do police action

gentle flint
#

@flat sentinel

flat sentinel
#

yes

#

very hate

gentle flint
#

"police action"

#

absolutely not a war

#

how dare you even imply such a thing

flat sentinel
#

Doubt \

gentle flint
flat sentinel
gentle flint
#

The British equivalent fuckup would be the Mau Mau Uprising

#

The Mau Mau Uprising (1952–1960), also known as the Mau Mau Rebellion, the Kenya Emergency, and the Mau Mau Revolt, was a war in the British Kenya Colony (1920–1963) between the Kenya Land and Freedom Army (KLFA), also known as Mau Mau, and the British authorities.Dominated by the Kikuyu people, Meru people and Embu people, the KLFA also compris...

#

here's how the British wage what's not a war

#

etc

flat sentinel
#
All Sunni schools of jurisprudence agree that zināa is to be punished with stoning to death
gentle flint
#

sunny schools of jurisprudence

flat sentinel
#

map men

past pawn
#

@gentle flint how long you've been in vc?

flat sentinel
past pawn
#

I joined last night 1vo there, i wake up this morning 1vo still there

flat sentinel
past pawn
#

Bruh

#

How does one safely express desire for video perms? I do prefer to communicate in sign language at this time of morning

gentle flint
#

one doesn't

past pawn
#

Adapt. Improvise. Overcome.

ivory sparrow
#

what else should I do while driving at night other than stream in discord?

past pawn
#

I am literally standing next to a python

#

Rn

jaunty pendant
#

pet it

past pawn
#

Oh shit he found lunch

#

Theres birds everywhere now

#

Imma do some programming here, with this python

gentle flint
past pawn
gentle flint
wild stirrup
#

Hi everyone...

#

What's the purporse of this chat? 😅

grand basalt
#

hey

#

i need help

frosty star
#

Usually its for when ur hangin out in voice channel but u dont rly want to use voice

#

But its also for other random things

grand basalt
#

sent message pv

wild stirrup
#

Ahhh Ok...

#

I have no voice, any suggestions? 🤣

rugged root
#

And we cover all kinds of topics, majority of which are programming, but as conversations do, it hops from topic to topic

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @zinc oasis until <t:1630029546:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

rugged root
#

Well that happened

wild stirrup
#

Is there any readme for this server? 🤣

#

btw I'm newbie 🤓

rugged root
#

Well I typically suggest checking out the rest of the server, which I know can be a bit of a tall order considering how many channels we have.

We've got our help system for fielding Python specific questions (see the #❓|how-to-get-help channel for more on that) as well as a variety of more specific topical channels which are more focused on their given field.

There's also the off topic channels up near the top for when you just want to talk about whatever catches you're fancy. The voice chat is typically more active about 10ish hours from now.

#

There's also #career-advice for questions about what it's like in the industry, questions about specific fields in it and so on. #esoteric-python is for the folks who love to push the language to its limits, including code golfing.

#internals-and-peps covers more nitty-gritty details about the Python language and there CPython interpreter we know and love

#

And that's about all I can think of off the top of my head.

rugged root
#

Just realized I should hold onto that for later

#

Hope that helps

rugged root
#

Yeah it's pretty heady at times

wild stirrup
#

Hey, and which channel could I join to talk about switching careers paths?

rugged root
#

It'd be there. Don't hesitate to pipe up and ask questions

#

It's what we're all here for

wild stirrup
#

Lol, so I'm in the right place...

#

So.. I'm graduated from physics degree and I've doing a bit of everythnig looking for jobs 🤣 ... But what I really feel comfortable is coding

#

But idk how to start getting hired or joining existing projects, freelancing...

rugged root
#

Yeah they'd be able to help on that, at least nudge you in the right direction

fresh ember
#

can anyone help me

#

??

flat sentinel
opaque coral
#

hello please let me unmute

#

@cedar briar let me unmute

cedar briar
#

i'm not a mod

cedar briar
timber lark
#

go to voice verification chat

severe veldt
#

hello

#

yeah

#

yeah I guess that's the rule

rugged root
#

Okay I'm swapping it back to the ping system. The DM doesn't seem to be effective

gentle flint
timber lark
#

damn forgot how much smash ult remakes bops

candid venture
#
with Popen('"' + str(os.environ["ProgramW6432"]) + '\\Java\\jdk-16.0.2\\bin\\java.exe" -Xmx8G -Xms8G -jar server.jar nogui'):

past pawn
#

hmm

candid venture
#
mc.py
from subprocess import Popen
import os
from pyngrok import ngrok

print("Opening Tunnel")
minecraft_tunnels = ngrok.connect(25565, "tcp").public_url
minecraft_tunnels = str(minecraft_tunnels).replace("tcp://", "")
print("Starting Java Minecraft Server")
with Popen('"' + str(os.environ["ProgramW6432"]) + '\\Java\\jdk-16.0.2\\bin\\java.exe" -Xmx8G -Xms8G -jar server.jar nogui'):
    quit()
bot.py
import discord
import mc
from discord.ext import commands
import time
import datetime
bot = commands.Bot(command_prefix='>')

@bot.event
async def on_ready():
    await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="Ngrok Tunnel"))
    print("Bot Ready")
    await send_data()


async def send_data():
    channel = bot.get_channel(709057578486726720)
    await channel.send("Server has started.\nPlease wait for a tunnel to open!")
    time.sleep(2)
    embed = discord.Embed(title=f"Ngrok Tunnel", timestamp=datetime.datetime.utcnow(), color=discord.Color.blue(), )
    embed.add_field(name="Ip address: ", value=mc.minecraft_tunnels)
    # embed.set_thumbnail(url=f"{ctx.guild.icon}")
    embed.set_thumbnail(url="https://img.icons8.com/bubbles/452/minecraft-logo--v1.png")
    embed.set_footer(text="y0nliud#1545", icon_url="https://i.pinimg.com/originals/14/26/57/142657a83da1a1536ff4591bded4743b.gif")
    await channel.send(embed=embed)
    
rich cloud
#

Knock off hans zimmer xD

timber lark
#

jeez

#

i was on fitz server and someone's pfp was his sister's nudes

blissful fog
#

I am 16 and started to get intrested in coding and programming

#

do you guys have suggestions on what to use for coding and where to learn?

zenith radish
blissful fog
#

yh

rugged root
#

Are you brand new to programming in general?

blissful fog
#

yh

#

what program should i use

#

i saw people are using visual studio code and pycharm

rugged root
#

!resources So for resources and where to learn, I suggest taking a look at our page. "Automate the Boring Stuff" and "A Byte of Python" are ones we suggest.

Under the Tools section, I suggest either Thonny or Mu-Editor. Even IDLE is pretty decent anymore. I personally wouldn't recommend PyCharm or VS Code, as they end up being a bit of a tripping point on folks who are starting to learn. Things like IDLE, Thonny and Mu-Editor let people focus on learning the language rather than fighting the editors.

wise cargoBOT
#
Resources

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

blissful fog
#

thank you so much

timber lark
#

theres games i wanna buy off g2a that i cant get off steam

#

bc licensing issues or the game's banned bc classification office doesnt wanna look at the game

#

cough hotline miami 2

#

cough optional censored scene thats topdown and cant see

somber heath
#

"Hi, I'm Miss Clique."

timber lark
#

australia isnt a real country reminder

zenith radish
somber heath
#

I always think of bootbrushes when I see them.

rich cloud
#

They sound scary at night

somber heath
#

"Can't sleep. Hedgehogs will eat me."

timber lark
#

as a 9 year old i used to be scared of this

#

@zenith peak lol dont think i ever encountered that

timber lark
#

@rugged root its the hulk from Bungie's marathon

haughty pier
timber lark
#

dont think anyone here knows what marathon is

rugged root
timber lark
#

also for the assignment we talked about yesterday, i was told its ok for the front end to still call functions from the backend

#

ohh ahh fuck off i dont wanna see any more amogus

somber heath
#

From the makers of Go, Stop.

rugged root
somber heath
#

Bippy thon.

severe veldt
rugged root
#

I likes it

gloomy vigil
timber lark
#

fuck

swift valley
#

Good evening good people

#

Will hop on in a bit

rugged root
#

Sounds good

celest pecan
#

I am

gloomy vigil
#

i am not old enough to commit one

zenith radish
#

when u wanna copy an example

#

Line numbers lipbite

gloomy vigil
#

yea

celest pecan
#

gonna buy car

vivid palm
#

what car

somber heath
#

Valley day shun.

#

So basically an episode of Buffy.

rugged root
#

That...

#

Yeah actually

#

When it comes to "signing a waver for something", is that the right spelling?

somber heath
#

waiver

rugged root
#

Thank you

#

Knew it didn't feel right

somber heath
#

Related term: Indemnification.

gloomy vigil
#

well i am gonna goooooooooo

swift valley
#

hallo

#

Not yet

#

I tried getting into Reason but the tooling is ehhhhhhhhhhhhhh

#

PureScript has pretty good bindings for React anyways

#

There's a reason I got into PLT over DevOps more spj_laugh

#

Programming language theory

tidal salmon
#

Still can't hear people over my vpn lemon_angrysad

rugged root
#

Weird

tidal salmon
# rugged root Weird

also I can't turn the VPN off, lest I leak horrible government secrets and stuff

rugged root
#

Fair

tidal salmon
#

(like the computer literally will not connect to the internet except through the vpn)

zenith radish
#

Y

vivid palm
swift valley
vivid palm
#

x.x

#

(x.x)

swift valley
#

OOP is a sin

uncut kestrel
#

what is the point in the calcul

swift valley
#

30 years of feature creep is making Python meh for me

rugged root
#

I thought they were working to trim stuff out

swift valley
#

Deprecations are pretty much standard in the release cycle

#

MATLAB

#

Programming-languages-as-a-service

#

imagine paying for a programming language 😔

rugged root
#

It's that a site license?

swift valley
#

Site license?

rugged root
#

As in that covers usage for the whole building

#

Unlimited users so long as it's used specifically at that location or business

chilly pond
#

hey so um is it possible to get unity to run on python or does it only run on C#

swift valley
#

That's individual

chilly pond
#

sad

swift valley
#

Edu licenses are a lot cheaper though

chilly pond
#

eh it cant hurt to know both. Can it?

tiny socket
chilly pond
#

truth

honest pier
#

knowing languages is only good if you have uses for them. no reason to just go around collecting languages

rugged root
#

Lies

#

I must have them all

#

I'm a language dragon

#

I will horde them all

chilly pond
#

well i have anidea but the only thing availible is unity

#

i cant talk

amber raptor
#

C# is general purpose

chilly pond
#

what now?

leaden comet
#

Godot is wonderful.

swift valley
chilly pond
#

it's fun

#

wait is that posible

#

to make a game with out knowing any code?

swift valley
#

First language I learned was JS

chilly pond
#

if so my hope is restored

swift valley
#

Python came after a few years

chilly pond
#

interesting

swift valley
#

Then now I just live in the ivory tower of FP

chilly pond
#

idc what that means so my reaction if it's a good thing is lol if it's a bad thing them well that sucks

swift valley
#

It's a little bit of both

#

I kinda don't ever want to touch imperative/OOP languages anymore

leaden comet
#

someone asked me something?

chilly pond
#

idk

#

sorry

leaden comet
#

..was it @amber raptor?

#

wow

#

nice work, you bot piece of shit.

swift valley
#

I've always found OOP design patterns extremely boring

leaden comet
#

I love OOP

chilly pond
#

brain.exe has stopped responding

amber raptor
rugged root
chilly pond
#

?

#

so um

#

is there a way i could learn python from the server?

#

or...

rugged root
#

Absolutely! We've actually got a huge page of resources that can help

celest pecan
#

two?

rugged root
#

!resources We typically suggest "Automate the Boring Stuff" and "A Byte of Python" for beginners

wise cargoBOT
#
Resources

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

swift valley
rugged root
#

We also have YouTube videos and other stuff. And if you ever need help or clarification on a concept, we're always here to field your questions

chilly pond
#

oooo thank you

#

can i get a link?

rugged root
swift valley
chilly pond
#

bru

swift valley
#

I should finish Quake

chilly pond
rugged root
#

@zenith radish issue got updated if you haven't seen it

swift valley
#

Quake is a first-person shooter video game developed by id Software and published by GT Interactive in 1996. It is the first game in the Quake series. In the game, players must find their way through various maze-like, medieval environments while battling a variety of monsters using an array of weaponry. The overall atmosphere is dark and gritty...

chilly pond
#

hey i had quake wars for the ps3

#

what engine runs python?

rugged root
#

The default interpreter is called CPython

#

But there are other implementations in other languages or that have different focuses

#

PyPy for example aims to make a JIT (Just In Time) compiler to run Python

chilly pond
#

hu

#

witch do you think is easier to learn python or C#?

tiny socket
#

!pypi owout

wise cargoBOT
chilly pond
#

ooooo this seams cool

tiny socket
#

im insulted 😦

amber raptor
leaden comet
#

I do like that one

chilly pond
rugged root
#

OH, I think I suggested the mask one

vivid palm
chilly pond
#

so um i checked the thing you sent me and i have no idea what i'm supposed to do

#

hermlock

rugged root
#

I'd read over this one

#

It introduces you to the basics and what have you

leaden comet
timber lark
zenith radish
#

hemshake
👗
programmingsocks

swift valley
#

what...?

amber raptor
tiny socket
#

hemshake
💰

timber lark
#

YukikoFace
💰

tiny socket
#

hemshake
👙
fs_legwalk

swift valley
#

no

zenith radish
#

AND I'M SO SORRY

swift valley
#

goddammit

rugged root
#

Yeah wasn't anticipating the cascade

zenith radish
#

おすもう

swift valley
#

I'm just vibing to boomer shooter OSTs

rugged root
#

The hell's a boomer shooter

swift valley
#

Any FPS released < 2000

#

or any throwback shooter

timber lark
#

hemlock when someone says where are you

swift valley
rugged root
#

(U ᵕ U❁) (✿oωo)

vivid palm
#

(◕ᴗ◕✿)

#

(◔◡◔✿) (◡‿◡✿) (◠‿◠✿)

zenith radish
swift valley
#

I can't find Pepsi Vanilla anymore

#

Yep

#

Coke too

zenith radish
swift valley
#

Nyan Cat is an NFT now

#

Literally unwatchable 😔

tiny socket
rugged root
half silo
#
import os
import sys
import time
import subprocess
import pkg_resources

os.system("title matplotlib learning 1")


#Installing required modules
required = {'colorama', 'matplotlib'}  # Here you can type in the modules that are needed.
installed = {pkg.key for pkg in pkg_resources.working_set}
missing = required - installed

if missing:
    print("""Looks like there are missing modules, you haven't installed.
    I am gonna do that for you :) | Please wait.""")
    print("")
    python = sys.executable
    subprocess.check_call([python, '-m', 'pip', 'install', *missing], stdout=subprocess.DEVNULL)
    os.system("cls")
else:
    print("All modules are installed. :)")
    time.sleep(2.0)
    os.system("cls")

from colorama import *
import matplotlib.pyplot as plt
from matplotlib.pyplot import *

def hellomessage():
    print(Fore.LIGHTGREEN_EX + "Hello!" + Style.RESET_ALL)
    time.sleep(1)
    os.system("cls")
    print("Note: " + Fore.YELLOW + "This is a ML-Learning-Program." + Style.RESET_ALL)
    time.sleep(2)
def chart():
    #inputs for chart.
    print("")
    input1size = input(Fore.LIGHTBLUE_EX + "Anzahl der Personen: " + Style.RESET_ALL)
    input2size = input(Fore.LIGHTBLUE_EX + "Größe der Personen in cm: " + Style.RESET_ALL)
    #inputx = input(input2size * input1size)
    ##################
    plt.title('Test 1')
    plt.xlabel('Anzahl der Personen')
    plt.ylabel('Größe in cm')
    #feature = np.array([
        #[4.0, 37.92655435, 23.90101111],
        #[4.0, 35.88942857, 22.73639281],
        #[4.0, 29.49674574, 21.42168559],
        #[.0, 32.48016326, 21.7340484],
        #[2.0, 30.43124, 12.21431],
        #])
    feature = np.array([input1size, input2size, 22.73639281],
                       [4.0, 35.88942857, 22.73639281])
    plt.scatter(feature[:,0],feature[:,1], )
    plt.show()
    plt.title('Test 1')


hellomessage()
chart()```
swift valley
#

what...?

chilly pond
#

big confuse

timber lark
#

where was the mcchikenlickmyass thingymajig

chilly pond
#

w-

#

what

rugged root
#

Can... can we not with the chicken thing

#

Like

#

Ever

swift valley
#

You hardcode all possible states /s

chilly pond
#

ok then moving on

half silo
#

Traceback (most recent call last):
File "D:\programmieren\so1\main.py", line 62, in <module>
chart()
File "D:\programmieren\so1\main.py", line 54, in chart
feature = np.array([input1size, input2size, 22.73639281],
TypeError: Field elements must be 2- or 3-tuples, got '4.0'

timber lark
swift valley
#

Discord takes a while to implement stuff

#

@half silo input returns a string, you would want to convert the output from that into an integer/float first

#

My PC is too potato unfortunately

half silo
#
    feature = np.array([tuple(input1size), tuple(input2size), 22.73639281],
                       [4.0, 35.88942857, 22.73639281])
swift valley
#

!e Let's see

import numpy as np

input1size = float("42")
input2size = float("69")

feature = np.array([input1size, input2size, 22.73639281],
                   [4.0, 35.88942857, 22.73639281])

print(feature)
wise cargoBOT
#

@swift valley :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 6, in <module>
003 | TypeError: Field elements must be 2- or 3-tuples, got '4.0'
swift valley
#

That's, hmmm

half silo
#

hmmmmm

swift valley
#

Oh, I got it

#

You're passing two arguments to np.array, not one

honest pier
#

!d np.array

wise cargoBOT
honest pier
#

!d np.ndarray

wise cargoBOT
swift valley
#

!e

import numpy as np

input1size = float("42")
input2size = float("69")

feature = np.array([
  [input1size, input2size, 22.73639281],
  [4.0, 35.88942857, 22.73639281]
])

print(feature)
wise cargoBOT
#

@swift valley :white_check_mark: Your eval job has completed with return code 0.

001 | [[42.         69.         22.73639281]
002 |  [ 4.         35.88942857 22.73639281]]
swift valley
#

ta-da

tidal salmon
#

hey pure, you know how numpy operations mostly return new arrays instead of modifying the existing one? is that f u n c t i o n a l?

swift valley
#

Pure enough I guess spj_laugh

half silo
swift valley
#

You want multiple user heights?

half silo
#

kind of

#

not really

swift valley
#

Could you describe a bit more?

half silo
#

i want to have multiple "Anzahl der Personen"

#

Anzahl der Personen = Amount of persons

swift valley
#

I'm not really familiar with matplotlib as well unfortunately

rugged root
swift valley
half silo
#

ah

#

nice

swift valley
#

I'd honestly enjoy data science more if I had more data to process jupiterdjinn

rugged root
#

I work 8 to 16 UTC-5

swift valley
#

Banana-flavoured milk

#

Off topic

#

I absolutely hate dependency management in C/C++

rugged root
#

I'm trying to think of the ones that work well

swift valley
#

Opinions on the Steam Deck?

rugged root
#

I hope it'll be good

#

But I'm hesitant

swift valley
#

Valve shouldn't fuck it up as bad

#

They got scalpers mostly out of the way at least

#

you go pew pew on aliens

#

Dread?

somber heath
#

Rerd Ererd.

swift valley
#

Man I should play Red Alert 2 again

rugged root
#

So good

swift valley
#

Stardew Valley

#

Terraria (?)

rugged root
#

Yep

peak ocean
#

I bet @raw carbon can do an amazing Duke Nukem voice

#

BAWWWWLS OF STEEEL

#

Jon saint jon baby

swift valley
somber heath
#

Also the lesser-known title, Posthole 2.

rugged root
#

So good

#

Super Mario RPG: Legend of the Seven Stars

#

Earthbound

#

Final Fantasy: Mystic Quest

timber lark
#

say this like in a duke nukem voice "Hi there, would you like to sign my petition"

swift valley
#

Everyone moved on to Valorant

somber heath
#

I have beef with the name, "Final Fantasy". How many have there been? Final, my arse.

timber lark
#

"are you gonna sign this petition or is it gonna to be one of your surviving family members?"

swift valley
#

I haven't even played a Final Fantasy game

#

FF6 I tried

#

I like the original Quake

#

The Strogg ones are ???

#

Has Halo ever strayed away from formula?

peak ocean
#

I just grabbed the new quake version on the switch, its nice they cleaned up the animation interpolation

rugged root
#

And they kept the sound effects

#

God the shotgun sounds

#

So so so so SO satisfying

swift valley
#

The shotgun is just so meaty

timber lark
swift valley
#

Mega Man X had a pretty cool aesthetic

olive hedge
swift valley
#

Henlo Fisher

olive hedge
#

hello

#

I am angy

#

at mr MAD

rugged root
#

Why's that?

#

Oh this again

olive hedge
#

he betrayed me

olive hedge
rugged root
#

I see that now

swift valley
#

I need context

peak ocean
#

You didnt like the Goldeneye stick/C button layout? 😛

rugged root
#

Fisher is salty that MAD didn't let him know that he was on VC

#

Okay dude

#

Have you tried to play that again?

swift valley
#

I should try and finish it

#

I've finished a Kirby game at least

rugged root
#

@tiny socket What's up?

rugged root
swift valley
#

The Amazing Mirror

rugged root
#

It actively hurts

swift valley
#

100% at least twice

rugged root
#

Oh dude

timber lark
swift valley
#

I think yeah

tiny socket
swift valley
#

The one with the clones

tiny socket
#

is it GMT

rugged root
#

Yeah, midnight UTC

swift valley
#

8 hours more relative to UTC

tiny socket
#

I'm gonna combine minecraft & python and try to make a thing using both

amber raptor
#

!walrus

#

SOMEONE TEACH ME WALRUS

olive hedge
#

:= 🍎

amber raptor
#

I actually have use for it

swift valley
#

!e

import re

pattern = re.compile("hello")

if result := pattern.match("hello"):
    print(result)
wise cargoBOT
#

@swift valley :white_check_mark: Your eval job has completed with return code 0.

<re.Match object; span=(0, 5), match='hello'>
swift valley
#

That's a use-case

amber raptor
#
TARGET = 100
for i in range(1, 101):
    div = TARGET / i
    if TARGET % i == 0:
        print(f'{div} * {i} = {div * i}')```
#

how do walrus that

somber heath
#

Walrus assigns from the right to the left and returns. Thus (a := b) is often a useful way of writing it.

amber raptor
#

I need div

rugged root
#

Well actually...

amber raptor
#

so div := TARGET % i == 0

rugged root
#

No

#

Or wait

olive hedge
#

!e

stuff = None
if suff := 3:
    ...
print(stuff)
wise cargoBOT
#

@olive hedge :white_check_mark: Your eval job has completed with return code 0.

None
olive hedge
#

idk how to walrus

rugged root
#
if (div * i) % i  == 0:
#

I think

primal yacht
#
whole, remainder = divmod( numerator, denominator )
swift valley
#

I forget that divmod exists

rugged root
#

Same

swift valley
#

I mean it exists in Haskell but I don't have much use for it

primal yacht
#
(1.0).is_integer() # True
(12.34).is_integer() # False
#(1).is_integer() # AttributeError
somber heath
#
while (answer := input("Give a number: ")).isnumeric():
    pass
print(answer)```
rugged root
#

Good to see you again, Cuteness

primal yacht
#

^w^

rugged root
#

Wow that feels really creepy to type out

primal yacht
#

*giggle*

somber heath
#

It has a capital.

sweet crystal
#

int(x) == x should work too

primal yacht
vocal raven
#

all these big brains mine feels so small lol

somber heath
rugged root
primal yacht
swift valley
#

evil

olive hedge
#

!e

x = 1.0
print((x // 1) == x)
wise cargoBOT
#

@olive hedge :white_check_mark: Your eval job has completed with return code 0.

True
primal yacht
amber raptor
#

my point was isinstance is right way to test if something matches the type

primal yacht
amber raptor
#

then it lead into python returns / always returns float and it lead to hey, if you are testing if something divides cleanly, use %

#

but I was trying to instill fundamentals that isinstance is best way to test variable matches type

gilded rivet
#

if isistance(joe, Capitalism)) == True: ...

swift valley
#
PSCi, version 0.14.4
Type :? for help

import Prelude

> 1 / 0
0

> 1.0 / 0.0
Infinity
primal yacht
#
not 0 # True
not 0.0 # True
bool(0), bool(0.0) # (False, False)
#

IIRC, bool is a subclass of int

swift valley
#

that's correct

somber heath
primal yacht
#
>>> bool.mro()
[<class 'bool'>, <class 'int'>, <class 'object'>]
amber raptor
#

Mod might work as well

primal yacht
#
>>> collections.OrderedDict.mro()
[<class 'collections.OrderedDict'>, <class 'dict'>, <class 'object'>]
stiff copper
#

very cool

amber raptor
#

Original complaint for person I was helping was isinstance(x, int) wasn’t working.

primal yacht
honest pier
#

you can't mod 0

amber raptor
#

And I was like say what?

rugged root
#

Same as dividing by 0 right?

primal yacht
olive hedge
honest pier
#

float.is_integer just uses floor(x) == x

olive hedge
amber raptor
#

So they said use is_integer which I was like, is not available on all types, use isinstance to see

#

Or just try except

primal yacht
#

Linux Mint -- a derivative of Ubuntu, and a rolling release cycle

honest pier
#
static PyObject *
float_is_integer_impl(PyObject *self)
{
    double x = PyFloat_AsDouble(self);
    PyObject *o;

    if (x == -1.0 && PyErr_Occurred())
        return NULL;
    if (!Py_IS_FINITE(x))
        Py_RETURN_FALSE;
    errno = 0;
    o = (floor(x) == x) ? Py_True : Py_False;
    if (errno != 0) {
        PyErr_SetFromErrno(errno == ERANGE ? PyExc_OverflowError :
                             PyExc_ValueError);
        return NULL;
    }
    Py_INCREF(o);
    return o;
}
swift valley
#

I've been using Manjaro for a year now

rugged root
#

Pretty sure that was my fault

swift valley
#

I honestly want to switch to Debian

#

Debian Bullseye is nice

somber heath
#

@primal yacht I was referring to your name, itself, not you, where gendered terms can be appropriate.

swift valley
#

I'm also considering NixOS

somber heath
#

@primal yacht I would not, for example, say to you "Your name, she has a capital."

primal yacht
timber lark
somber heath
#

I would say "Your name, it has a capital."

primal yacht
#

Who likes my Windows 10 OS with 2 visible Linux """windows"""

somber heath
#

So...not misgendering you or nulligendering or whatever you thought I was doing.

swift valley
#

I should get into theming my desktop again

primal yacht
swift valley
#

Had the same one since Nov 2020

#

Hi @dense ibex

somber heath
#

"I like my name. It suits me."
"I like my name. He suits me."
The first is grammatically appropriate. The second is not.

rugged root
#

I didn't realize that Termux wasn't FHS compliant

primal yacht
#

Because /bin/ and such cannot be modified due to being on a read-only partition.

#

heck, /bin is just linked to /system/bin

rugged root
#

Learn something new every day

swift valley
#

brb

primal yacht
#

Remember the old Bill & Ted movie?

rugged root
#

Hell yeah

primal yacht
#

On this phone I'm using (not for Discord atm), it is an error to ls / as well as ls /bin but doing /bin/sh works ...

rugged root
#

Weird that it can't even see it

primal yacht
#

Android OS stuff ... you know .... restricted by carrier and / or the phone maker

rugged root
#

I wonder if something like LineageOS or others would restrict it as well

primal yacht
#

LineageOS is a ROM you flash onto an already rooted phone [cont]

swift valley
#

am back

primal yacht
#

LineageOS is a continuation of CyanogenMod (a discontinued ROM)

rugged root
#

Right

surreal vault
#

wasuup

rugged root
#

Not much, you?

surreal vault
#

chilling

primal yacht
#

Both the obsolete CyanogenMod and the current LineageOS are considered "Developer ROMs"

surreal vault
#

youtube netflix etc

primal yacht
#

Netflix and [Chillhop] ?

surreal vault
#

whaat??

rugged root
#

Chillhop?

primal yacht
#
#

Literally has like two live streams

rugged root
#

Neat

primal yacht
#

Mono = cross-platform .NET

swift valley
#

Is Mono still a necessity?

#

Right

primal yacht
#

I'm force-muted by not having the requirements yet

brave steppe
rugged root
#

She knows

#

(only because I mentioned it yesterday)

somber heath
#

Keeps the riff raff out. Better than having people screaming all the time.

primal yacht
#

I'm force-muted by not having the requirements yet
^w^;

olive hedge
primal yacht
#

cats like that you like?

somber heath
#

I don't like it in that it presents a barrier to legitimate participation, but it's a small negative that eliminates a far larger negative, resulting in an effective positive over not having it.

rugged root
#

Okay, this is probably the longest and most helpful SO answer I've ever seen: https://stackoverflow.com/a/39740592/8346740

severe pulsar
#

oh maaaan thats long

olive hedge
#

@rugged root

#

@zenith radish

brave steppe
#

I am afraid to listen to this

#

Spotify what-

primal yacht
#

So apparently even Android can have the ports not closed issue.

#

My NodeJS server I had to kill off (by killing Termux) ... when I tried to run the server again, the port was already in use

rugged root
#

I haaaaaaaaate that

olive hedge
#

one of these things is not like the others

brave steppe
rugged root
#

It's a little face

#

I love it

swift valley
#

Not great not terrible

brave steppe
#

1/10 people have had CoViD-19 here

#

:////

primal yacht
#

Oregon, USA? ... Southern part of Oregon got a spike in the new Delta (?) variant

wispy dirge
#

Hi

celest pecan
#

Exactly

olive hedge
#

me going into the office--colorized

rugged root
#

Tapering down a bit more

#

But as soon as school starts back up?

gilded rivet
rugged root
#

I still say coughing if someone is too close to you is the best strat

#

@primal yacht Oh right, I was going to ask what your programming background was

rugged root
#

You know you're stuff, so I wondered what languages you knew or what job you have

#

Apologies if that's weird

primal yacht
#

oh ... I thought the topic was wallpapers ^w^;

rugged root
#

HA

#

I mean it could be

primal yacht
#

I used to be fluent in: QBASIC, Lua (standard Lua), VBA / VBScript ... and maybe a few others as well (like older HTML / etc. around back in Microsoft HTML for Applications days).

Now kinda know: C++

Now (still) great in: HTML / CSS / ECMA-262 / JSON / Python

somber heath
#

"You look like you are too fat to walk and might die from heart disease and diabetes."
"...thank you."

rugged root
#

Oh very awesome

primal yacht
#

You probably can tell I went a bit overboard by specifying ECMA-262

rugged root
#

Nah, I like it

#

But why that one specifically?

primal yacht
#

As I know the internal standards name for it

rugged root
#

Fair enough

somber heath
#

Usually when my screen does something like that, the graphics card has blown a fwoofer.

primal yacht
#

My laptop screen is going bad ... but the GPU is just fine according to the HDMI connection to my HDTV

#

I already disabled the Intel GPU (read: only the NVIDIA GPU is active)

rugged root
#

Always possible to get a replacement screen. If not from the manufacturer from ebay or something

primal yacht
#

Ubuntu be like (at least used to be like):

You want xfce4-terminal ? You got to install xubuntu-desktop and all the other stuff that goes with it

somber heath
#

Ebay, Eboy, Ebuy.

rugged root
primal yacht
#

Old claymation

somber heath
#

"To beer or not to beer?"

primal yacht
#

Open a can of ||whoop ass|| ?

rugged root
#

Isn't that a hot sauce?

primal yacht
#

As in "kick someone's butt"

rugged root
#

No I know

primal yacht
#

figuratively speaking

#

And no clue

rugged root
#

But I think there's also a hot sauce

#

Fair

primal yacht
#

By the way .... Rice ball != Doughnut

#

Blame Nintendo of America for that in the Pokemon series

olive hedge
somber heath
#

Nintendos of Walmart.

rugged root
#

More of a gin guy

molten pewter
#

can you recommend a good gin?

somber heath
#

Ale coal hole.

molten pewter
olive hedge
#

LOLOL

#

ty for that

rugged root
#

That's absolutely beautiful

#

Was going to post that in response to the Heroine

primal yacht
#

Remind me who is baff#8848 / 806654869951479808 (?) and why they tried to friend me

rugged root
#

No idea. Likely someone randomly friending you

primal yacht
#

They share another server

#

but I'd have to check who it is

olive hedge
#

people send rando requests to those they see in VC

somber heath
#

It often happnens when you hang out in voice chat or just in general.

rugged root
#

No idea, they've never spoken here

#

Back in a sec.

primal yacht
#

Ah, they were asking about Flask and stuff in the other Discord

#

typo fixed

olive hedge
#

Well, that was their first mistake hyperlemon logo_django2

primal yacht
#

Jumping the gun while they are learning, correct?

olive hedge
#

To start with flask? I have seen it before. Not very productive though, compared to other routes

primal yacht
#

I forgot exactly.

#

But they didn't have full knowledge of their errors.

olive hedge
#

I started with django pretty quckly, it was not the best for learning, but it also taught me a ton.

primal yacht
void dagger
olive hedge
# primal yacht With basic or zero Python skills beforehand?

I originally started with very few python skills. I didnt know how to use classes, I didnt know about args or kwargs, some basic stuff. It was a bit inhibiting to continue without knowing these things, but I feel it helped me learn a lot since I actively researched what these things were and over time learned them.

It would have been easier if I knew these basic concepts before though

primal yacht
#

They didn't really understand what some of their error messages even meant

olive hedge
primal yacht
#

like ... could not fully read the stack trace ..... and I had to ask for the whole thing (which they provided such a stack trace as a screenshot)

molten pewter
primal yacht
#

(was already using screenshots for their code)

olive hedge
primal yacht
#

w< ....
lmgtfy.com

rugged root
#

We actually have that site flagged

#

We auto remove it

void dagger
primal yacht
#

Still listening to the VC btw

olive hedge
#

I would never persuade someone to leave a project that they are passionate about. Any coding is better than no coding. And enjoying what you are doing is a good way to guarantee you will continue.

void dagger
#

A hands-on approach is often a good way to learn

somber heath
#

Python foundations, some of the standard library, then third party modules.

olive hedge
uncut meteor
#

@olive hedge working hard?

primal yacht
uncut meteor
#

or hardly working

primal yacht
somber heath
#

Or be a d.py deepender. Whatever.

olive hedge
olive hedge
primal yacht
#

Search terms on Google >w<

uncut meteor
#

do you do breakfast?

primal yacht
#

22 of 25 in VC0 >w<

olive hedge
#

yesssss

olive hedge
rugged root
#

Yeah this is way more full than I expected

uncut meteor
primal yacht
olive hedge
#

the what

#

There is nothing here worth writing a song about

primal yacht
#

"I'm going to Kansas City.
"Kansas CIty, here I come."

olive hedge
somber heath
#

There's a right and a wrong way to send people to a search engine.

olive hedge
#

whoa, this is a bluesy bop

somber heath
#

Bluesey bop, diddle-di-pop!

primal yacht
#

Oldies, but goodies

somber heath
#

You can run to the shops.