#voice-chat-text-0

1 messages · Page 177 of 1

echo garden
#

@keen tiger https://www.youtube.com/watch?v=XKHEtdqhLK8&t=7618s she's pretty good too

Python tutorial for beginners full course
#python #tutorial #beginners
⭐️Time Stamps⭐️
#1 (00:00:00)​ Python tutorial for beginners 🐍
#2 (00:05:57​) variables ✘
#3 (00;17;38​) multiple assignment 🔠
#4 (00:20:27​) string methods 〰️
#5 (00:25:13​) type cast 💱
#6 (00:30:14​) user input ⌨️
#7 (00:36:50​) math functions 🧮
#8 (00:40:58...

▶ Play video
#

wtf?

#

hold on

drifting phoenix
#

@uncut meteor I agree

noble solstice
drifting phoenix
#

@keen tiger sorry I wasn't of help 😕

keen tiger
#

<3 np

drifting phoenix
#

Don't be to hard on your self. you got it @keen tiger I am in the same situation to

#

I am neww to and I feel the same

keen tiger
#

It sucks

drifting phoenix
#

if you don't have anything just try building a website

#

@keen tiger

#

I think that would be a great step and deploying

keen tiger
#

but to do that I should know enough info no?

drifting phoenix
#

u dont need to learn everything and u learn as you make it

#

yes just google it you can try making a python django project

#

Yes I am actually making one right now

#

I am trying to make a django website

noble solstice
#

and funfact for learning django u can use django for girls

drifting phoenix
#

python

#

I am makeing a djang website right now

keen tiger
#

I'll check it out ty

drifting phoenix
#

I dont know everything but I am learning alot by just doing it even tho I dont know everything

keen tiger
#

You helped me a lot tysm :)

drifting phoenix
#

no problem if you need a person to help each other accountable I am down! I need more coding friends

keen tiger
#

add me

drifting phoenix
#

I just started to so iam in the same boat

echo garden
keen tiger
#

sure

drifting phoenix
#

Thank you everyone for chatting I am heading to work now. it was nice meeting you all looking forward to learning with all of you

#

@keen tiger good luck! you got this!

keen tiger
#

You too!!

echo garden
keen tiger
#

Thats cool I understand nothing

somber heath
#

@sacred summit Down here for vc0

sly yarrow
#

lol

sacred summit
#

wtf do i do

#

why is this old man so angry @echo garden

sly yarrow
#

lol he is)

stoic chasm
somber heath
#

@torn shard 👋

torn shard
somber heath
#

@whole bear 👋

whole bear
somber heath
#

@willow mirage Come on down.

willow mirage
#

hi

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.

willow mirage
#

hey bro yeah

#

u cant seem to verify my self

somber heath
#

Does it tell you why?

willow mirage
#

what do i do

somber heath
#

@ionic flicker 👋

ionic flicker
#

hi

#

i cant speak hahaha

#

ok

#

i need wait 3 days, alright ?

#

i join to this chanel right now

#

thanks, @somber heath !!

somber heath
#

@raw pier 👋

forest zodiac
raw pier
#

hi!!

raw pier
#

why am i muted?

ionic flicker
#

the rules of the server

#

you need wait for 3 days

#

hey, do you guys have any tutorial youtube for functions ?

raw pier
#

i really need help

somber heath
#

Corey Schafer

ionic flicker
#

thank u!!

raw pier
#

i am newbee

#

i dont how to code

ionic flicker
#

i will ask how write this, but thanks! hahaha

raw pier
#

and i really want to code

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.

raw pier
#

before coding what should i do??

#

before learning any languages

willow mirage
#

codewithmosh

raw pier
#

software developer

ionic flicker
lofty crater
raw pier
#

which youtube again??

#

i am studing a levels right now

somber heath
#

Corey Schafer, playlists.

#

Python for Beginners.

raw pier
#

and after a levels i want to go and become a software engineer

#

so where do i start

somber heath
#

@tame anchor 👋

ionic flicker
#

hahahaha

#

i will see the video . thanks guys for help!

raw pier
#

yea thank you for the help :)))
\

ionic flicker
raw pier
#

what is the hardess language to learn

dry jasper
raw pier
#

easiest?

dry jasper
#

python

raw pier
#

i am studing a levels and we are learning psueduecode

#

;-;

#

then we will learn python ;-;

#

;-;

#

;-;

#

fav sports?

gentle flint
somber heath
#

Pseudocode.

raw pier
#

yea your right ;-;

dry jasper
raw pier
#

what is it

gentle flint
forest zodiac
#

i guess TLA+ is quite hard

somber heath
raw pier
#

i am using pychram to do python

somber heath
#

@river island 👋

raw pier
#

;-;

somber heath
#

@wide forge 👋

gentle flint
raw pier
#

@somber heath what are you doing rn

#

college

#

??

#

or

#

graduated

#

??

river island
lofty crater
#

afk a min

somber heath
raw pier
#

noo i mean..

#

yk

somber heath
#

I know what you meant.

#

I was intentionally avoiding answering.

#

I don't like to talk about it. 🙂

raw pier
#

ahhh i am sorry if it makes u uncomfortable

#

;-;

somber heath
#

It doesn't.

#

@gaunt briar 👋

#

@warm idol 👋

#

Stretch Armstrong is a large, gel-filled action figure that was first introduced in 1976 by Kenner. In 2016, at the New York Toy Fair, Hasbro announced the return of the Stretch Armstrong toy in its original 1976 design.
Stretch Armstrong is made of latex rubber filled with a proprietary gelled substance similar to corn syrup, which allows it t...

forest zodiac
#

shapes

worldly roost
#

hi opal mist

worldly roost
somber heath
#

@whole bear 👋

vocal basin
#

produce mistakes at speed

lofty crater
#

gonna go for now

vocal basin
#

for a second confused it with GAN

#

(thing to generate things)

#

would be somewhat difficult if they are wireless

#

(to do it via rewiring)

rugged root
#

That'll tell you what you need to know about the voice gate

tidal canopy
#

Hey thanks

#

I was trying to create project on python it is pretty fun and easy

#

It's a streak counter

#

discord bot

#

Do you have an idea how it might work?

#

for example I give a command with prefix "!" in chat then say "!createstreak nosugar" so starts the new streak from day 0 after a week you comeback and say !nosugar and it says 7 days

#

it continues counting and keeping track for you

#

I am a total beginner almost... so where do I go to learn what I need to build this?

alpine crater
#

👋

#

like the cheese?

rugged root
#

But of course

terse needle
alpine crater
rugged root
#

Beyond that, you'll want to look into the datetime library that's built into Python

#

!d datetime

wise cargoBOT
#

Source code: Lib/datetime.py

The datetime module supplies classes for manipulating dates and times.

While date and time arithmetic is supported, the focus of the implementation is on efficient attribute extraction for output formatting and manipulation.

rugged root
tidal canopy
vocal basin
#

I'm still using the worst ACID-compliant database for my bots
way too lazy to move it to something that is normal and adequate

rugged root
#

I've got something for that as well....

rugged root
#

This is a decent one for getting a handle on SQL for database stuff. Python comes with SQLite in the sqlite3 library

#

Alternatively, you can do something simple like just putting it into a JSON file for now, for something simple

vocal basin
rugged root
#

Essentially that'll be a dictionary with the user ID as the key and the datetime as the value

vocal basin
#

> putting it into a JSON file
and that's where that terrible DB comes in

rugged root
#

But you'll need to save the file/information somewhere in order for it to persist.

rugged root
tidal canopy
vocal basin
#

I haven't lost data with it once, since 1.0 release of the thing I wrote

prisma jackal
#

Why is the answer B not A

vocal basin
#

JSON files can be made to work reliably
(but should they?)

vocal basin
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

True
rugged root
vocal basin
#

ZeroDivisionError gets caught by except ArithmeticError:

tidal canopy
rugged root
#

Yep. But even if it's not on all the time, so long as you are saving the data for later, you can have the bot down for a month, turn it back on, and when the person re runs the command, it'll still get the time elapsed

#

Since you can just subtract the current datetime by the old stored one

vocal basin
#

!e

try: 1 / 0
except ZeroDivisionError: print("zero division")

try: 1 / 0
except ArithmeticError: print("arithmetic error")

try: 1 / 0
except Exception: print("exception")
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | zero division
002 | arithmetic error
003 | exception
tidal canopy
vocal basin
#

I don't remember if there's anything between ArithmeticError and Exception

#

I'd expect ValueError but it's not there

tidal canopy
#

Yeah but syncing up with an API is done through discord library I think

#

through web application

#

Okay yeah local file sounds good to me

vocal basin
#

can store in something like AWS S3, but that costs money above a certain limit

  • latency
#

can also introduce a layer of abstraction to be able to swap local files for whatever else later

tidal canopy
#

Can your own websites host data for free?

vocal basin
#

(private) domains are never free, neither are public IPs

tidal canopy
#

I see

#

I think they are like a dollar or something to get your own private domain right?

vocal basin
#

I pay around $10~20 a year

tidal canopy
#

@frozen owl have you tried hosting on a raspery pi?

frozen owl
vocal basin
#

rpi is good enough to host low-load websites

frozen owl
#

idk my remote computer is a regular windows desktop computer lol

tidal canopy
frozen owl
#

which is on 24/7

vocal basin
#

the problem you might encounter is that rpi is arm not x86

frozen owl
tidal canopy
#

being on all the time

frozen owl
tidal canopy
#

@rugged root How did you know how to build this streak counter so quickly, experience with it?

#

Yes substracting is the way I thought the program did it

#

what if the bot never goes down?

tidal canopy
#

and I can manually run it after if it fails

#

How long do you think it takes for you personally to code this thing?

vocal basin
# vocal basin can also introduce a layer of abstraction to be able to swap local files for wha...

something along these lines

# all the code would depend on this
class Storage:
    async def load(self, key: str) -> object:
        raise NotImplementedError
    async def save(self, key: str, value: object) -> None:
        raise NotImplementedError

# just an implementation detail
class FileStorage:
    def __init__(self, root: Path) -> None:
        self._root = root
    def _key_path(self, key: str) -> Path:
        return self._root / to_file_name(key)
    def _load_sync(self, key: str) -> object:
        return json.loads(self._key_path(key).read_text())
    def _save_sync(self, key: str, value: object) -> None:
        self._key_path(key).write_text(json.dumps(value))
    async def load(self, key: str) -> object:
        return await asyncio.to_thread(self._load_sync, key)
    async def save(self, key: str, value: object) -> None:
        await asyncio.to_thread(self.save_sync, key, value)
#

!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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

vocal basin
#

I thought about putting it there

#

(and I would in actual code)

#

and I probably wouldn't format it the way I did

alpine crater
#

!code

wise cargoBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

tidal canopy
#

@rugged root if you want you can share your screen and we can all code it together for fun

#

just a fun activity

#

I see

alpine crater
#

I can share my screen, but I am not doing programming 😛

tidal canopy
#

@vocal basin you wanna try?

vocal basin
#

similar situation to Hemlock
(working on stuff, can't share much)

dull elm
vocal basin
#

there's a function for repeatedly calling choice

#

!d random.choices

wise cargoBOT
#

random.choices(population, weights=None, *, cum_weights=None, k=1)```
Return a *k* sized list of elements chosen from the *population* with replacement. If the *population* is empty, raises [`IndexError`](https://docs.python.org/3/library/exceptions.html#IndexError).

If a *weights* sequence is specified, selections are made according to the relative weights. Alternatively, if a *cum\_weights* sequence is given, the selections are made according to the cumulative weights (perhaps computed using [`itertools.accumulate()`](https://docs.python.org/3/library/itertools.html#itertools.accumulate)). For example, the relative weights `[10, 5, 30, 5]` are equivalent to the cumulative weights `[10, 15, 45, 50]`. Internally, the relative weights are converted to cumulative weights before making selections, so supplying the cumulative weights saves work.
vocal basin
#

also you should probably be using secrets

tidal canopy
#

why is coding so much fun

vocal basin
#

!d secrets

wise cargoBOT
#

New in version 3.6.

Source code: Lib/secrets.py

The secrets module is used for generating cryptographically strong random numbers suitable for managing data such as passwords, account authentication, security tokens, and related secrets.

In particular, secrets should be used in preference to the default pseudo-random number generator in the random module, which is designed for modelling and simulation, not security or cryptography.

alpine crater
dull elm
tidal canopy
vocal basin
#

wingide? or idle?
why does it look familiar

tidal canopy
#

so I have almost done 50 messages or have done 50 messages can I access voice chat now, because it still is muted for some reason

vocal basin
#

strange that secrets doesn't provide choices function

#

only single choice

tidal canopy
#

oh I found it

vocal basin
#

choice is expected

#

somewhat

#

it can be re-implemented using randint

#

but not always

vocal basin
#

randbelow is difficult to implement

#

securely

#

choice too, because of caching and stuff

#

speaking of Souls-adjacent games,
I should re-install Code Vein

#

just cut the network cable ¯_(ツ)_/¯

alpine crater
#

I have been playing a lot of MTGA lately

vocal basin
#

I gave up on Code Vein when I encountered first mostly-ranged boss

alpine crater
#

I play games to feel powerful

rugged root
vocal basin
frozen owl
#

and tictactoe

alpine crater
#

I like minesweeper xD

alpine crater
vocal basin
alpine crater
#

ultimate tictactoe that is where the fun is

vocal basin
#

last time I played minesweeper competitively was in April

frozen owl
vocal basin
#

still waiting for RTS tic tac toe to rival FPS Chess

alpine crater
#

I made tictactoe.... and I didnt use lists x1 = ..., x2 = ....... IT WAS HELL

vocal basin
#

I'm not motivated enough to complete this

#

tetris is just a little too dull for me

#

even compared to minesweeper

alpine crater
#

oh I love that game

vocal basin
alpine crater
#

my most played game in fact

prisma jackal
alpine crater
#

(idk how minecraft story mode is so high)

prisma jackal
wind raptor
vocal basin
#

inside function, y is second element

alpine crater
vocal basin
#

but here x is the second element

#

it might be easier, if separate names are used for variables inside and outside the function

prisma jackal
vocal basin
#

!e

def func():
    x = 1
    y = 2
    return x, y

a, b = func()
print(b)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

2
vocal basin
#

but (y, x) = isn't really a tuple

#

a pattern rather

prisma jackal
#

Can I access Tuple's elements/indexes like a list ?

vocal basin
#

yes

alpine crater
#

you can

prisma jackal
vocal basin
#

!e

a, b = (1, 2)
(c, d) = [3, 4]
[e, f] = 5, 6
wise cargoBOT
#

@vocal basin :warning: Your 3.11 eval job has completed with return code 0.

[No output]
vocal basin
#

it's a way to assign values of tuple/list/etc. to variables rather than a tuple itself

#
(a, b) = (1, 2)
         ^^^^^^ tuple

(a, b) = (1, 2)
^^^^^^ tuple-like pattern
#

these two are equivalent if something is a tuple:

(a, b) = something
a = something[0]
b = something[1]
#

@tidal canopy
Russian as a language is not necessarily harder than, for example, English;
it just makes more use of word construction compared to grammatical structure

#

in terms of context-sensitivity, most languages are similar

viscid merlin
#

heya guys

tidal canopy
alpine crater
#

(would anybody mind if I streamed some MTGA?)

viscid merlin
#

what is mtga?

alpine crater
#

MTG arena

viscid merlin
#

ooh

alpine crater
#

(got to love nested acronyms)

viscid merlin
#

i just googled it actually

vocal basin
#

acronym which is 25% normal

alpine crater
#

I have done some

#

I reverse engineered a led strip protocol

vocal basin
#

tbf, AJSaXML isn't as catchy

viscid merlin
#

because we love games

alpine crater
#

modifying a game can be a lot of fun

vocal basin
#

reverse-engineering single-player games normally doesn't cause harm

viscid merlin
#

it could be anything i guess?

alpine crater
#

anything with a "physical" impact is always fun, modifying a game has a very clear impact, you are now invincible, or infinite dmg, etc

tidal canopy
alpine crater
#

!rule english yhe keep it english

wise cargoBOT
#

4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.

vocal basin
#

right click

#

and disable command center

viscid merlin
#

kinda...

#

gotta go and try to sleep

#

cya

vocal basin
#

"million dollar idea: steal data"

tidal canopy
#

Except it's forbidden by god to steal

vocal basin
#

and by law, usually

tidal canopy
alpine crater
#

yhe, only the goverment is allowed to steal data

dull elm
#

I who is well-not at English: ducky_skull

tidal canopy
#

That's all illegal

#

ngl

vocal basin
#

@dusky lynx those 8 billion IPs are just an allocated IPv6 range, not separate machines

#

i.e. nothing to do with proxies

tidal canopy
#

@vocal basin Am I wrong?

vocal basin
#

you can buy an IPv6 address range just like with IPv4

#

difference being IPv6 is cheaper per address

#

even today, renting a single IPv4 address is still affordable even for private individuals

#

(public static IP I mean)

#

difficulties start when you need reverse DNS entries

tidal canopy
#

@vocal basin I see

#

@vocal basin you still here?

vocal basin
#

yes

#

writing Rust

#

there needs to me a mod in a channel to ensure that what's streamed is approriate

tidal canopy
whole bear
#

@cobalt fractal

#

hi

vocal basin
#

as in already be in the channel, pinging the role or individual mods is not the way

tawdry salmon
#

Im a rusty boy

tidal canopy
#

What's the way?

tawdry salmon
#

mod in vc

#

only way

vocal basin
#

normally, Hemlock is responsible for giving the role for longer times

#

(you can discuss it with him next time he's online)

turbid sandal
#

@spare iris @shy monolith @coral canyon @hidden yew

wise cargoBOT
#
Voice verification

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

turbid sandal
#

I'm ok

shy monolith
tidal canopy
#

Hey broobroom

shy monolith
#

wanna be called "slave"?

tidal canopy
#

that's what it means

#

the all knowning is god's name

shy monolith
#

ok

tidal canopy
#

Call me slave of god if you want it's fine

spare iris
#

whats good

#

who @ me

vocal basin
#

find simpler parts that you know how to solve
learn to use tools as parts of other projects

prisma jackal
#

I don’t understand this question

#

Isn’t the last line going to generate an error ?

tidal canopy
vocal basin
#

!d datetime.date

wise cargoBOT
#

class datetime.date(year, month, day)```
All arguments are required. Arguments must be integers, in the following ranges:

• `MINYEAR <= year <= MAXYEAR`

• `1 <= month <= 12`

• `1 <= day <= number of days in the given month and year`

If an argument outside those ranges is given, [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) is raised.
vocal basin
#

if it's daily, probably this class

#

not datetime.datetime

shy monolith
#

@spare iris ask slave to do that for u. he said he's a slave

#

@tidal canopy

vocal basin
# prisma jackal

do you know what dot and at lists are going to contain by the time print gets executed?

shy monolith
#

@tidal canopy im not salty. sweety

prisma jackal
#

at = [@]

vocal basin
#

indices of dots and indices of @

#

not symbols, but places where those symbols are

#

@tidal canopy you shouldn't

prisma jackal
vocal basin
#

pep8 specifically states against using wildcard imports

#

!pep8

wise cargoBOT
#
PEP 8

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

More information:
PEP 8 document
Our PEP 8 song! :notes:

vocal basin
shy monolith
#

@vocal basin is pro

vocal basin
#

!e

email = "firstName.lastName@example.com"
dot = []
at = []
for i in range(len(email)):
    if email[i] == '.':
        dot.append(i)
    if email[i] == '@':
        at.append(i)
print(dot)
print(at)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | [9, 26]
002 | [18]
spare iris
vocal basin
#

!e

from datetime import date
print(date.today())
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

2023-08-15
shy monolith
#

@tidal canopy import time and use the official documentation to use what u need

vocal basin
#

!e

from datetime import date
print(date.today() - date.fromtimestamp(0))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

19584 days, 0:00:00
vocal basin
#

I think differences between dates are timedeltas

#

!e

from datetime import date, timedelta
print(date.today())
print(date.today() + timedelta(days=366))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 2023-08-15
002 | 2024-08-15
vocal basin
#

it just adds 366 days to a date

#

as an example of what you can do with date

tidal canopy
#

can you make it do something like !nosugar 20, then it saves it as 20 days, then after 3 days ask it and it will say 23 days?

vocal basin
#

streak counter would likely store the following things for each streak:
date when the streak started
date of last check-in
longest streak (including previous streaks that ended)

#

current streak length would be last_date - streak_start

tidal canopy
vocal basin
#

if today is last_date + 1, then last_date can be incremented to be same as today

tidal canopy
#

I am just gonna make a variable n store a random number like 20

vocal basin
#

and when today is last_date + 2 or later, the streak ends

#

resetting the streak sets streak_start and last_date to today

#

max_streak gets updated after each increment

tidal canopy
tidal canopy
vocal basin
#

because if the streak just started, it's 1 day long, not 0

#

as in "consecutive days that something happened" rather than difference between last event and first event

tidal canopy
#

can you give me the code for it, I want to test it

vocal basin
#

!e

from datetime import date, timedelta

# these values are palceholders; instead they should be pulled from the database
streak_start = date.today() - timedelta(5)
last_date = date.today() - timedelta(1)

today = date.today()
if today <= last_date + timedelta(1):
    last_date = today
else:
    streak_start = last_date = today
streak_length = (last_date - streak_start).days + 1
print(streak_length)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

6
vocal basin
#

!e

from datetime import date, timedelta

# these values are palceholders; instead they should be pulled from the database
streak_start = date.today() - timedelta(5)
last_date = date.today() - timedelta(2)

today = date.today()
if today <= last_date + timedelta(1):
    last_date = today
else:
    streak_start = last_date = today
streak_length = (last_date - streak_start).days + 1
print(streak_length)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

1
vocal basin
#

after checking in today, it updates the streak

vocal basin
#

therefore the streak ends and both stored dates get reset to today

#

then you can just store streak_start

#

when user resets the streak, it gets set to today or today + 1

tidal canopy
#

Okay

#

I deleted everything except streak_start variable, although I do not know what timedelta does

vocal basin
#

!d datetime.timedelta

wise cargoBOT
#

class datetime.timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0)```
All arguments are optional and default to `0`. Arguments may be integers or floats, and may be positive or negative.

Only *days*, *seconds* and *microseconds* are stored internally. Arguments are converted to those units...
vocal basin
#

depends on programming what

#

Python -- since September 2017

#

some of what I do is more than just hobby, as in it provides infrastructure to some communities

#

only recently I started doing work that might give me money
(but that's Rust not Python)

#

Rust is around 4 times older than Kotlin

#

and knowing Kotlin is quite an easy way to get hired, because mobile

#

so age of the language isn't the determining factor

tidal canopy
#

@vocal basin Thanks for the help, next time I comeback I would have probably finished everything, I will let you test it

vocal basin
#

I remember less Pascal than I knew at that time

#

with a text-only IDE

#

Turbo Pascal, or something similar

#

IDEs that were built for DOS without pointer support in mind, then ported to Windows

#

Pascal is not a text editor

#

@spare iris
Emacs not Pascal?

#

oh, wow, vi was released only 6 years after ed

#

line editor

#

q

#

like vim

#

I think

vocal basin
#

how do I exit Vim?
why would I exit Vim?

spare iris
#

lol

vocal basin
#

Vim works over TTY

#

Emacs less so, in my experience

#

(I just couldn't get it to work at all)

spare iris
#

emacs -nw

vocal basin
#

I mostly use regular VS Code, without much customisation

#

I really just pressed shift+A in emacs

#

Vim instincts

spare iris
vocal basin
#

ggdG -- fix all errors in current file

spare iris
#

LMAO

vocal basin
#

end/home/pgup/pgdown/arrows work as usual

spare iris
#

@velvet tartan

vocal basin
#

is that emacs the one with very "intuitive" navigation?
f b n p

#

(forwards backwars next previous)

spare iris
tidal canopy
#

@vocal basin Hey I am back, I finally did it, it's working now

#

the program works perfectly

vocal basin
#

esc shift+del

#

(or just shift+del if nothing is selected)

spare iris
#

w, $, ^

vocal basin
#

it technically does the same as dd, because it puts the line into the buffer, on many editors, except it's the system buffer

#

(shift+del as an alternative to ctrl+x)

#

I've never used Neovim

#

I've experienced enough lsp issues to know what it is

#

IntelliJ-based ides have their own custom language servers, often proprietary

#

and there's also IntelliJ Rust, which is open-source, but diverged enough from rust-analyzer that it's not config-compatible anymore

#

nano is intuitive to use

spare iris
vocal basin
#

just cut the power wire

#

shift+del cuts the line

#

same as ctrl+x

#

(just don't try shift+del in file explorers, thinking it's equivalent to ctrl+x)

#

syntax highlighting is to make reading easier

#

idk if giving it up has much benefit, even short term

#

last time I used Vim for >hour was on mobile

#

because that's the only useable editor there

#

code worked first time, surprisingly

#

@rugged root all cursive

rugged root
#

Full on calligraphy

spare iris
#

@velvet tartan

vocal basin
#

don't forget to switch the paper to dark theme

spare iris
dry jasper
#
vocal basin
spare iris
#

lmao

vocal basin
#

loud shaming provider
shouting "you're doing it wrong"

spare iris
#

real

vocal basin
#

@rugged root like with DreamBird:

#

(it got renamed to C recently)

#

last line is so much Oracle

spare iris
pliant remnant
#

why use emacs over vim?

spare iris
#

oh ho

rugged root
#

Pretty much it

spare iris
#

^wrong

vocal basin
#

impersonal preference

pliant remnant
#

nah, dont buy it

#

neovim is probably the way to go these days

desert wolf
#

Evil-mode works fine 🙂

limber copper
#
# This calculates how many people total in the last 8023 years it took to make you.

# people = 2 ^ (years / average_parent_age_at_birth)
# This calculates that with each generation the number doubles
# Example: 2 parents, then 4 grandparents, then 8 great-grandparents and so on


years = 8023
average_parent_age_at_birth = 25
total_generations = years / average_parent_age_at_birth
people = 2 ** total_generations
print(f'Total = {people:.0f}')

vocal basin
#

as Atom is dead, now write a Sublime Text extension for tabletop simulator

pliant remnant
#

im going to do sum'n 2 years and still not voice verified

desert wolf
#

Write the extension in emacs

terse needle
vocal basin
#

the first official extension for tabletop simulator was for Atom

#

~~ first~~ only, I think

pliant remnant
#

how is the emacs shortcuts compared to vim?

spare iris
vocal basin
rugged root
#

Sublime using the Monokai Pro theme

pliant remnant
#

no way

vocal basin
#

forwards backwards next previous

spare iris
terse needle
dry jasper
vocal basin
pliant remnant
#

that is so ugly xD

vocal basin
#

nvm that site is so much not filtered by whether it can be used to describe someone

spare iris
#

@dry jasper posting nano sc

pliant remnant
#

ive never heard of nano

vocal basin
#

wordpad.exe

pliant remnant
#

and it has built in version controll

vocal basin
#

you can also set custom highlighting, yes

pliant remnant
#

with onedrive

dry jasper
#

In this video, I tell you the best IDE to use for programming. No matter what kind of programming you do.

Music by Joy Ngiaw:
https://www.joyngiaw.com/
https://www.instagram.com/joyngiaw/

HOW DO I GET A TECH JOB?
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
📚 Video courses from JomaClass:
🎓 New to programming? Learn Python here: https://bit.ly/joma_python
🎓 Lea...

▶ Play video
vocal basin
#

just set spacing between letters such that all characters in api key are overlayed on top of each other

spare iris
vocal basin
#

from ed

#

ed -> vi -> vim

#

I so much now want to make a joke based on a certain post-modern piece of literature

#

both use q to exit

#

maybe both use d to delete

#

idk about anything else

pliant remnant
#

xD

#

bro choked

pliant remnant
#

made it better ❤️

vocal basin
#

doesn't work through Tor either

#

no not that

#

I'm not sure I can post the original here

lethal moth
#

smoking capacitors is the next big flex i guess

#

need to hop on it early

spare iris
pliant remnant
#

bro i need to learn the math

#

no cap

spare iris
#

86bf508 * asldfasdfsdf

#

this is my first comit in my emacs repository

spare iris
pliant remnant
#

i am fine with calculus, then i took an advanced statistic course with statistical moddeling, but they try to be so smart with their BS little shitty symbols

spare iris
#

oh 😵‍💫

pliant remnant
#

honestly

spare iris
#

i think all of math is gonna have a lot of symbols lol

pliant remnant
#

im fine with symbols but i think I might have missed set theory and discrete maths that might be able to fill that gap

spare iris
#

oh ya

pliant remnant
#

but i will get to that at a later stage

#

communism

whole bear
#

can anyone help me about requests??!

pliant remnant
#

what requests?

whole bear
#

can you come to dm

pliant remnant
#

the library?

whole bear
#

so i can screenshare

#

can you come to dm please

#

im screensharing

warm idol
#

python lib requests

cosmic bison
bright shoal
#
from selenium import webdriver

cdp = "C:\developer\chrome-win64/chrome.exe"
driver = webdriver.Chrome(executable_path=cdp)

driver.get("www.google.com")
driver.quit()

i am new into programming, tried settingup chrome drive
giving me exception
any help is appreciated thankyou

#
   driver = webdriver.Chrome(executable_path=cdp)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: WebDriver.__init__() got an unexpected keyword argument 'executable_path'
python-BaseException
whole bear
winged condor
#

Hey slaves

#

Programming slaves

vocal basin
#

or official docs?

#

that argument might've been removed in some version

vocal basin
#

modern selenium uses options parameter instead

#

also, this should probably be a raw string:

cdp = r"C:\developer\chrome-win64\chrome.exe"
#

or else \d and \c get interpreted incorrectly

bright shoal
#

thanks i'll give it a read
i am super new to this
so i might probably ask some dumb ques🥲

turbid sandal
#

where is the code jam qualifer i could not find the qulifier on the website? @wind raptor (sorry for ping btw)

bright shoal
south pewter
vocal basin
#

well, not even random; quite predictable and non-varied, in fact

#

same word 9 times in 13 messages

native hazel
#

hemlo

#

huys

willow gate
#

Hello

native hazel
#

will u plaminecraft

willow gate
#

Nope I didn't play

somber heath
#

@green carbon 👋

obsidian dragon
#
#
somber heath
drifting phoenix
#

whats up guys

#

how you guys doing?

#

lol

#

Ok i see

#

you feeling better now opal? yesterday when I left you kinda seems like you were anxiety

drifting phoenix
#

thats good to hear

#

I hope everything is well you got this !

#

by anychance do any of you guys know anything about mobile dev?

somber heath
#

@limber eagle 👋

limber eagle
#

hello

somber heath
#

@vague coral 👋

vague coral
#

Hi

noble solstice
#

Well @somber heath I am learning graph from many days but still unable to solve questions on leetcode

drifting phoenix
#

I am trying to learn flutter and I was wondering if anyone can point a good tutorial for me to create a mobile app

#

no problem though I would ask

noble solstice
#

on flutter

drifting phoenix
#

Thank you @noble solstice !

somber heath
#

@whole bear 👋

whole bear
#

hallo

noble solstice
#
print("YNEOS"[2**int(input())%24<9::2])```
Can anyone explain me this
drifting phoenix
#

lol

noble solstice
#
One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and the scales showed w kilos. They rushed home, dying of thirst, and decided to divide the berry, however they faced a hard problem.

Pete and Billy are great fans of even numbers, that's why they want to divide the watermelon in such a way that each of the two parts weighs even number of kilos, at the same time it is not obligatory that the parts are equal. The boys are extremely tired and want to start their meal as soon as possible, that's why you should help them and find out, if they can divide the watermelon in the way they want. For sure, each of them should get a part of positive weight.```
Problem
#

Problem is easy but someone solves very cleverly and i don;t understand

noble solstice
frozen owl
#

I KNEW IT

#

i saw it before

noble solstice
noble solstice
vocal basin
#

!e

print(*[2**i%24<9 for i in range(100)])
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

True True True True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True False True
vocal basin
#

1 2 4 8 16 8 16 8 16 ...

#

there is 1 2 4 8 16 31

#

I think

frozen owl
#

yeah i think 3b1b made something on it

vocal basin
#

for splitting a circle in segments

frozen owl
#

i saw it on instagram

vocal basin
frozen owl
#

nah im too "young" to be on youtube

noble solstice
#

It's a mathematical formula?

frozen owl
#

instagram is my kind of thing

vocal basin
#

formula just gives a correct cycle

#

would be better if pow(2,i,24) was used

#

because less memory usage for same result

scarlet halo
#

hey

vocal basin
#

yes, not as compressed

2**i%24
pow(2,i,24)
scarlet halo
#

jesus you scared me

#

yes

#

a little

#

idk

#

yes

noble solstice
#

but why they use 24 as modulo?

frozen owl
#

Generation Alpha (Gen Alpha for short) is the demographic cohort succeeding Generation Z. Scientists and popular media use the early 2010s as starting birth years and the early-to-mid 2020s as ending birth years (see § Date and age range definitions). Named after alpha, the first letter in the Greek alphabet, Generation Alpha is the first to be ...

#

the embed's helpful now lmao

noble solstice
frozen owl
#

yer

#

xer

#

xoomer

#

?

#

yoomer sounds goofy af

#

but zoomer sounds fast

#

lol

noble solstice
vocal basin
somber heath
#

@spark barn 👋

spark barn
#

hi

frozen owl
spark barn
#

ok

somber heath
#

Corey Schafer, YouTuber, playlists.

#

@honest kayak 👋

honest kayak
#

Hi

spark barn
#

@all Hi

honest kayak
#

DropCaps means that the first letter of the starting word of the paragraph should be in caps and the remaining lowercase, just like you see in the newspaper.

But for a change, let"s do that for each and every word of the given String. Your task is to capitalize every word that has length greater than 2, leaving smaller words as they are.

*should work also on Leading and Trailing Spaces and caps.

"apple of banana"  => "Apple of Banana"
"one   space"      => "One   Space"
"   space WALK   " => "   Space Walk   " ```
#
def drop_cap(words):
    i = 0
    while i < len(words):
        if words[i] == " ":
            i += 1
        else:
            break```
somber heath
#

@shy monolith 👋

shy monolith
#

@somber heath hola, yo me llamo mariola

honest kayak
#
word_list = words.split()

    for word in word_list:
        if len(word) > 2:
            return word[0].upper() + word[1:]
        else:
            pass```
#
import re

def drop_cap(s):
    return re.sub(r'\w{3,}', lambda m: m[0].title(), s)```
drifting phoenix
#

I am back!

#

Dude have you guys used github copilot! game changer!

somber heath
#

!d str.title

wise cargoBOT
#

str.title()```
Return a titlecased version of the string where words start with an uppercase character and the remaining characters are lowercase.

For example:

```py
>>> 'Hello world'.title()
'Hello World'
```  The algorithm uses a simple language-independent definition of a word as groups of consecutive letters. The definition works in many contexts but it means that apostrophes in contractions and possessives form word boundaries, which may not be the desired result:

```py
>>> "they're bill's friends from the UK".title()
"They'Re Bill'S Friends From The Uk"
```...
drifting phoenix
#

sup grif

somber heath
#

!d in

wise cargoBOT
#
in

6.10.2. Membership test operations

The operators in and not in test for membership. x in s evaluates to True if x is a member of s, and False otherwise. x not in s returns the negation of x in s. All built-in sequences and set types support this as well as dictionary, for which in tests whether the dictionary has a given key. For container types such as list, tuple, set, frozenset, dict, or collections.deque, the expression x in y is equivalent to any(x is e or x == e for e in y).

For the string and bytes types, x in y is True if and only if x is a substring of y. An equivalent test is y.find(x) != -1. Empty strings are always considered to be a substring of any other string, so "" in "abc" will return True.

uncut meteor
#

din dins

drifting phoenix
#

gtg to work now so talk to you all later

somber heath
#

@rich parrot 👋

honest kayak
#

Im deafend so I can think through everything

#

brb

#

I might be back in like 20-30 minute

warped raft
#

@next nest@uncut meteor@rugged root@somber heath hello how are you all doing

somber heath
#

Cold.

uncut meteor
#

3

uncut meteor
next nest
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.

next nest
uncut meteor
#

httpx

#
  • HTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.
#

aiofiles write to files

frozen owl
#

@uncut meteor is this your security camera code?

uncut meteor
#

no

frozen owl
#

:/

#

may i have your repo for the security camera lol

#

i wanna have a look at it (if you have your repo)

uncut meteor
#

!code

wise cargoBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

next nest
#

I prefer C# over python

why?
Python isn't # enough

somber heath
#
class MyClass:
    pass

session = {MyClass}```
vivid palm
uncut meteor
#

stand

#

you ever caught her T-Posing?

vivid palm
#

lol i don't think she'd be able to

stoic chasm
#

a man

vivid palm
next nest
frozen owl
uncut meteor
frozen owl
#

my first windows ver was windows 8 but school used 7 until a few years ago and then upgraded to 10

#

windows 8 was the best fight me

rugged root
#

You will not win this fight

frozen owl
#

love this

#

i mean i was on a transformer at that time

#

i had this when i was 7 years old

#

best shit ever

#

for 7 year old me

rugged root
#

If this article is to be trusted, the supported formats are:

.jpg .jpeg .JPG .JPEG

.png .PNG

.gif and .gifv

.webm

.mp4

.wav

.mp3 (audio-only mp4s can simply be renamed to embed)

.ogg

frozen owl
uncut meteor
#

**File type: **Use either a JPEG, PNG, or GIF image.

next nest
uncut meteor
#

hi Equal_smile

rugged root
somber heath
#

@civic zinc 👋

civic zinc
#

Hello

uncut meteor
frozen owl
#

can i still have a look though

#

if it's open source

uncut meteor
#

its Reolink camera, Frigate and Home Assistant

frozen owl
#

my parents are interested

frozen owl
#

since we're using TP-Link cameras but we found them really unreliable

uncut meteor
#

all running on just an old x86 server, did via docker setup

frozen owl
#

tysm :D

frozen owl
#

hopefully i don't need docker

#

hmm access it using api... interesting

#

like i wanted to learn backprop today

#

but like

#

in the ai channel they're like

#

your math bad

#

tbh the guy was kinda nice but i guess ppl's patience are limited

#

:(

#

pytorch better

#

imho

#

but for deep learning

#

like NN

#

it abstracts everything

#

but for everything else, it's beyond my scope

#

crying over a shit NN rn

#

LITERALLY

#

😭

pine depot
#

it aint worth the tears

frozen owl
#

muckbang

uncut meteor
uncut meteor
#

i have it push notifications to my phone

#

then use the API to show the most "humanlike" image

#

then clicking it plays the clip/live video

frozen owl
#

nice

frozen owl
uncut meteor
#

alot cheaper than buying a system

frozen owl
#

but have you thought of building your own like using rasp pi

uncut meteor
#

that would be a future thing to do, if we want energy efficiency (which we probs will)

#

oh, and space/noise

frozen owl
#

but like

#

would you think keeping a small "stack" of video clips locally and delete old ones, say for a day

#

so like you won't need to pay for cloud storage?

#

since im thinking of this

#

my dad's willing to trust my coding rather than to buy a third party lol

#

winget install -e --id GNU.Nano doesn't work @rugged root

#
Failed when searching source: winget
An unexpected error occurred while executing the command:
0x8a15000f : Data required by the source is missing

No packages were found among the working sources.
#
PS C:\Users\andre\RemoteFolder> winget install -e --id GNU.Nano
Failed when searching source: winget
An unexpected error occurred while executing the command: 
0x8a15000f : Data required by the source is missing

No packages were found among the working sources.
forest zodiac
#

winget install GNU.Nano

rugged root
#

Yep, that simple

somber heath
#

@lofty stone 👋

lofty stone
warm vapor
#

Hello

somber heath
#

@oblique reef 👋

oblique reef
#

HEllo i cant speak idk why ?

rugged root
#

That'll tell you what you need to know about the voice gate

oblique reef
#

oh ok thanks <

rugged root
#

No problem! And you can always chill and chat with us here. Helps get your message count up, and we do our best to keep everyone involved in the convo

frozen owl
#

Dear [headmaster, head of school, teacher]

Thank you for your kind messages of congratulations. It means a lot to me to receive recognition for my efforts. I am truly grateful for your support and encouragement.

Thank you once again for your thoughtful messages.

Yours sincerely,
[my name]

#

that was my email lol

warm vapor
#

i wrote my winter homework with chatgpt the whole thing

rugged root
#

Laaaame

warm vapor
#

I am not in US so teachers dont have checkers and we have to submit hand written pages soo

#

Hemlock your pfp is good

somber heath
#

Ape eel to emotion.

warm vapor
#

chatgpt has made life easierbut we are gonna suffer in long term

rugged root
#

Easier in small ways, but I don't think they're the huge game changers people say they are currently

warm vapor
#

I am concerned about jobs, the only thing i am good at is computers(ig)

#

well not now

#

but in 5-10years

#

artists are dead now 💀

#

created new jobs but only IT field

somber heath
warm vapor
somber heath
#

Technology advances.

warm vapor
#

I dont really know what is considered as art nowadays, someone duct-taped a banana and sold it for 100k. I bet AI cant do that

scarlet halo
#

sure bro

frozen owl
#

alright

#

pitch your thing

warm vapor
#

listening....

#

selling user data and giving user a part of the profit lemon_hyperpleased

frozen owl
#

google drive?

#

wtf

warm vapor
#

wait it does that?

somber heath
#

@abstract bridge @shy monolith @runic delta 👋

#

@gusty orbit 👋

frozen owl
#

just curious

#

what happens in pycon

abstract bridge
#

very productive voice chat!

somber heath
#

You've a very generous definition of productive. 😁

abstract bridge
#

☺️ thanks i love the energy you radiate

visual elk
#

@warm vapor U indian by any chance?

pine depot
#

@rugged root
Mr. Hemlock - Javascript is not that bad.

somber heath
#

@zenith meadow 👋

visual elk
#

I may know you from my last account but I forgot lol

rugged root
zenith meadow
warm vapor
visual elk
#

I don't know.

somber heath
#

@hexed saddle 👋

visual elk
#

When you were new here

#

In DM most likely

warm vapor
rugged root
#
visual elk
warm vapor
#

Hmm I dont remember anyone

visual elk
#

Could be someone else.

somber heath
#

@vapid sonnet 👋

vapid sonnet
#

whats up poalmist

visual elk
#

I just remember someone with the similar pfp or username

vapid sonnet
#

opalmist

visual elk
#

You're a boy, right?

#

Chara

warm vapor
visual elk
#

He was a boy too.

vapid sonnet
#

gross

somber heath
visual elk
#

Whatever, I gotta go to bed now. Goodnight.

warm vapor
#

k bye

warm vapor
visual elk
#

Nope

warm vapor
#

oh ok nvm

somber heath
#

@viral glacier 👋

pine depot
hexed saddle
honest kayak
#
non_capitalize = {"and", "but", "or", "so", "as", "if", "yet", "nor", "of"}

def drop_cap(words):
    i = 0
    while i < len(words):
        if words[i] == " ":
            i += 1
        else:
            break

    word_list = words.split()

    for word in word_list:
        if len(word) > 2:
            return word[0].title()```
#
    for word in word_list:
        if len(word) > 2:
            return word[0].title()
        elif word in non_capitalize:
            return ```
#
def drop_cap(word):
    words = word.split()  
    modified_words = []

    for word in words:
        if len(word) > 2:
            modified_word = word[0].upper() + word[1:].lower()
        else:
            modified_word = word
        modified_words.append(modified_word)

    modified_string = " ".join(modified_words)  
    return modified_string```
#

^^ My friend's code

uncut meteor
#

and what you need

#

I'm doing 7 days retain

then after that will look at compressing hard with ffmpeg, and store on some big HDD locally.

cloud storage dumps would be good for long long term, but I don't really need old old footage.

stuck furnace
#

Yeah, 1 uk gallon is 1.2 us gallons

frozen owl
#

||worst case i head to shenzhen and get shit /j||

#

a half day tour to shenzhen is fun lol

#

to huaqiangbei!

uncut meteor
#

i see no need to cloud store it

frozen owl
#

i think i got a plan alr, thanks griff

#

...but the next time i go back is in 2 years lol

frozen owl
#

the one i have lol

#

*but space grey ftw!

tiny socket
#

@rugged root why won't my USB c cable go in

frozen owl
#

it's correct but like

tiny socket
#

ohhh type c is wireless

frozen owl
#

this config requires bluetooth tethering the power

#

yeah

#

bluetooth charging

#

wanna me to airdrop you some charging power?

tiny socket
rugged root
#

Stahp

frozen owl
#

not what you're thinking

#

my airdrop was vaccinated 5 times alr

tiny socket
#

yeah I was thinking about pfsense

#

can my firewall vaccinate my bluetooth power?

frozen owl
frozen owl
#

baptise by fire!

tiny socket
rugged root
#

It's certainly up there

#

Yeethon still takes the cake for me

tiny socket
#

yeethon was peak covid shitposting

frozen owl
#

you still wanna get my bluetooth-transferred power? you can pay me with doge /j

#

one time offer of only 999.999.9.99.9.9..9.9.9.9.9 dogecoins

rugged root
#

I'm still sad at myself for contributing so many ideas to yeethon

frozen owl
#

lmao

tiny socket
rugged root
#

Was return yeet?

frozen owl
#

┬─┬ノ( º _ ºノ)

tiny socket
#

yeet was del

rugged root
#

That's right

#

Right right

scarlet halo
#

tips on modding wiimote

#

pardon?