#voice-chat-text-0
1 messages Β· Page 368 of 1
@glass skiff π
@signal torrent π
lot of bats
Hi
@quartz depot π
hi
Music video by Caparezza performing Jodellavitanonhocapitouncazzo. (P) 2005 The copyright in this audiovisual recording is owned by EMI Music Italy SpA
@slender elbow π
hello. is there any way you could help me with something in python.
https://discord.com/channels/267624335836053506/1303572617743306752
voice is borked, brb
738,432
yes, that looks right
Ik it's off topic but can someone help?
bash: /dev/fd/63: No such file or directory
@pale maple π
We fucked
gg
It's not that the US is fucked, the rest of the world is fucked. Ukraine, they are done.
@somber heath ABSOLUTELY NOT
He won't help Taiwan or any of our allies
@dense ibex Taiwan primarily only exists because of US and the US support for the country
Primairly tech companies, like chip manufacturing
If China had control over the chip manufacturing they wouldn't be selling much of them to us as well
Not only would it become much more expensive because China having control over chip manufacturing would cause prices to skyrocket and then the chips would only go to chips IN CHINA
that too
To all of you. If you live in the US, if you want to buy anything or you planned on buying ANYTHING. Whether it be a luxury or needed thing. BUY IT NOW!!!!! BUY IT NOW!!!!
GET LOANS IF YOU HAVE TO. IT WILL BE MASSIVELY MORE EXPENSIVE
@dense ibex Inflation is back down to 2.4 which is the same level that it has happened consistently for 40 years
yep
Okay, in that aspect, I think that also had to do with covid unimployment but he did wreck the economy
Well in Florida weed just got struck down and it wasn't even close
Although Florida is like the opposite of brain drain imo. A lot of stupid people flock to Florida
Europeans better learn what Defense Spending is
lmfao
lol
Although there is hope now. Congress passed a law that prevents the president from leaving NATO
Either way, I bet 100 dollars that PA goes red. That way I am either A. Sad, but I won 100 dollars
Or B. Happy but -100 dollars
I play both sides so I always come out on top
If he wins popular vote, its because of inflation and Elon
@amber raptor People who cared about the 'inflation' are stupid and know nothing about economics
HE FIGRUED IT OUT
OMG
JAKE DID HE
In my eyes, I think it truly is just a lack of people knowing enough and mainly a bias in the media that makes it skewed away from reasonable thought
Do we have radio bot in here?
No, we assume your browser is working
Ok thanx haha
He's the...
@rough fjord π
Hello
Can anybody PLEASE help point out what I am missing?
https://discord.com/channels/267624335836053506/1303572617743306752
Cya
Gn
@whole bear π
Hi
Trump has won US presidential election
My f1 visa will be likely to be denied π
Not quite yet.
But yes, probably.
The problem with Trump and republicans is that they don't want immigrants in general. Doesn't matter if it's legal or not
Greetings @vocal basin
@spice pier π
Hey
@bronze pivot π
@vocal basin I pushed a commit two days ago for qickit. Could you kindly view the codebase when you get the chance for some feedback please?
Δ°ts allright
your good
for talking about the election
but like yay say goodbye to reproductive rights
you know
27c80de?
Yes.
__all__ should be a tuple not a list
I mainly added more testers with parameterization, added some new gates, and modified the docstrings a bit.
I see. I've only seen it as list in other packages, but tuple makes more sense. Thank you!
although standard lib has tuple as list too
but most of the time tuple makes more sense
lists might be useful if you dynamically extend __all__ later in the file
I see.
Like so?
__all__ = ("AerBackend")
("AerBackend",)
I see.
it needs to be iterable
any code, that relies on it being a list, it is likely wrong or overcomplicated
lists are conventional for __all__, but that's inconsistent compared to other places
How so?
__slots__ is a tuple
People which chat is better to ask general questions on python, integrations etc ?
and generally a static list of names is expected to be a tuple
FYI too lazy to read community stuff π
what kind of integrations?
I m just starting up on linux and pyhton so i need to learn about API integrations for my job
It s mostly to build and manage apis
Is this vc voice mute?
there is global search on GitHub I think
there is path:
@upper basin path:/README*
without `
113 results
no
"Joel Fitzgibbon, Chief Government Whip." Originally aired on ABC TV's 7.30: 19/07/2012
http://www.mrjohnclarke.com
http://www.twitter.com/mrjohnclarke
http://www.facebook.com/ClarkeAndDawe
TRump baby
@timid umbra π
Yo
Trump
I DON'T WANNA GOOO...I DON'T WANNA GOO....I DON'T WANNA GOOOOO!!!
About The President Show:
Continuing in Comedy Central's grand tradition of producing groundbreaking late night formats, comes The President Show. Created by Anthony Atamanuik who hosts as Donald J. Trump, The President Show gleefully tosses out the rulebook of its predecessors....
Yeah trump is baby
Lol
American blunder of 2024
I see
@upper basin he was indeed buying votes with and without Musk's help
"You've made your bed, now lie in it."
If actual people voted for him that is.
@somber heath
has army bigger than anything else
well, soon that might not be the case
so, Canadian Texas by 2026?
@true elm π
@vocal basin Could you kindly have a look at these methods in qickit.circuit.circuit.py please? These are the ones I feel are poorly written.
-.control()
-.from_cirq()
-.from_qiskit()
-.from_tket()
If you get a chance of course.
I'm thinking of moving the code for the .from_X to a separate module and just wrap them inside the Circuit interface.
@somber heath You think wall can stop illegal?
illegal have many sort of ways to come in USA
And cherry on top: Congress has more power on immigration than American president.
They are the one who decided how and who should get asylum.
So trump can just make process harder, he can't stop migrant!
solved this one in Python some time ago
nice was your code short
it was kind of dumb
like I made a tree
for whatever reason
will rewrite now
||```py
from heapq import heappop, heapify
def sum_of_intervals(intervals):
heapify(intervals)
total = 0
end = -float('inf')
while intervals:
a, b = heappop(intervals)
if a >= end:
end = a
if b > end:
total += b - end
end = b
return total
done
that's much better
tx
previous involved random.shuffle(intervals)
so that the tree isn't too imbalanced
it was fastest to write
ig I could've just copied the known minimum
I tend to do from math import inf; -inf
!e
print(complex('inf'))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
(inf+0j)
@vocal basin @somber heath @upper basin
https://code.activestate.com/recipes/365013-linear-equations-solver-in-3-lines/
!e
from functools import total_ordering
@total_ordering
class NegativeInf:
def __lt__(self, other):
return True
print(NegativeInf() < 1)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
True
!e
from functools import total_ordering
@total_ordering
class NegativeInf:
def __lt__(self, other):
return True
print(NegativeInf() < NegativeInf())
:white_check_mark: Your 3.12 eval job has completed with return code 0.
True
!e py from math import inf print(inf < inf)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
False
!e
from functools import total_ordering
@total_ordering
class NegativeInf:
def __new__(cls):
return cls._instance
def __le__(self, other):
return True
NegativeInf._instance = object.__new__(NegativeInf)
print(NegativeInf() < NegativeInf())
hmm
:white_check_mark: Your 3.12 eval job has completed with return code 0.
False
@bright river π
Hiii
Guys what is @upper basin coding right now ?
Oh yea and what software is he using ???
I love it more than Pycharm that I use
vals = [(233, 457), (368, 495), (-213, -37), (-61, -35), (-162, -107), (171, 463), (-363, -195), (-471, 49), (387, 394), (-279, 198), (-284, 327), (11, 301), (362, 462), (-309, 302), (-398, 118), (-198, -188), (-26, 350)]
(-471, 495)
only
@obsidian dragon and bots
@upper basin near millisecond times are not reliable, you need to repeat way more times
I did a couple of times, 9 seemed consistent.
@upper basin one of the comments there is only partially correct
heapifying is linear time
not nlogn
# Find the overlapping intervals and merge them
?
to get K maxes from N items is O(KlogN)
from operator import itemgetter
def overlap_remover(overlap_sorted: list[list[int]]) -> list[list[int]]:
overlap_removed: list[tuple[int, int]] = [overlap_sorted[0]]
# Find the overlapping intervals and merge them
for i in range(1, len(overlap_sorted)):
if overlap_sorted[i][0] <= overlap_removed[-1][1]:
if overlap_sorted[i][1] > overlap_removed[-1][1]:
overlap_removed[-1] = (overlap_removed[-1][0], overlap_sorted[i][1])
else:
overlap_removed[-1] = (overlap_removed[-1][0], overlap_removed[-1][1])
else:
overlap_removed.append(overlap_sorted[i])
return overlap_removed
def sum_of_intervals(vals: list[list[int]]) -> int:
overlap_sorted = sorted(vals, key=itemgetter(0))
previous_vals = overlap_sorted
new_vals = overlap_remover(previous_vals)
# Ensure that the intervals are not overlapping
while True:
previous_vals = new_vals
new_vals = overlap_remover(previous_vals)
if previous_vals == new_vals:
break
# Calculate the sum of the intervals
return sum([interval[1] - interval[0] for interval in new_vals])
Any improvements we could do AF?
measure how many iterations while True actually goes through
twice.
I'd make a horror show if I had a pumpkin and a free day.
Just round, dark, soulless eyes.
:incoming_envelope: :ok_hand: applied timeout to @tight zealot until <t:1730900544:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
it's relevant https://www.amazon.com/gp/product/B08DM9X4S1/ref=ppx_yo_dt_b_asin_title_o02?ie=UTF8&th=1
@somber heath
Well hi kido hacker, some people use crack KMS to activate windows or activate Office but it is a kind of Malware Riskware.KMS. is there a chance that this malware can steal my data or anything like that. I searched about it and they say that it can but its not malecious
@somber heath does import is actually way more of a speed tool?
like if i use import fibonacci
instead of using for loops i can just do
print(fibonacci(10))
but again i need to download the library before trying to import]
i begin to understand this import stuff lmao
Yeah, pretty much. π
@wise crow π
In other words, your opinion on the election is meaningless.
Not everyone needs to. You think the millions of voters in US history all had economics degrees? Get real.
Well they clearly donβt understand how to manage anything and prefer to have massive inflation in the coming months with the tariffs so yeah
We can adjust for any tariffs imposed nowadays. This isn't 1930 anymore.
Herbert Hoover's push for the disastrous Smoot-Hawley Tariff Act.
Putting tariffs on Nvidia is dumb and I donβt want GPUs to cost more, but thatβs where we are going it seems
I don't want them to cost more either. We need more plants in Arizona while limiting the capabilities and extent of China's influence...
Getting rid of the Chips Act is not going to help then!
Why are we going to repeal the only thing that is actively promoting chip manufacturing! I donβt understand why they want to do this!
I need these things!
We all do!
I don't think they'll repeal the Chips Act. If they do, that's unfortunate.
Politicians talk more than act.
New House Speaker Mike Johnson said he wanted to just the other day
WE NEED CHIP MANUFACTURING
Doesn't mean it's going to happen.
The fact that he is considering it is highly concerning for anyone involved in tech
Well then people in tech need to suck it up and realize there are other US industries that could benefit from a different approach.
Logistics and Supply Chain, Mining, etc.
Bro, chip manufacturing is the most important and expensive component, you canβt be serious
Component of what?
Computers, cars, phones, general electronics
If we can get a more stable supply that's cheaper or more beneficial to defensive equipment, then that's what we need.
But if the supply is coming from outside the country still with no chip manufacturing then it has to be imported. So that leaves us exactly where we are right now
What you just said is literally the status quo right now
We make the computers, phones, cars, etc, and the chips come in from Taiwan and China
As long as we're building our own supply lines, plants, and limiting Chinese influence in chip manufacturing, I'm satisfied.
But they mostly come from Taiwan
95% of chip manufacturing in the world is in Taiwan
Not China
95%
Regardless of the percentage, the lower the influence, the better.
Okay, so then to lower the influence we need to promote building the manufacturing in the US, which is currently only supported by the chips act
Another problem is that dependent on who you ask, Taiwan is either part of or not part of China.
Fair but this is 2024, the two China policy is kinda dead at this point
It hasnβt really been enforced at least here in America since 2018
Both administrations and we as a whole benefit from just ignoring it now. Trump started it back in 2018, and we have continued with it ever since. Which definitely is for the best as it hurts China
@carmine tangle π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Ofcourse it can.
Use massgravel:
https://github.com/massgravel/Microsoft-Activation-Scripts
You can use adba :
https://learn.microsoft.com/en-us/windows/deployment/volume-activation/activate-using-active-directory-based-activation-client
Other than security issues you may face blue screen very often π
Now it's upto to you to choose the ethical or unethical means to do
Open-source Windows and Office activator featuring HWID, Ohook, KMS38, and Online KMS activation methods, along with advanced troubleshooting. - massgravel/Microsoft-Activation-Scripts
And you can do some malware scan or some sort of tools to examine the cracked software.
They might trigger inactive code that intends harm to you and your computer.
Use vm to test the activation and its aftermath
:incoming_envelope: :ok_hand: applied timeout to @sharp shard until <t:1730970977:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
when using free APIs for weather, would you guys recommend?
i am debating between https://www.weatherapi.com/docs/ and https://openweathermap.org/api
WeatherAPI.com offer comprehensive Global and Local Weather API, Geo API, Astronomy API and Time Zone API. Simple to use, powerful, fully managed and free!
Explore OpenWeather's vast range of weather APIs including the versatile One Call API 3.0. Ideal for both
beginners and professionals, our APIs offer current weather, minute-by-minute forecasts, historical data archives, and
future predictions. Access weather data starting from 01-01-1979, global weather maps, solar irradiance predictions, air
p...
currently using openweathermaps, but have heard of inaccuracy
Just do it
Depends on you.
If you can afford paid plans go for weatherapi
If you are brokeass just use openwheatherapi as it offers 60 request per minute ig?
weather api also does https://www.weatherapi.com/pricing.aspx
Simple pricing plan for all weather api requirements from WeatherAPI.com
that's why i am debating
hello
hey
how goes it
pretty good
do you know any free bot hosting service
hmmm
i've never looked into that
i know some are incredibly cheap
just searched it up
looks like there are a few
for free
yeah I've just been hosting my bot from my pc and i get packet loss issues that make my bot go offline every now and than making me have to restart it
i can send the code to you if you would like to look at it
i probably wouldn't understand it
i don't really understand it myself my buddy helped me make it
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
ive just been talking about it just so i can get my voice unlocked
yeah idk how much more i have to text on here
u got 31 more to go
i know
I can't get thru the Voice Gate
@spice pier π
@fathom sundial π
hey
hiiii
@jaunty zinc π
Ah, I lost my old discord account, and I don't have perms right now. Il come back some other day π
Very well.
Have a nice evening :)
circ = [{'gate': 'U3', 'angles': [2.0669633581237727, -1.3288932194673109, 0.2167660599729173], 'qubit_index': 0}, {'gate': 'GlobalPhase', 'angle': 0.5560635797471967}, {'gate': 'U3', 'angles': [2.9201225255902568, 1.1097237932907251, 3.3575564049956386], 'qubit_index': 1}, {'gate': 'GlobalPhase', 'angle': -2.233640099143182}, {'gate': 'CX', 'control_index': 0, 'target_index': 1}, {'gate': 'U3', 'angles': [0.3132279592410617, 0.0, -3.141592653589793], 'qubit_index': 0}, {'gate': 'GlobalPhase', 'angle': 1.5707963267948966}, {'gate': 'U3', 'angles': [0.4659534278219213, 1.5707963267948966, 3.141592653589793], 'qubit_index': 1}, {'gate': 'GlobalPhase', 'angle': -2.356194490192345}, {'gate': 'CX', 'control_index': 0, 'target_index': 1}, {'gate': 'U3', 'angles': [0.1489954686464776, -4.71238898038469, 0.0], 'qubit_index': 0}, {'gate': 'GlobalPhase', 'angle': 2.356194490192345}, {'gate': 'U3', 'angles': [1.5707963267948966, -1.5707963267948966, -3.141592653589793], 'qubit_index': 1}, {'gate': 'GlobalPhase', 'angle': 2.356194490192345}, {'gate': 'CX', 'control_index': 0, 'target_index': 1}, {'gate': 'U3', 'angles': [2.1843551088500117, -1.2737886646848045, -0.9850342056007537], 'qubit_index': 0}, {'gate': 'GlobalPhase', 'angle': 1.129411435142779}, {'gate': 'U3', 'angles': [1.5954628395474226, -3.3263549094984506, -1.4196650237176107], 'qubit_index': 1}, {'gate': 'GlobalPhase', 'angle': 2.3730099666080307}, {'gate': 'GlobalPhase', 'angle': 3.0244722040026195}]
@amber raptor how to mutate the value of a certain key for every dict.
Nothing quantum really.
It's too slow.
It's python, what do you want?
for operation in circuit_2.circuit_log:
for key in set(operation.keys()).intersection(QUBIT_KEYS):
operation[key] = 0 if operation[key] == qubit_indices[0] else 1
second layer of indirection
I don't follow.
one_of_dictionaries["shared_key"]["current_value"] = new_value
!e
shared_value = {"current_value": 1}
one_of_dictionaries = {"shared_value": shared_value}
another_dictionary = {"shared_value": shared_value}
one_of_dictionaries["shared_value"]["current_value"] = 2
print(another_dictionary)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
{'shared_value': {'current_value': 2}}
@barren junco π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@grand dew π
think u could teach me, i dont have anything to offer back but would greatly appreciate the help
well ik else and if sentences, algorithms
asking to learn python since im a begginer
my problem is not fully understanding everything, i tried the CS50 course but i had trouble during day 3
do u think by any chance when u have free time we could vc and go over some coding?
should i spam messages to get me 50 messages?
ok
ah got it
how can i even check how many messages i sent
i have 3o so far
so im pretty close
@digital wharf @steel delta π
i would say so
do u guys work in any sort of computer science field?
it got very
quiet
shh we're sleeping
O
i will 1s
have u been working on something? @whole bear
my web browser in emacs
what level of python would u consider u are at?
as far as calculators go its not bad lol
O
hey
it migh take me 10
Man I want to share my screen with you
years to get unmuted
lol
r u also muted?
yup
shit man
luxury ur at 45 lol
^
still not
okk
streaming porn is wild π
damn
@supple island π
Hi
You uploaded your .venv?
quite advanced ig
but i'm trying to advance in C
@carmine pawn
som damn ain't right
text = "hello"
shifted = text[3]
Shit didn't even look at the question
shifted = (index + shift) % len(alpha)
I think this is, if it's wrong I am fucked
shit man
I need some little help
Can anyone help me with this?
I have enabled local_infile in server and client
So many
Okk
If you describe the problem, people may be able to know if they can help.
!sql f-strings
Don't use f-strings (f"") or other forms of "string interpolation" (%, +, .format) to inject data into a SQL query. It is an endless source of bugs and syntax errors. Additionally, in user-facing applications, it presents a major security risk via SQL injection.
Your database library should support "query parameters". A query parameter is a placeholder that you put in the SQL query. When the query is executed, you provide data to the database library, and the library inserts the data into the query for you, safely.
For example, the sqlite3 package supports using ? as a placeholder:
query = "SELECT * FROM stocks WHERE symbol = ?;"
params = ("RHAT",)
db.execute(query, params)
Note: Different database libraries support different placeholder styles, e.g. %s and $1. Consult your library's documentation for details.
See Also
- Python sqlite3 docs - How to use placeholders to bind values in SQL queries
- PEP-249 - A specification of how database libraries in Python should work
Can I share my screen somewhere
Screen sharing is available on request of voice-regular moderator-and-above level users at their discretion. Ask them when they're in the voice chat. Look out for Mr. Hemlock or Mindful Dev.
I am really stuck here because I am not even getting any eroor
lol
.xkcd 327
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!kindling
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
@river bluff π
Currently it gonna work for windows only.
print ('hello')
Fucking solved it man
hello
how you doing to day
good what about you
wait where are you from
I'm getting very frustrated as I'm trying to work on this new project using python and I'm still very new
i am from the uk you
:}
you know I'm getting desperate cuz I'm looking on fiverr to see if anyone can help me
lol
π
the downside of turning off discord sounds
i never hear anybody joining
This is a list of well-known data structures. For a wider list of terms, see list of terms relating to algorithms and data structures. For a comparison of running times for a subset of this list see comparison of data structures.
@wind raptor just fork it -- the ultimate "configuration" option
@worldly robin it's not "just" REST API
since it also involves templating
technically you can claim GET/POST returning an HTML is RESTful, but that's not really API-like
Next.js for backend + Next.js for frontend
perfectly balanced
Next.js for backend is indeed optimised for Vercel
Next.js for frontend is perfectly fine for wherever else
Remix is in a weird state
they've merged some parts of it back into react-router
afaik it's not static
so you can't have it frontend-only
from what I know, it's more server-tied than Next
Next.js App Router is based on Remix
or rather inspired by
Remix's innovation forced Next.js into doing basically the same thing with nested layouts
This also means that the 90% of Remix is really just React Router: a very old, very stable library that is perhaps the largest dependency in the React ecosystem. Remix simply adds a server behind it.
for single page applications, you can just use Vite
which is just a bundler/build system
it's just a thing that takes react/solid/whatever else and makes it into an actual website
a tool, yes
a convenient way to build plain React
PHP apps need website interactivity anyway
some JS needs to run in the browser
HTMX+PHP is an option, but that still involves at least {however big HTMX is} kilobytes of JS
HTMX+Django/Flask/etc. is a known combination too
(anything that runs jinja)
((templating engine))
I used BETH stack:
Bun, Elysia, Turso, HTMX
React's runtime model ended up being somewhat easy for me to understand, so I just don't have the issue of extra overhead of trying to mentally translate JSX to HTML
libsql
sqlite fork
distributed cluster of 72 libsql servers each hosting a single line of sqlite's code of ethics
terabyte-size SQLite databases are known to exist in production
it is limited at 281 TB
Yeah, so pretty flexible unless you're FB
how difficult is it to have a 281TB file
like 10 big hdds
... I guessed correctly
2024-09-17, quite recent
or 6 tape drives
idk how you'd use sqlite on a tape drive though
I too remember there being some home data server common thing
can't remember the name
I refuse to do networking in anything other than Rust
!stream 692320675465265265
β @twilit raptor can now stream until <t:1731089941:f>.
its not that much of networking algo's but very simple
UDP TCP
Python's advantage for networking is good async support
Java's advantage for networking is the tons of libraries it has + JVM is good
C++'s advantage for networking is performance (only)
@twilit raptor "with 'Π±ΠΎΠ»Π΅Π΅ 2000 Π΅Π΄ΠΈΠ½ΠΈΡ Π²ΠΎΠ΅Π½Π½ΠΎΠΉ ΡΠ΅Ρ Π½ΠΈΠΊΠΈ' being one of development goals?"
ΡΡ
it's a reference to mentioning warthunder earlier
(a line from their ads)
event-source the game state
you can even make reconnects trivial this way
@vocal basin's PvP minesweeper's UI state is event-sourced
her (unfinished) game:
https://ccms.parrrate.ru/
it's timed
with premoves
it is never optimal to rush
each mine halves the time
never understood the diff bw app router and page router
haven't looked into it tbh
Server Components and Server Actions + some cleanup
@cerulean epoch π
brb
@dull peak π
@sour imp or Java
Java here
@mighty kernel π
JVM is continuously improving
"accidentally obsoleting Kotlin features along the way"
I wrote 0 Kotlin and 0 Java for my own projects
or any other JVM-first languages
You will need to try Scala
maybe when they bring XML literals back
@wind raptor "derivatives of Java" *points at Microsoft*
Python is good, but for big projects is a headache.
discord.py 2, at the time it was released, was preferred over alternatives
idk about now
it is not dying at least
TIL FastAPI docs have no-typing code samples
@wind raptor sympy?
uh it lagged
vpns are fun
(I sent a few seconds before you said, idk if it actually was delivered earlier)
do the ouroboros: bootstrapping but with a multi-language cycle
@wind raptor Markdown allows inline HTML which is the difficult part
but you can (should) ban inline HTML
we don't use that for our site so yeah we'd just ban it
or if I'm just converting md<->html I'd just throw the HTML from md into output
though there's a few useful things like <abbr> and <details>
"we can't use it in our Enterprise because no versioning tracked in git"
hello! π
!help
!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.
!e
l_c = {}
for letter in sherlock:
l_c[l.lower()] = l_c.get(letter,0) + 1
l_c['m'] = 1
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | for letter in sherlock:
004 | ^^^^^^^^
005 | NameError: name 'sherlock' is not defined
letter_count = {}
for letter in sherlock:
letter_count[letter.lower()] = letter_count.get(letter,0) + 1
letter_count['m'] = 1
!e
letter_count = {}
for letter in "Hello":
print(f"Inside loop, {letter=}, {letter_count=}")
letter_count[letter.lower()] = letter_count.get(letter,0) + 1
letter_count['m'] = 1
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Inside loop, letter='H', letter_count={}
002 | Inside loop, letter='e', letter_count={'h': 1}
003 | Inside loop, letter='l', letter_count={'h': 1, 'e': 1}
004 | Inside loop, letter='l', letter_count={'h': 1, 'e': 1, 'l': 1}
005 | Inside loop, letter='o', letter_count={'h': 1, 'e': 1, 'l': 2}
are you doing the is anagram leetcode question?
you can't talk from russia? in voice chat through vpn?
u can simply chat
hi
quick question
what vould i name the package/folder where i store stuff in my api like user or group
aka that is only made for handling and not directly to access stuff?
{} curly braces
() parentheses
[] square brackets
{} sets and dictionaries
() tuples, generator expressions, other stuff too
[] lists, subscription syntax
!e py a, b, c = [1, 2, 3] print(a) print(b) print(c)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
!e py my_list = [i for i in range(5)] print(my_list)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[0, 1, 2, 3, 4]
!e py my_list = [] for i in range(5): my_list.append(i) print(my_list)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[0, 1, 2, 3, 4]
!e py my_list = [letter + number for letter in 'abc' for number in '123'] print(my_list)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
['a1', 'a2', 'a3', 'b1', 'b2', 'b3', 'c1', 'c2', 'c3']
!e py my_list = [] for letter in 'abc': for number in '123': my_list.append(letter + number) print(my_list)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
['a1', 'a2', 'a3', 'b1', 'b2', 'b3', 'c1', 'c2', 'c3']
!e py my_list = [] for letter, number in zip('abc', '123'): my_list.append(letter + number) print(my_list)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
['a1', 'b2', 'c3']
!e py my_list = [letter + number for letter, number in zip('abc', '123')] print(my_list)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
['a1', 'b2', 'c3']
!e py my_list = [ab for ab in zip('abc', '123')] print(my_list)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[('a', '1'), ('b', '2'), ('c', '3')]
im gonna cri
!e py for kv in [(1, 2), (3, 4), (5, 6)]: print(kv)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | (1, 2)
002 | (3, 4)
003 | (5, 6)
!e py for k, v in [(1, 2), (3, 4), (5, 6)]: print(k, v)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1 2
002 | 3 4
003 | 5 6
!e py my_list = [(1, 2), (3, 4), (5, 6)] my_dict = {k: v for k, v in my_list} print(my_dict)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
{1: 2, 3: 4, 5: 6}
!e
letter_count = {}
for letter in sherlock:
letter_count[letter.lower()] = letter_count.get(letter,0) + 1
letter_count['m'] = 1
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | for letter in sherlock:
004 | ^^^^^^^^
005 | NameError: name 'sherlock' is not defined
!d collections.Counter
class collections.Counter([iterable-or-mapping])```
A [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter) is a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) subclass for counting [hashable](https://docs.python.org/3/glossary.html#term-hashable) objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter) class is similar to bags or multisets in other languages.
Elements are counted from an *iterable* or initialized from another *mapping* (or counter):
```py
>>> c = Counter() # a new, empty counter
>>> c = Counter('gallahad') # a new counter from an iterable
>>> c = Counter({'red': 4, 'blue': 2}) # a new counter from a mapping
>>> c = Counter(cats=4, dogs=8) # a new counter from keyword args
!e py import collections text = 'abracadabra' count = collections.Counter(text) print(count)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Counter({'a': 5, 'b': 2, 'r': 2, 'c': 1, 'd': 1})
@mortal saffron π
!e py my_dict = {'key a': 'value a', 'key b': 'value b'} print(my_dict['key a']) print(my_dict['key c'])
:x: Your 3.12 eval job has completed with return code 1.
001 | value a
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 3, in <module>
004 | print(my_dict['key c'])
005 | ~~~~~~~^^^^^^^^^
006 | KeyError: 'key c'
!e py my_dict = {'key a': 'value a', 'key b': 'value b'} print(my_dict.get('key a', 'DEFAULT')) print(my_dict.get('key c', 'DEFAULT'))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | value a
002 | DEFAULT
now my dict dictionary has {key c : DEFAULT}? is it gonna be {'key a': 'value a', 'key b': 'value b', 'key c': 'value c'} or {'key a': 'value a', 'key b': 'value b', 'key c': 'DEFAULT'}
!e py my_dict = {'key a': 'value a', 'key b': 'value b'} print(my_dict.get('key a', 'DEFAULT')) print(my_dict.get('key c', 'DEFAULT')) print(my_dict)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | value a
002 | DEFAULT
003 | {'key a': 'value a', 'key b': 'value b'}
Often while using dictionaries in Python, you may run into KeyErrors. This error is raised when you try to access a key that isn't present in your dictionary. Python gives you some neat ways to handle them.
The dict.get method will return the value for the key if it exists, and None (or a default value that you specify) if the key doesn't exist. Hence it will never raise a KeyError.
>>> my_dict = {"foo": 1, "bar": 2}
>>> print(my_dict.get("foobar"))
None
Below, 3 is the default value to be returned, because the key doesn't exist-
>>> print(my_dict.get("foobar", 3))
3
Some other methods for handling KeyErrors gracefully are the dict.setdefault method and collections.defaultdict (check out the !defaultdict tag).
!d dict.get
get(key, default=None)```
Return the value for *key* if *key* is in the dictionary, else *default*. If *default* is not given, it defaults to `None`, so that this method never raises a [`KeyError`](https://docs.python.org/3/library/exceptions.html#KeyError).
!code
!e
my_dict = [' I EAT DONUTS HAHAHA BVERY GOOD']
print(my_dict.get('I'))
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 3, in <module>
003 | print(my_dict.get('I'))
004 | ^^^^^^^^^^^
005 | AttributeError: 'list' object has no attribute 'get'
!e
code
!e
dictionary = { a : 2, b : 3, c : 4}
print(dictionary)
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | dictionary = { a : 2, b : 3, c : 4}
004 | ^
005 | NameError: name 'a' is not defined
e
dictionary = { 'a ' : 2, 'b' : 3, ' c' : 4}
print(dictionary)
!e
dictionary = { 'a ' : 2, 'b' : 3, ' c' : 4}
print(dictionary)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
{'a ': 2, 'b': 3, ' c': 4}
!e
dictionary = { 'a ' : 2, 'b' : 3, ' c' : 4}
print(dictionary)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
{'a ': 2, 'b': 3, ' c': 4}
!e
dictionary = { 'a' : 2, 'b' : 3, 'c' : 4}
print(dictionary)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
{'a': 2, 'b': 3, 'c': 4}
!e
dictionary = {'a': 2, 'b': 3, 'c': 4}
print(dictionary)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
{'a': 2, 'b': 3, 'c': 4}
!e
dictionary = {'a': 2, 'b': 3, 'c': 4}
print(dictionary.get('a'))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
2
!e
dictionary = {'a': 2, 'b': 3, 'c': 4}
print(dictionary.get('d'))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
None
!e
dictionary = {'a': 2, 'b': 3, 'c': 4}
print(dictionary.get('donut', 5)
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | print(dictionary.get('donut', 5)
003 | ^
004 | SyntaxError: '(' was never closed
!e
dictionary = {'a': 2, 'b': 3, 'c': 4}
print(dictionary.get('donut', 5))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
5
@scarlet dust 2 mutual server that sus
AND?
Did you know bees can purr? Get your headphones ready and have a listen!
Gear Used:
Audio Technica ATH 50x - https://geni.us/ftusat50
DJI Osmo 3 - https://geni.us/ftusdjiosmo3
iPhone 15 Pro - https://geni.us/ftusiphone15pro
Metal Marshmallow Contact Microphone!
π° Support our work and Get $5 off our All-in-One Bundle
https://geni.us/ftus5
π [...
You weren't alone.
it's from an infra red DSLR with a special filter that makes leaves/foliage red
you could in theory, but you'd need to select only the leaves
the filter does it in camera directly for all things that reflect infra red light a lot
Learn VIM motions
@snow flower π
Hi
Hiii
Evwryone
!code
tru lol
is it good tho
BAHAH
im using enums tho 
from abc import ABC, abstractmethod
from enum import Enum
class BuildTargets(Enum):
DISCORD = "discord"
BROWSERS = "browsers"
SYSTEM = "system"
NETWORK = "network"
FILES = "files"
class Build(ABC):
@property
@abstractmethod
def file_name(self) -> str:
...
@property
@abstractmethod
def load_target(self, target: list[BuildTargets]) -> list[str]:
...
@abstractmethod
def build(self) -> None:
...
code
and i think the file struct is good as well
srry ab the pycache tbh
i hate that =-=
yea LOL
@jaunty knoll π
yes my brain goes numb when ppl don't know what abstractmethod's are lol
yea that's how you blow up you're toliet
tbh
??
LOL
no judgement but @scarlet dust you where doing so good till i saw this 
...
HELP
its oki
okay so you can check None by if not
and
an exception handler would be cool
-0-0-
it's oki dw you did a great job with imports tho
i really like how you did you're imports
like this is really good my man
@analog cliff π
might a be a spacing issue but, it seems good
yea
no i get that
but sometimes, a context manager
:x: Your 3.12 eval job has completed with return code 139 (SIGSEGV).
001 | OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 4: Resource temporarily unavailable
002 | OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
003 | Traceback (most recent call last):
004 | File "/home/main.py", line 3, in <module>
005 | from scipy.stats import pearsonr
006 | File "/snekbox/user_base/lib/python3.12/site-packages/scipy/stats/__init__.py", line 610, in <module>
007 | from ._stats_py import *
008 | File "/snekbox/user_base/lib/python3.12/site-packages/scipy/stats/_stats_py.py", line 37, in <module>
009 | from scipy import sparse
010 | File "<frozen importlib._bootstrap>", line 1412, in _handle_fromlist
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/FQZSZQ3Q6A7ADA6QAHTJZXFQJY
you are following pep8 it seems
i respect that
well uea
yea*
when he doesn't check None ->
i rarely use isinstance
^
OK SEC
if op_type is None:
if not op_type:
whhhhhat
thought if not would rep False, and None?
am i wrong?
okay so basically doesn't not == None || False
ITS HARD TO TYPE THIS
and make it make since
like
yea
tbh
i am too π
yes
i am trying too
Hi

omae wa shinderu
magister does, not represent None or False?
not
immma ab to google this bc i'm ab to kmmss
yea ok so not None:
me spamming my keyboard to find a awnser
bc ik i'm not crzy
JUST USE NOT NONE
THATS IT

!e ```py
print(not None)
print(None is not None)
print(None is None)
print(True is not None)
print(not True)
print(not None)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | True
002 | False
003 | True
004 | True
005 | False
006 | True
!e ```py
print("" is not None)
print(not "")
print("truthy" is not None)
print(not "truthy")
print(None is not None)
print(not None)
yea
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | /home/main.py:1: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="?
002 | print("" is not None)
003 | /home/main.py:3: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="?
004 | print("truthy" is not None)
005 | True
006 | True
007 | True
008 | False
009 | False
010 | True
lol
how?
they are kinda struggling, i do, like how they did imports
that was nice to see lowkey
i wouldn't call his code bad, but i see as there is better ways of doing things. \
now do ik what she just said
no
LOL
BUT ITS OKI
hot or nah
If you find issues with my code / you think it can be improved I'm up for PRs
ofc β€οΈ
for EDU purposes
cosmic reach?
uh
like 4 months ago
and they have multiplayer
my vape died...
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
@late spoke what are you creating
CREAM
this is the CLI looks like it
LOL
i cant talk
bc i just joined

you guys got no time on me...

lowkey i had my pc for that long i was with my gf for like 3 days and didnt touch my pc but it was left on
:x: Your 3.12 eval job has completed with return code 143 (SIGTERM).
001 | 109775242706652917
002 | 109775242706652917
003 | 109775242706652917
004 | 109775242706652917
005 | 109775242706652917
006 | 109775242706652917
007 | 109775242706652917
008 | 109775242706652917
009 | 109775242706652917
010 | 109775242706652917
... (truncated - too many lines)
Full output: too long to upload
the while statment really attracted them...
=-=
yes
icons can b worked on
they seem a little bold
like
english
isn't
my native
sec
there bold i ment, sorry about the confusion, my brain wasn't braining
just blocky, i rather the minecraft text font sry.
oki guys, immma sleep, probs jerk, or something goodnight < 3
jerk yk
what i mean..
LOL
not in detail
but yk
like
UUUUUUUUUUUUUUUH
sorry
idk if i can-
that would be sexiest
i CANT SPELL ENGLISH
but you get the point
NoNo
NONO
GPT
omw
okay so basically
i get my
blanket
andd...
turn it around
in a circle
THEN
boom
done
oki goodnight lovies.
follow pep8 pookies or i will haunt you're dreams.
@woven robin π
id,emoji,event,time,location,freq_rrule,freq_description,regularity
@quick agate π
@quick agate you have to unmute yourself
I canβt cuz I need to be in the server for 3days
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
FREQ=MONTHLY;BYDAY=4FR
FREQ=MONTHLY;INTERVAL=2;BYDAY=3SA;BYMONTH=2,4,6,8,10,12
@somber heath you think you can help me with python tomorrow?
I am often around.
I will call you tomorrow first thing in the morning when I wake up
No.
I don't do DM assistance.
I canβt join the vc for 2 more days
#βο½how-to-get-help For text assistance. Others can help. If you see me in voice chat, swing by.
If I'm available, I may help.
How can I get the voice verify without being in the server for more then 3days do you know?
Deviation from the procedure is by exception through administrative discretion, typically in the event you have been previously in the server voice verified and are known by the voice admins. Otherwise, you need to satisfy the requirements as written.
@somber heath am i audible?
Am I to you?
yes
@pliant spoke π
Does anyone know cryptography ?
Not modern implementations.
@pure lintel π
@marsh drift π
@wicked wren π
Provided to YouTube by CDBaby
Kitty At the Door Β· Marc Gunn & the Dubliners' Tabby Cats
Whiskers in the Jar: Irish Songs for Cat Lovers
β 2008 Marc Gunn
Released on: 2008-01-01
Auto-generated by YouTube.
Provided to YouTube by CDBaby
Wild Kitty (Parody Wild Rover) Β· Marc Gunn & the Dubliners' Tabby Cats
Irish Drinking Songs for Cat Lovers
β 2005 Marc Gunn
Released on: 2005-01-01
Auto-generated by YouTube.
Also in attendance:
Tulsi Gabbard, Natalie Harp, Stephen Miller, Susie Wiles, Dan Scavino, Oliver Stone (5:20), Jason Miller and Matt Gaetz.
Full show https://x.com/artofthesurge
Trump crew live posting on Truth Social from Vegas, August 2024
#trump #vegas #kamala #MattGaetz #TulsiGabbard #NatalieHarp #StephenMiller #SusieWiles #DanScavino ...
I found this video, it's less of a reaction and more of the marketing inside of Trump by Trump
@somber heath https://youtu.be/MYg3g6LX0DE?si=QaWKqexUCXNVdj5I
The new EP "Should've Gone to Bed" available NOW. Download on iTunes - http://smarturl.it/pwtiTunesep1
Official site - http://www.plainwhitets.com
Facebook - http://www.facebook.com/plainwhitets
Twitter - http://www.twitter.com/plainwhitets
this is the song I was talking about
cant speak
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@static spade π
one sec
there
full image
haha
50 msgs yay
its 1 AM so still cant talk lol
thou shalt return
yay
no screen share still '_'
the hwat
oh got it
dang
always that one guy
let me bless thee with memes o' plenty
ok 1 sec
this one it for the stealers
i use this alot
@glossy citrus π
all in π
Wouldn't that bring the chance up to 75%?
is that the dude in all those "sigma male mindset grind i hate women and gay people and furries oh and did i mention im an alpha?" videos?
yeah, it's from American Psycho
most people that use the meme don't even know the reference
(not me)
got it
just asking
ik what you are talking about
the people
yeah
emphasis
excavator
Elevator.