#voice-chat-text-1
1 messages · Page 112 of 1
@round maple very good.
Garbage bags don’t serve much of a function inside computers.
Unless you are looking for built in garbage collection
yeah ur right
how do i do it
yeah im verified
Nice nice
!voiceverify
hi
Hi
Hi
Excuse me, why can't I import Discord?
make pip install discord
so, u might import discord.ext
👀 i think he got it done in vc 0 instead
alsos its snot pip install discord but pip install discord.py
@vital gazelle
I install it =|
!voiceverify
!voiceverify
:incoming_envelope: :ok_hand: applied mute to @quiet girder until <t:1634109444:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
@quiet girder haha
!voiceverify
!voiceverify
hi, can anyone help me with this simple problem? (it's complicated for me but probably simple for y'all)
wop
A web app that works out how many seconds ago something happened. How hard can coding that be? Tom Scott explains how time twists and turns like a twisty-turny thing. It's not to be trifled with!
A Universe of Triangles: http://www.youtube.com/watch?v=KdyvizaygyY
LZ Compression in Text: http://www.youtube.com/watch?v=goOa3DGezUA
Characters, Sym...
interesting @quaint olive
Have you ever had a hard time telling the difference between an Aussie and a Kiwi accent? Dialect coach Erik Singer breaks down the subtle differences between a few commonly confused regional accents. What actually makes a New York and Boston accent different? What's the main differentiator between a northern and southern English accent?
Still...
@quaint olive
longtime
hi guys
cs50 web developement
you can check the details in the voice verification channel
hello?
Hi
hello
does someone knows how to draw fractals by python
@crystal baysame that's why i am asking here
ty
for those who wants to talk about something other than non-religious headgears
Codeplayground
oh ok
hello guys
hey let me in
you're in
how to unlock mic
#voice-verification < read here
hahahah thank youu so mucj
mucho griaias
de nada
Hello, I am here
hii
hi
Hey everyone
Hey
✅ @covert idol can now stream until <t:1635088434:f>.
That looks better xD
Do you have the credits saved?
In a Database or something?
I was just saying because of the bets.
yeah, with socket
i did that once
Yeah.
But once you get the hang of it.
I did a game.
Why not if Userbet != 0?
Or > 0
@covert idol
Why don't you put ">=" then?
nice errorhandling with blank names: print("")
oh now youre adding it
I'm sorry but I gtg
Maybe I'll be back
maybe i won't
bye
good luck
Hey there
I'm back
We could do a code together 🤷♂️
Hello there @misty sinew
Yeah sure
then we can do something through an extension i think
HEY WHATS UP
I do
bigsur gtk
You don't need \n in an """""" String.
I think.
Oh, ok
Why doesn't it get 2?
@covert idol
You just get one Var in the random output, dont you?
value*
Oh, well that sounds quite reasonable
Have you done any extra steps for the Ace value?
The best cards I have ever got is straight up an Ace and a Ten.
And the dealer haven't got the same one
mhm
You could make a deck variable thats just a list comprehension of cardvalues.
That loops through
!or
When checking if something is equal to one thing or another, you might think that this is possible:
if favorite_fruit == 'grapefruit' or 'lemon':
print("That's a weird favorite fruit to have.")
While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.
So, if you want to check if something is equal to one thing or another, there are two common ways:
# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
print("That's a weird favorite fruit to have.")
# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
print("That's a weird favorite fruit to have.")
if uinput == 1 or uinput ==2:
...
or
if uinput in (1, 2):
...
# loop until we tell it to stop
while True:
# set the username
username = input('Enter username: ').strip()
# if it was not an empty string
if username:
# break out of the loop
break
# it was empty, so print a message before next iteration of the loop
print('Please enter a username')
# ...
Is it finished yet @covert idol? ;)
i think he is talking about the ps1 of the terminal
@covert idol i think he is talking about the ps1 of the terminal
that is not rendering
@covert idol "terminal.integrated.fontFamily": "<font_name>",
^ use this with your font name in your settings.json later
🙂
The byte is a unit of digital information that most commonly consists of eight bits. Historically, the byte was the number of bits used to encode a single character of text in a computer and for this reason it is the smallest addressable unit of memory in many computer architectures. To disambiguate arbitrarily sized bytes from the common 8-bit ...
i just want a bite of food rn
lol
A byte is unrelated to the normal human "bite"
I am still on Windows for two reasons:
- Gaming laptop (would have horrible driver support on Linux)
- Game support (would have horrible support for gaming)
But I
Linux so much that I'm running Xfce on Ubuntu on WSL on Windows
@covert idol
if player_choice == "R" and comp_choice == "S":
print("you win")
if player_choice == "R" and comp_choice == "P":
print("you lose")
if player_choice == "R" and comp_choice == "R":
print("tie")
if player_choice == "P" and comp_choice == "R":
print("you win")
if player_choice == "P" and comp_choice == "S":
print("you lose")
if player_choice == "P" and comp_choice == "R":
print("tie")
vs
if player_choice == comp_choice:
print("tie")
if player_choice == "R":
if comp_choice == "S":
print("you win")
else:
print("you lose")
if player_choice == "P":
if comp_choice == "R":
print("you win")
else:
print("you lose")
switch (expression) {
case value1:
//Statements executed when the
//result of expression matches value1
[break;]
case value2:
//Statements executed when the
//result of expression matches value2
[break;]
...
case valueN:
//Statements executed when the
//result of expression matches valueN
[break;]
[default:
//Statements executed when none of
//the values match the value of the expression
[break;]]
}
from typing import Literal
# IDs 1 and 2 are players.
# ID 0 is used in getVictor for a tie.
PLAYER_ID = Literal[0, 1, 2]
# The choices
RPS_CHOICE = Literal[0, 1, 2]
ROCK, PAPER, SCISSORS = 0, 1, 2
def getVictor(p1choice: CHOICE, p2choice: CHOICE) -> PLAYER_ID:
if p1choice == p2choice:
return 0 # tie
if p1choice - p2choice == 1 or p1choice - p2choice == -2:
return 1 # player 1 won
return 2
switch (true) {
case TEST_1:
BODY_1; // TEST_1 only
case TEST_2:
BODY_2; // TEST_2 or after BODY_1 of TEST_1
break;
// ...
}
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
p1 = Person("John", 36)
print(p1.name)
print(p1.age)
playerHand = {
"ACE" : 11,
"SEVEN" : 7,
"SIX": 6
}
def getTotalValue(hand):
return sum(hand.values())
if (getTotalValue(playerHand) > 21):
if "ACE" in playerHand.keys():
playerHand["ACE"] = 1
print(getTotalValue(playerHand))
@covert idol
I have a question : I was bored and i wanted to code my Cabinet power light to blink in a specific pattern and i am running pop OS. Any idea how to do that?
We watch animes
lol
@short nymph 100 percent agreed
@covert idol i think the stream is stuck
use an Arduino and a relay
your desktop os is unrelated
ok @raven orbit thanks
it possible to control my keyboard lights so i thought i can do that too using just software stuff
I am talking about this power light just to make it double sure
you said cabinet, right
or do you mean case
cabinet is case or am i dumb to name it cabinet?
i am talking about the cabinet light
i mean the case lol
sorry i mean the case where you keep your hardware
the power light on that
i asked on stackoverflow
they said you need to write your own bios for that
@cold trellis you definitely do
@cold trellis you sound Indian to me
thanks mate
good luck
Pakistan people speak pakistani
and Afghan people dont speak because they are too busy dying
@cold trellis my dude paying my college fees at the age of 13
GG
@cold trellis India sed lyf
@cold trellis its government funded
thats why
we can study for free too
if you submit a fee omit certificate
I am 19
@cold trellis you are indian so you know that they dont charge fees for SC and ST candidates
ok
@cold trellis you still in college or graduated?
@cold trellis are you an IITian?
yeah its hyped
@covert idol and that too is the top voted answer on stack overflow
lol
@short nymph so how do you die painlessly in that game?
Noo Stop Nooo
Make your camera flash morse code and make it say - "Nvidia Fuck you"
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
bruh
hangman is easy
@covert idol I just used nltk on a paragraph and just used the generated questions to make the game
i didn't added graphics but
natural language tool kit
This Python tutorial for beginners shows you step-by-step how to build a basic command-line program: Hangman! The game will allow for user input, and will also output a visual of the hangman alongside the word that’s being guessed.
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrat...
@short nymph backtracking goes brr
@covert idol do you know about web scrappers?
@covert idol google it i think its a cool project
maybe practice on some online competitive programming website, not a project but still very educational
in cpp
@short nymph these guys are awesome
nvm
Mari0 (pronounced "mari-zero" or "Mario") is a 2012 side-scrolling platform video game developed by German indie developer Maurice Guégan and released onto his website Stabyourself.net. It combines gameplay elements from Nintendo's Super Mario series and Valve's Portal series. The game features Mario armed with a "Portal Gun", the main game mech...
!e
print("hello %s you are %d years old" %("Davinder", 22))
@cold trellis :white_check_mark: Your eval job has completed with return code 0.
hello Davinder you are 22 years old
!e
d = {"name":"Davinder","age": 22}
print("hello {name} you are {age} years old".format(**d))
@cold trellis :white_check_mark: Your eval job has completed with return code 0.
hello Davinder you are 22 years old
!e
d = {"name":"Davinder","dog":"John","age": 22}
print("hello {name} you are {age} years old".format(**d))
@raven orbit :white_check_mark: Your eval job has completed with return code 0.
hello Davinder you are 22 years old
The gang tries your #1 most requested subject - each other. Who do you think captured their partner's likeness best?
With special guest Stephanie Alexander!
https://instagram.com/stephanieanimates
http://www.stephanieanimates.com
Want to see the latest from the Draw-Off Gang? Check out the newest video here: https://youtu.be/NumtAqC_sfo
Foll...
https://www.youtube.com/c/watcher @raw wren
Watcher is a new production studio that is focused on creating television-caliber, unscripted series in the digital space. Our shows have a genuine curiosity and earnest exploration into a variety of topics including food, travel, horror and everything in between.
Subscribe to stay up-to-date on the latest for your favorite series.
OUR SHOWS:...
be good to her.
produced by JPEGMAFIA
written by JPEGMAFIA
mixed by JPEGMAFIA
mastered by JPEGMAFIA
stream: http://hyperurl.co/jh6f5q
WHITE SUPREMACY!!!
what about it
!warn 738901122982608946 If you plan on getting high, then do it somewhere else. If you can't stop yourself from interrupting conversations, disrupting them with unrelated questions and being weirdly confrontational just for the sake of being so, you will have your voice permissions revoked.
:incoming_envelope: :ok_hand: applied warning to @misty sinew.
I get image perms but not vc perms aaaaa
:(
It's really weird though that I can't see who's talking
;; Hello world in Fjölnir
"hello" < main
{
main ->
stef(;)
stofn
skrifastreng(;"Hello, world!"),
stofnlok
}
*
"GRUNNUR"
;
helo mikroswoft teknicaln suport???
Music: MoozE - Dead Cities Pt.2 (S.T.A.L.K.E.R.: Shadow of Chernobyl OST)
https://soundcloud.com/musicbymooze
Video: S.T.A.L.K.E.R.: Shadow of Chernobyl (GSC Game World)
Edited files from game resources
http://www.gsc-game.ru
Stalker in your mind..
Happy memories in one song
we all remember that part of Stalker.
func main() {
defer {
print("Xd")
}
}
defer func(){
log.println("Xd")
}()
@halcyon notch bash curl https://api.github.com/repos/$2/$3 2> /dev/null | grep size | tr -dc '[:digit:]'
I haven't done anything since Saturday
I have been waiting for the part were we integrate pandas, and import data
👀 ah srry i had discord minimized so didn't read
i added instructions for people without conda too
on the workshop channel
cuz i don't use conda and i know alot of people who don't need or want conda
but wanna follow
conda is the worst
Even PhotoShop is available in the browser now
https://blog.adobe.com/en/publish/2021/10/26/new-creative-cloud-releases-enable-creative-collaboration-drive-innovation-empower-creative-careers.html
condas breaking of dependencies is the worst...
@halcyon notch https://2020.stateofjs.com/en-US/
{name, age} = ["Davinder", 22]
@halcyon notch ^ javascript nullish coalescing example i posted earlier forgot to mention
unlike || it will only return 2nd value if first one is null or undefined
with es2020 i think assignment works too
let A = null;
A ??= "default";
how can i speak in here?
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i have been
ive just been taking it all in
good convo
lol
he sounds edumacated
what is a conjugation?
!voiceverify
Hi guys i'd love to be voice verified soon but only just starting out using python and don't have much to say
Nothing wrong with that. What got you interested in Python? Also you're more than willing to hang out in voice chat with us, and you can still chat with us by talking in the paired text channel (so #751591688538947646's pair is #voice-chat-text-0)
Typically if we're in there, we'll also be watching that chat
So no one gets left out
Hi, thank you for reply to my comment. I'm interested in building tools for renewable energy and the production of monthly reports from a dataset of API triggers, say from Fiix CRM. I have lots of separate CSV files that I need to amalogmoate into one report. I'll check that chat out too.
I might recommend "Automate the Boring Stuff" as a good starter. There's a section that covers working with CSVs, and gives a better look at the practical applications of Python. It's available for free on their website, you just have to scroll down about 2/3rds of the way to get to the table of contents: http://automatetheboringstuff.com/
yeah Bro ga
@hushed wolf 什麼嘉开?
嘉开 is my dharma/buddhist name :)
given after i did refuges and precept ceremony under pure land lineage
it roughly translates to "open"
Pure Land Buddhism, it is a school under Mahayana
here is cert if you are curious:
oh certificate shinny
嘉 means "shakya/family/excellent" (given to all under Master Renshan) and 开 means "open" (my name)
I'm aware
i was not when i received it haha, my mandarin is not so fluent
i can sing in mandarin but not speak it lol
嘉 is basically a synonym for 好 Hao (good).
ah interesting
@true valley have you heard of nembutsu? is from japanese pure land school, practiced in some zen circles as well
Saying the Buddha’s Name ( Namo Amida Butsu - 南 無 阿 彌 陀 佛 ), fulfilled in Amida's Primal Vow, is the active cause of our birth in the Pure Land. Simply sing Amida's Name and be saved.
Benefits of Saying Amida's Name, receive by us in this present life, is clearly discussed in this video: https://www.youtube.com/watch?v=gfpH8doTl60
'Amida Bud...
So your name, is also a phrase that people will say, like how is your day? It's "Fine"
Haven't heard of membutsu.
has been my fav form of meditation lately
nianfo is chinese version, same idea just different pronunciation of Amitabha Buddha
This video just seems like a soundtrack, is it a chant?
yep
recitation of Amitabha Buddha's name basically
can chant or just say
many versions haha
for comparison, here is a chinese version: https://www.youtube.com/watch?v=djOENzAOTKM
There were some similar chants at the monetary I went to, however, they simply included all the names of enlightened people since buddha. It took 4 or 5 hours to recite.
oh thats cool
it was fairly intimidating...
had a shorter version at great vow zen monastery
starting on page 14 (17 in pdf browser)
but focused on zen teachers i think
I really is a mental feat, like memorizing the digits of pie to a thousand decimal places or something, that kind of mental ability isn't something that I'm going to be able to reach in this lifetime.
haha you can do anything you set your mind to :)
could take more than one lifetime though i suppose :P
I'm sure it's possible for me to do it, I am not sure that I have the motivation.
fair
Perhaps I will walk through it one day with the assistance of paper, just like how one of these days I will walk a marathon. 😄
Overview of available hardware and software in the RISC-V ecosystem, including links to support channels and product lines
@mystic sand hey
Heu
iirc u are from brodevil server
Yes
Heyy Alec, Jake and Bluenix!
👋
im tryna integrate rust applications and python
alright, i'll write tests now 🙂
btw vscode vs pycharm?
VSCode 😎
@sage shuttle there's a small bug in wumpy, may i open a pr?
Thanks for your opinion hehe!
Oh? Where lol
Oh haha
:))
Yeah go ahead
😄 ty!
bruh i gotta delete the fork, i messed up
@Boo!nix is it alright if i pr from main -> main or do i make a separate branch?
I mean, from my perspective it doesn't matter, but it will mean that your main will be different from the parent repository
ah alright, you're working in the main branch rn right? cuz i dont wanna screw things up
Yeah I am
aight, ive opened a PR
@sage shuttle -> Btw, this is built with read the docs too: You can use the theme if you like it! : https://kittyborgx.github.io/hydralang
A functional programming language with simple syntax and a very efficient thread management system
Yes I see it
Yeah I want to play around more with themes
:0 the one i use is called : mkdocs-material (https://squidfunk.github.io/mkdocs-material/)
Yeah but yours is quite different. With some image background
I'll have to look at your source to see what you changed
Yup, thats with some html magic
Nice
https://github.com/KittyBorgX/hydralang/tree/main/website the entire thing is here if u wanna look at it
eloo
i was off for a while hehe
cya later then bluenix?
UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
Some basic sequence type classes in python are, list, tuple, range. There are some additional sequence type objects, these are binary data and text string.
Some ...
Hello
Lexter
UUID type for PostgreSQL
https://www.postgresql.org/docs/14/datatype-uuid.html
hello outlook
I think the second one is the most grammatically correct
Quick answer:
import uuid
uuid_ = uuid.uuid4()
Long answer: https://docs.python.org/3/library/uuid.html
UUID v4 is completely random
All the other versions require extra information to build the resulting UUID from
Since we're talking GTAO https://www.youtube.com/watch?v=mq5fBb_bZlk
noob question.. what ide is that?
VSCode
thx
wtf happened to my vs code
lol wat
i was using cascadia code font
which i definitely still have installed.. and is still in my settings
i think maybe a windows update or something broke cascadia? bc i had a problem with it the other day
how'd you fix it? i changed to another font for now
uh i didnt, i've had virtually everything break in the last week and thats not on the top of my list
lollllll ok

@spare trellis can you please help me with python task which I can figure out how to complete?
hello 👋
👋
lmao
I'm going to hang out in Voice Chat 1 as VC0 has too much cross-talk
what Nix you're using Aaron
What is that?
linux screenshare doesnt do audio
skyfactory 3
is there anywhere i can see your pc specs
have u ever played rlcraft mod pack
briefly
bal = 1
hour = 0
def hours_to_legal_limit(bal, hour):
bal-=0.015
hour+=1
if bal > 0.05:
hours_to_legal_limit(bal, hour)
else:
print(hour)
hours_to_legal_limit(bal, hour)
round()
bal = 1
hour = 0
def hours_to_legal_limit(bal, hour):
bal-= 0.015
hour+=1
return bal
while bal >= 0.05:
hours_to_legal_limit(bal, hour)
else:
print(hour)
HOLA
Hey all
My dad is/was realtor as well
hmmm. that's an interesting consideration.
Damn it, just spilled water all over myself
@true valley should I buy citycoin?
Never heard of that one
haven't heard of it. let me check it out.
Is it etherium based?
@true valley it seems to be, apparently you can start mining a newly launched nyccoin tomorrow: https://www.citycoins.co/nyccoin
curious to know your take on it though
"City Chain is planning to support the Decentralized Identifiers " this seems to be their "value add" to the space. However, other than this promise, I don't know what they are doing that other coins are not. I would want to wait to see this tested and implemented before I would think about investing.
The Marchant Framework, Voting Framework, Property Registry, and Vehicle Registry are available from other system, so it is really the implementation and ability of the city chain group to deliver these services that would make them successful over other competitors. I see lots of "Plans" ion their website, but not a lot of examples.
i see what you mean. the big picture could be for smart cities down the line probably
I have seen many of these projects come, stall, and then push back milestones as money begins to dry up. Some of the coins have good intentions but aren't able to deliver, others are straight scams, some manage to succeed and create robust working system, but still don't succeed because they are immediately copied and out marked by another system that has more money, and more ability to market themselves and gain attention.
FastAPI framework, high performance, easy to learn, fast to code, ready for production
🪟
The Western Digital Blue 3D NAND SATA SSD utilizes 3D NAND technology for capacities up to 4TB with enhanced reliability. Featuring an active power draw up to 25% lower than previous generations of Western Digital Blue SSDs, you’re able to work longer before recharging your laptop, while sequenti...
This VC looks a lot like Staff Voice right now lol
@raw wren
stop stalking me
jake_not_being_a_dick.png
@mild flume you live in the same Springfield the Simpsons is based on?
Springfield is a fictional city which serves as the primary setting of the American animated sitcom The Simpsons and related media. A mid-sized city in an indeterminate state of the United States, Springfield's geography, surroundings and layout are flexible, often changing to accommodate whatever the plot of any given episode requires.According...
doubtful
it's fictional
it always felt like a real place 😔
If it did exist, then Hemlock would definitely be the type of dude to live in it
So I was doing some more research on CityCoin , and while there weren't any technical reason I found their developers to be amazing, or any novel technology, they do seem to have some serious backers. Namely Eric Adams, the new Mayor-Elect for New York City. If he stands by his statements to take a paycheck in Bitcoin, and some comments on support CityCoin, it may be interesting. However, it is hard to tell if these are just some pro-crypto currency statements by Adams, or if their will be real legal and perhaps financial support from the City.
python 3.9
python 3.10
Friedrich Wilhelm Nietzsche (; German: [ˈfʁiːdʁɪç ˈvɪlhɛlm ˈniːtʃə] (listen) or [ˈniːtsʃə]; 15 October 1844 – 25 August 1900) was a German philosopher, cultural critic, composer, poet, writer, and philologist whose work has exerted a profound influence on modern intellectual history. He began his career as a classical philologist before turning ...
@stuck bluff
?
you are late
No it's fine
@steep fiber I'll be chatting here jby the way
by
I didn't know that existed
The Discord screensharing
The screen share isn't loading since my Discord is acting buggy hm
Let me leave and rejoin
I see it now
Hm, so it's also a line tool/
?
Can you make curves with it?
Woahh
How much does this cost?
So Affinity I'm guessing?
Oh wow
Can you draw with it too?
without them
Like free drwaing
drawing
Ah, what about affinity?
ohh, Illustrator/Affinity is for raster graphics?
Rather than drawing
hh
Oops
Very beautiful scribbles
I'm back, sorry about that
Oh wow it's almost 12 AM there?
I'm guessing your sleep schedule is gonna be ruined again
Thursday is probably one of the most horrible days of the week
you're just waiting for friday
f
Wow, zero pixels whatsoever
Yeah I had the same question as Jake
Quick question real quick on the topic of PNGs
Sleeping mode
or focus mode actually
Ewww, pixels
I am now definitely convinced that vectors over rasters
Now now, is SVG turing complete?
Gonna learn how to code in SVG now 😎
definitely_not_malicious.exe
click here ^
discord is hot 😈
This is my break from programming rn being on VC because C is annoying me right now
The string handling is confusing me a lot
I C
@steep fiber it is fine. i stopped for like... half a year
i do read books from time to time. just not that passionate zzz
Speaking of, @onyx meteor (if it's fine) I sent the google drive with your resources to a few fellow PyDis members here like dawn and aboo
They liked it a lot
esp. the effective C pdf
Would it be illegal to send a PDF of a book I own, cause I wanna give it out as a resource to other people cause it's a great book but idk if I'm not allowed to
I've been learning some C. I'm making a mini 2D physics thingy, although I've hit a roadblock where it seems like keypresses are deleting some of my variables 😦
im buying a julia book by 28th of nov
My roadblock right now would just be why my lexer is buggy because I didn't use pointers, but hopefully we'll both get past our roadblocks
fingers crossed 🤞
as long as you dont sell it. hmmm
Ooh
Awesome
the book is a Python internals book
I've started other languages but Python is forever gonna be in my heart for my first language and the language I've spent the most time trying to learn its semantics of
Like internals, etc.
I've read 1/3 of the rust book, but I haven't really done much with it at all
ive done 80% of the rust book.
I've read up to chapter 16 I think, and I still suck at it
i stopped because around that time was the worst part of my life this year
Yep
Nah lol
Maybe it's just me but I like manual memory management 🤷♂️
I spent an hour trying to find why my C string selection sort was failing... and it turned out I was sorting the null terminating byte to the front 😵💫
i hate management in general
not just in programming
Wait a minute, this exists?
I think you just solved my issues with my lexer
I never realized there was a null terminating byte at the front
No it's at the back
lol, true true
ah
I was accidentally putting it at the front, which meant I couldn't print the string
So THAT'S what I was accidentally reading
very bookish
i think if only i have a friend at my place that has the same interests as me, it would be fun, but i never have one. sad
neovim is bloat lmao
?
?
i dont really care what u use so yeah
i use every editor whenever i feel like it
i just have to learn emacs zzz
I love vsc, but then again I used light-mode IDLE for years
out of curiousity
Ok it was like 1 year
tasty
Best language mascot, go
I'm gonna say Ferris is the cutest and best mascot for a language
Go's mascot is scary ugly..
Show
just like Go itself
i dont have a picture but lemme find it
https://gopherize.me/ i could not find the drawing where both zig and rust are kings and gophers are slaves so i sent this weird gopherize website
Ok that's scary
No thanks
What's Zig's?
White background version
it is a reptilian lizard zz
ohh
what a mood
you mean it is already past midnight there? sleep :((
Not because of that but yes it is lol
how is it called to change your own custom voice in speech recognition
using wav file
import multiprocessing
def print_records(records):
"""
function to print record(tuples) in records(list)
"""
for record in records:
print("Name: {0}\nScore: {1}\n".format(record[0], record[1]))
def insert_record(record, records):
"""
function to add a new record to records(list)
"""
records.append(record)
print("New record added!\n")
if __name__ == '__main__':
with multiprocessing.Manager() as manager:
# creating a list in server process memory
records = manager.list([('Sam', 10), ('Adam', 9), ('Kevin',9)])
# new record to be inserted in records
new_record = ('Jeff', 8)
# creating new processes
p1 = multiprocessing.Process(target=insert_record, args=(new_record, records))
p2 = multiprocessing.Process(target=print_records, args=(records,))
# running process p1 to insert new record
p1.start()
p1.join()
# running process p2 to print records
p2.start()
p2.join()
generally anything you do with Multiprocess is better handled by messaging system and completely unique processes
ooohh nonono ! .. that was yestarday someone was asking questions about something and asked if that was kinda what he was trying to do found on google in no way is that my code lol
:incoming_envelope: :ok_hand: applied mute to @blazing scroll until <t:1636989451:f> (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).
@blazing scroll
hello br
bro
one second
i need to talk that's why
but yeah
this is my code
the last part
day of date
right
when I put 2021,11,1 it doesn't work
if(month<3):
month+=12
year -=1
result = (day + (int((13*(month+1))/5))+year+(int(year/4))-(int(year/100))-(int(year/400)))%7
return int(result)+1
week_days=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
week_num = day_of_date(2021,11,1)
print(week_days[week_num])```
this is the main part to concentrate on
no, I can't find the issue with dates
such as 2021,11,1
or 2021,11,2
right
yes
no the first one
yeah
?
yeah but I don't want to use that
yeah
yeah
i can't understand why is not getting certain dates that are not working
it is only meant be for 2021
only
2021 olny
only
yeah check
it works
with 1 january
how would you put it without using date.time library
def day_of_date(year,month,day):
if(month<3):
month+=12
year -=1
result = (day + (int((13*(month+1))/5))+year+(int(year/4))-(int(year/100))-(int(year/400)))%7
return int(result) + 1 if int(result) < 6 else 0
week_days=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
week_num = day_of_date(2021,11,1)
print(week_days[week_num])
if op == "+":
add = x + y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,add))
elif op == "-":
sub = x + y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,sub))
elif op == "*":
mul = x * y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,mul))
elif op == "/":
div = x / y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,div))
elif op == "mod":
mod = x % y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,mod))
elif op == "power":
power = x**y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,power))
if __name__ == "__main__": ```
x=int(input("hello")
)
if op == "+":
add = x + y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,add))
elif op == "-":
sub = x - y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,sub))
elif op == "*":
mul = x * y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,mul))
elif op == "/":
div = x / y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,div))
elif op == "mod":
mod = x % y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,mod))
elif op == "power":
power = x**y
print ("{0} {1} {2} = {3:.2f}".format(x,op,y,power))
if __name__ == "__main__":
x = int(input("Enter the First Number: "))
y = int(input("Enter the Second Number: "))
op=input("Enter an operator: +, -, *, /, mod, power: ")
calculate(x, y, op)
main()```
(defun fib (n)
(if (< n 2)
1 ((fib (- n 1)) (fib (- n 2)))))
^ you get to a point in your life you understand the logic behind this crap
its doing recursive loop for generating the fib sequence
yez exactly my point proven here ^
i think
def main() -> int:
"""Documentations for functions in the code it self."""
return 0
I watch the stream, EVERYONE is horrible quality.
I leave the stream, ALMOST perfect for all.
```
put
traceback
here
```
Internal Server Error ?
Does it take two to Django ?
Database searching? You can apply filters on a search and limit the results
@celest sundial ^
How to tell PyCharm that I'm using 3.10? It's giving me type annotation errors because it thinks I'm on 3.9
Client side goes and uses JavaScript to render the JSON
Is PyCharm 3.10-compliant, @violet venture?
check the FAQ?
def main():
...
if __name__ == "__main__":
main()
if blah:
...
|
In template /usr/src/app/app/templates/events/ui.html, error at line 1
return render(request, 'events/ui.html', {'filter': event_filter})
WINE Is Not an Emulator
Yes it is
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
Then the small changes broke it
/usr/src/app/
/usr/src/core/
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
APPS_DIR = BASE_DIR / "app"
'DIRS': [str(APPS_DIR / "templates")],
You can’t run it locally?
I develop outside of containers
I have GitHub actions build my containers
It was working - I changed something - Now it's not working
@cold urchin Moved you to AFK since your mic got stuck open, and I think you were afk?
oops my bad
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
<input
def search(request):
event_list = Event.objects.all()
event_filter = EventFilter(request.GET, queryset=event_list)
return render(request, 'events/ui.html', {'filter': event_filter})
from django.contrib.auth.models import User
import django_filters
class UserFilter(django_filters.FilterSet):
class Meta:
model = User
fields = ['username', 'first_name', 'last_name', ]
import datetime
samples = Sample.objects.filter(sampledate__gte=datetime.date(2011, 1, 1),
sampledate__lte=datetime.date(2011, 1, 31))
@tawdry moon Check out the #voice-verification channel
That'll tell you what you need to know about our voice gate system
class EventFilter(django_filters.FilterSet):
class Meta:
model = Event
fields = ['session_id', 'category']
@mild flume how does one stop people from DMing me from servers without some sort of permission
I know there's a way.... hold on, checking
cuz i need to toggle it often
{
"id": 1,
"session_id": "e2085be5-9137-4e4e-80b5-f1ffddc25423",
"category": "form interaction",
"name": "submit",
"data": {
"form": {
"last_name": "Doe",
"first_name": "John"
},
"host": "website.com",
"path": "/"
},
"timestamp": "2021-01-01T09:15:27.243860Z"
}
I'll have to do that when I get home for some reason I can't find the settings on phone
Thank you lol
What happened to the pyqtgraph channel ?
They wrapped up the sprint
\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)Z
from datetime import datetime
time = datetime.strptime("2021-01-01T09:15:27.243860Z", "%Y-%m-%dT%H:%M:%S.%f%z")
o-o what is wrong
Does anyone know of some good resources or videos on good examples of how you should set up a github repository?
!e
from datetime import datetime
my_date = datetime.now()
print(my_date.isoformat()+"Z")
@fossil citrus
@cold trellis :white_check_mark: Your eval job has completed with return code 0.
2021-11-15T17:51:16.645339Z
^^
!e
from datetime import datetime
time = datetime.strptime("2021-01-01T09:15:27.243860Z", "%Y-%m-%dT%H:%M:%S.%f%z")
print(time)
@cold trellis :white_check_mark: Your eval job has completed with return code 0.
2021-01-01 09:15:27.243860+00:00
$ node -p 'JSON.stringify([new Date()])'
["2021-11-15T17:57:09.315Z"]
Date.prototype.toJSON
$ node
> let x = new Date()
undefined
> x.toJSON
[Function: toJSON]
> Date.prototype.toJSON
[Function: toJSON]
> x = { toJSON: '12345' }
{ toJSON: '12345' }
> JSON.stringify(x)
'{"toJSON":"12345"}'
> x = { toJSON(...a){console.log(a); return '12345'; } }
{ toJSON: [Function: toJSON] }
> JSON.stringify(x)
[ '' ]
'"12345"'
https://www.google.com/search?q=QUERY+SEARCH+HERE
console.log({ 'this': this, 'arguments': arguments });
from models.py:
class Event(models.Model):
session_id = models.CharField(db_index=True, max_length=50)
category = models.CharField(db_index=True, max_length=50)
name = models.CharField(max_length=50)
data = models.JSONField()
timestamp = models.DateTimeField(db_index=True)
xxd
class EventFilter(django_filters.FilterSet):
class Meta:
model = Event
fields = ['session_id', 'category', 'timestamp']
timestamp = Event.objects.filter(timestamp__gte=datetime.date(2011, 1, 1),
timestamp__lte=datetime.date(2011, 1, 31))
class MyModel(models.Model):
creation_datetime = models.DateTimeField()
expiration_datetime = models.DateTimeField()
class Meta:
constraints = [
models.CheckConstraint(
check=Q(expiration_dateime__gt=F('creation_datetime')),
name="mycustomconstraint_check1"
)
]
:incoming_envelope: :ok_hand: applied mute to @fallow musk until <t:1637000737:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
class EventFilter(django_filters.FilterSet):
class Meta:
model = Event
fields = {
'session_id': ['exact'],
'category': ['exact', 'contains'],
'timestamp': ['exact', 'range']
}
@classmethod
def filter_for_lookup(cls, f, lookup_type):
# override date range lookups
if isinstance(f, models.DateField) and lookup_type == 'range':
return django_filters.DateRangeFilter, {}
# use default behavior otherwise
return super().filter_for_lookup(f, lookup_type)
join the discord https://discord.gg/GHqCZqJkqJ
.
@lilac yarrow Oh we're down here
sorry i didnt check. My bad 😆
@indigo imp Check out the #voice-verification channel. That'll tell you what you need to know about our voice gate
@cold trellis ```
JSON.stringify(()=>{})
undefined
JSON.stringify(null)
'null'
JSON.stringify(undefined)
undefined
JSON.stringify(NaN)
'null'
JSON.stringify(Number.POSITIVE_INTEGER)
undefined
Probably Manjaro then Ubuntu
Kali Linux does not make one a "hacker" which is unlike script kiddies think it would actually do.
I am using EndeavourOS which is built off of arch and I love it
why is it used for hacking anyway? Different tools incorporated?
Pretty much that yeah
It's just a big ol' bag of tools
But beyond that, there isn't anything special about it. Although it is root only, so that's why it isn't recommended as a daily driver
Keep it contained in a VM or container
ive heard arch is good, but not for beginners
Base arch yeah, but I think that some of the other distros built off of arch are fine.
@raw wren I didn’t hear you
I am using linux now
I use arch btw
coming from @violet venture that holds a lot of weight. You're one of the smartest people on this server
Congrats
Now I'm nervous
aww
whats your favorite rabbit?
Those are some big shoes to fill
Try FreshBooks free, for 30 days, no credit card required at https://www.freshbooks.com/linus
Use code LINUS and get 25% off GlassWire at https://lmg.gg/glasswire
This is part 1 in a series where Linus and Luke migrate their home workstation to Linux. In this episode, each decides which Distro they'll use, and then tries to run a game on it.
...
I use something based on Arch, btw
haha
I use Ubuntu
is that manjaro you're referring too?
Because I prefer distros THAT WORK
Arch works
Partly that, partly for the joke
I use Arch on servers
I use ubuntu (for my servers)
Got tired of spending the weekend fixing Ubuntu server every time a release broke it
so we have like 4 arch, 4 ubuntu, no kali love?
Of course, now I just use K8s
K8s?
Kubernetes
@mild flume
where are you from?
I understand most of your words but some others not 😂
@nova pagoda If you want to chat, you can do so while in the VC ... not with trying to evade what is in my bio by directly DMing me out of nowhere
@fossil citrus sry
So you replace house fire with dumpster fire

imagine having modern consoles
Would be nice...
lul
i had ps2 but it broke
I had a PS/2 keyboard ... but I don't where it is at this time
randomly clicked on your prof and saw this beaut
Debian, the GNU/Linux distribution for Lesbians
Yep - You want to take it off my hands for me?
i use debian for WSL, thats about it tho
nice, used to
only big chads played Assault Cube
Honestly - it's actually been pretty slick
GitHub Actions builds the container for me, and then I just restart the deployment, and K8s pulls the updated container, and I'm done.
Also - K8s secrets has managing environment variables much less painful
!tvban 755797386030481469 2w You seem unable to control your microphone. You continue to click noisily despite being asked not to. Takes this time to figure out how to behave properly in Voice Chat.
:incoming_envelope: :ok_hand: applied voice ban to @summer pivot until <t:1638212323:f> (13 days and 23 hours).
interesting, didnt know there was sep. voice ban
neato
@hearty heath We're in here
Yeah lx come on
Ah 
I accept your apology, however you still will have to wait out the voice ban
:'|
My USB keyboard still works! ... but is very ... odd to use compared to my laptop.
i forgire💀 you
haha
Whoops sorry deleted the context 👀
(from i forgor💀 meme)
Yeah, Brandon Fraser was blacklisted or something 🤔
He accused someone high up of something.
That's what I heard.
Brendan Fraser, Actor: The Mummy. Brendan James Fraser was born in Indianapolis, Indiana, to Canadian parents Carol Mary (Genereux), a sales counselor, and Peter Fraser, a journalist and travel executive. He is of Irish, Scottish, German, Czech, and French-Canadian ancestry. As his parents frequently moved, Brendan can claim affinity with Ottawa...
Huh, I'll be damned
Last film I remember seeing him in was the Mummy Returns 😄
Senbonzakura Piano Ballad Arrange by うぃんぐ
◘ Subscribe Me If you enjoyed and like it ◘
If you want more relaxing & beautiful & emotional music here :
【1 Hour】 Most Beautiful & Emotional Anime Music - Emotional Sad Melody 【BGM】
https://youtu.be/sg-DtanqwrY i recomend this
▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬
Mp 3 Download Music :https://se...
Oh no
I’m so glad #esoteric-python exists
wtf
It keeps them contained

Keywords are from C?
I think after your 20th post in #esoteric-python , we should quarantine you from rest of the server
haha
i guess u could say
they become too far down
the rabbit hole?
bruh
i has arch win10 dual boot
when i do dev stuff i go arch
but normal stuff i do win
cause more applications just work
:squirrel:
when i hear nitro it reminds me of that scam
like how people are falling for that
nitro 
The scam messages are still happening
NFT is a great idea, but, the problem is, they didnt expect one thing.... Save image as button
draw a line make nft for 100$ lmfao
$100 is still way too much
yeah, 16x16 pixel humans for million of dollars
me?
well , i dont know myself cuz like,
i mean cuz in my language (polish) you say it like "eniu"
but yeahh, you are not polish so
Is me saying it like "any" alright?
i mean, i dont care lol, say it the way you want
Sounds good



