#voice-chat-text-0
1 messages Β· Page 268 of 1
macOS is a fuckin sandobox with login/paff cloud
ok, i need to sleep, see u later)
good night
i go, see u guys!! ;)
bye
pretty annoying python does not work by himsel and needs so many extra packages / modules and bs ..
complicated for a new person
where?
wdym?
pycharm?
new new new
import requests
import requests
Dop[e worked
I am no braindead , but i had never touched anything related to this
me?
I am trying to do exactly that
So i tried to do web to csv but it does not give me all data i want
then i found some api that gives me more data
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
voice gate failed
now i want to try to get the api data via python hopefully i can make the date i get look more appealing
you cutting out
Yup yup i made it work xD thx
mid-size
this is
excessive
2 bands for
this?
instead of ray tracing, it's photon tracing 
@wind raptor miners or minors because ain't no way an average 14 year old has damn near 2 and a half stacks
OK
π
whatcha selling mindull?
if i use ai is it called cheating ?
i mean for code
yea ok ..
i wonder what would be the maximum you can reach making money just by using ai to code for ya
yeah, the housing market down here is pretty solid atm
mindful check dm
Hello
damn
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
no skips
well you guys helped me alot π wanted to say thx
What housing market?
Cheap....
In January I bought a second house in Seattle for $750k - 4b/3b 2450sqft.
It has a sweat ass server room
Damn legit.
My first house has 1gb full duplex. My was very sad to only have 950 down/25up at house 2
Yeah.. sucks to be out in the sticks.
1st house has fiber to the outer wall..
From my crappy subnet router 340
Once I gave a jr dev a api cred to prod and he posted them to pastebin asking a question for help. Infosec came to my desk and was like what did you do. I was like WTF
iPhone 15
iPhone satellite is Emergency only and slow as hell
There's only so much you can take off. You can put on as much as you want.
Therefore the extreme cold is better than extreme hot,
If they're not paying enough to buy a house. Then it's time to look for a new job...
@willow light https://youtu.be/BuxZe81WUcY?feature=shared
Hilarious clip from Scream Queens S1 E3 β Chainsaw.
Scream Queens Official Channel: https://www.youtube.com/channel/UC8QtRfvVl2Wz-rRcZvG57rQ
IMDB: http://www.imdb.com/title/tt4145384/
Scream Queens on Fox: http://www.fox.com/scream-queens
Sounds like a shit company....
BS.... Thats not a law
Sounds like a shit company policy
Try joining a different server's voice chat, then back here.
You can't trade your own company or if your sister works for Nvidia and tells you nividia is going crush earning then that is inside trading. This guy sounds like he's working crappy company with crappy pay
it covers rent and food, and that's all i really need
controls engineering bought me a computer and im resisting the temptation to buy a 4090
the crappy part of the company is the mandatory time in the office. I'm so glad I have an ADA accommodation that says that I can't be fired for not going into the office.
however, all other forms of retaliation are still on the table.
whats a pip?
i think there is like 1 or 2
basically a time-delayed firing
nah ur right, all 50 states and DC are at will
@regal quartz π
whos the lil gangster kid
I am quite confused right now.
@somber heath I am going back to sleep! GN
It's got to be early in AU
lol
1:36 PM
That's early lol
hang on, why isn't it saying 00:36....I coulda sworn I had it set to sane formatting
well, ideally it would be using ISO-8601
When I finally get NixOS running on my old 2013 ThinkPad that's one of the things I'll look into
I got a call from Australia once while I was out drinking and I had to run home to fix their store so they could ring transactions..
lol @tired apex
Do you have a lot of Indians in your it org?
we have a few
my company is slike 50% engineers
i send my coworker Sai a gif of someone stretching every day
my company has about 28,000 associates, and half are in india.
Had a 1:1 with my manager vivek today
Indians and Chinese are going to own IT in 15 more years. IBM, msft, Google, Indian CEOs not to mention the Chinese tencent, Alibaba, etc...
It was rescheduled eight times due to emergency all-hands meetings from AWS outages.
why are you using the future tense?
the company I work at is owned and ceo'd by the descendents of the founder, and the c-suite is basically "if you aren't descended from Edward Johnson, you aren't getting any position higher than platform director"
@tired apex you say that but you see how much backlash google's ai got for being so anti-white?
i didn't see that because I make a point out of avoiding social media. maximum of 10 minutes per week on fb/mastodon/instagram.
deleted my twitter and tiktok accounts years ago and never looked back.
Currently shopping around for a different mastodon instance to join, because the moderation on mastodon.social can be described as non-existent.
I agree CHATGPT / Co-pilot and these other AI platforms are going to crush the younger generation out of the basic IT jobs. I'm just saying the few technical IT jobs left are going to very valuable and hard to get with tons of competition.
software engineering is already basically there
yeah keep telling yourself that. software engineers will only be replaced when stakeholders figure out how to explain what they want on the first attempt.
the 60,000 layoffs did not set me up for success when i went back to school
so many companies are outsourcing for pennies on the dollar too
There's a reason I'm now in infra and ops. ai isn't very good with internal tooling that was designed with the "throw random shit at the wall and see what sticks" approach.
as I mentioned in the cybersecurity group chat today: "Good thing we all write clean code, comprehensive tests, and follow best-practices at all times, right guys?"
maybe ill actually get into software engineering at some point like i wanted to, but i was forced into automation/controls engineering
The enterprise software lifecycle: write horrible buggy code that barely runs. Accumulate tech debt since we do agile in buzzword only and just push features without improving at all. After three years the tech debt is so bad that it is easier and cheaper to just start over again from scratch.
Rinse and repeat.
I was trained as a SE, and right now I'm an SRE.
BTW that lifecycle is the reason why the company I'm at is on our third API Gateway in five years.
I was a diversity hire.
I'm fully aware that when I was hired it was because the company could use me for social media clout.
White disabled bisexual enby. Gets a few doors open that way.
Yes I was hired in the month of June.
what importance is the month?
July 1, they basically said "okay, you did your part, now go back in the closet"
i don't know what you're bitching about.. whites still get preferential treatment on jobs.. if you were boxed out, it's because of other whites not other colors..
yet you still choose to focus on colors.. like a certain type of american
the username toxic suits you
π€£ you're deluded
no. you've just never seen even a fraction of real difficulties and discrimination in life that other races go through.
you just have no comparative perspective.
@opaque surge #voice-verification
!e
def check_divisible(values: list[int]) -> None:
for val in values:
if val/5 == int(val/5):
print(val)
val_test = [1, 2, 5, 10, 23, 20, 25]
check_divisible(value)
@upper basin :x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 8, in <module>
003 | check_divisible(value)
004 | ^^^^^
005 | NameError: name 'value' is not defined. Did you mean: 'False'?
!e
def check_divisible(values: list[int]) -> None:
for val in values:
if val/5 == int(val/5):
print(val)
val_test = [1, 2, 5, 10, 23, 20, 25]
check_divisible(val_test)
@upper basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 5
002 | 10
003 | 20
004 | 25
import random
import settings
import discord
from discord.ext import commands
from cogs.greetings import Greetings
logger = settings.logging.getLogger("bot")
class NotOwner(commands.CheckFailure):
...
async def is_owner():
async def predicate(ctx):
if ctx.author.id == ctx.guild.owner_id:
raise NotOwner("Hey you are not the owner!")
return True
return commands.check(predicate)
def run():
@bot.command()
@is_owner()
async def say(ctx, what = "What?"):
await ctx.send(what)
@say.error
async def say_error(ctx, error):
if isinstance(error, NotOwner):
await ctx.send("Permission Denied!")
bot.run(settings.DISCORD_API_SECRET, root_logger=True)
if __name__ == "__main__":
run()
with error
e:\vanity_py\main.py:90: RuntimeWarning: coroutine 'is_owner' was never awaited
async def say(ctx, what = "What?"):
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Traceback (most recent call last):
File "e:\vanity_py\main.py", line 125, in <module>
run()
File "e:\vanity_py\main.py", line 90, in run
async def say(ctx, what = "What?"):
TypeError: 'coroutine' object is not callable
Barry White Greatest Hits 2020 - Best Songs Of Barry White 2020
Barry White Greatest Hits 2020 - Best Songs Of Barry White 2020
Barry White Greatest Hits 2020 - Best Songs Of Barry White 2020
Link: https://youtu.be/Re_f1UOWyNg
β Please share this video in social sites (Facebook, Google +, Twitter.) β
best classic country songs, classic c...
"Freak Me!"
Written and produced by Keith Sweat, Freak Me was a Billboard Hot 100 #1 single in 1993 dominating the chart for 14 consecutive days. By the end of the year it was still in the top 5. Six years later, in 1999, it was at #32. Freak Me also dominated the R&B charts and stayed in the #1 spot for 8 weeks in a row.
Welcome to SILKchann...
@dry jasper the Ukraine one is like a cross between these two
https://youtube.com/watch?v=se9LDgFW6ak
https://youtube.com/watch?v=po7HDHTBBE0
Subscribe and π to Eurovision π https://www.youtube.com/user/eurovision?sub_confirmation=1
Pasha Parfeni will represent Moldova at the Eurovision Song Contest 2023 in Liverpool with the song Soarele Εi Luna.
Thanks to participating broadcaster TRM: @TRMMDChannel
Codrule cu frunzΔ deasΔ,
Cred cΔ mi-am gΔsit mireasΔ
AΘa, aΘ...
Konstrakta will represent Serbia at the Eurovision Song Contest in Turin with the song 'In Corpore Sano' after winning 'Pesma za Evroviziju.'
This live performance from Pesma za Evroviziju was provided by our friends at RTS.
#Eurovision2022 #ESC2022 #PesmaZaEvroviziju
Onas eroproc ni somrefne snem
Koja li je tajna ...
no its finished
unless i want to add more featurss
but base is done yes
and that increasing speed my dad wanted me to add is really making the game fun
probably
AI teaches itself to play flappy bird
huge thanks to Brilliant.org for sponsoring this video
check them out: https://www.brilliant.org/codebullet
Twitter: https://twitter.com/code_bullet
Patreon: https://www.patreon.com/CodeBullet
Discord: https://discord.gg/UZDMYx5
thats interesting
well it will prob die at some point
if its unlucky
because theres no checks that guarantee it being possible
like if youre really unlucky you can get 10 spikes in a row
and only 10 spikes can be on screen at once
its like gambling without consequences
you win or lose
every level
yes
exam?
1,2,3,4,5,6,7,8,9
"rub it in"
rodentus what country
next to germany right
77 level
89
got to 94
:)))
It's based on the sheer number of citizens we have. Even if the percentage we pay is less, the strength of the dollar plus the number of citizens we have make up for that when it comes to amount we can spend on the military
To focus on this aspect plays into talking points.
what does ```py
...
In the context of Python?
oc
It doesn't really have any meaning in most cases.
You can try to treat it as pass
@crystal fox
I sometimes use it in examples to indicate "something goes here". It's an actual object, though.
Some libraries make use of it. Numpy, for instance, uses it in its slicing to indicate "skip to the last dimension so you don't need to write a specific number of :,:,:,:"
class NotOwner(commands.CheckFailure):
...
async def is_owner(ctx):
async def predicate(ctx):
if ctx.author.id == ctx.guild.owner_id:
raise NotOwner("Hey you are not the owner!")
return True
return commands.check(predicate)
...
class Slapper(commands.Converter):
def __init__ (self, *, use_nicknames) -> None:
self.use_nicknames = use_nicknames
async def convert(self, ctx, argument):
someone = random.choice(ctx.guild.members)
nickname = ctx.author
if self.use_nicknames:
nickname = ctx.author.display_name
return f"{nickname} slaps {someone.display_name} with {argument}."
Like instead of writing arr[:, :, :, 3], you could write arr[..., 3] assuming there were 4 dimensions in the array.
Man that's still pretty rough
"The Producers" Home Appliances and Refurbishment.
Rubber Ducky Dynasty.
What does it mean ?
There's a television series titled Duck Dynasty.
I see
@karmic frost https://javascript.info
Co-worker is here, back to no speaky
@pale sigil Very quick and brief is fine, but it shouldn't be a long extended convo
Oh gotcha, srry
@stable geyser Testing concepts, trying small projects. Asking questions is huge
Like what parts are tripping you up?
@earnest crow Use a pastebin for code that large: https://paste.pydis.com
oh mybad
the microphoneπ
The use of Classes and Objects
ooooo
@stable geyser Like do you need a refresher of the core concept of it?
Interpretive dance
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Automate is listed on the site
C2 eval: am i a joke to you
@karmic frost https://automatetheboringstuff.com/
It's tedious, but it's fine
C#
C# is the better Java
And Kotlin is also a better Java
π
i can get you a lot of people who wont agree even tho i do
and multiple refrigerators who oppose this
In general
@karmic frost He's not teaching them how to program a specific thing. Just to help them understand the language and give them to tools to create various kinds of projects and programs
When you learn english you also dont learn specific sentences... hopefully
to take a bath?
@karmic frost Not everything has to have a specific money making purpose
People also just code for fun
"Where can I poo"
I have a feeling he just wants to make money
A lot of people do
feeling
like a massage?
so we can throw a roadmap for coding i guess
Competitive programming does not normally equate to good or helpful practical programming
I mean, if we're talking hamaams, maybe, but not what I meant.
Interview programming also doesnt align with usefull stuff ._.
@stable geyser Again, like what part of OOP is tripping you up?
Asking questions is a good way of learning
design patterns!
ISO 8601 is an international standard covering the worldwide exchange and communication of date and time-related data. It is maintained by the International Organization for Standardization (ISO) and was first published in 1988, with updates in 1991, 2000, 2004, and 2019, and an amendment in 2022. The standard provides a well-defined, unambiguou...
Oh huh
Wait that as a class?
@stable geyser I linked it here
Date time standards
Right but... as OOP?
I'm not sure how this would be good for reinforcing your knowledge of classes and oop
@crystal fox You are, but not for that reason
β€οΈ
@stable geyser My quick and dirty suggestion is making a little RPG character creator
You can build it out to learn about inheritance, Python's dunder methods, structure, etc
In hair it ants.
?
.xkcd 1179
I love the hissing cat
Douche Bagonton
%Y/%b/%-d
I'm super salty right now
that could cause some dehydration /s
We were supposed to get a technician here yesterday to fix our mail machine
It did not happen
This is the worst time of year for it to happen
Oh I'm talking like snail mail, postage
oh
!e python import time print(int(time.time()))
@amber raptor :white_check_mark: Your 3.12 eval job has completed with return code 0.
1709306103
bruh
Epoch time
hey guys
yep
Yo Jan
could you suggest something i could build in python
how advanced?
i want it to get pretty popular
If we knew, we would have made it already
basically
what do you want in python that doesnt exist yet or is difficult to do
See previous statement
what about something simple then
decoding MD5 optimized for microwawes
alright if it already exists
that would get popular
Rod if you actually want that then I have concerns
I actually... oh nevermind
Rod?
Sorry, my habit of shortening names
oh π€¦ββοΈ
What about NetBeans 20
what game should i make next?
@stuck furnace
π
Pygame
no like what game
what should it be about
"what are you guys working on" - someone
"myself" - someone else
@keen oyster hey which module are you talking about?
can you text in here?
pytuun?
pythoon, like typhoon
Here is my episode with Demis Hassabis, CEO of Google DeepMind
We discuss:
- Why scaling is an artform
- Adding search, planning, & AlphaZero type training atop LLMs
- Making sure rogue nations can't steal weights
- The right way to align superhuman AIs and do an intelligence explosion
Transcript: https://www.dwarkeshpatel.com/p/demis-hassabis...
Yeah, Go has a much higher branching factor than Chess.
As in, there are more possible moves from any given state on average.
I now have a project
yayayayayay
It's to make a quick and dirty 10-key notation calculator
Which is what - Hey Char - accountant calculators do
Physics-informed neural networks (PINNs) are a type of universal function approximators that can embed the knowledge of any physical laws that govern a given data-set in the learning process, and can be described by partial differential equations (PDEs). They overcome the low data availability of some biological and engineering systems that make...
There are various ways in which calculators interpret keystrokes. These can be categorized into two main types:
On a single-step or immediate-execution calculator, the user presses a key for each operation, calculating all the intermediate results, before the final value is shown.
On an expression or formula calculator, one types in an expressi...
interesting, so its like primitive auto-complete/intellisense
So it's like, the sequence of keys you would enter on a calculator to calculate a formula?
Correct
@cerulean ridge From an Adjunct Professor of Applied Mathematics and Professor of Mechanical Engineering from University of Washington:
This video describes how to incorporate physics into the machine learning process. The process of machine learning is broken down into five stages: (1) formulating a problem to model, (2) collecting and curating training data to inform the model, (3) choosing an architecture with which to represent the model, (4) designing a loss function to as...
is this the right to stream? or should I ask for stream privileges some other time?
coz I wanted to show something, one of my side projects)
He also has a playlist
So say you want to do:
30 - 5 + 33 + 48 - 2
The key combo would be:
30 +
5 -
33 +
48 +
2 -
Enter
However on the screen, it's showing the running total
So:
30
25
58
106
104
104
It seems weird, but it's really really nice
You can crunch numbers super quick
o
Yeah it's not interesting
The reason it shows the running total is because of the += and -= keys
If it's useful Β―_(γ)_/Β―
Seems like a nice project idea.
Are you going for a web app or CLI?
accountant calcs are non scientific.. so the rules of order of operations don't apply
Web or desktop app
There's not a lot of programs for this out there, and most of them are paid
Figured I might as well try to make a dinky open source one or something
Can do the whole thing with the standard lib
If you make it open-source, I'd love to make some PRs to help out.
Great work, seems like a great project Hemlock.
Oh that's sick
(sick in a good way, of course)
I'm not really in a good position to watch anything right now, unfortunately
naturally good sir
Hemlock, quick question. Should I make an overload method, or just add an if condition to provide support for optional vars instead of making them into an alternative overloaded method?
Just have them as keyword only arguments
And default them to None, checking the conditionals
Yeah that's how I did it for now. So just keep it like that?
Personally that feels like the better option
Understood. Thank you very much sir!
Overrides are more for the typing system
Ohh gotcha!
So like if it's a necessary variable, but can have two entirely different types, thus needing entirely different implementations.
Can you give an example?
I feel like accounting is a whole other world I don't know about π
So, I think if you have sth like :
def function(a: type1):
...
def function(a: type2):
...
And the type determining the function definition.
So for me I had it to sth like None or not, so Hemlock explained that for this an if approach is more appropriate, and I remembered that overload was for when the types are different, not just None or not when he explained it.
Right. There is a way to do this specifically using functools.singledispatch, but it's not really the pythonic way.
I'd probably just check the type of the argument with isinstance.
I see.
As in```py
def function(a: type1 | type2):
if isinstance(a, type1):
...
elif isinstance(b, type2):
...
else:
raise TypeError()
Yeah but I feel that becomes too long of a function.
I dynamic dispatch is a Julia thing? Although I've not tried it.
So an alternative is class-based polymorphism. Are these types you defined?
Having overload is I think more pythonic from some packages I have been studying, though I am still very novice in terms of what is considered pythonic, so I immensely appreciate you guiding me!
I am not sure I understand what you meant. Could I ask for some further explanation please?
I mean, what is pythonic probably varies from domain to domain. ML people might have their own python idioms π
True.
Like a workplace mentor? π€
Well, try a PhD and your supervisor would be your mentor.
Are type1 and type2 classes you defined, like: ```py
class type1:
...
Choose a university, look into the faculty, see which professor is a good fit for your interests, and see if they are taking an student.
OHHH, yes?
I mean all variables are class instances right?
I don't know either
I just use the calculator
it's made calculating my timesheets easier
Ahh, a fellow ronin I see.
Oh right. Your job is kind of accounting-adjacent though right?
I'm IT at the firm
So I learn a little bit through osmosis, but not much beyond that
Ah right
By class-based polymorphism, I mean something like this: ```py
class Type1:
def foobar(self):
...
class Type2:
def foobar(self):
...
``` So given a Type1 | Type2, you know you can call its .foobar method, and you get a different implementation depending on the type.
Opening a Netbeans Swing Project in Intellij, is this because of absense of bean-binding jar file?
typing
Ohh, well my case would be the opposite direction, you would be using these types to make a function.
That layout feels weeeeeeeird
And probably
?
Probably to the "is this because of absense of bean-binding jar file"
But I also have no idea
Probably all business bros yeah π
gotcha
The IDE you mean?
IntelliJ doesn't normally have that layout
So it's just different than I'm used to
Unless JetBrains changed it
I initially was using VSCode, then moved to intellij, and then found VSCode to be the better fit for me at least.
It seems cleaner, and easier to work with.
Less hassle.
it's the CE, but also they changed the logo so probably
for Java, I think a lot of people use Intellij, netbeans
Nah, Eclipse
I didn't mind Eclipse when I used it. But this was also years ago when I was back in college
on Mac it's kinda mehhh I think, for Windows it maybe much better
It's entirely preference
You can set up a good dev setup in anything
A lot of people prefer Macs
I'm just a Windows monkey since I have to use it for work anyway
Yeah
yep.
If I don't enjoy the IDE, or feel uncomfortable, my productivity comes down alot.
Bingo
It's why I recommend people try an editor for a week and if it doesn't click, scoot to a different one
I'm trying to switch to Intellij, simply cuz I feel old doing my java stuff in netbeansπ
Usually I recommend like... VS Code, then whatever JetBrains product is relevant, then Sublime Text
I really really like Sublime, though
So I'm a smidge biased
The T50 agricultural unmanned aerial vehicle continues the powerful coaxial dual-rotor power system, and adopts a split anti-torsion fixed structure with higher strength. Equipped with dual atomization spraying system, front and rear phased array radar and binocular vision system, it integrates aeri
Big ships turn slowly I think is the phrase π
more like management executives don't want to spend the money because they'd rather gobble it
Majority of money has to go to the C Suite and shareholders
@whole bear I mean auditing specifically was my recommendation
Canada Goose?
Those birds are assholes
Don't mess with geese
They will fuck you up
well you've already said your goodbyes .....
whatchu talkin bout? there's plenty interestin 'ere
Without Hemlock it will be boring
Cheeki left the server
Yeah but I'm a pushover to be fair π
I meant Hemlock didn't mention him
Because he's not currently in the call
I was listing mods+ that were in the call
Okay, so I have an entry for worst docs of all time
Nope π
Do you think they have enough copyright notices? π
@scarlet halo Whatchu doin?
Right?
Also, note that they still use .htm as the file extension
When that hasn't been a needed thing in decades
seems good enough to me
only the front page is a bit iffy
https://tcl.tk/man/tcl8.6/TkCmd/ttk_entry.htm Is it though?
This is pretty rough still
Like yeah, it's all there but like...
Jesus
yeah it could use a bit touch up
but in some ways it reminds me of expressJS docs
Yeah it looks like they took the man pages and converted them to html.
exactly
.. i'm so used to man pages it looks normal to me
Doesn't mean that the man pages are clean to read either
Let alone navigate
Hmm, trying to see if there's a built-in way to do an action on certain characters or key presses on entry boxes
Seems like I'd just need to watch it and just see what characters were last used
There is such thing as an employment scam.
The F16 key (labelled Copy on many Sun workstations) or Meta-w copies the selection in the widget to the clipboard, if there is a selection.
This really shows the age of these docs
aww shit.. forgot to buy razor blades π€¦ββοΈ
He normally just types
I was only half-listenening, so I'm not sure how relevant they are sorry π
I just use my dad's razor
Will we ever listen to your voice? 
Maybe π
.8ball Will we ever listen to Alex's voice?
Cannot predict now
Tell me @whole bear?
installation directory:
[Errno 13] Permission denied: 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\\Lib\\site-packages\\test-easy-install-12876.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\Lib\site-packages\
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://setuptools.pypa.io/en/latest/deprecated/easy_install.html
Please make the appropriate changes for your system and try again.```
Did you read the information in the message and does it apply to your situation?
Oh please no
Wait
Wait wait wait
Is the terminal being run as admin?
Also for the love of god don't use the Python version from the Microsoft Store
@snow wharf You can have permissions issues if you try to write to system file areas
Including Program Files
Wait is it not?
Oh weird
Okay my b
Try running it with py instead of python
python is aliased to the Microsoft Store version
What was the command you ran?
No I don't know why they thought that was a good idea
If you're on Windows, always use the py launcher, so py instead of python
That'll point to your latest version of Python installed
Also lets you select which version of Python of those installed that you want to use
So installing packages:
py -m pip install [package_here]
If you want to install one to your 3.9 version:
py -3.9 -m pip install [package_here]
Gotcha
If nothing else, for future reference
It's a Python quirk
And permissions quirk
But yeah, don't try to write directly to Program Files
Let me know if you still can't get it fixed up
Also alias python to py
You'll thank yourself
Catch you later. Sounds good
Like, I do get why Windows aliased Python to that. But if you install it from the website, it should override that, or at least check to see if the py launcher has been added
Saltiness is over, thank you for listening to reading my rant
Ah HA
Found what I was looking for
tkinter is std lib? i always thought it was 3rd party
It's standard on Windows at least
Might be a separate one for Linux or Mac?
Or like you may have to specify
that doesn't sound right
I think on most linux distros and macos you do have to install a separate package?
Also when you install from python.org, you can optionally choose not to install it.
that's weird
there's an installer? where's make?
this is so weird
is it compiling on windows?
i think it just dls bins
dev loved speaking with you, sorry for smothering you with food pics hehe, have a blessed time ahead!
Nooo! Don't say that...
It was very insightful what you shared.
See no pineapple on it, because pineapple does not belong onπ
You're programmed to like normal Pizza! I disown you spawn. Begone!!
Heading to the park, cheers π
Nice chatting to you anyways @wind raptorπ
Im a bit of a noob, what can I use instead of exit() in this code?
class DiceGame:
def __init__(self, player1, player2):
self.player1 = player1
self.player2 = player2
self.player1num = 0
self.player2num = 0
def play_game(self, player_number):
self.player1.roll_dice()
self.player2.roll_dice()
print(self.player1)
print(self.player2)
self.check_results(self.player1)
self.check_results(self.player2)
# result_player1 = self.check_results(self.player1)
# result_player2 = self.check_results(self.player2)
# if result_player1 == "win":
def compare(self, num1, num2):
if num1 > 0 and num2 > 0:
if num1 > num2:
print("\nPlayer 1 You got the point! They rolled the higher number!")
return
if num1 == num2:
print("\nIts a Tie")
return
elif num1 < num2:
print("\nPlayer 2 You got the point! They rolled the higher number!")
return
def check_results(self, player):
rolls = player.get_rolls()
srolls = sorted(rolls)
if int(rolls[0]) == int(rolls[1]) == int(rolls[2]):
print(f"{player.name} Lucky Win! You rolled the same numbers {rolls} ")
exit()
if sorted(rolls) == [4, 5, 6]:
print(f"{player.name} Lucky Win! You rolled {sorted(rolls)}")
exit()
if sorted(rolls) == [1, 2, 3]:
print(f"{player.name} Automatic Loss! You rolled {sorted(rolls)}")
exit()
if srolls[0] == srolls[1] or srolls[1] == srolls[2]:
for num in set(rolls):
if rolls.count(num) == 1:
if player == self.player1:
self.player1num = num
else:
self.player2num = num
self.compare(self.player1num, self.player2num)
break
else:
if player == self.player1:
print(f"\n{player.name} Had to roll again! Rolled {rolls}\n")
self.player1.roll_dice()
print(self.player1)
self.check_results(self.player1)
self.check_results(self.player2)
else:
if player == self.player2:
print(f"\n{player.name} Had to roll again! Rolled {rolls}\n")
self.player2.roll_dice()
print(self.player2)
self.check_results(self.player1)
self.check_results(self.player2)
player1 = Player("Player 1")
player2 = Player("Player 2")
game = DiceGame(player1, player2)
game.play_game(1)
class Die:
def __init__(self):
self.value = 1
def roll(self):
self.value = randint(1,6)
def getValue(self):
return self.value
def __str__(self):
return str(self.value)
def init(self, name):
self.name = name
self.dice = [Die() for _ in range(3)]
def roll_dice(self):
for die in self.dice:
die.roll()
def get_rolls(self):
return [die.getValue() for die in self.dice]
def str(self):
return f"{self.name} rolled {self.get_rolls()}"```
from random import randint
class Die:
def __init__(self) -> None:
self.value = 1
def roll(self) -> None:
self.value = randint(1, 6)
def getValue(self) -> int:
return self.value
def __str__(self) -> str:
return str(self.value)
class Player:
def __init__(self,
name: str) -> None:
self.name = name
self.dice = [Die() for _ in range(3)]
def roll_dice(self) -> None:
for die in self.dice:
die.roll()
def get_rolls(self) -> list[int]:
return [die.getValue() for die in self.dice]
def __eq__(self,
player: Player) -> bool:
return self.name == player.name
def __str__(self) -> str:
return f"{self.name} rolled {self.get_rolls()}"
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
@night sparrow @brazen elm π
Good hbu?
wsg @wind raptor
sup guys
Finally ended up getting everything working perfectly.
nice i guess
Gonna hit the sack. Cheers all.
hi
Hello
ΠΠ°ΠΊ ΠΏΡΠΎΠΉΡΠΈ Π²Π΅ΡΡΠΈΠΊΠ°ΡΠΈΡ
@somber heath ITS MY BIRTHDAY!
You sound not to good, is everything alright?
Whats wrong?
ohh dear
I Russian
Well good luck, I am going to have fun bye!
@soft loom π
hey i want to discuss a project idea, kinda validate it
how can i get the voice access
Don't spam please.
ok let me chat here
you can check out the project
so in your view
this is a better way of working with opencv ??
reading a video from the directory
@cv2Decorator.TotalTimeTaken(show=True)
@cv2Decorator.DetectInEachFrame(detector=cv2.CascadeClassifier(cv2.data.haarcascades+"haarcascade_frontalface_default.xml"),name='face')
@cv2Decorator.AccessCamOrVideo(show=False,videoPath='./test/test.mp4',fps=3)
@cv2Decorator.CalculateFps(draw = True)
@cv2Decorator.MirrorFrame()
@cv2Decorator.ConvertCOLOR(converter=cv2.COLOR_BGR2GRAY)
def all_actions(**kwargs):
frame = kwargs['frame']
# detect face from trainerd data and detectMultiScale use to deteat every size of face
face_coordinate = kwargs['face'].detectMultiScale(kwargs['color_converted'],1.3,5)
# saveFrame(frame=frame,count=kwargs['frame_count'],destination='./test2')
detectionBox(detectedArr=face_coordinate, frame=frame)
show_all_frames(kwargs)
return kwargs
kwargs = all_actions()
there is no significant frame drop with all the small util abstraction causes less code
ok no issue
thanks for look man
Kindly paste the code in this format.
...
Easier to read.
''''
# reading a video from the directory
@cv2Decorator.TotalTimeTaken(show=True)
@cv2Decorator.DetectInEachFrame(detector=cv2.CascadeClassifier(cv2.data.haarcascades+"haarcascade_frontalface_default.xml"),name='face')
@cv2Decorator.AccessCamOrVideo(show=False,videoPath='./test/test.mp4',fps=3)
@cv2Decorator.CalculateFps(draw = True)
@cv2Decorator.MirrorFrame()
@cv2Decorator.ConvertCOLOR(converter=cv2.COLOR_BGR2GRAY)
def all_actions(**kwargs):
frame = kwargs['frame']
# detect face from trainerd data and detectMultiScale use to deteat every size of face
face_coordinate = kwargs['face'].detectMultiScale(kwargs['color_converted'],1.3,5)
# saveFrame(frame=frame,count=kwargs['frame_count'],destination='./test2')
detectionBox(detectedArr=face_coordinate, frame=frame)
show_all_frames(kwargs)
return kwargs
kwargs = all_actions()
Ok, so can you explain a bit about what you are trying to do?
whenever i need to test something or trying to implement and testing if something is possible there is a lot of code just manipulate the image and read then defining different detectors etc , then actual testing
i am trying to minimize the steps here
this is not just for testing, you can use in production also
thinking of put out a pypi package for the same
Hes not wrong tho
Discrete Logarithm problem
The discrete logarithm problem (DLP) is the basis for several cryptographic primitives. Since Shor's work, it has been known that the DLP can be solved by combining a polynomial-size quantum circuit and a polynomial-time classical post-processing algorithm. Evaluating and predicting the instance size that quantum devices can solve is an emerging...
@wind raptor Today is my birthday!!!!!!
@turbid sandal S dnem rozhdenya
Happy birthday!! π Hope you have an awesome day!
I wasn't in the text chat and am dealing with my kiddos making a rather large mess of the cloakroom.
@upper basin What's your project on? (I can't talk on vc)
Hello
hi
Hello
Hallo
π
Hello
textstr = text[:15]
Hello
Please stop spamming the same word
js
headaches
trying to figure out how to access the shadow DOM
via my normal js script
Hey
Up to but not including -1.
Yeah
It would be equivalent to reversed(range(self.M-2)) I think.
Maybe you have amnesia π
Although I've had that experience reading code I wrote in the past π€·ββοΈ
π
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
!code
import time
import random
cookies = 0
perclick = 1
persec = 0
priceC = 10
priceS = 100
while True:
action = input("What action you want to do? click/upgrade mouse/quit: ")
if action == "click":
cookies = cookies + perclick
print(f"you've got {cookies} cookies")
elif action == "upgrade mouse":
if cookies >= priceC:
cookies = cookies - priceC
perclick = perclick + 1
print(f"you've got {cookies} cookies")
else:
print(f"you need {priceC} cookies")
print(f"you've got {cookies} cookies")
#elif action == "upgrade grandmas":
#if cookies >= priceS:
#cookies = cookies - priceS
#persec = persec + 1
#print(f"you've got {cookies} cookies")
#else:
#print(f"you need {priceS} cookies")
#print(f"you've got {cookies} cookies")
if action == "cheat":
cookies = cookies + 100
print(f"you've got {cookies} cookies")
elif action == "quit":
break
cookies = cookies + persec
AC was just giving a demo π
I'm underappreciated (princess pose)
Β―_(γ)_/Β―
!stream 1196078007694147635
β @gray kraken can now stream until <t:1709393858:f>.
You need a way to cleanly send a signal to the thread to stop: ```py
running = True
def updatethread():
global cookies
while running:
time.sleep(1)
cookies = cookies + persec
thread = threading.Thread(target=updatethread)
@wind raptor My code is not working!
Traceback (most recent call last):
File "c:\cProgramFolder\cTerminal\cterminal.py", line 255, in <module>
theme = json.loads(settings_json)["color-theme"]
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)```
with open("settings.json", "r") as f:
settings_json = f.read()
print(settings_json)
theme = json.loads(settings_json)["color-theme"]
app = QApplication(sys.argv)
main_window = MainWindow()
main_window.show()
print(settings_json,theme)
MainWindow.set_color_theme(main_window, theme)
@chilly magnet
I just need to know why its not working
Nmv
lol
settings.json was empty im a idiot
That would do it
is there a reason to use that instead of daemon?
does the daemon=True setting stop the thread 'uncleanly'?
https://codepen.io/mindful-dev/pen/MWRWVGJ @upper basin
In this case I think daemon is probably fine. But there's this note in the threading documentation:
Note Daemon threads are abruptly stopped at shutdown. Their resources (such as open files, database transactions, etc.) may not be released properly. If you want your threads to stop gracefully, make them non-daemonic and use a suitable signalling mechanism such as an Event.
oh okay, that makes sence.
i'll keep that in mind in the future
Cya π
How do you handle migrating the data?
Ah right.
Right π€
Would you create like, views (?) so that existing applications don't break.
Ah right
ic
Yo
Erm, I'd was just about to go eat (late) lunch π
Gotta go cya π
!stream 717749310518722691
β @whole bear can now stream until <t:1709396340:f>.
!stream 1196078007694147635
β @gray kraken can now stream until <t:1709396560:f>.
\
Avatar : The last dev
does anyone use vim here?
I use it when I'm working on linux
[rec]
oh cool
btw can I get streaming privilege?
I have to take reviews from ppl about my website
@karmic obsidian you are responsible for anything on your screen. Make sure you don't break any #rules or #code-of-conduct.
!stream 1042695138826268692
β @karmic obsidian can now stream until <t:1709398070:f>.
guys can you review my site?
I made a website to chat with csv files
hey hi @somber heath
how are you?
Can you share a link?
@somber heath sorry i had to step away from my pc.. did you say you have a stomach bug? intestinal bug?
another user here has the same issue.. wondering if it's a global epidemic like covid
I thought we can't advertise anything in here
https://csv-bot.streamlit.app/
here is the link
This app was built in Streamlit! Check it out and visit https://streamlit.io for more awesome community apps. π
guys, what is the name of the pizza that has like banana slices in it and is like nutella
@peak depot @somber heath if you both have the same undiagnosed bacteria, we could be looking at a global epidemic
unlikely π
Abomination.
I mean, people can like things.
I wasn't serious.
@peak depot I think I might be able to sneak in some more sleep.
Anyone want to take a look at my project and see if theres any things I should work on?
Whatβs upππΎ @wind raptor ππΎ
Just a daily reminder that pizza on pineapple do not go together.
You are welcome π€
It was a typoπ€£π€£
I'm good, you?
More like your subconscious correcting you
I had nightmares last night?
I refute thisβΌοΈ
Use ruff to format your code, indentation is messy
How are you doing @austere linden
I had a nightmare last night, that a brother of mine named @wind raptor, likesπonπ
π€’π€’π€’π€’π€’π€’π€’π€’π€’
Thanks
Brb. Gotta pack the kids an overnight bag cause they are having a sleepover at grandmas!
π π 
is accenture evil?
back
What kind of job do you do now?
I really enjoyed symbolic logic π
And probability, which it turns out is kind of a sort of logic.
You might enjoy probabilistic programming
You're thinking of fuzzy logic I think Griff, or probability
Learn TLA+ π
It's a formal verification system for distributed systems
Are you sure you're still employed Griff π€
I believe it's great to have a senior programator at hand when you are "newbie" it's safer for both companies and you isn't it?
Congratulations π
Alright
How are y'all anyways? I finally finished another project today c: edge detection on images
I had to remove a part of the windows being displayed for reference cuz the killing of them didn't work somehow
It's a part of a project for the academy of sciences.
That's Beatin the purpose
Well I think the bot is gonna be using a very philosophical language
do i have to verify that i typed 50 messages
or
tf is that
jiggabyte
Make the guidelines based on cynicism @whole bear
You gotta click verify again
where
Thx Alex I am typing to slow π
I ran smartly π€
Hmm voice kicked me how so?, I don't know probably client side
Oh yeah nevermind it's the ping
Goodnight guys
k;double sin()
,cos();main(){float A=
0,B=0,i,j,z[1760];char b[
1760];printf("\x1b[2J");for(;;
){memset(b,32,1760);memset(z,0,7040)
;for(j=0;6.28>j;j+=0.07)for(i=0;6.28
i;i+=0.02){float c=sin(i),d=cos(j),e=
sin(A),f=sin(j),g=cos(A),h=d+2,D=1/(c*
he+fg+5),l=cos (i),m=cos(B),n=s
in(B),t=chg-f* e;int x=40+30D
(lhm-tn),y= 12+15D*(lhn
+tm),o=x+80y, N=8*((fe-cdg
)m-cde-fg-l dn);if(22>y&&
y>0&&x>0&&80>x&&D>z[o]){z[o]=D;;;b[o]=
".,-~:;=!#$@"[N>0?N:0];}}/#!!-/
printf("\x1b[H");for(k=0;1761>k;k++)
putchar(k%80?b[k]:10);A+=0.04;B+=
0.02;}}/*****####!!=;:~
~::==!!!****!!!==::-
.,~~;;;========;;;:~-.
..,--------,/
yes
It probably helps
ya
Only if you work for a bank
thats considered high anywhere for a jr role
not super high but higher
trying to find something remote
Gotta go π
looks like a dyson fan
Rocking that eye of Sauron thing.
!stream 632762189257768960 3d
β @frozen owl can now stream until <t:1709677215:f>.
!stream 605393032929607683
β @haughty sonnet can now stream until <t:1709418390:f>.
COME ON AND SLAM!
Texture Pack: https://youtu.be/SAf7IZ4jrUI
Vanilla PvP Community Discord: https://discord.gg/cpvp
My Discord server: https://discord.gg/marlow
FOV: 90
DPI: 2000
Sensitivity: 100%
Servers:
mcpvp.club / eu...
@fallen tartan We are in this channel π
yes
hey
thanks
and yes my name is sasha π
nope
but i want to
thank you!
yeah because i need it for touchdesigner
i do audioreactive visuals
yes!
.
okay so basically i'm a composer and recently i begun to do more experemental electronic stuff and i think it'll be cool to do visuals for concerts and have side skill to earn money
yes, but not quite. i'm also composing 'classical' music and do conducting as my second department, but i definitely want it to be the part of my life.
but also i like just programming, because i do livecoding in language minitidal, it's fun :))
where are you guys from?
nice! i'm from russia, but currently live and study in slovakia
haha i'm 18
and you're studying?
ooooo sounds cool!
do you have any tips on resources as books or tutorials of basics of python?
btw i like falafel
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Practical data skills you can apply immediately: that's what you'll learn in these no-cost courses. They're the fastest (and most fun) way to become a data scientist or improve your current skills.
thank you very much!
GUIDOOOO
@somber heath
#
import unittest
from src.homework.h_strings.strings import get_dna_compliment, get_hamming_distance
class Test_Config(unittest.TestCase):
def test_get_hamming_distance(self):
self.assertEqual(get_hamming_distance("GAGACCTACTAACGGGAT", "CATCGTAATGACGGCCT"), 7)
def test_get_dna_compliment(self):
self.assertEqual(get_dna_compliment("AAAACCCGGT"), "ACCGGGTTTT")
import unittest
from tests.homework.h_strings import tests_strings
suite = unittest.TestLoader().loadTestsFromModule(tests_strings)
unittest.TextTestRunner(verbosity=2).run(suite)
ModuleNotFoundError: No module named 'src.homework.h_strings.value_return'
@lilac whale @reef warren π
hi
@trail field π
@wind raptor id recommend you to donate
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
-2 -2
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
{-1, -2}
!e py print({-1: 'a', -2: 'b'})
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
{-1: 'a', -2: 'b'}
!e ```py
a = -1
b = -2
print(id(a), id(b))````
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
140348051124456 140348051124424
