#voice-chat-text-0
1 messages · Page 1041 of 1
import random
from tkinter import *
from random import randint
import time
import threading
root = Tk()
root.attributes("-alpha", 0)
root.overrideredirect(1)
root.attributes("-topmost", 1)
def placewindows():
while True:
win = Toplevel(root)
win.geometry("300x60+" + str(randint(0, root.winfo_screenwidth() - 300)) + "+" + str(randint(0, root.winfo_screenheight() - 60)))
win.overrideredirect(1)
Label(win, text="You got hacked", fg="red").place(relx=.38, rely=.3)
win.lift()
win.attributes("-topmost", True)
win.attributes("-topmost", False)
root.lift()
root.attributes("-topmost", True)
root.attributes("-topmost", False)
time.sleep(.05)
threading.Thread(target=placewindows).start()
root.mainloop()```
just try running thsi
yes
hey @wet parcel
hey @wet parcel try running the code
in visual code
i dont;'t think it ned
the modules
it gets connected
with
the python setup
just try runnign it
but make sure to share your screen while you are running
it rings like this
@wet parcel
pasta
where was pasta invented
@karmic hazel
hey @wet parcel
@karmic hazel where pasta was invented
hey @wet parcel tyr running the code
try
why should I do that?
just i made it
i want you try
and tell me about my coding skills
nope
i cofirm
confirm you
just see how this work
i'll send you a video
@wet parcel
wait some issue
ok byr
bye
@somber heath how are you
my sister
bye guys
Hi Rabbit
@rugged root
Are we using new chat or old chat today?
I want to use other channels
Then new chat goes away
I hate it
@rugged root - Why can't @viscid lagoon see them?
Update it then
They're both secrets dammit
And speaking of
WHY do half the endpoints use static bearer tokens, and the other half use OAUTH
Because god hates us
Can we protest Discord?
Can we make our own Discord?
Todays lucky 10000, or one of 10000 standards?
People just call me dog
It's simple, it works
Is there an issue for updating @viscid lagoon ?
auto_guild?
PR webook into dev, and then dev into main
I think
Jake!
We were just talking about you
Discord's API
allowed_mentions=[]
Done
! is for roles, isn't it?
TOLD YOU SO
@ everyone hi guys
have you tried turning it off and on again?
Did he do it already?
Joe hasn't mentioned it yet
yo
@umbral lotus What's up?
Hey! You get your hands away form me!
Is anything high on Discord's priority list?
Other than ducking up the API documentation?
giant dev team and no progress? feel familiar?
what about math
Nope
I'm a one man band
Hopefully not for much longer though
better to just ask, nobodys gonna want to actually say "im good with math" but if maybe they recognize your question it doesnt matter if theyre good
fair lmao
!stream 481472501621456916
✅ @umbral lotus can now stream until <t:1657549152:f>.
i unplugged and replugged it it works now
money orders and cashiers checks are still very common
I had to get a money order for my passport
when you're buying a car or legal stuff they only accept money order/cashier check
Why is this BTW?
@rugged root - where do you think the milkman gets his deliveries from?
https://en.wikipedia.org/wiki/Ayam_Cemani A chicken that is entirely black
The Ayam Cemani is a rare breed of chicken from Indonesia. They have a dominant gene that causes hyperpigmentation (fibromelanosis), making the chicken mostly black, including feathers, beak, and internal organs. The Cemani is a very popular gamecock for cockfighting in Bali because their thighs have much more muscle compared to other chickens, ...
Entirely
Feathers, comb, beaks, eyes, meat, organs, bones
Everything
Except for the blood
And their eggs are normal colored
racist
Average colored
Huh
The Silkie (also known as the Silky or Chinese silk chicken) is a breed of chicken named for its atypically fluffy plumage, which is said to feel like silk and satin. The breed has several other unusual qualities, such as black skin and bones, blue earlobes, and five toes on each foot, whereas most chickens only have four. They are often exhibit...
I've gone down the weird chicken rabbit hole
In the early 16th century, French monk Francois Rabelais released his famous comic work Gargantua and Pantagruel. A satire on (among other things) Renaissance learning and the Europe of the time, it nonetheless contained plenty of digressions on all sorts of odd topics. The oddest of these would probably be the passage where Rabelais recommends ...
anything after * is kwarg-only
@rugged root https://stackoverflow.com/a/59661137
I was interpreting Hemlock as wanting something that he didn't
for no reason
mind just jumped straight to the slash
There are very few government checks on what America’s sweeping surveillance programs are capable of doing. John Oliver sits down with Edward Snowden to discuss the NSA, the balance between privacy and security, and dick-pics.
Connect with Last Week Tonight online...
Subscribe to the Last Week Tonight YouTube channel for more almost news as it ...
It was to explain a point
sorry, though can i ask why?
people are curious and try things
i would have asked the same of anyone in any channel
everything was blurred tho and the invite invalid

!range-len
Iterating over range(len(...)) is a common approach to accessing each item in an ordered collection.
for i in range(len(my_list)):
do_something(my_list[i])
The pythonic syntax is much simpler, and is guaranteed to produce elements in the same order:
for item in my_list:
do_something(item)
Python has other solutions for cases when the index itself might be needed. To get the element at the same index from two or more lists, use zip. To get both the index and the element at that index, use enumerate.
This code promotes bad practices.
don't use loops 🙃
!e py text = "abc" for i, v in enumerate(text): print(i, v)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 0 a
002 | 1 b
003 | 2 c
!e
for i, _ in enumerate(range(1000, 10_000, 1000)):
print(i)
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
011 | 10
let text = "abc".to_owned();
for (idx, _) in text.chars().enumerate() {
println!("{idx}");
}
x = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
for i, _ in enumerate(range(len(x), -1, math.sqrt(-1))):
print(i, _)
sry my client wasn't showing hemlock in vc. maybe repost the whole qr code and invite link blurred
parts of the qr code looked blurred but i wasn't sure
and i wouldn't know that a server invite is invalid
its fine it was only to illustrate a point
** 0.5
!e```py
import math
x = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
for i, _ in enumerate(range(len(x), -1, math.sqrt(-1))):
print(i, _)
@quasi condor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | ValueError: math domain error
I was making it deliberately bad.
cmath
!e
import math
assert math.sqrt(-1) != 1j, "error exists between keyboard and chair"
@willow light :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | ValueError: math domain error
!e ```py
for i in iter(int, 1):
print(i)
if i > 10:
break
@faint ermine :x: Your eval job has completed with return code 143 (SIGTERM).
001 | 0
002 | 0
003 | 0
004 | 0
005 | 0
006 | 0
007 | 0
008 | 0
009 | 0
010 | 0
011 | 0
... (truncated - too many lines)
Full output: too long to upload
!e
import math
math.sqrt(-1+0j)
@quasi condor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: must be real number, not complex
!e
import cmath
print(cmath.sqrt(-1))
@modest bolt :white_check_mark: Your eval job has completed with return code 0.
1j
Reject the PR with Great Prejudice
LOL
We've had a few password changes because our interns did exactly that.
!e
type(2i+5j)
@quaint oyster :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | type(2i+5j)
003 | ^
004 | SyntaxError: invalid decimal literal
Ig im gonna be the same in the beginning of CS carreer..
nah. just j works
oh yea
just use j, because python used an engineering textbook rather than a physics or math one
thats p dumb nvm
!e
print(type(2+5j))
@quaint oyster :white_check_mark: Your eval job has completed with return code 0.
<class 'complex'>
I think it's a pretty accurate description
KLOL
In mathematics, the domain of a function is the set of inputs accepted by the function
it matches up perfectly with the mathematical idea of a domain
it expects prior knowledge of math which isnt great
but is anyone using sqrt without understanding sqrts?
I suppose so yeah
fair enough
it was today when i learned that it was called domain.
pretty easy to do that, I've personally witness a freshman who clearly didn't understand complex numbers try to mansplain them to the professor
!docs math
This module provides access to the mathematical functions defined by the C standard.
These functions cannot be used with complex numbers; use the functions of the same name from the cmath module if you require support for complex numbers. The distinction between functions which support complex numbers and those which don’t is made since most users do not want to learn quite as much mathematics as required to understand complex numbers. Receiving an exception instead of a complex result allows earlier detection of the unexpected complex number used as a parameter, so that the programmer can determine how and why it was generated in the first place.
!e
print(real(5j))
!docs numpy.ndarray
class numpy.ndarray(shape, dtype=float, buffer=None, offset=0, strides=None, order=None)```
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.)
Arrays should be constructed using [`array`](https://numpy.org/devdocs/reference/generated/numpy.array.html#numpy.array "numpy.array"), [`zeros`](https://numpy.org/devdocs/reference/generated/numpy.zeros.html#numpy.zeros "numpy.zeros") or [`empty`](https://numpy.org/devdocs/reference/generated/numpy.empty.html#numpy.empty "numpy.empty") (refer to the See Also section below). The parameters given here refer to a low-level method (*ndarray(…)*) for instantiating an array.
For more information, refer to the [`numpy`](https://numpy.org/devdocs/reference/index.html#module-numpy "numpy") module and examine the methods and attributes of an array.
!e
import numpy as np
print(np.real(5j))
@willow light :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | AttributeError: module 'math' has no attribute 'real'
ok...time to hunt it down
well
!docs numpy.imag
numpy.imag(val)```
Return the imaginary part of the complex argument.
oh cool
there is a real and imag in stdlib
Imagine dragon curves.
I like NumPy better.
!e
import numpy as np
print(np.real(5j))
@willow light :white_check_mark: Your eval job has completed with return code 0.
0.0
@willow light :white_check_mark: Your eval job has completed with return code 0.
1.0
!e
print(5j.real)
@modest bolt :white_check_mark: Your eval job has completed with return code 0.
0.0
klass
className
klaß
class_
cls
@klassmethod
def class_(cls):
...
!e
klaß = 'test'
☕ = 'test2'
@quasi condor :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | ☕ = 'test2'
003 | ^
004 | SyntaxError: invalid character '☕' (U+2615)
def fun(x):
yeet x
You can use emoji in dictionary keys, thus in globals().
!e
globals()["🍵"] = "tea"
print(globals()["🍵"])
@modest bolt :white_check_mark: Your eval job has completed with return code 0.
tea
!e
globals()["🍵"] = "tea"
print(🍵)
@quasi condor :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | print(🍵)
003 | ^
004 | SyntaxError: invalid character '🍵' (U+1F375)
not a valid identifier 🥴
I just thought there might be a tiny chance that it was different between assigning and getting back variables
Goo goo g'joob
healthcare = 20,000usd/y
lost holiday = 20,000usd/y
still come out ahead on the median salary in the US than in the UK
LOL
@olive yew We typically don't make exceptions on voice verification
ah
See #voice-verification for more details
Force of habit to point to it, sorry
but its different europe vs americas etc
where do you live and ur paying 25% vat?
croatia?
He's in Germany
ok I also pay 24% vat
tip: you only have to pay % of vat
if you work with same country
you can work with any country in europe and pay 0% vat
and then just pay % of income tax
https://www.oecd.org/tax/tax-policy/taxing-wages-germany.pdf German tax wedge - 48%
I thought vat was sales tax
https://www.oecd.org/unitedstates/taxing-wages-united-states.pdf US tax wedge - 28%
I will complain all I want when I live in a place where getting a nosebleed can bankrupt most single-family households.
Actually, in the US, the minority of shootings happen in theatres. You're far more likely to get shot at while driving.
you need to make anywhere from 2 to 4k , clean money after tax so you can have an ok life
in eu
A month?
ye
And I was super confused
@quasi condor the stat is averaged over the area, and there is a lot of the US where there are no people.
you need that as minimum
so you can afford a car
a nice house
and live decently
without noodles 24/7
I have bullet-proof windows where I live. There is a good reason for that.
u guys talking about gun shooting in US
active gun shooting
but compared to the % of the population (total population) its nothing
in europe you can hire an albanian for murder for 10k
compared to % of population
tell that to the bullet holes in the exterior wall of my apartment
comes higher than US active shooting
us population is 329.5 mil
even if 1% is criminal
thats 3.2mil
thats alot
murder per capita then increases
germany population is 83.24mil
1% is less
do the math
why we're even comparing eu with us
because there is a lot of eu on this server
I can't hear you over the gunshots outside.
is like 15k a month in us
if you want to buy propery in NY it will cost 1mil+
while in ger you can buy one for 100-150k
soooo
Remember: we're talking about a country that believes in gun care and health control.
I get it
but take as an example germany
germany has ghetos and crap
depends on other factors
someone might murder you
that 0.5% can turn to 50%
there's no standard factor
random violence is random violence
and more factors make it non-random
Yeah, but you're far less likely to be targeted for having dark skin, for example.
thats not true
Or for having a different native language.
depends on the areas
but you can be smart
if you know as an example in germany
theres a gheto with dark skin people
you dont fucking go there wiggling your rolex
if criminal rate is high
as an example
same vice versa
Not quite sure how to feel about that part.
theres also gheto with light skin people
You can be in shitty areas and get mugged by anyone
Sure, just an odd thing to point out specifically
reduce propability
Doesn't look great
and its higher in germany lol
@peak copper it's fine, I'm used to people not giving a damn about my health
Oh yes, because it is so easy to leave the US.
it is
The only country outside the us I have any chance of going to at all is germany, and that's only because my grandfather was forced to renounce his german citizenship due to political reasons in 1939
No I cannot, I have been trying for ten years.
how is that even possible
Every time I mention I have a disability they tell me to get lost.
Tell that to the embassy
if u dont have criminal record then its easy
I can get german citizenship once we can get the german government to accept that my grandfather's birthplace actually existed at one point. It was completely wiped out in the 1940s and turned into a park.
oh sure, bribing, because that won't come back to bite me in the ass later on
no need to bribe
I'd prefer to stay as legal as possible thank you very much
you can basically buy citizenship
ye
@mild quartz raising kids seems to me like you care far more about a lot of the marginal things: the fact food standards are worse, the fact that almost everything is slightly less safe, various cultural aspects that seem worrying to me
I thought that was banned in the EU?
which is why the US seems like a worse choice for raising kids
its called citizenship by investment
true
I think Monaco is one of the only European countries offering golden passports
so essentially buy citizenship
Ok, let me start a business real fast.
yis!
Malta*
I'd prefer Germany or Spain since I actually know a little of their respective languages.
germany is not a great place for that but heres the thing: you only need citizenship in any EU country
true
Too damn tired
I'd prefer Germany for family reasons. Returning to the land of my ancestors, that kind of thing.
you can buy a square meter of land in wales
and become sir ClariNerd
then flex for german citizenship
sure, but thats easy once you have any EU citizenship
"I'm Royal"
This is more about righting the wrong done to my grandfather. If it were just me trying to get into the EU for myself, then I'd go for it other ways.
If I buy my way into the EU, it's just me. If I get my grandfather's citizenship returned, it could potentially go to the entire family.
you've got a point
I dont like cloudflare lol
Cloudflare annual revenue for 2021 was $0.656B, a 52.28% increase from 2020. Cloudflare annual revenue for 2020 was $0.431B, a 50.18% increase from 2019.
To be completely honest, it isn't so much about moving to Europe as it is returning to Europe.
I want to do it right
I have three motherlands to choose from. Norway, Sicily, Germany.
My grandmothers left Norway and Sicily voluntarily. My grandfather was forced out of Germany. That's why I want the German citizenship. So I can undo an old injustice.
Ease of use makes a huge difference
well they target simple users
not enterprises
so they just make money in bulks
for a small fee
there's sophisticated solutions and architecture and shit u can use
ThEY'Re CAllED "pAniCS"
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
with?
on my project
whats the issue
ui with pytone
tkinter or jango i dont know im new
man im work on information retrival
man i know syntax
man i cant speak eng very well
👍, take your time
are you asking which UI thing to use? or do you need help with a specific way of doing UI?
i never do ui with pytone and i dont know how should i do it
i must ask client to enter query
and i show him the result
so you are asking what to use to show a UI?
maybe
in that case, if you have very little experience, i would recommend PySimpleGui
https://pysimplegui.readthedocs.io/en/latest/#pysimplegui-users-manual
None
Or another language that is more GUI focused.
rabbit. no. not for a complete beginner.
Yes, embrace the C#
dose it work with tkinter?
it uses tkinter in the background
@amber raptor - Would you be willing to download an entire container to run a script that made 7 REST API calls that you only need to run once, possibly ever?
are you already using tkinter?
No
no its my first time
would you be willing to pip install a tool that did it?
Maybe?
Yeah, I can't get behind this argument
Container just seems way too heavy
I mean, Python sucks for this in general?
I’ve run into this with Python
What would you use for scripting?
Most of the people I've met recommending using Python as the "glue" language for scripting
conda create -n myenv python=2.7
its prolly a case in a company that hates python
Python, but python still sucks
venvis not an industry standard tool, it's just a Python standard tool
node_modulesis not an industry standard tool, it's just a Node standard tool
Python needs a system where you can download packages into a folder so you can reference them.
pdm?
conda?
we are just complicating this, people will just do it in their easiest way, there is no 1 standard way to do things @zenith radish , you cannot enforce a certain standard to test things
!pep 582
man
Doesn't poetry kinda do that?
Does Conda let you pull down all the packages into a folder
Design a simple graphic page that the user can use to enter his query
he does.
Then a list of search results will be shown to him, which he can click on any result, open the file related to that result.
i want this
To hell with Poetry
@zenith radish sir
guys
pip and python both seem to be able to use this folder on their own if you create it with PDM
can some one help me with this ?
Design a simple graphic page that the user can use to enter his query.
Then a list of search results will be shown to him, which he can click on any
result, open the file related to that result.
that sounds an awful like docker?
So... nixos?
That's literally node_modules
Is this not what the pyproject.toml is?
I think we can all agree that there are imperfect solutions to this, and we need a better one.
That's the metadata, not the packages themselves?
Why?
Everyone thinks their language of the day/week/month/year is the greatest ™️
- month/day/year
because americans don't know how dates work
but at least it isn't as bad as Excel when you try to put in dates.
But in the real world ™️ , if it works, it works, don't worry about it
########
If it works, it works. Literally my mantra when I look at my shitty code from three years ago that still runs.
Denouncing a language because of things like this is like me denouncing the English language because, no matter how hard I try, I still end up annoying everyone whenever I use it.
I could do so, but it would be completely invalid
We need a system that pulls down everything locally so you can just run that.
agreed
Doesn't nixos do this?
Python Enhancement Proposals (PEPs)
Everyone's lives would be so much easier if we had 1. a simple way to do that and 2. that everyone actually used it
that's the hardest part: getting everyone on-board with the new way of doing things.
I know for a fact the data science folks, as well most people who also use R and Matlab will refuse to use anything other than conda. I still use it entirely out of habit, no other reason.
It hasn't failed me yet, so I have no reason to switch to something else.
for future reference: "elucidate" == "expound upon"
what's an "expound"?
Why isn’t this done?
things are slow
expound == deobfuscate
when are they not?
this is the PSF just not being aligned with the things actual Python users want
I don't know
But, I installed PDM, ran git clone auto_guild then pdm install, which created a __pypackages__, and then Hemlock ask me to test a dependency, and I ran pip install new-dep and - no wait I can't - ohnotwait it worked?
If you use another tool to create a __pypackages__, it looks like both python and pip are both already able to detect it and use it
interesting...
PDM is not industry standard and never will be. This means that when you encounter problems, figuring out whether they're python problems or pdm problems is very difficult
heck off with your "industry standard "
but it relates directly to the next point
the more ubiquitous a tool is - the easier it is to research issues for
if I google "pip, failed to find XYZ header" I get a result telling me <do this to fix it>
if I google the same for PDM, there's a good chance I don't get any relevant results
I don't think these discourse monkeys understand. First off, release is mostly handled, docker, done.
Windows is used to write legacy code for corporations.
macOS is used by college students to run Microsoft Word.
Linux is used by people who like to attack each other over everyone else's favorite programming language.
Go ahead and reject and resolve the suggestion
And then feel free to merge
Is there anything else you want to do to dev before you merge to main?
Giving you a bigger monitor is not handled by the sysadmin
That will be desktop support
That's why you use microservices and not monorepos
.uwu
weww n-nyow i'm just questioning evewything i-i wrote
o/ @hollow haven
Your input was invalid: Your message must have content or you must reply to a message.
Usage:```
.uwu [text]
hewwo thewe, i am a systems administwatow f-fow w-wawiwuwewo
The commentary on the issue is great https://github.com/python-discord/sir-lancebot/issues/812
That's my line
@upbeat leaf
@faint ermine
sir-lancebot#812 sir-lancebot#879
there was a missed opportunity to call that commit Uwuification unsatisfactowy
sysadmin for what‽ 
Megalithic
Megapolis
Megaloctupus
A megalopolis () or a supercity, also called a megaregion, is a group of metropolitan areas which are perceived as a continuous urban area through common systems of transport, economy, resources, ecology, and so on. They are integrated enough that coordinating policy is valuable, although the constituent metropolises keep their individual identi...
I'ma big boi bum
Toxic positivity or sometimes positive toxicity is a dysfunctional approach to emotional management that happens when people do not fully acknowledge negative emotions, particularly anger and sadness. It is a "pressure to stay upbeat no matter how dire one's circumstance is", and this pressure may prevent a person from coping emotionally with su...
Klaipeda
We're rating GitHub's now?
How terrible am I?

@south bone all the audio is feeding through your mic
maybe wear headphones?
oh hi @rugged root I just mentioned you in https://github.com/python-discord/organisation/issues/347 maddafakka
the approach probably isn't right, but how do i get around this?
hi
!voiceverify
@whole bear WHAT DOES THAT MEAN
whats up?
well-well
@oblique valley what are you doing
which type of project
@somber heath hello
hello
@somber heath
@oblique valley which project are you doing
you talked about webscraping
i wanted to get into it
where should i start
okkkkkkkkk
do you use arduino
did you share your code in any channel
ok
is @somber heath afk
Otherwise occupied.
Now I'm going afk, though.
!e
import time
import itertools
start = time.time()
things = list(range(100))
result = itertools.combinations(things, 4)
list(result)
end = time.time()
print(end - start)
@quaint oyster :warning: Your eval job timed out or ran out of memory.
[No output]
takes a long time do even 100c4
!e
import time
import itertools
start = time.time()
things = list(range(100))
result = itertools.combinations(things, 3)
list(result)
end = time.time()
print(end - start)
@quaint oyster :white_check_mark: Your eval job has completed with return code 0.
0.03253746032714844
100c3 is more feasible
@gentle flint 👋
Have you seen my Java?
BTW - Send all those recruiters over to me
That was my interpretation of country rap
Get Tickets to see Dorian Electra on Tour 2022: www.dorianelectra.com
Pre-Order My Agenda (Deluxe) Album (Vinyl & Digital) out Nov. 5: www.dorianelectra.com
Stream/Download Dorian Electra's project "My Agenda" here: https://dorianelectra.ffm.to/myagenda
Featuring Rebecca Black ( @rebecca )
Directed by Dorian Electra & Weston Allen
Edited by We...
@gentle flint
"weaboof"
- @rugged root
shut
I'm not proud
You ought to be.
.github/CODEOWNERS line 12
.github/workflows/** @MarkKoz @SebastiaanZ @Den4200 @ks129```
Require reviews from devops to update workflows
Devops reviews PRs all the time
@zenith radish
Get me hired at Microsoft
still more than I make now 😭
❓
Oh the code owner thing
oh, yeah
It's not actually enforced because we have the policy-bot
Shop the Dell XPS 15 laptop featuring 16:10 4-sided InfinityEdge display & 100% Adobe RGB color, or view all new XPS laptops at Dell.com.
'
14 core processor btw
20 threads
exactly which is inferior to the ARM SOC
also you're missing out on the 18h battery life
Why don't the rest of the cores get threads?
Likely low power cores.
Good point
much better
10-Core CPU
32-Core GPU
32GB Unified Memory
1TB SSD Storage¹
16-core Neural Engine
16-inch Liquid Retina XDR display
$3,499.00
16 inch macbook pro
12th Generation Intel® Core™ i9-12900HK (24MB Cache, up to 5.0 GHz, 14 cores)
Windows 11 Home, English
NVIDIA® GeForce RTX™ 3060, 6 GB GDDR6, 60 W
64 GB, 2 x 32 GB, DDR5, 4800 MHz, dual-channel
2TB M.2 PCIe NVMe Solid State Drive
3,099.00
17 inch xps
@zenith radish
tell me
that's not more expensive
You don't need 32GB of RAM for MacBook Pro
Chris sent my this yesterday https://devtoys.app/
It looks really neat - PowerToys, the dev version
lol I just maxed it out
that's all I was proving
yeah\
what spec?
I'm going 4-6 days between charging.
I got really frustrated with MacOS
Especially the tooling
Do you use Homebrew?
nice
mhm
but homebrew installs git
Oh right
Yeah, I've made a couple of CodeSpaces to play with the concept
I've been liking it

do you think 16 inch is a must @amber raptor ?
Jake, I use my laptop standalone a ton so extra screen real estate is nice, it's much heavier though
yeah
it's about 5 pounds
can I use it in GitHub?))))
xps has keyboard issues sometimes
It's also a plastic hunk of shit
@zenith radish python def severence(years_of_service:int, weekly_salary:int) -> int: base_weekly = 4 if base_weekly + years_of_service < 26: return (base_weekly + (years_of_service)) * weekly_salary else: return 26*weekly_salary
yea, I realized I screwed up (), whatever
def severence(years_of_service:int, weekly_salary:int) -> int:
base_weekly = 4
if years_of_service + base_weekly > 26:
years_of_service = 26
return (base_weekly + (years_of_service)) * weekly_salary
Right?
Sure
that works as well
wait no
that's wrong
because base_weekly counts into your service
fixed
thanks
still wrong
oh I see
it's 26 total, base weekly counts
hmm
I think it has to be your way then
so after 22, your additional years of service doesn't matter
in my case, some companies will change
order of operations still counts, so you don't need the parens
@willow light
sorry, my brain is extra nit-picky when i don't have coffee
!e python print((1) + 5)
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
6
Don't blame the coffee for your actions
Thanks for not banning me.
It was topic in Voice Chat.
well, off to the mechanic. maybe after several thousand dollars of body work, this time it'll pass inspection.
It failed inspection last time because the front bumper was slightly loose, which apparently is grounds for failing inspection these days
in case anyone was wondering why i have been so on-edge lately. I'll probably be calmer when I'm not at risk of getting ticketed every time I get groceries.
Fair. And it happens, dude
Wait HOW loose was it
wiggling slightly on the left side
which is a bullshit reason if you ask me
Until it comes off, ruining your tires and others
Especially in high snow
Where it can literally be ripped off
Also brb, have to take care of a tech issue
Except it has been this way for the past three years. I don't know if the state changed the rules for inspection or something, but it passed before.
and I know for a fact that there are cars with current stickers that have their bumpers dragging on the pavement
anyway, off to meineke.
hello
Bad Apple within a file explorer. https://github.com/vcokltfre/badapplefs
guys can i ask some basics doubts related to django ?
Type it here first. What're your doubts?
@tiny socket
if i made a simple project it goes live a user can access my code using inspect what's preventing to not do changes in my HTML code
ok
lmao
ok that's cool
guys in django if i make a new page/app and i wanna add it with other code is there anyway i can do that without shutting down server?
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
just make sure your login isn't vulnerable to xss and ssi
I am trying to make a Connect 4 game
but I am pretty new to python
and I'm trying to use dictionaries to make it
Thank you for flying @rugged root air
We'll be making a quick stop at LAX for more coffee
im pretty much using dictionaries and lists to make the connect 4 grid
@zenith radish
but I can't even talk in the vc
I've gotten that before
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Docker was crashlooping because of it
@rugged root in django if i make a new page/app and i wanna add it with other code is there anyway i can do that without shutting down server?
!voiceverify
Not in production, you're going to have to restart the server
thanks
I'm very very new to python
but it seems quite easy to type up
because its not weird stuff being put in it
its all logical sentences almost
@rugged root to hot reload a dev server?
Cleaning up my documentation for a project
But beyond that not really anything huge huge
Working on a weather data microservice as a way to learn TypeScript and JavaScript...
export async function getObservations(icao: string): Promise<Observation> {
const data = await getStationData(icao);
const rawObs = data.properties;
const observations = {
temperature: rawObs.temperature.value != null
? Math.round((rawObs.temperature.value * 9 / 5 + 32 + Number.EPSILON) * 100) / 100
: null,
dewpoint: rawObs.dewpoint.value != null
? Math.round((rawObs.dewpoint.value * 9 / 5 + 32 + Number.EPSILON) * 100) / 100
: null,
windDirection: rawObs.windDirection.value,
windSpeed: rawObs.windSpeed.value,
windGust: rawObs.windGust.value,
seaLevelPressure: rawObs.seaLevelPressure.value != null
? rawObs.seaLevelPressure.value / 100
: null,
visibility: rawObs.visibility.value,
heatIndex: rawObs.heatIndex.value != null
? Math.round((rawObs.heatIndex.value * 9 / 5 + 32 + Number.EPSILON) * 100) / 100
: null,
windChill: rawObs.windChill.value != null
? Math.round((rawObs.windChill * 9 / 5 + 32 + Number.EPSILON) * 100) / 100
: null,
metar: rawObs.rawMessage,
};
return observations;
}
Rounding to two decimal places is a fun time lol
If anyone knows a cleaner way, let me know, I'm very happy to be wrong in this case.
Write a round function
No one is stopping you
One would assume Math.round() would do that, but nooooooo
inhales"
If it works, it works. I'm not going to let it bother me. Get it working first, worry about best-practices later. Corporate coding in a nutshell am I right?
Or I could just keep it all in metric and not bother with all of these conversions lol
@cosmic osprey Let me grab my class examples and I can explain the self thing
Charlie, what happened to your roles?
ok thanks!
wait you guys play ultimate?
!e
class Student:
def __init__(self, name, age, favorite_subject):
self.name = name
self.age = age
self.favorite_subject = favorite_subject
def introduce(self):
print(f"Hi! I'm {self.name} and I'm {self.age} years old. My favorite subject is {self.favorite_subject}.")
sally = Student("Sally", 8, "science")
billy = Student("Billy", 7, "math")
print(sally.name)
print(billy.age)
sally.introduce()
billy.introduce()
@rugged root :white_check_mark: Your eval job has completed with return code 0.
001 | Sally
002 | 7
003 | Hi! I'm Sally and I'm 8 years old. My favorite subject is science.
004 | Hi! I'm Billy and I'm 7 years old. My favorite subject is math.
HOKAY, so
It sucks that it doesn't have it, but just writing your own util functions makes js/ts much nicer to work with
@quasi condor stop working and come on vc
This is a rough example of classes
ok
In the office
well then leave?????
you do the hokey pokey and you turn yourself around
Ok
Cheeki 👀
me
Breeki
thanks waitin for ya
i agree
as a pm with 10 years experience in it
lp is totally right
these leetcode-ish crap is only useful for code interviews
in big companies
but in real-life is trash
@mild quartz 100% right
you can get someone who has 2 phds
and all theoritical experience in the world
but practical they're shit
i'd take practical experience over theoretical any day
give me voice verified jeez >< one more day 🐱
Bursting with joy at my imminent arrival
i might go to the store soon tho xd
prime minister or project manager?
maybe both
What kind of help?
Also don't ask to ask, simply ask 🙂
Just like geting started with coding apps with python
what kind of app
idk anything
My new HTML5 & CSS3 COURSE IS OUT NOW!
https://developedbyed.com/
In todays episode we are going to take a look on how we can build out a python gui app.
In todays era of improving our workflow, we are going to build an app that lets us auto open up a bunch of other apps that we would normally use. You can imagine it as being a workspace opener...
thanks
if you encounter any specific questions or problems, that's where we can help 🙂
guys! , can someone help me finding a certain library?
its for emulating a virtual mouse
(make the pc believe there is a usb mouse plugged)
What are you needing it for?
i need to create a second cursor
and assign it a phisical input
which is going to be controlled by a python script i made
Sounds like you could use a virtual machine to run that script
sounds harder to do what you're asking than that
yeah but i have to do it anyway
it has to run on a raspberry pi
so i cant use a vm
So you want two cursors controlling things instead of one?
is one controlled by you?
Hmm, that's a bit different then
im making a new form to interact with the pc
Most of the things I know of just hijack the one mouse
i kind of control the two of them
one with the left hand and one with the right
by using opencv
what os is your pi using
If we are talking about windows platform, you can send "click" messages directly to the application/control you want.
Read up on https://www.programcreek.com/python/example/89827/win32gui.SendMessage
You'll need to find your window handle, and send it WM_CLICK message or whatever you need, that way the mouse is not moved at all
This page shows Python examples of win32gui.SendMessage
i found this on reddit idk, ide doesn't matter
that is the main proble
m
i can already do that
but i need to create a virtual human interface device
in order to control it
Have you tried looking at the mousemux source
yeah but there is nothing
they don´t create the hid
they just assign each one to each cursor
Sorry my guy, have no idea wtf to do for you at this point
off to eat
goodnight
hello guys
can someone help me fix "missing 1 required positional argument"
?
@rugged root can you help me?
@mild quartzhow about you man?
guys?
anyone here?
@rugged root uses closed source ‼️ ‼️ ‼️
auto_guild/__main__.py line 34
def channel_parser(channel_mapping: dict[str, list[dict[str, str]]]) -> PARSED_CHANNELS:```
auto_guild/__main__.py lines 16 to 17
PAYLOAD = dict[str, str | int | list[dict[str, str | int]]]
PARSED_CHANNELS = list[dict[str, str | int]]```
I'll be back when I get in the van.
i got to this
def createDict():
GridMain = {}
for i in range(6):
GridMain[chr(65 + i)] = ['', '', '', '', '', '']
print(GridMain)
createDict()
Placeholder = input("What is your preffered placeholder 'X' or 'O'?: ")
if Placeholder == 'X':
Player_1 = 'X'
Player_2 = 'O'
else:
Player_2 = 'X'
Player_1 = 'O'
but I don't know how to make my list into a grid
I also don't know what to say further from here.
Noob mistake, assistance would be pretty schwee
import pygame
from settings_of_learning import Settings_of_rain
def rungame():
pygame.init()
settings = Settings_of_rain
screen = pygame.display.set_mode((800,800))
pygame.display.set_caption('rain')
icon = pygame.image.load('drop.png')
pygame.display.set_icon(icon)
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run=False
screen.fill(settings.__init__().bg_color)
rungame()
class Settings_of_rain:
"""A class to store all settings for the game."""
def __init__(self):
"""Initialize the game's settings."""
# Screen settings
self.screen_width = 600
self.screen_height = 400
self.bg_color = (0, 0, 0)
# ship
self.velocity = 1
# Bullet settings
self.bullet_width = 3
self.bullet_height = 10
self.bullet_speed_factor = 2
self.bullet_color = (110, 110, 110)
self.bullets_allowed = 5
hi
do u know how to use juniper notebook or google colab?
guys did u read my msg?
@neat acorn Corey Schafer, YouTuber, Playlist for Python beginners.
hey guys i only need the first entry of these dictionaries is there any way to access only thatt
like only office or building or amenity name
!d collections.OrderedDict
class collections.OrderedDict([items])```
Return an instance of a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") subclass that has methods specialized for rearranging dictionary order.
New in version 3.1.
LCARS
@main vault Your audio is degrading.
Degraded, I mean.
!e py import numpy as np arr = np.full(6 * 10, float("nan")) arr[::6] = np.arange(10) arr[1::6] = np.arange(10) + 100 print(arr) for i in (2, 3, 4, 5): arr[i::6] = arr[i%2::6] print(arr)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [ 0. 100. nan nan nan nan 1. 101. nan nan nan nan 2. 102.
002 | nan nan nan nan 3. 103. nan nan nan nan 4. 104. nan nan
003 | nan nan 5. 105. nan nan nan nan 6. 106. nan nan nan nan
004 | 7. 107. nan nan nan nan 8. 108. nan nan nan nan 9. 109.
005 | nan nan nan nan]
006 | [ 0. 100. 0. 100. 0. 100. 1. 101. 1. 101. 1. 101. 2. 102.
007 | 2. 102. 2. 102. 3. 103. 3. 103. 3. 103. 4. 104. 4. 104.
008 | 4. 104. 5. 105. 5. 105. 5. 105. 6. 106. 6. 106. 6. 106.
009 | 7. 107. 7. 107. 7. 107. 8. 108. 8. 108. 8. 108. 9. 109.
010 | 9. 109. 9. 109.]
!e py a = [v % 5 for v in range(20)] b = [v % 5 for v in range(21, -1, -1)] print(a) print(b)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4]
002 | [1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0]
@somber heath ❤️
;o
hi everyone
@wind raptor https://github.com/MrHemlock/auto_guild/pull/17
i finally made my rpg discord bot
roll dices send item photos
and store record from the players
spider bites peter parker and he turner in the spider man
ozzy bites the bat and the bat transforms into a man maybe morbius
"I'M BATMAN." 👅
how tf can i check how many days im on the server