#voice-chat-text-0

1 messages · Page 327 of 1

small vessel
#

i

#

Hi

rugged root
#

!stream 327179626306863104

wise cargoBOT
#

✅ @quartz beacon can now stream until <t:1718805867:f>.

modest thicket
#

hi hi

rugged root
modest thicket
#

I'm starting to miss those days when I started learning Python and everything seemed doable...

whole bear
stuck furnace
#

What'd I do? 👀

#

Oh

#

Right

modest thicket
#

who are you talking about?

stuck furnace
#

Fun fact: Napoleon was actually the average height for his time 😄

stark river
#

std::chrono::steady_clock::now().time_since_epoch().count())
it bothers me that this code is half namespace scoping, half methods

stuck furnace
#

He was exiled to Elba?

stark river
#

napolean was corsican no?

stuck furnace
#

Oh really, so I guess Elba probably wasn't too bad for him 🤷‍♂️

stark river
#

corsica 🫶

#

is beautiful

quartz beacon
#

@somber heath

whole bear
#

@quartz beacon yea I see that perspective that’s so true

stuck furnace
#

The full name is "X formally known as Twitter"

#

It was actually not bad at times in the past, if you found good people to follow

#

It was great for getting opinions on specific current affairs from genuine experts.

stark river
#

i used to get so many cases of "formerly known as" when i used to work for a bank

stark river
rugged root
#

Formally former

stuck furnace
#

I'm always mixing up homophones

#

Back in a bit

stark river
#

inbreeding produces webbed feet so inbreds are just better swimmers 😂

quartz beacon
stuck furnace
#

🤨

#

Not really the most pydis appropriate topic

#

It really is

sturdy summit
#

Hello

#

Is it possible to have Windows 11 together with Linux on the same computer?

stuck furnace
quartz beacon
#

Dual boot

#

just install linux on your w11 machine, it will replace windows boot loader with GRUB

#

that's what it did for me

sturdy summit
quartz beacon
#

can fuck up your timezones tho

#

so be vary

stuck furnace
#

Yeah I did until a while ago. Switched back to using only Windows after like 10 years of using only MacOS and Linux.

#

I have Linux installed on my old macbook

#

Oh, I don't mind they/them

#

I'm not generally concerned about it, I just added them because why not.

sturdy summit
stuck furnace
sturdy summit
#

Oh nice, thanks for the suggestion

molten pewter
#

A programmer, computer programmer or coder is an author of computer source code – someone with skill in computer programming.
The professional titles software developer and software engineer are used for jobs that require a programmer.
Generally, a programmer writes code in a computer language and with an intent to build software that achieves s...

sturdy summit
#

I am completely new to Python, and even though I don't qualify, I sent my CV to a junior Python developer position. Is it still a good practice for newbies to do that?

gentle flint
willow light
#

I have gotten into the habit of putting this in my code comments to screw with the AIs.

#

As well as anything I write,

willow light
vocal basin
#

that one, unlike leetcode, seems to provide actual educational value

exotic moss
#

hey hemlock

quartz beacon
sturdy summit
#

Can someone help me with my code?

#

It's kinda long, but I need to find the problem

vocal basin
#

@verbal zenith whos type is Record?

#

@verbal zenith yes, report

#

that library lacks a blanket impl for references

#

@verbal zenith String::new()

#

?

#

for empty

#

@verbal zenith take &str or impl Into<String> as argument?

#

@verbal zenith label.map(From::from)

#

?

#

&'static str sounds okay there

#

-> &'static str since it's not borrowing anything

#

for Base

#

hmm

#

I don't actually remember how to force it to coerce to Option<&str>

#

@verbal zenith change it back, then label.as_ref()

#

iirc the issue was &Option<String> instead of Option<&str>

#

go back to when it was showing an error only on label in the calling code

#

not, like, in different place

#

where you rewrote it

#

@verbal zenith there is a place where you have label as &Option<String>

#

@verbal zenith let

#

!e

0b
wise cargoBOT
# vocal basin !e ```py 0b ```

:x: Your 3.12 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     0b
003 |      ^
004 | SyntaxError: invalid binary literal
vocal basin
#

!e

0o
wise cargoBOT
# vocal basin !e ```py 0o ```

:x: Your 3.12 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     0o
003 |      ^
004 | SyntaxError: invalid octal literal
vocal basin
#

!e

00o
wise cargoBOT
# vocal basin !e ```py 00o ```

:x: Your 3.12 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     00o
003 |      ^
004 | SyntaxError: invalid decimal literal
vocal basin
#

why is int()'s ValueError saying "literal" too

#

that's not right

#

!e

int("00o")
wise cargoBOT
# vocal basin !e ```py int("00o") ```

:x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     int("00o")
004 | ValueError: invalid literal for int() with base 10: '00o'
vocal basin
#

!e

int("00" + "o")
wise cargoBOT
# vocal basin !e ```py int("00" + "o") ```

:x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     int("00" + "o")
004 | ValueError: invalid literal for int() with base 10: '00o'
vocal basin
#

!e

from random import choice
int("00" + choice("abc"))
wise cargoBOT
vocal basin
#

!e

print(int("aa", 36))
wise cargoBOT
vocal basin
#

!d int

wise cargoBOT
#
int

class int(number=0, /)``````py

class int(string, /, base=10)```
Return an integer object constructed from a number or a string, or return `0` if no arguments are given.

Examples...
vocal basin
#

positional-only, /, normal, *, keyword-only

#

!e

def f(a, /, b):
    pass

f(1, 2)
f(1, b=2)
wise cargoBOT
vocal basin
#

not defaulted

#

positional-only can be with defaults too

#

!e

def f(a=None, /): ...
f()
f(1)
f(a=2)
wise cargoBOT
vocal basin
#

many builtin things in python are like that

#

!e

help({}.get)
wise cargoBOT
# vocal basin !e ```py help({}.get) ```

:white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | Help on built-in function get:
002 | 
003 | get(key, default=None, /) method of builtins.dict instance
004 |     Return the value for key if key is in the dictionary, else default.
vocal basin
#

!e

{}.get("key", default="default")
wise cargoBOT
# vocal basin !e ```py {}.get("key", default="default") ```

:x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     {}.get("key", default="default")
004 | TypeError: dict.get() takes no keyword arguments
vocal basin
#

handle positional-only (here you handle lack of args)
handle positional normal (here you handle too much args)
handle provided keyword (here you handle unwanted kwargs)
handle required keyword (here you handle missing kwargs)

#

I think that's the order

#

!e

def f(a, /, b): ...

f(1, 2, 3)
wise cargoBOT
vocal basin
#

I just realised that "test" did nothing

#

I can't check whether lack or extra get caught earlier because those exclude each other

#

!e

def f(a, /): ...

f(x=5)
wise cargoBOT
# vocal basin !e ```py def f(a, /): ... f(x=5) ```

:x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 3, in <module>
003 |     f(x=5)
004 | TypeError: f() got an unexpected keyword argument 'x'
vocal basin
#

okay so that one is actually earlier

#

@verbal zenith so that you can block-comment-out code with comments inside

#

especially useful when you want to temporarily remove something that has docs inside which have block comments in code

#

outside comment /* inside comment /* inside comment */ inside comment */ outside comment

#

without it:
outside comment /* inside comment /* inside comment */ outside comment */ outside comment

#

and that's why Zig doesn't have them

vocal basin
#

yes

vocal basin
#

h should be clearer

#

9 is last part of the literal that it was able to parse

stark river
rugged root
#

Yo

#

Yo again

#

Can't talk outloud right now, got a co-worker back here

twilit forge
#

why is the st no highlighted

rugged root
#

Yep, just have to get over the hump

modest thicket
#

hi hi

rugged root
#

Yo

modest thicket
#

air

rugged root
#

I don't really have a specific diet

modest thicket
#

another one for the clud of adhd hahaha

#

club*

rugged root
#

@quartz beacon I'm here, just can only type at the moment

#

@deep forge Sup nerd

#

Factual

#

I take up multiple loser slots

#

It's how I rolllllllllllllllllll

#

I think I can

#

Because I have a co-worker back here so I'm being polite

#

Always

#

Yep

#

Correct

#

Sup

#

Sup again

oblique fable
#

Hi , I'm new came today in server

rugged root
#

Welcome to the server!

modest thicket
rugged root
#

@quartz beacon Wise

#

Correct

#

Uneventful

vocal basin
#

I always forget that site even exists

quartz beacon
rugged root
#

Looks like a cryptid

#

Shadowl

vocal basin
#

@quartz beacon

rugged root
#

"Uzbexico"

#

Amazing

#

It takes so much will power to not use snake case in JS

#

Jesus, Hem

#

Get your shit together

stark river
#

it's not a steadfast rule

vocal basin
rugged root
#

snake_case

#

camelCase

quartz beacon
#

iHateCamelCase

vocal basin
#

camel_Snake_Case

rugged root
#

PascalCase

rugged root
#

SCREAMING_SNAKE_CASE

vocal basin
#

turned out it wasn't

vocal basin
rugged root
#

Card suits maybe?

quartz beacon
#

[SUITCASE]

rugged root
#

Those are in ASCII

#

It's called kebab as in shish kebab

#

With the skewer

rugged root
#

Why annoyed?

#

HA

#

Somehow add a little eyestalk character

#

!@

verbal zenith
#

soMevar

rugged root
#

Skill issue

#

They aren't sanitizing inputs properly

stark river
#

banking software is stone age

rugged root
#

Clari?

#

Understandable

#

COBOL-CASE oh no

#

God that would be icky to have to read all the time..

#

Write a story with that then?

#

Or slack to actual people

#

Don't be insulting to people regardless of where they're from

#

I don't think that's unreasonable

#

Individuals are individuals

#

I know, it's a raw thing right now

#

I get it

#

I know

#

Just a Hem reminder, that's all

vocal basin
#

@sturdy summit subset of Russians not Russians in general

#

don't forget the 0.01% of elves

rugged root
#

Well played

#

Well played indeed

#

AF is awesome

sturdy summit
vocal basin
rugged root
#

@sturdy summit How comfortable are you with classes now?

sturdy summit
#

Could be more comfortable

stark river
#

classes are functions

rugged root
#

Eh?

vocal basin
#

in case of python, callable

#

in case of JS, a lie

rugged root
stark river
rugged root
stark river
#

those prototype lying bastards

rugged root
#

CV

#

No no

#

Like a resume

#

You'll likely struggle with the technical interview

vocal basin
#

that's exploitation not internship

#

any job, even if you know nothing, deserves pay

rugged root
#

Dude, so I know this is a dumb thing to complain about, but I don't like that you have to write out function to declare a function in JS

quartz beacon
#

^^^

rugged root
#

So verbose

vocal basin
#

it's their problem if they fail to onboard you

rugged root
#

fn or def or even let

#

Like

stark river
#

you don't have autocomplete?

rugged root
#

I do, but it's still annoying

rugged root
#

I thought there was some weird underlying differences when you should use one vs the other, though

stark river
#

arrow funcs dont have this bindings

rugged root
#

Ah that's right

#

That's what it was

#

Just a pinch of coffee grounds between the cheek and the gums

vocal basin
#

which some see as a benefit

rugged root
#

No

#

@quartz beacon No no no

stark river
#

how is that a benefit?

rugged root
#

What?

#

Ohhhh you're talking Italian style

#

@silk dust Espresso is incredibly finely ground, then you force hot water through it and it ends up being very condense and concentrated

#

They're both coffee, but it's how they're prepared that makes the difference

#

Yeah that'll fuck you up

#

I can hear him

#

No he's sitting

#

Nope

#

Fan noise

vocal basin
quartz beacon
rugged root
#

Espresso machine

quartz beacon
rugged root
#

@stark river It sounded fine to me to begin with

#

But I may also just be used to it all

stark river
#

manually adjusting the source endpoint is tricky

rugged root
#

Wait so is it like a tiny percolator?

#

Yeah for sure

#

@cedar mason Sup

vocal basin
vocal basin
quartz beacon
#

0 bytes

#

😂

rugged root
#

Just kind of tune out the noise part of it

#

Crap, back later

quartz beacon
#

👋

cedar mason
#

Oh no Hemlock

#

WHat happend?

cedar mason
spare galleon
#

heewo

#

who wanna help me make cool

vocal basin
#

@verbal zenith do you want to take more than one item at a time?

#

first, use clap
otherwise, just .next instead of for

whole bear
#

hi

vocal basin
#

for is syntax sugar around IntoIterator::into_iter, Iterator::next and while

#

by using .next you can also get rid of .skip

#

(just .next once and ignore the result)

#

tbf if it ever gets trained on solutions from there, not bad

vocal basin
vocal basin
#

it's typesystem-heavy Rust

#

almost Haskell-level madness

#

but with lifetime pain

stark river
#

whyyy

vocal basin
#

over half of exercises there come from actual practical code

#

@spare galleon just a sound I think

#

@cedar mason it borrows some parts from bash

#

and Windows Powershell comes with some stuff to be more faimilar to bash users

#

like ls

silk dust
#

how

#

hysterical

#

done

spare galleon
#

Error code: PR_END_OF_FILE_ERROR

silk dust
#

not sure how to completely disable but i have disabled using taskbar

#

yes

vocal basin
#

not HTML and not regular HTTP error

#

it's trying to parse HTTP response but can't

cedar mason
#

The PR_END_OF_FILE_ERROR is an error code encountered in Mozilla Firefox (and other browsers based on Mozilla code) which typically indicates an issue with the SSL/TLS connection. This means the browser was unable to establish a secure connection to the website, and it prematurely ended the handshake process. Here are some common causes and solutions:

Common Causes

  1. Server-Side Issues:

    • The server you are trying to connect to might be misconfigured or experiencing issues.
    • The server might not support the required SSL/TLS versions or ciphers.
  2. Client-Side Issues:

    • Corrupted browser profile or cache.
    • Incorrect browser or system settings.
    • Problems with the installed security software (antivirus, firewall).
  3. Network Issues:

    • Network misconfiguration.
    • Interference by proxies or network filtering software.

Solutions

1. Check the Website

  • Make sure the website is online and properly configured. You can try accessing it from another browser or device.

2. Clear Browser Cache

  • In Firefox, go to Options (or Preferences) > Privacy & Security > Cookies and Site Data > Clear Data.

3. Disable Extensions

  • Disable any browser extensions, especially those related to security, privacy, or VPNs, to see if they are causing the issue.

4. Refresh Firefox

  • This can fix many issues by restoring Firefox to its default state while saving essential information like bookmarks and passwords. Go to Help > More Troubleshooting Information > Refresh Firefox.

5. Check SSL/TLS Settings

  • Ensure that SSL and TLS are enabled. Go to about:config in the address bar, search for security.tls.version.min and security.tls.version.max, and ensure they are set to the appropriate values (1 for SSL 3.0, 3 for TLS 1.2, and 4 for TLS 1.3).

6. Update Firefox

  • Make sure you
#

you are using the latest version of Firefox.
7. Check Security Software
Temporarily disable your antivirus or firewall to see if they are interfering with the connection. Some security software intercepts HTTPS connections, which can cause this error.
8. Check System Date and Time
Ensure your computer's date and time are set correctly. Incorrect date and time settings can cause SSL/TLS handshake failures.
9. Reset Network Settings
Reset your network settings or try using a different network.
10. Test with Another Browser
Test the website with another browser to determine if the issue is specific to Firefox.
If none of these solutions work, you may need to provide more details about the context in which you are encountering the error for further troubleshooting.

vocal basin
#

(this was contextualised in VC as ChatGPT response, if anyone else is re-reading this afterwards)

#

((mostly saying that for mods so that it's clear it's not rule 10))

silk dust
#

yes, now just have to restart

vocal basin
#

you can post chatgpt responses if you label them as such

#

you said it's ChatGPT in VC so it's fine

silk dust
#

lol ik

vocal basin
#

Powershell nowadays is the main way to do command line stuff on Windows

#

it's also supported on Linux (e.g. Ubuntu Server suggests to install it)

#

I'm planning to move off Ubuntu eventually
(idk if I want to stay on Debian-based distro even)

#

I might even end up using Alt Linux lmao

#

if software you're working on doesn't directly involve visual stuff, you can use a remote Linux machine for that

vocal basin
verbal zenith
vocal basin
#

line 25 missing style comma
@verbal zenith is RR not showing formatting issues or is it just busy arguing about errors?

#

Rust Rover

#

(rustfmt says there should be a comma)

#

you can configure it

fossil mantle
#

@verbal zenith the programming language you make is compiled or interpreted ?

vocal basin
#

(those are lines)

#

oh, wait, not those vertical tabs

#

I thought about the character lol

#

@cedar mason I use it when I need light theme because for whatever reason I don't have it configured to dark theme
somehow

#

so, basically, "I use it accidentally"

#

oh and also second browser that doesn't take ages to start up like firefox when it detects an update

#

(on default settings)

#

I'm sure firefox supports installing update during runtime
but I can't be bothered searching for the option

#

Brave is cringe

#

I'd just rather not touch that

stark river
#

wats wrong with Brave?

vocal basin
#

monetarily cringe, including how they block ads

cedar mason
stark river
#

well i use ff as my main..
brave is just there as a chrome alt for web testing

plucky karma
#

can someone help me set up visudal studio code im new to coding and need to use python for my internship, I just joined the server so i cant speak in VC

vocal basin
#

chromium and node use the same js engine,
therefore another reason: people want js to run the same way there and there

stark river
#

sorry i use vim

vocal basin
stark river
#

also there is no setting up in vs code.. everything is ootb

plucky karma
#

whats ootb

vocal basin
#

out of the box

plucky karma
#

okay

vocal basin
#

for very later, "magic spell" to fix venv sometimes: ctrl+shift+p select interpreter

#

(VSC doesn't auto-activate venv as eagerly as it should)

#

((even when it itself created it))

#

(((how)))

plucky karma
stark river
#

activate the venv before calling vscode

vocal basin
#

if you don't have a venv, you don't need that thing yet

plucky karma
#

oh okay

vocal basin
#

VSC has its own way of activating the venv

#

fun fact:
you can delete activate scripts and it'll still activate the venv

plucky karma
#

im confused

vocal basin
wise cargoBOT
#

Added in version 3.3.

Source code: Lib/venv/

The venv module supports creating lightweight “virtual environments”, each with their own independent set of Python packages installed in their site directories. A virtual environment is created on top of an existing Python installation, known as the virtual environment’s “base” Python, and may optionally be isolated from the packages in the base environment, so only those explicitly installed in the virtual environment are available.

When used from within a virtual environment, common installation tools such as pip will install Python packages into a virtual environment without needing to be told to do so explicitly.

A virtual environment is (amongst other things):

stark river
#

no. parrrate

plucky karma
vocal basin
#

sadly there is no way to make it work this way without deleting scripts I think

stark river
#

probably some cache thing

vocal basin
#

no

#

it, by default, copies the activation command to terminal

#

but, if it doesn't find a script, it decides to update env variables when starting a terminal instead

#

idk what PyCharm does in that case

#

last time I tried to use PyCharm's terminal and python console it was too broken

#

@verbal zenith used for scoping of unsafe and other invariant-sensitive state also

#

same in C++ and everywhere

#

C++ Core Guidelines talk a lot about invariants

#

tbf that's kind of a "point this to someone if they do dumb stuff with the language" document so repetition is for the best and to be expected

#

@cedar mason closer to sealed class than just class

#

(as in what Rust structs are)

#

homebrew is in Ruby too I think

verbal zenith
#

@vocal basin would it make sense to store a mutable reference to a vec so I can push all errors to it as I parse other files even?

#

Then store sources in some other mutable vec

vocal basin
open quiver
#

so its a dns spoofing

vocal basin
#

if you're not trying to make an iterator out of your parsing state

open quiver
#

ngx is fun

vocal basin
#

are you making it multi-threaded?

#

if you expect it, just use the first option

#

you can always replace Vec with a thread-okay queue

open quiver
#

@cedar mason did you ever watch mr robot

vocal basin
#

parsing files in parallel sounds reasonable

#

if there's many of them

verbal zenith
#

yeah it does

#

just seems like something not to think about atm

vocal basin
#

@cedar mason double ratchet?

cedar mason
verbal zenith
#

I'm more interested in how to make my error system more versatile

vocal basin
verbal zenith
#

Can you think of an API if you will that would be nice to use? Should I use a struct that stores an ariadne report?

vocal basin
#

oh I just thought about encryption thing

#

that limits replay attacks

vocal basin
#

and events themselves normally involve zero allocations to instantiate

#

(at least when they're repeated)

verbal zenith
#

Yeah I don't understand how that would work, any guides that speak on that?

vocal basin
#

(args field there is just a thing you can display)

cedar mason
rugged root
#

Please don't link stuff like this here

cedar mason
#

Why not?

rugged root
#

Because while it's important to discuss security, we prefer broad stroke conversation rather than "here's a full implementation on browser pen testing"

vocal basin
#

ease of mal-use

rugged root
#

We aren't the server for this kind of stuff

cedar mason
#

I'm not promoting anything with ill intend

#

I condem bad use

#

Hemlock you should know

rugged root
#

I'm not claiming you are. However we don't want something that's so easily abuseable just linked here.

verbal zenith
cedar mason
rugged root
#

This isn't a debate

cedar mason
#

I doubt any newbie will do anything bad

limpid vale
#

the issue is mostly links I believe

vocal basin
rugged root
#

Links and giving code examples or implementation details on how to do stuff like that

rugged root
#

Thank you

plucky karma
#

wait how do i create a virtual enviornmnt in vs

vocal basin
#

ctrl+shift+p create environment

plucky karma
#

i made a phython fial

vocal basin
#

it will be there somewhere

plucky karma
#

it has this

#

idk what to do

vocal basin
#

yes

#

hmm

vocal basin
plucky karma
vocal basin
frozen owl
#

YOOOOOOOOOO

#

MY EXAMS ARE OVER

vocal basin
stark river
#

life is an exam

vocal basin
#

spyder

limpid vale
#

spyder

plucky karma
#

now it says

#

to select either

#

venv or conda

frozen owl
#

@fossil timber what are you coding

#

spyder? jupyter?

plucky karma
vocal basin
#

first

plucky karma
#

now it says this

stark river
#

mersenne twister rng

#

go out drinking man

#

🍻

vocal basin
#

(3.12.4 one)

stark river
plucky karma
vocal basin
#

now create a new terminal

#

it should show a prefix in there

vocal basin
plucky karma
#

how do i do that

vocal basin
#

ctrl+`

#

` is to the left of 1

#

normally

#

@limpid vale VSC is in that intermediate class of something that's either an editor or an IDE depending on how you use it;
same goes for Fleet and (less) Sublime

plucky karma
#

okay i did it

limpid vale
vocal basin
#

what field

limpid vale
vocal basin
#

okay, I'm not cruel enough to ask why not just use matlab

#

VSC has Jupyter support, if that's something you're familiar with

plucky karma
#

thakn you

rugged root
#

JupyterLab is actually pretty good

vocal basin
#

it is quite powerful

#

that thing allows shell access

stark river
#

there is a jupyterhub?

rugged root
#

Hadn't heard of that either

vocal basin
rugged root
#

Gotcha

vocal basin
#

like if you want to have ssh-like interface to your server but in web you just use that

#

but only shell itself

#

no port forwarding and other fun

#

because browser

plucky karma
#

what are these what do they mean

#

zsh

vocal basin
#

zsh is the default terminal shell on the computer (macbook, I guess?)

#

similar to bash

vocal basin
#

@cedar mason "you get to learn how to categorise stuff you don't care about, so you know how not to care about it better"

limpid vale
#

lmao

cedar mason
#

Minister of health

limpid vale
cedar mason
vocal basin
stark river
#

which chin is real?

plucky karma
limpid vale
plucky karma
#

i had to use it for my course but idk how lowkey

limpid vale
#

But I suppose VsCODE being more versitile is nice

plucky karma
#

i only took intro to comp sci

#

im in HS

#

i used apache netbeans

limpid vale
limpid vale
#

nice

plucky karma
#

coding is the one thing im bad it

#

but im supposed to use multi agent AI crews to support market research for this internship

limpid vale
#

I'm pretty ok in my opinion

plucky karma
vocal basin
limpid vale
plucky karma
#

ohhhh

#

im in texas

#

US

limpid vale
#

Cool

vocal basin
#

" fortunately it's 'Texas, US', not 'Texas, Belarus' "

#

there is some meme about Texas and Belarus being connected, I don't even remember where it came from

plucky karma
#

i neber heard it

#

i just know

#

that ppl think texas is like

#

the most obnoxious place ever

frozen owl
#

i know this one

plucky karma
#

so my course says i need these things but idk what any of this is

#

so how do i do it

#

on VS code

spare galleon
# plucky karma

ewwwww use dark mode instead of light mode, my eyes ahhhhhhhhhhh

plucky karma
#

LMFAO

#

idk how to change it

#

ill figure out later

#

thats from juypter

vocal basin
#

jupyter regular or jupyterlab?

plucky karma
#

idk

open quiver
#

2

vocal basin
#

is there a theme config in this thing?

open quiver
#

is better

cedar mason
plucky karma
#

theres this

#

this is on my browser btw

stark river
#

that is just jupyter lab

plucky karma
#

i want to follow along but on VS code

vocal basin
#

does adding /lab to url open the lab thing in that case?

#

it does open it sometimes

vocal basin
vocal basin
plucky karma
#

this

vocal basin
plucky karma
#

it fully looks like this

vocal basin
#

I mean the jupyter page specifically

#

ah

plucky karma
#

how do i open it

vocal basin
#

so it's embedded, right?

plucky karma
#

specifically

#

yeah

#

its embedded

vocal basin
#

inside jupyter: file > save as/export (or something similar, I don't remember)

plucky karma
vocal basin
#

hmm

vocal basin
#

there should be an option to save .ipynb

plucky karma
#

when i do it it opens a about:blank

#

for some reason

vocal basin
#

when clicking "download as"?

plucky karma
#

yes

#

and selecting .ipynb

vocal basin
#

hmm

#

it doesn't save anything, right?

plucky karma
#

nope

vocal basin
#

I guess they're preventing it then

stark river
#

that cannot be

plucky karma
stark river
#

you can always save to disk

vocal basin
plucky karma
#

oh wait it worked

#

now

vocal basin
#

huh

#

good

plucky karma
#

it downloaded

#

now what do i do

vocal basin
#

yeah, now you can move the file to whatever directory you have opened in VSC

plucky karma
#

whats a directoryh

stark river
#

what is in your browser cannot be prevented from being saved to disk.. always

plucky karma
#

...

vocal basin
stark river
#

does it fold clothes?

vocal basin
#

catalog

#

what other synonyms are there

#

workspace, in case of VSC

vocal basin
#

just without the "create" step

plucky karma
#

ohhh

#

i did it

vocal basin
#

it also needs jupyter installed in venv

#
pip install jupyter

(in the terminal inside VSC where it shows (.venv))

plucky karma
#

okay

#

i did hta

#

i mean it just popped up and i clicked install

#

when i run this second line it errors

#

saying no module named autogen

stark river
#

pip install autogen

plucky karma
#

how do you do that

stark river
#

in the terminal (bottom)

plucky karma
#

here

#

?

vocal basin
#

in this

plucky karma
#

ohh

#

okay

#

what do i type

vocal basin
#

pip install autogen

plucky karma
#

woah

#

okay i did it and a bunch of shit like

#

appeared

#

i think it worked

#

wait so what is pip installing

#

i cna just say that

#

and it will isntall whatever

#

or what

stark river
#

this means there is no function by that name in that module

plucky karma
#

oh

stark river
#

could be a version issue pithink

#

some function was previously there and now is not

#

i'd check with the online version what packages they are using

plucky karma
stark river
#

there is a way to pip freeze the modules into a requirements.txt

plucky karma
#

im not sure what tha means

#

theses are the requirements

#

wait no

#

uh

stark river
#

these are the files in this directory

plucky karma
#

yeah

#

but i havent put that into VSC

#

idk.

stark river
#

trying to rem if there is a way to dl requirements.txt from a jupyter notebook

plucky karma
#

okay

stark river
#

try %pip freeze > requirements.txt in one of the cells inside the online jupyter lab that is in the browser

#

see if it creates a new file

plucky karma
#

wait where would i be able to do that

stark river
#

insert new cell

plucky karma
#

it says thsi

stark river
#

don't worry about it rn.. see if it created a new file in the files directory

plucky karma
#

oh yes i it did

#

requirements.txt

#

do i paste this into the terminal?

stark river
#

not in the terminal.. you can paste this into a file named requirements.txt .. or you can dl the file

stark river
#

oh autogen is a microsoft package not a pypi one

#

it was pip install pyautogen not autogen

plucky karma
#

so i just type that into terminal

stark river
#

type pip uninstall autogen and then pip install pyautogen

plucky karma
#

what was the shortcut for terminal again

#

i got it

stark river
#

the code should run the autogen part now .. it might give an error at openai package or dotenv package now

plucky karma
#

yeah it runs that but the conversable agent part doenst

stark river
#

you have to ask a mod @idle epoch

stark river
plucky karma
plucky karma
#

when i join vc it just rtc connections

stark river
#

it should work according to its docs

plucky karma
#

yeah

#

idk

#

what if i dont use juypter

#

do i rlly need it

#

for this course

#

cojuld i just follow along with python

stark river
#

if you know how to directly write a .py file instead of a .ipynb file then you don't need jupyter . you can directly write the script in python

plucky karma
#

i mean idk anything tbh

#

but like i thought juypter was a platform just for running ur program

#

and seeing the results beneath it

#

when i could just get the results in terminal

stark river
#

jupyter is only there to allow code to be run in separate cells.... you can copy past the code in python and run it all at once
but if it is not working in jupyter notebook it won't work in python
the issue is the missing packages

plucky karma
#

maybe removing juypter is gonna taek away some unnecessary complications

plucky karma
#

its the autogen problem

stark river
#

dl the requirements.txt file to your disk in the folder where your ipynb file is

#

my best guess it that you did not install to the virtual environment.. otherwise the package should have been picked up by the interpreter

idle epoch
#

Is it not possible to stream without a mod in the channel?

stark river
idle epoch
#

wow

plucky karma
#

but its just a .txt file

vocal basin
#

pip install -r requirements.txt iirc

stark river
#

pip uninstall autogen pyautogen; pip install -r requirements.txt

#

in the terminal

plucky karma
#

okay

vocal basin
#

I've just closed VSC and it freed up something like 30GB of memory (client side + server side)
I think this is a record for me so far

stark river
#

oh wait its zsh so it is pip uninstall autogen pyautogen && pip install -r requirements.txt... either way it should work

#

sounds like a memory leak

plucky karma
stark river
#

where did you save the requirements.txt

plucky karma
#

here

vocal basin
stark river
#

it has a diff filename.. rename it to requirements.txt

vocal basin
#

mv "requirements (1)".txt requirements.txt

plucky karma
#

i renamed it

stark river
#

pip uninstall autogen pyautogen && pip install -r requirements.txt

plucky karma
stark river
vocal basin
#

exaggerated by the use of Dev Containers

#

great technology
at a cost

stark river
# plucky karma

i dont know what that is.. i never had a requirements.txt that complicated...
try pip install pyautogen again

plucky karma
#

yea its a lot of shit in it

primal shadow
#

You can totally share a before and after iamge of the table

#

and we can see the results you are describing

cedar mason
#

What I use to learn (the BEST IT training): https://ntck.co/itprotv (30% off FOREVER) *affiliate link

🔎🔎FREE Python Lab: https://ntck.co/pyep1
Support the course: https://ntck.co/pythonrightnow

🔥🔥Join the NetworkChuck membership: https://ntck.co/Premium

**Sponsored by ITProTV

SUPPORT NETWORKCHUCK
---------------------------------------...

▶ Play video
primal shadow
#

@idle epoch !paste

idle epoch
#

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

primal shadow
#

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

cedar mason
idle epoch
primal shadow
#

@whole bear

cedar mason
idle epoch
primal shadow
idle epoch
primal shadow
cedar mason
#

Soc Analyst

plucky karma
#

does anyone know what this error is

primal shadow
#

I would prefer if you not share my personal information with others 🙂

#

officially

#

it is mine to sahre

mint knot
primal shadow
mint knot
primal shadow
#

@whole bear

mint knot
#

I just dragged out my discord 😭

primal shadow
idle epoch
#

VW Golf Plus

primal shadow
idle epoch
#

Function for determining the closest color

def closest_color(rgb, colors_rgb):
r, g, b = rgb
color_diffs = []
for color in colors_rgb:
cr, cg, cb = color
color_diff = sqrt((r - cr) ** 2 + (g - cg) ** 2 + (b - cb) ** 2)
color_diffs.append((color_diff, color))
return min(color_diffs)[1]

somber heath
#

@dawn cliff👋

somber heath
#

Mount Kosciuszko ( KOZ-ee-USS-koh; Ngarigo: Kunama Namadgi) is mainland Australia's tallest mountain, at 2,228 metres (7,310 ft) above sea level. It is located on the Main Range of the Snowy Mountains in Kosciuszko National Park, part of the Australian Alps National Parks and Reserves, in New South Wales, Australia, and is located west of Cracke...

#

@calm bay👋

calm bay
#

hello

#

cant talk rn

#

someones in my room

#

i have a question tho

primal shadow
#

You should ask it

somber heath
#

Yes, I rather suspect that's about to happen.

calm bay
#

id like to screen share and talk twhe they leave my room

primal shadow
#

and screen sharing you'd wanna talk to the mods, though they're not always available to enable a session

calm bay
#

nvm i just joined like 2 mins ago. ill have to be here for 3 days

primal shadow
#

You can always ask

calm bay
#

ill ask by typing

primal shadow
#

share screenshots here

calm bay
#

when i saw this on a lecture on python, i was wonder if i could do the same of using "str" function. I tried it my self and it surprisingly worked (second sc).

now im trying to find a way i can add x + y but i want to put the word "and" so the output can be oldest child's name **and ** youngest childs name when i use print(x+y)

#

i tried print(x + "and" y)

#

didnt work

vocal basin
#

str around input is unnecessary

stark river
#

print(f"{name_1} and {name_2}")

calm bay
#

thanks, i knew i could do that but i was trying to see if i could do that but using "+" function

#

i guess it doesnt work like that

vocal basin
#

name_1 + " and " + name_2

calm bay
#

just variables

#

e.e

vocal basin
#

only after getting extremely sleep deprived did I make the realisation that Python's print(f is visually reminiscent of C's printf

calm bay
#

thanks tho!

somber heath
# idle epoch # Function for determining the closest color def closest_color(rgb, colors_rgb):...
from PIL import Image
from scipy.spatial import KDTree
import numpy as np

def apply_palette_to_image(palette, image):
    arr = np.array(image)
    kdt = KDTree(palette)
    idx = kdt.query(arr)[1]
    return Image.fromarray(palette[idx])

image = Image.open(...)
palette = np.array([(0,0,0), (127, 127, 127), (255, 255, 255)]).astype(np.uint8)
result = apply_palette_to_image(palette, image)
result.show()```
calm bay
#

in wht cases would using that work?

stark river
#

input always returns a string type

calm bay
#

oh okay

#

i understand now. Thank you call for the help!, i appreciate it.

idle epoch
somber heath
idle epoch
#

What exactly did you change? 🙂

somber heath
#

Made something that can be applied to the whole image at once, vs per pixel.

idle epoch
#

Okay, thanks! Unfortunately I still have the same problem as before...

#

Are you familiar with such color algorithms?

somber heath
#

The closest colour not really being what you want?

#

You want to determine what the closest is by giving priority or greater weighting to some other criterion?

idle epoch
#

I have the feeling that the function that searches for the closest color from the excel list does not quite work... there are actually colors in the list that would match the skin tone much better...

#

Especially in this area

#

It's much too dark and too "reddish"

somber heath
#

Preprocess the image?

idle epoch
#

In what way?

#

Or is the "closest" color often not the right one?

somber heath
#

I'm not sure. Maybe playing around with the contrast.

#

Eliminate those colours from the palette, maybe.

#

Anything that's too close to a specified colour.

idle epoch
#

Yes, but I also want to turn other pictures into mosaics... so I thought the more colors the better...

primal shadow
wise cargoBOT
#

6. Do not post unapproved advertising.

onyx kestrel
#

is this where i get help with python?

#

I asked for help before but I can't find the chanel anymore

vocal basin
#

buying parts for the new server

#

12 cores, 24 threads, not arrived yet

cedar mason
#

Someone pinch me bruh

#

I got my dream job

#

FUCK YEAH

#

I'm gonna sleep now

#

But god damn

#

what a f$cking day

muted hinge
#

congrats! 🎉

cedar mason
#

I'm so amazed that maybe the world is not as dark this guy gave me actual hopes

#

Like

#

I'm still processing

#

How life changing

#

It was

#

Like i'm speechless

#

Aye cya guys ❤️

#

Finally my absolute sweat pain and tears paid off

#

Faith in humany from 0% to at least 10%

#

Only took me 8 years of hell

#

😄

cedar mason
primal shadow
#

Y'all's interview process is crazy fast. Here in the states they keep us guessing for weeks with either a follow up interview or just ghost.

#

Great gif too, fun movie

cedar mason
#

they should be praised

#

Ironacally the only "heroes" we praise are criminals

#

killers get flashy names and docus with attention

#

Meanwhile the actual heroes get not enough credit

#

Believe me i thought (almost) i was never gonna find someone who actually has a positive and revolutionary mindset

#

If you told me yesterday i would call you crazy

primal shadow
cedar mason
#

But as long as their is a world goverment that is just one big mafia we can only fight for a better future

#

And hope someone will put a bullet inside of every corrupt leader. a bullet is too peaceful & humane as a punishment for destroying the planet but ok.
If you give them the real deserving punishment like 20 years of pure agony & torture, then we are no different than these evil crapbags.

#

Until then

#

Let's pray

#

Amen

#

And goodnight 😄

whole bear
#

what is it enums in python?

primal shadow
whole bear
solar dust
#

@wise loom the haters

flint oracle
#

Hi

limber salmon
#

when i click on this function why does it lead me to the none variable?

#

@calm snow any idea

chrome forge
#

I got this error after running the program for a few minutes. I cannot run the program again.

vocal basin
#

!rule 5 seems like windows or whatever else is doing its job correctly

wise cargoBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

late spoke
#

welcome opal 😄

somber heath
#

@open quiver

#

Up here.

open quiver
#

wae ty ty

#

ah*

#

so his channel is scammer payback>

#

?*

late spoke
open quiver
#

ah

#

i used to watch those all the time

#

i remember doing the anydesk reverse control lol

#

drop a exe file take control of their system

#

good stuff

#

or a simple rubber ducky reversal

stark river
#

one death is a tragedy, one million deaths is a statistic - J. Stalin

open quiver
#

thats a genocide....

primal shadow
#

not always, genocide is targeting a specific group

#

COVID wasn't genocide

#

COVID was disease

open quiver
#

in the situation of stalin

#

genocide

#

in the case of covid

#

disease

#

@primal shadow join vc

primal shadow
#

Yea, the heatwave is killing us here too

#

humid?

open quiver
#

90 here

#

😮

stark river
#

😂 ... i always buy the warm clothes from the country i go to..
i figure they are more suited to their winter

#

don't buy from UP and expect it to be nice and warm like a lined jacket

#

38C is painful enough

open quiver
#

the thought train has left the station

#

choooo

#

choooooo

primal shadow
#

I think the thought is lost

gentle flint
stark river
#

tell that to stalin

peak depot
#

Happy midsummer eve to all Nordics!

open quiver
#

💅

#

so true

bold elm
#

@rapid chasm can you repeat? what you drink?

#

ahhh

bold elm
#

we drink only vodka in my country

open quiver
#

so true

#

💅

rapid chasm
open quiver
#

okay i must make break fast watch mr robot

#

im so close to finishing the show

#

try a nice margarita

#

#

oooooh

#

do red bull and vodka

#

put your brain on wired mode

bold elm
#

its the best duo

open quiver
#

^^^

#

also very dangerous

#

but eh

bold elm
#

and add ice to this

open quiver
#

live life on the edge

#

redbull and vodka sounds nice ngl

bold elm
#

XDDDDD guys where did you lernt polish bad words?

open quiver
#

so true

#

LMAO

bold elm
open quiver
#

doesnt meta do that

rapid chasm
open quiver
#

doesnt state farm do that

#

doesnt bank of america do that

bold elm
open quiver
#

doesnt cloudflare do that

#

oh yes

bold elm
#

i did this soo many times

open quiver
#

i will do that someday

bold elm
#

and im still alive

open quiver
#

i want vodka and redbull

#

pound out 40 leetcode questions like i did once

#

super fun

primal shadow
#

I prefer not drinking and driving instead

bold elm
#

i have vodka but i dont have redbull

#

any kind of juice is good with vodka

primal shadow
#

I would not do grapefruit

bold elm
#

its depends from your preferences

open quiver
#

sure why not