#voice-chat-text-0
1 messages ยท Page 108 of 1
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
So noted.
anyways how is ur guy's days
just speak
decent
doing a math project
for +points
volume, area , permeter and alot of composite figures
wanna see the code is in repl xD
idk i havent programmed in 3 years
there
is still wip mfor the most part
only works for the perimeter
rn
perimeter until parallelogram
hello py.noob
hi
...
so basically I need to make later alot of things atleast 75 shapes
so is a pain
and I need to make it in a webb
which idk how to do
how to make it in a web
for free
nope
lol
yes
75 shapes for total volume, area and perimeter
which makes it atleast less painful
yes
wanna look at the first game I made with no help is just a text game
this took 3 weeks from trial and error
and researching
I'll take any comments even though it hurts
there is a option to look at the code
oh ye
i forgot
lol
oops
I did this when i was 10 lol
well I do this for fun
since it is enjoyable for me
I do roblox games and this game
so ye
about to learn how to make discord bot
after I can do alot of scripting
yes and no
i forgot about it
once i can speak can u teach me
@dull thorn If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate
Hey, thanks I understood.
@woeful salmon can you join the VC?
Hello Anokhi, Johnisblue, MagicalGirl, Maro, Hem, Osyra, Af, NoddleReaper
hi
hello PhantomRex123
in my time or in some schools even now they barely teach you html in 10th and some c in 11th to 12th but very basic
now they're teaching python since 6th-8th standard in alot of schools which i think is pretty nice and atleast all my relatives who are in school and who i do teach python in my free time sometimes have been pretty happy with it
although they are also forcing ai in some schools which is pretty stupid to me but ai might be the future who knows
i gotta go now cya ๐
Cool.
they taught us vb in 7th grade ๐
Thanks.
As storms continue to pound the Bay Area, an unfortunate side effect is overwhelmed wastewater treatment systems and dozens of sewage spills in the region. Devin Fehely reports. (1/15/22)
wassup Rabbit
What did you think about the current Scenario dude?
Literally have no clue whats going on lol
๐ cool.
Welp about how shitty Indian education system is or "Was" maybe.
Especially with CS being taught in HighSchool.
Cs in highchool suck
was maybe
Nothing just nvm.
bro maro this isnt getting anyware
theres literally no point in this convo bc none of the parties will accept anything so imo just change topic
maro im boreeeed
Wish I could talk in the vc lol
Man brings in String Tokenizer again ๐
I'm just done
bruv bye hem
not tokenizer
@midnight agate im picking up what your putting down.
@midnight agate I would love to have a personal Debate with you in a separate VC.
I just wanna know what brought this on....
That's a bigg story!
CS mostly taught in Indian Highschool is shitty.
Just made a common opinion which fired out to a big part.
Lol.
Yes, that's what am trying to say.
and dont all cs classes kinda suck without gamification?
Unless you've been a part of it, you can't make enough shit out of it.
Nice movie, I've seen it before.
yea if you not from india then you really cant say to much...
I am from India, I've been a part of that education System for years.
@small nova the one that sounds like edward snowden, he sounds like he is chatting in circles.
:kek:
I teach coding remotely...I work with tons of indian kids. They normally come well equipped with knowledge.
Cool. It is just about what is taught in Schools rather than stuff, or basics learnt in Schools.
Absolutely. I wish you can speak.
this is like facebook with audio
๐คฃ
lol you know those status updates with 59 comments of straight banter
this is that for sure.
lol
I've never used FaceBook lmao.
I envy you. Be glad.
Thank you.
The edward snowden voice is providing reason now
haha
bruh
Now we kissing
@midnight agate brother I think we have all reached the same destination with this convo brother
Im glad we are not all in same room
I wish I could join vc...
Lol.
Buddy is smart, but hes overkilling it with the philosophy banter.
We have a person like him in our society....
Quiet frankly, he just takes all meaning "Literally"
he is going totally kanye.
wow
and that was it....
we have survived the rapture of senior dev dude
@whole bear @small nova ; yall really ruffled feathers before I got here huh?
Lol.
I wish we were in same room for convos like that
English isnt his first language either @small nova
we knew what was goin on @small nova
buddy just woke up and chose to be kanye @small nova
not your fault
Yes sir! Thank you!
are you familiar in web assembly? @small nova
Yea I came into the ass end of that
Not sure familiar, but am learning about it.
Well, thanks for quiet the conversation we had here folks, I am happy for the talk and sorry if I had said something wrong or misleading, I did have issues in constructing my opinions which led to a forest fiery conversation and yeah cheers.
bro
that was the most excitement the server has seen in a long time
@small nova it was getting a bit dull around here
Lol. Glad that I could be a part of it.
Gtg bye!
later bro
there are situations where nouns may be used for functions/methods
(usually the noun describes the returned value)
you can do it without loops
all(v > 0 for v in (a, b, c))```
well, eh
int cars(int wheels, int bodies, int figures) {
int count = 0;
while (wheels > 4 and bodies > 1 and figures > 2) {
wheels -= 4;
bodies -= 1;
figures -= 2;
count += 1;
}
return count;
}
the output isn't bool
this may time out on large inputs
yes, just divide
in C++ int division is just /
@proven raft just /, you don't need % in any way
this is C++, this isn't python
int/int in C++ is int
5/2 in C++ is 5//2 in Python
std::min(a, std::min(b, c))
int cars(int wheels, int bodies, int figures) {
int wheelDiv = (wheels / 4);
int figureDiv = (figures / 2);
return std::min(wheelDiv, std::min(figureDiv, bodies));
}
int cars(int wheels, int bodies, int figures) {
int result=0;
while(bodies>0){
wheels-=4;
bodies-=1;
figures-=2;
if(wheels>=0 && bodies>=0 && figures>=0){
result++;
}
}
return result;
}
^^
!e
code
using std is not good for production software
!e
# graphs a graph on a given domain
import math
domain = [-11,45]
def y_eq(x):
return 2*math.sin(x)-0.5
# code (don't touch)
x_range = range(domain[0],domain[1]+1)
y = []
for x in x_range:
y.append(y_eq(x))
# round up
for i in range(0, len(y)):
y[i] = -round(-y[i]-0.5)
#test for imaginary
for i in range(len(y)):
if isinstance(y[i], complex):
y[i] = -1000
graph_height = range(int(max(y)), int(min(y)-1), -1)
for row in graph_height:
line = ""
for col in range(0, len(x_range)):
if y[col] == row:
line += "*"
elif col+domain[0] == 0:
line += "|"
elif row == 0:
line+= "-"
else:
line += " "
print(line)
@thin breach :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | * ** |** * * ** ** * * *
002 | * * | * * * * * * * * *
003 | --------*--*--*---------------*--*--*---------------*--*-
004 | * * | * * * * * * * *
005 | * **| ** * ** ** * * **
because it may shadow other stuff
it's basically from std import * in python from all modules
std::string longBurp(int num) {
std::string burpString = "Bu";
for (int i = 0; i < num; i++) {
burpString.append("r");
}
burpString.append("p");
return burpString;
}
private variables/fields have nothing to do with object-orientation
just use closures if you want more real private fields/variables/etc.
OOP has a lot of definitions
there is not a single main thing in OOP
in SmallTalk, for example, OOP is all about message passing
in python you don't have a choice not to use objects
you can avoid defining your own
but you're still using classes
@thin breach you never used dyn in that project, right?
in Rust
no I did not use that
In this video Harry (W2S) rages in a MoreSidemen video of Grand Theft Auto 5 when they are racing and Harry desperately wants to finish but JJ blocks his path which makes Harry end up getting a DNF. As Harry crashes into KSI in the tunnel Harry (W2S) rages and smashes his controller over the game and gets angry which makes a funny sidemen moment...
opal rn fr
okay, just making sure your definition of "not using objects" is same as that of Rust
dynamic dispatch
runtime trait use
I only used impl Trait
function create_object() {
let private_field = ...;
return {
public_method: ...,
};
}
neverminded, I used structs with &mut self
structs in Rust aren't exactly objects
pub struct Solver {
pub objects: Vec<VerletObject>,
pub gravity: na::Vector2<f64>,
pub circle: na::Vector3<f64>,
//link has to be 2 object indexs of objects and the last element is the target_distance negative target_distance indatces not to move point
pub links: Vec<[f64; 3]>,
}
impl Default for Solver {
fn default() -> Solver {
Solver { objects: (Vec::new()), gravity: (na::vector![0.0,0.0]), circle: (na::vector![0.0,0.0,0.0]), links: Vec::new() }
}
}
both in "typical" OOP languages (C#, Java, C++, ...) and in Rust, objects are in large part about dynamic dispatch
encapsulation is not only about hiding/restricting fields.
!d property
class property(fget=None, fset=None, fdel=None, doc=None)```
Return a property attribute.
*fget* is a function for getting an attribute value. *fset* is a function for setting an attribute value. *fdel* is a function for deleting an attribute value. And *doc* creates a docstring for the attribute.
A typical use is to define a managed attribute `x`...
look, encapsulation in python
!d struct
Source code: Lib/struct.py
This module converts between Python values and C structs represented as Python bytes objects. Compact format strings describe the intended conversions to/from Python values. The moduleโs functions and objects can be used for two largely distinct applications, data exchange with external sources (files or network connections), or data transfer between the Python application and the C layer.
F
C++ has worse encapsulation than C
and exactly same (zero) access restriction
hypothetically, byte code can be JITted
practically, python isn't well fit for that
Python quite often chooses predictability and clarity over performance
example:
Python has no tail call elimination
std is a namespace
just like in C#
it is a language construct
(so, yes, it is a thing)
not C
C# being C++++
c+++++++
c*
C+^10
... one of semi-official name origins
C++Good
:: in C++/Rust is like . but for static members
a::b -- b is a static member of a
a.b -- b is a member of a
Rust Community discord is quite active
C+Haskell
+lifetimes
Rust allows writing same things as C allows to
Rust exposes Haskell constructs in a more C-like manner
Haskell is based on lambda calculus
imagine you only have lambda: in python
spooky
now make everything with it
you can pretty much just write C in Rust
the only real restriction you have is dereferencing a raw pointer
Haskell, but for people who are afraid of maths
C, but for people who are afraid of memory errors
or Wolfram language
wolframscript/wolfram engine is free
(notebook and cloud aren't)
so how is every experiences with tkinter? XD First time I used it today and Its a struggle
Python GUI
Super huge learning curve i think
quadratic equations aren't that bad
quintic functions is where you start to get problems
Am I allow to send image in chat? Im pretty proud of what I was able to do
Fighting with tkinter myself now
Frames are your friend wereducky
it should be easy if you're familiar with other frameworks (in other languages)
but it may be quite hard without external experience, I'd say
Ya Frontend is huge
I had to write a solver for quintics once
my error was that I wasn't using complex numbers
Minecraft, Love it
Frames are the easy part. Understanding the event loop and having to learn threading is the challenge
Oh boy, my application uses threading for everything basically. I hate that you can not just kill a thread in python. (i understand why)
flex and grid are both impressive when you switch from non-web GUIs
i agree Front-end is more creative in a sense
when you start applying "creativity" on the back-end is when Rabbit starts to be angry at you
I hate this style of static accessing
it fucks me up when I write C# coming from C++ and Rust
Solution is to not write C#
uhh
@nova cobalt๐
hello @somber heath
and yes, i can't hear you again
could you talk with text again?
I'm here for the while.
Nothing important.
Okay
Hey @somber heath
@ripe lantern ๐
what are you guys working on?
@somber heath perks of growing
Hemlock is also around
hemlock isnt up this early.. he is prolly having a dream like the matrix, where neo fights the infinite agent smiths.. but as irs agents.
๐
hello opal
how is ur day
what r u doing rn
random question
do u know Luaa scripting
lol
ah i see
cause it is similar to python
im rn just learning luaa n making a roblox game dont ask why im just bored
sure
see
wanna go to a priv vc i hate typing LOL
like typing to talk
oh ok then
yep
nah
im g
welp i gtg now
cya
@opaque jetty ๐
hey hey I am just looking where to join to talk haha
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
You appear to have more text messages to go, yet.
The command in question is supposed to be executed in the voice-verification channel, but you don't have enough messages yet to qualify, anyway.
You can Discord search yourself.
No worries I will work my way up I guess
from:
I can still ask question in #1035199133436354600 right?
You have 34 messages. Though I'm not sure if it counts help posts or not.
Oh yes.
@robust depot๐
@prime marten๐
@chrome jewel๐
Bye
@fallen locust๐
hi
I need help regarding vision transformer
coding in python
i need help regarding code in kaggle
@manic canopy๐
hello im server mute
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@somber heath ๐
how are you doing
@fallen locust did you send me friend request
nope I asked you a question
do you know vision transformers
@somber heath of course i know that
sry no knowledge
okay \
@somber heath can you tell me how many friend request you have in pending just curiousity
that's not possible my own friend request which I sent you very early when I joined the server is still pending
oh !! got it
and how many friends
see this
i Know that you are consevative about friend request acception
@rugged root should be one of your friend
can't deny that i want you to accept
but no pressure
so opal how many languages do you know
both the real world and programming
@ancient lily ๐
you know that the only complain I have about java
is that aliasing doesn't work there
and some package names are similar
Like java.awt.list; and java.swing.list
know when you type list
it will show an error
it doesn't understand which one to pick
in python you can do import pygame as pg
and you cant pg.close window
it will work
but in java there is no as thing
List is the keyword like int
we write List <Integer> i =
no that also doesn't work
yeah i wrote an email to orcale .org but no reply
yup
there are less java developers
it was under a mission that write as many emails to oracle with different email id so that it makes that change
but i think they don't give a damn
in their mind go on i have seen many like you
the only way to do it is to make a seperate jar file and then import that fuction in actual file
and what was your question
what was that @somber heath
do you do clash of code opal
ok
so what are you doing right now
@somber heath that was extremely lucky
just opnion which is better mechanical keyboard or membrane
so you use mechanical
mather was nice word
btw
no mather is more suitable
what does that mena
meqan
mean
@rugged root
https://youtu.be/FSUhZc7sqxI
https://www.covertinstruments.com
Happy April 1st to everyone... to see some of my past April 1st videos that follow this genre, follow the links below and have fun. ๐
[1435] How To Fill My Wifeโs Beaver
https://youtu.be/EhuNRWskgNQ
[1266] My 18-Inch Long Johnson (April Fools Video) https://youtu.be/m-tKnjFwleU
[1071] Getting In My Ex-Girlfr...
lame.. tried installing all these lamas and gpt4al and some otherone.. dun work on vms ๐ฆ
@burnt plume ๐
@somber heath yo
@hardy void ๐
Lurking.
takes one to know one haha
Ethernet over USB refers to use of USB as an Ethernet network. It also refers to an Ethernet device which is connected over USB (instead of e.g. PCI or PCIe).
there is RNDIS but it's proprietary and by Microsoft
I see KVM
seems like a different KVM
isn't USB only for client-server?
(that question might be based on outdated info)
tail -f?
from random answer online:
โptrace traceโ denial can actually be triggered with the โpsโ command.
i need help with something
what's the question?
@midnight agate iperf?
(for speed testing)
i have to write a write a function that will greet someone by using greeting() and say goodbye() in tendifferen ways
i am struggliing with writing it out
coudl you help me
thank you
I'm not very good with coming up with phrases
but if I had to, I'd probably just look them up:
https://www.google.com/search?q=common+greetings
https://www.google.com/search?q=common+goodbye+phrases
also phrases depend a lot on what context you use them in
interesting scrollbar
fits both categories allegedly
https://en.wiktionary.org/wiki/salut#French
i have to put it into this so how would i do that
#Ben Arbaugh
#What is yor name
def calcMartianAge():
while True:
try:
age=int(input("How old are you? "))
except ValueError:
print("Not an integer")
else:
break
MARTIAN_YEAR=1.88
Mars_age=round(int(age)/MARTIAN_YEAR)
return Mars_age
def calcFare(age):
# if age is > 19 and age is <65 have the fare be $10k
if age>19 and age<65:
fare=10000
elif age<12:
fare=5000
else:
fare= 7000
return fare
# else if the age is <12 have the fare be 5k
# else the fare be 7k
def main():
name =input('Hi there! Im Bot Bot what is your name? ')
print('Its nice to meet you, ', name)
while True:
city= input('Lets get to know each other. Im from sunny Silicon Valley. What is your hometown? ')
print(f'Ooh, I have heard that it is nice in {city}, {name}.')
age=calcMartianAge()
print(f'You would be {age} on Mars')
fare=calcFare(age*1.88)
print(f'Your fare to Mars would be, ${fare}.')
food= input(f'So tell me, {name}, what is your favorite food? ')
print(f'Nice. I bet they make good {food} in {city}, {name}.')
if food == 'pepperoni pizza':
print('I also like pepperoni pizza.')
else:
print('I like carbonara over pepperoni pizza')
code= input('Okay, last question. What is your favorite programming language? ')
print(f'Wow {name}, I love {code}, too!')
print(f'Thanks for talking to me, {name}. Now I can say that I have met someone from {city} who likes eating {food} and enjoys programming with {code}.')
play_again = input("Do you want to go again? (yes/no): ")
if play_again == "no":
print('Thanks for playing!')
break
main()
!code
should the greeting be before asking for the name? put the greeting before asking for the name
should the greeting be after asking for the name? put the greeting after asking for the name
you already have greeting in this code
I'd assume you'd just replace it with new one
i have to do it with a lists
=> you already know where to put the text of greeting
now the only thing left is how to get that text
if you're choosing a greeting then what would the list contain?
the options
greetings
you know how to initialise the list, right?
not really
!e
fruits = ["apple", "banana", "cherry"]
print("fruits:", fruits)
for fruit in fruits:
print("a fruit:", fruit)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | fruits: ['apple', 'banana', 'cherry']
002 | a fruit: apple
003 | a fruit: banana
004 | a fruit: cherry
!d random.choice
random.choice(seq)```
Return a random element from the non-empty sequence *seq*. If *seq* is empty, raises [`IndexError`](https://docs.python.org/3/library/exceptions.html#IndexError "IndexError").
and this is the thing you'd likely want to use to choose randomly from a list
ahh does space being shown in the authentication image matters?
while typing?
to prove that i am not a ~bot~
or may require them missing
@midnight agate sorry for the ping
needed to ask a question
have you used aws?
The Amazon RDS Free Tier is available to you for 12 months. Each calendar month, the free tier will allow you to use the Amazon RDS resources listed below for free:
750 hrs of Amazon RDS in a Single-AZ db.t2.micro, db.t3.micro or db.t4g.micro Instance.
20 GB of General Purpose Storage (SSD).
20 GB for automated backup storage and any user-initiated DB Snapshots.
this is what i get when i create a database
will i be charged after 12 months?
even if i have not exceeded the free limit?
ohkm
and can i stop the usage after 12 motnhs?
in order to refrain from money being deducted
ohk
thank you
yehh...and on a personal level i dont wanna spend either
ohk cool then:]
Hello Hello
hello shashank
ok, how do u do it?
am new
in a quiet roon @lunar haven
voice verify will not work
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
yes @lunar haven would you like to join?
So @lunar haven would you not join
we will get some input and some output and we have to develop a program that gives the required output you can use any langugae @dense meadow
so should I start
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@lavish rover question.. you run copilot personal or business?
only use it for personal stuff, not allowed to at work
just curious.. trying to see if its better etc.. or just the same.
hi @whole bear
Hello @obsidian dragon
You'd think they'd be able to run their own private instance of it or something.
hello
@somber heath sup
https://i.imgur.com/lKOFdI0.jpeg @formal ember
Ranch ice cream...
yes
You know, I've never had the pleasure of Ranch.
Perhaps I have under another name.
Hm. Looking at the ingredients, I can get a vague idea.
Icecream... Someone's enterprising, I'll give them that.
Is this a real product, or a seasonal thing?
Whip up a creamy chip and veggie dip in minutes with Hidden Valley Dips Mix in Original Ranch flavor. Serve with veggies, crackers or pretzels. ย Or use it dry as a seasoning to flavor side dishes or spice up easy meals. Sprinkle the Original Ranch dry mix over hot buttered popcorn, mashed potatoes, or chicken to add a
yeah amazon has their own thing
@somber heath that was a screen shot from my scanner. that means it was in my hand
Hi IGG,
We are Oropyt, an agency that creates awesome characters, objects, and ads for games. We are huge fans of your games and we have a special offer for you. ๐
We can create two new characters, 20 new objects, and two new ads for your games every month. You can customize the type, style, and function of your characters, objects, and ads. This will help you make your games more attractive, immersive, and profitable. ๐ฐ
We are not just game makers, we are game lovers. We know what makes a game stand out from the crowd and captivate the players. We can work with any genre and theme of the game, from fantasy to sci-fi. We can also make high-quality and optimized characters, objects, and ads that run smoothly on different devices.
We have played your games on IGG and we are amazed by your mobile games. We think our characters, objects, and ads would enhance your game quality and popularity. We can create characters, objects, and ads that suit the theme and tone of your games, such as Lords Mobile, Castle Clash, and Clash of Lords.
Letโs talk more about this offer on a voice chat. We can show you some samples, answer your questions, and agree on a fair price. Please tell us when you are free for a voice chat and weโll set it up. ๐ง
We are excited to work with you on making awesome characters, objects, and ads for your games. ๐
Cheers, Oropyt Email: oropyt32@gmail.com
I see emojis
that's a red flag
if they did play games, they'd make more specific remarks about those games
Wonder if that is generated by ChatGPT. Might wanna remove the email, even if it is not yours.
?
just don't post emails in general
I meant, the email address.
@icy raven๐
Too much useless information, doesnt seem professional
can you edit it for me
We can also make high-quality and optimized characters, objects, and ads that run smoothly on different devices. How are characters, objects, and ads optimized or even related
Yes i know, and im saying dont use it
to be honest i can not even write as close as the emails gbt makes
yo wassup 8080
Dont. just modify this
it just doesnt make sense that characters, objects, or ads are optimized
also they are completely different
objects can be charecters but ads are a whole other thing
what about the emoji
emoji doesnt make it professional remove it
wbt the subject
at best: :) > ๐
emojis make text less readable
- people tend to treat the message as less important
NONOONO
lol
YOU NEED TO DO ALL CAPS
nobody responded
this legit seems like something elon musk would do tbf
joking not joking
anyone here frim OHIO
fyi we get a mod ping for that, pls don't
it snows under ground in ohio
really lol
lmao
you could just dm me and say don't do that ?
agreee.
i feel like this is a sloth lmao
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e print("hellospam")
@lucid blade :white_check_mark: Your 3.11 eval job has completed with return code 0.
hellospam
Dear Oropyt Team,
I hope this email finds you well. I recently came across your agency and was thoroughly impressed by your exceptional skills in creating characters, objects, and ads for games. Your portfolio showcases a level of creativity and attention to detail that is truly remarkable.
As someone who is passionate about innovation and pushing boundaries, I am always on the lookout for talented individuals and teams who share the same vision. Your team's ability to bring ideas to life through digital art is truly remarkable, and I believe that your work has the potential to revolutionize the gaming industry.
I would like to extend an invitation to meet with me and my team at SpaceX to discuss how we can collaborate and work together to bring our shared vision to life. I believe that your team's expertise in creating immersive gaming experiences can be applied to other industries, including space exploration.
Thank you for your time and consideration, and I look forward to hearing from you soon.
Best regards,
Elon Musk
man chat-gpt is the most useless thing told it to write about a agency wrote spacex stuff for me
that also supports some ANSI codes
[0;40m[1;31mcolour
[1;47;32mcolour
[0;4mcolour
@formal lotus๐
e! for x in range(10):
print("spam")
i need help pls
e! ```py
for x in range(10):
print("spam")
#bot-commands to avoid cluttering the chat
what code editors do you use?
you can't use pygame with replit
to use pygame, you need a local installation of python
ok
PyCharm Community would be preferred for beginners, I'd say
the only hard part there is how to install packages
(you need to run pip install from inside PyCharm terminal, or install packages from settings)
!pypi lumpy
Isnt mime like standard anymore?
seems to have been renamed; idk when
https://en.wikipedia.org/wiki/Media_type
A media type (formerly known as a MIME type) is a two-part identifier for file formats and format contents transmitted on the Internet. The Internet Assigned Numbers Authority (IANA) is the official authority for the standardization and publication of these classifications. Media types were originally defined in Request for Comments RFC 2045 (MI...
oh nice what do you do with arduionos 8080?
i had a due with esp32-cam etc... but like i had this fkin 12V to 5V converter which literally blew up my relay, esp32, and esp8266 so it doesnt work as well as it used to
i need help
pymunk
how to code in pymunk
ocntinue
continue
year or more
def
i gtg
bye
could be an old version, some other branch, experimental/failed version, etc.
(so, like, a lot of work doesn't mean it runs in production)
What's up?
n = ("hello_ther.txt", "r+")
n.write("\nHi there")
n.close()
open missing
what?
n = ("hello_ther.txt", "r+")
should be
n = open("hello_ther.txt", "r+")
also, you should probably be using with
ok bruh thank you
with open("hello_ther.txt", "r+") as n:
n.write("\nHi there")
it guarantees that the file will be closed
in this code, if the .write fails, .close won't be called
ok
@twilit stone what's the error?
traceback
numpy does some random stuff with values
!e
import numpy
import json
try:
print(json.dumps(numpy.zeros(1, dtype=numpy.int64)[0]))
except TypeError:
pass
print(json.dumps(int(numpy.zeros(1, dtype=numpy.int64)[0])))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
0
@rocky fog๐
!e
import json
print(json.dumps(2**256))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
115792089237316195423570985008687907853269984665640564039457584007913129639936
this shouldn't be a valid JSON actually, iirc
Python's JSON seems not to be standard
https://docs.python.org/3/library/json.html#infinite-and-nan-number-values
PHP allows to write bad code very easily
same engine
a lot of same libraries
the real differences are:
in browser you have DOM
in node you have native stuff
quite a lot of hate towards JS is because of DOM
self.buttons: list[TextButton | ImgButton] = []
self.labels: list[Label] = []
self.background_color: tuple[int] = (255, 255, 255)
self.background_image: pygame.Surface | None = None
third is wrong
it should be
tuple[int, int, int]
tuple[int, int, int]
what version of python?
3.10/3.11?
from future import annotations
do you know what this actually does?
makes typing cool again
below that you need Union for type | type
3.10
at least for me
then shouldn't fail
Union is too verbose ๐
it was the only way before 3.10
Python Enhancement Proposals (PEPs)
this is only about postponed evaluation
(i.e. typing recursion without 'Type' syntax)
@gusty shore๐
hello :] maro
how did your skiing go?
did they remove the vc channels from rust or so? i cant see them anymore though
ty
wait they started using gpt 4 in production???
what?/ hearing this for the first time now
can i have a word?
What's up?
@sour willow loads lol ๐ (re arduinos)
i just bought 7 espcams they're pretty cool
but i hate the esp is 3.3v
or at least its a little annoying
hello @somber heath
?
yeah i kinda got bored and took a picture of venus and added some eyes to it
im bad with art
how was your day opal
thats good to hear
umm is there any plugin or app that can alter your for you page in youtube
ive been thinking of making one but idont know where to start
no manually
like the videos thats suggested to your in your home page
hello!
Please tell me how to transfer django project to timeweb hosting (please write if you know how, I'm Russian)
I do not understand what you said
Thanks
@whole bear ๐
Hey, just joined.
Don't have privs to speak yet, so just listening in.
Ok, joined a while ago... just never really got into discord much and my messages are still too low.
Quiet Sunday so just thought I'd hang out and see if anyone had any interesting problems.
๐
๐
@lucid cove ๐
Hello There!
u alone here?
yeah....
but still maan i was just working at my project
would u like to help me a lil bit?
that is a virtual mouse
yeah i just want ur recomandation
okay so the problem is goes like i wanted to add some more feature to my code...
i just wanted to know that how would i decorate it...
visual
Hey @lucid cove!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
well u just have to control your mouse using your hand
its just opencv
just check out...
!code
!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 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.
ok...
import cv2
import mediapipe as mp
import pyautogui
cap = cv2.VideoCapture(0)
hand_detector = mp.solutions.hands.Hands()
drawing_utils = mp.solutions.drawing_utils
screen_width, screen_height = pyautogui.size()
index_y = 0
while True:
_, frame = cap.read()
frame = cv2.flip(frame, 1)
frame_height, frame_width, _ = frame.shape
rgb_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
output = hand_detector.process(rgb_frame)
hands = output.multi_hand_landmarks
if hands:
for hand in hands:
drawing_utils.draw_landmarks(frame, hand)
landmarks = hand.landmark
for id, landmark in enumerate(landmarks):
x = int(landmark.x*frame_width)
y = int(landmark.y*frame_height)
if id == 8:
cv2.circle(img=frame, center=(x,y), radius=10, color=(0, 255, 255))
index_x = screen_width/frame_width*x
index_y = screen_height/frame_height*y
if id == 4:
cv2.circle(img=frame, center=(x,y), radius=10, color=(0, 255, 255))
thumb_x = screen_width/frame_width*x
thumb_y = screen_height/frame_height*y
print('outside', abs(index_y - thumb_y))
if abs(index_y - thumb_y) < 20:
pyautogui.click()
pyautogui.sleep(1)
elif abs(index_y - thumb_y) < 100:
pyautogui.moveTo(index_x, index_y)
cv2.imshow('Virtual Mouse', frame)
cv2.waitKey(1)
yeah
@whole bear ๐
hi
Hello, i just wanted some career advice, is there anyone who can help me over the voice chat?
I'd be really grateful, I don't really know what i am doing with my life
Deos anybody know why i can't install pip figlet?
just talk bro
donโt let anybody take your freedom of speech
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
because you don't have pip
How to get the pip?
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Ok guys I have a realy weird list and I dont know how to access the indexes
[[5.0252132e-37 8.4258248e-16 2.4297525e-25 1.6483234e-02 1.2865312e-22
9.8351675e-01 4.9724836e-31 2.6893213e-29 6.2175032e-10 5.4309886e-12]]
this is the list
ok yeah I see
but I need to access each of these elements
yeah I wonder too
Oh guys it would be so much easier to talk to you
OpalMist I donยดt want to distract you but I realy need help
could I call you?
I need to access each element in this list
!e py data = [['a', 'b', 'c']] print(data[0]) print(data[0][0]) print(data[0][1]) print(data[0][2])
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ['a', 'b', 'c']
002 | a
003 | b
004 | c
yeah this is a normal list
no
I want to access index 0
yeah
its a tensorflow prediction
wait I will look closer
hm there are no more details
but I have 10 available classes which can be selected
[0,1,2,3,4,5,6,7,8,9]
!e py outer = [['a', 'b', 'c']] inner = outer[0] print(type(inner))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
<class 'list'>
and each of these represent the probability of each element
wait
<class 'numpy.ndarray'>
this is the type
but i get this out of this prediction
i have worked with java and this is realy confusing
I'm here now
but do you know how
ham[0][1]
# or
ham[0,1] # for nested numpy arrays
because they arenยดt separated by a comma
in the inner
and if I what to access [0][0]
that doesnt work out
!e py import numpy as np arr = np.array([[5, 6, 7]]) print(arr[0]) print(arr[0, 0]) print(arr[0, 1]) print(arr[0, 2])
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [5 6 7]
002 | 5
003 | 6
004 | 7
but this doesnt work out
this makes no sense
also numpy
i will ask the data scientists
but thank you for your help i realy appreciate it
and sorry for my bad englisch I am from Germany
oh realy
yeah but thats a small problem
yeah me to xD
where are you from?
omg
this is crazy
omg guys thank you
i got it
i dont get why they arent separate by comma
this only causes confusion
bro my error is this i am trying to install pyaudio package in my pycharm
iam haveing pytho 3.6
error code is
(venv) PS C:\Users\mono\PycharmProjects\pythonProject> pipwin install PyAudio-0.2.11-cp36-cp36m-win_amd64
Traceback (most recent call last):
File "C:\Users\mono\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\mono\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\mono\PycharmProjects\pythonProject\venv\Scripts\pipwin.exe_main.py", line 4, in <module>
File "C:\Users\mono\PycharmProjects\pythonProject\venv\lib\site-packages\pipwin\command.py", line 29, in <module>
from packaging.requirements import Requirement
File "C:\Users\mono\PycharmProjects\pythonProject\venv\lib\site-packages\packaging\requirements.py", line 10, in <module>
from pyparsing import ( # noqa
File "C:\Users\mono\PycharmProjects\pythonProject\venv\lib\site-packages\pyparsing_init.py", line 130, in <module>
version = version_info.version
AttributeError: 'version_info' object has no attribute 'version'
ok bro let me check
i will leave you for now but thank you guys
See you later!
have a great day!
You, too
thanks
It is time to take a closer look at some foods that are often said to be radioactive: bananas and brazil nuts.
How active are they in reality? And why would they even be radioactive in the first place?
Can I find something way more active and still edible in a grocery store?
Let's find out!
Brazil nut tree image by Juan Carlos Torrico from Pixa...
I DO NOT OWN ANY RIGHTS TO ANYTHING I UPLOAD!
Like me on Facebook?
https://www.facebook.com/pages/ReD-Rocks/309226776213
Follow me on Twitter?
https://twitter.com/RedRocks024
I hate ranch
hi
How goes it
fine fine :d
I wonder if there would beworkable knife alternatives. Like plasma cutters or air jets or something.
Probably no time soon. There is water cutters used for concrete and stuff but it remains specialized
o/
How goes it
its pretty normal
Good good
!e python import time start_time = time.time() time.sleep(2) end_time = time.time() print((end_time - start_time) * 1000)
@amber raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.
2000.1108646392822
Yeah applies to SO many games
not dota 2
if this == 1 and that != 'Error' or 'Not Found'
There are several design models for web services, but the two most dominant are SOAP and REST. Learn more about specific advantages of each, and their differences
I've been using REST mostly, it is easy to use in my opinion.
Nope. Always REST.
if this == 1 and that not in ["Error", "Not Found"]:
!e
var1 = 1
var2 = 'None'
var3 = 'NA'
exclude = ['None', 'NA']
exclude2 = ['Error', 'Not Found']
if var1 == 1 and var2 not in exclude and var3 not in exclude or exclude2:
print('True')
@pallid hazel :white_check_mark: Your 3.11 eval job has completed with return code 0.
True
!or-gotcha
When checking if something is equal to one thing or another, you might think that this is possible:
# Incorrect...
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.")
...
look at this shitshow
=XLOOKUP(XLOOKUP(MID(LEFT(A5,FIND(",",A5)-1),FIND("#",A5)+1,LEN(A5)),tracking[rno],tracking[reference]),tracking[reference],tracking[tracking])
=XLOOKUP(XLOOKUP(MID(LEFT(A5,FIND(",",A5)-1),FIND("#",A5)+1,LEN(A5)),tracking[rno],tracking[reference]),tracking[reference],tracking[tracking])

Repost from #the-pydis-mass-layoffs-lounge --
Can anyone tell me what I did wrong here?
=XLOOKUP([@[Restaurant '#
C-Company, F-Franchise]],tracking[ShipmentID],tracking[MasterTracking],XLOOKUP([@[Restaurant '#
C-Company, F-Franchise]],tracking[ShipmentID],tracking[Tracking]))
The last argument [that I'm passing] in XLOOKUP is "if not found", I want it to start over with a new XLOOKUP if the value isn't found. But it is key is "found", the value is just "empty cell", so it defaults to 0
What I really wanted was
=IF(XLOOKUP([@[Restaurant '#
C-Company, F-Franchise]],tracking[ShipmentID],tracking[MasterTracking],"")<>"",XLOOKUP([@[Restaurant '#
C-Company, F-Franchise]],tracking[ShipmentID],tracking[MasterTracking],""),XLOOKUP([@[Restaurant '#
C-Company, F-Franchise]],tracking[ShipmentID],tracking[Tracking]))
Can we just ban Excel??
Long live Python!
BALL!?
FETCH!?
Introduction

@rugged root yes you can
I swear
I don't do it because it's dumb but all our vendors do
All you do is like just select the rows then "freeze panes"
Worst case scenario you can always just "split panes"
A little experimental game I've been working on recently, where you fly around a tiny version of the world and deliver packages to various cities. Would love to hear any ideas you might have about how this could be taken further!
The next episode about this project's development is now available here: https://www.youtube.com/watch?v=UXD97l7ZT0w...
@teal flower please upload an audio recording with the pronunciation of your name
Okay
Tell the devil I said hi.
He says he'll be seeing you soon
I'll gussy up.
Regex is waiting in the shadows
@jagged lagoon @eager portal ๐
@solid timber ๐
@storm karma ๐
How you doin'?
studying ๐ hows sarbazi?
Vacation at the moment
isnt the 13 days done?
But overall
It sucks
I had a situation
So got some off days
sucks here aswell, my school fr came up and said "Hey! Having fun? You have a math exam tomorrow ๐ "
That kind of teachers huh?
@whole bear ๐
Yes, another time we had a very important math exam like in 2 days, and the day after (one day before the exam) the gave us a totally different math exam that was also important
God I'm glad I'm not in school
But then there is university
I don't know if i should go or not :/
I literally calculated 7^2=48, took me 3 or so checks to actually find it out ....
at the end i lost 0.5 due to not putting the minus sign in parentheses even though 99% of other ppl did the same
@harsh garnet ๐
Ehh
Calculating is alright
I don't get what the hell is geometry
Hi
mood
we study more advanced physics so its like F
