#voice-chat-text-0
1 messages · Page 53 of 1
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)
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
Hi
OPNSENSE
💯 
👋
@bold iron
?
Sorry, meant to do a 👋 as well.
oh hello, thats fine
@bold nova 👋
yep
@somber heath
guh
bruh
why do some function have double underscore and some don't
@ripe lantern
__init__()
init()
@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
def__init__(self):
@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
!e ```py
class MyInt(int):
def add(self, v):
print(self, v)
return 9001
a = MyInt(10)
b = 20
c = a + b
print(c)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 10 20
002 | 9001
!e py a = 1 + 2 b = (1).__add__(2) print(a) print(b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 3
002 | 3
!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'```
@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'.
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()```
@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'
!e ```py
class MyClass:
def init(self):
self.a()
def a(self):
print('Hello, world.')
mc = MyClass()
mc.a()```
@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.
!e ```py
class MyClass:
def init(self):
self.__a()
def __a(self):
print('Hello, world.')
mc = MyClass()
mc._MyClass__a()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello, world.
002 | Hello, world.
!e ```py
class MyClass:
def init(self):
self.v = 5
print(self.v)
mc = MyClass()
print(mc.v)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 5
002 | 5
!e ```py
class MyClass:
def init(self):
self.__v = 5
print(self.__v)
mc = MyClass()
print(mc.__v)```
@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'
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = pay
self.email = first + '.' + last + '@company.com'
```
!e ```py
class MyClass:
def init(self, obj):
self.v = obj
a = MyClass(5)
b = MyClass(10)
print(a.v)
print(b.v)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 5
002 | 10
@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())```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | False
002 | True
All o'y'all'd've.
:v
All of you all would have.
Fun fact. I have 0 confidence in speaking which is why I TRY to contribute because it sucks having no confidence
@neon raft 👋
yo
turns out i cant talk
cuz im not active enough
😭
!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)```
@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')]
!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)```
@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')]
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
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.
@sly moat 👋
Hey, yeah I have been in python discord for about 2 years and I still can't chat here
Sorry. I deleted the thing by accident. If you go to the #voice-verification room, there are instructions for unmuting yourself.
You were fiddling with my delete button.
Yeah, it's broken, it says I have less than 50 messages, but I have way more than that
It's 50 messages after a certain date.
Spread out across 30 minutes
3 10 minute blocks.
I am doing AI models 😄
It's possible to leave and rejoin.
I probably left and rejoined
I expect it would. It might not.
I have messages in this discord that go back to 2019
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.
Ok well I will just spam messages in here till I reach 50 😄
I've never been to my own funeral before
So...... about that stuff and things
that's the ticket
what sort of project are you working on @green fox?
what got you interested in starting?
Network address translation (NAT) is a method of mapping an IP address space into another by modifying network address information in the IP header of packets while they are in transit across a traffic routing device. The technique was originally used to bypass the need to assign a new address to every host when a network was moved, or when the...
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
cool
I already got it done, just need to train it
it is interesting
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...
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....
just like in real life
Game is being made in unreal 5, C++.
I am just using python with tensor flow to train my language model.
@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.
I got a great computer, but damn, training AI takes a lot of power
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.
camelCase is trash, I type all my variables in double case, VAriables.
double case? I have never heard of that one
I like to be different, so I make up my own rules 🤟
as long as your fellow devs are okay with it
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 😄
`
Can't do that in python, I keep getting yelled at to indent
@dense nebula 👋
Plus the curly braces will throw things off 🙂
in main() I don't have to worry about curly braces making things ugly
ahh ok thanks
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
i feel out of place here lol these guys are programmers and i do this as a hobby
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
I'm a welding engineer and cwi but i have always been fascinated by networking and cyber security
Elon! Hi, Elon!
Yeah I don't work as a programmer for my job, I don't get paid for this lol
i joined this discord to look for help using scapy in existing code ive written but found the answer from google lol
what do you do for work??
I operate heavy equipment, excavators, loaders, etc...
sounds dope man
construction?
I work in logging, but I will be going to construction in the summer, pays a bit more
i only really know how to make networking tools but my latest project has been trying to make a simpler version of nmap
sounds like a good plan
yes chat gpt is dope
I do, but it gives a lot of wrong info
ive asked it to make me an icmp scanner and it said it was illegal
Not in any reasonable jurisdiction.
Illegal, perhaps, to use in an unauthorised fashion, but on a network you own, it's fine
i only test my projects on my own network or a friend's if they let me
(for now) lawyer me adds
I mean, "Yeah, you pinged Google that one time. You're under arrest."
lollll
i saw a funny meme the other day about google after college kids learn about tracert ill try to find it
Man I would like an A100 80gb for sure though
What do you use for your OS?
@dense nebula keep going
about?
There are some distributions with software suites that I think you might find useful
ill look into it
Kali linux is for network penetration testing and security. Garuda linux has something similar.
ive been banned from discords in the past just for talking about making a udp scanner
good to know thank you
When was the last time you used it, Linux isn't the same it was 2-3 years ago
3 or 4 years ago
I, too, have permissions!
i don't have 50 messages
better start cranking
Start talking here, that's how i did it
sry i russian, and I few understand you saing
i dont not like it but i like the optimization windows has for some of my games compared to linux
xd
@dense nebula agreed
what are yall's opinions on scapy??
on the gaming part
mans, i can I keep the bot online for free, on github. I heard there was a way.
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
Packet sniffing is the practice of gathering, collecting, and logging some or all packets that pass through a computer network.
in russia, we saing - baRRRbi
those things are expensive too
ok
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
cheat devs are scum of the earth
why
ruins the game for everyone else
and in single player games?
it's don't ruin for other player
s
i asking of singl.player now
windows 11 is hot trash lol but they keep saying that it is better than 10
ahh
and how hacker u interferes on roblox
i dont undertstand what you mean by that
aimbot walling etc
your good man
ight im gonna go play some tf2 before going to sleep fun talk gents, goodnight
bye
mans we reading it's chat?
i trying joking
okeyy, let's goo
i have a voice
Squidward
About 100,000 attendees and more than 3,000 exhibitors from around the world are expected to attend.
They’re hoping to showcase what could be the next big thing in the tech space.
Please subscribe HERE http://bit.ly/1rbfUog
#Technology #CES #BBCNews
@civic zephyr https://insecure.org/stf/smashstack.html
An excellent (if a bit dated) article/tutorial on exploiting buffer overflow vulnerabilities. It was written by Aleph One for Phrack 49.
could any of yall help me, im trying to save some things to a config.json but its not saving
Have you posted in #1035199133436354600 ?
no one ever responds
Post there, I'll take a look
ok
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...
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
Help out in #1035199133436354600 and you'll get there quick 🙂
The Next HOPE took place on July 16-18, 2010 at Hotel Pennsylvania in New York City.
This will be a wide-ranging lecture covering databases, privacy, and "computer-aided investigation." This talk will include numerous examples of investigative online resources and databases, and will include an in-depth demonstration of an actual online invest...
agree
Apache Cassandra
Open Source NoSQL Database Manage massive amounts of data, fast, without losing sleep
why ?
hello @stray niche
Hello
why are we called human?
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
ahaan
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.”
@worldly oriole 👋
loool thats one fked up company 😉
Going to be relatively absent today
Do anyof you guys know how to market a SaaS I made 😭
One of the DMS databases is missing like..... everything
mmmmm
I need help in markettttinnn
Sounds good
moon
lool
If by genetic diversity you mean cancer, then yes
In the same way that a hammer can be used to introduce variety in a collection of marbles.
It's like being shot with a lot of very tiny, very powerful shotguns aimed at your dna.
I shan't shame.
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
@warm copper 👋
hiii
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
@whole bear 👋
🫡
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
Nice
Still no luck with your office, hemlock?
!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)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
['cap', 'trackpants', 'jock', 'trackpants', 'briefs']
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.
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
"Hm. It seems like a multiple pairs of shoes day, again. Time to get creative."
Hugo Weaving, in case anyone was unaware.
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)
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
Maybe you do
If you jinx it, I will end you
I promise you won't, just delete them now to save the environment
Debian has its own pastebin?
Neat
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?
Most basic that you'll commonly see are RGB values, so 3 ints from 0 to 255
I'm asking that befcause when I open the iamge with .txt it's not numbers, it's a bunch of weird characters
for security purposes?
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
Who doesn’t.
Later it was good seeing you again
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
Actually sounds like a nice breakfast
Better than what I had which is a cliff bar
At least you had fruits
I'd kill for a Cliff bar right now
That's a bit extreme, I'm sure you could get one without any killing
Meh
"On the streets"?
That's... weird
And a true sign of desperation
@stray niche Yo
Yooo
Its so weird to see this icon for the server
got so used to the Christmas tree one
Looks fine albeit a little verbose / perhaps overengineered
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
True. I just love the variety of ones we have
Hmm
So how're you, Sammy?
?
How are you?
I start volunteering somewhere assuming I'd get to work with a friend who works there, but apparently I wont. figuring out the dynamics
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
oohhh. sending you speed
@winged hinge Whatcha working on
It's going to take quite a while. It's ~115 GB worth of files
Whoa, whatchu doin in the meantime
Clearing out things on my rig to make sure I have the space to accommodate it
Nice
you had food sir?
Not really, will when I get the chance
@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
okie dokie
i also come
@winged hinge you here?
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 :(
ohhh
wierd
yeah I was not paying much attention though my bad
isokays
@stray niche whatchu doin?
Work
sir?
js?
ye he said so
u left cybersecurity job?
what do you work as?
if i may ask...
@half echo are you a student still?
Sup
from the states?
like your unis in US?
Yep
Eh
Not wholly different than state BS here in the US
Regarding the different governments
300 month is not livable
Hi Hemlock
Yo
does it matter to get a bachelors degree from a tier 1 uni(in terms of placements??)
High as balls cost of living in Cali, though
just a quick question..
Better to have than to not
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
data science afteer ms in cs?
Either
all i want is a good job i guess
do you think with all the layoffs, that CS professionals will find adequate pay in industries other than software dev; ie manufacturing, etc
More generalistic
Depends on what niche they end up filling
For now
wait isnt the tech market good in US?
For now
my goodness, I'm underpayed or need to get better at leetcode 😛
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
I've been a field tech engineer who dabbles in code for 15 years, 100k is my all I'm good for.
!!! was told that 150k is the freshers pack after bachelors!!!!!!
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
not true?
lmao
I think SpaceX wins vs 5g, thoughts?
fresher's pack?
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
yeh was told so
you take what you can get
after taking ML as a side subject in too
peons shall pay!
it obv adds on tho
cant deny that can we
experience is worth a whole lot more
thats all pretty relative to inflation
fact check to my claim then?
twitter was dogs playing poker
depends
faang is giving 115-130 to new grads
yeh so my thing was real i guess
FAANG should not be confused with most jobs
this is top 1% of jobs
average taxpayer?
probably 30-50% get >100k though
In fairness, good site
relieved me idk y lmao
I don't think that even exists
You're right, it's .net
I audibly snorted
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
sears lol
https://www.arngren.net/ is one of my favourite sites btw @rugged root
elbil, elatv, el-atv, atv, robot, mercedes barn, elbil til barn, el-bil til barn, drone, elsykkel, el-sykkel, el scooter, elscooter, el-scooter, rc helikopter, rc bil, rc fly, rc produkter
do check it out
I have a Sears Robuck catalog from 1908
That's amazing
Kind of proves my point
imma head out...catch yall later
its like Winchester rifles for 30 cents 😛
Sears? I sleep.
KMart was where it was at.
yikes lol
Newspapers dominated but are now essentially dead
Twitter is a blink in time
No they haven't
could be worse, remember what walmart did a few years back?
but tech is parabolic currently
My dad has worked in the newspaper industry for years
The industry is dying/is dead
They're struggling
Even in those cases
the thing about parabolas..
is it parabolic or is it a tan(x) curve?
Yep, and they come and go
probably
You haven't seen from the inside of the industry
newspapers can still work, I read the Hippo and it is still relatively independent
https://hippopress.com/
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
also https://www.007museum.com/ @whole bear
See all the James Bond locations projected on one big interactive map.
And they aren't going to be able to see the profits they saw
No there aren't
There aren't "a lot"
there are very few newspapers that still are functional as newspapers
anyone else flown much lately in north america
The local papers (other than the hippo) are now only useful for the Aldi weekly fliers.
Frederik you sound like that Youtube guy who mods pianos
I am on the server for that guy, and it ain't him
@limber iron Why do you ask
there are no moral requirements
@willow light https://en.wikipedia.org/wiki/Dead_Sea
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 ...
BRB heading to Lake Chargoggagoggmanchauggagoggchaubunagungamaugg
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:
You're -5?
What happened to Taiwan?
@molten pewter I'm afk for 6 minutes
ion know i just joined this
yeah used to
dont read that 😄
because why not ?
nice screen protector btw
allah forever
what are yall taking about lol
5 years of welding going on 4 of welding engineering
yeah i got my certifications through highschool and worked on some pipeline jobs and then went to college for welding engineering and metallurgy
i have 0 seconds of welding experience
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
i suck at python 😦
im so good at python 😄
there are guides online, i used alot of them to teach myself
(jk)
my friend help teach me but I dont completely understand everything, like functions and class, i just use a shit ton of " If "
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
Put dictionaries on your plate.
!d dict
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)`
Similar names: label.dict, 2to3fixer.dict
Have classes for dessert.
Actually, have functions for dessert.
Classes can be breakfast.
i like cake for desert personally
Next morning's breakfast.
make sure i clog my arteries every morning with a face full of cake
I once had icecream for breakfast while watching the sun rise. It is a fond memory.
Morning after a party.
Nothing like a hangover extra extra extra strong affogato
hello
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
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
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
@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?
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
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
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
I would just need to copy and paste for each feild
Yeah, for whichever approach you feel more comfortable with
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.
pathlib.Path
!d pathlib.Path.glob
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...
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
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
I wanna know
from PIL import Image
...
for path_obj in ...:
image = Image.open(path_obj)```
how do ppl keep their screens while coding (like what windows are open?)
I dont know if I understand that question, but my answer would be multi monitors
Whatever.
Terminal windows, PyCharm, and a web browser are the most common ones I have open (plus any custom tools needed for the project)
You mean window layout?
ye
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.
yes ik
If your setup is working for you, then roll with it
Holy Crap, yall are some wizards with python
If window layout is bothering you, I'd try to figure out why (like what specifically) is bothering you
like i need a separate monitor for googling stuff
Then that works for you 🙂
not being able to change music without pressing alt tab or swiping on the touchpad
lol
its not a big deal
but it bothers me
a lil bit
If you have common tasks like changing music, check out a StreamDeck
They're a bit pricey, but solves the problem you're describing
i'll check it out
going to borrow a friend's stream deck and see if it fits my life
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?
What does the input for SEID look like?
About SEID
SEID Number
if line.startswith('SEID'):
line.split('SEID ')[1]
@pearl patrol 👋
What does your code look like?
What does the input look like?
€ About SEID
{actual SEID}
Oh, so SEID Number is a placeholder for the data, not the description before the data (like it is for model number)
yee
Your easiest bet might be a regular expression in that case, rather than iterating by line
this?
!e py data = ["abc", "def", "ghi"] idx = data.index("def") print(data[idx + 1])
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
ghi
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
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.
Regex would probably be the "right" way.
hello
hello
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*)
@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!
brb @somber heath
diameter which os do u use, it looks cool af
arch + i3 window manager
https://billwurtz.com
spotify: https://open.spotify.com/album/4SnZscTWZCrr6HtJufOJ7T
patreon: https://patreon.com/billwurtz
itunes: https://itunes.apple.com/us/artist/bill-wurtz/id1019208137
pandora: https://www.pandora.com/artist/bill-wurtz/ARnXpvcKjV5z2vm
twitch: https://twitch.tv/billwurtz
soundcloud: https://soundcloud.com/billwurtz
t...
this is the one with hello and goodbye
@tribal sparrow 👋
I can't speak.
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@hushed geyser 👋
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
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.
@compact quartz 👋
@willow lynx Not working how
@quiet estuary 👋
Can't see the task bar which comes on the top showing networks.
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
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Would love to
@neat rune 👋
Can someone help me??
Have you installed PyQt5?
yes
Into the project's venv? I don't use VScode nor Pycharm.
So don't listen to me, unless I'm right.
@willow lynx https://www.youtube.com/watch?v=8Er5fjgOhhc
Chicken breast recipes | Keto chicken recipe | Creamy garlic chicken | How to make Creamy garlic chicken
Today I'm making an easy Creamy garlic chicken recipe. This recipe is extremely versatile and can be turned into creamy garlic chicken pasta, creamy garlic chicken and rice, creamy garlic chicken and mushrooms, the list goes on! This one pot...
bro i live in brazil so i didn't understand very well what you said, my purpose didn't have "venv" i put it and still it wasn't
python -m pip install PyQt5
@neat rune
what is it?
What seems to me to be relevant information.
put in pycharm?
in terminal where you are getting the error
!voice
you can start and can go on with vs code!!!
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i put this in pycharm but the error still remains
@quasi radish 👋
Hello there
its basically learning and not studying @willow lynx
@whole bear 👋
take it like that
Undergraduate student here.
not all i reckon
where you from?
asia
haha same
nope
then?
I can speak hindi though.
.
you from india?
@rugged tundra "Do you need a coffee monkey"
nahh
Polos are cheap
Eh
at least the first ones
all these comes over the time @willow lynx
Just takes practice. Soft skills like personal interactions can be taught
Then they just become second nature
Hello @rugged root
Years have retail have taught me such
yea
Sup, Alco
great.
@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
where are yoy from @rugged root?
Missouri in the US
from office right @rugged root
Just wanna know what's going on on another part of the world.
yeah
@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
Might just take more elbow grease than others
Eh. Hanging in there, I guess
the data scientists!!!!
I am into machine learning and computer vision by the way.
hello @somber heath
Just getting started.
true
@willow lynx How old are you, if I may ask?
how's the cold there? @rugged root
gotcha
@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
I am like if this doesnt work, imma go do farming ffs
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?
Is master's or a PHd recommended to get into machine learning in industry?
specially in US
#career-advice would be a better place to ask that
(context, I'm not in the industry, just a hobbyist)
I just have decent general advice
hello
okay.
they are gonna know
hey cruiser, wanna hop into another voice chat?
cool
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)