#voice-chat-text-0
1 messages Β· Page 1043 of 1
because @chilly dragon is legenderry π
Lets light this Dumpster Fire
Dumpster fire means - We have total catastrophe
π
I believe in YOU @fresh python
trust yourself π
leave .gitignore alone... Finish tutorial
This is a complex tutorial btw
pseudo code means - Code that has no function
I think you were right.. Baby steps
python sys library is the system lib to access system level stuff
@fresh python ensure you have all python dependencies first
Baby steps
Sys is already loaded
sys is apart of the standard python library
FREEEEEE
π
"No I don't wanna PAY" - @fresh python 2022
π
move inside src folder
π
read it π
check @fresh python
alo π
call @fresh python i dont have mic
π
kkk
I'm back
@wind raptor
Yes?
idk what is these errors related
π i just tag you to call Mido π
because i dont have permision to use voice chat
Its most likely a nested import
routes/user_db
do you have voice permision π
dont have destroy π
in the controller.py file
i don't have a mic.. switching to laptop
yup
kkkk
:d
:d :d
@wind raptor are you using flask or dijango ?
or what with python
oh
@wind raptor any idea about this error: #python-discussion message, I get truncating error for some reason?
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
ok you cna come at #help-donut
@zenith radish tree sitter?
Hey guys can you help me out here?
f = open('./Bsp Files/07-1.ASC', 'r')
for line in f:
line.replace('\t', ' ')
print(repr(line))
f looks like this:
'Isotope\tIntensity AVG\t\tIntensity RSD\t\tIntensity STD\t\tB cor / IS cor AVG\t\tB cor / IS cor STD\t\tB cor / IS cor RSD\t\tIntensity B cor AVG\t\tIntensity B cor STD\t\tIntensity B cor RSD\t\tConcentration AVG\t\tConcentration STD\t\tConcentration RSD\t\tFlags\t\t\n'
'\t[cps]\t\t[%]\t\t[cps]\t\t\t\t\t\t[%]\t\t[cps]\t\t[cps]\t\t[%]\t\t\t\t\t\t[%]\t\t\t\t\n'
The replace() doesn't work and idk why
Cool
keychron
kkk
anyone tried Julia?
tried it but I don't have a major use case for it
@ancient kernel https://discord.gg/tccpp
they have a resources channel
Is there a Rust discord?
there are two, use this one though https://discord.gg/rust-lang-community
the official one isn't very good so I discourage it a bit
just a bit dead
TY, I wish i knew this months ago
Ish ish.
yes just words π
!e ```py
class MyClass:
def function_or_method(self):
pass
mc = MyClass()
a = type(MyClass.function_or_method)
b = type(mc.function_or_method)
print(a)
print(b)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | <class 'function'>
002 | <class 'method'>
functions are class functions
methods are instance functions
I too am as old as the stars π
11:26AM - USA EST
fizz_buzz <-|
$0 15 % not -> "FizzBuzz"
$0 3 % not -> "Fizz"
$0 5 % not -> "Buzz"
$0
@1..30 [$0 fizz_buzz OUTPUT] lambda map
corfu-auto-delay 0
I think it's the wrong version
this means you can play on legit severs but not a private server because we would need to purchase that or get aternos to work
@terse needle wtf how long does a cuppa take
this long
xdd
@wind raptor
hello
Anyone uses cdn within Django ?
hi @wind raptor
Im servermuted, I just joined the server lol
ye
ye ye
50 messages 3 days, etc
all good
ye
Im just trying to get tesseract working
OCR
yes
trying to make a specific config but I literally know nothing about python lol
ye
java
so its not taht hard
yes
lmao true
unless they want to make minecraft mods
I learned ahk by myself
before java
autohotkey
ye
idk waht language its based on
or if its a language by its self
anyways, Im just trying to make a script that uses ocr
with the :: and :-?
ah
idk about visual basic
havent bothered with it, I only know a bit of java and ahk
and html; css (we have them at school)
ye
Im 17
rn its summer break
nah, Im still learning
Im from Bulgaria
nice
sooo useful that I havent heard abt it
jk
damn, nice
wait
Im trying to get it working and scan text and then save it to a .txt file that is read after that by a .jar file and filters it and saves it into another txt
and using ahk to start the jar and what not
ye
I import a picture, it scans the text in it and outputs it
but I want to make it save a lot of text and go trough a filter and then save only the text I need
but with no experience in python and ocr its tricky
ye, probably starting with EasyOCR would have been better for me
lol
import easyocr
reader = easyocr.Reader(['ch_sim','en']) # this needs to run only once to load the model into memory
result = reader.readtext('chinese.jpg')
ye, but i have to config it for my specific use
like, the text Im scanning has a lot of background colors and its rotated and what not
before learning abt ocr I wanted to try getting some Capcha v1 breaker whatever code
95% preprocessing and cleaning shit up, 5% actual OCR.
Ill try the easyocr
tesseract has the option to train it though, thats what I wanted to try
nah, Im not using it for that
Im trying to make it extract only what I care about from many pictures and screenshots and what not
for personal use
!e py print(dir(print))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
['__call__', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__name__', '__ne__', '__new__', '__qualname__', '__reduce__', '__reduce_ex__', '__repr__', '__self__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__text_signature__']
Hey @somber heath
whats the ['ch_sim'] for? Chinese simulator or something?
Chinese simplified
!e ```py
def func():
print("Hello.")
func()```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello.
installing easyocr package takes ages for me
!e py v = print("Hello, world.") print(v)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | Hello, world.
002 | None
Jupyter Notebooks.
I also just joined
If you say with what, people might know if they can or not.
:(((
just ask your question in one of the #691405908919451718 #help-chats
I think its there
nvm, mb
Python - Basic Operators, Operators are the constructs which can manipulate the value of operands.
-_-
Im new to Python lol
XD
!d import
7.11. The import statement
import_stmt ::= "import" module ["as" identifier] ("," module ["as" identifier])*
| "from" relative_module "import" identifier ["as" identifier]
("," identifier ["as" identifier])*
| "from" relative_module "import" "(" identifier ["as" identifier]
("," identifier ["as" identifier])* [","] ")"
| "from" relative_module "import" "*"
module ::= (identifier ".")* identifier
relative_module ::= "."* module | "."+
```...
!pypi django
!pypi flask
!e
import random
for x in range(5):
print(random.randint(0, 10))
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
001 | 4
002 | 5
003 | 7
004 | 8
005 | 0
I'm not a VS Code user.
But maybe someone here is.
@reef raven
@magic kiln https://www.digitalocean.com/community/tutorials/how-to-make-a-web-application-using-flask-in-python-3
hi
@terse needle what happened π
Clearly I am dead
οΌ
haha
what wrong broοΌ
JsException(PythonError: Traceback (most recent call last): File "/lib/python3.10/asyncio/futures.py", line 201, in result raise self._exception File "/lib/python3.10/asyncio/tasks.py", line 232, in __step result = coro.send(None) File "/lib/python3.10/site-packages/_pyodide/_base.py", line 500, in eval_code_async await CodeRunner( File "/lib/python3.10/site-packages/_pyodide/_base.py", line 351, in run_async coroutine = eval(self.code, globals, locals) File "", line 41, in NameError: name 'file_event' is not defined )
$env:FLASK_APP = "main"
!paste @frozen owl
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.
this one doesn't have errors but if you f12 and go to application it used 0b of memory so i think it's not on the vfs
me when i try to upload an entire folder
flashbacks from Vietnam
energy drinks R the best
ΡΠ°ΠΊ
π€£
man russia is literally losing after being so narcissistic about its army
all russia is losing
why flask not django
Flask is simpler, apparently
actually I dont thats y im asking
yeah I was wondering cus django is more popular here on jobs
to play with fighter jets
- hello, u r applying for junior Python developer, can u show us double sided binary tree using all OOP paradigms without for loop? It is easy, innit?
@frozen owl and where are u from?
thats pretty cool to make jetts
UK?
Oh
nope
australia
Angola
imho best place in the whole world
but its easy just to paint aircraft with special paint
and no radars
mit student: oh yeah if we created this nuclear bomb with a size of a pen that could went to hospital in syria that would be awesome
learning python means that you'll never be out of work
clojure developers are also a population of 50 people
ice cold take
@rugged tundra we use django at work, fite me
wdym
netstalking π΅οΈ
compiler
you just debug n it saves exe
twenty seconds of coding theory - 345 pounds
that just uses msbuild instead of another build system
@magic kiln, your VSCode is doing it for you
visual studio uses msbuild behind your back to build your executable
but it gets complicated once you have many dependencies
analogy fail
yeah im kinda confused
xD
π
joe exits conversation
anyone know how to use flask?
wanna teach me a lil more
what have you tried regarding debugging that
hmm, there are many good tutorials out there that can help you
vcpkg seems to be quite popular
yeah i just like being able to ask questions along the way
testing is so boring, i have never done it
vcpkg is a package manager right? not a build system.
unironically ask openai playground
it's really good at being able to answer questions about existing code
where can i find that?
An API for accessing new AI models developed by OpenAI
thanks
@zenith radish consider the fact that there are billions of possible combinations
I think cpp is pretty fun
python feels too light to me even with all the complicated things you can make, the syntaxis just not it for me lol
building as a concept is pretty broken in C++land due to decades of legacy
There is also ninja, I think.
because rust+cargo is greenfield
ninja is not a build system
it's a build tool
tbh if you learn python + django, you'll never not have a job
flutter uses rust ?
Honestly depends on how curved it is might just be uncomfortable
360 degrees
A whole circle around ur head
^^^^^
of course
emacs gigachads unite
M-x emacs-uptime
1 day, 23 hours, 29 minutes, 14 seconds
i use a mouse but not while i'm typing/programming
i3 is pretty good for that
i am not that KJ, just to be clear
Is it.. Python3?
(build-config :type 'debug
(executable :name "foo"
foo.cpp
bar.cpp))
just use the help system you dummy
I vaguely remember scons beinig Python2.
anyone know how to push an update in flask?
sexml
bruh
nobody responded to me in 3 minutes πΏ
joma new video im out
(sources "src")
``` would include the entire src dir recursively
globbing is never a good idea
how come?
alright ima bounce for a lil see yall later
too many things that can trigger full rebuilds
oops accidentally added a file, now you have to reglob
hm, maybe
wdym
in serenityOS they're actively working to remove globs from the cmake configs
πΏ
back in my day i didn't have instant response
AND I LIKED IT
"no"
i am new to discord coding servers, and this seems to be the only one with active VCs out of the top coding servers according to google.
yep
turns out developers are introverts
who'd have thonk
i've already forgorten his question π
π
abandon discord, retvrn to tradition
forums
based
@frozen owl ^^
I don't remember when I last logged into GitHub...
i log into github daily due to work
the blue dot at least reminds me to take a look
why do these servers need phone verification π©
yeah that sounds solid @zenith radish
ok, hear me out
we've all heard about metaclasses
but what about... metametaclasses
xd
!eval
class FooMetaMeta(type):
def __new__(cls, name, bases, attrs):
class EpicMixin:
def __new__(cls, name, bases, attrs):
new_cls = super().__new__(cls, name, bases, attrs)
new_cls.bruh = True
return new_cls
return super().__new__(cls, name, (EpicMixin,) + bases, attrs)
class FooMeta(type, metaclass=FooMetaMeta):
def __new__(cls, name, bases, attrs):
new_cls = super().__new__(cls, name, bases, attrs)
new_cls.epic = True
return new_cls
class Foo(metaclass=FooMeta):
pass
print(dir(Foo()))
print(Foo().bruh)
print(Foo().epic)
@heavy bridge :white_check_mark: Your eval job has completed with return code 0.
001 | ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'bruh', 'epic']
002 | True
003 | True
metaclasses: the last boss of python typing
https://www.youtube.com/watch?v=O4T7pIs--LA @wind raptor
Mix di demoscene preparato per il preroll della serata di retrostreaming dedicata a MS-DOS. Selezione di Kenobit.
Demo usate:
Crystal Dream 1 + 2 - Triton
Unreal + Second Reality - Future Crew
Amnesia - Renaissance
Disclaimer: I do not own any of these demos, I just edited my favourite bits as a tribute to a great age of programming and ingenu...
@whole bear hala madrid
yup ty
π
I don't know what I'm supposed to type here
it says I need 50 messages sent but I just wanted to watch someone coding and ask questions
we'll have a lot more activity in voice channels in about 10 hours or so
in the meantime you can checkout channels like #python-discussion or #ot0-psvmβs-eternal-disapproval
hye @wind raptor
hey
how are you doing
how are you doing @wind raptor
@wind raptor hold on a damn second
can you please tell me what are you talking about
ok
what
hey chris how do you share screen in voice chat
ok
thank you
no
i wanted to know about
a program that lits fuse at a perfect altitude
the data will be given by an on board altitudemeter
rocketeary
yes
but it will be immpossible
to operate without
chris
did you remember i
asked you about
signal
microprocesser
tha was for it
that
but i will be not able to see data everyminute
no
engine will go off when the fule will be over
but the paracuit will need to be fired
at a perfect altitude
no
it will tear
if i keep it like that
how
yes good idea
going search for discord server
i found one
thank you @somber heath
chris what are working on
someone knows about ethical hacking
anyone of you
both
and you @somber heath
hey chris tell me
an interesting project
but not accorng to you level
according
begginer to inetrmidate
!voice @gilded vessel π
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i want to amke something that makes my work productive
something like you
but at a lower level
what you are talking about
Grow tea.
i made a word guesiing
guessing game
@somber heath what are you doing
what does that mena
mena
mean
ok
Laying down, at present.
do yo know where is ustafa
thankyou for telling
let me know when you are going to go offline
i think i am going ot do a webscrapping projects
but afer y exams are over
yes it was damn nice @somber heath
let me se
ok i guess
i will do this after my exams
ok
but amazon does not have
an api
hey chris do you find space interesting tell me this
yes
why
ok
chged my mind
changed my mind
ok
do you find space inetresting
"Are we there, yet?"
"No."
"Are we there, yet?"
"No."
"Are we there, yet?"
"No, and stop asking."
"Are we there, yet?"
"..."
what is this @somber heath
Overpolling internet locations.
we'll never be there 
thank you for this troll
Hi just hanging out
Nice!
finally someone who dose not like doing css
Not the most appropriate joke to make
I screwed up.
Can anybody help me out
and buttons don't work for me, but that's my fault
How do I get tensorflow
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | B
002 | B
003 | B
004 | *
005 | 4
006 | 6
To run on jupyter-notebook
!e ```py
class A:
def init(self, v):
print("A")
self.v = v
class B(A):
def init(self, v):
super().init(v)
print("B")
a = A(4)
b = B(6)
print("*")
print(a.v)
print(b.v)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | A
002 | A
003 | B
004 | *
005 | 4
006 | 6
The first instantiation just prints A. The second prints A and B.
We also see how the B class still saves v.
Brb
Because I gave the 6 through the super().__init__ call.
class A:
def __init__(self, v):
self.v = v
class B(A):
def __init__(self, v):
A.__init__(self, v) #Sort of what super().__init__ does```
Straight Python? Thanks to Anansi.
Maybe it's just yours.
Well. Not just.
"It's not personal, it's just you."
@terse needle I am sorry. I wasn't trying to attack you.
That was never my intention
it's fine but the same question could equally go for you. Why do you use sublime over vsc?
Presentation, lightness
when vsc has a much bigger community behind it
Knowing that since the extensions are written in Python I could more easily write one if I need it
both of these are a personal preference and both happen to be why I prefer to use emacs
and it's just my preference
I spent time learning them
and now I prefer to do things in this way
I know. Again, I apologize
it's fine it just feels a little hurtful when people start to dog pile in on one person
I thought it was just me dog piling. And I understand.
It's unbecoming of an admin (and a friend) to do that
Can and will
I have made it pretty clear in the past that I am never one to debate things with people
well I will but I never enjoy it as conversation
Sure sure
maybe I am being a bit hypocritical but I think one of the issues with the programming community is everyone has to justify everything
@somber heath Oh, two came up in my inventory:
Certificate of moderate sanity
Passionless fruit
I think it's because there always seems to be certain claims made about either efficiency or that something is better
Vue vs React vs Angular for example
ReactAngular.
But have you tried NextJS?
Case in point
"Eww Windows!"
"Why would you use Linux? It's just a waste of time."
"OOP is the worst"
"Good developers use OOP"
"Java is amazing"
"Java is horrible"
"Python is for beginners"
"You don't normally need speed so why use C?"
"Functional is a waste of time"
People just need to let others enjoy what they like
Everyone industry has to update and move on at some point
CS just moves way faster than most other industries, so it has to update more often
That doesn't necessarily explain all the gatekeeping about peoples favorite framework of the week though
I think the gatekeeping stems from insecurity and order to protect themselves from other gatekeepers they gatekeep
I agree
But I don't understand why there is so much insecurity in this industry
Maybe it's not just this industry
We just see it in the industry we're in, because we're around it?
Thats what I am assuming
What causes so much systematic insecurity in so much of the population?
non-tech people probably have no idea what the community here is like
fair
Part of it is that these are engineering choices - within a team, there are choices that are more right than wrong - but when it gets down to personal projects or individual workflows it's just elitism and ridiculous
Then are just wrong choices, like using Linux on desktop.
or using Windows on servers
sorry KJ π€£
They're neat
Oh yea, it sucks
Why?
why am I in it or why is it tedious?
This is a cage, this is a server, this is power, this is networking.
Why are you on it?
*if you've never used anything like it before
Data centers are stupid boring.
so I can say in tomorrow's standup "I didn't get much done, but I went to that msft thing"
What is there like it?
in reference to languages like Rust
Are there other borrow-check-ed languages now?
not that I know of
First part of this video is only datacenter you need. https://youtu.be/rdYtuMnlu1I
Video contains scenes from S03E03, S03E09, S04E01, S05E08
but... maybe????
I know Swift(?) was going to implement it, but I didn't think they'd done it yet
I can respect that. Just tell your boss you were melting.
oh I will
For Americans who canβt read a map.
Apparently I live in Tel Aviv
ye I think showing your effort even though you havent done much is very good
atleast you show that you were trying
Misread this one. Legit thought it said 'murica
Latitude doesnβt always equal same weather/temp but itβs good indicator of average.
this isn't that
I know
But it's also neat
Let me see if I can find an actual server
Here we go
@rugged root vacuum sealing reduces errors and corrosion
Right right
m u r c i a
since when can americans read maps lol
Odd statement
yes hong kong is in south america genius
I think you misunderstood the point of the map
what is hong kong did they update the world
Yea, this.
new country β
that is somewhat true though ive met many americans who have big issues with geography
AHAHAHAHA
farenheit?
yes
what is that
43 celcius
yeah also beware there might be a water shortage
you need to get you a fan
π
sweaty+low humidity means that a fan is actually effective for cooling
@rugged root coming from American on HDHP? The f***
high density hi polyethylene?
NEW: The @RoyalAirForce has halted flights in and out of its largest air base in the UK because the βrunway has meltedβ in the hot weather, according to a military source.
The decision to shut the runway at RAF Brize Norton was taken on Monday morning, @SkyNews understands. 1/
If you drive to place to place and that's called being a runner, does that mean you're driving a Flintstones car?
You have tire grooves in the road and have padded grumpiness in between.
Hang on...
Not grumpiness.
Grippiness.
If the Pancake Parlour offered a position for webmaster, would it be a full stack developer position?
web has many limitations. You can also not choose stream quality I think ?
looks like transmission system is similar to Ebola but less deadly so it's probably R factor is probably <1 esp once people realize what's happening.
its all belief system I think
PAO Liquid Chillers and Conditioners from Bemco Inc.
.xkcd 378
.xkcd 1508
@mild quartz he heard back after the first stage at msft
nice
he's moved on to hiring managers
@zenith radish do you know how to do truthy and falsy int's in scheme
boolean? converts 1 to true and anything else to false
@zenith radish you have a point, but I don't have to like or agree with it
Honestly, though, basing your respect for someone on how much they talk about technical stuff is pretty damn elitist.
The issue with emacs isn't the program itself, it's that a vocal minority of the users are completely insufferable about it
And vim has the same exact problem
UM
how to know someone is not american
Steam deck is great way to get through SAFe meeting.
@zenith radish https://glade.gnome.org/images/glade-main-page.png
@zenith radish how do you not own a suit even I own a suit
you left
why do you own a suit
To be fair, it was -20Β°C at the time
@zenith radish can i see ur linked in for educational purposes
idk what the context is but two words come to mind: "the south"
The problem is it affects your self-esteem. My self-esteem is very low and I see myself as ugly, and every time someone says I'm not I just assume they're lying.
Request PDF | Attractiveness and Income for Men and Women in Management1 | It is commonly believed that attractive people are more successful, but the empirical support for this belief is mixed. A number of role-playing,... | Find, read and cite all the research you need on ResearchGate
gimmy confirmed hires shitty good looking lawyers
@south bone I have a similar issue: I was always told to wait for "gaps" in the conversation to speak. I've never been able to figure out how to identify those gaps.
I always pick the wrong gaps
I usually just end up giving up in frustration and go back to interrupting.
That's giving us too much credit
:( Im at Waitrose and it's my first time calling in on the mobile app
I'm probably disconnected
@frozen owl You're connecting and disconnecting rapidly
You might want to just try later, it's kind of disruptive
Hey I'm back
Wonder how to use like phone call speaker to listen to discord calls and not the like loudspeaker on Mobile
Iβm up to my 15 failed deployment, go me
you're ugly
I'm lying btw
does that work?
beauty of the mind is more beautiful than beauty of the body -Socrates
Bro this voice verification thing is annoying
currently facing one problem with this implementation as described in #media-processing - how to best choose a character to represent an individual pixel when using color is at the top of my list to improve, but i'm lacking in ideas
thats pretty cool output. Whats the backend of the code look like
sorry, someone came in so i'm talking to them IRL. so i actually just appended this feature in to my existing python app i've been working on over the past few months. the backend mainly uses PIL for processing the images. it currently supports other features like: viewing images in the terminal, viewing videos in the temrinal, supports unicode for 4x resolution over ascii as well. i'll be on vc later sorry something came up
interesting, i learned something new, I have to look more into PIL and learn about that. Videos probably look crazy on there
@south bone i cleaned up space on my drive and purged some old mp4s so i'm going to re-record a processed video in a bit i'll post it
Yeah very cool stuff. Is there a certain sample code you used from Github for the script or is did you write all that PIL code from scratch? I'm wanting to play around with that if thats available
from scratch - i can say that knowing how to accurately google problems helps. stackoverflow definitely contributed to solving most issues or questions i ran in to
but i didn't copy stackoverflow code (not saying that, lmao)
for example, I discovered the Euclidean color distance algorithm on stackoverflow when learning how to match (quantize) colors
then I discovered PIL.quantize() thanks to someone here who suggested it was faster than Euclidean, but yea, theres tons of contents on Stackoverflow for PIL
gotcha, I suppose I could just learn the PIL functions and make it from scratch. Nonetheless, it's pretty cool, and I'd like to see it in action, just wish there was a good sample code to save me the trouble haha
i dont have a github but i'm thinking about making one once i finish up the structure and stuff of the project so i can release it. i'll share it here when i do.
if you make some project to learn this feel free to ping with any questions
PIL is always fun
I would also say the second important thing to learn here is ANSI escape codes
and working with images as 2d arrays
yeah that'd be cool of you. I'll probably end up learning PIL with Numpi (2d arrays) so that way I can incorporate Numpi with this project, which I still need to learn
yea, i left numpy out of what i mentioned but it is used in some aspects of this project to speed up processing
We'll be going over setting up and using Git and Github to get you ready for our upcoming Code Jam.
Hello Chris, how goes your day
Hey! It's going well! How about yourself?
It's going alright! At Niagara falls tonight with fam
You hitting up the casinos?
Nope just visiting around. Family is religious types so no gambling. We went to Niagara on the lake today, it was nice
Oh yeah, nice little place
@magic kiln please don't use ableist language
Gambling...leg jewellery.
I hate that you're consistently this funny, I'm not used to people being funnier than me
The more you understand the basic structure and syntax of a given language, the better you're able to use things you've never used before that are written in that language.
Provided it's well-formed.
You look at it and go "Ah, this is asking me to use it in this way that is familiar and similar to this this and this thing.
Also, yes. Reading the documentation helps.
Also, JSON is your friend if you're writing an API.
"What makes you that valuable?"
How attached are you to your organs?
I give Python lessons as an investment in humanity. I'm not in any particular need of an extra kidney at this point, but I'll keep it in mind.
lol okay well im open and if u ever end up needing one i gotcha
Properly written modules have documentation baked in. Use of the help and dir functions are good to get a handle on.
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 8, in <module>
003 | TypeError: Person.__init__() takes 1 positional argument but 2 were given
!e ```py
class Person:
def init(self, age):
self._age = age
def get_age(self):
return self._age
person = Person(30)
a = person.get_age()
b = Person.get_age(person)
print(a, b)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
30 30
sum(iterable, /, start=0)```
Sums *start* and the items of an *iterable* from left to right and returns the total. The *iterable*βs items are normally numbers, and the start value is not allowed to be a string.
For some use cases, there are good alternatives to [`sum()`](https://docs.python.org/3/library/functions.html#sum "sum"). The preferred, fast way to concatenate a sequence of strings is by calling `''.join(sequence)`. To add floating point values with extended precision, see [`math.fsum()`](https://docs.python.org/3/library/math.html#math.fsum "math.fsum"). To concatenate a series of iterables, consider using [`itertools.chain()`](https://docs.python.org/3/library/itertools.html#itertools.chain "itertools.chain").
Changed in version 3.8: The *start* parameter can be specified as a keyword argument.
!e py a = [1, 2, 3] b = sum(a) c = sum(v for v in a) print(b) print(c)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 6
002 | 6
!e ```py
my_list = []
for letter in "abc": #second to innermost
my_list.append(letter) #innermost
#equivalent to
my_list = [letter for letter in "abc"]
print(my_list)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
['a', 'b', 'c']
@somber heath :x: Your eval job has completed with return code 1.
001 | ['a1', 'a2', 'a3', 'b1', 'b2', 'b3', 'c1', 'c2', 'c3']
002 | Traceback (most recent call last):
003 | File "<string>", line 9, in <module>
004 | NameError: name 'letters' is not defined. Did you mean: 'letter'?
!e ```py
my_list = []
for letter in "abc": #outermost
for number in "123": #second to innermost
my_list.append(letter + number) #innermost
print(my_list)
#equivalent to
my_list = [letter + number for letter in "abc" for number in "123"]
print(my_list)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | ['a1', 'a2', 'a3', 'b1', 'b2', 'b3', 'c1', 'c2', 'c3']
002 | ['a1', 'a2', 'a3', 'b1', 'b2', 'b3', 'c1', 'c2', 'c3']
Watch out, because the return of floor division takes its typing cue from the lefthand.
!e py a = 5.0 // 2 b = 5 // 2 print(a) print(a)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 2.0
002 | 2.0
Since when, Python?
Since when?
Okay, yeah, that's a version thing.
In 3.8 the second one would have been an int.
Hi
@wind raptor broo i cant speak i dont have the perms
!voice @shadow tapir @wheat latch
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Yeah
u know the problem
ohh sorry
1yr
reaaly noob
yes
i do web dev
django
yahh
but i am not really fluent
can u guide me
django
so what about python
i not at it either
i forget to solve small pblms
what do u mean by db
you mean by sql
ig
Practical data skills you can apply immediately: that's what you'll learn in these no-cost courses. They're the fastest (and most fun) way to become a data scientist or improve your current skills.
why do we need to learn db before starting django
every course teaches db in btw the course
they teach the basic of django first
and start building some projects and then go in db
why?
@rugged tundra
this was pitched in shark tank
lol
this doesn't make any sense
yahh
def number_to_string(num):
a = str(12)
print(a)
!e py v = 5 result = str(v) print(type(result))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
<class 'str'>
!e ```py
def func():
a = 0
print(a)```
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 4, in <module>
003 | NameError: name 'a' is not defined
!e ```py
def func():
return 5
result = func()
print(result)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
5
!e ```py
def func(v):
return v
result = func(5)
print(result)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
5
!e ```py
def func(v):
return v * 2
result = func(5)
print(result)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
10
!e py v = 12 result = str(v) print(result) print(type(result))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 12
002 | <class 'str'>
A way.
It might even be a good way.
The best? Who can say?
But not the one, the only.
def number_to_string(num):
num = 1
print(str(num))
!e py def func(): v = 7 v = 5 func() print(v)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
5
def number_to_string(v):
return v*2
result = number_to_string(2)
print (str(result))
print (type(result))
!scope
Scoping Rules
A scope defines the visibility of a name within a block, where a block is a piece of python code executed as a unit. For simplicity, this would be a module, a function body, and a class definition. A name refers to text bound to an object.
For more information about names, see !tags names
A module is the source code file itself, and encompasses all blocks defined within it. Therefore if a variable is defined at the module level (top-level code block), it is a global variable and can be accessed anywhere in the module as long as the block in which it's referenced is executed after it was defined.
Alternatively if a variable is defined within a function block for example, it is a local variable. It is not accessible at the module level, as that would be outside its scope. This is the purpose of the return statement, as it hands an object back to the scope of its caller. Conversely if a function was defined inside the previously mentioned block, it would have access to that variable, because it is within the first function's scope.
>>> def outer():
... foo = 'bar' # local variable to outer
... def inner():
... print(foo) # has access to foo from scope of outer
... return inner # brings inner to scope of caller
...
>>> inner = outer() # get inner function
>>> inner() # prints variable foo without issue
bar
Official Documentation
1. Program structure, name binding and resolution
2. global statement
3. nonlocal statement
def number_to_string(1):
return number_to_string
@somber heath @ebon sandal
lol
when kangaroos are threatened by a predator they actually throw their babies out of their pouches and if necessary throw it at the predator in order for the adult to survive.
Goblins, as the most under-privileged and despised race on the Discworld, encounter the dreadful dilemma so often that they have special traditions and protocols around it, like the special Unggue pot called the soul of tears, "the most beautiful of all the pots, carved with little flowers and washed with tears". One of these would commemorate a Goblin mother's having to eat her baby to survive. To hang, or "survive" is the prime directive of the Goblins, and the most they can hope for. ```
Except for the throwing part.
Like it's more of a dumping than a picking up and hurling.
Lol if they hurled them it would be kinda funny to watch
But if they just leave em and run off thatβs so wrong
Yes, well. The dreadful algebra of necessity.
True If you could be any animal which would you choose? @somber heath
I'm not rightly certain. Bonobos do what bonobos do, though any of the larger primates would be a possibility. Dogs have the opportunity to get loved on by a family. An elephant wouldn't be the worst. A cockatoo can fly. An animal of reasonable intelligence, I think.
hello @grim fable
Hello
Noting Just Chilling in python
Qa?
I still Learning
same boat
Nice
Where are you from?
India
Nice
where are you from
hi @frozen owl
hi
how are you doing
you can hear me right
yes
I don't Have Promession
sha sha ank
!vioce veriffy
Ok I know
for me I don't have a mic
sheesh i can't read your name
oh
I've Been Here Today I think I need To be Here For 3 Days
Its 4 Pm For me Atm
@frozen owl
No I'm in Iran
I Will be able to talk soon π
@frozen owl What you up Too
@formal meteor Hi bro
hello @somber heath
@somber heath Hello
how are you doing
hi guys how are you?
We are Good
im good ty
i got an assignment from a course i am about to start and i got tangeled a liitle bit can anyone maybe give me a hand?
what is Best way to learn Python i Did W3school But I want better way?
go to internet
umm I used video tutorials and some problem solving
I did Learning All Curses But Still Cant Do coding I mean I don't Know How to Start Code
i need to build a flask code that print "ron is a master devops!" the python flask application should listen on the port number of my birthday (24/07)
should look like this
oh god
the port number
sry
anyone anyone anyone
i will
thank you so much
sry
hello
opal which project are you working on
@somber heath
hello @somber heath
yes
yes
you have a youtube channel
tell me the name
i want to look at
please
opal
lol
ok
opal you know what
if you not tell me about that channel
i will break my second monitor
@somber heath
and if mom asks what's the reason
the reason will be you OpalMist
are you listening to me
before you get angry
i take my word bak
@somber heath
I'm sorry. I was busy removing all my content from my YouTube channel.
