#voice-chat-text-1
1 messages · Page 37 of 1
ty man
wtf lol
i think reading textbooks and papers more last year helped me with my paper reading skills
it's still not very good though
im not convinced that an algorithm is not robust to handle situations like this
even though, in theory, it is easier to play in deterministic envs
(at least for me)
Don't worry, it's actually quite simple I think. It's essentially:
- I was in a state, I chose an action, and I made a transition, for which I received reward
r. - Based on my current estimates of the utilities, I should have received reward
q. - I update my estimates of the utilities (or the parameters of the model estimating the utility function) to account for the discrepancy
r - q. If the observed reward is higher than expected, I might adjust the utility of the predecessor state up; if it's lower than expected, I might adjust the utility of the predecessor state down.
- sure
Based on my current estimates of the utilities
- how lol, U(s) = max Q(s,a). im not even sure how to compute Q(s,a) when im allowed 1 state only, as in there's no way for the agent to see/predict/lookahead of what the next state is so it can't get the expected returns as wanted
- yeah i get this one
still the same age old problem
You got a bulk deal on nitro? 😄
HAHAHAHA HOW MUCH TEXT YOU WANNA SEND
hm i had a month of nitro before
hence my pfp
it used to popopopopopop
i mean idm reading pastebins/text files
ugh brb, dinner time
will ping you once im done
@hearty heath
I think they had to go anyway, don't worry about it
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
aight
@hearty heath
bacc
@dry pendant i dont have my airpods with me
i cant hear you
do type if you want to tell me smth
I'll be back in a minute sorry
Yeah it was a figurative minute 😄
ugh im back at the attic
... time is relative
the living room is now fucking noisy
uhh but the vc is chatting
let's move to code/help?
@hearty heath
iRobot® features the best robot vacuum and mop selections for cleaning your unique home. Shop and learn more about the best robot vacuum and mop products here.
hey
guys
anyone here can help
in python malware developing
i need some help
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
:incoming_envelope: :ok_hand: applied timeout to @hazy minnow until <t:1721732096:f> (10 minutes) (reason: burst spam - sent 8 messages).
The <@&831776746206265384> have been alerted for review.

Sorry Milien I'm in a cafe
How are you feeling?
I'm about to go for a walk, call me?
Ourtichondria
USSR theme intensifies
@tame leaf
Tbh you sound like a retired weather broadcaster who's going through a live blooper
It's cool btw
DVD Available Now: http://bit.ly/XDoSKU
Mitchell Butel of Avenue Q fame sings "I've Got a Little List" from Gilbert and Sullivan's The Mikado. This excerpt is from the cinema/DVD recording of Opera Australia's 2011 production at the Arts Centre, Melbourne.
Lyrics:
As someday it may happen that a victim must be found,
I've got a little list. I...
Apatite is a group of phosphate minerals, usually hydroxyapatite, fluorapatite and chlorapatite, with high concentrations of OH−, F− and Cl− ion, respectively, in the crystal. The formula of the admixture of the three most common endmembers is written as Ca10(PO4)6(OH,F,Cl)2, and the crystal unit cell formulae of the individual minerals are writ...
yeag
!e py a = [1, 2, 3] b = 'abc' c = [*zip(a, b)] print(c)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[(1, 'a'), (2, 'b'), (3, 'c')]
!e py a = 'abc' b = 'def' c = 'ghi' d = list(zip(a, b, c)) print(d)Are we talking Numpy?
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[('a', 'd', 'g'), ('b', 'e', 'h'), ('c', 'f', 'i')]
!e py import numpy as np a = np.array([1, 2, 3]) b = np.array([4, 5, 6]) c = np.array([a, b]).T print(c)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[1 4]
002 | [2 5]
003 | [3 6]]
!e py import numpy as np a = np.array([1, 2, 3]) b = np.array([4, 5, 6]) c = np.array([7, 8, 9]) c = np.array([a, b, c]).T print(c)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[1 4 7]
002 | [2 5 8]
003 | [3 6 9]]
LGBT#?
LambdaGBT
like why is a table male but a door female
more than two legs and a keyhole?
i knew this example was bad in the moment i hit send
getting rid of only the richest man would already help a lot tbh
DOCH
billionaires have no gender
they are food
TIL about the C API layer for Python https://docs.python.org/3/c-api/veryhigh.html
(still talking to co-worker)
i see i am not the only one at work xD
do you actually work then tho? cause i know i could def work more
I do IT, so whenever something happens I drop here and knock it out. It's why I disappear a lot (as you'll see).
Work still takes priority for me
its bullying me lol
fairs fairs
i am just stuck between two tasks right now of which the ones i have not done yet are not urgent so i am chilling for a bit
Good spin on the "Two wolves fighting for my soul." "Two tasks fighting for my attention."
yup and what does my brain decide? exactly, nothing
There are two wolves inside of me
There are two wolves inside me. HELP!!!
there is me inside me
Huh. I hadn't heard of an ABI before. "Application Binary Interface"
today i learned
API yes, ABI never lol
No idea if it's Python specific or not: https://docs.python.org/3/c-api/stable.html#stable
seems to have some uses in other languages
just dont trust humans in general
safest way
@acoustic smelt 👋
Lookin' good

well what does the number value means here? i mean is it in percentage or anything else becz its more than 10
i guess its in percentage
I don't know what the data is supposed to represent, so I can't really say just looking at it
If it's supposed to be total percentage across all of those states (like added up), then it isn't that. Just quickly added it up and it comes to 135.9
ok
HI
@kindred oyster Yo
Eh, it's going. How about on your end
Niiiiiice. Decided on a major?
Oooo, that's cool
Finland: Yeah. In just over 100 years they’ve gone from Europe’s backwoods, swamp-farming, drunken hillbillies speaking incomprehensible gibberish, to one of the world’s most highly-educated, economically- and socially-advanced, egalitarian, and innovative countries speaking drunken incomprehensible gibberish.
https://www.asmeurer.com/mypython/ I like how honest they are about the reason why they did this
This video has several clips of ravens living in San Francisco city, who have learned how to lockpick and open puzzle boxes. This footage has been taken over the course of 1 year and the birds have learned how to solve several different types of problems.
Some of the problems they have learned to solve are:
-Shotglass on a String
-Turning Tool...
@Copyright BBC - The Blue Planet
Watch what happens in Blue Planet II. Subscribe: http://bit.ly/BBCEarthSub
For the record these are very simple "Locks" one might even say these are Latches
Ravens can only really do half of the SQL operations needed to run a server...
I wouldn't pay full price for a Raven admin
https://xon.sh/contents.html#comparison Dude, the last row on the table
Yeah this is pretty common PyDis VC. It's kind of general discussion and it gets.... weird
Programming does pop up a lot, mind you
But more or less, bunch of friends shooting the shit
ahahahaha nicee
I want to join conversation while my yum packages are updating
but my mic is suppressed
Not I, said the Hemlock
Neither I
unfortunate(
is it though?
personally yes
Fair
@calm tusk are you self hosting your linux server?
yo the thing you are talking about is exactly what I'm doing
like right now
Meta's LLaMAs compute is nearly 1 Zettaflop... around 930 exaflops.
wtf are these numbers?
ahahaha
now imagine what will happen when quantum computers will be the thing
THE THING
Flops just feels like an arbitrary thing that doesn't feel super helpful as a metric for the laypeople
I mean it's not arbitrary I guess
Yikes, that's insane
I got what he means but, smaller minimum wage in the country most of the time means that goods are much cheaper than in the US
about networking
if you are a student
you can get a student account in most of the cloud service providers
like azure or aws
even if not there is a free tier
subscriptions
I cant get my code to work 😦
unfortunately i'm a fresh grad from a major that's non-relative to the cyber-world actually.
it's okay
What's the issue?
Erase yourself from the internet: https://incogni.com/networkchuck Use code NETWORKCHUCK you get 60% off
Dive into the power of WSL 2 with NetworkChuck! Learn how to seamlessly run Linux on Windows, including Ubuntu and Kali Linux, with full GUI support and GPU access. This comprehensive guide covers everything from basic installation to advan...
there is a video that I watched recently
you can use linux commands on windows
and vice versa
I've made a Help topic 🙂
WTF?
I once wrote a menu card in Python...
Greetings Rabbit.
Hope you're having a nice morning thus far sir.
in terminal or like with actual gui
18 people
what's the project about ?
Guys what's better NAS or VPS?
anyone ?
sorry no idea
I'm gonna hop off. Need to shower, and have to wake up early tomorrow. See yall tomorrow.
Ohh Hi LX, and bye LX!
I'm still here 👀
I'm not hehe.
Gotta go hit the showers.
And then catch them zs.
@raven orbit sound roboty
good byee
Yeah better
You could put them all in a single repo if you like.
If each project is just like a single file, then I'd opt to put them all in the same repo @misty sinew
Maybe include a readme, and put the actual project code in a folder.
Then in the readme you can have a table of links to the different projects, with a readme for each project explaining it briefly.
@misty sinew Look at how this repo is organised: https://github.com/norvig/pytudes
thanks so much, that's very close to what I have in mind
So something like: ```
.
├── readme.md
└── code
├── project1
│ ├── readme.md
│ └── somecode.py
├── project2
│ ├── readme.md
│ └── blah.java
└── ...
No pirating please 
Yea
You can make markdown tables like: ```
| heading 1 | heading 2 |
|---|---|
| foo | bar |
Back later, cya 👋
guys is thinkpad l470 on i5-6200u with 12 gb ddr4 ram and 128 ssd for 63$ reasonable?
I was just thinking of playing with linux
maybe host some websites
later make a NAS
out of it
or should I use this money on a cloud services
or something
Hello
any thinkpad is reasonable, as long as you don't have microsoft spyware OS on it
Hey 👋
Hey
I am looking for a dev for a possible project I wanted to discuss but cant talk
Nice
Can you do headless browsers via anti detect browsers like anti dolphin or adspower ?
with api
Opalmist how long have you been programing for ?
!code
import requests
from bs4 import BeautifulSoup
url = "https://www.wholefoodsmarket.com/products/all-products"
page = requests.get(url)
soup = BeautifulSoup(page.text, 'html.parser')
allproducts = soup.find_all('div', class_ = 'w-pie--product-tile__content')
for product in allproducts:
name = product.find('h2', class_ = 'w-cms--font-body__sans-bold')
price = product.find('span', class_ = 'text-left bds--heading-5')
print(f'Product Name:{name.text}, Price:{price}')
@pseudo girder👋
@stuck bluff I sent you a friend request
Yes. I declined it.
Aww snap I wanted to chat with you
Is there a particular reason you can't?
is django super important for ml/ai studies ?
who me sry otp Opal ?
You're capable of chatting with me. You don't need to send me a friend request to do that.
I know you meant DMs, but in general, I don't do that.
@glass tangle
I don't think so you just have to play with ML and Data but if you want to building something all by yourself you are good to learn Django.
alright
@wintry magnet👋
Hi
@naive girder👋
👋
Chicken
You doing good Opal?
Vc is very interactive with each other im loving it
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
url = "https://www.wholefoodsmarket.com/products/all-products"
# Set up the webdriver
driver = webdriver.Chrome() # Replace with your preferred browser
driver.get(url)
# Wait for the input field to appear
input_field = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.CSS_SELECTOR, 'input[placeholder="Enter your zip code"]'))
)
use_current_location_button = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable((By.XPATH, '//span[contains(text(), "Use current location")]'))
)
use_current_location_button.click()
# Wait for the page to load
allproducts = WebDriverWait(driver, 10).until(
EC.presence_of_all_elements_located((By.CSS_SELECTOR, 'div.w-pie--product-tile__content'))
)
for product in allproducts:
name = product.find_element(By.CSS_SELECTOR, 'h2.w-cms--font-body__sans-bold')
price = product.find_element(By.CSS_SELECTOR, 'span.text-left.bds--heading-5')
print(f'Product Name:{name.text}, Price:{price.text}')
driver.quit()
ElementClickInterceptedException: element click intercepted: Element <span class="w-link--text">...</span> is not clickable at point (716, 285). Other element would receive the click: <div aria-modal="true" class="modal--container" role="dialog">...</div>
(Session info: chrome=126.0.6478.185)
@royal rivet Are you doing HTML?
Okay you are making website?
import requests
from bs4 import BeautifulSoup
STORES_URL = "https://www.wholefoodsmarket.com/stores"
SET_STORE_URL = "https://www.wholefoodsmarket.com/store-affinity"
MAIN_URL = "https://www.wholefoodsmarket.com/products/all-products"
session = requests.Session()
session.get(STORES_URL)
session.put(SET_STORE_URL, json={"storeId": "ENTER YOUR STORE ID HERE"})
response = session.get(MAIN_URL)
soup = BeautifulSoup(response.text, "html.parser")
allproducts = soup.find_all('div', class_ = 'w-pie--product-tile__content')
for product in allproducts:
name = product.find('h2', class_ = 'w-cms--font-body__sans-bold')
price = product.find('span', class_ = 'text-left bds--heading-5')
if price is None:
price = product.find('div', class_ = 'bds--heading-5 mr-1 inline px-1 !text-base')
print(f'Product Name:{name.text}, Price:{price.text}')
Nope just scraping
Okay
hi
@frozen shore 👋
lela_null
they literally just set up shop near our military training zone air spaces
and just chill for weeks
and some of their vehicles look ridiculous, idk if its vanity like a human with a lambo, or a functional design somehow based on advanced physics, or literally just to troll humans
pilots, intel officers, and reporters:
graves fighter pilot (most recent, most reliable, daily sightings): https://www.youtube.com/watch?v=muxP-2pDzH0
fravor fighter pilot (uap chase): https://youtu.be/Eco2s3-0zsQ?t=3437
intel officer (who still works for the government): https://www.youtube.com/watch?v=R8TqBrrqL4U
go-between/reporter: https://youtu.be/trf_OKyotyQ?t=2433
physicists:
knuth lecture on uap radar data (5000 g's): https://www.youtube.com/watch?v=HlYwktOj75A
gerb on knuth: https://www.youtube.com/watch?v=inyw4Vfu7Z0
eric weinstein on louis witten and antigravity: https://www.youtube.com/watch?v=iQOibpIDx-4
lazar discussing human-pilotted gravity vehicles: https://youtu.be/BEWz4SXfyCQ?t=526
lazar lecture 1989 (least reliable): https://youtu.be/hnW9-vsx3mc?t=167
@exotic tendon 👋
Hi!
🤨
🤨
some of you guys know what is the issue cause I cant utilize the pip freeze in python.I want to transfer my project to another pc can you suggest any solution except for creating a new venv.
An AI Twitch TTS Chat Bot using GPT-3 and Google Cloud TTS - adi-panda/Kuebiko
follow the quest guidelines
how old are you guys?
i'm 17
15
what is the best career path to take want to find job that is inline with my course computer engr
ohh my bad
im studying computer science and computer engineering
damn 2 degrees. how can you manage that?
so i rekon a job along those lines is good
i am still in high school, so i have 4 classes a day
so i set 4 of my 6 main classes to focus on computer related things such as that, while still keeping my mandatory classes as well
where are all from btw?
Im from Philippines
not good tho
all of the country here is flooding
yup theres a typhoon right now
surely it is cause of the 3 meters flood
@pliant otter 👋
Hi guys
hello
@tall igloo check dm
done
yay
negative mass in general relativity https://t.co/qhtDMPkWR8
leads to unbounded acceleration via gravity
(still subject to c speed limit ofc)
(where the negative mass chases the positive mass, which is repelled from the negative mass, via F=ma and F=Gm1m2/r^2)
print(Hello World!)
print("Hello World!")
@proper ridge Can I ask you a question related to databases?
Greetings there,
Uhh, sure. I'm not sure I can answer it, but go ahead.
Hi, Which is the best software for databases?
If you mean what language/framework, it's usually SQL-related ones.
I'd do a course on this if I were you.
did you mean MySQL etc.?
Yeah.
Okay
Pleasure.
Check OCW. They usually have some really nice courses for introductory stuff.
Youtube?
No, MIT OCW.
Search SQL or database
MySQL is a framework. You need to first learn the basics of databases.
okay
muSQL its not a framework
its somethink like relational database management system
# Example #1
message = "Hello World!"
print(message)
# Example #2
print("Hello World!")
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
damn got so many tabs there
@misty sinew 👋
python_hoomans = ['Beerhunter', 'Spelis the crazy swede :)']
for py_peeps in python_hoomans:
print('Hello ' + py_peeps)
python_hoomans = ['Beerhunter', 'Spelis the crazy swede :)']
for py_peeps in python_hoomans:
print('Hello ' + py_peeps)
you can search for Jose Portilla SQL course. maybe it'll be useful for you
why is this not centered?
what?
It is not in center ig because they want to put shadow ig
What I don't need to know?
EdgeList[(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 6), (6, 7), (7, 8), (8, 9), (9, 10), (10, 11)]
!e py print('abcdefg'[::2])
:white_check_mark: Your 3.12 eval job has completed with return code 0.
aceg
the image sent
@royal rivet 👋
hello
@pine copper 👋
Hello
Harry Cox
What u guys are doing?
html is a real programming language
i think so
if someone says i code in css
"i am out"
u mean brainfuck is real programing lang ?
@stuck bluff
Brainfuck is an esoteric programming language created in 1993 by Swiss physics student Urban Müller. Designed to be extremely minimalistic, the language consists of only eight simple commands, a data pointer and an instruction pointer.
Brainfuck is an example of a so-called Turing tarpit: it can be used to write any program, but it is not pract...
yep
if thats the point i will make new programing lang i will name it "thirsty cow"
The Compiler Language With No Pronounceable Acronym (INTERCAL) is an esoteric programming language that was created as a parody by Don Woods and James M. Lyon, two Princeton University students, in 1972. It satirizes aspects of the various programming languages at the time, as well as the proliferation of proposed language constructs and notatio...
DO ,1 <- #13
PLEASE DO ,1 SUB #1 <- #238
DO ,1 SUB #2 <- #108
DO ,1 SUB #3 <- #112
DO ,1 SUB #4 <- #0
DO ,1 SUB #5 <- #64
DO ,1 SUB #6 <- #194
DO ,1 SUB #7 <- #48
PLEASE DO ,1 SUB #8 <- #22
DO ,1 SUB #9 <- #248
DO ,1 SUB #10 <- #168
DO ,1 SUB #11 <- #24
DO ,1 SUB #12 <- #16
DO ,1 SUB #13 <- #162
PLEASE READ OUT ,1
PLEASE GIVE UP
could you share about ur recent projects
my discord bot is an unrestricted ai
@proper ridge @oak pebble @misty sinew
oh
i also have dc bot
I'll be quitt
?
sorry
i have finetuned sd3 for my ai bot
can i share discord link ?
php is a joke
@azure snow 👋
hello
what u doin guys
yes i want to use python bo
t
i would like run code
print("hello")
thats what i know
!e
print("hello")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
hello
!e
print("hello")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
hello
any good books for learning python oop?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!e
print("hello")
print("yellow")
x = 5+5
print(f"{x = }")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | hello
002 | yellow
003 | x = 10
Effective Python, Fluent Python
I've heard the second one mentioned more often
!e
import os
def get_memory_info():
# Using 'free' command to get memory info
result = os.popen('free -m').read()
return result
memory_info = get_memory_info()
print(memory_info)
: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 | memory_info = get_memory_info()
004 | ^^^^^^^^^^^^^^^^^
005 | File "/home/main.py", line 5, in get_memory_info
006 | result = os.popen('free -m').read()
007 | ^^^^^^^^^^^^^^^^^^^
008 | File "<frozen os>", line 993, in popen
009 | File "/lang/python/default/lib/python3.12/subprocess.py", line 1026, in __init__
010 | self._execute_child(args, executable, preexec_fn, close_fds,
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/JLRELARGL5H3TJFECVELN4U7Z4
got it time to pirate that book
just speedrun it in 10 days ¯_(ツ)_/¯
i would like to read a book but not for python
cant do that rn i have work in the morning haha
I want this book.
Quantum Computing and Information: A Scaffolding Approach
sounds intresting
I don't think it's on O'Rielly?
Yep.
how necessary data structure and algorithm for backend web dev?
depends on specifics
hi @delicate wren I thing there is liek 11
@fair heron
@sly pond ur voice is like ai genrated
Nope, polish generated
is it just me or trying to contribute on open source projects seems so hard :3
yep u hv to understand the code first then only u can do progress
yea thats my problem understanding the code haha i
yes do 0
@sly pond write python code to make snake game
thats what ai can do
@fair heron i am righ ? 👆
@tight marsh 👋
Snake is something you can write in Python, yes.
Which is quite fitting, really.
On in a bit, co-worker back here
And having to take care of some stuff
@lethal edge
Yes, Hemlock saw the itty pitty kitty
@merry parrot 👋
hi everybody, whats up?
howdy @thin lintel
I saw a itty pitty kitty
Provided to YouTube by Universal Music Group
Grieg: Peer Gynt Suite No. 1, Op. 46: I. Morning Mood · Berliner Philharmoniker · Herbert von Karajan · Edvard Grieg
Grieg: Peer Gynt Suites Nos.1 & 2; From Holberg's Time; Sigurd Jorsalfar
℗ 1972 Deutsche Grammophon GmbH, Berlin
Released on: 1989-01-01
Producer: Dr. Hans Hirsch
Producer, Recordi...
tiny sad kitty = itty pitty kitt y @thin lintel
3 Borats movies
is this a real bird ?
very round , like ping pong ball
Shima enaga -bird
gotta look it up
hows your training routine @mortal stone ?
password?
steroids gives you ball damage
do not install unknown packages without verifying
It is unknown? @mortal stone
@languid bramble hello
@lethal edge here
@buoyant halo Yo
because sudo
don't install docker.io
@mild flume have you ever seen 97~98% of all RAM usage come from a filesystem cache?
Only when it was indexing
today I had 2GB allocated, 90GB cache
tbf
for servers it's absolutely normal
if you're using something like ZFS, filesystem cache will use all the RAM available to it
(assuming OS that allows it to)
Weird
My experience was with Windows and it's weird SuperFetch stuff
Never had that as an issue with Linux distros before
it literally has almost the entire filesystem cached
it's not an issue, it's a benefit
stuff goes fast
@mild flume I've checked, and I have the same cache/total ratio on Windows
just above 50%
the difference is that Windows actually has considerable amount of memory allocated for apps
in my experience, Windows is better at handling swap
oh wait I realised it's wrong chat
@proper ridge https://burgerbytestudio.com/loot_game.html
@fair heron Hi
document.addEventListener("DOMContentLoaded", () => {
const wordThreshold = 1000; // Define word threshold as a variable for easy changes
const pre = document.querySelector("pre");
if (pre) {
const text = pre.innerHTML; // Get the inner HTML to preserve newlines
const words = text.split(/(\s+)/); // Split text including whitespace
let wordCount = 0;
let sentenceEndIndex = 0;
let insertIndex = 0;
let bookmarkId = 1;
let modifiedContent = "";
let lastInsertIndex = 0;
for (let i = 0; i < words.length; i++) {
if (!words[i].match(/^\s+$/)) {
wordCount += 1;
}
if (words[i].includes(".")) {
sentenceEndIndex = i;
}
if (wordCount >= wordThreshold && sentenceEndIndex > insertIndex) {
insertIndex = sentenceEndIndex + 1;
wordCount = 0;
// Construct the bookmark button with the anchor
const bookmarkButton = `<br><a href="#bookmark-${bookmarkId}"><button id="bookmark-${bookmarkId}" class="bookmark">BOOKMARK</button></a><br>`;
bookmarkId++;
// Insert button at the end of the sentence
const partBefore = words.slice(lastInsertIndex, insertIndex + 1).join("");
modifiedContent += partBefore + bookmarkButton;
lastInsertIndex = insertIndex + 1;
}
}
// Add any remaining words after the last bookmark button
modifiedContent += words.slice(lastInsertIndex).join("");
// Update pre content
pre.innerHTML = modifiedContent;
}
document.querySelectorAll("button.bookmark").forEach((button) => {
button.addEventListener("click", async function () {
// Add a 0.1 second delay
await new Promise((resolve) => setTimeout(resolve, 100));
try {
// Append bookmark ID to the URL and copy to clipboard
const bookmarkId = this.id.split("-")[1];
const newUrl = `${window.location.href.split("#")[0]}#bookmark-${bookmarkId}`;
// Update the browser's URL without reloading the page
window.history.pushState(null, "", newUrl);
await navigator.clipboard.writeText(newUrl);
// Optional: Notify the user that the URL has been copied
alert("URL copied to clipboard!");
} catch (err) {
console.error("Failed to copy: ", err);
}
});
});
});
@fair heron He is not watching stream
@obsidian grove 👋

hi
hello
Opal giving dating advice?
how u doing today pls i am new to this server pls tell me what this server is all about
i am fine this server is to help you with any python problems that you may be having
ok do anyone know python kivy and kivy md app development it a python libary
for building app for andirod and ios
that is new to me
@proper ridge why in the world are you writing the latex yourself, just go type it in https://www.symbolab.com/solver and copy the thing you've written
Free Pre-Algebra, Algebra, Trigonometry, Calculus, Geometry, Statistics and Chemistry calculators step-by-step
That's how you write papers hehe (not being smug, just what my research supervisors have scolded me on). You write in overleaf, and plus, I'm faster this way.
theres no way you're faster than an interactive prompt but ok lol
@proper ridge you're doing algorithmic analysis in pure maths, calculus?
Umm, sort of. I'm deriving a generalization of Feynman's Path Integrals for arbitrary systems. If you're familiar with functional integrals, you can actually follow as I'm writing this to some extent.
Impressive
Not really, but I deeply appreciate it.
I want to do maths too. Xd
waiting to buy a writing tablet. I will start Maths immediately.
I know you can still be soft dev, but, I'm stubbon I want to do maths along with programming 😊
Loo
Yo
yo
hi
-_-
hi
how to verify voice
Go to the #voice-verification channel
how we can verify it ......
That'll tell you what you need to know about the voice gate
That has a verify button
It'll tell you whether you qualify and if not, what the requirements are that you have left
i have less then 50 messges
same
Yep! You'll get there naturally. Just hang out with us, chat in here. If we're in VC we'll be watching the text chat as well so that no one gets left out of the conversation
Note that if you try to spam your way to the message count, we'll typically add 2 weeks to the amount of time it takes to verify
me too guys
can we spawn a littel pls
@spark kestrelooh
No
can we spam a littel
any1 know python
hmmm
hmm
yes bro@spark kestrel
no we're all here for the show
lol
just start python
wtf!!@#
You alright there kai?
:incoming_envelope: :ok_hand: applied timeout to @spark kestrel until <t:1722523312:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
You sound so fkn cool right now.
😳
!tvmute 1246074601663107129 2w You were warned not to spam in order to get voice verified.
:incoming_envelope: :ok_hand: applied voice mute to @spark kestrel until <t:1723732385:f> (14 days).
@pine socket Connection issues?
I love the "The primordial entity (God (Developer)) judges you(the Character) and You(The Player)" idea
yo i am back
i got b;ock from cumunity for 10 mintes
john
bro
?
how to verify voice fast
Well
You can't now
You have to wait the 2 weeks additional. Which I warned you about
create a function combination(L, n) which takes a list(L) and an integer(n) such that the function returns a list of all possible combinations of n digit created by member of list(L)
Eg :-
a = combination([1,2,3], 2)
print(a)
output :-
[ [1, 2] , [2, 3] , [1,3] ]
A Rust HTTP server for Python applications. Contribute to emmett-framework/granian development by creating an account on GitHub.
The lightning-fast ASGI server.
If you're looking for a programmatic equivalent of the
uvicorncommand line interface, useuvicorn.run()
a bit of history: vfork
also impressive having monospace formatting in ToC
if someone wants to know the context behind status of 🚀broken software:
my phone thought I was in Baikonur
I... how
the only place which is formally Moscow and UTC+5
no questions about the background
note: local time is shown on the left
real time is shown on the right
as in supposed to be there
@tame leaf one went all the way to Red Square, so not that difficult
how did no one mention yet it's actually GMT+5
correction bait didn't work
(I actually just wasn't sure how GMT is spelled)
!pypi boto3
!pypi aiobotocore
!pypi aioboto3
http and blocking on a single fd is a terrible combination indeed
switch to Forgejo
if you don't care about fine grained access control
I self-host CI for better performance and being allowed to use it on proprietary stuff
because there are laws/restrictions against sending code abroad, but when it's sent to employee's home it's totally fine 👍
oh and also having a private container registry is extremely useful
The paradox of hedonism, also called the pleasure paradox, refers to the practical difficulties encountered in the pursuit of pleasure. For the hedonist, constant pleasure-seeking may not yield the most actual pleasure or happiness in the long term when consciously pursuing pleasure interferes with experiencing it.
key word "may"
"Pleasure is, and must remain, a side-effect or by-product, and is destroyed and spoiled to the degree to which it is made a goal in itself."
Some philosophers, such as Jeremy Bentham, Baruch Spinoza, and Descartes, have hypothesized that the feelings of pain (or suffering) and pleasure are part of a continuum.
There is strong evidence of biological connections between the neurochemical pathways used for the perception of both pain and pleasure, as well as other psychological rewards.
This lecture describes the details of the neuronal action potential. The lecture starts by describing the electrical properties of non-excitable cells as well as excitable cells such as neurons. Then sodium and potassium permeability properties of the neuronal plasma membrane as well as their changes in response to alterations in the membrane po...
ok
no i mean all are just saying - "like like uhmm mmm like "
Just how people process sometimes between words
that's how humans talk
Lol
Takes a lot of practice not to
smart stuff takes time to figure out🤓
For sure
that's me 😄
*PyDis
PyDis in my room
crawlin round 🕷️🕸️
in the balls only microplastics...
Soul is stored in the balls 😂
that's why it goes there
it wants to infect our souls
😄
Hi LX
Yo 👋
I'm romantic until I get to know you.
Knob-and-tube wiring (sometimes abbreviated K&T) is an early standardized method of electrical wiring in buildings, in common use in North America from about 1880 to the 1930s. It consisted of single-insulated copper conductors run within wall or ceiling cavities, passing through joist and stud drill-holes via protective porcelain insulating tub...
I just meant that you have a pinch of it)
no much
but its hearable
😄
)))
stop showing off
speak from your heart
vc is very crowded today
If you spam, you will get 2 weeks added to the amount of time it'll take to verify
depends on defenition 😛
Just hang out, talk in here or in other parts of the server, you'll get there faster than you might think
For a second thought your name was Zakhaev.
Almost called 141 on you.
Yes.
😁 played it in high school, lol
so I'm buying a second switch
Switch as in Nintendo Switch?
and for some reason the only port counts are:
5
8
50
Ok I feel stupid now.
my brother has one and hes not letting me play lol
bro was so spoilt
I have some questions about the obviously missing part of the range
he got the full gear
alisa do you have the nintendo ring thing
"ring fit adventure"
he has it lol
He meant for his hardware I believe, not the gaming console.
did he what?
lol i saw this
network switch?
That game is way more fun than it should be
@hearty heath are you free to help me on v and q value updates
yeah
do you have that?
Yeah, haven't played it in a while
ive never got to play though
Probably should
Maybe in a minute
i thought it's called duck duck goose
Swap the - yeah
doesn't matter how its callled)) You got it
Okay, minimizing discord now, because even the text is distracting me
dipole-dipole interaction
cat philosophy
ty wikipedia
baka mitai
dame da ne
that's what he's saying now
lol, you made people leave:D
just wonder how comfortoble to code here @gritty tiger 😄
hades, you have such game
kinda cool
@hearty heath are you free now
I'm just going to get a glass of water then I'll be available
@obtuse valve 👋
+= will work because it's different from +
Yea, but you'll get a runtime type error
!e
a = []
a += ""
a + ""
: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 | a + ""
004 | ~~^~~~
005 | TypeError: can only concatenate list (not "str") to list
im in code/help
+= is basically just .extend
i made a library so i can do + 😄
similar to how |= is like .update for set
+= makes more sense...
!d operator iadd
Source code: Lib/operator.py
The operator module exports a set of efficient functions corresponding to the intrinsic operators of Python. For example, operator.add(x, y) is equivalent to the expression x+y. Many function names are those used for special methods, without the double underscores. For backward compatibility, many of these have a variant with the double underscores kept. The variants without the double underscores are preferred for clarity.
The functions fall into categories that perform object comparisons, logical operations, mathematical operations and sequence operations.
The object comparison functions are useful for all objects, and are named after the rich comparison operators they support:
operator.iadd(a, b)``````py
operator.__iadd__(a, b)```
`a = iadd(a, b)` is equivalent to `a += b`.
hello
@raven orbit
yo
no
its an arabic writing
it means
i love chicken
no no
dw
i mean it might be
i just do it for da memez
i need to send 50 msgs
for sum reason
can i just spam
:incoming_envelope: :ok_hand: applied timeout to @keen quest until <t:1722532670:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
evidently not
did you read #voice-verification?
!vban 1232048896033689743 14d Don't spam
:x: This command is not yet implemented. Maybe you meant to use voicemute?
yeah
really hit that todo!() in code
!voicemute 1232048896033689743 14d Don't spam
:incoming_envelope: :ok_hand: applied voice mute to @keen quest until <t:1723741814:f> (14 days).
!source vban
NOT IMPLEMENTED.
we changed it to voicemute a little bit ago
wasn't there also tvmute
Temporarily voice mute a user for the given reason and duration.
tvmute requires specifying duration seems like
so vmute help message also doesn't have the durations stuff
dude cmon i was already muted by the bot
thats not friendly
i wasnt griefing or something
sorry
didnt mean to
It's stated pretty clearly in #voice-verification
No
And voice lead, ye
see im a good person
Not good enough to read the rules, however
ill read em next time
quoting #voice-verification,
cmon dude
If you wish to appeal the infraction, send a dm to the @crisp hazel bot.
i mean i did a mistake i admit it
at least give me a lighter sentence
Again, if you want to appeal the infraction, send a dm to the @crisp hazel bot
Red Riding Hood , game theory
Capatilist Red Ridinghood -
@gritty tiger commit
can someone explain to me why when I used a method without str they show me this in the output '<main.Circle object at 0x022FFB98>' : class Circle:
def init(self, radius):
self.radius = radius
def __str__(self):
return f'Circle(r={self.radius})'
my_circle = Circle(4)
print(str(my_circle))
Try changing your str method to __str__ or __repr__ instead. I dont remember exactly I havent used Python in a while
but why ??
Methods that start with a double underscore are called dunder methods and they are the built-in methods you can set for classes to get to behave in certain scenarios. For example setting __str__ is the method that is called when you are trying to print it
There are many others like __ge__ (ge for greater than or equal) that is called when using the >= operator
__str__(self): Defines behavior for when str() is called on an instance of your class.
__repr__(self): To get called by built-int repr() method to return a machine readable representation of a type.
Source: https://www.geeksforgeeks.org/dunder-magic-methods-python/
.py
ok 👍
Here are the top 5 results:
ok screw this bot
bro is worst than chatgpt
fr
lol make an alias for this cmd
!e
print("test")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
test
?
@calm tusk hmm
@vital marsh 👋
import cProfile
qpi = QPI(initial=np.array([0, 0]), final=np.array([1, 1]), bisection_level=20, number_paths=2**5, n_filtrations=0)
cProfile.run("qpi.calculate_fpi()")
hello @stuck bluff
67109094 function calls in 179.051 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.040 0.040 179.029 179.029 1191901527.py:153(calculate_fpi)
1 0.002 0.002 29.600 29.600 1191901527.py:170(<listcomp>)
32 108.376 3.387 149.385 4.668 1191901527.py:29(generate_path)
32 14.091 0.440 29.598 0.925 1191901527.py:70(path_contribution)
33554432 15.506 0.000 15.506 0.000 1191901527.py:79(interaction)
1 0.020 0.020 179.050 179.050 <string>:1(<module>)
32 0.001 0.000 0.001 0.000 {built-in method builtins.abs}
1 0.001 0.001 179.051 179.051 {built-in method builtins.exec}
33 0.000 0.000 0.000 0.000 {built-in method builtins.len}
96 0.004 0.000 0.004 0.000 {built-in method numpy.zeros}
32 0.004 0.000 0.004 0.000 {method 'append' of 'list' objects}
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
33554400 41.005 0.000 41.005 0.000 {method 'normal' of 'numpy.random.mtrand.RandomState' objects}
I'll call you.
33558534 function calls in 50.471 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.163 0.163 50.438 50.438 1108957198.py:146(calculate_fpi)
1 0.044 0.044 39.456 39.456 1108957198.py:163(<listcomp>)
32 8.512 0.266 10.807 0.338 1108957198.py:29(generate_path)
32 24.072 0.752 39.412 1.232 1108957198.py:63(path_contribution)
33554432 15.340 0.000 15.340 0.000 1108957198.py:72(interaction)
1 0.030 0.030 50.468 50.468 <string>:1(<module>)
32 0.001 0.000 0.001 0.000 {built-in method builtins.abs}
1 0.003 0.003 50.470 50.470 {built-in method builtins.exec}
673 0.007 0.000 0.007 0.000 {built-in method builtins.len}
672 0.184 0.000 0.184 0.000 {built-in method numpy.arange}
64 0.004 0.000 0.004 0.000 {built-in method numpy.zeros}
32 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1920 0.591 0.000 0.591 0.000 {method 'astype' of 'numpy.ndarray' objects}
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
640 1.509 0.002 1.509 0.002 {method 'normal' of 'numpy.random.mtrand.RandomState' objects}
@proper ridge WHAT IS CODE ABOUT ?? BRO!!
ON WHICH PROJECT U ARE WORKING ON .....
WHAT IS THE AIM OF THE CODE
@proper ridge @misty sinew WHAT IS BISECTION IS IT a identifier or any funtion guys please explain
!pypi pymoo
!pypi py3
Yeah that's totally right
for i in range(self.number_paths):
interaction_amplitude += np.exp(-1 * action_list[i])
interaction_amplitude = np.sum(np.exp(-1 * action_list))
@misty sinew
@proper ridge I don't think it was you. I think we all had a blip.
Some of the funniest and best moments of James Randal GTA 5 RP!!
Thank you all for watching!
Spaceboy Links:
►Merch: https://spaceboymerch.com
►Twitch: https://www.twitch.tv/spaceboy
►YouTube (Main Channel): https://youtube.com/@Spaceboylive
►YouTube (Clips Channel): https://youtube.com/@SpaceboyClips
►TikTok: https://www.tiktok.com/@spaceboyr...
finally found a way to use async-executor for Python-Rust async integration
as a side effect, I can finally use queues of size 0 without performance penalty
rendezvous channels
write doesn't succeed until someone reads from it
good morning, no mic today because in a cafe.
so instead been working on my own productivity. e.g. TIL what Ctrl+R does when you have fzf installed.
Good evening!
hi 😄
