#voice-chat-text-0

1 messages Β· Page 196 of 1

grizzled ruin
#

im not allowed yet lol

hollow perch
#

okay thxx you
its just for server side its not very usefull to use venv every time 😦
but possible thx u πŸ‘

obsidian dragon
wise loom
hollow perch
obsidian dragon
#

@wise loomyeah what of it

#

all seperate

hollow perch
#

nice

#

2TB of games

devout bloom
#

someone know a good book to teach me how to write fat models and thinner views in django?

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @devout bloom until <t:1696601659:f> (10 minutes) (reason: mentions spam - sent 6 mentions).

The <@&831776746206265384> have been alerted for review.

somber heath
#

Whoopsy-doodle, you're a noodle! 😁

#

I'm also a noodle, but it's all LX's fault. 😁

#

@gritty karma πŸ‘‹

gritty karma
#

hi!

obsidian dragon
wind raptor
#

My latest pl/sql program:

DECLARE
    p_month NUMBER := 10;
    p_msg VARCHAR2(14);
    CURSOR c_pledges IS
    SELECT idpledge, iddonor, pledgeamt, paymonths
    FROM dd_pledge
    WHERE TO_CHAR(pledgedate, 'MM') = LPAD(TO_CHAR(p_month), 2, '0')
    ORDER BY paymonths;
BEGIN
    FOR p IN c_pledges LOOP
        IF (p.paymonths = 0) THEN
            p_msg := 'Lump Sum';
        ELSE
            p_msg := 'Monthly ** ' || TO_CHAR(p.paymonths);
        END IF;
        DBMS_OUTPUT.PUT_LINE(p.idpledge || ' - ' || p.iddonor || ' - ' || 
                             p.pledgeamt || ' - ' || p_msg);
    END LOOP;
END;
somber heath
#

Soup or glue? You decide!

alpine crow
#
ThriftBooks

Buy a cheap copy of Test-Driven Development with Python:... book by Harry Percival. By taking you through the development of a real web application from beginning to end, the second edition of this hands-on guide demonstrates the practical... Free Shipping on all orders over $15.

somber heath
#

@clear linden @rancid warren πŸ‘‹

#

Cures

rancid warren
#

hi

somber heath
#

Inexacto knife.

#

@mossy wing πŸ‘‹

mossy wing
#

hello

#

wassup

somber heath
#

@cosmic pendant πŸ‘‹

#

!voice @rancid warren

wise cargoBOT
#
Voice verification

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

lapis brook
#

hello

#

bro i started learning pythan πŸ™‚

#

but what i will do after i learned python

somber heath
#

Learn more Python.

#

Learn other languages.

#

Learn data structures and algorithms.

#

Find love, start a family, pay taxes, grow old, die.

#

Possibly not the first two.

willow gate
#

@somber heath hello

alpine crow
obsidian dragon
somber heath
#

Tree bushy.

obsidian socket
#

Hi everyone

I need to check the implementation of the keyword in but I did not find it in the Cpython repository can you guys help me with this please?

rugged root
#

Oh like in the CPython source code?

obsidian socket
rugged root
#

I can guide you to someone who might know.... #internals-and-peps would know better than I would

#

Especially for something so specific like that particular keyword

obsidian socket
grim parcel
#

I gotta wait about a day to talk in vcs

#

Yeah, that's one thing

#

I

#

Rats?

#

sure

#

haha

obsidian socket
crystal fox
grim parcel
#

I thought you had an infestation

#

I was going to recommend getting a BB rifle and a cat

crystal fox
rugged root
#

Rats (that you intende to have) are adorable

obsidian socket
crystal fox
grim parcel
#

quick fact: I'm new to python

vocal basin
rugged root
#

How it's implemented in CPython

#

Like the source code

crystal fox
vocal basin
#

like, no, that still makes no sense

#

there's syntax

#

and what it actually does

crystal fox
rugged root
#

But there's still something in CPython that tells how the code handles == and in, right?

somber heath
#

Star, Muriel.

rugged root
#

How does it handle the object comparison (I'm guessing that's what you're meaning, Davi, didn't mean to speak for you)

vocal basin
#

so, __contains__ handling is the question, right?

crystal fox
rugged root
#

I'm an idiot, I was thinking is

#

Ignore me

grim parcel
#

I remember the only time I saw a rat, it was killed and disposed right away

crystal fox
vocal basin
grim parcel
#

wow

crystal fox
grim parcel
#

Well, she's a rat

crystal fox
grim parcel
#

I could see that you're using a camera stand as a kind of table

somber heath
#

Tara

crystal fox
vocal basin
grim parcel
#

Thumb piano?

somber heath
#

Denatonium benzoate.

grim parcel
#

Ohhhhhh, I know it

crystal fox
grim parcel
#

I spray deoderant in my shoes

#

I used to chew those aglets as a kid

obsidian socket
# vocal basin what specific question do you have about the implementation?

This is the code for __contains__ for list obj

static int
list_contains(PyListObject *a, PyObject *el)
{
    PyObject *item;
    Py_ssize_t i;
    int cmp;

    for (i = 0, cmp = 0 ; cmp == 0 && i < Py_SIZE(a); ++i) {
        item = PyList_GET_ITEM(a, i);
        Py_INCREF(item);
        cmp = PyObject_RichCompareBool(item, el, Py_EQ);
        Py_DECREF(item);
    }
    return cmp;
}

so I want to see when using in how does it work?

grim parcel
#

Some kids chew on weirs too.

rugged root
woeful escarp
#

Sup guys just lost 500$ to gambling

#

At 16

#

That’s a lot of money

rugged root
#

My condolences

#

What kind of gambling?

woeful escarp
#

in game item

#

Lolll

#

Worth 500$ value

rugged root
#

Which game?

woeful escarp
#

Da Hood it’s not a known game but has its in game value and trading community

rugged root
#

And how do you feel about what happened?

woeful escarp
#

Honestly I gained experience

#

Not too sad about it

#

Just don’t gamble

#

πŸ‘

rugged root
#

That's a good takeaway. Or if you do gamble, make sure you're only gambling up to a certain limit, don't let yourself go over that, and if you win and can take out what you initially put in, do that

#

Then you can just keep playing on what else is still in

woeful escarp
#

Yeahhh

rugged root
#

Then it's just fun money

woeful escarp
#

The thing is

#

I couldn’t afford to lose the item

#

I wouldn’t really care if it was a smaller thing

rugged root
#

So was it you trying to go for a more expensive item or was it like put down x amount of money to potentially win that $500 item?

woeful escarp
#

It was item for item

#

He also had the same item as me

#

Same items were gambled

#

I was gonna have 2 of it

#

So double the value

rugged root
#

Live and learn

woeful escarp
#

Ya

rugged root
#

You know what they say

#

You need street smarts if you're in Da Hood

woeful escarp
#

Yes

rugged root
woeful escarp
#

Anyways

#

I’m just going to leave The game for a while

#

And try and learn python

#

Take a break from it

rugged root
#

Probably wise.

woeful escarp
#

To be fair

#

When I was trading I barely made profit

#

And it wasted so much of my time

#

I think it’s better to learn something for now

rugged root
#

Hence being here for Python?

woeful escarp
#

Yep

rugged root
#

Niiice

woeful escarp
#

Mostly trying to automate things using python

#

Actually

#

When I was trading

#

I thought of a pretty clever idea

#

I hired 2 developers to make me it

#

Basically what it does is it auto advertises what you are trading in servers you pick and comes with a auto reply feature so you don’t have to sit there sending your Ads

storm heath
#

hi guys

woeful escarp
#

Sup

rugged root
#

Still working on stuff like that or working on something different?

obsidian socket
#

Still looking for C code of in keyword πŸ˜‚

vocal basin
#

I think the most interesting __contains__ implementation would likely be for str

#

because others are trivial

#

media creation tool

#

for windows

#

there might be special live distributions, yeah

#

"* allegedly safe"

mortal sundial
#

what are the odds of me learning python while being full time in school?

crystal fox
mortal sundial
#

i just need the drive and i dont have it yet, i dont know how to get the drive to code like this/

vocal basin
#

Zebras seems to actually be in some level of endangerment

#

one of three species is endangered

#

GrΓ©vy's zebra, mountain zebra, plains zebra

wise loom
#

@vocal basin you never use VC ?

vocal basin
#

depends on the server

wise loom
vocal basin
#

I think I've done more singing in English VCs than talking

#

(it's simpler because it doesn't require thinking about what to say)

rugged root
#

Fair

#

Was going to say, I don't know if I've ever heard your voice. Wait I must have..

vocal basin
#

two recordings and one attempt to explain VS Code

#

basic or BASIC?

#

there are still places where BASIC (not VB) is taught and that's terrifying

rugged root
#

Wait where

vocal basin
#

"Regional" (non-Moscow/SPB) Russia has Pascal and BASIC as main languages for teaching at school

rugged root
#

You're safe, right? No risk of you being drafted or conscripted? Been worrying about my friends from over there

vocal basin
#

I don't know; it's never safe anyway

#

wait

#

wrong

#

pointer

#

^integer is pointer to integer

#

and ptr^ is derefencing ptr

#

slightly unusual

#

I doubt schools ever teach anything beyond functions

#

like
basic strings
basic array operations
basic functions
and nothing more

#

Pascal here is, like, Latin of PLs
dead language, but still gets taught

rugged root
wise loom
#

@vocal basin Are there actual pedagogical merits to Pascal as a teaching language?
I remember we also had Pascal until 6th grade or so.. after which the classes required C.
But actually both languages were accepted and used.

vocal basin
#

Pascal is dead, that's the problem

#

at least the non-extended one

wise loom
vocal basin
#

also supporting old systems is where knowing it might help

#

but rarely ever on new projects

wise loom
wise loom
vocal basin
#

I highly doubt that

vocal basin
#

what is quite popular here, is 1Π‘

#

(that's Cyrillic S)

scarlet halo
#

β€Όβ€Ό

#

what

wise loom
vocal basin
#

for a reason

#

as you can see, that's not English

wise loom
#

I have a small brain 🧠

vocal basin
#

this calls for so much violence

#

(misspell in the comments)

#

wait, wth is , , ,

#

is it setting arguments as defaults?

#

I have no idea

#

I've never programmed using this, and I hope I never have to

mighty robin
#

guys

#

<

rugged root
#

Sup?

mighty robin
#

i made something

#

with opencv

#

let me pick my phone

#

i cant stream

#

but let me screenshot

rugged root
#

@static quiver Hello

mighty robin
#

thumbs down

#

'polegar para baixo' means thumbs down

#

here in Brazil

#

also im using a famous shirt

#

from Vasco da Gama

#

πŸ™πŸ»

#

yeah

mortal sundial
#

nice

#

i want to make a photon laser

mighty robin
#

i want to make a sql bank

#

for hand gestures

mortal sundial
#

how about a mini gamma ray burst or maybe an anti matter bomb

rugged root
mighty robin
#

i truly need help

#

with sql

#

someone knows where i start ?

static quiver
wise loom
mighty robin
#

I want to make a database for hand gestures

#

libras etc

#

to use in my project

wise loom
mighty robin
#

i literally dont anything in SQL

#

dont know'

rugged root
#

This is a decent one for learning some SQL

mighty robin
#

thx πŸ™πŸ»

wise loom
#

here's a table:

|--------------|-------------|
| gesture_name | gesture_svg |
|--------------|-------------|
| ok           | <svg...     |
#

so in this table, you have a lot of hand gestures, on one column you have the label, and the other column is an SVG with the hand gesture

mighty robin
#

to blend information togheter?

wise loom
#

an emoji for all intents and purposes

mighty robin
#

oh i see

wise loom
#

@mighty robin is this what you need/mean?

mighty robin
#

yes

#

but i need gotta learn

#

to do some database problably

#

thx πŸ™πŸ»

wise loom
#

@mighty robin or.. use SQLite instead, that's the best database to start with

mighty robin
#

thx man

#

gotta go

#

πŸ™πŸ» πŸ‘πŸ»

rugged root
mortal sundial
heavy creek
vocal basin
#

but that's more for learning JS after another PL

rugged root
#

Well and confidently? Just Python. Ones that I could probably pick back up relatively quickly? Probably 3 (JavaScript/TypeScript, C#, Java/Kotlin).

#

But I language hop a lot

#

I like learning and trying different languages

heavy creek
#

oooo

#

I only know python 🫠

mortal sundial
rugged root
#

It's so versatile. If you want to do a quick project, someone has probably already made a library for it and it's been battle tested

heavy creek
rugged root
#

Good for simple web stuff (API wrappers and stuff), and it's just pleasant to write

rugged root
#

Slowly picking up the new slang from all the kids

heavy creek
#

Are you being sarcastic...

#

oh nvm

rugged root
#

Only the latter part

heavy creek
rugged root
#

But I legit didn't know the v thing

#

33

heavy creek
#

Makes sense

rugged root
#

I pretty much just spend time on here, not many other social platforms

#

Beyond that, it's usually just work, home, rinse, repeat

vocal basin
rugged root
#

God no

vocal basin
heavy creek
#

I understand nothing :)

hearty knot
#

some asm , c , some c++, apl , smalltalk, java, some lua, basic, pascal, some fortran, occam, csp, autoit, and Python ....

heavy creek
rugged root
#

Still coding

rugged root
#

I don't think I've met anyone who's written it at all

hearty knot
#

smalltalk for sure, we used it in at least to major job

#

smalltalk + CORBA

rugged root
#

Wait, you're how old?

#

If you don't mind me asking of course

hearty knot
#

lol s0 something

#

50 something

rugged root
#

Fair enough

heavy creek
vocal basin
rugged root
#

Very cool

#

I like having folks with that much experience around. Did you enjoy OCaml?

hearty knot
#

did u use d Smalltalk

rugged root
#

I've only read about it, looked at some example code

vocal basin
# vocal basin what I used Lua with: https://ocdoc.cil.li/

manually stuffing code into that minecraft mod is pain, so I made a primitive bundler,
that was quite useful for generally understanding how the language works and how to make build tools

and it was bootstrapped because why not and because it help validate it works correctly

hearty knot
#

this occam with csp on an array of transputers https://en.wikipedia.org/wiki/Occam_(programming_language)

occam is a programming language which is concurrent and builds on the communicating sequential processes (CSP) process algebra, and shares many of its features. It is named after philosopher William of Ockham after whom Occam's razor is named.
occam is an imperative procedural language (such as Pascal). It was developed by David May and others a...

rugged root
#

Ohhhhhhhh okay, I confused it with the other one

#

Gotcha

hearty knot
#

well object class metaclass language started with smalltalk ...

vocal basin
#

smalltalk also introduced the big confusion about object-orientation in general

#

so that now there's, like, hundreds of definitions of what OOP means

hearty knot
#

why ... smalltalk get in the light really with smalltalk 80

vocal basin
hearty knot
#

well , it cretae the first classification ...

vocal basin
#

Simula was slightly earlier with OOP-like concepts

hearty knot
#

at that time they not really other ..

#

anyway thanks to those people at ParkPlace to create it ! πŸ˜›

wise loom
#

@static quiver I've already done some cross-db joins.
Can you please state your problem in writing, let the people read and then we can discuss in the VC.

hearty knot
#

I used it also to create actor base in house language, and distributed actors language ...

rugged root
hearty knot
#

didnt use REST yet, only some SOAP - XML ....

vocal basin
# vocal basin so that now there's, like, hundreds of definitions of what OOP means

so, like, there's many roots what it is
1930s, lambda calculus: encapsulation and isolation, process equivalent to simple request-response messaging
1950s, Lisp: programmable syntax for the above
1960s, Lisp for real: first implementation
1960s, Simula: tools to create what we now commonly view as classes/objects
1970s, SmallTalk: messaging approach
1980s, Erlang: asynchronous messaging
1990s, Python/Java: what commonly today gets referred to as OOP

vocal basin
#

unlike SOAP (which is a protocol)

#

"REST" is also used as label for just "HTTP API", though that's obviously not accurate

vocal basin
#

actually, how much has the object model changed in Python from v1 to v2?

#

> Already present at this stage in development were classes with inheritance
I guess, not much

#

(1991)

hearty knot
wise loom
#

put'im on a PIP (performance improvement plan)

#

amazing idea

#

@flint hill you literally sound like you're on your phone

vocal basin
#

"web 0" can be used as a buzzword for "redo it all"
"web 1" can be used as a buzzword for "do it as it was intended initially"

#

idk if there's a use for "web -1"

#

unweb

#

don't:

def f(x):
    if 1 < x < 10:
        return True
    else:
        return False
#

do:

def f(x):
    return 1 < x < 10
#

there are only two objects of type bool

#

(id-wise too)

wise loom
#

is he driving? it sounds like he's in a car

hearty knot
#

in lazy field,, we ca have True, False, Maybe

wise loom
#

Here we go again, Backblaze

#

‼️

vocal basin
#

if the file is so large it crashes VS Code...

#

there might also be multiple problems

#

and you would still have to finally figure out what exactly is wrong

#

just following IDE suggestions is enough only for small or well-engineered system

rugged root
#

Back in a bit, have to set up a new computer

wise loom
cobalt cloak
#

hello

vocal basin
dry jasper
stuck furnace
#

Hey, what's everyone up to?

wise loom
#

you know?

#

you know..

stuck furnace
#

I'm not sure I do pithink

wise loom
stuck furnace
#

It means you own the assets minus the liabilities of the business.

#

And you get a say in how it's run.

whole bear
#

Hi yall

stuck furnace
#

Your mic is a bit quiet @wise loom

#

Ah, you fixed it.

rugged root
#

It's how is mic is

stuck furnace
#

What like, you've sold -1? πŸ˜„

#

Fair enough

rugged root
#

Exactly

rose mirage
#

Ok

rugged root
#

Ham sandwich for good measure

stuck furnace
#

brb

static quiver
rugged root
#

Hello everyone

mighty robin
#

im working rlly hard on this

hollow yacht
#

Can someone go to code/help to help me make a auto refresh system for a chat website?

rugged root
#

What're you stuck on with it?

hollow yacht
#

Yeah, i took a break for a couple of days

dusky lynx
#

@rugged root which library?

rugged root
#

Oh it was for something Jacob was working on

wise loom
#

@devout bloom look through the release notes for Django to find out which method took its place.
if that's not enough, just do git log -p on the Django Git repo..

dusky lynx
#

what was the api

rugged root
hollow yacht
rugged root
#

I can try in a moment. Trying to knock out some work stuff for a quick moment

hollow yacht
#

Ok, thank you

rugged root
#

I'm not super sure I'll be much help, though. It'd pretty much be me recommending using something like websockets so that it'll be watching the stream of the chat

#

And I haven't really implemented something like this before

static quiver
rugged tundra
#

@devout bloom write more code to get better at writing code?

Or write code, and then have someone review your code.

Or read code that is written better than your code.

devout bloom
#

the 3rd one

whole bear
#

Hello, I would like to learn how to program Python, what program to use and can someone teach me how to program?

rugged root
#

!resources I can get you set up with some resources. On our site, I personally recommend "A Byte of Python", which is free on its respective site. We also have links to some solid YouTube channels if that's more your jam.

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.

whole bear
#

Thanks

wise loom
dusky lynx
wise loom
terse needle
#
rugged root
#

Oo, neat

hearty knot
#

lol

#

someone told me about an object-Cobol !!!!

#

yes we are all object !

whole bear
#

any help

whole bear
ornate light
#

anyone who has experience in underwaterImage?

wise loom
rugged root
whole bear
whole bear
whole bear
ornate light
whole bear
#

it worked thanks

rugged root
#

Like where do you get the program?

whole bear
#

Where do I have to program python

#

@rugged root

mild quartz
#

4 is better lol

rugged root
#

Oh, it's giving you the link to get git

#

Just gotta go there to get the installer

whole bear
#

@rugged root What do I need to install to program with Python (I already have the latest Python)

wise loom
#

is this VC now taking the role of ChatGPT Customer Support?

rugged root
#

So there's a few good options. Visual Studio Code and PyCharm Community Edition are two common ones that get recommended (of those two I'd recommend Visual Studio Code). I personally use Sublime Text, others use emacs, vim, etc.

#

!resources There's also some that make it so you don't have to worry about learning the editor as much. We have some of those listed on our 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.

velvet tartan
whole bear
#

@rugged root I don't understand anything about programming, starting with where !resources??

rugged root
#

Oh fair, one sec

#

I'd start here. It'll talk you through picking an editor as well

wise loom
#

start with that

rugged root
#

The thing I linked coveres all that jam

#

Oh my god, it actually recommends vim and emacs

#

I do not recommend using either of those as a beginner

#

Go with that

wise loom
#

vscode is great yes

whole bear
rugged root
#

It's a great resource for learning Python.

#

It'll run you through the basics, like data types, programming flow, all kinds of stuff

whole bear
#

My objective are to create websites, games and understand programming

rugged root
#

That site is a good first step

#

And if you have questions or need particular things explained, we're always happy to help

whole bear
#

Recommends learning from websites or YouTube or both

rugged root
#

That's entirely preference. I don't learn very well from videos or courses so I prefer books or sites

#

Do what's best for your learning style

whole bear
#

Ok, I'm going to start learning to program and over time I'll try to create things

rugged root
#

Most important piece of advice I can give?

#

Have fun with it

#

That may sound corny, but there are lots of places that are just going to be a slog

#

So try to find ways to enjoy it

hearty knot
#

there i also many free python ebook

whole bear
#

Sorry but I don't know what books are

rugged root
#

Oh boy

hearty knot
#

lol

whole bear
#

E books

#

Are they digital books?

rugged root
#

Probably can get them as such

#

Yeah, so like PDFs or what have you

whole bear
#

Oh, OK

hearty knot
#

the paper is often no free but the "e"book , pdf or else are ...

whole bear
rugged root
#

Or Visual Studio Code or the various others out there

#

All those editors do is give you a place to type your code and then it can help check it for errors or give you a place to run it easily

#

.py files are just text files on their own

#

If you wanted to you could write code in notepad or Microsoft Word (don't do that. for the love of god don't do that)

whole bear
#

I go study now

#

what is a variable?
what is a control statement?
what is a loop?

#

I go study this

hearty knot
#

See you later !

dark ermine
#

How come I am still not verified to use voice chat?

stuck furnace
#

@dark ermine You should be able to verify now. If not, DM @rapid crown for help.

rugged tundra
#

@dark ermine mute

stuck furnace
#

@dark ermine I think your mic gain is very high

rugged tundra
#

please

stuck furnace
rugged tundra
dark ermine
#

is it good?

#

using a wireless headphone

stuck furnace
#

No noise coming through now

dark ermine
#

cool. I had my voice cranked to the Max.

whole bear
stuck furnace
alpine crow
#

!pypi pandas

wise cargoBOT
#

Powerful data structures for data analysis, time series, and statistics

dark ermine
#

filename = 'your_file.csv'
encoding = 'utf-8'  # Replace with the correct encoding of your CSV file

expected_row_count = 100  # Replace with the expected total number of rows in the file
actual_row_count = 0

with open(filename, 'r', encoding=encoding, errors='replace') as file:
    reader = csv.reader(file)
    for row in reader:
        # Process each row of the CSV file
        print(row)

        actual_row_count += 1

if actual_row_count == expected_row_count:
    print("The entire CSV file was read.")
else:
    print("The CSV file was not fully read. Expected:", expected_row_count, "Actual:", actual_row_count)```
vestal mason
#

can someone share their screen if you are coding

dark ermine
#

It is just opening a CSV file. My code only has the difference of being 287377 lines instead

#

I can

#

actually, I dont have permission.

#

Lol

vestal mason
#

yea, I read through it, what project are you working on?

dark ermine
#

its actually quite interesting, how do I stream here? I would share about it. Im doing server side vulnerabillity detection and this is the last bit I need to work out essentually to finish it up.

#

I actually can not get this to work using Pandas guys. WTF lol. CSV solves my problem but pandas gives me other errors.

#

That is the error I kept getting using CSV until I added the bit to change the encoding type if there was a problem.

whole bear
#

I've been watching videos about variables, if else, while and for

#

@rugged root And now

#

?

dark ermine
#

Good job

#
import pandas as pd

def parse_csv_with_pandas(filename):
    encodings = ['utf-8', 'utf-8-sig', 'latin-1', 'cp1252']
    error_lines = []

    for encoding in encodings:
        try:
            df = pd.read_csv(filename, encoding=encoding)
            return df
        except (UnicodeDecodeError, pd.errors.ParserError) as e:
            error_lines.append(e)

    print(f"Error: Unable to parse the file '{filename}' with any of the specified encodings.")
    print(f"Error lines: {error_lines}")
    return None

filename = 'allitems.csv'

# Parsing the CSV file
df = parse_csv_with_pandas(filename)

if df is not None:
    # Get the first three columns
    df = df.iloc[:, :3]

    # Filter rows where the 'Status' column is 'Entry'
    entry_df = df[df['Status'] == 'Entry']

    # Iterate over each row and print the desired information
    for index, row in entry_df.iterrows():
        csv_value = row['CVE']
        status_value = row['Status']
        description_value = row['Description']
        print(f"CSV: {csv_value}, Status: {status_value}, Description: {description_value}")

# End of script
print("End of script.")
#

I have finally slayed the beast. Working towards actually parsing now! it took forever to get pandas to work with this file.

whole bear
#

I've been watching videos about variables, if else, while and for

#

and now ?

dark ermine
#

If anyone else wants the file Im working with ill drop it here if its not to big

dark ermine
dark ermine
#

bringing in the good ol RE now haha. That will be the finishing touch.

Anyone have a reccomendation to using this script as an API?

lofty echo
#

Does anybody want to be friends dm me pls anyone

gentle egret
#

hello

#

I am

#

but not permissioned to speak lol

#

yea

somber heath
#

@mossy cradle πŸ‘‹

mossy cradle
#

@somber heath hey

somber heath
#

@pale shoal πŸ‘‹

pale shoal
#

what are you guys doing?

somber heath
#

@left drum πŸ‘‹

pale shoal
#

are you guys good at tkinter?

#

its a python module

somber heath
#

@hasty blaze πŸ‘‹

hasty blaze
#

hi guys

#

i have not permission

#

1 day left (

hasty blaze
#

omg

#

i have an issue and cant solve it

#

about weeks

somber heath
#

@limber oar πŸ‘‹

#

Also, I'd delete that.

#

I'm given to understand that webhook urls aren't something to be disclosed.

#

If there's any regeneration options for that, it'd be an idea to exercise them.

#

It may now be compromised.

whole bear
#

help?

obtuse cape
#

yeah I am here

#

but I can't talk πŸ˜„

#

because I am new babie

#

I am learning new python concepts πŸ˜„

#

pydantic v2

#

you need to know it πŸ˜„

#

do you know dataclasses?

#

no problem πŸ˜„

#

dataclasses is a class that is designed to only hold data values

#

it provides creating and managing classes in easy way

#

Pydantic is the most widely used data validation library for Python.

#

look that
class Delivery(BaseModel):
timestamp: datetime
dimensions: Tuple[int, int]

m = Delivery(timestamp='2020-01-02T03:04:05Z', dimensions=['10', '20'])
print(repr(m.timestamp))
#> datetime.datetime(2020, 1, 2, 3, 4, 5, tzinfo=TzInfo(UTC))
print(m.dimensions)
#> (10, 20)

#

it validates data

#

it really help to manage validations

#

sorry I can't understand you clearly

#

what are you doing?

#

yes right

#

I just joined the server yesterday

#

I should wait three days too

obtuse cape
#

I guess you don't need to use numpy

#

you can use pandas directly

#

can you summarize the topic @somber heath

#

oh thank you

fervent grail
# whole bear

Have you install pyinstaller ? No ? Then install it with using this command pip install pyinstaller if pip not recognized too then install it with this command py get-pip.py

whole bear
#

hi

#

I've studied more about variables, if else, while and for the next step?

fervent grail
#

yes ? learn about other keywords like def, class, and more
else learn it

whole bear
fervent grail
#

it's something like sigma, Have you learned sigma in math ?

#

but it not returns sum of numbers

#

it does indexing for you

whole bear
#

I saw a video he put it for index.....

#

But I didn't realize

waxen barn
#

Hey can someone help me I'm trying to boot up after I put new thermal paste onto my gpu and swamped my two ssds

fervent grail
#

watch here

x = ["Hello", 1, 5.34] # defines a list with "Hello", 1, 5.34 values
#       ^     ^    ^
# So these are defined in the x list

for i in x : # Does the indexing stuff but how ?
    print (i) # This will print Hello and 1 and 5.34 but not in the same line like
    # OUTPUT
    # Hello
    # 1
    # 5.34
#

@whole bear

#

also we have a function called with range name

#

you can do this with it

#
for i in range (5) : print (i)

OUTPUT :

0
1
2
3
4
#

or you can make factorial program with for loop and range function

num = 3
for i in range (1, num) : num *= i
print (num)
#

OUTPUT :

#

!e
num = 3
for i in range (1, num) : num *= i
print (num)

wise cargoBOT
#

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

6
fervent grail
#

@whole bear

#

example for range function

#

range (5) -> 0 1 2 3 4
range (1, 5) -> 1 2 3 4
range (50, 500) 50 51 52 ... 499
range (10 + 1) -> 0 1 2 3 4 5 6 7 8 9 10

whole bear
#

Does range work for counting?

#

The print() command is for when I start the code it appears there what is written inside?

#

x = ["Hello", 1, 5.34] That's a variable, right?

#

i = item?

whole bear
#

I didn't understand the OUTPUT part

somber heath
#

@whole bear πŸ‘‹

dark ermine
#

If you have a list you can do for x in range(len(listvariable)):

whole bear
whole bear
somber heath
#

@mortal hull πŸ‘‹

mortal hull
#

whats up bro

#

i dont have permission to speak apparently

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.

mortal hull
#

okok

#

brb then

#

yeah I have to have more than 50 messages

#

and I've only been here for 1 day I think

#

so I'll see you guys in a couple days lol

woeful escarp
#

Someone send me cat pfp

somber heath
#

@light sentinel πŸ‘‹

light sentinel
#

man vc restrictions are quite harsh

#

fair, I never understood how people get satisfaction from that..

#

I agree.
I dont know why they couldnt find another server to do that in.
Out of all servers they have access to, why the Python Dev server?

#

Hear me out, they could just make every person that joins, have to answer a leetcode question before they can join VC?

woeful escarp
#

Is discord js better then py?

#

For bots

#

@light sentinel

somber heath
light sentinel
somber heath
#

You may encounter Python boas here.

#

...bias.

#

Actual typo.

#

@crystal hemlock πŸ‘‹

crystal hemlock
#

Hi

somber heath
#

@pure granite πŸ‘‹

pure granite
#

hi

light sentinel
#

@somber heath what do you think is the most elegant way to simulate 3D physics in python?
I have been searching for a good programmatic library, so far I have only found some third party projects like PyPhysX.

#

yeah I have heard of him before, most of that stuff dosnt have source code.
Usually thats just poc which demonstrate feasibility.
I have tried writing something similar and ended with some..... questionable results to say the least.

somber heath
#

@viscid dragon πŸ‘‹

viscid dragon
#

Hello there

light sentinel
#

you know what they say 'To build a physics engine, you have to first start with the universe'

viscid dragon
#

Did I do smth wrong? I am muted

light sentinel
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.

viscid dragon
#

okay thank you

#

That's a good solution

somber heath
#

@misty ermine πŸ‘‹

viscid dragon
#

Okay, have a good day

light sentinel
#

I would just parse the CVS into json then work with it that way.

#

I just preload it into ram then read from the variable.

#

instead of calling read and parse on the json each time

#

years of HOF's with no real world use for going higher then callbacks.. gotta love it.

#

anyways, @somber heath, @dark ermine I have to go, I hope you guys have a great day!

somber heath
#

@whole bear πŸ‘‹

dark ermine
somber heath
#

@deep zodiac πŸ‘‹

#

@river mulch πŸ‘‹

river mulch
somber heath
#

@potent talon πŸ‘‹

river mulch
#

How is it sitting in a voice channel with only muted people?

#

Yeah... and I suppose it would also help if we had the permission to speak in the first place haha

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.

river mulch
#

!voice

#

That doesn't seem to have a whole lot of effect...

#

Yes, reading has never been my strongest skill, thank you.

#

Nooo, I need more messages.

#

Okay, I've got 47 messages sent in this server.

#

I can do this...

#

With just one more....

#

Message.

#

But this is not the end of the journey, now it's time to get the sound working on Linux again.

devout tapir
#

@dark ermine what about HackTheBox and TryHackMe? have u tried?

#

yeah

#

whats your rank?

#

@dark ermine

#

yeah i have rank 2 on HTB and rank 8/9 on THM

#

yeah no perms to vc

#

how?

river mulch
#

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

river mulch
#

I think all the information is in the linked channel.

devout tapir
#

hmm fair enough

#

any of u use opencv?

dark ermine
#

Finally got only the CVE'Now for the fun of RE.

dark ermine
#

Gotta use RE to find these patterns within the descriptions

Firefox 1.5 before
Firefox 1.5.0.4 and earlier
< Firefox 1.5.0.4
whole bear
#

Hi

dark ermine
#

Hi

whole bear
#

I have a question

wise loom
whole bear
#

I have already studied the variables and what they told me to study first, what is the next step?

vocal basin
#

so I think those are expected to be learned at roughly the same learning step

wise loom
#

I agree with Alisa, the Official Tutorial is great

#

After the official tutorial, I recommend getting into the Debugging Book mentioned here #pedagogy message

#

Because 95% of the time spent writing programs is spent on debugging, isolating and fixing software defects.

vocal basin
#

as far as I understand, book is also good at showing that the "debugger" is not the only part to it

wise loom
whole bear
#

I would like to create a website what is the right step to try to create one

wise loom
vocal basin
#

first versions of the website would not involve Python, likely

wise loom
#

@whole bear you want to get a firm grip on the language and how to debug. this is the foundation.
everything else follows after that.

whole bear
#

Ok

vocal basin
#

HTML and Python can be learned separately
HTML/CSS are more declarative, so basic static websites wouldn't involve stuff like variables

#

one of the most comprehensive resources for HTML is MDN
but it's not exactly beginner-friendly

wise loom
#

the goal kindof changed mid-flight. initially gongaspt said "I want to learn programming and Python"
now it's "I want to make a website".

whole bear
#

I want to learn how to program and then when I know how to create a website

#

When I know how to program I will try to create things

#

But first I want to learn how to program

#

Then the rest

wise loom
#

well.. that will take a while

whole bear
#

Slowly go far

vocal basin
#

one of general representations of how the learning might go

#

as with many such things, it's not linear

dark ermine
#

Python is not going to the platform you create your website in, just an FYI if you hadn't already figured that out.

dark ermine
#

Got a huge breakthrough going, now outputted will be versions that indicate the current version may be affected, listed in decending order.

dark ermine
#

Still fixing some things

dark ermine
#

Now they are listed in order from most relevant to my version to least. But all should be relevant.

#

I feel so accomplished for getting over all of that bullshit! Now I just have to connect this to my website.

dreamy siren
#

,0imfd

shy raft
#

whats happening

#

yeah

#

im not very good with files

#

what problem are u having

#

in what way is it failing

#

k

vital galleon
shy raft
#

hm

vital galleon
#

its a bit vague just the photo

#

I'm trying to do something similar to this

#

without python poetry

shy raft
#

i found something

vital galleon
nova stream
#

hello how do i get permissions to talk in voice chat

cosmic bison
#

You have to do voice verify

nova stream
#

how i do that?

cosmic bison
#

I think it's a command

#

but you have to have a certain number of messages first

somber heath
#

!voice @nova stream

wise cargoBOT
#
Voice verification

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

shy raft
#

im bacc

vocal basin
#

print calls and tracing do add side effects
but it wouldn't matter for most Python projects

#

(that all excluding side effects of str() calls and IO itself)

#

bcpl -> b -> c?

#

iirc

#

I just accepted that Ubuntu will break

#

and still use it

#

it might be a configuration issue

#

especially if you have multiple NICs

#

I also tried to use illumos, but it still has incomplete/undocumented docker support

#

(illumos is not linux)

shy raft
#

bro's language bout to be the next javascript

cosmic bison
vocal basin
#

"module support and typing, that's already far ahead of regular JS"

shy raft
#

According to bing ai

vocal basin
#

"the next Java" version 2

shy raft
#

you need a strong community of devs now

cosmic bison
# shy raft

very accurate. My 1's of users are very vocal

vocal basin
#

with both Java and JS then being quite "famous" for having to deal with legacy (and, according to many, poor initial design of the language)

#

"the world stopped at Java 8 and IE6"

shy raft
#

he figured it out pagman

#

"Every crappy workaround will lead to a crappy problem down the line."
-- A programmer

#

youve inspired me to work on my language again

#

will do

vocal basin
#

"abstract factories in JVM got so far that there is a programming language factory now"

shy raft
#

lmao

#

no way its that easy

vocal basin
#

it's JVM-only, if I understand correctly

#

it's very much for purpose-built languages, not general ones

shy raft
#

what

vocal basin
#

I think this is the most cursed screenshot from there

#

it's like Java+Wolfram Mathematica

shy raft
#

famous last words

#

tf

#

WHAT

#

πŸ’€ bro what

#

wow

#

lmao

zinc sinew
cosmic bison
shy raft
#

there are

#

wait guys

#

im actually a professional scratcher

#

like an actual expert

#

@zinc sinew

#

lol no

#

but

#

thats cap

#

are u doing ray tracing then?

zinc sinew
shy raft
#

ah ok

#

bro is using scratch to make an irl simulator

zinc sinew
#

yessir

shy raft
#

send ur scratch profile

zinc sinew
#

i dont have it publshed yet lol but ehre you go

shy raft
#

are u new?

#

@zinc sinew

set i to 0
repeat until <i = 10>
    change i by 1
zinc sinew
shy raft
#

yes

zinc sinew
shy raft
#

no

#

you can index the list

#

?

#
set i to 1
repeat until <i = len(list)>
    say (item i of list)
    change i by 1
shy raft
#

lol

zinc sinew
#

it wouldve been annoying to do this myself

#

or figure it all out

shy raft
#

i told you im a professional

#

😎

#

whats multithreading @cosmic bison

shy raft
#

im not fully sure the exact definition

cosmic bison
#

😎

shy raft
#

multiple scripts running at once?

cosmic bison
#

multiple threads

#

😎

shy raft
#

im going to assume that a thread is a piece of code

cosmic bison
#

I believe threads are something on the OS level? but yeah I think each thread runs some code. I've used it with sockets but I'm not 100% sure how it works under the hood

shy raft
#

maybe ill get in vc

#

make ill tak

#

wtf

#

discord

#

autocorrect

#

average programmer's experience:
OH I GOT IT
Wait no…
I REALLY GOT IT THIS TIME
NOO THERE'S ANOTHER BUG!?
I THINK I UNDERSTAND NOW
Why is this not working?
FINALLY, IT WORKS!
But why is it working? πŸ€”

zinc sinew
shy raft
#

hm

#

sophisticated

cosmic bison
#

πŸ€”

zinc sinew
#

and that your cpu can run multiple threads at once thus multithreading

shy raft
#

this is what happens when you have 50 different files

zinc sinew
shy raft
#

yes lmao

#

wait no oh god

#

that's 200 files

#

feelsStrongMan

#

bad_choice_amount = previous_bad_choices ^ previous_bad_choices

#

thats more accurate

#

@zinc sinew i hope ur using functions

#

πŸ’€

#

madness

#

LMFAO

#

ah yes

#

what

zinc sinew
#

i have functions for calculating displacement due to gravity and dot product

#

and all that physics jazz

#

rn im developing the projectile motion physics in a seperate project\

shy raft
#

@cosmic bison
The best language ever, Pingish:

# Print the factorial of a number given by the user 🐧
noot noot     
noot noot?    
nooting noot? 
    no noot             
    noot nooted * noots 
#

its so good right

#

lmao

cosmic bison
#

yes

#

the best

shy raft
#

noot

#

how long does this badge stay lol

cosmic bison
#

forever

shy raft
#

reh-jex

#

ree-jex

#

someone once called it ray-jex

#

can u write a simple program to show us how it works

#

@cosmic bison

#

lang

vocal basin
#

!d len

wise cargoBOT
#
len

len(s)```
Return the length (the number of items) of an object. The argument may be a sequence (such as a string, bytes, tuple, list, or range) or a collection (such as a dictionary, set, or frozen set).

**CPython implementation detail:** `len` raises [`OverflowError`](https://docs.python.org/3/library/exceptions.html#OverflowError) on lengths larger than [`sys.maxsize`](https://docs.python.org/3/library/sys.html#sys.maxsize), such as [`range(2 ** 100)`](https://docs.python.org/3/library/stdtypes.html#range).
vocal basin
#

!e

print(len([1, 2, 3, 4, 5]))
wise cargoBOT
#

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

5
winter plover
#

len(arr)

shy raft
#
print(len(lst))
vocal basin
#

and also append is not a function
that's important to learn

winter plover
#

@sand shuttle

vocal basin
#

still not sure how to !d list.append properly
iirc, list.append itself isn't there

shy raft
#

his homework was to use len()

vocal basin
#

I still don't know where it is

zinc sinew
#

womp womp

shy raft
shy raft
vocal basin
cosmic bison
vocal basin
#

"Haskell has significant newlines, so that supports the argument"

#

implicit as in no required parentheses? or full ruby-style?

winter plover
cosmic bison
winter plover
vocal basin
#

> ; is optional
"oh, so that what 'the next JavaScript' was about"

vocal basin
#

@cosmic bison looks like same error as earlier

#

missing ;

cosmic bison
#

but you can do double_number 10;

vocal basin
shy raft
vocal basin
#
a b c

is this a (b c) or (a b) c?

cosmic bison
#

a (b c)

vocal basin
#

haskell and most others use (a b) c

cosmic bison
shy raft
#

the compiler

#

or both

vocal basin
#
function arg1 arg2
cosmic bison
#

10 10

#

println

#

println 10

#

min (20, 20)

#

println double_number 10;

vocal basin
#

this has its place too, but it's rare

function2 function1 arg
cosmic bison
#

10;

vocal basin
#

more common representation of the same idea (multiple functions placed linearly) is structured in reverse with some delimeter:

arg | function1 | function2

arg |> function1 |> function2

arg >>= function1 >>= function2
cosmic bison
#

10 10;

shy raft
#

@cosmic bison how do i run the lang

vocal basin
#

stuff it into Docker
"it just worksℒ️"

#

fail reliably

#

I should undevelop features from my attempt at making a semi-esoteric language
to go back to simplicity

#

4 tokens; and whatever else are just variable names

/+-.

I should translate gcd I have implemented in the current version into this

#
/+_div.+_zq./+gcd.+_a.+_b.//-_a.///-_b./-_a.-_div.-second.-gcd./-_b./-_a.-_zq.-YC.+_gcd.
#

rough Python equivalent

def _gcd(_div, _zq):
    def gcd(_a, _b):
        if _zq(_a):
            return _b
        else:
            _, mod = _div(_b, _a)
            return gcd(mod, _a)
    return gcd
#

the way Haskell handles operators is that any binary operator (for example, +) has a function associated to it ((+))

#

a + b being equivalent to (+) a b

winter plover
#
func add(x, y){
  return x + y
}

3 add 3;
#

@outer zinc

outer zinc
#

@winter plover yeah thats what I had in mind

vocal basin
#
3 `add` 3

^ in Haskell

outer zinc
#

would be nice

vocal basin
#

to differentiate from add 3 3

#

these are same

1 + 2
(+) 1 2
(+ 2) 1
winter plover
#
func add(x, y){
  return x + y
}

3 add 3;

// How would this happen ?
3 add 3 add 5;
#

@outer zinc

vocal basin
#

operator precedence, requires extra configuration

outer zinc
#

then 3 add 8

vocal basin
#

(3 + 3) + 5 by regular rules

winter plover
#

would it have to be like a seperate parser for the function stuff lol

vocal basin
#

Haskell has a way to define both associativity and precedence

#

this formatting scares me

#

also, if you can bootstrap, you still need a way to build it from outside

winter plover
#

@outer zinc your echoing

vocal basin
somber heath
#

@whole bear πŸ‘‹

vocal basin
#

Rust uses Python to bootstrap

#

to build from no Rust

#

eh

#

current script

winter plover
vocal basin
#

first (zeroth?) not requiring Rust installed

vocal basin
#

std gets built three times

#

You almost never need to do this.

vocal basin
#

sizes for enums are difficult

#

(sizeof discriminant)+max(sizeof variant)
but that's not always true

#

yeah

shy raft
#

i run a website about sentinent art supplies woo

vocal basin
#

for C enums, that's just size of some integer big enough

#

in C, variants are just labels

#

not comprehensive labels

#

topologically sort dependencies
fail on loop

#

!d graphlib

wise cargoBOT
vocal basin
#

Python's TopologicalSorter even supports some level of asynchrony, I think