#voice-chat-text-0

1 messages ยท Page 755 of 1

hushed elm
#

big brain

dense ibex
hushed elm
#

NEAT

digital granite
#

So red stone is a kind of programming?

somber heath
#

I power Minecraft! Mwawhaha!

hushed elm
digital granite
#

E

wise glade
#

I thought I filled the last spot

#

but someone just left ๐Ÿ˜‚

#

25/25 ๐Ÿ”ฅ

swift breach
#

nice crowd today

somber heath
#

The trick is to do the right thing early enough for it to matter, but they played chicken with it, despite knowing they oughtn't, and it ran them over, leaving only more drastic measures that would, at that point, be effective.

honest pier
#

command block syntax is like powershell

somber heath
#

They weren't prepared and weren't willing to pay the cost of making up for that deficit.

#

and then it's out of control and everyone's all "Well, shit, what do we do, now?"

honest pier
#

EU omegalul

somber heath
#

I was tickled watching Pence watch GaGa sing.

#

I've seen a video Skype call routed through Minecraft.

rugged root
#

So gooooood

hushed elm
#

fkin global warming

swift valley
#

Evenin'

hushed elm
#

heeya

#

missed u ๐Ÿ˜—

swift valley
#

I absolutely didn't expect my Haskell project to blow up

hushed elm
#

which one?

swift valley
hushed elm
#

sexy

dire oriole
#

:(

honest pier
#

๐Ÿ˜”all๐Ÿ˜”the๐Ÿ˜”cs๐Ÿ˜”courses๐Ÿ˜”at๐Ÿ˜”my๐Ÿ˜”school๐Ÿ˜”are๐Ÿ˜”terrible๐Ÿ˜”

rugged root
#

Good save

pure path
#

lol

honest pier
#

maybe i should have spaces ๐Ÿค”

scarlet drift
#

@rugged root Hey mr hemlock, have you ever worked with heroku CI?

rugged root
#

I have not

#

What's the issue you're having with it?

swift valley
#

Also, I'm not sure whether I should expose stars and commits for the payload for POSTing repositories to be displayed to my site, considering that I'm automatically fetching them anyways

scarlet drift
#

@flint umbra

rugged root
#

Hmm

#

Unless Pure has an answer

flint umbra
#

yeah currently getting this error
/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/postgresql/base.py:270: RuntimeWarning: Normally Django will use a connection to the 'postgres' database to avoid running initialization queries against the production database when it's not needed (for example, when running tests). Django was unable to create a connection to the 'postgres' database and will use the first PostgreSQL database instead.
RuntimeWarning
Got an error creating the test database: permission denied to create database
-----> test command python manage.py test failed with exit status 2

scarlet drift
#

Yeah already posted the question there as well

swift valley
rugged root
#

Gotcha.

#

Yeah I'm not sure, I have no experience with Heroku

scarlet drift
#

It's alright

hushed elm
#

Dockter Cockter

rugged root
#

Very mature I was laughing tho

dense ibex
#

!resources

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.

rugged root
#

@candid venture Herro

candid venture
#

reeeee

#

wheres my voice perms?! >:C

honest pier
#

oh wait

gentle flint
#

the role is gone...

rugged root
#

You were banned

candid venture
#

:C

rugged root
#

You have to go through the 3 days again

honest pier
#

rip

candid venture
#

:C

gentle flint
#

oh rip

candid venture
#

oof

#

can i have my dev role tho?

fiery juniper
#

@candid venture F (dms)

rugged root
#

We got rid of the dev role

#

Like... 2 months ago?

honest pier
#

dev role is gone for everone

gentle flint
#

none of us have one

honest pier
#

2?

rugged root
#

Ish

candid venture
#

what?!

rugged root
#

I don't remember

gentle flint
#

yeah

candid venture
#

oof

rugged root
#

I'm old

gentle flint
#

it was gone for ages

candid venture
#

btw hemlock i got an NVME

rugged root
#

New Virtual Monkey Enterprise?

candid venture
gentle flint
#

hemlock...

candid venture
honest pier
#

nefariously volumetric mentorship endeavor

candid venture
dense ibex
#

would you say this is a good vps for hosting a discord bot

amber raptor
#

yes

honest pier
#

looks like overkill tbh

dense ibex
#

Really

#

so go the next step down you think

honest pier
#

find out the resources your bot actually uses ยฏ_(ใƒ„)_/ยฏ

candid venture
#

look at the speed thooo

candid venture
dense ibex
#

How lmao I am running it off my personal machine

somber heath
#

Presidents Gas, Fluid, Solid and Plasma.

honest pier
#

task manager or something

dense ibex
#

Oh fr your smart

#

see this is why I come here

#

because of people like you thank you so much!

gentle flint
honest pier
#

time for lang ๐Ÿ˜”

dense ibex
#

Thatโ€™s my puppy

gentle flint
#

very nice

somber heath
#

Mr Hemlock - Knower of how parts work.

hushed elm
#

das shooken

gentle flint
#

I mean tbf, when he fries his board and has to buy a brand new one that'll probably be the last time he plays these tricks

#

he won't kill himself

hushed elm
gentle flint
#

(probably)

wet mason
#

Guys I got a job offer

gentle flint
#

am I the only one, or does your right arm sometimes feel like it's tingling and painful after a day working at the computer?

#

sort of like pins and needles

wet mason
#

Idk if I can do the work tho

hushed elm
somber heath
#

Fore!

hushed elm
wet mason
#

It is good Idk it is optimizing tensorflow

#

Which is hard

#

The interview question is hard

hushed elm
#

was there just one question?

wet mason
#

Yes

hushed elm
#

lol what

wise glade
#

today learned about powers of git rebase HEAD -some_integer with git push --force
just awesome

wet mason
#

It is to optimize tensorflows image classification

#

Not train time but inference

hushed elm
#

aaa ok

gentle flint
#

@rugged root

rugged root
#

That was fun to watch

#

Like watching someone walking on a tightrope

gentle flint
#

at least he did it above a carpet

#

this one does it above a concrete floor

wise glade
somber heath
#

I can spin pillows.

wise glade
#

โ˜๏ธ kinda make you want to get that enter

somber heath
#

Square or round, preferably.

#

Rectangular ones are annoying.

wise glade
somber heath
#

It's a balance.

#

Hard/soft balance.

rugged root
#

Heart shaped ones?

#

Ooo, teddy bears

somber heath
#

I'm skilled, I'm not a wizard.

#

ducky_bike I thought this was an old train car style thing.

rugged root
#

Nope, bikeshedding ducky

somber heath
#

Mm.

hoary inlet
#

need some help on finding a gps tracker

#

anyone has any idea

wind cobalt
#

Sea Shanties

gentle flint
#

no

hoary inlet
#

individual device for a kid

#

come on now, I just need it so I can monitor his location

gentle flint
#

a phone?

wind cobalt
#

give the kid the covid vaccine

#

it has microchips in it

hoary inlet
#

found this but any smaller sizes

gentle flint
#

if I were the kid I'd wrap the device in several layers of aluminium foil

wind cobalt
#

my friend got the vaccine, but hasn't received any discounts on MS products

rugged root
#

Keep in mind, you'll want something properly secure

#

Otherwise you're giving other people tools to track your kid as well

somber heath
#

We've probably got about 50 little jars of different spices and blends.

wind cobalt
#

and still no sambal

somber heath
#

Peppers, yes. No Sambal.

gentle flint
somber heath
#

Ah, that sort of thing.

#

We have curry pastes and things.

#

Green, red.

faint ermine
valid stag
#

ok sry

hoary dirge
#

voice chat ppl, dont wanna interupt your conversation, and no one knew the answer in the questions channel.
anyone has any idea on how to make this faster?

def check_monomer_distance(coor_list, new_coor, EdgeDiameter):
        a = np.array(new_coor)
        for coor in coor_list:
            b = np.array(coor)
            if abs(np.linalg.norm(a - b)) < EdgeDiameter:
                return True```
spark basalt
#

i like tea

wind cobalt
spark basalt
somber heath
#

@hoary dirge You might shave a few ms off the for loop by converting things into a map/function arrangement, or multiprocessing it.

#

@hoary dirge Or numba

hoary dirge
#

is there a way to shove few seconds off? ๐Ÿ˜„

faint ermine
somber heath
#

How many elements are in the coor_list?

faint ermine
#

numpy cant really optimise for loops, but it can do a lot with non-looping constructs

hoary dirge
#

around a 1000 I think?

somber heath
#

Oh.

hoary dirge
dense ibex
#

Hey if anyone can hop in code help that would be great

wind cobalt
#

if you farted, then "he who smelt it, dealt it" doesn't apply to you

faint ermine
winged socket
#

hello guys

hoary dirge
#

it checks the euclidean distance between two points

somber heath
#

Why not use math.dist?

#

Nevermind.

#

You know what you're doing.

hoary dirge
#

I can back down from the numpy arrays, and use some other function. you think it would help?

somber heath
#

It's c either way.

hoary dirge
#

math.dist might work, Im just comparing the location of one thing to another

somber heath
#

Right? So... I mean, it might be lighter than linalg.

hoary dirge
#

let me try it out, thanks ๐Ÿ˜„

potent torrent
#

what projects is everyone working on?

somber heath
#

Nothing in particular.

spark basalt
hoary dirge
#
def check_monomer_distance(coor_list, new_coor, EdgeDiameter):
    for coor in coor_list:
        if math.dist(new_coor,coor) < EdgeDiameter:
            return True
------------------------------------------------------------------------------------------------
    a = np.array(new_coor)
    for coor in coor_list:
        b = np.array(coor)
        if abs(np.linalg.norm(a - b)) < EdgeDiameter:
            return True```
is it the same? ๐Ÿ˜„
faint ermine
#

time to write some tests for it

somber heath
#

@hoary dirge Does it give the same result? Norm might be fine for its thing... But if all you need is the magnitude between the points...

hoary dirge
#

ill do some tests. it doesn't give results, it just removes a point if its too close and makes another one ๐Ÿ˜„

somber heath
#

Numpy is great. It's zoomy as hell...used correctly.

hoary dirge
#

Ill check it now, still cant believe it made such a difference ๐Ÿ˜„

#

looking good! this is amazing, thank you so much @somber heath

rugged root
rugged root
graceful grail
rugged root
#

I wonder what that reflection texture is...

graceful grail
#

@tough panther Why do you keep reconnecting?

rugged root
#

@tough panther If you're wondering why you can't talk, check out the #voice-verification channel

#

....He says seeing that you have the role

#

I derp

tough panther
#

the joining always fails at the connection stage

graceful grail
#

oh

#

network issues

#

either restart discord or just wait for like 5 minutes or so and you should eventually be able to get connected.

tough panther
#

jep, i presume, that there are two many NATs involved for the required upd nat hole punching

graceful grail
#

is it on the RTP connection that is messing up?

tough panther
#

yes

graceful grail
#

restart discord completely...

rose anvil
#

glad to know @rugged root

graceful grail
#

sometimes the discord client can get wonky

tough panther
#

ok, it's just weird, that i can join any other channels

graceful grail
#

what happens if you try to connect and then just wait for ever... does it kick you? if not just wait and it might/should let you in eventually.

tough panther
#

just killed discord, didn't help

rose anvil
#

im currently a first year student , doing mechanical engineering.... so i wonder if python or any other language would help me in my stream?

tough panther
#

yes

rose anvil
#

how so,?

tough panther
#

first of all, problemsolving

graceful grail
#

we are trying something server side... try connecting again

tough panther
#

ok

hushed elm
#

i use arch btw

near ocean
#

hey๐Ÿ–๏ธ

rose anvil
#

say you have to solve a code problem, do u need a specific language or you can solve it with any code you want?

rugged root
#

Usually any language you want

rose anvil
#

thank you

hushed elm
#

hey Bill Gates have you solved malaria you yet?

#

ups

cosmic blade
#

hellooooooo

rugged root
graceful grail
#

pacman -Syu

dense ibex
#
    @commands.Cog.listener()
    async def on_ready(self):
        while True:
            await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
            await asyncio.sleep(15)
            await self.bot.change_presence(status=discord.Status.online, activity=discord.Streaming('twitch.tv/mitchul'))
            await asyncio.sleep(15)
sick dew
#
    #Template
@tasks.loop(minutes=30.0)
async def task_name_here():
    pass
zealous wave
#

the json file```py
["foo","bar"]


```py
with open('words.json') as f:
    data = json.load(f)

    print(data)
``` it prints nothing
dense ibex
#
    @tasks.loop(seconds=15)
    async def statusChanger(self):
        await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
shy summit
#

@sly osprey

rugged root
#

!user

wise cargoBOT
#
Mr. Hemlock#2740

hypesquad_balance early_supporter

User information

Created: 5 years, 4 months and 12 days ago
Profile: @rugged root
ID: 98195144192331776

Member information

Joined: 2 years, 9 months and 7 days ago
Roles: <@&542431903886606399>, <@&463658397560995840>, <@&764802720779337729>, <@&295488872404484098>, <@&267630620367257601>, <@&797891034906099752>, <@&587606783669829632>, <@&267629731250176001>, <@&807415650778742785>, <@&267628507062992896>

Infractions

Total: 12
Active: 1

zealous wave
#

Btw I got it, I was being stupid and put that in a function without calling the function LOL

shy summit
#

@sly osprey hello, it is here

dense ibex
#

!user

wise cargoBOT
#

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

sick dew
#

!user

wise cargoBOT
#

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

fiery juniper
sly osprey
#

Hi guys

#

Dragon ball is dope!

#

@shy summit

#

Love u girl

shy summit
#

hehehe is true

#

my enflish is bas but i am strong

sly osprey
#

Donโ€™t worry girl hahahaha

#

Wassup? Are u good ?

shy summit
#

wassup?

#

att je cherche sur google translate

shy summit
sly osprey
#

MAIS HAHHHHAAH

#

Cโ€™est whatsapp

rugged root
#

@fiery juniper So it's for the the February events. Valentine's Day stuff. There's one of the commands that will let you make a "love letter". If you don't specify who you want to send it to, it'll randomly grab someone who has the role

#

Guys, English

sly osprey
#

Whatโ€™s up***

#

Mais genre en langage de rue des anglais

#

T nul

rugged root
#

!rule 4

wise cargoBOT
#

4. This is an English-speaking server, so please speak English to the best of your ability.

rugged root
#

Again, English only, please

sly osprey
#

Oh sorry !

shy summit
#

okay sorry

rugged root
#

It's fine, just makes it hard to moderate

sly osprey
#

So yeah wassup itโ€™s for whatโ€™s up

sly osprey
#

Joumie 50 comments goal?

shy summit
#

your englesh is good i am impressioned

sick dew
#

@rugged root don't I look good? xD

sly osprey
#

Omg thanks girl ๐Ÿฅบ

fiery juniper
rugged root
shy summit
#

englesh or english

sly osprey
#

Thanks America because in france, English teachers are really bad ๐Ÿ˜ญ

#

English**

#

Joumie

rugged root
#

@sick dew Do not impersonate staff

#

That's one of the things we draw the line at

#

Thanks

shy summit
fiery juniper
#

@rugged root hmm, I can't seem to find your message

(sorry for ping, really want to have the role ๐Ÿ˜„ )

rugged root
#

Sorry?

graceful grail
#

Mister Hemlock

shy summit
fiery juniper
#

Am I confusing something?

rugged root
#

Oh right, sorry

#

This guy

graceful grail
#

Senor Hemlock

fiery juniper
shy summit
#

Is there a foreign language fair?

sly osprey
#

What ?

#

Ohhh

#

I watch Netflix series joumie

#

With subtitles

#

And in English only

sick dew
#

xD

dense ibex
#

so I have my task right here but the bots status isnt even changing to the first one

# -*- coding: utf-8 -*-
import time
from discord.ext import commands
from discord.ext import tasks
import discord
import asyncio


class Activity(commands.Cog):
    """Changes the bots activity"""

    def __init__(self, bot):
        self.bot = bot

    @tasks.loop(seconds=15)
    async def statusChanger(self):
        await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))

def setup(bot):
    bot.add_cog(Activity(bot))
shy summit
sick dew
honest pier
#

๐Ÿ˜”

fair citrus
#

Don't be sad please

sick dew
dense ibex
#
# -*- coding: utf-8 -*-
import time
from discord.ext import commands
from discord.ext import tasks
import discord
import asyncio


class Activity(commands.Cog):
    """Changes the bots activity"""

    def __init__(self, bot):
        self.bot = bot

    @tasks.loop(seconds=15)
    async def on.ready():
    async def statusChanger(self):
        await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))

def setup(bot):
    bot.add_cog(Activity(bot))
sick dew
#
import time
from discord.ext import commands, tasks
import discord
import asyncio


class Activity(commands.Cog):
    """Changes the bots activity"""

    def __init__(self, bot):
        self.bot = bot

    @tasks.loop(seconds=15)
    async def statusChanger(self):
        await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))

    @commands.Cog.listener()
    async def on_ready():
        self.statusChanger.start()

def setup(bot):
    bot.add_cog(Activity(bot))
#

@dense ibex try that ^

terse needle
sly osprey
#

@shy summit do you have friends who talk English ?

shy summit
sick dew
#
    @tasks.loop(seconds=30)
    async def statusChanger(self):
        await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
        asyncio.sleep(15)
        await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('...'))
dense ibex
#
import discord
import time
import os
from discord.ext import commands
from dotenv import load_dotenv

load_dotenv()

bot = commands.Bot(command_prefix='!')

@bot.event
async def on_ready():
    print('Bot is ready.')

    initial_extensions = [
        "cogs.moderation",
        "cogs.activity",
    ]
    # Load the cogs
    for extension in initial_extensions:
        bot.load_extension(extension)

bot.run(os.environ['TOKEN'])
whole bear
#

sup all

dense ibex
#
import discord
import os
from discord.ext import commands
from dotenv import load_dotenv

load_dotenv()

bot = commands.Bot(command_prefix='!')

@bot.event
async def on_ready():
    print('Bot is ready.')

    initial_extensions = [
        "cogs.moderation",
        "cogs.activity",
    ]
    # Load the cogs
    for extension in initial_extensions:
        bot.load_extension(extension)

bot.run(os.environ['TOKEN'])
#
import time
from discord.ext import commands, tasks
import discord
import asyncio


class Activity(commands.Cog):
    """Changes the bots activity"""

    def __init__(self, bot):
        self.bot = bot

    @tasks.loop(seconds=30)
    async def statusChanger(self):
        await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
        asyncio.sleep(15)
        await self.bot.change_presence(status=discord.Status.idle, activity=discord.Game('...'))

    @commands.Cog.listener()
    async def on_ready():
        self.statusChanger.start()

def setup(bot):
    bot.add_cog(Activity(bot))
versed island
#

i dunno why but i feel like if i screen share ... someone would hack into mysystem

terse needle
#
import asyncio

async def main():
    print('Hello ...')
    await asyncio.sleep(1)
    print('... World!')

# Python 3.7+
asyncio.run(main())
sick dew
#
from discord.ext.commands import has_permissions, CommandNotFound, BadArgument, MissingRequiredArgument, MissingPermissions
rugged root
whole bear
#

Does anyone have a recommendation for python debuggers

#

I need to find one to help find where I am having an error in a program I am writting

uncut meteor
#

what is a bookface?

#

also read Rule S

whole bear
#

I found pycharm, does anyone have a recommendation other it for debugging?

sick dew
#
revolutionary_idea = "facebook", "youtbe", "twitter"
print(revolutionary_idea)

You-twit-face

versed island
#

i like sublime cauz its like 15 MB and does the work

whole bear
#

damn this is a nice podcast

#

alright prime

#

thx

#

i have sublime, anaconda, now pycharm

versed island
#

any of the jetbrains product is more for if you are building things for web ... APIs stuff etc

uncut meteor
#

i wouldn't limit it to that at all

whole bear
#

out of curiosity does atom actually run the code or is it purely a text editor?

versed island
#

purely an editor

whole bear
#

ah, thank you

#

wrong channel

terse needle
whole bear
#

oh sweet! thanks!

#

the code that I am writing now is running, mainly in sublime text. I know what lines i've added are causing the crash my program. I will initiate the .py file but i get no errors within sublime. The game hangs in execution though : /

#

hey

versed island
#

also its best practice to change some settings in sublime like
"translate_tabs_to_spaces": true

rugged root
#

@tiny seal File -> Settings -> Tools -> Terminal. I think all you have to do is navigate to the powershell.exe file

#

Har de har

whole bear
#

wassup

shut goblet
uncut meteor
#

no

#

you are returning above it

shut goblet
#

so after return it stops?

#

and never breaks?

uncut meteor
#

yes, returning will stop in its tracks and return to the calling code

shut goblet
#

i want it to break and return true

uncut meteor
#

why?

shut goblet
#

its in a while true loop

uncut meteor
#

the return acts as a break

whole bear
shut goblet
#

ohh

#

ok

whole bear
rugged root
shut goblet
#

so after it return something it stops the entire func?

#

@uncut meteor

uncut meteor
#

watch this

#

!e

def my_func():
  for i in range(20):
    if i == 15:
      return i
  print("Outside the loop")

result = my_func()
print(result)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

15
uncut meteor
#

see, it stops

whole bear
#

think of the name hemlock as a warning to your enemies

#

i would

rugged root
#

#bot-commands

uncut meteor
sick dew
#

Fuquay-Varina

rugged root
#

!or-gotcha

wise cargoBOT
#

When checking if something is equal to one thing or another, you might think that this is possible:

if favorite_fruit == 'grapefruit' or 'lemon':
    print("That's a weird favorite fruit to have.")

While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.

So, if you want to check if something is equal to one thing or another, there are two common ways:

# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
    print("That's a weird favorite fruit to have.")

# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
    print("That's a weird favorite fruit to have.")
uncut meteor
tiny seal
#
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")```
uncut meteor
#

lurkin @ me

rugged root
#

The Curse of Hemlock: If I change voice channels, everyone will follow

zealous wave
sick dew
zealous wave
#

52 reviews LOL

rugged root
plain dagger
prisma sail
#

Hello

#

How is everyone?

glacial haven
#

lol it's like a video on 2 fps but it is sound only...

#

(i love my internet)

hard minnow
#

hello!

ocean sail
#

hello

zealous wave
shut goblet
#

i just learned how to use python dictionaries and they are under-rated!!pydis_strong

zealous wave
#

nice

whole bear
#

guys

#

open('123.csv', mode='w', newline='')
how can i change where its getting saved?

zealous wave
#
        with open('words.json','r+') as f:
            words = json.load(f)

            words.append("foo")
dense ibex
#
import discord
import os
import asyncio
from discord.ext import commands, tasks
from dotenv import load_dotenv

load_dotenv()

# Bots prefix
bot = commands.Bot(command_prefix='!')


# Loads cogs as well as starts StatusChanger
@bot.event
async def on_ready():
    activity.start()
    print('Bot is ready.')

    initial_extensions = [
        'cogs.moderation',
    ]

    for extension in initial_extensions:
        bot.load_extension(extension)

@bot.event
async def on_ready():
    embed = discord.Embed(title="**Bot Services**", description="Bot services are online :white_check_mark: ")
    embed.add_field(name="Build", value="1.0.0", inline=True)
    await ctx.send(embed=embed)


# Changes the presence/activity of the bot
@tasks.loop(seconds=10)
async def activity():
    await bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
    await asyncio.sleep(5)
    await bot.change_presence(status=discord.Status.online, activity=discord.Game('twitch.tv/slushslive'))

bot.run(os.environ['TOKEN'])
zealous wave
# dense ibex ```py import discord import os import asyncio from discord.ext import commands, ...
import discord
import os
import asyncio
from discord.ext import commands, tasks
from dotenv import load_dotenv

load_dotenv()

# Bots prefix
bot = commands.Bot(command_prefix='!')


# Loads cogs as well as starts StatusChanger
@bot.event
async def on_ready():
    print('Bot is ready.')

    channel = bot.get_channel(PASTE_CHANNEL_ID_HERE)

    embed = discord.Embed(title="**Bot Services**", description="Bot services are online :white_check_mark: ")
    embed.add_field(name="Build", value="1.0.0", inline=True)
    await channel.send(embed=embed)
    activity.start()

    initial_extensions = [
        'cogs.moderation',
    ]

    for extension in initial_extensions:
        bot.load_extension(extension)


# Changes the presence/activity of the bot
@tasks.loop(seconds=10)
async def activity():
    await bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
    await asyncio.sleep(5)
    await bot.change_presence(status=discord.Status.online, activity=discord.Game('twitch.tv/slushslive'))

bot.run(os.environ['TOKEN'])
hallow warren
#

with

zealous wave
#
with open('words.json', 'r+') as f:
    words = json.load(f)

    words.append("foo2")
faint ermine
#

!d json.dump

wise cargoBOT
#
json.dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)```
Serialize *obj* as a JSON formatted stream to *fp* (a `.write()`-supporting [file-like object](../glossary.html#term-file-like-object)) using this [conversion table](#py-to-json-table).

If *skipkeys* is true (default: `False`), then dict keys that are not of a basic type ([`str`](stdtypes.html#str "str"), [`int`](functions.html#int "int"), [`float`](functions.html#float "float"), [`bool`](functions.html#bool "bool"), `None`) will be skipped instead of raising a [`TypeError`](exceptions.html#TypeError "TypeError").

The [`json`](#module-json "json: Encode and decode the JSON format.") module always produces [`str`](stdtypes.html#str "str") objects, not [`bytes`](stdtypes.html#bytes "bytes") objects. Therefore, `fp.write()` must support [`str`](stdtypes.html#str "str") input.

If *ensure\_ascii* is true (the default), the output is guaranteed to have all incoming non-ASCII characters escaped. If *ensure\_ascii* is false, these characters will be output as-is.... [read more](https://docs.python.org/3/library/json.html#json.dump)
faint ermine
#
with open('words.json', 'r+') as f:
    words = json.load(f)

words.append("foo2")

with open('words.json', 'w') as f:
    json.dump(words, f)
hallow warren
#

These days plotly has the better chloropleths

faint ermine
#
py -m discord newcog name ./cogs
zealous wave
#
    @commands.command(aliases=["addword", "nswear"])
    @commands.has_permissions(administrator=True)
    async def swappend(self, ctx, *, content):
        content = content.strip('||')

        with open('words.json', 'r+') as f:
            words = json.load(f)

        words.append(content)

        with open('words.json', 'w') as f:
            json.dump(words, f)
        
hallow warren
#

Replace @-decorations with category parameters

#

A new bash parser?

#

My apologies

zealous wave
#
class MyHelpCommand(commands.MinimalHelpCommand):
    def get_command_signature(self, command):
        return '{0.clean_prefix}{1.qualified_name} {1.signature}'.format(self, command)

class MyCog(commands.Cog):
    def __init__(self, bot):
        self._original_help_command = bot.help_command
        bot.help_command = MyHelpCommand()
        bot.help_command.cog = self

    def cog_unload(self):
        self.bot.help_command = self._original_help_command

```or, you can set the help_command kwarg to None when instantiating you commands.Bot instance, and write your own.

Docs: https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#help-commands

Migrating docs: https://discordpy.readthedocs.io/en/latest/migrating.html#helpformatter-and-help-command-changes
past pawn
#

hell yeah, Space Force ahahahahahahaha

hallow warren
#

I'm just trying to find the right codicil to get my corpsicle in orbit around Titan

short gate
#

Good morning.

past pawn
#

good morning

zealous wave
#
["foo", "bar"]
#

!paste

wise cargoBOT
#

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.

jagged sapphire
#

!or

viral quartz
#

hmm, sus

paper tendon
#

whats a syntaxerror

somber heath
#

A SyntaxError is a type of Python exception.

Uncaught, an exception often, but not always, results in script termination and is usually considered to be an error.

What a syntax error means is that the Python interpreter has looked at your code and it's run into something that it doesn't know how to interpret properly. It's a grammatical error, a programmer error.

#

!e print(

wise cargoBOT
#

@somber heath :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     print(
003 |           ^
004 | SyntaxError: unexpected EOF while parsing
somber heath
#

Because I didn't include the second parenthesis of the print function.

#

)

paper tendon
pure anchor
#

Hi

cerulean moth
#

Hello there!

pure anchor
#

Yup

#

Saelsforce integration

cerulean moth
#

ooo

#

nice

#

just reviewing pull requests

#

yeah, got disconnected by mistake

pure anchor
#

I'm a little new to flows.
It's just more confusing than writing the code.

cerulean moth
#

nah, same

#

ok better

#

much better

#

ok

#

go ahead

pure anchor
#

100labs

cerulean moth
#

what is it about?

#

oh ok

#

nicee

#

django backend?

#

or?

#

ah, heard alot about next.js

hushed elm
#

nestjs is a bit like django

cerulean moth
#

but beyond my scope lol

#

the only frontend ik is boostrap

#

since it is the easiest ig

#

and a bit of bulma too

#

something am working on

#

well gtg, cya! next time

hushed elm
#

cya Json

#

nice hole @whole bear

pure anchor
#

lol ok?

#

I would change a lot of things

#

or usr

#

I mean, python is easy enough to do that

#

It won't be pretty but it's easilyt doable

#

left(length) exactly what I was looking for.

#

It's too bad I can't talk. I just did a "Yesss" ^

#

Or he spoofs his location ^

somber heath
pure anchor
#

Do stuff when equals stuff

#

Do { Put on hat } if(Cold weather == true)

somber heath
#

Not even that. If the weather is cold, put on your hat.

pure anchor
#

Oh really? Even simpler than that? whoops. Done that wrong all life.

#

Wait, what did I miss?

#

Sorry, I was focusing

#

Sorry. realized I am a tattletale.

#

Opal, we don't need a preacher.

Choices have been made. Well informed choices.

#

Trying to be funny cheeky but

#

I feel like I fall flat.

#

I'm curious. Does SQL function with รฅรครถ natively or is there magic trickery in the background?

#

Yeah, we hear you

#

Like, if I send special characters, will it go through some kind of transformation?

#

Instead I'll try it out. silly me.

#

In a few hours, I think I can speak, or is it determined by full 24hrs?

severe pulsar
#

not sure

#

woah what just happened lmao

somber heath
#

Three days, fifty undeleted messages over three ten minute blocks.

pure anchor
#

Yeah, don't wanna spam. :/

#

unfortnuately, there's no timestamp down to time

#

only date

#

(when I joined*)

#

Oooh

#

Joined: 2 days, 23 hours and 52 minutes ago

#

hahahaha

#

Yeah. I undergo metamorphosis atm. So I was just hinking maybe

#

What?

#

What?

#

oh lol

#

Don't like spreading it but I thought that maybe there was a connected soul in the chat

#

Well, at least there's acceptance ๐Ÿ˜›

#

Well, either you get hate or you don't.

#

Happy about the don't tho

#

Yes, if expressed

zealous wave
#

this took way to long to figure out how to do ```py
def privatechannel():
def predicate(ctx):
return ctx.channel.overwrites_for(ctx.guild.default_role).view_channel == False and not ctx.channel.overwrites_for(ctx.guild.default_role).view_channel == None
# checks to make sure the command was used in a channel that the @everyone role cant see
return commands.check(predicate)
# processes the check

short gate
#

hello

#

Hello there.

#

My latest project - Gacha Table Manager is almost done.

#

The only thing I need to add, is the "loot drop request" feature.

bold mauve
short gate
#

And I also need some beta testers.

zealous wave
#

until you find a better way, thats what ima use @bold mauve tho.

short gate
#

I'll need some volunteers.

bold mauve
#

I think I vaguely remember seeing the discussion in #discord-bots but I don't know what you're trying to do @zealous wave

short gate
#

To try this program.

#

I've tried my best to add some new features and fix some bugs.

zealous wave
short gate
bold mauve
bold mauve
#

lmfao

short gate
#

@rugged root How is it?

limber hearth
#

A

short gate
#

The program.

#

@pure anchor What are you doing?

pure anchor
#

Writing callouts/generate json for api integration

zealous wave
# bold mauve lmfao

I think y'all suggested that last night, but I got 3 hours of sleep the other night so my brain was fried, sorry

short gate
#

It is okay.

#

I still want somebody to test my program, it is right here https://paste.pythondiscord.com/uvufujetul.py.

#

I've worked so hard.

#

I am waiting for a beta tester.

#

Patience is a virtue.

#

There is nothing bad about it.

pure anchor
#

What does it do? @short gate

short gate
#

It is some sort of...database program.

#

You interact by typing in commands.

pure anchor
#

Gacha table manager.

short gate
#

If it detects an error in your command, it gives you suggestions.

pure anchor
#

That's handy

#

I'm not its intended userbase tho

short gate
#

The whole "command" system is somewhat based on that in Minecraft.

#

Here is some example commands:

candid venture
#

REEEEEEEE

#

HEMLOOOCKKKKK

short gate
#
add tb Uruha_Rushia:rsia:1:100
       |            |    | '---- Item's rarity rate
       |            |    '------ Item's amount
       |            '----------- Item's ID
       '------------------------ Item's name
#

You guys forgot Vietnam.

bold mauve
#

I was just lurking there then

candid venture
#

@rugged root can u help?

#

i got a problem with the arch again

rugged root
#

What's going on with it?

candid venture
#

network interface

#

i cant figure out how to setup the wlan card on the laptop so i can download the full arch

rugged root
#

I don't know about Arch. Manjaro handles all the hardware driver stuff for me

candid venture
#

shit

rugged root
#

Ask in #unix, someone might know there

somber heath
#

@candid venture Look up how to use lspci to look up the hwid (Something that looks like [6AF3:67AB] ) of the wifi card. From there, search for linux firmwares for that device and what driver you need to use.

lunar pendant
#

hey

honest pier
#

"it's cpp, not c#"
"oh yeah it's c#"

somber heath
#

It will usually involve copying a specific file and having it be a specific filename to a specific folder.

rugged root
#
honest pier
#

literally any stem > history

pure anchor
#

Does anyone work with fortnox?

sick cloud
pure anchor
#

It's a platform for invoices and stuff.

#

I'm confused by their api

sick cloud
#

hmmm

#

F

wise glade
#

โ˜๏ธ sucks

honest pier
wise glade
#

hey, pip list doesn't show turtle in it,
but I can import it fine

honest pier
#

it's not an installed package

wise glade
#

ooh, std lib

honest pier
#

it's why you don't see itertools, collections, etc

wise glade
#

C:\Users\accelerator\AppData\Local\Programs\Python\Python39\Lib found it here

stuck furnace
#

๐Ÿ‘‹

wise glade
#

what's the commands to update ubuntu?
sudo apt-get upgrades
sudo apt-get update right?
โ˜๏ธ it's the 2nd followed by 1st, checked

rugged root
#

This is why I prefer Manjaro's sudo pacman -Syu or yay

#

One command, done

candid venture
#

btw

#

@rugged root

rugged root
#

Right

candid venture
#

if u pat a burning dog, oyu help it

#

you choke the fire, kinky

#

;)

gentle flint
#

what the hell did I just join

#

this sounds like animal aboos

candid venture
#

verbose im muteddd

#

hemlock is bullying me

#

reee

gentle flint
#

I fukin know that

zealous wave
gentle flint
#

just wait 2 days

gentle flint
candid venture
#

@rigid shell ye

zealous wave
candid venture
gentle flint
#

thought you did in the past but w/e

candid venture
zealous wave
#

there is a reason I dont openly share my face much, but I dont think I normally complain about them

pure anchor
#

ffs

#

I was looking for it

somber heath
somber heath
#

That's the one.

zealous wave
#

nice.

candid venture
#

i nearly shat my self on this one

somber heath
lunar pendant
somber heath
zealous wave
gentle flint
#

Yes

lunar pendant
#

๐Ÿ˜‚

wise glade
#

I saw video that Cobra is the "kindest" snake of all the snake

zealous wave
somber heath
#

We have boas in Aus.

#

As well as others.

wise glade
#

it hisses at you so you can run away, if you come close it will first attack you by smashing its face on to your shoe or pants or something,
after that only cobra attacks using its fangs

lunar pendant
rugged root
wise glade
somber heath
#

Both.

rugged root
#

Neat

#

Oh god, now I'm imagining a drag queen with an actual boa on her shoulders

wise glade
zealous wave
rugged root
#

You're welcome

somber heath
#

"At firsssst I wass afraid, I wass petrified...":musical_note:

gentle flint
#

"I wonder how, I wonder why"๐ŸŽต

honest pier
#

ducky one 2 mini

#

pure white

somber heath
#

"Whoops, I was programming too much. Now I'm itchy downstairs."

zealous wave
#

not pure white

#

its ugly

honest pier
#

you're ugly

zealous wave
honest pier
#

pure white is better than literally any other scheme

zealous wave
#

I mean my entire computer theme is like black and red or purple, so I dont like white peripherals but thats just bc it wouldnt match any of my other stuff

honest pier
#

it's still better

zealous wave
honest pier
#

i mean

#

it's true

gentle flint
#

hemlock has large balls in his house

honest pier
#

๐Ÿ˜” unnecessary bool ๐Ÿ˜”

zealous wave
dire oriole
#

so it's false that white is not a good color? :P

honest pier
#

yeah

zealous wave
#

!e ```py
print(not "white is not a good color")

wise cargoBOT
#

@zealous wave :white_check_mark: Your eval job has completed with return code 0.

False
zealous wave
#

fixed it again

gentle flint
pure anchor
#

That's my favorite atm

rugged root
honest pier
#

which is a better scheme then @zealous wave

terse needle
#
james@DESKTOP-1CH3K62 MINGW64 ~
$ python
Python path configuration:
  PYTHONHOME = 'C:/msys64/mingw64/bin'
  PYTHONPATH = 'C:/msys64/home/james'
  program name = 'C:\msys64\mingw64\bin\python.exe'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = 'C:/msys64/mingw64/bin/python.exe'
  sys.base_prefix = 'C:/msys64/mingw64/bin'
  sys.base_exec_prefix = 'C:/msys64/mingw64/bin'
  sys.executable = 'C:/msys64/mingw64/bin/python.exe'
  sys.prefix = 'C:/msys64/mingw64/bin'
  sys.exec_prefix = 'C:/msys64/mingw64/bin'
  sys.path = [
    'C:/msys64/home/james',
    'C:/msys64/mingw64/bin/lib/python38.zip',
    'C:/msys64/mingw64/bin/lib/python3.8',
    'C:/msys64/mingw64/bin/lib/python3.8',
    'C:/msys64/mingw64/bin/lib/python3.8/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00001cf4 (most recent call first):
<no Python frame>
honest pier
#

you said pure white was bad

#

what's good

zealous wave
#

black

#

red

#

purple

pure anchor
#

That's something I want but too expensive right now

somber heath
#

Meteors from the sky, oceans boiling, the dead rising from their graves...all because of Hemlock's mouse.

"It's comfortable."

gentle flint
#

I just want my polonium mouse!

somber heath
#

RTG

#

Plutonium.

gentle flint
#

how about thorium

wise glade
gentle flint
#

a small thorium reactor in your trackpad

#

the idea appeals

somber heath
#

Pacemakers.

gentle flint
#

With appropriate lead shielding, of course

wise glade
#

universe has something's called Higgs Field, acc to a theory

#

โ˜๏ธ which says "There's no mass or any matter, but only field interaction throughout the universe. Its like a bump in that field is what we call mass, and flat field region mean its empty and nothing's there"

rugged root
#

Huh, I hadn't heard that one

#

Although I guess I don't know a lot about physics

wise glade
#

I'm trying to find an image to better show it

#

all my advanced physics knowledge

#

comes from

pure anchor
#

Sorry, accidentally opened my mouth to pull in air.

wise glade
#

youtube -> "Veritasium" ๐Ÿ˜‚

pure anchor
#

NileRed is nice and cody's lab

#

though more on the chemistry side

wise glade
#

what's AFK channel for? upthere

gentle flint
#

I'm off, cya

paper tendon
wise glade
#

@honest pier I'm srry public, I heard "proton" instead of "photon" and said all that sh**

#

for phtons

#

photons doesn't have rest mass

#

its said if something travels at the speed of light, its mass expand to infinity

#

so to preserve the mass from going to infinity

#

the particle should have 0 mass to begin with

honest pier
#

this doesn't disprove heisenberg uncertainty

wise glade
#

@molten pewter maybe mass is not a fundamental property of an object, maybe there's something more to it we (normal no physics people) don't understand

paper tendon
candid venture
#

@rugged root i need help again ....

wise glade
rugged root
#

I'll see what I can do

candid venture
#

its the partinioning

#

help 0?

#

installing grub do u know?

#

shit

#

welp thanks anyway

graceful sail
#

if that "hello" made it thru, i was actually testing my mic volume lol oops

candid venture
#

arch is small and compact

#

i like it

graceful sail
#

lew - se -dan

somber heath
#

@candid venture You ought to be able to run update-grub from within a live environment.

graceful sail
#

yeah close enough for sure haha

paper tendon
honest pier
#

when two particles are entangled, they simply have complementary quantum numubers

graceful sail
#

it's night time here in aus, just wanting to check out voice. this community has been pretty cool helping me get into python dev

honest pier
#

for example, one may be polarized vertically, and one may be polarized horizontally

somber heath
#

@candid venture Well, whatever you're supposed to do, then. I generally don't have to worry abput installing it.

wise glade
#

there's something that actually travel faster than light
the speed of expansion of our universe if faster than light

graceful sail
#

i hate those, i sometimes get one a day in summer

honest pier
#

sure, depending on your definition of travel

#

but whatever

#

the idea is that, the polarization of the two particles is indeterminate

wise glade
honest pier
#

until something happens to one that requires a definite polarization

graceful sail
#

sry missed that

#

canberra

#

the bubble

#

i came from there

#

originally from malvern

#

yeah i've run into penny wong on the street before lol

#

there's not many but she didn't seem super weird or anything

#

true

#

it's inherent

#

tho some do just deliberately act like smug dickheads

#

i've also met alex hawke and he was a grade A douchebag

#

few people would, minor minister in LNP

#

almost

#

yeah that always throws americans for a loop

#

lolol

#

idk we managed to siphon off most of our tea party into one nation

#

though it is making a comeback in the LNP

#

one just more assholish

#

that's the messaging they go for

#

oh not NZ

#

but definitely very xenophobic

#

it's a solid rule of thumb: if you see "nation" in a political party name, run

#

she's our sarah palin

#

but somehow worse

honest pier
#

๐Ÿค” ๐Ÿค” ๐Ÿค”

graceful sail
#

i'll link

#

one second

#

this is a really good headline to sum up pauline hanson tbh:

wise glade
#
<div class="comment-body">
                {% if comment.disabled %}
                <p><i>This comment has been disabled by a moderator.</i></p>
                {% endif %}
                {% if moderate or not comment.disabled %}
                    {% if comment.body_html %}
                        {{ comment.body_html | safe }} <!-- RIGHT HERE -->
                    {% else %}
                        {{ comment.body }}
                    {% endif %}
            </div>

so anyone knows what | safe is used for at "RIGHT HERE" comment?

honest pier
#

lul

graceful sail
#

oh right people come here for coding help i'll stop talking about australian politics haha

honest pier
#

it doesn't matter that much ยฏ_(ใƒ„)_/ยฏ

graceful sail
#

is free codecamp good? i've been doing a bunch of their frontend stuff which i know nothing about, but ther'es so much content out there

wise glade
graceful sail
#

hard to know what's really gold or just stuff

#

specifically talking about the 300 hr certs

somber heath
rugged root
#

Back in a sec

graceful sail
#

rofl hearing it echo back thru someone's mic

somber heath
#

It's the actual audio of the odious woman in question on which the parody is based.

honest pier
#

rabbit ๐Ÿ‘€

graceful sail
#

yeah the aussie comedy skits

#

i was a little young for that

#

maybe 11 or so at the time

#

but now i feel old cos i'm 30 now

#

yeah

wise glade
#

Found it

The | safe suffix when rendering the HTML body is there to tell Jinja2 not to escape
the HTML elements. Jinja2 escapes all template variables by default as a security
measure, but the Markdown-generated HTML was generated by the server, so it is
safe to render directly as HTML.
graceful sail
#

how good's the ever-ticking clock

#

low-rent australian SNL

rugged root
#

Called it

graceful sail
#

yeah

#

got rehabilitated by channel 7

#

they had her on morning TV every week for 3 yrs

#

then magically she won a seat again

#

australian tv comedy really went downhill after the chaser got arrested at APEC

#

[for impersonating osama bin laden]

#

A segment from "The Chaser's War on Everything" tv series that aired on Aussie tv channel ABC, 12th. Sept. 2007. The Chasers gang made a mockery of security at the APEC conference held in September in Sydney Australia, and left Aussie police red faced. One hundred and sixty million dollars was spent on security for the conference attended by man...

โ–ถ Play video
sly osprey
#

@shy summit what did you sauver

#

Say***

graceful sail
#

that's it. that was the peak of australian comedy

#

it never got better after that

#

2007

#

jesus

#

highest res on that video is 240p

#

why

#

bill maher even riffed on it that's how big it was

#

bill maher's a standard old white dude

#

yeah

#

he should retire

#

does anyone have any experience with freecodecamp's content btw

#

i asked earlier i'm just assuming people are at an advanced level and never needed it

zealous wave
graceful sail
#

they also do like code exercises

#

which i've found are good

#

but i'm pretty n00b

terse needle
#

I really dont like freecodecamp

graceful sail
#

hard for me to tell if it's good or not

#

is there better KJ?

terse needle
#

depends

amber raptor
#

Bill Maher brain got Trump fried

honest pier
#

anything that says "learn x in y time" will not work

amber raptor
#

Like the rest of older white guys on late night TV

terse needle
#

I found that I watched a lot of small tutorials on youtube and just tried things out and used what I learnt and applied it to my own projects

graceful sail
#

yeah it's true, i'm also so green though i kinda don't know a lot of what's possible

#

but definitely when i'm working on something nothing is a better learning experience htan searching for it and applying it

#

let me tell you, multi-index multi-column level dataframes blew my goddamn mind

terse needle
#

yeah

graceful sail
#

"i am never using excel again for anything"

#

jk GUI is still nice for small processing

#

i actually found python tho cos i made this fuckoff insane bit of code to do a pivot table in excel that lagged out RAM in excel with VBA. and a friend of mine is just like "u could do that in three seconds with python"

#

and it turns out yes, yes i could

wise glade
#

anyone worked with bootstrap?

#

is there a way to add light/dark mode for our webpage?

#

hmm, so I need to manually make a second theme for every element in my website, which would be toggled with light/dark toggle button

#

so I've heard of something called "React" which is also like bootstrap
can we use it with python?

#

is there a "flask_react" or something?

honest pier
#

should have hopped to rust :P

wise glade
#

maybe I should first focus on fast_api

#

its said to have performance on par with Node.js
don't even know what that means
does it refers to templates rendering or something?

graceful sail
#

gn! have a good one

honest pier
#

haha

#

mongo is webscale !

rugged root
#

!resources @lime frost

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.

rugged root
#

Back in a moment, something's breaking at work

shy summit
pure anchor
#

lol?

fluid hornet
#

lol

shy summit
#

??

honest pier
#

is actually "written", but whatever

sly osprey
#

@shy summit hahaha donโ€™t worry honey

#

Iโ€™m here

shy summit
vivid compass
#

๐Ÿง„ ๐Ÿž

sly osprey
obtuse trail
#

welp, I used to be active here but now I can't speak... sad

wise glade
shy summit
amber raptor
#

you post to API, it returns location as response

#

locatino appears to be a way of accessing a resource

wise glade
amber raptor
#

the items I guess

rugged root
wise glade
amber raptor
pure anchor
#

Collection is probably a table

wise glade
wise glade
pure anchor
#

Then, it's probably the table of the book, which you add a resource to

wise glade
#

no I thought there's something called "collection" in the url itself

shy summit
wise glade
#

now, "The server chosses....." line( so a POST request also returns back the url for that newly created thing in the LOCATION header in the response)?
is that what's it saying?

pure anchor
#

yes

lime frost
#

porq tagean?

wise glade
#

@amber raptor mind if I ask, how did you learn C#? also how long did it took for basics ?

terse needle
#

need to restart disc brb

amber raptor
#

I donโ€™t know it well, work uses it

pure anchor
#

What's the definition of knowing a language? Oh basics.

wise glade
#
using System;

namespace HelloCS
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello C#!");
        }
    }
}

like what does all this even mean?

#

hey, what's the python thingy equal for C#? for codeblocks?

honest pier
#

csharp

rugged root
#

Sorry, I'm really misunderstanding everything today

#

I feel really silly

amber raptor
#
import system
import module.main as main

class Program:
  def main(self):
    print('hello')

main.Program()```
#

C# requires EVERYTHING to be a class

honest pier
#

wait def?

#

oh

#

i see

amber raptor
#

so entry space by default is into Program -> Main def

wet mason
#

Does anyone have a good paper I could read on quantization? Iโ€™m looking to understand more pure math

paper tendon
#

Which bracket you are in

wet mason
#

Shot in the dark

paper tendon
#

namespace is basically everything that is defined up to that point

wise glade
#
import system
import module.main as main

namespace main{
    class Program:
      def main(self):
        print('hello')
}
main.Program()

is this correct?

wise glade
#

don't want to learn C#, but kinda gonna have too

#

school requires

#

verbose

#

too verbose

indigo bramble
#

Java#

wise glade
#

once you see python and stuff like JS, you kinda start to develop a stereotype against C# and JAVA
verbose

amber raptor
#

C# is very Java and thus verbose

#

Microsoft is cutting down on it but they are not there

#

there are introducing Python like features where you can do main.cs with just Console.WriteLine("Hello") and it builds fake NameSpace/Class

wise glade
amber raptor
#

They are trying to cut down on some of verbose elements

wise glade
#

ooh

amber raptor
#

more like Kotlin, remove boilerplate

wise glade
#

because this does not look like cutting down
i miss understood, its cutting down syntax

#

@amber raptor oh, yeah, I read it recently, hang on I'll find it

#

ok, enough for me for today
ciao ๐Ÿ‘‹

honest pier
#

public static void main

#

or in intellij

#

psvm + tab

wise glade
honest pier
#

zen of python is eh in terms of advice though

rugged root
#
camelCase
PascalCase
sick dew
lime frost
#

hello

sick dew
hushed elm
#

what version of pycharm are you using?

sick dew
sick dew
verbal oasis
#

can anyone please join me on voice-chat-1?

#

I need help

elfin summit
#

What do you need help on?

honest pier
#

what's the issue?

verbal oasis
#

Some javascript

honest pier
#

๐Ÿค”

elfin summit
#

Can you be more specific?

verbal oasis
#

yeah I was learning "behind-the-scenes" of how JavaScript works and came across something called "full-codegen" "crankshaft" and more. I cannot understand the terms, I searched them on google but I'm still consufed

rugged root
#

It doesn't want to work with the standard Python 3 hex

sly osprey
rugged root
#

So it only seems to work with strings of the hex numbers. Which is.... dumb

verbal oasis
elfin summit
#

Sorry, i'm not great in JS

verbal oasis
#

anyone else? please?

hushed elm
#

rubbing

#

soy boi