#voice-chat-text-0

1 messages · Page 53 of 1

somber heath
worthy token
#

def SquareRootFloor(beg, end, n):
ans_sqrt = n

while (beg <= end):
    mid = int(beg + (end - beg) / 2)
    print(f"beg : {beg} end : {end} mid : {mid}")

    if (mid * mid == n):
        return mid
    elif (mid * mid > n):
        end = mid - 1
    elif (mid == 1):
        return 0
    else:
        print(f"Store square root as mid ({mid}) ")
        ans_sqrt = mid
        beg = mid + 1
return ans_sqrt

def ft_sqrt(nb):
print(f"Finding square root of : {nb}")
sqrt_n = SquareRootFloor(1, nb, nb)
print("Output : " + str(sqrt_n) + "\n")

ft_sqrt(100)
ft_sqrt(36)
ft_sqrt(25)
ft_sqrt(5)
ft_sqrt(3)

wet token
#
def SquareRootFloor(beg, end, n):
    ans_sqrt = n

    while (beg <= end):
        mid = int(beg + (end - beg) / 2)
        print(f"beg : {beg} end : {end} mid : {mid}")

        if (mid * mid == n):
            return mid
        elif (mid * mid > n):
            end = mid - 1
        else:
            print(f"Store square root as mid ({mid}) ")
            ans_sqrt = mid
            beg = mid + 1
    return ans_sqrt

def ft_sqrt(nb):
    print(f"Finding square root of : {nb}")
    sqrt_n = SquareRootFloor(1, nb, nb)
    if(sqrt_n*sqrt_n==nb):
        print("Output : " + str(sqrt_n) + "\n")
    else:
        print("Output : " + str(0) + "\n")

ft_sqrt(100020001)
ft_sqrt(36)
ft_sqrt(25)
ft_sqrt(5)
ft_sqrt(3)
#

this was my solution

somber heath
#

@zinc terrace 👋

#

@devout goblet 👋

devout goblet
#

Hi

lucid blade
#

OPNSENSE

devout goblet
#

💯 lemon_swag

somber heath
#

👋

lucid blade
warped raft
#

hello @winged hinge

#

how are you doing

somber heath
#

@bold iron

bold iron
#

?

somber heath
bold iron
#

oh hello, thats fine

somber heath
#

@bold nova 👋

bold nova
#

what are you guys upto?

fiery bone
#

yep

bold nova
#

sure..

#

I was actually developing a bot in python

somber heath
bold nova
#

still working on

#

its' like for auto dming friends

fiery bone
fickle plaza
#

@somber heath

junior current
#

guh

whole bear
#

!voiceverify

#

hi

#

anyone here

whole bear
#

bruh

tulip plover
#

why do some function have double underscore and some don't

#

@ripe lantern

#

__init__()

#

init()

wise cargoBOT
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | hello
002 | This adds to every print: So cool
003 | This adds to every print: That's a very unique way to do that
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | hello
002 | Hey, there's a character in here
003 | Hey, there's a character in here
004 | Hey, there's a character in here
005 | Hey, there's a character in here
006 | Hey, there's a character in here
tulip plover
#
          def__init__(self):
wise cargoBOT
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Bed
002 | Couch
003 | Barstool
004 | Dresser
005 | Desk
somber heath
#

!e ```py
class MyInt(int):
def add(self, v):
print(self, v)
return 9001

a = MyInt(10)
b = 20
c = a + b
print(c)```

wise cargoBOT
#

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

001 | 10 20
002 | 9001
somber heath
#

!e py a = 1 + 2 b = (1).__add__(2) print(a) print(b)

wise cargoBOT
#

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

001 | 3
002 | 3
somber heath
#

!e ```py
class MyClass:
def getitem(self, key):
print(f'I am getitem. {key = }.')
return "get return"

def __setitem__(self, key, value):
    print(f'I am setitem. {key =}, {value = }.')

mc = MyClass()
a = mc['apple']
print(a)
mc['pear'] = 'orange'```

wise cargoBOT
#

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

001 | I am getitem. key = 'apple'.
002 | get return
003 | I am setitem. key ='pear', value = 'orange'.
somber heath
#
mc = MyClass()

mc['apple']
mc.__getitem__('apple')
MyClass.__getitem__(mc, 'apple')```
#
mc = MyClass()

mc['pear'] = 'orange'
mc.__setitem__('pear', 'orange')
MyClass.__setitem__(mc, 'pear', 'orange')```
#

!e ```py
class MyClass:
def init(self):
self.__a()

def __a(self):
    print('Hello, world.')

mc = MyClass()
mc.__a()```

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Hello, world.
002 | Traceback (most recent call last):
003 |   File "<string>", line 9, in <module>
004 | AttributeError: 'MyClass' object has no attribute '__a'
somber heath
#

!e ```py
class MyClass:
def init(self):
self.a()

def a(self):
    print('Hello, world.')

mc = MyClass()
mc.a()```

wise cargoBOT
#

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

001 | Hello, world.
002 | Hello, world.
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Hello, world.
002 | Hello, world.
somber heath
#

!e ```py
class MyClass:
def init(self):
self.__a()

def __a(self):
    print('Hello, world.')

mc = MyClass()
mc._MyClass__a()```

wise cargoBOT
#

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

001 | Hello, world.
002 | Hello, world.
somber heath
#

!e ```py
class MyClass:
def init(self):
self.v = 5
print(self.v)

mc = MyClass()
print(mc.v)```

wise cargoBOT
#

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

001 | 5
002 | 5
somber heath
#

!e ```py
class MyClass:
def init(self):
self.__v = 5
print(self.__v)

mc = MyClass()
print(mc.__v)```

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | 5
002 | Traceback (most recent call last):
003 |   File "<string>", line 7, in <module>
004 | AttributeError: 'MyClass' object has no attribute '__v'
tulip plover
#
    def __init__(self, first, last, pay):
        self.first = first
        self.last = last
        self.pay = pay
        self.email = first + '.' + last + '@company.com'
        ```
somber heath
#

!e ```py
class MyClass:
def init(self, obj):
self.v = obj

a = MyClass(5)
b = MyClass(10)
print(a.v)
print(b.v)```

wise cargoBOT
#

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

001 | 5
002 | 10
somber heath
#

@brisk meteor 👋

#

!e ```py
class Rocket:
def init(self, engine = None):
self.engine = engine

def has_engine(self):
    return isinstance(self.engine, Engine)

class Engine:
pass

a = Rocket()
b = Rocket(Engine())
print(a.has_engine())
print(b.has_engine())```

wise cargoBOT
#

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

001 | False
002 | True
somber heath
#

All o'y'all'd've.

azure rivet
#

:v

somber heath
#

All of you all would have.

azure rivet
#

Fun fact. I have 0 confidence in speaking which is why I TRY to contribute because it sucks having no confidence

somber heath
#

@neon raft 👋

neon raft
#

turns out i cant talk

#

cuz im not active enough

#

😭

somber heath
#

!e ```py
from dataclasses import dataclass

@dataclass
class Person:
name: str
age: int
hobby: str

people = [Person("Albert", 30, "Baking"), Person("Sally", 24, "Mechanical engineering"), Person("Charlie", 40, "Mathematics")]
print(people)```

wise cargoBOT
#

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

[Person(name='Albert', age=30, hobby='Baking'), Person(name='Sally', age=24, hobby='Mechanical engineering'), Person(name='Charlie', age=40, hobby='Mathematics')]
somber heath
#

!e ```py
class Person:
def init(self, name, age, hobby):
self.name = name
self.age = age
self.hobby = hobby

def __repr__(self):
    return f"{type(self).__name__}(name = '{self.name}', age = {self.age}, hobby = '{self.hobby}')"

people = [Person("Albert", 30, "Baking"), Person("Sally", 24, "Mechanical engineering"), Person("Charlie", 40, "Mathematics")]
print(people)```

wise cargoBOT
#

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

[Person(name = 'Albert', age = 30, hobby = 'Baking'), Person(name = 'Sally', age = 24, hobby = 'Mechanical engineering'), Person(name = 'Charlie', age = 40, hobby = 'Mathematics')]
somber heath
#

Rough equivalent.

#

The "ordinary" way of doing things.

#

So the dataclass decorator is making pretty much this kind of thing, plus more, but automatically.

#

and gives you nice options to specify what other methods it should create

#

Which I haven't used.

#

What's up?

#

That was voice convo related.

#

@white turret 👋

#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

somber heath
#

@sly moat 👋

sly moat
somber heath
#

Manual process. Not automatic.

#

@green fox Invest in a fidget spinner.

somber heath
#

You were fiddling with my delete button.

sly moat
somber heath
#

It's 50 messages after a certain date.

sick agate
#

Spread out across 30 minutes

somber heath
#

3 10 minute blocks.

sly moat
#

I am doing AI models 😄

somber heath
#

It's possible to leave and rejoin.

sly moat
#

I probably left and rejoined

somber heath
#

I expect it would. It might not.

sly moat
#

I have messages in this discord that go back to 2019

somber heath
#

The process won't be broken, you'll just be coming up against a subtlety of the implementation that isn't specified in the rules.

#

Or is.

sly moat
somber heath
#

Just keep chatting and trying.

#

Your funeral.

sly moat
#

So...... about that stuff and things

thick hamlet
#

that's the ticket

sly moat
#

Python stuff for sure

#

Cool snakes

thick hamlet
#

what sort of project are you working on @green fox?

#

what got you interested in starting?

sick agate
sly moat
#

I am building a language model to use in a game, realistic conversations, situational questions and responses, and AI generated events based on certain contexts

thick hamlet
#

cool

sly moat
#

I already got it done, just need to train it

thick hamlet
#

it is interesting

sick agate
#

In Internet networking, a private network is a computer network that uses a private address space of IP addresses. These addresses are commonly used for local area networks (LANs) in residential, office, and enterprise environments. Both the IPv4 and the IPv6 specifications define private IP address ranges.Private network addresses are not alloc...

thick hamlet
#

nothing at the moment, working on infra stuff right now

#

speaking of networking

sly moat
#

Eh... it's hard to describe, imagine a cross between, pokemon and darksouls, but with demons, lol....

#

One of the core components is there are no numerical values to guide your gameplay, no stats, no health bars, no damage counters, etc....

thick hamlet
#

just like in real life

sly moat
#

Game is being made in unreal 5, C++.

#

I am just using python with tensor flow to train my language model.

somber heath
#

@midnight agate I don't think you'd necessarily need to store every pixel position as seen or not. You can rely on the colours of the target image as to if you can go there or not.

sly moat
#

I got a great computer, but damn, training AI takes a lot of power

somber heath
#

Because you might have changed a colour on a previous branch of the exploration, so by the time you've encountered it again, it won't be the colour of the path you can travel.

#

Also, I don't know how leetcode is wanting you to structure and name things, but...

#

I don't like the camelCase and I don't like the def in def.

sly moat
thick hamlet
#

double case? I have never heard of that one

sly moat
#

I like to be different, so I make up my own rules 🤟

thick hamlet
#

as long as your fellow devs are okay with it

sly moat
#
double calculate(double n1, char op, double n2) {
if (op == '+') {return n1 + n2;} 
else if (op == '-') {return n1 - n2;} 
else if (op == '*') {return n1 * n2;} 
else if (op == '/') {return n1 / n2;} 
else {return 0;}
}

That is how I structure my code 😄

tulip plover
#

`

sly moat
#

Can't do that in python, I keep getting yelled at to indent

somber heath
#

@dense nebula 👋

sick agate
#

Plus the curly braces will throw things off 🙂

dense nebula
#

hello

#

is there a channel i can get networking help??

sly moat
thick hamlet
dense nebula
#

ahh ok thanks

sly moat
#

technically in C as long as everything stays in order in a linear path (left to right), you can make it look however you want, you can write the whole code on one line if you want

dense nebula
#

i feel out of place here lol these guys are programmers and i do this as a hobby

sick agate
#

It'

#

s only a hobby if you want it to be 🙂

#

I've met several "hobby" programmers I would trust to write code over "professionals". It's a false dichotomy

dense nebula
#

I'm a welding engineer and cwi but i have always been fascinated by networking and cyber security

peak juniper
#

Elon! Hi, Elon!

sly moat
dense nebula
#

i joined this discord to look for help using scapy in existing code ive written but found the answer from google lol

dense nebula
sly moat
dense nebula
thick hamlet
sly moat
dense nebula
dense nebula
#

yes chat gpt is dope

sly moat
dense nebula
#

ive asked it to make me an icmp scanner and it said it was illegal

somber heath
#

Illegal, perhaps, to use in an unauthorised fashion, but on a network you own, it's fine

dense nebula
#

i only test my projects on my own network or a friend's if they let me

foggy plover
#

(for now) lawyer me adds

somber heath
#

I mean, "Yeah, you pinged Google that one time. You're under arrest."

dense nebula
#

lollll

somber heath
#

Like, bugger off.

#

You know?

dense nebula
#

i saw a funny meme the other day about google after college kids learn about tracert ill try to find it

sly moat
#

Man I would like an A100 80gb for sure though

peak juniper
#

oooh tracert!

#

pathping

dense nebula
#

windows

#

used linux in the past and it wasnt my cup of tea

peak juniper
#

@dense nebula keep going

dense nebula
sly moat
sly moat
dense nebula
#

ive been banned from discords in the past just for talking about making a udp scanner

sly moat
dense nebula
#

3 or 4 years ago

trim nacelle
#

i have mute

#

don't have voice verif.

peak juniper
#

I, too, have permissions!

trim nacelle
#

i don't have 50 messages

dense nebula
sly moat
trim nacelle
#

sry i russian, and I few understand you saing

dense nebula
#

i dont not like it but i like the optimization windows has for some of my games compared to linux

trim nacelle
#

xd

peak juniper
#

@dense nebula agreed

dense nebula
#

what are yall's opinions on scapy??

peak juniper
#

on the gaming part

trim nacelle
#

i know how to verif.

#

just i don't have 50 message.

#

aaa, u delete the link

dense nebula
#

i have the same issue with python

#

pycharm*

#

well damn

trim nacelle
#

mans, i can I keep the bot online for free, on github. I heard there was a way.

dense nebula
#

i kind of just stumbled on python because i was tired of getting ddos on xbox and i wanted to learn more about botnets and methods and then i stumbled onto networking and sniffing

#

xbox

trim nacelle
#

how u get ddos on xbox?

#

at that here python? @dense nebula

#

sniffing? what it is?

sick agate
trim nacelle
#

in russia, we saing - baRRRbi

dense nebula
#

google wildin

#

have yall done ai learning??

trim nacelle
#

it's English language?

#

so fast

#

it's eminem?

dense nebula
trim nacelle
#

i want stand bot on vds server, cost ~1$

#

in russian it's good price

#

server have low cpu, but it's no problem for my project, it have 3 command

#

xd

#

mans go hypixel

#

i want

#

i think @lucid blade make hack for roblox

dense nebula
#

cheat devs are scum of the earth

trim nacelle
dense nebula
#

ruins the game for everyone else

trim nacelle
#

it's don't ruin for other player

#

s

dense nebula
#

roblox is muliplayer

#

i understand for single player but multiplayer is scummy

trim nacelle
dense nebula
#

windows 11 is hot trash lol but they keep saying that it is better than 10

dense nebula
trim nacelle
dense nebula
trim nacelle
#

how a cheater can interfere with roblox

#

i use translator, sry for english

dense nebula
#

aimbot walling etc

dense nebula
#

ight im gonna go play some tf2 before going to sleep fun talk gents, goodnight

trim nacelle
trim nacelle
#

mans we reading it's chat?

#

i trying joking

#

okeyy, let's goo

#

i have a voice

#

Squidward

lucid blade
sick agate
fickle plaza
#

could any of yall help me, im trying to save some things to a config.json but its not saving

fickle plaza
sick agate
#

Post there, I'll take a look

fickle plaza
sick agate
#

Rob Joyce, Chief, Tailored Access Operations, National Security Agency

From his role as the Chief of NSA's Tailored Access Operation, home of the hackers at NSA, Mr. Joyce will talk about the security practices and capabilities that most effectively frustrate people seeking to exploit networks.

A transcript of this talk is available:
https://w...

▶ Play video
lucid blade
opaque pilot
#

i can't use my mic

#

bruh

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.

opaque pilot
#

!voice

lucid blade
#

there are things you must do 🙂

#

to be 'one of us'

opaque pilot
#

i dont have 50 messages

#

bruh

sick agate
lucid blade
sharp urchin
#

agree

lucid blade
alpine moon
foggy plover
#

they're not voice verified

#

check voice-verification for more information

winged hinge
#

hello @stray niche

stray niche
winged hinge
stray niche
winged hinge
# stray niche Why no

I mean whoever named us as humans, how did they/he/she/whatever know that we are humans, not something else?

#

this is pure sus

stray niche
narrow salmon
# winged hinge why are we called human?

Allow me to nerd out for a second.

Human was first recorded in the mid 13th century, and owes its existence to the Middle French "humain" which means “of or belonging to man.” That word, in turn, comes from the Latin humanus, thought to be a hybrid relative of homo, meaning “man,” and humus, meaning “earth.”

gentle flint
somber heath
#

@worldly oriole 👋

worldly oriole
#

loool thats one fked up company 😉

rugged root
#

Going to be relatively absent today

worldly oriole
#

Do anyof you guys know how to market a SaaS I made 😭

rugged root
#

One of the DMS databases is missing like..... everything

worldly oriole
#

I need help in markettttinnn

rugged root
#

Yo

#

How's it going

#

@serene glade I am

#

Just can't do the speaky talk

serene glade
#

Sounds good

worldly oriole
#

moon

rugged root
#

@whole bear Sup

#

Nuclear Fishing

#

Not to be confused with Nuclear Phishing

worldly oriole
#

lool

rugged root
#

If by genetic diversity you mean cancer, then yes

somber heath
#

In the same way that a hammer can be used to introduce variety in a collection of marbles.

rugged root
#

On the plus side to all this database bullshit, I get to use symlinks

#

Whee

somber heath
#

It's like being shot with a lot of very tiny, very powerful shotguns aimed at your dna.

#

I shan't shame.

rugged root
#

Mmm.... heated plastic

#

@somber heath Hard-light systems?

#

Arnold Rimmer from Red Dwarf

#

Ah, okay

#

So good

#

Sounds like Kah-vul

#

Was gonna say

#

Throned god emperor would be boring as shit

#

Yep, he's just there

#

Sitting

#

Most recent I can think of is Inquisitor?

#

Eh

#

If you're dealing with the beings of Chaos

#

You're going to have one hell of a fight

#

Or a fuck ton of Orks

somber heath
#

@warm copper 👋

rugged root
#

Space Marines need side mirrors

#

Like how the hell do they see behind them

warm copper
rugged root
#

Nope

#

Yep

#

It's such Mary Sue bs

#

It's going to be terrible

#

They're here

#

Have you guys seen.... I think it's "God Emperor has text to speech"?

#

No

#

Their name hasn't changed

#

It's a youtube series

#

TtS

somber heath
#

@whole bear 👋

rugged root
#

Yo, NVR

#

No no, Tech

whole bear
rugged root
#

There's a youtube series

#

It's a parody

#

To the tune of Labomba
🎶 La-la-botamy 🎶

#

The US had and then lost JFK's brain

#

Genuinely

#

Degrades it

#

FOSS sauce

#

Sauce files

#

I mean why would they have to care

#

They don't respect the interviewer

#

I do that anyway by just grabbing shit from the drawers and closet

#

Eh

#

If it's an interview from home

#

They'd certainly have a more complex conference room or something

#

@mild quartz Yo

#

How dangles it

mild quartz
#

yooo

#

walking the dog

rugged root
#

Nice

lavish rover
#

Still no luck with your office, hemlock?

somber heath
#

!e py import random wardrobe = 'briefs', 'jock', 'thong', 'boxers', 'jeans', 'trackpants', 'shorts', 'socks', 'shoes', 'gumboots', 'sandals', 'flip-flops', 'shirt', 'jumper', 'singlet', 'vest', 'cap', 'wide-brimmed hat', 'sunglasses' what_to_wear = random.choices(wardrobe, k = 5) print(what_to_wear)

wise cargoBOT
#

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

['cap', 'trackpants', 'jock', 'trackpants', 'briefs']
quasi condor
#

the ol double trackpants fit

#

(random.sample is for non-replacement)

somber heath
#

random.choices was deliberately chosen.

#

Because if Mark Zuckerberg can turn up in nothing but several hats, a vest and gumboots, then we can all achieve our dreams.

quasi condor
#

I thought it might have been - I think double flip-flops is a very Zuck look

#

but I always get sample and choices mixed up

somber heath
#

"Hm. It seems like a multiple pairs of shoes day, again. Time to get creative."

#

Hugo Weaving, in case anyone was unaware.

ruby cypress
#

On a page Im trying to automate a click using selenium, bs4, requests and it literally cant see it on the page even tho ive used find_elements(.by, xpath)

rugged root
#

Send good vibes my way, plx

#

Hoping to god that I don't need gigs and gigs of data files from our backup

#

Thanks

#

Different chicken breeds maybe

#

Wait, isn't there a breed of chicken that lays black eggs?

#

And the chicken itself is like... fully black

#

Ah right, but the eggs aren't

#

Right right

#

I knew there was some quirk

#

Huh

rugged root
quasi condor
acoustic sable
#

an digital image it's just the pixels with the a number?

#

like it have 1m pixels and each one has a number of 0 - 255

#

or something lke that?

rugged root
#

Most basic that you'll commonly see are RGB values, so 3 ints from 0 to 255

acoustic sable
#

I'm asking that befcause when I open the iamge with .txt it's not numbers, it's a bunch of weird characters

rugged root
#

(if memory serves)

#

They aren't stored in plaintext

acoustic sable
#

for security purposes?

rugged root
#

For size savings

#

Also depends on the file format

#

JPG is going to be a binary since it's compressed and what not

#

BMP is plaintext, however

#

PNG will also be a binary since it's also compressed, but compared to JPGs, it's lossless

#

You sacrifice a bit of file size for maintained image quality

#

@whole bear That's what places like here and classes offer

#

Can't do everything on your own

#

There will always be parts that will trip you up

amber raptor
rugged root
#

Fair

#

@serene glade Later brother

serene glade
#

Later it was good seeing you again

rugged root
#

Always

#

This is going to be a fun day. All I've had for breakfast was a huge cup of coffee, a handful of popcorn and a little cup of pears

#

LET'S DO THIS SHIT

lavish rover
#

Better than what I had which is a cliff bar

#

At least you had fruits

rugged root
#

I'd kill for a Cliff bar right now

lavish rover
#

That's a bit extreme, I'm sure you could get one without any killing

rugged root
#

Meh

#

"On the streets"?

#

That's... weird

#

And a true sign of desperation

#

@stray niche Yo

stray niche
#

Yooo

#

Its so weird to see this icon for the server

#

got so used to the Christmas tree one

lavish rover
#

Looks fine albeit a little verbose / perhaps overengineered

stray niche
#

The youtube video guy?

#

Hi @lavish rover

lavish rover
#

I'd say the set/get functions are not necessary, pretty self documenting anyway

#

Why use a generator when you're going to .extend() anyway, no point of laziness, might as well return a list

rugged root
rugged root
#

So how're you, Sammy?

stray niche
#

at this point in time, confused about something

#

somthing smol

rugged root
#

?

stray niche
stray niche
# rugged root ?

I start volunteering somewhere assuming I'd get to work with a friend who works there, but apparently I wont. figuring out the dynamics

rugged root
#

Ah, gotcha. And I'm okay, just trying to fix a huge database issue that happened when I had to update them on Friday

#

I know how to fix it, just waiting on the files

rugged root
#

@winged hinge Whatcha working on

#

It's going to take quite a while. It's ~115 GB worth of files

stray niche
rugged root
#

Clearing out things on my rig to make sure I have the space to accommodate it

rugged root
#

Not really, will when I get the chance

stray niche
#

find the chance

rugged root
#

@winged hinge What is it you're wanting to stream

#

Sup Maro

#

I hear you

#

Yeah, it's just quiet @midnight agate

#

Okies

#

Sure sure

#

Gonna see what Maro is working on

stray niche
#

i also come

#

@winged hinge you here?

winged hinge
#

shiii*, this whole time I was checking the #off-topic-lounge-text channel and also I got no notifications 😢

I am setting up a service backend for my org, @rugged root

Yups I am here now lol @stray niche

sorry I missed you guys texts :(

winged hinge
#

yeah I was not paying much attention though my bad

winged hinge
#

@stray niche whatchu doin?

stray niche
gentle flint
sharp urchin
#

js?

gentle flint
#

ye he said so

sharp urchin
#

u left cybersecurity job?

#

what do you work as?

#

if i may ask...

#

@half echo are you a student still?

rugged root
#

Sup

sharp urchin
#

like your unis in US?

rugged root
#

Yep

#

Eh

#

Not wholly different than state BS here in the US

#

Regarding the different governments

#

300 month is not livable

sharp urchin
#

agree

#

its just for an industrial experience

rugged root
#

Interesting

#

They are

#

Herro

#

Much Canada, such wow

sweet lodge
#

Hi Hemlock

rugged root
#

Yo

sharp urchin
#

does it matter to get a bachelors degree from a tier 1 uni(in terms of placements??)

rugged root
#

High as balls cost of living in Cali, though

sharp urchin
#

just a quick question..

rugged root
#

Oh right

#

Let him finish

#

High profile or fancy Uni's won't really matter in terms of Bach

#

Depends on the programs

#

There's lots of exchange programs and what not

#

Both

#

Again, both

#

Situation dependent, field dependent, location dependent, etc.

#

Yep

#

Create and finish projects that provide value to other people
That's a high bar, honestly. Everybody and their dog are told to do that. There's a glut of people trying to do that

#

"Splunk"?

#

The hell's a Splunk

#

Yeah

#

Really? A prior job can also pay for your Master's

#

Those two things are not mutually exclusive

#

Shit, we tell people these things daily

sharp urchin
#

data science afteer ms in cs?

rugged root
#

Either

sharp urchin
#

all i want is a good job i guess

rugged root
#

?

#

Astrologists?

#

Honestly Fred's just giving the practical advice

old heart
#

do you think with all the layoffs, that CS professionals will find adequate pay in industries other than software dev; ie manufacturing, etc

rugged root
#

More generalistic

rugged root
#

For now

sharp urchin
#

wait isnt the tech market good in US?

rugged root
#

For now

old heart
#

my goodness, I'm underpayed or need to get better at leetcode 😛

rugged root
#

CS feels like it's the new Dr. when it comes to going to a degree to make the big bucks

#

People see it, they start gravitating, the pool becomes diluted

old heart
#

I've been a field tech engineer who dabbles in code for 15 years, 100k is my all I'm good for.

sharp urchin
rugged root
#

Well again, big tech shouldn't be taken as the prediction of how every job will be

#

It's not the majority

#

Twitter doesn't make money

rugged root
#

All of these things can be answered with "depends", unfortunately

#

PFFF

#

Yeah right

old heart
#

I think SpaceX wins vs 5g, thoughts?

rugged root
#

You genuinely think that the US public is going to understand exactly what's happening there? Not to mention, those costs a so spread that yes, they'll feel it, but it's not going to be thousands and thousands suddenly

sharp urchin
gentle flint
#

you take what you can get

sharp urchin
#

after taking ML as a side subject in too

gentle flint
#

any job is good to start with

#

a degree is not a job guarantee

old heart
#

peons shall pay!

sharp urchin
#

cant deny that can we

gentle flint
#

experience is worth a whole lot more

old heart
#

thats all pretty relative to inflation

sharp urchin
old heart
#

twitter was dogs playing poker

rugged root
#

PF

#

Right?

gentle flint
#

depends

mild quartz
sharp urchin
rugged root
#

FAANG should not be confused with most jobs

sharp urchin
#

true

#

but isnt it the same for the rest ?

gentle flint
#

no

#

lol

#

I wish

mild quartz
#

this is top 1% of jobs

old heart
#

average taxpayer?

mild quartz
#

probably 30-50% get >100k though

rugged root
#

In fairness, good site

sharp urchin
mild quartz
#

70% > 75k

#

these are guesses

gentle flint
rugged root
#

You're right, it's .net

gentle flint
#

I audibly snorted

rugged root
#

At all

#

It's really not crucial at all

#

Twitter could crash and burn and it would change nothing

#

We existed before it, we will after

#

Businesses come and go

#

Sears was a HUGE player for decades and decades, carrying retail almost entirely on their back

#

They're essentially dead now

#

These things happen

old heart
#

sears lol

gentle flint
sharp urchin
#

aight then ty for the adv @half echo and others

#

appreciate it

gentle flint
#

do check it out

old heart
rugged root
#

That's amazing

rugged root
sharp urchin
#

imma head out...catch yall later

old heart
#

its like Winchester rifles for 30 cents 😛

willow light
#

Sears? I sleep.

KMart was where it was at.

rugged root
#

They had their own brand for shotguns

#

Had one

old heart
#

yikes lol

rugged root
#

Newspapers dominated but are now essentially dead

#

Twitter is a blink in time

#

No they haven't

willow light
old heart
#

but tech is parabolic currently

rugged root
#

My dad has worked in the newspaper industry for years

#

The industry is dying/is dead

#

They're struggling

#

Even in those cases

old heart
#

the thing about parabolas..

rugged root
#

Again, those are the big names

#

The majority of these papers are dead

willow light
#

is it parabolic or is it a tan(x) curve?

rugged root
#

Yep, and they come and go

old heart
rugged root
#

You haven't seen from the inside of the industry

old heart
#

its all about the dopamine

#

and the tracking cookies

#

evil geniuses

willow light
rugged root
#

The big companies that owned all these papers (there's like.... 3 or 4 big companies that own almost all of them) have suffered HUGE financial losses

gentle flint
rugged root
#

And they aren't going to be able to see the profits they saw

#

No there aren't

#

There aren't "a lot"

willow light
#

there are very few newspapers that still are functional as newspapers

old heart
#

anyone else flown much lately in north america

willow light
#

The local papers (other than the hippo) are now only useful for the Aldi weekly fliers.

old heart
#

Frederik you sound like that Youtube guy who mods pianos

willow light
#

I am on the server for that guy, and it ain't him

rugged root
#

@limber iron Why do you ask

old heart
#

there are no moral requirements

willow light
gentle flint
#

The Dead Sea (Hebrew: יַם הַמֶּלַח, Yam hamMelaḥ; Arabic: اَلْبَحْرُ الْمَيْتُ, Āl-Baḥrū l-Maytū), also known by other names, is a salt lake bordered by Jordan to the east and Israel and the West Bank to the west. It lies in the Jordan Rift Valley, and its main tributary is the Jordan River.
As of 2019, the lake's surface is 430.5 metres (1,412 ...

willow light
#

BRB heading to Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg

#

Not too far

#

The East Coast Greenway is cool. It's a continuous bike route from Northern Maine to Key West Florida

#

For long-distance biking, you do this:

molten pewter
#

im here

#

dammit

#

my microphone

#

hold on

sweet lodge
#

You're -5?
What happened to Taiwan?

molten pewter
#

yes microphone bad

#

resarting

#

anoki is in ov

#

ok

#

trying now

quasi condor
#

@molten pewter I'm afk for 6 minutes

dense nebula
#

hello guys

#

how is it going

hasty gate
#

ion know i just joined this

#

yeah used to

#

dont read that 😄

#

because why not ?

#

nice screen protector btw

#

allah forever

dense nebula
#

what are yall taking about lol

#

5 years of welding going on 4 of welding engineering

hasty gate
#

zzz

#

I can do better with my eyes closed

dense nebula
#

yeah i got my certifications through highschool and worked on some pipeline jobs and then went to college for welding engineering and metallurgy

hasty gate
#

i have 0 seconds of welding experience

dense nebula
#

if we are talking about highschool experience too its 9 years

#

thats why i stopped welding and got a degree was more money to be made

#

bachelors

#

labor unions

#

ahhh boiler makers are a special breed of welders, those guys are insane

#

oh yeah for sure

hasty gate
#

i suck at python 😦

dense nebula
#

i dont mind

#

goodbye

hasty gate
#

im so good at python 😄

dense nebula
hasty gate
#

(jk)

#

my friend help teach me but I dont completely understand everything, like functions and class, i just use a shit ton of " If "

dense nebula
#

as long as it works, you can always go back and make it more efficient

#

here is some code for a udp scanner i wrote, its not efficient but it works

somber heath
#

!d dict

wise cargoBOT
#

class dict(**kwargs)``````py

class dict(mapping, **kwargs)``````py

class dict(iterable, **kwargs)```
Return a new dictionary initialized from an optional positional argument and a possibly empty set of keyword arguments.

Dictionaries can be created by several means:

• Use a comma-separated list of `key: value` pairs within braces: `{'jack': 4098, 'sjoerd': 4127}` or `{4098: 'jack', 4127: 'sjoerd'}`

• Use a dict comprehension: `{}`, `{x: x ** 2 for x in range(10)}`

• Use the type constructor: `dict()`, `dict([('foo', 100), ('bar', 200)])`, `dict(foo=100, bar=200)`
somber heath
#

Have classes for dessert.

#

Actually, have functions for dessert.

#

Classes can be breakfast.

dense nebula
#

i like cake for desert personally

somber heath
#

Next morning's breakfast.

dense nebula
#

make sure i clog my arteries every morning with a face full of cake

somber heath
#

I once had icecream for breakfast while watching the sun rise. It is a fond memory.

#

Morning after a party.

willow light
#

Nothing like a hangover extra extra extra strong affogato

hasty gate
#

hello

somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

hasty gate
#

ive only been here for 1 day

#

not even

#

like 4 hours

#

uhh jus to learn some new things

#

i remember being in either this server or another coding server and i tested someones game that he made and it was really good

#

i was suprised

#

I tried coding some games well not really " games " but like snake game i made with the help of youtube videos and trying to understand how things work and gave me a good understanding of it but that was when i first started a year ago but i havnt done much since

#

it was a gui

#

with pygame

#

ive made a login form with a GUI but dont know what i used

#

but the only thing ive been doing know is just very basic games in the terminal like ive made a few like fake hacking games

somber heath
hasty gate
#

jesus this website is so bad'

#

it jumoped from 2003 to 2009

#

i give up

#

yk what

#

+1 day

#

im doing it

#

Day Adder
That's it, just days.

Birthday
1970-03-07
-1 DAY +1 DAY

#

I GOT IT

#

WITH THE DICE

somber heath
#

@left haven 👋

left haven
#

Hi

#

I guess I cant talk right from the start of joining

#

Would you guys be able to point me in the direction of where to go to ask for help with a python script i am making?

sick agate
#

You'll need to be voice verified

#

!voice

wise cargoBOT
#

Voice verification

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

somber heath
left haven
#

Im using pyTesseract to gather information from am image into a string. Im struggling on formatting that string for only the information I need

#

Exaple: String out puts: Model Name iPhone 14
AppleCare + Coverage Available .

I dont need to know infomation on AppleCare

#

correct

#

string output

#

yes, when I print(text) I get this
It will also be like this for iphone, ofc ill have to tweak for androids

#
    img = Image.open(imgpath)
    pytesseract.tesseract_cmd = tesseract
    text = pytesseract.image_to_string(img, config=myconfig)
    print(text)
#

the reason I making this script is bc at work, im taking inventory of the 100+ of tablet/phones we have instock, and need to pull info such as model name, Id, etc

#

trying to save myself some time

#

instead of Manuelly inputting it all into a spreadsheet

sick agate
#
for line in tesseract_string.split('\n'):
    if line.startswith('Model Name'):
        model = line.split('Model Name ')[1]
#

You could also write a regular expression

#
import re

re.findall('Model Name\s(.*)\s', tesseract_string)
#

Not the best regular expression, but you get the idea

left haven
#

I would just need to copy and paste for each feild

sick agate
#

Yeah, for whichever approach you feel more comfortable with

left haven
#

Oh man, I was so close to solving this myself

#

day 2 using python XD still got a lot to learn

#

XD (emoticon)

#

Thank alot guys, yall where a huge help! Gonna save me a few hours at work with this!

#

would yall mind, helping me again with something basic.

#

So i got the script how I want it. But now im trying to make it run on all images in a Dir.
I know I have to run it thoagh a loop, but im not quite understanding the concept.

sick agate
#

pathlib.Path

somber heath
#

!d pathlib.Path.glob

wise cargoBOT
#

Path.glob(pattern)```
Glob the given relative *pattern* in the directory represented by this path, yielding all matching files (of any kind):

```py
>>> sorted(Path('.').glob('*.py'))
[PosixPath('pathlib.py'), PosixPath('setup.py'), PosixPath('test_pathlib.py')]
>>> sorted(Path('.').glob('*/*.py'))
[PosixPath('docs/conf.py')]
```  Patterns are the same as for [`fnmatch`](https://docs.python.org/3/library/fnmatch.html#module-fnmatch "fnmatch: Unix shell style filename pattern matching."), with the addition of “`**`” which means “this directory and all subdirectories, recursively”. In other words, it enables recursive globbing...
left haven
#

I would think I need to read the dir, for files that end in .png, Store it in a string list, and loop though that list

sick agate
#

Conceptually, yes

#

Like @somber heath was saying...:

import pathlib

for path_obj in pathlib.Path('dir-with-pngs').glob('*.png'):
    # do tesseract processing with path_obj
foggy plover
#

I wanna know

somber heath
#
from PIL import Image
...
for path_obj in ...:
   image = Image.open(path_obj)```
foggy plover
#

how do ppl keep their screens while coding (like what windows are open?)

left haven
#

I dont know if I understand that question, but my answer would be multi monitors

sick agate
#

Terminal windows, PyCharm, and a web browser are the most common ones I have open (plus any custom tools needed for the project)

foggy plover
#

like mine is

#

the setup im asking for

sick agate
#

You mean window layout?

foggy plover
#

ye

sick agate
#

I'd think that would be personal for each person. Some people have multiple monitors, some environments support multiple desktops (e.g. Mac OS) so you can swipe between them, some people use all of the above. Really it's about what works best for you.

foggy plover
#

yes ik

sick agate
#

If your setup is working for you, then roll with it

foggy plover
#

oh ok

#

its fine ig

left haven
#

Holy Crap, yall are some wizards with python

sick agate
#

If window layout is bothering you, I'd try to figure out why (like what specifically) is bothering you

foggy plover
#

like i need a separate monitor for googling stuff

sick agate
foggy plover
#

lol

#

its not a big deal

#

but it bothers me

#

a lil bit

sick agate
#

If you have common tasks like changing music, check out a StreamDeck

#

They're a bit pricey, but solves the problem you're describing

foggy plover
#

i'll check it out

#

going to borrow a friend's stream deck and see if it fits my life

left haven
#

One last question.
for line in text.split('\n'):
if line.startswith('IMEI '):
IMEI = line.split('IMEI ')[1]
this grabs the information after the {space} after it finds IMEI.

The SEID Is listed below. how would I display that information?

sick agate
#

What does the input for SEID look like?

left haven
#
About SEID
SEID Number
sick agate
#
if line.startswith('SEID'):
    line.split('SEID ')[1]
somber heath
#

@pearl patrol 👋

left haven
#

cant seem to get it working

#

so the output is

About SEID
{Outed Data}
sick agate
#

What does your code look like?

left haven
sick agate
#

What does the input look like?

left haven
#
€ About SEID
{actual SEID}
sick agate
left haven
#

yee

sick agate
#

Your easiest bet might be a regular expression in that case, rather than iterating by line

somber heath
#

!e py data = ["abc", "def", "ghi"] idx = data.index("def") print(data[idx + 1])

wise cargoBOT
#

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

ghi
sick agate
#

Yeah, but the regex would be slightly different

#

Can you type up some sample text (with sanitized output) and put the link to a paste?

#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

somber heath
#

Regex would probably be the "right" way.

sharp urchin
#

hello

sick agate
#

hello

stray niche
# gentle flint sir?

It's an expression I use in a fun manner. I say ma'am too sometimes for Noodle and Noodle says it too (Noodle Arms*)

left haven
#

@somber heath @sick agate incase you where wounding, I was able to solve my last issue.

SEID = text[text.find('\n') + 13:text.rfind('\n') -2] 
#

once again, thanks for the help!

winged hinge
#

brb @somber heath

foggy plover
#

diameter which os do u use, it looks cool af

winged hinge
#

arch + i3 window manager

somber heath
#

@tribal sparrow 👋

tribal sparrow
#

I can't speak.

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.

tribal sparrow
#

no problem.

#

I can text

somber heath
tribal sparrow
#

got it. I'm new here

somber heath
#

@hushed geyser 👋

tribal sparrow
#

hello.

#

I'm gonna be here till I get my voice. 😂

winged hinge
#

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

tribal sparrow
#

okay.

#

this will work

#

Are you from india, diameter?

#

I love your accent.

#

Fun fact: I can speak hindi.

#

Hello @somber heath

#

that sounded like Sheldon cooper. 😂

#

I think the god is the personification of consciousness.

winged hinge
#

I am one of those gods @willow lynx

#

check my name

somber heath
#

@compact quartz 👋

rugged root
#

@willow lynx Not working how

somber heath
#

@quiet estuary 👋

willow lynx
rugged root
#

On a Mac you said? @willow lynx

#

Depends on the company

somber heath
#

@hollow river 👋

#

@rough haven 👋

sharp urchin
#

one of my seniors was making a project on it

#

to get to know

#

which ones a clickbait

#

a program would go through all the slides

#

and the subtitles would be checked accordingly

#

i speak 3-4 @willow lynx

winged hinge
rough haven
#

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

winged hinge
#

@stray niche @somber heath want some?

#

@willow lynx want some?

willow lynx
somber heath
#

@neat rune 👋

neat rune
#

Can someone help me??

somber heath
#

Have you installed PyQt5?

neat rune
#

yes

somber heath
#

Into the project's venv? I don't use VScode nor Pycharm.

#

So don't listen to me, unless I'm right.

winged hinge
neat rune
winged hinge
#

python -m pip install PyQt5

@neat rune

somber heath
neat rune
sharp urchin
#

vs code

#

def

winged hinge
#

in terminal where you are getting the error

tribal sparrow
#

!voice

sharp urchin
#

you can start and can go on with vs code!!!

wise cargoBOT
#

Voice verification

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

tribal sparrow
#

Finally

#

got my voice

neat rune
somber heath
#

@quasi radish 👋

quasi radish
sharp urchin
#

its basically learning and not studying @willow lynx

somber heath
#

@whole bear 👋

sharp urchin
#

take it like that

whole bear
#

i ain't verified ik

sharp urchin
#

lmao

#

hey i am sick , sick of this job

#

lol

tribal sparrow
#

Undergraduate student here.

sharp urchin
tribal sparrow
#

where you from?

sharp urchin
#

asia

tribal sparrow
#

haha same

sharp urchin
#

niceee sirrrr

#

ind?

tribal sparrow
#

nope

sharp urchin
#

then?

tribal sparrow
#

I can speak hindi though.

sharp urchin
tribal sparrow
#

you from india?

rugged root
#

@rugged tundra "Do you need a coffee monkey"

sharp urchin
#

nahh

rugged root
#

Polos are cheap

sharp urchin
#

he is the manager i mean

#

he should be paying

#

🙂

rugged root
#

Eh

sharp urchin
#

at least the first ones

winged hinge
#

all these comes over the time @willow lynx

rugged root
#

Just takes practice. Soft skills like personal interactions can be taught

#

Then they just become second nature

tribal sparrow
#

Hello @rugged root

rugged root
#

Years have retail have taught me such

winged hinge
#

yea

rugged root
#

Sup, Alco

tribal sparrow
#

great.

rugged root
#

@willow lynx Always ask questions if you need it

#

Always always always. You showing interest, you showing that you're learning, you're taking the imitative to make sure you're up to speed, that makes a difference

tribal sparrow
#

where are yoy from @rugged root?

rugged root
#

Missouri in the US

winged hinge
#

from office right @rugged root

rugged root
#

From office?

#

I mean I'm in an office right now

tribal sparrow
#

Just wanna know what's going on on another part of the world.

winged hinge
rugged root
#

@willow lynx Even if you don't at this job, you will at your next. This isn't the be all end all

#

Everyone learns at their own pace

tribal sparrow
#

How's life there?

#

@rugged root

rugged root
#

Might just take more elbow grease than others

sharp urchin
#

ahh data science

#

something which i admire

rugged root
sharp urchin
#

the data scientists!!!!

tribal sparrow
#

I am into machine learning and computer vision by the way.

winged hinge
#

hello @somber heath

tribal sparrow
winged hinge
#

true

rugged root
#

@willow lynx How old are you, if I may ask?

winged hinge
#

how's the cold there? @rugged root

rugged root
#

Eh

#

It's tolerable

#

I don't mind the cold

#

My meds make me overheat a bit

winged hinge
#

gotcha

rugged root
#

@willow lynx All you can do is keep trying.

#

And again, you may not thrive at this job but at the next or the next.

#

Nothing is end of the world scenario in this case

winged hinge
#

I am like if this doesnt work, imma go do farming ffs

sharp urchin
#

wait have got a question @willow lynx or anyone else plesh

#

are udemy courses valuable enough to fetch a job?

#

does those courses even develop skills?

rugged root
#

You've got resources

tribal sparrow
#

Is master's or a PHd recommended to get into machine learning in industry?

#

specially in US

rugged root
#

(context, I'm not in the industry, just a hobbyist)

#

I just have decent general advice

polar condor
#

hello

tribal sparrow
#

okay.

sharp urchin
#

they are gonna know

tribal sparrow
#

hey cruiser, wanna hop into another voice chat?

rugged root
#

Entirely possible you're just in a bad team

#

It may take several jobs before you find the one that fits

#

And I know that sucks balls

#

Linear Depression

#

Hmm?

#

Ooooo

#

Kinky

#

@gentle flint So is this one that is an actual position or the one that finds positions for you

#

Swanky

#

Let us know if you need anything, @willow lynx

#

@rugged tundra Does your face hurt?

#

'cause it's killing me

#

@turbid zinc Have you ever done ships in a bottle? (Sorry, wrong ping)