#voice-chat-text-0

1 messages ยท Page 1004 of 1

meager bramble
#

what are you guys doing @zenith radish ?

#

Oh nice

#

I'm a rust programmer too

#

nice

#

are u streamming?

#

&[T]

meager bramble
lyric pawn
#

@lavish rover is a Big O Notation genius

#

@lavish rover can you help me with regex with SPL?

amber raptor
#

!e python print(pow(2,2))

wise cargoBOT
#

@amber raptor :warning: Your eval job has completed with return code 0.

[No output]
amber raptor
#

!timeit python a = 0 for i in range(0,1000000): a += pow(a,i) print(a)

wise cargoBOT
#

@amber raptor :warning: Your timeit job timed out or ran out of memory.

[No output]
lavish rover
#

mustafaquraish

novel sleet
#

Is it tru thats it better to learn GO first, and then Java?

delicate cloud
#

!e import time
a = 1
while True:
a += 1
time.sleep(2)

wise cargoBOT
#

@delicate cloud :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 4
002 |     a += 1
003 |     ^
004 | IndentationError: expected an indented block after 'while' statement on line 3
delicate cloud
#

!e
import time
a = 1
while True:
a += 1
print(str(a))
time.sleep(2)

wise cargoBOT
#

@delicate cloud :x: Your eval job timed out or ran out of memory.

001 | 2
002 | 3
003 | 4
lavish rover
#
    // KUSEG: 2048MB
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
    // KSEG0:  512MB
    0x7fffffff,
    // KSEG1:  512MB
    0x1fffffff,
    // KSEG2: 1024MB
    0xffffffff, 0xffffffff,
violet patrol
#

That was fun.

#

I enjoyed the show.

stuck comet
#

hlo @whole bear

woeful salmon
#

@stuck comethttps://www.django-cms.org/en/

stuck comet
woeful salmon
#

@whole bear you like it? xD

whole bear
#

No I didn't

somber heath
#

Howdy howdy.

#

Your docstrings?

#

Or your comments?

#

Comments should generally only be used if they enhance the readability of your code.

#

Too many comments make your code less readable.

#

I've heard of some instructors requiring comments on every single line of code...

#

Which, you know...why?

#

Just no.

#

I can appreciate wanting to have students able to understand and explain what code is doing, but ungh.

#

@pallid hazel

#

Oh, this is your work thing?

#

Your functions shouldn't have 10,000 variables.

#

If you have 10,000 variables, you need data structures.

#

10,000 though...really?

#

Crikey o' Mikey.

#

It's on you to write maintainable code.

#

Code other people can work with.

#

I'm not unsympathetic, but that is a thing.

#

Mm.

somber heath
#

I don't have the math background to fully understand the equations.

#

The symbology is all Greek to me.

#

This is amusing, because it's literally Greek.

woeful salmon
#

i do understand the equations a lil bit but not the concept itself :x

#

verboof would probably know

somber heath
#

Yes.

#

It's the future.

ripe salmon
#

what ide is this ?

somber heath
#

Perhaps.

#

What's the issue?

#

@shrewd flume Yes.

shrewd flume
#

How do I get global ports into a python socket? To be able to connect from another computer

somber heath
#

Python has the requests module. However, when designing network stuff, I've used Twisted.

#

I'm not an expert.

#

Or is it socket in Python?

#

I don't know.

#

Shows you what I mean by not being an expert. But yes. Twisted will definitely do what you want.

#

At least in terms of opening ports on your machine.

#

Engineering internet-originating connections into your computer is beyond the scope of that, however.

#

You'd need to configure whatever gateway you have in terms of your internet access to pipe the port into your server.

#

Or use some kind of hosting service.

woeful salmon
shrewd flume
#

strange

somber heath
#

Um...

#

Yeah, I've got ears on.

#

Just not talking.

#

For now.

#

But soon. Soooon. Mwawhaha.

#

Okay. Function.

#

Binary operators.

#

I think that binary operators are fine and all if you understand exactly what's going on.

#

They aren't exactly something that a lot of people use.

#

Why not ints?

#

Why hexes?

#

I mean, I know they're int.

#

Ah, I get you.

#

Well...I mean...

#

!e py import numpy as np population = 5 channels = 3 arr = np.random.randint(0, 256, population * channels).reshape(population, channels) print(arr)

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | [[ 50 230 127]
002 |  [  4 188 172]
003 |  [135 208 111]
004 |  [240  14 205]
005 |  [187 117  54]]
sour imp
#

@woeful salmon

def get_random_color():
    color = random.randrange(0, 0xffffff)
    r = color >> 16
    g = (color >> 8) & 0xff
    b = color & 0xff
    return (r, g, b)
woeful salmon
sour imp
#

fair

woeful salmon
#

!e

import dis

def foo():
  return 8 * 2

print(dis.dis(foo))
wise cargoBOT
#

@woeful salmon :white_check_mark: Your eval job has completed with return code 0.

001 |   4           0 LOAD_CONST               1 (16)
002 |               2 RETURN_VALUE
003 | None
woeful salmon
#

you're right in the thing that i can skip the & 0xff for the red though

#

since i'm sure i won't get anything over 0xffffff

#
def get_hex_color(r, g, b):
    return hex((r << 8 | g) << 8 | b)
sour imp
#

I was jsut working on something like that lol

#

just*

woeful salmon
#

just the 8 * 2 is just easier to tell what's going on from reading it is the only thing i wanted to mention on it since python will change it to 16 at compile time anyway

sour imp
#

tis be true

vivid moth
#

duck :)

#

@woeful salmon u like duck?

cerulean ridge
woeful salmon
cerulean ridge
#

echo "$PATH = C:\ProgramData\Anaconda3\Scripts:$ENV:PATH" >> $profile

woeful salmon
#
echo "$PATH = C:\ProgramData\Anaconda3\Scripts:$ENV:PATH" >> $profile
#

notepad $profile

cerulean ridge
vivid moth
#

yea?

whole bear
vivid moth
#

:D

whole bear
cerulean ridge
#

thanks alot reaper and everyone, I'll be off for a bit, I might be back

woeful salmon
#

Jusโ€™ Jah

sour imp
#

Thuntata

#

Mount Subasio

zenith radish
#

Y A S R A A R A O R I N A X X M A

zealous wave
#

Wow it's been a minute

#

Hyd hemlock?

gentle flint
#

@woeful salmon vite apparently doesn't support react native

zenith radish
#
(LADY GAGA)
(CHAMPIONS)
(NUPUR LALA)
(EMPRESS MENEN) / (EMPRESS ASFAW)
(THUNTATA)
(OTTO KLEMPERER)
(ASSISI)
(BUCHANAN)
(RATTATA)
(XY COORDINATES)
(TOM PAPA)
woeful salmon
#

it should help you with testing on both your mobile and an emulator easily while writing your app ๐Ÿ™‚

#

and will also handle compiling to both android and ios for you

earnest lagoon
#

i dont understand anything here....

sour imp
#

cs50x challenge

earnest lagoon
#

hm

#

and what is that

pallid hazel
gentle flint
woeful salmon
gentle flint
#

not sure

#

tbh I'd have done better going with Kotlin from the start I think

woeful salmon
#

well then you can use the react native cli but it would be more manual setup and configuration then expo

gentle flint
#

this is a half-baked mess

woeful salmon
#

kotlin would feel similar too i think just easier to initialize project

gentle flint
#

apparently with expo you don't do local builds

#

everything is built on their servers

#

so you need an account

#

which is honestly plain stupid but whatever

leaden comet
#

LCNE TO A BRXT

gentle flint
leaden comet
#

LINE TO A BRXT

gentle flint
#

nothing could be clearer

leaden comet
#

might make more sense if you were in the voice chat :D

gentle flint
#

ah

#

screw this bs

#

I'm going back to Kotlin

sour imp
#

lol have fun!

trail mural
whole bear
#

@zenith radish can you explain what's happening please

trail mural
#

"Voodoo Child (Slight Return)" is a song recorded by the Jimi Hendrix Experience in 1968 that appears as the final track on the Electric Ladyland album released that year. It contains improvised guitar and a vocal from Jimi Hendrix, backed by Noel Redding on bass and Mitch Mitchell on drums. The song is one of Hendrix's best known; it was a fea...

whole bear
#

@zenith radish please explain what is happening

sour imp
#

we are working on the cs50x challenges

zenith radish
#
ORNITHOLOGIST
GOONDIWINDI
HOUNSLOW
DICKS
THE BLUETONES
ALBERT ARENAS
rugged root
tidal shard
#
whole bear
#

hello how is everyone

#

i got a question

rugged root
#

What's your question?

somber heath
#

If you wear a nicotine patch to quit smoking, do you wear a monkey patch to quit monkeying?

rugged root
#

@whole bear Yeah you can ask, but better to ask in here

#

I'm often having to hop away from my desk, so this way more people have eyes on your question and can answer

whole bear
#

okey

#

sprintf(ascii_banner_line0, "\033[2J\033[1;1H");
sprintf(ascii_banner_line1, "\e[1;36m \e[1;36m \e[1;36m โ•”โ•โ•—\e[1;36mโ•”โ•โ•—โ•”โ•โ•— \e[1;36m \r\n");
sprintf(ascii_banner_line2, "\e[1;36m \e[1;36m \e[1;36m โ•šโ•โ•—\e[1;36mโ• โ• โ• โ•โ•‘ \e[1;36m \r\n");
sprintf(ascii_banner_line3, "\e[1;36m \e[1;36m \e[1;36m โ•šโ•โ•\e[1;36mโ•šโ•โ•โ•ฉ โ•ฉ \e[1;36m \r\n");
sprintf(ascii_banner_line4, "\e[1;36m \e[1;36m ๐“ข๐“ฎ๐“ช\e[1;36m'๐“ผ ๐“ช๐“ป๐“ฎ ๐“ช๐“ต\e[1;36m๐”€๐“ช๐”‚๐“ผ ๐“ซ๐“ฎ๐“พ๐“ฝ๐“ฒ๐“ฏ\e[1;36m๐“พ๐“ต \r\n");
sprintf(ascii_banner_line5, "\e[1;36m \e[1;36m โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•ฆโ•โ•โ•โ•โ•โ•โ•โ• \r\n");
sprintf(ascii_banner_line6, "\e[1;36m \e[1;36m โ•”โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•ฆโ•โ•โ•โ•โ•โ•โ•โ•— \r\n");
sprintf(ascii_banner_line7, "\e[1;36m \e[1;36m โ•‘ โ”€ โ”€ โ”€ \e[1;36mโ”€ Welcome \e[1;36mto Sea Panel \e[1;36mโ”€ โ”€ โ”€ โ”€ โ•‘ \r\n");
sprintf(ascii_banner_line8, "\e[1;36m \e[1;36m โ•‘ Pow\e[1;36merful Laye\e[1;36mr 4/7 + Bypas\e[1;36mses. โ•‘ \r\n");
sprintf(ascii_banner_line9, "\e[1;36m \e[1;36m โ•šโ•โ•โ•โ•โ•ฆโ•โ•\e[1;36mโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•โ•ฆโ•โ•โ•โ•โ•โ•โ• \r\n");
sprintf(ascii_banner_line10, "\e[1;36m \e[1;36mโ•”โ•โ•โ•โ•โ•โ•โ•ฉโ•โ•\e[1;36mโ•โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•โ•โ•ฉโ•โ•โ•โ•โ•โ•โ•โ•โ•—\r\n");
sprintf(ascii_banner_line11, "\e[1;36m \e[1;36mโ•‘ โ”€ โ”€ โ”€ โ”€ \e[1;36mCONNECTIO\e[1;36mN [ESTABLISHE\e[1;36mD] โ”€ โ”€ โ”€ โ”€ โ•‘\r\n");
sprintf(ascii_banner_line12, "\e[1;36m \e[1;36mโ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\e[1;36mโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\r\n");
sprintf(ascii_banner_line13, "\e[1;36m \e[1;36m Type\e[1;36m help for\e[1;36m all the comm\e[1;36mands \r\n");
sprintf(ascii_banner_line14, "\e[1;36m \r\n");

#

this

#

is dumb

#

but i need help

#

im making a cnc

#

for educational purposes ethical hacking.

#

And I am stupid asf so idk how i can test it

#

to see if the color codes work

#

bro

#

why can i not speak ive spoken more than 50 messages

somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

somber heath
#

It's not automatic.

whole bear
#

xd

#

okey

rugged root
#

Also we don't really assist with any hacking things. For educational purposes or otherwise

whole bear
#

Oh okay I did not know that.

rugged root
#

No worries!

whole bear
#

I mean tbh its just text so idk if thats assisting with hacking.

#

xD

#

I mean I totally understand

somber heath
#

Work ethic hacking, well, we do tend to be encouraging.

whole bear
#

yup

#

yes it is xD

#

uh

leaden comet
whole bear
#

hi lemon

#

someone have a conversation with me

#

any subject

#

i need to reach 50 messages

woeful salmon
whole bear
#

YEA true

#

but the thing is

#

my cnc dosen't support it :(

#

I already did sprintf

#

:/

whole bear
#

weather ?

woeful salmon
#

its nice

leaden comet
#
THERE'S NO NEED TO CALL ME SIR, PROFESSOR
THE WAND CHOOSES THE WIZARD
ONE CAN NEVER HAVE ENOUGH SOCKS
YOU ARE TRULY YOUR FATHER'S SON, HARRY
I CAN TEACH YOU TO BOTTLE FAME, BREW GLORY, EVEN STOPPER DEATH
SCARED, POTTER?
AWFUL THINGS HAPPEN TO WIZARDS WHO'VE MEDDLED WITH TIME
woeful salmon
#

just too many mosquitos

whole bear
#

thats annoying

#

haha i cant spell

#

mabye thats why nothing that i make works

woeful salmon
#

is it not working on windows btw?

#

xD

whole bear
#

traceback

whole bear
#

Im remaking it a bit

#

last second my || customer || told me to add white text angryPatrick

#

@zenith radish block cuz i ask question ? xD

#

:(

#

sprintf(ascii_banner_line0, "\033[2J\033[1;1H");
sprintf(ascii_banner_line1, "\e[1;36m \e[1;36m โ•”โ•โ•—โ•”โ•โ•—โ•”โ•โ•— \r\n");
sprintf(ascii_banner_line2, "\e[1;36m \e[1;36m โ•šโ•โ•—โ• โ• โ• โ•โ•‘ \r\n");
sprintf(ascii_banner_line3, "\e[1;36m \e[1;36m โ•šโ•โ•โ•šโ•โ•โ•ฉ โ•ฉ \r\n");
sprintf(ascii_banner_line4, "\e[1;36m \e[1;36m ๐“ข๐“ฎ๐“ช'๐“ผ ๐“ช๐“ป๐“ฎ ๐“ช๐“ต๐”€๐“ช๐”‚๐“ผ ๐“ซ๐“ฎ๐“พ๐“ฝ๐“ฒ๐“ฏ๐“พ๐“ต \r\n");
sprintf(ascii_banner_line5, "\e[1;36m \e[1;36m โ•โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ• \r\n");
sprintf(ascii_banner_line6, "\e[1;36m \e[1;36m โ•”โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ•— \r\n");
sprintf(ascii_banner_line7, "\e[1;36m \e[1;36m โ•‘ \e[37m \e[37mโ”€ โ”€ โ”€ โ”€ Welcome to Sea Panel โ”€ โ”€ โ”€ โ”€ \e[1;36mโ•‘ \r\n");
sprintf(ascii_banner_line8, "\e[1;36m \e[1;36m โ•‘ \e[37m \e[37mPowerful Layer 4/7 + Bypasses. \e[1;36mโ•‘ \r\n");
sprintf(ascii_banner_line9, "\e[1;36m \e[1;36m โ•šโ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ• \r\n");
sprintf(ascii_banner_line10, "\e[1;36m \e[1;36mโ•”โ•โ•โ•โ•โ•โ•โ•ฉโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฉโ•โ•โ•โ•โ•โ•โ•โ•โ•—\r\n");
sprintf(ascii_banner_line11, "\e[1;36m \e[1;36mโ•‘ \e[37m \e[37mโ”€ โ”€ โ”€ โ”€ CONNECTION [ESTABLISHED] โ”€ โ”€ โ”€ โ”€ \e[1;36mโ•‘\r\n");
sprintf(ascii_banner_line12, "\e[1;36m \e[1;36mโ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\r\n");
sprintf(ascii_banner_line13, "\e[1;36m \e[1;36m \e[37m \e[37mType help for all the commands \r\n");
sprintf(ascii_banner_line14, "\e[1;36m \r\n");

trail mural
#

LOST IN TRANSLATION
WillR
I hope this letter finds you wellI I expect you
now know Iโ€™ve had trouble with bugs in the
game I purchased over a month agoV Iโ€™m
disappointed by the experience and
Iโ€™m writing in order to once again ask about
next steps in getting this problem resolvedE
Greatly appreciate your supportR
Samantha

whole bear
#

no idea what ur saying

#

but nice

#

<3

woeful salmon
#

@zenith radish Mama in Hindi is your mother's brother

#

xD

somber heath
#

Final Fantasy is like the rapture. There's always a next one.

#

A key? What A key? Oh, you mean the hole key?

woeful salmon
#

anyways i gotta go now cya later ๐Ÿ™‚

ripe salmon
#

!voice

wise cargoBOT
#

Voice verification

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

wind raptor
#

Showing a close-up view of the Infinite Scroll Wheel feature of the Logitech G502 Hero mouse. Logitech G502 Lightspeed : https://amzn.to/3EH28ok

Don't forget to like and subscribe if this was useful to you!

The Amazon links above are affiliate, which means that I may get a small commission from them if you decide to buy something on their web...

โ–ถ Play video
trail mural
#

Java trolling...

somber heath
#

Scumbag Python. Code raises an exception. Traceback claims exception exists on the line below where the problem actually is.

#

Vis a visa.

mild quartz
rugged root
#

Damn it

#

I lost the sneeze

#

That's the worrrrrrst

rugged root
#

@terse needle When you were talking about macros in Rust being expensive or slow, is that at runtime or compile time?

terse needle
#

I never said they were "expensive" although I did say they were "extensive"

rugged root
#

Oohhhhhhhhhhh

#

Okay, my b

#

Sorry to bother you!

terse needle
#

nah, it's fine

sour imp
#

It sucks when I read read as read and not read so I have to re-read read as read so I can read read correctly

rugged root
#

Read Dead Repemption

rugged root
#

I wonder if a functional language would be good to implement the Chip-8 thing

#

Might try doing it in Reason

#

Been meaning to find a good thing to use it on

stuck furnace
#

@whole bear Don't post chainmail here please.

whole bear
#

bruhhhhhhhhhh ok

#

broinnnnn

#

borinn

#

g

rugged root
#

Plenty of other servers to do that on

primal yacht
stuck furnace
#

Hello hello hello...

lavish rover
primal yacht
wind raptor
#

@lavish rover They're onto you

lavish rover
wind raptor
#

Gotcha

primal yacht
#
import re
x = '([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])'
IP_V4_PATTERN = re.compile(f'{x}.{x}.{x}.{x}')
del x
pine grail
#

I'm going to actually work now. Ya'll take care.

rugged root
#

Catch you later

slate ermine
#

hey guys

primal yacht
#
0b0001 << 1 == 0b0010
slate ermine
#

im at school

#

and this lunch is horrible

rugged root
#

Sorry to hear that

primal yacht
#

Although my Tank music is Nico Nico Niii

wind raptor
#

OH YEAH!!!

#

@rugged root

primal yacht
sweet lodge
#

Long live Digital Ocean's pricing!

primal yacht
#

Have you ever been searching for a desired pokemon only to never encounter them? Or been trying to avoid those pesky Zubat only to get several encounters? Fear no more as speedrunners have solved this problem with RNG manips and predictive equations!

Patreon: https://www.patreon.com/abyssoftโ€‹

Business: abyssoftbusiness@gmail.com

Become a memb...

โ–ถ Play video
rugged root
zenith radish
rugged root
terse needle
#

@worn elm I love your profile picture

signal sand
#

I read it as "coefficient" for along time ๐Ÿ˜‚... @rugged root is right!

rugged root
#

Quoshunt

terse needle
#

fenetic

sweet lodge
#

fanatic?

rugged root
#

Fanetic?

#

Fuhnehtic

sweet lodge
rugged root
#

Hooked on fonicks

sweet lodge
signal sand
#

Worst part of fixing english language.... some words caught on and some don't... and it becomes more inconsistent!

sweet lodge
#

divident?

#

รท

#

!charinfo รท

wise cargoBOT
shut hill
#

@wind raptor Can you check this?

ivory stump
#

as mentioned in the comment, this code fails to take into account spaces

#

which dont exist in the alpha string

#

and thus results in index raising an error

#

so, to fix this you could add an if statement to check if the char is a letter and do something different if thats not the case

#

@shut hill

shut hill
#

So can you show me ๐Ÿ˜ญ

rugged root
zenith radish
rugged root
lofty ermine
#

helloo

stuck furnace
#

Thanks ๐Ÿ˜„

terse needle
#

@zenith radish

                let expanded_range = container_acc
                    .iter()
                    .filter(|x| matches!(x, Token::Parameter(_)))
                    .map(|range| match range {
                        Token::Parameter(Range::Full(full)) => full.clone().collect::<Vec<_>>(),
                        Token::Parameter(Range::From(from)) => (0..=from.end).collect::<Vec<_>>(),
                        Token::Parameter(Range::To(to)) => {
                            (to.start..=arr.len() - 1).collect::<Vec<_>>()
                        }
                        _ => panic!(),
                    })
                    .flatten()
                    .unique()
                    .map(|wlang_index| arr.len() - (wlang_index + 1))
                    .sorted()
                    .rev()
                    .collect::<Vec<usize>>();
sweet lodge
#

How can PowerShell remember to skip the headers on subsequent executions?

lavish rover
#
Co-authored-by: Mustafa Quraish <mustafaq9@gmail.com>
whole bear
#

.

lavish rover
#

I Think I Downloaded The Wrong "The Batman" Movie

Mister Batman! Mister Batman!

Song
Vana Gadiyaramlo
Artist
S.P. Balasubrahmanyam
Album
Muta Mestri
เฐฎเฑเฐ เฐพเฐฎเฑ‡เฐธเฑเฐคเฑเฐฐเฐฟ

I Think I Downloaded The Wrong Batman Movie

South Indian Batman (Tollywood, Kollywood, Mollywood)

Mutha Mestri is a 1993 Indian Telugu-language action film directed by A. Kodandar...

โ–ถ Play video
robust venture
#

@lavish rover hello

#

I can't talk because I'm Not a able to

lavish rover
robust venture
#

It says I sent less than 50 msg

#

Massage

lavish rover
robust venture
#

@lavish rover do you code in c++ Also or not

lavish rover
#

Yes I do

pastel void
#

HELLO

#

ฤฐ HAVE NOT PERMฤฐSSฤฐON

#

PLS GฤฐVE ME PERMฤฐSSฤฐON

lavish rover
#

I don't have permission to give you permission

pastel void
#

why i need to wait 3 days

#

this regulation is not happening in comunist cuba

#

๐Ÿ˜„

#

3 days is not acceptable i think

#

mustafa where are you from

#

@lavish rover

robust venture
#

I wish it was not like that

pastel void
#

are you from turkey?

lavish rover
#

I don't mean to be rude, but why does it matter where I'm from

robust venture
#

@somber heath maybe you could show/teach how to code but I don't know how to code at all

pastel void
#

turkish

#

im

#

yes

#

i was thinking you are from turkey

robust venture
#

Yes python I will start with that but would you share screen and show me how

pastel void
#

thats why i asked to you

somber heath
pastel void
#

how can i make freelancer jobs wih writing programing? i know C language little bit

#

i can write hello world in C language

lavish rover
#

Knowing hello world isn't really enough knowledge to get any programming job, you still need to learn a lot more

#

especially if you want a job in C, you need to be really good at it

pastel void
#

i know these things in C

#

if while do/while for continue break switch case

lavish rover
#

those are just the basics.

pastel void
#

i only know these things

#

yes

lavish rover
#

Can you for example, write a project in C from scratch, for example a program to search for a file on your machine?

pastel void
#

how can i improve myself in C programing to make remote jobs i want to be proffession

lavish rover
#

Try to work on projects, come up with some idea and try to implement it yourself in C

#

try making up more and more complex programs

pastel void
lavish rover
#

Well, that's what I mean, figure out a project you want to do and keep researching how to do things till you can do it

robust venture
#

Is it true that people should learn python then Java then JavaScript and then c++

lavish rover
pastel void
#

are you able to make remote jobs in C mustafa?

#

did you said something i didnt hear you

#

yeah

#

how old are you

somber heath
#

As old as the sun.

pastel void
#

learning a programing language is not very easy

robust venture
#

@lavish rover @somber heath Should I buy a beginners books for coding for Python and then Java and then Javascript and then c++

somber heath
#

The former of which is a physical book, but also downloadable, I believe.

#

Don't know about the latter.

#

I would argue there's plenty of online material to learn from without needing to buy anything.

#

But suit yourself.

#

Nanu nanu technology.

robust venture
#

No I'm Not paying for course I'm going to go to college for computer science

dull fractal
#

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

dull fractal
#

!resources data science

#
import re

from django import template

REGEX_CONSECUTIVE_NON_LETTERS = r"[^A-Za-z0-9]+"
register = template.Library()


def _to_kebabcase(class_name: str) -> str:
    """
    Convert any string to kebab-case.
    For example, convert
    "__Favorite FROOTยค#/$?is----LeMON???" to
    "favorite-froot-is-lemon"
    """
    # First, make it lowercase, and just remove any apostrophes.
    # We remove the apostrophes because "wasnt" is better than "wasn-t"
    class_name = class_name.casefold()
    class_name = class_name.replace("'", '')

    # Now, replace any non-letter that remains with a dash.
    # If there are multiple consecutive non-letters, just replace them with a single dash.
    # my-favorite-class is better than my-favorite------class
    class_name = re.sub(
        REGEX_CONSECUTIVE_NON_LETTERS,
        "-",
        class_name,
    )

    # Now we use strip to get rid of any leading or trailing dashes.
    class_name = class_name.strip("-")
    return class_name


@register.filter
def to_kebabcase(class_name: str) -> str:
    """Convert a string to kebab-case."""
    return _to_kebabcase(class_name)
lavish rover
#
from mod import *
#
from mod import _to_kebabcase
#

!d str.casefold

wise cargoBOT
#

str.casefold()```
Return a casefolded copy of the string. Casefolded strings may be used for caseless matching.

Casefolding is similar to lowercasing but more aggressive because it is intended to remove all case distinctions in a string. For example, the German lowercase letter `'รŸ'` is equivalent to `"ss"`. Since it is already lowercase, [`lower()`](https://docs.python.org/3/library/stdtypes.html#str.lower "str.lower") would do nothing to `'รŸ'`; [`casefold()`](https://docs.python.org/3/library/stdtypes.html#str.casefold "str.casefold") converts it to `"ss"`.

The casefolding algorithm is described in section 3.13 of the Unicode Standard.

New in version 3.3.
dull fractal
#

!resources data science
@lavish rover Check this out

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.

dull fractal
#

!resources

#

!resources

#

!resources

lavish rover
#

!tags

wise cargoBOT
#
Available tags

ยป functions-are-objects
ยป global
ยป guilds
ยป identity
ยป if-name-main
ยป indent
ยป inline
ยป intents
ยป iterate-dict
ยป kindling-projects
ยป listcomps
ยป local-file
ยป microsoft-build-tools
ยป modmail
ยป mutability

lavish rover
#

#bot-commands

#
import os
def update_and_push():
    os.system("git add test.txt")
    os.system("git commit -m 'update test.txt'")
    os.system("git push")
cold elbow
#

;

dull fractal
opal mantle
#

@dull fractal you think i can get into MIT as an international student

dull fractal
opal mantle
#

ight thx

vivid moth
#

hack what-?

#

it depends but

#

wifi hacking

#

hmmm

#

try a harmless backdoor

#

restart their laptop when they're playing games

somber heath
#

!rule 5 fyi

wise cargoBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

vivid moth
#

...

#

oki ^-^

opal mantle
somber heath
#

Beg pardon?

opal mantle
#

im tryna learn programming so i can get to artificial intelligence later

somber heath
opal mantle
#

nah im not that far yet

#

im 16

#

just started programming

somber heath
#

It pleases me that's you're going from ground up.

opal mantle
#

got some books n shi tryna learn python

opal mantle
somber heath
#

A lot of people try to tackle ML from the summit of it and are all "Wah, too hard." Like, yeah. No shit.

opal mantle
#

yeah

#

i got a lot of friends like that

#

and now im the only one left who stills tries

vivid moth
#

im 15

#

:)

opal mantle
#

๐Ÿ™‚

vivid moth
#

15 on 4th

opal mantle
#

im 17 on 11th of may

vivid moth
#

oo

opal mantle
#

but i just started programming

#

i feel like i wasted a lot of time

#

cuz i just started

#

ye pycharm is pretty good

vivid moth
#

heya you can connect to obs studio

#

share screen using your video

latent ginkgo
#

Brb

#

Gtg

#

Gn guys

vivid moth
#

gn

viscid forge
whole bear
#

Is learning python hard for a 14 yr old?

#

And javascript

hollow hawk
#

how do you speak in voice chat?

#

Why am I supressed?

elfin tundra
#

yo

#

im traying to download pyaudio in vsc

#

but its giving me [ERROR: Command errored out with exit status 1:]

#

so

#

could anyone help me

#

check the voice verification

#

chat

elfin tundra
#

meow

#

you need to send 50 messages

wise cargoBOT
#

failmail :ok_hand: applied mute to @elfin tundra until <t:1648886263:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

stable moth
#

@slender mesa hi

manic reef
#

I don't know what to talk but I am going to send 50 messages, not spamming though 1

stable moth
#

@vital cedar hi

#

Russian?

#

@median nebula hi

#

oh

#

sorry

manic reef
#

Hi Bro what's up

#

I am a Java developer

#

The purpose of me being here is to practice my English speaking, because I am going abroad and working abroad in the future

toxic niche
#

nice

proud karma
manic reef
#

Java

storm nexus
#

like to think it like a story whenever i code

dense ibex
#

There's like 7 ppl in vc

terse needle
storm nexus
#

๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

terse needle
#

Ctrl r

zenith radish
#

HemuL8R

storm nexus
#

what the hell is this?

terse needle
#

it's not code

#

you could ask in the minecraft discord

somber heath
#

Not only is this code, it's mostly extremely well put together code.

terse needle
#

cargo build && rust-gdb ./target/debug/binary-name

zenith radish
#
pub fn load<T>(buf: &Vec<u8>, offset: u32) -> T {
    let offset = offset as usize;

    let mut result: T = 0x0 as T;
    for byte_offset in 0..std::mem::size_of<T>() {
        result = result | (buf[offset + byte_offset] as T) << (byte_offset * 8);
    }
    result
}
terse needle
#

It's very good code for a beginner, you are correctly following PEP8 and best practices

#

You have one hell of an uncle

swift valley
#

Evening

#

Just doing some school work

#

Yeah and I have like 3 hours to finish them so yeah, fun stuff

#

Oh, and I also got my DuckDuckGo email thingie

#

I didn't have to wait for long

terse needle
zenith radish
#
pub fn load8(buf: &Vec<u8>, offset: u32) -> u8 {
    buf[offset as usize]
}

pub fn load16(buf: &Vec<u8>, offset: u32) -> u16 {
    let offset = offset as usize;

    let mut result: u16 = 0x0;
    for byte_offset in 0..2 {
        result = result | (buf[offset + byte_offset] as u16) << (byte_offset * 8);
    }
    result
}

pub fn load32(buf: &Vec<u8>, offset: u32) -> u32 {
    let offset = offset as usize;

    let mut result = 0x0;
    for byte_offset in 0..4 {
        result = result | (buf[offset + byte_offset] as u32) << (byte_offset * 8);
    }
    result
}
swift valley
#

do Rust macros have access to the type system or is it just purely syntactical

zenith radish
#
    pub fn load8(&self, addr: u32) -> u8 {
        let (region, offset) = map::find_region(addr).expect("Unknown memory region in load8");

        return match region {
            MemoryRegion::BIOS => utils::load8(&self.bios.data, offset),
            MemoryRegion::RAM => utils::load8(&self.ram.data, offset),
            MemoryRegion::Expansion1 => {
                trace!("Unhandled load8 at Expansion1 range.");
                0xff
            }
            _ => panic!(
                "Unhandled load8 at address 0x{:08X} (MemoryRegion::{:?})",
                addr, region
            ),
        };
    }
terse needle
#
trait Load {
    fn load(&self, buf: &Vec<u8>) -> Self;
}

impl Load for u8 {
    fn load(&self, buf: &Vec<u8>) -> Self {
        buf[self as usize] 
    }
}

impl Load for u16 {
    fn load(&self, buf: &Vec<u8>) -> Self {
        let offset = self as usize;

        let mut result: u16 = 0x0;
        for byte_offset in 0..2 {
            result = result | (buf[offset + byte_offset] as u16) << (byte_offset * 8);
        }
        result
    }
}

impl Load for u32 {
    fn load(&self, buf: &Vec<u8>) -> Self {
        let offset = self as usize;

        let mut result = 0x0;
        for byte_offset in 0..4 {
            result = result | (buf[offset + byte_offset] as u32) << (byte_offset * 8);
        }
        result
    }
}
zenith radish
#

'p[;;]\

#

]]]

brisk talon
#

Hello

gilded radish
#

I have no permission. Sorry no reply @spiral shadow

#

Hello

somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

gilded radish
#

okay

#

cancelled :/

somber heath
gilded radish
#

damn! passed

violet fern
#

hello everyone

stuck furnace
#

Get me that gold fish's number!

#

Clearly has talent.

stuck furnace
#

๐Ÿ‘€

#

!stream 750693589532672100

wise cargoBOT
#

โœ… @dull fractal can now stream until <t:1648912946:f>.

stuck furnace
#

๐Ÿ‘

#

Yeah, might need to fetch.

#

Erm, both work. They do slightly different things.

#

Fetch doesn't automatically merge.

#

I don't use git often enough, so I'm full of doubt about what the correct commands are ๐Ÿ˜„

#

You should listen to KJ instead.

whole bear
#

hey

whole bear
zenith radish
stuck furnace
#

Oh @dull fractal, I know a website that might help you understand.

#

One sec

whole bear
#

I almost forgot 'bout this thing

stuck furnace
#

Rebasing is the first lesson in the "advanced" section lesson 4 in the introduction sequence.

dull fractal
#

Thanks @stuck furnace -- I actually have this saved as a bookmark ๐Ÿ™‚

abstract schooner
#

heya guys long time no see how is everyone doing

rugged tundra
zenith radish
#

git remote add upstream https://github.com/thething.git

zenith radish
dull fractal
#

Sepultura - Roots Bloody Roots [OFFICIAL VIDEO] - YouTube

terse needle
zenith radish
whole bear
#

yo

#

whats up guys

#

my name is litho

#

i like to code

#

im 14

#

i play valorant

#

@latent ginkgo how are you

#

today is ramadan

#

inshallah we both compelte it

#

i wanna become a python code

#

what is it

#

go to voice char 1

#

alr what is it

#

yo

#

hm?

#

ok

#

i wanna get my 50 msgs

#

wait

#

i need to talk more

#

yea

#

im tryna become a pro coder

#

and

#

i hate school

oblique mica
#

hi

#

Who's can help me solve a RegularPolygon problem in c++

oblique mica
oblique mica
#

me too

whole bear
#

sick

oblique mica
oblique mica
oblique mica
whole bear
#

i cant rn my b im doing hw

oblique mica
#

i dont know

whole bear
#

?

oblique mica
whole bear
#

huh?

#

why u keep saying hum

oblique mica
lavish rover
icy axle
#

Who's talking?

copper shard
#

KJ and Mustafa

icy axle
#

Where's KJ?

copper shard
#

idk

icy axle
#

Invisible

terse needle
#

@icy axle ctrl r

copper shard
#

do ctrl + r

random copper
#

Sure ๐Ÿ˜„

terse needle
#

@icy axle we can hear you fine

icy axle
#

Did I disconnect?

terse needle
#

just now, yeah

primal yacht
# whole bear i wanna get my 50 msgs

I don't know if you were or not, but as a friendly reminder, trying to spam to get your requirement met is going to be seen as something which will make you take longer to get voice verified.

whole bear
#

They can speak

#

But i cant

primal yacht
#

It's not just a message requirement. Make sure to fully read the voice verification channel.

whole bear
#

Huh

#

R u a mod?

primal yacht
#

No, but just trying to help.

whole bear
#

Oh

#

I thought u were mod

#

Thanks tho I appreciate it

glacial mural
#

Hey guys Can anyone help me identify the number of operands in a source code by hand?
public class Deneme {
public int x;
public int y;

public Deneme(int x, int y) {
    this.x = x;
    this.y = y;
}

public int x2y2() {
    return x * x + y * y;
}

public double Squareroot() {
    return Math.sqrt((double) x2y2());
}

public double log2() {
    ++y;
    return Math.log(((double) x) / y);
}

@Override
public boolean equals(Object obj) {
    if (obj != null && obj instanceof Deneme) {
        return ((Deneme) obj).x == this.x && ((Deneme) obj).y == this.y;
    }
    return false;
}

}

primal yacht
#

looks something like ... Java ?

glacial mural
#

it is not python but operands are universal

#

thats what i need help with

primal yacht
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

primal yacht
#

```java
/* java source code */
```

#

^ to copy ... just replace the comment I put there only @glacial mural

terse needle
#

๐Ÿ‘€ how did you escape it

primal yacht
terse needle
#

nice, cheers

primal yacht
#

\\server\share\path\to\whatever

glacial mural
#
public class Deneme {
    public int x;
    public int y;

    public Deneme(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int x2y2() {
        return x * x + y * y;
    }

    public double Squareroot() {
        return Math.sqrt((double) x2y2());
    }

    public double log2() {
        ++y;
        return Math.log(((double) x) / y);
    }

    @Override
    public boolean equals(Object obj) {
        if (obj != null && obj instanceof Deneme) {
            return ((Deneme) obj).x == this.x && ((Deneme) obj).y == this.y;
        }
        return false;
    }
}

primal yacht
#

I think only recently does Java have the ability to use + and such with objects.

glacial mural
#

there are total of 23 operands but i cant identify them

#

can you guys show me where the operands are

#

in the code

primal yacht
#

I still don't get the question ... also, you'd be better off in a Java server

glacial mural
#

i couldnt get any answers in the java server

icy axle
#
[
[0,0,0,1,2,0,0,0],
...
]
```
shut mulch
#
print("test")
primal yacht
#

How you asked it here shows you lack some understanding of what you are asking, and it seems like you just want the answer to be spoon fed to you, @glacial mural

glacial mural
#

I have to write a code to find the total number of operands in file, but I don't know what they look like, that's what I need help with

#

i know what i am asking

#

you dont have to be rude about it

gentle flint
#

@icy axle since when is your name in greek letters

icy axle
#
{
  -1: [-11, -10, -9, 2, 3],
  0: [5, 10, 11, 12, 15],
  20: [5, 6, 7, 100]
}
sharp beacon
icy axle
#

!e ```py
print([[1 for _ in range(10)] for _ in range(10)])

wise cargoBOT
#

@icy axle :white_check_mark: Your eval job has completed with return code 0.

[[1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]
icy axle
#

pixel[0][20]

lavish rover
#
grid = defaultdict(int)
grid[(x,y)] = 0
random copper
lavish rover
sharp beacon
random copper
sharp beacon
#

I ain't got a clue but she said it was 23.

random copper
random copper
#
public class Deneme {
    public int xM1;
    public int yM2;

    public Deneme(int xM3, int yM4) {
        this.xM7 = xM5;
        this.yM8 = yM6;
    }

    public int xM92M10yM112M12() {
        return xM13 * xM14 + yM15 * yM16;
    }

    public double SquarerootM17() {
        return Math.sqrtM18((double) xM192M20yM212M22());
    }

    public double log2() {
        ++yM23;
        return Math.log(((double) xM24) / yM25);
    }
    @Override
    public boolean equals(Object obj) {
        if (obj != null && obj instanceof Deneme) {
            return ((Deneme) obj).x == this.x && ((Deneme) obj).y == this.y;
        }
        return false;
    }
}
#

2 too many

#

i dont know ๐Ÿ˜„

sharp beacon
#

Why does the second function have 4 operands ๐Ÿ™‚

random copper
#

public double SquarerootM17() {
return Math.sqrtM18((double) xM192M20yM212M22()); ???

#

maybe its only 2 operands, also is the return operans? ๐Ÿ˜„

primal yacht
#
from typing import overload

class BitBoard2D:

  def __init__(self, width: int, height: int | None = None, /, *, fill: int = 0) -> None:
    if height is None:
      height = width
    self._board = [0]
    self.resize(width=width, height=height, fill=(1 if fill else 0))

  def resize(self, /, width: int | None = None, height: int | None = None, fill: int = 0):
    fill = 1 if fill else 0
    # ... other code to make it work

  @overload
  def __getitem__(self, coord: tuple[int, int], /) -> int:
    return 0 # Placeholder

  @overload
  def __getitem__(self, coord: slice, /) -> 'BitBoard2D':
    return BitBoard(1, 1) # Placeholder

  def __getitem__(self, coord: tuple[int, int] | slice, /) -> int | 'BitBoard2D':
    if type(coord) is slice:
      ... # make new BitBoard filled with copied bits
      # raise TypeError if any part is incorrect.
    if type(coord) is tuple and len(coord) == 2 and all(type(i) is int for i in coord):
      ... # return the bit's value
      # raise IndexError if out of bounds
    raise TypeError('Invalid key')
#

!projects

wise cargoBOT
#

Kindling Projects

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

sharp beacon
#

๐Ÿ˜„

whole bear
#

HI

primal yacht
#

Also, probably should drag that to one of the off topic channels

sharp beacon
#

Our professors are obtuse, However this assingment is heavy on this one it will effect our grade so much

terse needle
#

!pypi wcore_py

wise cargoBOT
lavish rover
primal yacht
sharp beacon
random copper
# glacial mural ``` public class Deneme { public int x; public int y; public Deneme...
public class Deneme {
    public int x(M1);
    public int y(M2);

    public Deneme(int x, int y) {
        this.x(M3) = x;(M5)
        this.y(M4) = y;(M6)
    }

    public int x2y2() {
        return x(M7) * x(M8) + y(M9) * y(M10);
    }

    public double Squareroot() {
        return Math.sqrt(M17)((double) (M22)x2(M11)y(M23)2(M12)());
    }

    public double log2() {
        ++y(M13);
        return Math.log(M16)(((double) x(M14)) / y(M15));
    }

    @Override
    public boolean equals(Object obj) {
        if (obj != null && obj instanceof Deneme) {
            return ((Deneme) obj).x(M21) == this.x(20) && ((Deneme) obj).(M19)y == this.y(M18);
        }
        return false;
    }
}

#

thats my bet ๐Ÿ˜„

icy axle
#

โ˜•

#

โžก๏ธ

lavish rover
#

or the other off topic channel

sharp beacon
#

Still doesnt add up to 23 but thanks for the effort @random copper ๐Ÿ˜„

terse needle
#

or dms

icy axle
#

Or a Java server

sharp beacon
#

If it wasn't urgent I wouldnt have asked it here sorry

lavish rover
#

!close

#

i tried

gentle flint
random copper
sharp beacon
#

The professor said there are total of 23 operands in the code

random copper
#

i found some later

icy axle
#

"I'm writing a Java Script, please help"

random copper
#

the declarion i guess its not operands

lavish rover
#

"I'm writing a script in java, can you help?"

#
document.OnLoad = ...
sturdy panther
#

I am writing PythonScript.

terse needle
#

"Why can't node run my java?"

sharp beacon
random copper
lavish rover
#
<html>
  <head>
  <title> My Website </title>
  <script>
    public static void main() {
      System.out.alert("This is an alert");
    }
  </script>
  </head>
  <body>
    Hello World
  </body>
</html>
primal yacht
icy axle
#

What is this

terse needle
icy axle
#

I'm never gonna give you up

#

I'm never gonna let you down

#

Unless you let me down, because I'm not desperate

terse needle
#

@primal yacht

icy axle
terse needle
#
int x = 5;
int* me = &x;
int* you = me;
#
int main(void) {
    int* me;
    int* you = me;
    me = you;
}
sturdy panther
#

I think... void* accepts any pointer?

lavish rover
#
  int a = 5;

  void *me = &a;
  void *you;

  me = &you;
  you = &me;
#
int* a,b; 
#
int *a, *b;
int *a, b;
primal yacht
sharp beacon
#

they also require operands

lavish rover
#
Counter c = Counter();
Counter *b = new Counter();
#
new (addr) Counter();
primal yacht
#
MyObj obj = MyObj(0);
if (obj++ == obj--) {
    // This in C++ is possible to work
    // if MyObj has them equal at zero.
}
#
is_byte = type(num) is int and 0 <= num < 256
lavish rover
#

I definitely like the multiple comparisons like 0 <= num < 256, I agree

#

type(num) is int, not so much, I like my static types

#

docker ps -aq

#
docker rm $(docker ps -aq)
shut mulch
#

i wanna know about rebase too

#

please

lavish rover
#

In this video I'll dive into some of the ways Git allows us to rewrite commit history. Specifically I cover: amending commits, rewording commit messages, deleting commits, reordering commits, squashing commits and splitting commits.

Check out my full writeup and reference guide here: https://www.themoderncoder.com/rewriting-git-history/

Or if ...

โ–ถ Play video
terse needle
#
[project]
name = "wcore_py"
classifiers = ["Development Status :: 3 - Alpha", "Programming Language :: Rust", "Topic :: Education"]
authors = [
        {name = "James Butcher", email = "jamesbutcher@duck.com"},
]
readme = "README.md"


[build-system]
requires = ["maturin>=0.12,<0.13", "twine"]
build-backend = "maturin"
gentle flint
#

Hieronymus Bosch (, Dutch: [ษฆijeหหˆroหnimสz หˆbษ”s] (listen); born Jheronimus van Aken [jeหหˆroหnimสs fษ‘n หˆaหkษ™(n)]; c.โ€‰1450 โ€“ 9 August 1516) was a Dutch/Netherlandish painter from Brabant. He is one of the most notable representatives of the Early Netherlandish painting school. His work, generally oil on oak wood, mainly contains fantastic illustra...

whole bear
#

@tepid edge

pine grail
violet patrol
#

Nothing much

old heart
zinc viper
#

could anyone with django and htmx experience please help

#

voice chat!!

grim owl
#

yes

#

a little

#

me too

#

ok

#

show

#

how do i speak

#

i am muted

#

where

#

screenshare

zinc viper
#

html:

#

<script src="https://unpkg.com/htmx.org@1.7.0"></script>

<input type='hidden' hx-post='/return_replies' hx-trigger="every 5s" hx-vals='{ "messages": {{ messages }}, "unique_num": {{ unique_num }}, "all_reply_id": {{ all_reply_id }}}'>


<html>
    <body>
        <div style="position:relative;background-color:#f5f5f5;width:900px;height:500px;border-radius:15px;border:2px solid black;margin:auto;margin-top:10%;">
            <div id='chat-div' style="position:absolute;left:20px;top:15px;margin:auto;width:870px;max-height:350px;overflow-y:scroll;margin-top:10px;">
                {% for body in messages %}
                    {% if body.message_type == "InstantMessage" %}
                        <p style="margin-left:5px;bottom:10px;text-align:left;border-left-style:solid;border-left-color:#48b8fa;padding:6px">{{ body.message }}</p>
                    {% elif body.message_type == "Reply" %}
                        <p id="replies" style="margin-right:20px;bottom:10px;text-align:right;border-right-style:solid;border-right-color:#ff9900;padding:6px">{{ body.message }}</p>
                    {% endif %}
                {% endfor %}
            </div>
            <textarea placeholder="Type your message to {{ client_name }} here.." style="background-color:#f5f5f5;position:absolute;width:900px;height:90px;border-bottom-left-radius:15px;border-bottom-right-radius:15px;bottom:0;border:2px solid black;right:-2px;bottom:-2px;padding:20px;margin:auto;padding-right:80px"></textarea>

            <button style="position:absolute;width:80px;height:90px;border-bottom-right-radius:15px;bottom:0;border:2px solid black;right:-2px;bottom:-2px;"><b>Send</b></button>
        </p>
    </body>
#

views:

#

@login_required
def return_chat(request):
context = {'client_name': request.POST['client_name'], 'messages': [], 'unique_num': request.POST['unique_num'],
'all_reply_id': []}
replies = Replies.objects.all().filter(unique_num=request.POST['unique_num'])
sent_messages = InstantMessages.objects.all().filter(unique_num=request.POST['unique_num'])
from itertools import chain
from operator import attrgetter
all_messages = sorted(chain(replies, sent_messages), key=attrgetter('datetime'))
# for messages in all_messages:
context['messages'] = all_messages
context['all_reply_id'] = replies.values('reply_id')
return render(request, 'chat.html', context)

@login_required
def return_replies(request):
context = {'replies': request.POST.get('messages'), 'unique_num': request.POST.get('unique_num'), 'all_reply_id': request.POST.get('all_reply_id')}
replies = Replies.objects.all().filter(unique_num=request.POST.get('unique_num'))
print(context, 'HERE IS CONTEXT')
# for messages in all_messages:
return HttpResponse(context)

grim owl
#

i recently started django

#

i dont know

#

my problem is simpler

#

can u help

#

romania

#

u?

#

cool

#

no we are not

#

๐Ÿ™‚

#

wanna talk in private

#

i cant send f request

summer ocean
#

@somber heath Hola ๐ŸŒบ

#

Howru ๐Ÿ™‚ , I was seeing google interviews on dark web ๐Ÿฅฒ

whole bear
#

Hello everyone

sour imp
#

How's it going?

winged wolf
#

@zinc viper use `` before and after code

#

code review please

whole bear
#

so interesting

signal sand
#

imo, but, if we are gonna have a world war... it is easier to trade with bitcoin than gold! @quasi condor

#

@winged wolf When you talk about gold... you sound like my mom... "GOLD NEVER GOES DOWN"

tidal shard
signal sand
#

But, we can't be sure, just because it is correlated now... like when we have a world war.... bitcoin will be correlated with stockmarket in wartime @quasi condor

quasi condor
#

BTC is always correlated with the stock market - gold has negative correlation with the stock market

#

at least the negative correlation is what I understand is the generally accepted wisdom

winged wolf
zinc viper
#
<script src="https://unpkg.com/htmx.org@1.7.0%22%3E</script>

    <input type='hidden' hx-post='/return_replies' hx-trigger="every 5s" hx-vals='{ "messages": {{ messages }}, "unique_num": {{ unique_num }}, "all_reply_id": {{ all_reply_id }}}'>


    <html>
        <body>
            <div style="position:relative;background-color:#f5f5f5;width:900px;height:500px;border-radius:15px;border:2px solid black;margin:auto;margin-top:10%;">
                <div id='chat-div' style="position:absolute;left:20px;top:15px;margin:auto;width:870px;max-height:350px;overflow-y:scroll;margin-top:10px;">
                    {% for body in messages %}
                        {% if body.message_type == "InstantMessage" %}
                            <p style="margin-left:5px;bottom:10px;text-align:left;border-left-style:solid;border-left-color:#48b8fa;padding:6px">{{ body.message }}</p>
                        {% elif body.message_type == "Reply" %}
                            <p id="replies" style="margin-right:20px;bottom:10px;text-align:right;border-right-style:solid;border-right-color:#ff9900;padding:6px">{{ body.message }}</p>
                        {% endif %}
                    {% endfor %}
                </div>
                <textarea placeholder="Type your message to {{ client_name }} here.." style="background-color:#f5f5f5;position:absolute;width:900px;height:90px;border-bottom-left-radius:15px;border-bottom-right-radius:15px;bottom:0;border:2px solid black;right:-2px;bottom:-2px;padding:20px;margin:auto;padding-right:80px"></textarea>

                <button style="position:absolute;width:80px;height:90px;border-bottom-right-radius:15px;bottom:0;border:2px solid black;right:-2px;bottom:-2px;"><b>Send</b></button>
            </p>
        </body>
#
def return_chat(request):
    context = {'client_name': request.POST['client_name'], 'messages': [], 'unique_num': request.POST['unique_num'],
               'all_reply_id': []}
    replies = Replies.objects.all().filter(unique_num=request.POST['unique_num'])
    sent_messages = InstantMessages.objects.all().filter(unique_num=request.POST['unique_num'])
    from itertools import chain
    from operator import attrgetter
    all_messages = sorted(chain(replies, sent_messages), key=attrgetter('datetime'))
    # for messages in all_messages:
    context['messages'] = all_messages
    context['all_reply_id'] = replies.values('reply_id')
    return render(request, 'chat.html', context)

def return_replies(request):
    context = {'replies': request.POST.get('messages'), 'unique_num': request.POST.get('unique_num'), 'all_reply_id': request.POST.get('all_reply_id')}
    replies = Replies.objects.all().filter(unique_num=request.POST.get('unique_num'))
    print(context, 'HERE IS CONTEXT')
    # for messages in all_messages:
    return HttpResponse(context)
#

@winged wolf

quasi condor
#
    if request.is_ajax():
        if request.method == 'POST':
            print(request.body)
signal sand
#

print

quasi condor
#
print(request.raw_post_data)
signal sand
#

Other than print being a function... in what other way python3 is better than python2@woeful salmon @quasi condor

tidal shard
#

probably more support would be one thing

woeful salmon
#

ye python2 is not supported by almost anything anymore

#

even python3.7 is slowly losing support

#

3.8 + is the way to go rn

signal sand
#

yeah... I know py2 is deprecated... but why did they choose to go with version3 rather than improving py2

woeful salmon
#

there's also things like type hinds, no more implicit import conversions, not having to inherit something when making a class and

#

alot of other things

signal sand
woeful salmon
zinc viper
#

"unique_num": 72195076,

woeful salmon
#

although python's minor versions also have a few breaking changes

quasi condor
#

{"key" : "this is valid json"}

woeful salmon
#

!e

import json

json.loads("\"this is valid json\"")
quasi condor
#
In [2]: json.loads('"this is valid json"')
Out[2]: 'this is valid json'
wise cargoBOT
#

@woeful salmon :warning: Your eval job has completed with return code 0.

[No output]
woeful salmon
#

yep it is xD

quasi condor
#
In [3]: json.loads("true")
Out[3]: True

this pains me ^

woeful salmon
#

btw you can use ```python-repl

#

for repl

#
>>> json.loads("true")
>>> True
quasi condor
#

so I can

#

although

woeful salmon
#

ah it doesn't work with ipython

#

๐Ÿ˜ฆ

#
In [3]: json.loads("true")
Out[3]: True

ooh ```ipython works

quasi condor
#
>>> if True:
...     print("hi")
...
hi
>>>
woeful salmon
#

syntax highlighting

#

ez help

signal sand
#

or just jupyter notebook!!

#

people in general are bad ๐Ÿ™ƒ

quasi condor
#
In [12]: timeit requests.get("https://http.cat/507.jpg")
60.7 ms ยฑ 2.21 ms per loop (mean ยฑ std. dev. of 7 runs, 10 loops each)
signal sand
#

This is the FULL MOVIE! - The Internet's Own Boy depicts the life of American computer programmer, writer, political organizer and Internet activist Aaron Swartz. It features interviews with his family and friends as well as the internet luminaries who worked with him. The film tells his story up to his eventual suicide after a legal battle, and...

โ–ถ Play video
zinc viper
#

This is the FULL MOVIE! - The Internet's Own Boy depicts the life of American computer programmer, writer, political organizer and Internet activist Aaron Swartz. It features interviews with his family and friends as well as the internet luminaries who worked with him. The film tells his story up to his eventual suicide after a legal battle, and...

โ–ถ Play video
signal sand
#

Sad life, everytime, I think about it... My eyes get little watery

#

I don't play minecraft!

#

neither!

#

None!!!!!!!!!

#

I smell a bot here!!!

#

@dull fractal But we need some sense of ownership... it incentivizes people to improve on existing things....

#

As long as humanity as whole is advancing, it doesn't matter for me, who is copying who! @dull fractal

#

If someone is profiting and adding something to humanity... It's fine!

#

https://youtu.be/9HAw1i4gOU4

I suggest you watch this @dull fractal

Lawrence Lessig marked his appointment as Roy L. Furman Professor of Law and Leadership at Harvard Law School with a lecture titled "Aaron's Laws: Law and Justice in a Digital Age." The lecture honored the memory and work of Aaron Swartz, the programmer and activist who took his own life on Jan. 11, 2013 at the age of 26.

0:00:00 Introduction
0...

โ–ถ Play video
#

and this

signal sand
somber heath
#

โœจCommunity!โœจ

signal sand
#

It is amazing...

zinc viper
#

<QuerySet [{'reply_id': 'ee846092-c926-4bab-8aec-fe331a45a633'}, {'reply_id': 'd0c9b275-0fd6-4dee-bc53-fcbc4b7835ea'}]>
<QuerySet [{'reply_id': 'ee846092-c926-4bab-8aec-fe331a45a633'}, {'reply_id': 'd0c9b275-0fd6-4dee-bc53-fcbc4b7835ea'}]>

zenith radish
#

I'm dead I got absolutely sloshed yesterday

#

Pray for me

silent copper
#

how to write code everyday?

tidal shard
dull fractal
somber heath
silent copper
# tidal shard what do you mean?

for me it's interesting to watch video about programming and read about it. For example it was interesting to read several parts of official python tutorial but problem is that i don't write code

silent copper
tidal shard
silent copper
#

i also wrote some console apps in c

#

but it was "labs" in college

tidal shard
silent copper
#

i can't ๐Ÿ˜ฅ

#

life is hard

tidal shard
silent copper
#

i will force my self to complete this book and never touch programming again

tidal shard
silent copper
silent copper
tidal shard
noble copper
silent copper
#

i need raspberry pi laptop can you give a link?

noble copper
silent copper
#

ะ ัƒััะบะธะน

primal yacht
silent copper
silent copper
primal yacht
#

If you force yourself to learn it because you have to, you will hate it more than if you learn it because you want to.

#

... wow ... https://www.youtube.com/watch?v=RpLottQ2VPA
Cannot even trust Wish

So I decided to venture out to Wish.com... and I bought a Nintendo Wii! But the listing was a little odd, so I'm pretty sure it's a fake Nintendo Wii... check out the video to see what I got!

Nintendo Wii Console: https://amzn.to/3hLAKwy
Wii Sports: https://amzn.to/36LoCFm
Nintendo Switch Console: https://amzn.to/2UScYpy

My Discord Server: htt...

โ–ถ Play video
primal yacht
dull fractal
#

@pale sigil

primal yacht
primal yacht
#

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

icy axle
#

Any live cell with two or three live neighbours survives.
Any dead cell with three live neighbours becomes a live cell.
All other live cells die in the next generation. Similarly, all other dead cells stay dead.

sick onyx
#

@icy axle what theme are you using ?

icy axle
#

Dracula

#
XXXXXX    
XXโ–ˆโ–ˆXXXX  
XXโ–ˆโ–ˆโ–ˆโ–ˆXXXX
XXXXXXโ–ˆโ–ˆXX
    XXXXXX
#
if self.grid[cell]:  # Cell is alive
    return self.neighbours(cell) in [2, 3]
return self.neighbours(cell) == 3
#
          
  โ–ˆโ–ˆ      
  โ–ˆโ–ˆโ–ˆโ–ˆ    
      โ–ˆโ–ˆ  
          
>>> board.do_iteration()
>>> print(board.render())
          
  โ–ˆโ–ˆโ–ˆโ–ˆ    
  โ–ˆโ–ˆโ–ˆโ–ˆ    
    โ–ˆโ–ˆ  
primal yacht
#
class State:

  def __getitem__(self, coord_or_slice):

    if type(coord_or_slice) is slice:
      return self.get_sliced_state(coord_or_slice)

    if type(coord_or_slice) is tuple and len(coord_or_slice) == 2 and all(type(i) for i in coord_or_slice) is int):
      return self.get_state_at(coord_or_slice)

    raise TypeError()
icy axle
#

``py

primal yacht
#

##########

#

```py

```

#
len( ("foobar",) ) == 1
#
len( "foobar", ) == 1
woeful salmon
#

!e

len(("foobar"),) == 1
wise cargoBOT
#

@woeful salmon :warning: Your eval job has completed with return code 0.

[No output]
plain rose
#

!e print(len(("foobar"),) == 1)

wise cargoBOT
#

@plain rose :white_check_mark: Your eval job has completed with return code 0.

False
primal yacht
#

!e ```py
len( "foobar", ) == 1

wise cargoBOT
#

@primal yacht :warning: Your eval job has completed with return code 0.

[No output]
primal yacht
#

!e ```py
def x(*a, **b): print((len(a), len(b)))
x(1,)

wise cargoBOT
#

@primal yacht :white_check_mark: Your eval job has completed with return code 0.

(1, 0)
brisk talon
#

Hello

icy axle
#
{
    "hey": "..."
  , "hey": "..."
  , "heyoa": "wazzup"
}
wise cargoBOT
#

Hey @pine plinth!

It looks like you tried to attach file type(s) that we do not allow (.rar). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.

Feel free to ask in #community-meta if you think this is a mistake.

dull fractal
rugged tundra
solar flax
#

can anyone help me....i was looking content-lenght in requests.headers but it's missing...idk what to do....this is the result i got Accept-Ranges': 'bytes', 'Cache-Control': 'max-age=315360000', 'Connection': 'keep-alive' , 'Content-Type': 'image/jpeg', 'Date': 'Sun, 03 Apr 2022 17:29:02 GMT', 'Expires': 'Thu, 31 Dec 2037 23:55:55 GMT', 'Last-Modified': 'Wed, 22 Sep 2021 12:57:30 GMT', 'Server': 'ng inx', 'Transfer-Encoding': 'chunked', 'Vary': 'accept'}

dull fractal
cedar cedar
#

Can someone help me

dull fractal
whole bear
lavish rover
sinful gazelle
#

does anyone here use a tiling window manager

dull fractal
#

@lavish rover

#

Warren Teitelman (1941 โ€“ August 12, 2013) was an American computer scientist known for his work on programming environments and the invention and first implementation of concepts including Undo / Redo, spelling correction, advising, online help, and DWIM (Do What I Mean).

lavish rover
pallid socket
#

Hi guys

#

how do I get permission to speak?

wind raptor
#

!voice

wise cargoBOT
#

Voice verification

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

pallid socket
#

thanks

wind raptor
#

No problem

pallid socket
#

I have less thank 50 messages ๐Ÿ˜ฆ

#

Are you guys busy? I need some novice python help

#

One sec lemme screenshot

#

k

lavish rover
#

!code

wise cargoBOT
#

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

pallid socket
#

should I send the whole class or only the relevants parts?

#

yes

#

raceback (most recent call last):
File "/Users/tornikegogiberidze/Desktop/higher_lower game/main.py", line 5, in <module>
Choice.choose(Choice)
File "/Users/tornikegogiberidze/Desktop/higher_lower game/functions.py", line 64, in choose
self.cycle(Choice)
File "/Users/tornikegogiberidze/Desktop/higher_lower game/functions.py", line 74, in cycle
self.points += 1
AttributeError: type object 'Choice' has no attribute 'points'
tornikegogiberidze@Tornikes-MacBook-Air higher_lower game %

#

discord says it's too long ๐Ÿ˜„

lavish rover
#

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

pallid socket
#

When I wasn't passing anything it gave me an error

#

one second, lemme try

lavish rover
#
self.cycle()
#
Choice.cycle(self)
pallid socket
#

Yes

#

Doing that right now

#

TypeError: Choice.cycle() missing 1 required positional argument: 'self'

lavish rover
#

self.cycle()

pallid socket
#

makes sense

#

TypeError: Choice.cycle() missing 1 required positional argument: 'self'

#

wait it was self.cycle

#

sorry i'm sleepy ๐Ÿ˜ฆ

#

one second

#

ok now there's no error

#

but my cycle stopped working

#

should I send the code?

#

Could you repeat the question, please?

#

So the premise is that it gives you two variants to answer

#

and if you get it right the answer that you chose stays and the second variant gets replaced with another variable from a dictionary

#

I got the cycle working by calling the function from another function

#

Which account has more followers?
Khloรฉ Kardashian Reality TV personality and businesswoman United States
108 Million
OR
Camila Cabello Musician Cuba
Type '1' for Khloรฉ Kardashian. type '2' for Camila Cabello

#

input: '1'

lavish rover
#

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

lavish rover
#
obj = Choice()
obj.current_count()
obj.second_choice()
obj.chooce()
pallid socket
#

oh, I didn't know that. thanks

#

ok now there's another error

#

TypeError: cannot unpack non-iterable NoneType object