#voice-chat-text-0

1 messages · Page 877 of 1

gentle flint
#

plus about 4 days of getting pc to work

stuck furnace
#

Oh, you get weekend headaches?

#

Are you sure it's not that you're sleeping longer at the weekends?

#

That can cause headaches.

#

I have no idea, but for me if I oversleep I get a headache that slowly gets worse throughout the day.

#

I have not concept of 'weekend' 😄

#

currently

gentle flint
#

I have a headache now

#

but that's 'cuz I didn't drink enough

#

and because I crack the joints in my neck too much

stuck furnace
#

Lord of the Rings 😄

#

Ahh, there's a LoTR tv series coming.

#

I heard

whole bear
#

if max < sum:
    max=max
else max = sum
            

guys is there anything wrong with my indentation here?

brave steppe
whole bear
#

here i corrected it

vivid palm
#

Eine kleine Nachtmusik

gentle flint
#

Uithuizen (Dutch pronunciation: [œytɦœyzən]) is a village in the Dutch province of Groningen. It is located in the municipality of Het Hogeland. It had a population of around 5,490 in January 2017.Uithuizen has a railway station.

zenith radish
#

Grzegorz Brzęczyszczykiewicz

#

Llanfair­pwllgwyngyll­gogery­chwyrn­drobwll­llan­tysilio­gogo­goch

whole bear
gentle flint
#

Rzeszów

zenith radish
#

@whole bear co to tak

gentle flint
#

Kraków

zenith radish
stuck furnace
#

Simon and Garfunkle

#

Bridge over Troubled Water

#

That wouldn't really be their kind of thing.

wispy turtle
#

If they did that to Kurt i'd riot

#

Also, Jay doesn't really care as long as he can make money

stuck furnace
#

Keeping cats indoors is kind of foreign to me.

#

I feel like that's not a common thing in the UK.

#

Oh yeah, they do kill a lot of wildlife blobgrimacing

wispy turtle
#

Ode to my family

#

The cranberries

stuck furnace
#

Ahh yeah, that's all I associate that song with.

#

Assuming it is actually a song.

gentle flint
#

and everyone left at once

chrome stag
#

how tf do i unmute

#

@terse needle have no clue wtf you're doing but keep up the good work

brave steppe
#

Hi

terse needle
paper tendon
#

@strong arch @terse needle watched ^

brave steppe
#

cya

deft leaf
#

does cpp mean c++?

brave steppe
#

Yes

chrome stag
#

@amber raptor ok 😳

stuck furnace
brave steppe
#
curl -X POST http://localhost:8080/api/login/
brave steppe
#

@neat acorn

neat acorn
astral escarp
#

@neat acorn In most cases i would imagine that the employer is convinced of your coding, or whatever capabilities according to your resume etc. They usually ask about things that would help them better understand your work ethics and such. For example, someone very talented but has low energy in general is undervalued by someone who is not as great but is fast and gets the job done while filling the requirements for the job.

brave steppe
#
condition = 0 != 2
if condition:
    raise AssertionError()
#

@neat acorn

#

assert 0 != 2

#

!e ```py
class A:
pass

a = A()
a.thing = 1
print(a.dict)

wise cargoBOT
#

@brave steppe :white_check_mark: Your eval job has completed with return code 0.

{'thing': 1}
raven lake
#

I had no idea that they were stored as dicts!

brave steppe
#

O(1)

#

O(n) lineral time

#

n is the number of items in the list

#

!e print(hash("test"))

wise cargoBOT
#

@brave steppe :white_check_mark: Your eval job has completed with return code 0.

-7017362058504995815
brave steppe
#
# This is really fast!
if 'abc' in {'xyz', '123', 'bgb', 'abc'}:
    print('Yes!')
#

Use of sets ^

#

Shivan I saw you were typing earlier, if you want to ask anything please go ahead

#
dictionary = {
    'alphabet': 'abc',
    'numbers': '123',
    'endings': 'xyz'
}
#

Yes Shivam you can store anything in dicts

#

But only immutable and hashable things can be used as keys

#

['a', 'x']

#

['a', 'x']: 1

#
dictionary = {
    ['a', 'x']: 1
}
#

print(dictionary[['a', 'x']]) prints 1

raven lake
#

i think what he is asking is what hashing is under the hood

#

so for your purposes its just a function that will create a unique identifier given an object?

#

oh yeah

brave steppe
#
a = ['a', 'x']
dictionary = {}
dictionary[a] = 1
#

a.append('-')

#

['a', 'x', '-']

raven lake
#

ahhh

#

so its the same hashing used in cryptography

brave steppe
#
dictionary[a]
brave steppe
raven lake
#

yeah its a bit complicated iirc

brave steppe
#
a = ['a', 'x']
dictionary = {}
dictionary[a] = 1

a.append('-')
print(a)  # ['a', 'x', '-']

print(dictionary[a])
#

!e raise KeyError()

wise cargoBOT
#

@brave steppe :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | KeyError
brave steppe
#

Error you get ^

#

This is why you can only use immutable (objects you cannot change) as keys in dictionaries

brave steppe
#
[
    [('nfiorwebgeerbg', 123)],
    [('dsadsadsadas', 567)],
    [('kuijyhngtbfvd', 492)]
]

A good hash-table ^

We compute the hash, which gives us an index in the first list. Now we can just look that index up, and that is quick.

#

If we get a collision, the hash-table looks more like this: ```py
[
[('nfiorwebgeerbg', 123)],
[('dsadsadsadas', 567)],
[('kuijyhngtbfvd', 492), ('khijhhngebftd', 333)]
]

#

This is bad, if we want to get 333 we will hash the key. This gives us khijhhngebftd and says index 2 (remember how computers start counting at 0?)

#

But there's 2 values here!

#

So we need to go through them, and find the correct hash (remember O(n), linear time AKA slow)

#

Pretty much yeah

#

A hash has no real meaning, it simply scatters the keys, so that we don't get collisions like this

#

The only way to fix this collision is to increase the size of the dict: ```py
[
[('nfiorwebgeerbg', 123)],
[('khijhhngebftd', 333)],
[('dsadsadsadas', 567)],
[()],
[('kuijyhngtbfvd', 492)],
[()],
]

#

Look! The collision is resolved, and we are back at fast O(1) time (same time, no matter the amount of items).

#
dictionary = {
    'alphabet': 'abc',
    'numbers': '123',
    'endings': 'xyz'
}
leaden hearth
#

can u tell the diff b/w brackets ( { [ its pretty confusing

brave steppe
#

() is tuples, remember the immutable small ones?

#

[] is for lists, they can change and be added items to

#

{} is for dictionaries, but Python can detect if you do {x, y, z} instead of {x: a, y: b} which means it becomes a set

leaden hearth
#

in maths ] means value cannot exceed the no. at the end
is this used in python?

brave steppe
#

No

leaden hearth
#

I thought it was related

#

thanks

brave steppe
#

[] is also used for grabbing something. For example to grab the first item of a tuple I can do ('a', 'b')[0] (which becomes 'a')

#

Remember, first there's a tuple: ('a', 'b') and then we grab the [0] (the computer understands as first index).

#

gtg, nice talking to you all!

leaden hearth
#

thanks man

#

many of these concepts were pretty confusing at school

brave steppe
#

I saw this a few days ago, it's amazing! https://www.youtube.com/watch?v=npw4s1QTmPg

"Speaker: Raymond Hettinger

Python's dictionaries are stunningly good. Over the years,
many great ideas have combined together to produce the
modern implementation in Python 3.6.

This fun talk uses pictures and little bits of pure python
code to explain all of the key ideas and how they evolved
over time.

Includes newer features such as key-...

▶ Play video
brave steppe
#

The other ones that don't look like that, are real code ^

leaden hearth
brave steppe
#

Oh yes, that code will not run at all and is not code.

It was the best way for me to showcase how hashmaps look like (the structure) and how you should think of them.

#

In real life there's probably a bit of a difference but, that's how you should think of them!

leaden hearth
#

ok thanks

jagged thicket
#

oh

#

nyc

#

whats the time rn over there ?

#

anyone

flat locust
loud karma
#

!stream

#

!video

#

:(

zenith radish
normal hinge
#

do u guy know django

#

?

gentle flint
gloomy vigil
#

hi

gentle flint
#
if x < 0.7:
    x = 0.7
elif x > 1.1
    x = 1.1
zenith radish
gentle flint
#

this is belgian

#

or else from the extreme south of the netherlands

#

in style as well as accent

gentle flint
#

the Netherlands

#

kroket

normal hinge
#

Biriyani

gentle flint
#

Bulgur (from Turkish: bulgur, lit. 'groats'; also riffoth from Hebrew: ריפות‎, romanized: Riffoth, lit. 'groats' and burghul, from Arabic: برغل‎, romanized: burġul, lit. 'groats', from Kurdish: Şile‎) is a cereal food made from the cracked parboiled groats of several different wheat species, most often from durum wheat. It originates in Middle ...

tiny socket
#

Am in tent

normal hinge
#

wheat

tiny socket
gentle flint
#

how

#

are you celiac

tiny socket
#

Idk it just makes me feel ill

gentle flint
#

interesting

normal hinge
#

do u guys know shawarma

gentle flint
#

yes

normal hinge
#

it is my favorite snack

gentle flint
#

nce

normal hinge
#

it came from muguls

#

muslim empires

strange plank
#

@normal hinge you must be having a riveting conversation

rugged root
slate pier
#

i am suprressed :/

zenith radish
#

Gonna hop on in a bit, currently a bit preoccupied

rugged root
#

Righto

fresh ember
#

hey

strange plank
#

Didn't mean to come across as rude

rugged root
#

Goooootcha

#

No no, out of context it just looked that way

strange plank
#

Yeah whoops 😁 my bad

wispy turtle
#

Beautiful

#

I'm starving and why all the cat pics?

rugged root
wispy turtle
#

Lol

rugged root
#

!voice @cyan ingot Check out the #voice-verification channel. That'll tell you what you need to know about our voice gate system

wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

wispy turtle
#

Did you guys put up the voice gate system to prevent dudes from joining to just shout random nonsense then leave?

rugged root
#

Bingo

#

It was happening like 3 or 4 times a day

wispy turtle
#

😌

rugged root
slate viper
sweet lodge
#

Hi

rugged root
dense ibex
#

Hey @tiny socket

tiny socket
#

I am in a tent and it's raining

#

Last night

#

1 sec

normal hinge
#

u missed

#

do u guys like momos

rugged root
#

?

normal hinge
olive hedge
normal hinge
somber heath
#

o/

normal hinge
#

😛

#

hello opal

somber heath
#

@zenith radish Not use Python for Discord bots?

zenith radish
#

Yeah

zenith radish
#
const Discord = require('discord.js');
const client = new Discord.Client();

client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
});

client.on('message', msg => {
  if (msg.content === 'ping') {
    msg.reply('pong');
  }
});

client.login('token');
normal hinge
#

😆

zenith radish
#
import discord

client = discord.Client()

@client.event
async def on_ready():
    print('We have logged in as {0.user}'.format(client))

@client.event
async def on_message(message):
    if message.author == client.user:
        return

    if message.content.startswith('$hello'):
        await message.channel.send('Hello!')

client.run('your token here')
somber heath
#

Is there a message manhandling service?

vivid palm
#

goooooodmorning

somber heath
#

Yello!

rugged root
rotund scaffold
#

@rugged root What did the Blue color say to Red ?

#

Yellow

#

I just thought of it

#

Someone said Hello sounded like Yellow

rugged root
#

That was good

rotund scaffold
#

Did you see the list of the top 10 items for Codejam ?

#

One of them is Rubicks cube but not our group

#

kinda jealous someone else also had a rubicks cube idea

stuck furnace
#

What is an xontrib? 🤔

#

Make more holes for the food 😄

somber heath
#

lel

carmine arrow
#

Bullets are food for guns tho

rotund scaffold
#

BUT I DONT WANNA TAKE A NAP

somber heath
#

NOT THE BEES!

#

I haven't actually seen that movie. Or I have and have purged it from my memory.

rotund scaffold
#

@olive hedge Lucky buoy !

zenith radish
somber heath
#

All the politicians and their families will be vaccinated. So...strap in.

rugged root
serene falcon
somber heath
#

It doesn't have to happen.

rotund scaffold
#

Not to sound like an ass (will probably sound like one)

rugged root
#

Oh shit, one sec

#

Doing an ethernet driver update

somber heath
#

You could always drop a quiet word to whatever passes for workplace safety inspection if the mask mandates are government based, as opposed to private company mandate only. I'm sure they get bonuses for every workplace they can ding.

#

See how fast the internal enforcement of masks go up after the company gets fined.

#

"You look hot. Have you been running?"

#

"Are you hitting on me?"

#

"What? No. ...maybe."

olive hedge
#
thing:
- 
serene falcon
rugged root
#

I hope it does help

serene falcon
normal hinge
#

i like ur voice but i'm fixing bugs so sorry nothing bad

#

u got great voice

rugged root
#

Okay, so this is bullshit

#

No wonder people can't log in to get their paystubs

#

The app is literal garbage

#

Despite it being our vendor's bullshit issue

stuck furnace
#

We had some parakeets in our garden the other day... in London 😄

normal hinge
#

please give me screen share sir @rugged root

ashen sonnet
#

hello everyone

normal hinge
#

slepomir want to help me with database in django

#

i will move to code/help 0

olive hedge
#
@app.get("/users/", response_model=list[schemas.User], dependencies=[Depends(auth.token_required)])
def read_users(skip: int = 0, limit: int = 100, db: Session = Depends(get_db)):
    users = crud.get_users(db, skip=skip, limit=limit)
    return users
def token_required(token: str):
    raise ValueError("test")
brave steppe
#
def token_required(request: Request):
    print(request)  # Good to inspect
    raise ValueError("test")
stuck furnace
#

Please make sure you have someone checking in on you.

#

And if you feel gradually more unwell or breathless, call a doctor.

rugged root
#
<style>* {padding: 0; margin: 0}</style>
olive hedge
#

html is my favorite programming language /s

rugged root
#

(The asterisk, *, in the code above, is the CSS "universal selector", which just means "all the tags in the HTML document".)

stuck furnace
#

I think my first programming project was writing an AI for Pacman 😄

amber kettle
#

its fine.. I don't really need to talk

rugged root
#

We have a voice gate system. And you can still talk in here. If we're in the voice chat channels we watch the paired text channel

amber kettle
#

oooooohhhhhh okay thank you

rugged root
#

@vivid palm Fisher needs a boot in the ass to use GrubHub

vivid palm
#

:p

olive hedge
#

LOL

terse needle
#

everytime i read that I see GitHub not GrubHub

rugged root
#

Same

vivid palm
#

m2

stuck furnace
#

Same here. Taco Bell is in the UK hemshake

rugged root
stuck furnace
#

I kind of love the nacho cheese tbh.

cobalt fractal
#

beans

olive hedge
#

LOL chris just lurking wtf

cobalt fractal
#

always

olive hedge
#

@uncut meteor have you seen this?

dense ibex
#

hi chris

cobalt fractal
#

jake remembers

#

I see all

dense ibex
#

remember what?

#

Wait who disconnected me??

rugged root
#

I don't think anyone did

dense ibex
#

I just got kicked from the vc though

leaden hearth
rugged root
#

You know, I don't think I've ever had stomach issues from Taco Bell

leaden hearth
#

I have had issues at school due to my syndrome

rugged root
#

Celiac?

stuck furnace
#

Beans on toast is basically poverty food in the UK

#

It's like what instant ramen is in the US

rugged root
#

Ah, is this one of those tolls I've heard so much about?

leaden hearth
#

okay

dense ibex
#

@cobalt fractal wait so did you disconnect me?

rugged root
#

@leaden hearth Just as a quick reminder, might want to look over our #code-of-conduct if you haven't already

cobalt fractal
#

Doesn't look like anyone did

dense ibex
#

hmm??

cobalt fractal
stuck furnace
whole bear
#

hey guys

#

what does

for i in range(1,5):

mean

#

loops through something 4 times

#

?

rugged root
#

Correct, but it also pumps out numbers 1 through 4

whole bear
#

so leaves 5 off?

rugged root
#

The first number is where it starts, including that number. Where as the last number is where it stops, not including that number

vivid palm
#

"Hello! Kevin running late s/b logging in by 12:00"

rugged root
#

So it's just like the for (let i = 1; i < 5; i++){

whole bear
#

got it*

wintry beacon
whole bear
#

thanks a bunch

terse needle
rugged root
#

Happy to help!

#

As a side note

#

range() and slices (used for picking parts out of an iterable) have a third argument

#

So its

range(start, stop, step)
iterable[start:stop:step]
whole bear
#

so step is the increment it takes

#

?

rugged root
#

Correct

#

So range(0, 7, 2) would give you 0, 2, 4, 6

#

However, range(0, 6, 2) would give you 0, 2, 4, so that's something to keep in mind

#

The stop is not inclusive

whole bear
#
range(0,10,2)

would give me 0,2,4,6,8?

rugged root
#

Correct

whole bear
#

makes sense

rugged root
#

Step can also be negative

stuck furnace
#

Yep, what KJ says. The way you write pseudocode depends on what you're trying to communicate, and it tends to be ad-hoc.

rugged root
#

Also, with regards to slicing

uncut meteor
#

She made fk8n beans

rugged root
#

!e

spam = "Ham and cheese"
print(spam[:4]) # leaving the first part blank implicitly means start from the beginning
print(spam[2:]) # leaving the second one blank means get everything from the start value to the end
print(spam[3:-2]) # Negative means that you are counting from the back
# So -2 means the second from the last element, -1 the last, etc.
# The step works the same as it does in range
wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

001 | Ham 
002 | m and cheese
003 |  and chee
rugged root
#

Slicing can be used on things like strings, lists, tuples, and a few others

whole bear
#

-1 will reverse it correct?

rugged root
#

Correct

#

!e

ham = "Pork and beans"
print(ham[::-1])
wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

snaeb dna kroP
whole bear
#

do you ever do hackerrank ?

#

@rugged root

rugged root
#

Nah, I'm not really great at those

whole bear
#

same

#

im trying to get better

rugged root
#

I always get psyched out when I see the like... one line, highly optimized solutions

whole bear
#

LOL

#

same

#

dude im like what the heck how did you even do that 😂

stuck furnace
#

Or maybe just work in 30 minute intervals if you can only concentrate for that long

#

¯_(ツ)_/¯

#

Have you heard of pomodoros?

whole bear
#

me?

#

yes

#

i need to start doing those again

rugged root
#

@faint anvil Let's move the question into here so that more people can help out

#

As I'm bouncing back and forth at work

terse needle
#

need to go and get some work done, have fun

restive geyser
#

LOL

#

y'all know me so well<3

rugged root
#

Hell yeah

stuck furnace
#

Pub 👀

fresh python
#

hi

#

got a off-topic question

#

I want to findout in html of this page where is the form or an input thus this image bellow

stuck furnace
fresh python
restive geyser
#

who just

#

👀

fresh python
#

to fill up a test can somebody help me find it?

vivid palm
#

@olive hedge where is the growing eyes emoji?

#

pls

fresh python
#

let me see

#

i'm making a dusk laravel test

#

is using selenium

#

behind

#

this dusk

vivid palm
#

i got it

fresh python
vivid palm
fresh python
#

xD

#

these eyes

#

is cool

restive geyser
#

oh my god

whole bear
#

guys im running into something really weird

fresh python
#

saved already

brave steppe
#

lmao

whole bear
#

def miniMaxSum(arr):
    sum =0
    sum2 = 0
    arr = sorted(arr, reverse = True)
    for j in range(2,6):
        sum2 = sum2 + j
    
    for i in range(0,5):
        sum = sum + i
    print(sum, sum2)
#

why is it giving the same output for 2 different problems?

olive hedge
rugged root
#

So you're iterating over range, not the array they gave you

whole bear
#

oh so i should change the variable name?

#

from range to arr?

rugged root
#

Yeah

whole bear
#

xD

honest pier
#

can you show the problem statement?

whole bear
#

yes

restive geyser
#

and join the VC lol

whole bear
#

too much to copy and paste so here is the link

#

dont wanna clog the chat

stuck furnace
#

Where the variable names are highlighted, that means you're "shadowing" a built-in function/type.

vivid palm
stuck furnace
#

Yeah, it was like pill-shaped before.

#

With an outline.

restive geyser
#

brass monkey funky

#

@whole bear , can you join the voice channel?

whole bear
#

yes

restive geyser
#

muahahaha

whole bear
#

one second

restive geyser
#

2slow, @rugged root

#

kekeke

whole bear
#

hello

#

i cant speak

#

but i can listen

#

got you

#

so ill just type here as a response is that fine

stuck furnace
#

Can you think of another way to get the sum of all-but-one of the integers?

normal hinge
#

use for loop

whole bear
#

let me think

#

well

#

i want to store the numbers in the array

#

until i get to the last one

#

and for the other one i want to do all but the first

#

yeah

#

but my algorithm orders it from least to greatest

normal hinge
#

i created another fake account on stack overflow

whole bear
#

so i can just get the min and the max

normal hinge
#

to ask my question

whole bear
#

does that make sense

#

got it

normal hinge
#

😆

#

anyone knows how to add users to database in django

whole bear
#

im not sure i really understand what the difference is

honest pier
#

arr[i] vs i

whole bear
#

[i] is in the array and i is just any old number?

#

or like

vivid palm
#

864589400326406154

normal hinge
#

@whole bear what is ur quesion

stuck furnace
#

Modmail plz Mina.

restive geyser
#

no words.

gloomy vigil
#

is opal speaking something its showing me this

restive geyser
#

LMAO

vivid palm
normal hinge
#

@faint anvil grow up man

restive geyser
#

he/she/they are lookin' for an anime waifu

whole bear
#

why they do that in here lmao

honest pier
whole bear
#

isnt programming a male dominated field?

gloomy vigil
#

whenever hemlock is about to ban/mute someone he goes full on quite

whole bear
#

let me think about this for a second

#

i think guys are just more interested in this stuff cause its portrayed as "nerdy"

#

so many girls kind of get discouraged

restive geyser
#

lol. no, those who identify as female are pushed away from the toxic bro culture.

normal hinge
#

@rugged root u said male dominant

restive geyser
#

we don't get discouraged from nerdy shit. we are nerdy.

normal hinge
#

nah

#

first programmer is female

whole bear
#

ok mb i got distracted

#

ill get back to my leetcode now xD

rugged root
whole bear
#

yeah

#

thats what i meant

#

yes

#

hackerrank

#

i mixed them up

whole bear
#

or is it more complicated

honest pier
#

can you send what code you have rn

normal hinge
#

i see most of js developers are females

stuck furnace
#

Back in a bit...

normal hinge
#

then males

whole bear
#

yes

whole bear
# honest pier can you send what code you have rn

#!/bin/python3

import math
import os
import random
import re
import sys

#
# Complete the 'miniMaxSum' function below.
#
# The function accepts INTEGER_ARRAY arr as parameter.
#

def miniMaxSum(arr):
    sum =0
    sum2 = 0
    arr = sorted(arr, reverse = True)
    for j in arr(2,6):
        sum2 = sum2 + [j]
    
    for i in arr(0,5):
        sum = sum + [i]
    print(sum, sum2)
        
    
if __name__ == '__main__':

    arr = list(map(int, input().rstrip().split()))

    miniMaxSum(arr)

normal hinge
#

i don't work

#

😛

whole bear
#

in my school we had like maybe 1% of the CS majors were women

normal hinge
#

one goodthing to be a js developer is u can flirt with lot of females

whole bear
#

the 1 percent though are always smarter than most of the guys

somber heath
whole bear
#

if not all

honest pier
restive geyser
#

well, you shouldn't flirt if it's unwarranted because that makes you a creep. just FYI.

normal hinge
#

😛

whole bear
normal hinge
#

hemlock he is saying what are u doing in ur life man will u get a job

whole bear
#

is it just a for loop?

normal hinge
#

becoz he helped me in resume

honest pier
normal hinge
whole bear
#

no

#

im new to pythn

normal hinge
#

i know u opal

honest pier
#

i would stay away from doing these types of problems until you learn more

normal hinge
#

i'm just joking

#

ur my friend

whole bear
#

im a java person

normal hinge
#

🙂

whole bear
#

got it

#

but this is apparently "easy" level

honest pier
#

you've used arrays in java?

whole bear
#

yes

honest pier
#

indexing into a list is the same in python and java

whole bear
#

in python theres no arrays so they import something similar

#

oh okay

honest pier
#

python's lists are like java's ArrayList

whole bear
#

what i usually do in java are for (i=0;i<arr.length;i++)

restive geyser
#

you need to familiarize yourself with python's types first

whole bear
#

yes

#

any links?

honest pier
restive geyser
#

just because you implement something in java, doesn't mean it will be the same in python.

whole bear
#

ok

#

got it

restive geyser
#

take a look at the python docs

whole bear
#

this works?

#

yeah

#

the indentation is kind of odd

#

but i get it

#

yeah

#

it makes senase

#

sense*

#

its just something to get used to if that makes sense

#

okay guys imma head out

#

thanks for the help

honest pier
#

@whole bear try codingbat, the problems are easier than hackerrank and more straightforward

whole bear
#

definetly will

rugged root
#

Huh, they also have Java on there

#

Forgot that

whole bear
#

Thanks

rugged root
brave steppe
#

Is that GO?!

#

Recognize that blue anywhere

rugged root
#

@gentle flint I've just been working

versed sapphire
#

@brave steppe what r u working on?

rugged root
#

Nothing super exciting

gentle flint
#

ah

#

no deliveries?

rugged root
#

I will later

gentle flint
#

I see

brave steppe
versed sapphire
#

what does your Discord api do

brave steppe
#

Well sorry, a wrapper*

versed sapphire
#

what does a wrapper do

#

lol

gentle flint
#

@rugged root

wise glade
#

😒 meh..

normal hinge
#

damn , this covid is not leaving us alone

brave steppe
gentle flint
wise glade
#

idk if it's the ubuntu 21.04
but I can see all my windows files right from here
and it's awesome

gentle flint
#

yeah, that's normal

#

works unless you have bitlocker

wise glade
#

hmm, yeah
bitlocker is missing this time around
I'm using a new ssd

brave steppe
frail aurora
west nymph
brave steppe
#

I don't even know when it'll be done 😅

#

@sick dew Discord API wrapper with C extensions so that it's more memory efficient

sick dew
#

ooo

west nymph
#

might I suggest discapi

gentle flint
#

brb

amber raptor
brave steppe
west nymph
#

lmao nice

#

he is happy

rugged root
#

Oh chill

#

And you could, but it wouldn't make sense to do so

#

Because you're only doing that in one place. Decorators are if it's something that you'd need to do in different places on different methods/functions

#

Where as classes and inheritence are part of how you get the most out of discord.py

wise glade
#

how is that "Sql Server Express" requires no username and password on windows to work
but need them on linux 😠

#

the connection string is now completely different for each OS 😩

gentle flint
#

@heavy dirge

amber raptor
wise glade
#

don't fully understand 🥴

brave steppe
#

@haughty pier, I am a bit confused by IntFlag. I need a bool 🤔

>>> class Test(enum.IntFlag):
...     test = 1 << 1
... 
>>> t = Test(123)
>>> t.test
<Test.test: 2>
>>> 
wise glade
#

how do you make permanent env variables in linux?

zenith radish
#

export them in ur shell

west nymph
#

add them to bashrc

#

or zshrc

#

or whatever

zenith radish
#

or elvish_rc

#

xd

wise glade
rugged root
#

fish

#

It's my fave

zenith radish
#

uh

#

one sec

wise glade
#

export something somethin ..

#

right?

rugged root
#

@bright tiger What's your question? Like the general overview

haughty pier
#

@brave steppe I think you want isit & t.test

wise glade
#

brb

zenith radish
#
 echo "export ENV=VALUE" >> $(".${0}rc") && $("source ~/.${0}rc")```
brave steppe
bright tiger
#

i have several screenshots posted in burrito, but the generalized question is how would i go about setting a playerID from a sql database using a inputed name which is also in a sql databasee

gentle flint
#

accio scrollbar

bright tiger
#

and then i had a few questions based on the while statements used in python/sql

rugged root
#

I'll take a quick look in there

#

Mkay, give me a bit

brave steppe
slate viper
haughty pier
#

@brave steppe

>>> from enum import IntFlag
>>> class Test(IntFlag):
...     one = 1<<0
...     two = 1<<1
...     three = one | two
...     four = 1<<2
... 
>>> Test
<enum 'Test'>
>>> Test.one
<Test.one: 1>
>>> Test.one | Test.two
<Test.three: 3>
>>> Test.one & Test.three
<Test.one: 1>
>>> Test.one & Test.four
<Test.0: 0>
#

last is falsey, 2nd to last is truthy

wise glade
#

ok, so it just takes source ~/.bashrc command to make em permanent
after you've created some variables

brave steppe
#

I'll use my own reimplementation then I think

haughty pier
#

as you wish

brave steppe
#
>>> t = Test(123)  # 1111011
>>> t.test
True
>>> 

Behaviour I need ^

haughty pier
#
>>> bool(Test.one & Test.three)
True
>>> bool(Test.one & Test.four)
False
#

I think you're just rewriting __bool__

brave steppe
#

Kind of yeah 😅

haughty pier
#

store the results of the test as a boolean instead of writing an object for it

brave steppe
#

I want to look at how with enums I can do: ```py
class Test(...):
test = 1 << 1


Instead of ```py
class Test(...):

    @flag
    def test():
        return 1 << 1

But I am not sure if I can use metaclasses the way they do in the enum implementation.

#

I'll look into it more, thank you for the ideas @haughty pier

#

That's bitwise operators @jagged thorn , so 1 << 2 becomes 100 (binary). 1 << 3 becomes 1000 (binary)

gentle flint
brave steppe
heavy dirge
#

So here is going to be hopefully the last unity screenshot I take

dark hinge
#

duh voice-chat-o hear we go...

#

yeah I think I'm going to look into doom and void nice pointers..'tfs' I'm not super pleased with ubuntu 20.04.

#

how to you guys recommend testing a distro on an existing distro? vagrant ? docker?

viscid oak
#

@rugged root thanks for everything . i make my program and it work nice , and save all of fields .

amber raptor
molten pewter
rugged root
paper tendon
#

@vocal ravencan you check your microphone

#

too much crackling

stuck furnace
#

Yeah, kind of buzzy.

#

It's just when you speak.

amber raptor
# molten pewter

What’s fun about that notice is we get that at work but works auto blocks

#

Standard Google

#

People keep asking about it

stuck furnace
#

It's called a library 😄

amber raptor
#

Also, before internet, computing was a ton simpler

paper tendon
#

is this better?

#

New chipset announced by the google. Its called TEnsor

dark hinge
#

tpu?

amber raptor
paper tendon
#

pyenv which python

#

pyenv global 3.8-dev

#

ls ~/.pyenv/versions/

haughty pier
paper tendon
paper tendon
#
    elem1,elem2,elem3 = *i
cyan ingot
#

what ide is this?

#

kk

whole bear
paper tendon
#

no one coworking today?

jagged thicket
#

<@&831776746206265384> heyya can you help me with the methods of list

nova solstice
#

Just ask your question, and someone will come help when they can

jagged thicket
nova solstice
#

!mute 852753761633566751 1d Since you've done similar things before, I recommend you listen this time.

wise cargoBOT
#

failmail :ok_hand: applied mute to @jagged thicket until <t:1628338685:f> (23 hours and 59 minutes).

timber lark
#

meow

#

would you know how to save stuff to .csv @wicked kettle

#

kinda having some trouble with mine

#

i thought youd might know cuz i thought it might look basic to yous

#

code's in #help-donut if you somehow figure out how to do it

#

aaaaaaaa i tried copying off previous examples from uni but idk why it aint working

#

its for an assignment that was due days ago but got an extension bc stuff happened

#

intro to programming

#

from rmit

#

the assignment is just to cover all the checklist with programming our code

#

with the theme of our app being anything from the google play store

#

@bitter yarrow ayo would you know stuff about saving to .csv

#

@scenic windno i just joined for help

#

uhh from an admin which im still trying to comprehend what he's saying

stuck furnace
#

Hello 👋

#

Ah nice 😄

#

Currently watching this live stream: https://www.youtube.com/watch?v=4B2_dfvRZ4M

Starship 20 is being prepared for stacking atop Super Heavy Booster 4 at Starbase, Texas. The booster already has all 29 Raptor engines installed and the Ship has all three sealevel and all three Vacuum Raptors installed. This will complete the historic first stacking of a complete SpaceX Starship Super Heavy launch system.

Updates: https://for...

▶ Play video
#

It is assembled 👀

#

The most powerful rocket ever built.

#

Oh right

#

Hello LP

timber lark
#

i wish there was smth decent and halal here

stuck furnace
#

It's in the UK now so maybe Lithuania soon? 😄

timber lark
#

i dont think theres any mexican in sydney

#

where ever the hell i live

stuck furnace
#

It would depend on the license yeah.

#

If you can ignore a few weird quirks, it's a pretty nice language actually.

rugged root
#

Absolutely

stuck furnace
#

Unfortunately some of those quirks were literally bugs in the original implementation that were then standardised 😑

zenith radish
#

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

#

sudo apt install ./google-chrome-stable_current_amd64.deb

#

rm ./google-chrome-stable_current_amd64.deb

#

@flat sentinel

flat sentinel
#

Thx

#

Br

#

Brb

#

hello

dense ibex
#

Hello @vivid palm

flat sentinel
#

@zenith radish why is linux so hard

stuck furnace
#

Well, the advantage of tenure is greater academic freedom. (In theory)

nimble epoch
#

How do you progress when it comes to coding? Where do you learn from

#

It's spectre backwards 😂

terse needle
#

I am so confused by this discord name. Idris | ضبابي#0950

dense ibex
#

I learned from youtube and just looking up stuff on stack overflow and stuff like that.

slate viper
#
if __name__ == "__main__":
    main()```
dense ibex
#

"__main__"

rugged root
#

Can someone take over helping? This might be a bit

timber lark
terse needle
timber lark
#

and the way arabic works is that it writes right to left

#

yeah

zenith radish
#

@olive hedge : "As soon as I hear any kind of emacs keybinding being used to control the discord client - you're banned."
@zenith radish : https://youtu.be/VWgsdexkv18?t=64

Link to an Original Distribution Document:
http://www.serviceofsupply.com/images/Keeper Pics/BloodonTheRisers.jpg

Link to Paratroop Training Booklet circa 1943:
http://www.517prct.org/documents/1943_paratrooper_training_fort_benning/ft_benning.htm

A song written when the airborne divisions were formed. It is played daily on the Post PA sys...

▶ Play video
wispy turtle
#

Heeeeeeeeey, it's the daily chat-athon

#

Hi everybody (in Dr. Nick's, from the Simpson's, voice

olive hedge
# zenith radish <@!233481908342882304> : "As soon as I hear any kind of emacs keybinding being u...

This is fromSept. 27, 1969 episode of The Johnny Cash Show. Johnny Cash did a awesome job singing The Battle Hymn Of The Republic. What a great and powerful song. We need more songs like this that talk about the love for God and Country.

http://www.brendawyatt.org/

▶ Play video
stuck furnace
#

Well, there are immutable objects, but not immutable variables.

#

LP, you said "Discord as a programming language" 😄

#

Do you think it would make sense to have a Constant type hint? 🤔

vivid palm
#

tf lol

#

hallo jake

dense ibex
#

Damn no enthusiasm the 2nd time

olive hedge
#

ikr

#

pitiful

#

HEWWO JAKIEEEEEE :3

#

^better

zenith radish
#

OwO
Jaques-san? ÒwÓ
*nuzzles*
HEWWOO!!!!

stuck furnace
olive hedge
vivid palm
#

cr: mina

zenith radish
rugged root
#

Has anyone continued to help him?

slate viper
#

yes

zenith radish
#

Uh

#

Not really

brave steppe
#

gonna grab ice cream, I'll cya

olive hedge
#

luckyyyyyyy

amber raptor
#

sigh Work

zenith radish
stuck furnace
#

Don't rope me into this...

olive hedge
#

!otn s huxley

wise cargoBOT
#
Query results

• huxley-without-a-mustache
• we-can’t-helper-huxley

olive hedge
amber raptor
#

@olive hedge sorry fisher

dense ibex
#

@olive hedge We are sorry 😦

olive hedge
#

LOL what

stuck furnace
#

Fisher, we appologise humbly and sincerely.

honest pier
#

@olive hedge 👀

normal hinge
#

hi

olive hedge
fair quail
#

yesssssssssss hello everyone

olive hedge
fair quail
#

this vc crazy frfr

terse needle
#

ive been to Steal This Album! for the last hour

fair quail
#

so how does code work

somber heath
# fair quail so how does code work

Typically, you write instructions into a file. The computer reads the instructions and completes them. You can tell the computer to perform or not perform operations based on the existence of some situational condition. You can tell it to run a certain instruction over and over, or n number of times.

#

It's quite open ended.

#

You can write code that lets you solve mathematical problems, display data, paint pictures, recognise text in images, communicate with other computers over the internet...

#

Games are popular.

fair quail
#

:o

#

wow

#

thank u

#

i don't really know what im doing lmao

somber heath
#

!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.

fair quail
#

:o

#

thank u

somber heath
#

Corey Schafer's Youtube playlists on Python are handy.

zenith radish
#
print(list(map(lambda i: "Fizz"*(i%3==0)+"Buzz"*(i%5==0) or str(i), range(1,101))))```
olive hedge
#

!e

def my_temp_func(x):
    return x * x

print(list(map(lambda x: my_temp_func(x), [1, 2, 3, 4])))
wise cargoBOT
#

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

[1, 4, 9, 16]
honest pier
#

🤔

cursive heart
#

hello i am back

#

after along long time in python

rugged root
#

Feels nice to earn my keep

#

Glad to have you back!

zenith radish
#


package main

import "fmt"

func main() {
    func(l int, b int) {
        fmt.Println(l * b)
    }(20, 30)
}
   
haughty idol
#

@zenith radish
I would like apply where you work!

amber raptor
zenith radish
haughty idol
#

yea

haughty idol
# zenith radish Do you do c++?

like i have used it for basics but if learning is concerned
I am interested but haven't seen much companies having position for fresh graduates 😢

zenith radish
#

nope, only looking for seniors atm ;c

haughty idol
paper tendon
#

I see ++

#

🙂

#

Can be done in Kotlin.

olive hedge
#

seize the means of production? shy

idle egret
#

why am i suspended on this voice chat

olive hedge
wise cargoBOT
#

Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

paper tendon
#

!voice @idle egret

#

STO developers

#

Actually stupid Chinesse the game company. Developed the Perfect World game MMORPG

#

@rugged root which of their games you played or liked?

rugged root
#

Trying to remember...

paper tendon
#

They use something like Arc Launcher if I recall

#

Bought Cryptic studio

#

Star Trek Online

rugged root
#

Ooo, forgot they did Neverwinter

#

Liked that one

paper tendon
#

I think they bought neverwinter as well like STO

rugged root
#

I'm back

#

Also as a reminder to everyone who are stuck listening to this, it'll be calmer and much less...... this in the other voice chat. Just letting you guys know that there is an escape

fresh ember
#

what do string module do??

rugged root
#

There are tons of handy little things in it

#

Like, all upper case letters, lower case, ascii, numbers, etc

fresh ember
#

ohhk

rugged root
#

A lot of other cool stuff as well

fresh ember
#

i got homework : (

rugged root
fresh ember
#

thanks

rugged root
#

Any time

olive hedge
#

I shall return most likely

haughty idol
#

sys.append(str(HOME_DIR / "src"))

what / do here

honest pier
#

depends on the type of HOME_DIR

haughty idol
#

HOME_DIR = Path("../").expanduser()

paper tendon
#

Matrix Encrypted IRC 🙂

restive geyser
#

i agree with rabbit.

#

lol

fresh ember
#

whats wrong here?? : (

honest pier
#

windows 7

fresh ember
restive geyser
#

you can have the best application (performance, optimization, etc), but if you can't get ANY user traction, then your app is dead.

honest pier
#

you used str instead of string @fresh ember

fresh ember
molten pewter
paper tendon
#

Cap'N'Crunch

restive geyser
honest pier
#

string.ascii_uppercase is a constant

paper tendon
honest pier
#

you can use str.upper() to get an uppercase version of a string

amber raptor
fresh ember
molten pewter
restive geyser
fresh ember
#

i am in school

paper tendon
#

SS7

faint ermine
#
Check Point Research

Research By: Eyal Itkin, Yannay Livneh and Yaniv Balmas   Fax, the brilliant technology that lifted mankind out the dark ages of mail delivery when only the postal service and carrier pigeons were used to deliver a physical message from a sender to a receiver. Technology wise, however, that was a long time ago. Today... Click to Read More

restive geyser
# fresh ember i am learning

like pub previously said, string.ascii_uppercase is a pre-initialized string which is used as a string constant. if you are trying to capitalize the user input, you would not use this string method.

fresh ember
#

RooHmm ohhk

restive geyser
fresh ember
#

ohhk

restive geyser
fresh ember
#

thx : )

restive geyser
#

no problem ^^

rugged root
#

This is exhausting me

restive geyser
#

LOL. that's why i'm in here and not talking

fresh ember
#

yeess

#

its worked

rugged root
#

Only reason I haven't moved to the other channels is because I have to babysit this

restive geyser
#

pull another mod? lol

rugged root
#

I'm not making anyone else suffer for this

restive geyser
#

xD ok

#

lmao what

rugged root
#

I mean if you didn't have to work

restive geyser
#

i'll take the money and move tf out

rugged root
#

Fair

restive geyser
#

OOOOH

rugged root
#

Because like

#

5mil

restive geyser
#

and i'd rent out property

#

this place is a butthole now. lol

rugged root
#

Hence the shittiness

restive geyser
#

LMAO

#

shhhh

#

nooo

#

i'm away

honest pier
#

🤔 i didn't know you lived there

restive geyser
honest pier
#

know what

rugged root
paper tendon
#

SCO Unix

#

Solaris

#

LISP 🙂

#

Scheme

#

Common LISP

molten pewter
restive geyser
#

please provide translation lol

paper tendon
#

ACL2 ("A Computational Logic for Applicative Common Lisp") is a software system consisting of a programming language, an extensible theory in a first-order logic, and an automated theorem prover. ACL2 is designed to support automated reasoning in inductive logical theories, mostly for the purpose of software and hardware verification. The input ...

#

@tough panther No it was related to maniacal laughter 😄

restive geyser
#

my brain cells are depleting from this convo.

#

water? ok. ^^

honest pier
#

right, "water"

paper tendon
restive geyser
honest pier
#

mhm

molten pewter
#

Phreaking is a slang term coined to describe the activity of a culture of people who study, experiment with, or explore telecommunication systems, such as equipment and systems connected to public telephone networks. The term phreak is a sensational spelling of the word freak with the ph- from phone, and may also refer to the use of various audi...

restive geyser
#

lol so no liquid can have taste?

#

wait....so can you differentiate water?

vivid palm
#

i can praise

rugged root
#

Same

restive geyser
#

like mineral water versus tap etc.

#

omg. i found my new best friend LOL

rugged root
#

🤩

restive geyser
#

shout out to all the homies who can taste that crispy alkaline water. hnnnnggg

rugged root
restive geyser
#

LOL

rugged root
#

I'm the best friend

#

I called dibs

restive geyser
#

lolololol

honest pier
#

thread 'main' panicked at 'index out of bounds: the len is 19 but the index is 18446744073709551613' 😔

rugged root
#

Dafuq?

#

How

restive geyser
#

lol panicked

honest pier
#

converted a negative to an unsigned

rugged root
#

Ahhh

#

Gotcha

honest pier
restive geyser
#

ban

#

instant ban

#

lol

faint ermine
#

10^−60 Dilution advocated by Hahnemann for most purposes: on average, this would require giving two billion doses per second to six billion people for 4 billion years to deliver a single molecule of the original material to any patient.

restive geyser
#

i'm so mad i laughed at that

#

that's enough internet for today

#

LOL

vivid palm
#

russia is on fire

restive geyser
#

literally or figuratively?

vivid palm
rugged root
#

Curse you pay wall!!!!

vivid palm
#

yeah everything online is tied to a "korean ssn"

#

but i think it's fading away too

rugged root
#

It just seems highly inconvenient and hard to maintain

vivid palm
#

small country

#

there are leaks though

#

and problems ensue

rugged root
#

No no, I mean new websites are made every day

#

Wouldn't they have to constantly update what's being filtered?

vivid palm
#

yeah idk if it's so much the case anymore but big 'portal' websites like naver.com

#

you need the korean ssn, or provide a cell # if foreign.

#

that being said i've never been able to get it to work lol

rugged root
#

Wait, do you have dual-citizenship?

vivid palm
#

no, i gave up my krn citizenship, but i do have a KSSN. but it won't be valid anywhere

#

so i think my info is outdated regarding this

#

In the Republic of Korea, a resident registration number (RRN) (Korean: 주민등록번호; Hanja: 住民登錄番號; romanized: Jumin Deungnok Beonho) is a 13-digit number issued to all residents of South Korea regardless of nationality. Similar to national identification numbers in other countries, it was used to identify people in various private transactions such...

#

oui

restive geyser
#

oooooo minaaaa i had to ask you about something

vivid palm
#

oui

restive geyser
#

have you heard of oli london? <.<

vivid palm
#

non

restive geyser
#

guuuuuurl, you gotta look up the story on himmmm asap

vivid palm
#

i just read his 1 paragraph wikipedia blurb >_>

#

transracial???

restive geyser
#

YES. i need to know your thoughts on this

#

he firmly believes he's korean.

rugged root
#

KSSN
You have a radio station?