#voice-chat-text-0
1 messages · Page 954 of 1
google is your friend, https://youtu.be/RHu3mQodroM
🔥Edureka Python Master's Course: https://www.edureka.co/masters-program/python-developer-training
This Edureka video on the "Python Login System Part - 1" (Part 2 - https://youtu.be/SUC1aTu092w ) will help you in understanding how we can make a login system using Flask in Python along with hands-on.
Python Tutorial Playlist: https://goo.gl/WsBp...
lets go fight 😆
back after live thing
hello
@rugged root - beloved family pet peeve
Pet Seminary.
>>> from numbers import Number
Live from the Python Group Call - it's Pun-ishment Monday!
!e
from typing import *
thing = Dict | List
print(thing)
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
typing.Union[typing.Dict, typing.List]
pipes 
wow
Thought this was a cool one
Healthy? It's not in a body.
HA
!e print(list|tuple)
@haughty pier :white_check_mark: Your eval job has completed with return code 0.
list | tuple
!e print (tuple|list)
@pallid hazel :white_check_mark: Your eval job has completed with return code 0.
tuple | list
What does colon equal (:=) in Python mean?
!pep 572
!e ```py
import random
for _ in range(10):
if (i := random.randint(1,100)) % 2 == 0:
print(i)
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
001 | 6
002 | 64
hi, what is up?
It lets you declare and define a variable inside of different statements
!e
import builtins
builtin_types = object
for name, obj in vars(builtins).items():
if name[0].islower() and isinstance(obj, type):
builtin_types |= obj
print(builtin_types)
@haughty pier :white_check_mark: Your eval job has completed with return code 0.
object | bool | memoryview | bytearray | bytes | classmethod | complex | dict | enumerate | filter | float | frozenset | property | int | list | map | range | reversed | set | slice | staticmethod | str | super | tuple | type | zip
!e
import random
for _ in range(10):
if (i := random.randint(1,100)) % 2 == 0:
print(i)
else:
print(False, i)
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
001 | False 31
002 | False 61
003 | False 99
004 | False 65
005 | 42
006 | False 33
007 | 24
008 | 36
009 | False 53
010 | 8
@quasi condor does this discord server actually compile and run your code?
wow
that is cool
!eval
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
@quasi condor do you have to write it between the backticks?
!eval
import random
print(random.choice([]))
@sweet lodge :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | File "/usr/local/lib/python3.10/random.py", line 378, in choice
004 | return seq[self._randbelow(len(seq))]
005 | IndexError: list index out of range
Huh, guess not
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
You have to put the !e and the actual code in the same message
@sweet lodge between the backticks right?
Above them
!e
for i in range(5):
print(i)
yeah, I think the i should've been between the parantheses
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
there we go!
!server
!server
https://github.com/python-pillow/Pillow/pull/5515
this was the pull request whereof I spoke
!server
Rust
Yeah, HTML is a terrible programming language
XML is a much better programming language
are you kidding me?
Yeah, you're probably right
YAML is probably better
U'R funny
Really?
BitLocker is available on a per file basis?
Not being contrary but I am only aware of it as full-disk like Hemlock describes.
You can't really use phone numbers for logging in anymore
AADSTS54008: Multi-Factor authentication is required and the credential used (Sms) is not supported as a First Factor. Contact your administrator for more information.
Are you ready for a Tae Bo® Burnout?! Get ready for non stop explosive movements in this cardio packed workout! Thank you for your support!
-- Visit me at: www.taebonation.com for all of your fitness needs -- Be sure to catch me on my show @CelebritySweat Season 6 coming May 2020
Check out my favorite essential oils- amazing for keeping the ...
Yes
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
boy the 80s were an amazing decade
Nope, not jogging tomorrow
im doing some light reading on simspons paradox.. and its not related to the simspons sadly
It is possible to compute over encrypted data without access to the secret key: https://en.wikipedia.org/wiki/Homomorphic_encryption It is possible to prove that you know a value x, without conveying any information apart from the fact that you know the value x:
that's an interesting list which contains some similar stuff to the Simposons Paradox
actually
In Finland, winter is a season that can seem never-ending. Temperatures drop into the double-digit negatives and remain there for prolonged periods. Lakes (there are 180,000 of them in this Nordic nation) and the sea (the Gulf of Bothnia, the Gulf of Finland, and the Baltic Sea surround Finland) freezes. And when that happens, a […]
There's a few people here that work on Discord API wrappers in Python
Bluenix#7543 makes https://github.com/wumpyproject/wumpy
vcokltfre#6868 makes https://github.com/vcokltfre/corded
Winter swimming is the activity of swimming during the winter season, typically in outdoor locations (open water swimming) or in unheated pools or lidos. In colder countries, it may be synonymous with ice swimming, when the water is frozen over. This requires either breaking the ice or entering where a spring prevents the formation of ice. It ma...
I guess the water can be warmer than the air...
Looks like Alec also contributes to a few others
Looks like Alec's corded is his own, but he also contributes to https://github.com/nextcord/nextcord, which is a fork
Don't forget the unusual hats
bbl watching some vids to understand this material
https://youtu.be/NaHq85u0uAs?t=445 watch for ClariNerd lol
ping?
Was this
I messed up escaping the mentions
Ah, oh I couldn't find it haha
It's fine, I'd probably prefer if you kept the ping even
😅 I am working on Redis caching, the message cache is a pain
Hello 👋
angr is a python framework for analyzing binaries. - https://angr.io/ ?
yep
need help with it
Anger
yep yep
me irl
decompiler
umm...nope im analyzing
a binary
and im getting some weird attribute error like
AttributeError: 'AngrObjectFactory' object has no attribute 'path'
even tho i did
initial_path = angr.Project.factory.path(state)
:/
that should work according to the docs btw
:"/
Me singing NixOS's praises to a captive audience... lol
@tiny socket omfg 😅
Do you ever just send the header?
At typical salinity, it freezes at about −2 °C (28 °F). - https://en.wikipedia.org/wiki/Seawater
Seawater, or salt water, is water from a sea or ocean. On average, seawater in the world's oceans has a salinity of about 3.5% (35 g/l, 35 ppt, 600 mM). This means that every kilogram (roughly one liter by volume) of seawater has approximately 35 grams (1.2 oz) of dissolved salts (predominantly sodium (Na+) and chloride (Cl−) ions). Average dens...
- Open Source maintainer pushed a commit that starts an infinite loop as soon as his package is imported
- The guy who did this has 2 big projects: Faker.js, for generating fake test data (~2m monthly downloads) and this one, which is for colouring terminal output (20m monthly downloads)
- He took Faker offline a few days ago, adding a readme saying he wasn't going to support fortune 500s any more, and people either had to fork Faker or pay him
- The maintainer also talks about Aaron Schwartz on his Twitter and in the readme for Faker
- This guy has talked about failing to make money off of his projects for quite a while - I remember reading about Faker Cloud a few months+ ago
rip
Wait what's wrong with FastAPI's commit history?
The only issue I see is the GitHub action updating release notes
It's done for each PR - I find that quite a useful feature
so.. who is the statistician in here?
Or.... superpowers?
Er, think that's ClariNerd?
I know a little bit of stats 👀
Erm 
Learning and then promptly forgetting.
In a few weeks. But in a rare turn of events I've already completed most of them.
LX would you mind looking at something, I can take it to a help channel also to not put it here.
Erm sure!
it's a simpsons paradox issue :/
Oh right. Confounding
so i need the avg of column5, but account for different sample counts in col1
That's a good point, the commit message could include the PR number..
Oh 🤔
@quasi condor seriously? The maintainer is bad for accepting a PR changing a comma? I am confused
Let me get my stats book...
Should those PRs be rejected?
@pallid hazel What's the provenance of the data? What do they represent?
Just to help me understand.
You have two options:
-
Accept an issue about the missing comma
-
Accept an PR about the missing comma
-
Reject everything and let the typos stay
Why reject the PR and tell them to open an issue?
That's meh
I would be personally offended if someone rejected my PR - and then commited the change themselves
What's the context?
Y'know @quasi condor python-hyper has the exact opposite policy
@quasi condor 600 of those issues are questions
wireless connections
CPython has "1.6k" open PRs
https://github.com/python-hyper/h2
h2 welcomes contributions from anyone! Unlike many other projects we are happy to accept cosmetic contributions and small contributions, in addition to large feature requests and changes.
Before you contribute (either by opening an issue or filing a pull request), please read the contribution guidelines.
@quasi condor read more about it here: https://github.com/tiangolo/fastapi/discussions/3970
We need to stop using it immediately then, since it has so many issues
His reply is at the bottom
Alright. And how does it relate to Simpson's paradox? Are you trying to find an association between two variables?
Yep 😄
well, if I avg colm5 as it is.. the top count in col1 listed as 4 (so the lowest).. weights the data unfairly..
FastAPI does have a lot of open PRs. See my comment specially here about numbers @rugged root https://github.com/tiangolo/fastapi/discussions/3970#discussioncomment-1930001
for me yarn seems to cause more pain then npm
There's 180 open PRs that is waiting Tiangolo's review - not 400
CPython has like 8 thousand submitted bugs and 1.4 thousand open PRs haha
Whoops
1.6k PRs
7183 open issues as per https://bugs.python.org/
Ah right. You'd like to find a weighted average? Are the values in column 5 already averages?
@stuck furnace I'm thinking the lower counts are unfairly weighting the results, so a larger change from col 4 to col5 masks the overall avg as it applies to all samples.
It was 1.4 on the Python 3.10 stream 😟
realize i forgot to mention that column 4 to 5 is the change
Dear God
7183 issues
How will we ever solve all those issues?
We need to stop using it and move to something better supported immediately.
Also yeah you're right, I thought 8000 was too many but CPython is up at 46 thousand in total
wait.. crap.. had to scroll up
Maybe we should move into a help channel 
Ping me 👍
I just ... IDK
Who gets to determine how many issues is too many?
As long as all the checks pass, what's wrong with automerging?
Yeah, you have to enable it in the first place
It basically turns..
- Approve
- Let checks pass
- Come back again and merge when you notice
Into...
- Approve
- Let checks pass
- Merge if they pass
PN and I are in #help-chocolate right now.
actually read this - it gives me more reassurance about FastAPI being well maintained. I still think the point that at a glance, FastAPI raising questions that you need to look into it more. The first page of the commit history does nothing to reassure me that it's well managed, nor do the Open PRs or Issues, to be completely reassured - I needed to see things like that direct response from Tiangolo
I feel like we should add phatic expressions, to the general vocabulary in the same way as greetings and salutations have become both a greeting and a description of what they are.
Ahhh 🎶
gonna eat me 'burger
Phatic expressions 👋
Vertical Bar Chart (VerticalBarChart) is a chart control.
# x
@property
def x(self):
return self._get_attr("x")
@x.setter
def x(self, value):
assert value is None or isinstance(value, float) or isinstance(value, int), "x must be a float"
self._set_attr("x", value)
isinstance(value, float) or isinstance(value, int) can be isinstance(value, (float, int))
gota have faith
ah... two tt's in gotta
Phatic expressions @woeful salmon 👋
flashing bios.... wooo! let's go!
!e
import builtins
builtin_types = object
for name, obj in vars(builtins).items():
if name[0].islower() and isinstance(obj, type):
builtin_types |= obj
print(isinstance('foo', builtin_types))
@haughty pier :white_check_mark: Your eval job has completed with return code 0.
True
Okay, this is irritating
I've got two staple removers and I can't find either of them
Erm, that might have been sniped by the bot, one second.
we've blacklisted that domain to prevent people from promoting their fiverr services.
Didn't know fiverr was part of the dark web...
The domains in my status get sniped too
The Dark knight A-Aron
Yeah unfortunately they were often being used in a toxic way sorry.
both are great websites though
well - I guess I mean 2/3 are
Not that we disagree with what they're saying. Two of them are covered our 'available help channel' embed. And we have an !xy tag.
!xy
xy-problem
The XY problem can be summarised as asking about your attempted solution, rather than your actual problem.
Often programmers will get distracted with a potential solution they've come up with, and will try asking for help getting it to work. However, it's possible this solution either wouldn't work as they expect, or there's a much better solution instead.
For more information and examples, see http://xyproblem.info/
It was just a bit hostile/bewildering for someone to open a help channel then have those links thrown at them.
Burgers: eaten
What about Samsung's Dex?
Hadn't heard of that
brb
The meeting of the Python investment club was very enlightening. 😛
If you want to make your resume look better do the stuff you want to see on it.
I duckduckgo'd it.
Get 20% OFF + Free Shipping at Manscaped.com with code LTT - https://mnscpd.com/2ML8ni3
Buy the Elgato Wave 1 Streaming Mic at https://geni.us/Ruam880
Buy the Elgato Wave 3 Streaming Mic at https://geni.us/n4c8
Terry Davis may not be as well-known as Linus Torvalds, but his open source operating system may be a legacy that will live on forever...
Because I have the RNG seed from the Garden of Eden
I blame the person who mentioned TempleOS.
Apache Arrow is a software development platform for building high performance applications that process and transport large data sets. - https://arrow.apache.org/
Lustrate
fun fact you can orchestrate docker containers very easily on nix
i just want python to evolve into jarvis already.. parvis if you will.. parivs, automate x for y at time
you have a big enough ansible or k8s+helm setup and just one dev doesn't pin their package version, or one dependency doesn't pin a package version, have a fun time converging your fleet
has this uneasy dude in chat ever tried to do a major rollback in ansible
Dumb question: Created a branch for a repo I don't have permissions on. Just forked it so I can make the branch there and get to work on it. Is it possible to make my current work point to my fork rather than the original repo?
--set-upstream
git remote add xyz giturl
git push --set-upstream xyz
and you can setup branch tracking as you need to
parvys
Oh awesome. Thanks!
i don't understand why this nix convo is about VMs, but a production nix config can manage VMs, containers, host system configs + attached resources, debug tools, and modularize all of those and generation them
You still need a central source to control them so you are still using Ansible to keep track and why not just use native Ansible tools?
Ansible can install packages very easily
depends i suppose to the use case i wasnt here for.. but could always automate a snapshot and store all work files in a coinshare on the cloud
Jetbrains Intellij Idea security vulnerabilities, exploits, metasploit modules, vulnerability statistics and list of versions
when I say VM, I'm talking about the server
like it's piece of "hardware" (physical or virtual)
I think the Nixy ansible replacement is NixOps
almost all servers are VMs these days so by default i just say "VM"
I never deal with Desktops, desktops have users attached to them all the time and I really don't like that
whether or not you have to control host is another story
in cloud or VMware, you don't
so if i have to provision stuff on a server or fleet of servers i might need: users, some services to deploy, config, attached resources, policy
stuff that Ansible will easily handle or if you more modern, Kubernetes is handling
and if you ULTRA modern, your cloud API will handle
that's my entire point, Nix is DSL for old age
if i'm going for a whole modern immutable-ish thing, and i'm destroying and reprovisioning as operations and scale require, then a huge pet peeve is going to be when my ansible/k8s config has conflicting dependencies
Nix isn't going to fix that, you screw up way earlier then that if that's the case
the entire idea is built on version pinning as package release
with nix suddenly all those operations are a lot safer and cheaper
not sure how breaking down to multiple servers help but
if you're creating huge container images to handle all your app and dependency versions sure
then it doesn't really matter
you can just use bash for your containers at that point
YOU DON'T DO THAT
My point still stands, Nix is solution for older age
Which API is this? Like Terraform/Bicep?
Azure/GCP/AWS Azure Web Apps
Yep
Terraform/Bicep call those APIs
Nix (the idempotent functional build system) grew into Nix (the package manager) which grew into NixOS (the operating system) naturally. I think it represents the culmination of evolution in system/OS management.
Close enough ish
and them system/OS manager said "We don't want to do this anymore" and promptly stop caring
nixos could resolve the circular references in this convo
I haven't been at modern company that isn't running toward Kubernetes or other cloud offerings as fast as you could go
No it could because WE ARE NOT RUNNING AN OS
WE ARE NOT RUNNING AN OS
🍿
i mean, you can use nix to write a novel
I'm quite certain one day NixOS will be replacing RHEL or Ubuntu, or whatever flavor of the month host os as the best host for containers. The containers may also be built in Nix.
like there is really no functional difference if you're talking about deploying and immutability and managing containers, except that:
if i delete a module in nixos that says "install this package and link it" and the line that references is and then ask my system to converge, my system will reflect that state
i do the same in ansible, the package and the link won't go away
is there something wrong with apt/rpm that Nix just completely fixes that it's worth throwing out all your previous work to replace
I'm quite certain that this will never happen
Containers do this now
To reiterate my earlier experience with apt - I couldn't remember what I installed a month after apt installing it - to recreate my system was a mystery to me.
i mean, are you talking about apt or are you talking about containers
I'm talking about the problem
sure i'm listening
If you run into massive dependency problems with your servers, the problem is, you are still using software on servers, What year is this? Use Containers like a sane person
I'm a casual layabout. Not an ops guru. And I know what my system is semantically built with.
or switch over to language that builds single binary
these dependency problem you are referring have been long solved
i'm trying to understand this formulation, you're going to need a host to run your containers on, you're going to need something to manage the config and deployment of those containers, you're going to need tools to debug your deployments
Sure, and in those cases it makes the most sense to use things that already have a lot of support, existing tools, etc right?
you're going to need a host to run your containers on My cloud provdes that you're going to need something to manage the config and deployment of those containers, You mean Kubernetes? you're going to need tools to debug your deployments You mean Application Insights/Dynatrace/plenty of code debug tools that already exist
This has actually been really nice
I started learning Rust, and my new Dockerfile is 8 lines
https://github.com/darbiadev/melody/blob/main/Dockerfile
Sure, Nix may be great for Desktop OSes esp if you swap them out (pretty unusual) but most don't worry about that
Go/.Net Core and even Java have started heading that way
I can get someone up to speed with any desktop or server system fast just by showing them a single file.
Most Node deployments don't have this problem by just keeping all their dependencies or containerized (containers being much much more popular solution)
even if i don't want to manage a single thing about the hosts my containers run on, i can compile a super optimized set of docker containers for my deployments with a small set of files
you mean like kubernetes file that tells it to maintain a DaemonSet on all hosts?
All this shit is well solved outside of Nix with tools that MASSIVELY more popular then Nix, no one has shown me that Nix solves these problems in a way that makes abandoning existing tools worth it
since when can kubernetes optimize my docker images?
Nix won't do that either
that's kind of the point

I don't need to know what hosts my Azure Kubernetes nodes are running on - all I have to do is give kubectl the containers, and I'm done
Java's been building [single file] .jars and .wars for a while now, haven't they?
My point is "NixOS and all tooling with it are too specific to very niche distro that makes learning it not worthwhile for anyone who wants to be SRE/DevOps. Also the problems it solved have long been solved by other tooling out there." SRE/DevOps should spend time on more popular tooling like Ansible/Chef/Puppet or Kubernetes or Terraform
And I thought single-binary was half the point of Go's existence
Yep
but many other languages have adopted their output. .Net Core can do single binary, Java throws EVERYTHING into Jar files, Rust is single binary and Node/Python have Containers to fix their craziness.
i'm not going to say nix is ready or even headed in a direction where i'd recommend a company to use it to manage their aws fleet or something, because it's not made for that, terraform does that job well
Depends on your goals - if you need a currently marketable skill, yes. If you think Nix/NixOS has so much going for it that you think it's the way of the future... it makes sense to learn it. Even if you eventually get a job doing Ansible, it can only benefit to have learned how Nix/NixOS works.
never, due to it being "interpreted" makes it more difficult. Containers solve the problem well enough
IMO, That's my point, your so wrong in thinking it's a future, I don't know where to start
When I started learning Python it wasn't a very marketable skill.
because we are getting away from handling servers and I don't see us coming back
anywhere i've managed stuff over the last 12 years, including companies that use the popular ecosystems of tools as well as places that roll their own, there's something pretty nice about nix's philosophy towards reproducibility that dockerfiles don't solve, and towards declarative immutability that ansible can't achieve on its own
that i just haven't seen other tools come close to
What problem does Nix solve that Docker doesn't?
oh shit, I don't like my current dockerfile, change it, docker build
Python hasn't 100% dominated its domain, yet it is very successful. In a few years, I think NixOS will have made significant enough inroads that NixOS expertise will be rewarded.
Nope, no one wants to put up with OSes
"oh shit, a critical sub-dependency introduced a major cve and was taken offline and now i can't docker build"
good
that shit shouldn't be in prod anyways
then roll back package.json file or requirements.txt and be done with it
right. so that's why i was saying earlier then better hope that whoever wrote that file version pinned
Nix wouldn't solve that, does it demand you pin versions?
Anyways, I’m done
It was a good debate and I feel like I've grown from it. 🙂
it doesn't demand you pin versions at a system level but it does demand that your packages do
so it does solve that
@wheat raven how do flakes factor in here?
Web3 is buzzword by CryptoNerds to make a mess of everything they get near
Web3, also known as Web 3.0, is an idea for a new iteration of the World Wide Web that incorporates decentralization based on blockchains. Some technologists and journalists have contrasted it with Web 2.0, wherein they say data and content are centralized in a small group of companies sometimes referred to as "Big Tech". The term was coined in ...
Cryptbros
HTTP3 is kind of cool though
Like the Crypt Keeper
Though I do have to recompile NGINX for now
-headdesk-
flakes are kind of confusing and roll together a bunch of concepts.
- flakes take the idea of immutable inputs and extend them with version control, replacing channels and fetchGit so you can mix inputs
- they standardize build outputs
- this also enables evaluation caching
Heading out, see you folks later
they also close your builds off to certain system inputs that are classically useful but not helpful for immutability eg envvars
I'm resarting
make a joke if the door opens.. like whew, error code 1 we made it
@gentle flint if someone doesn't give you a funny look, that's how you know
@haughty pier to answer your question more directly, flakes get closer to the actual idea of hermetic/reproducible. they're hard to understand and not very well documented but imo a lot of the principles should be made first class within nix, which would make them a lot easier to understand because right now they just look like a subfeature rather than a stricter more standardized view of what already exists
doesn't matter, but 1.1.1.1/1.0.0.1 is Cloudflare,
Google is 8.8.8.8/8.8.4.4 (I think)
hmmm
I'm reading an English translation of a 18th century Turkish ambassador's account of a trip to Spain
he really doesn't like the Spanish
wow - certainly could have done better than a couple of bottles of olive oil... though I wonder if these were incredibly rare and expensive bottles, and they were simply under-appreciated.
It's quite possible
doubling down doubles your commitment. By renting out their current capacity they reduce their risk while encouraging greater fools to pile into the pyramid.
or maybe the turkish people were a bit full of themselves and this was the spanish way of taking them down
the ambassador gets his revenge in the general description of Spain and the Spanish
def __init__(self):
# Do not add any parameter to this method.
# Delete "pass" after adding code into this method.
pass
def run_app(self):
print("Your banking system should run by calling this method.")
authur = User('Authur','123','admin')
boris = User('Boris','ABC','custormer')
chloe = User('Chloe','1+x','customer')
david = User('David','aBC','customer')
user_list = [authur,boris,chloe,david]
verify = 0
user_name = input("Insert The Username: ")
password = input("Insert The Password: ")
for i in user_list:
if user_name == i.get_user_name() and password == i.get_password():
verify += 1
else:
verify += 0
if verify == 1:
print ("You logged in!")
else:
print ("Try again please!")
if user_name == authur.get_user_name():
print ("You are an Admin")
else:
print ("1 - View account\n2 - View summery\n3 - Quit\n ")
select = int(input ("Enter a number to select your option: "))
if select == 1:
print ("--Account list--\n")
option = input("Please select an option: ")
elif select == 2:
print ("Summery")
elif select == 3:
print ("You logged off")
class User:
def __init__(self,user_name,password,user_type):
self.user_name = user_name
self.password = password
self.user_type = user_type
def get_user_name(self):
return (self.user_name)
def get_password(self):
return (self.password)
def get_user_type(self):
return (self.user_type)```
hi I'm trying to put different price options for each customer, any idea of how I can do it?
@whole bear you can take the course for free, you don't have to pay for it.
👋 hello
gtg
It's official i am turning to linux
hey guys
can someone explain a line of code for me
its regarding an array in python
basically the temp =[k for kv...
what does this mean?
That's a list comprehension.
i dont know what this is called, if there are any resources you know id be glad to read
Thank you
temp = []
for k, v in c.items():
if v == 1:
temp.append(k) #Far left k```
Comprehensions are a bit weird. They take the innermost part, where you'd append, and stick it on the left, then go outer to inner, loopwise, left to right from there.
gonna watch a youtube video
They take a bit of getting used to, but they're not that different to regular indents.
and see if i can understand it
A guaranteed interest rate for a fixed term
0.10% - 0.70% AER/Gross (fixed) depending on the term and if you’re a 1|2|3 World or Santander Select customer. Save from £500 up to £2 million. No additional deposits, withdrawals or account closures permitted.
a = [k for k in thing]
a = []
for k in thing:
k #a.append(k)```
thank you btw
seems like a way to append values much easier?
oh i totally get it now
its just a way to do the same thing in one line
challenges/advent_of_code/2021/4/implementations/original/python/script.py line 97
boards_ = [Board([[int(val) for val in row.split()] for row in rows]) for rows in board_values]```
Exactly
And you can even put a comprehension inside another comprehension, enabling you to do even more on one line
They can get pretty hard to understand though
@gentle flint ?
January 2021 Leetcode Challenge
Leetcode - Remove Duplicates from Sorted List II #82
This is the video
@gentle flint@gentle flint@gentle flint
I guess i would ask what would be the longer way to type that
Oh right
i scrolled right over that
let me see
okay so whats k,v mean?
Keys and Values?
Yes
sudo chmod ugo+wx /media/username/your_drive
sudo chmod -R 755 yourfoldername
==> ERROR: You do not have write permission for the directory $BUILDDIR
i cant makepkg -si
@zinc magnet sudo chown -R 777 foldername
So -
The first half of the code creates an array called temp, and then adds all of the items from head to temp
Counter counts the items in an array, and creates a dictionary with the item as the key and the number of occurrences as the value.
So, if your array was ["a","a","b"], the Counter would be {"a":2,"b":1}.
Then,
temp = [k for k,v in c.items if v == 1]
Let's explain without the comprehension first -
temp = []
for k, v in c.items():
if v == 1:
temp.append(k)
for k, v in c.items(): loops through the keys and values in pairs
if v == 1: - check if the value is equal to one, and if it is, temp.append(k) - append the key to temp
In the example above, the first item was "a", and it was in the array twice, so the first key and value is "a" and 2.
2 is not equal to one, so it's not added to the array.
In the example above, the second item was "b", and it was in the array once, so the second key and value is "b" and 1.
1 is equal to one, so it is added to the array.
@noble copper what should i do :(
You're trying to give yourself permission to write to a folder?
yes
i guess
@sweet lodge
i git cloned spotify in a folder and is i write makepkg -si it says : ==> ERROR: You do not have write permission for the directory $BUILDDIR
Can you check the current permissions with ls -lah yourfoldername, and paste the output here?
drwxr-xr-x 5 777 root 4.0K Jan 10 01:24 .
drwx------ 23 m4rl users 4.0K Jan 10 23:45 ..
drwx------ 2 777 root 16K Jan 7 05:01 lost+found
drwxr-xr-x 3 777 root 4.0K Jan 10 01:00 spoti
drwx------ 4 777 users 4.0K Jan 10 01:24 .Trash-1000
m4rl
if i try to sudo it ==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
Join the challenge or watch the game here.
Yep
So lets change the owner of spoti to m4rl, so m4rl is able to run makepkg
sudo chown -R m4rl:m4rl spoti
chown: invalid group: ‘m4rl:m4rl’
@zinc magnet why all the pings
i wanted to ask you this question
@gentle flint - Do you mind double checking this for me? Any idea why chown would say invalid group?
Join the challenge or watch the game here.
well, if the group doesn't exist it would say that
Oh, right
I thought it was having trouble parsing the input because of the way the [error] message was structured, but it actually doesn't exist
My mistake, thanks for the help
This shows it's m4rl:users
I've always had a group with my username
Never had a users group before
Maybe I'm the weird one out this time
My mistake
Try this
sudo chown -R m4rl:users spoti
Join the challenge or watch the game here.
easiest way to find out if a group exists with his username would be cat /etc/group | grep m4rl:
"eAsY"
just doing grep m4rl wouldn't be enough cuz then it would show the groups he's a member of
xd
[bradleyreynolds@maximus ~]$ uname -a
Linux maximus 5.15.13-arch1-1 #1 SMP PREEMPT Wed, 05 Jan 2022 16:20:59 +0000 x86_64 GNU/Linux
[bradleyreynolds@maximus ~]$ groups
docker wheel bradleyreynolds
huh, interesting
groups shows only a small subset of /etc/group
AFAIK it only shows the groups the current user is in
aha
how clever
name@rucola:~$ groups
name cdrom floppy audio dip video plugdev netdev bluetooth lpadmin scanner
name@rucola:~$ su
Password:
root@rucola:/home/name# groups
root
root@rucola:/home/name#
I see
I love how we still have a floppy group even when the floppy interface driver is no longer supported
So... how do home directories work with all users in one group?
Oh, I guess the permissions are already 700, having a shared group wouldn't change anything then
Even my homework folder?
backwards compatability ™
sure
set the sticky bit on it tho, or your mom will delete the lot one fine day
THANKS
Yep
I am here
I can`t
One man was here but he had left
Intresting....
I don`t know anything i think
Will it be hard to learn C# if my first language is python?
2 months I am learning python : D
so, tobo what do you do?
I am learning classes now,so can you tell me everything you know about classes,how can i use them in web dev
Okay,can you write in this chat please how is it called?
I’ll be back
alright I'm back
@limber helm do you plan on becoming a developer or software engineer?
@cosmic niche England kind of is a country
@midnight agate parli italiano?
si
si posso parlare
come va la vita
perche ho stato imparando
Me too
@cosmic niche I think he said Slovakian
def __init__(self):
# Do not add any parameter to this method.
# Delete "pass" after adding code into this method.
pass
def run_app(self):
print("Your banking system should run by calling this method.")
authur = User('Authur','123','admin','N/A')
boris = User('Boris','ABC','customer','10 London Road')
chloe = User('Chloe','1+x','customer','99 Queens Road')
david = User('David','aBC','customer','2 Birmingham Street')
user_list = [authur,boris,chloe,david]
verify = 0
user_name = input("Insert The Username: ")
password = input("Insert The Password: ")
for i in user_list:
if user_name == i.get_user_name() and password == i.get_password():
verify += 1
else:
verify += 0
if verify == 1:
print ("You logged in!")
if user_name == authur.get_user_name():
print ("You are an Admin")
else:
print ("1 - View account\n2 - View summery\n3 - Quit\n ")
select = int(input ("Enter a number to select your option: "))
if select == 1:
print ("--Account list--\n")
elif select == 2:
print ("--Summery--\n")
elif select == 3:
print ("--You logged off--\n")
else:
print ("Try again please!")
class User:
def __init__(self,user_name,password,user_type,user_address):
self.user_name = user_name
self.password = password
self.user_type = user_type
self.user_address = user_address
def get_user_name(self):
return (self.user_name)
def get_password(self):
return (self.password)
def get_user_type(self):
return (self.user_type)
class Accounts:
def __init__(self,account_type):```
ce piu molto per me
scusa
si
che vuoi
non sono esperto in python
vieno indietro
@midnight agatehttps://www.seaofthieves.com/
A whole two days.
Wow.
Like, why bother?
Nono, the lockdown.
Noooo.
I get it. Not everyone can.
hello
hello.. i'm codding html 
Hello @wind raptor
How are you :?]
I'm thinking of becoming a monk
e('Template file invalid');
} ``` Hackers want kill - me
.xkcd 2479
you may know that there are 3 ways to plug a traditionnal USB.
- the first try (always wrong)
- the other way
- in fact it was the frist way...
yeah ik
cute.
Something, something, something about a guy named Schrodinger and his USB cables...
"My DVI cable can beat up your DVI cable."
Why do we always create 7 different forms of a cable, and then just give up and create a new one?
Why can't we just skip straight to creating new connecters?
Support CollegeHumor by signing up for DROPOUT: https://signup.dropout.tv. Tons of exclusive content, ad-free, for only $5 a month (that's like 17 cents a day).
We can make a computer fit in an envelope, but I guess we’re still working out the kinks on the charger.
LIKE us on: http://www.facebook.com/collegehumor
FOLLOW us on: http://www.twit...
MagSafe
But now they're just using USB-C like everybody else
For everything except their iPhones
Just because they hate us
because each one is an attempt to notmake everyone stop using a certain cable
You have to get new cables anyway
https://en.wikipedia.org/wiki/Giraffe#Necking
After a duel, it is common for two male giraffes to caress and court each other. Such interactions between males have been found to be more frequent than heterosexual coupling. In one study, up to 94 percent of observed mounting incidents took place between males. The proportion of same-sex activities varied from 30 to 75 percent. Only one percent of same-sex mounting incidents occurred between females.
6.2% of you are COMPLETELY insane and gave an odd number of "chuggas" in your response.
I was always at 2
Right? I'd need water after like 16
They're nothing alike
Microsoft Cloud App Security is now Microsoft Defender for Cloud Apps
Another one
How many "Defender for x"s are there now?
You're a guy
Yep
How do you pronounce this name?: Adilene
ˈadaɪlˌiːn
that is what espeak says
(pronounced like "adalene")
Hmm probably
Due to cultural language though I'm guessing "adeleene"
Like 5
There is SQL server defender
Who decided taking all these discrete products and giving them all the same name was a good idea?
Because I want them fired
Marketing
Defender is name for all security products
in france, the name "adeline" is quite common, and you say it like with the french accent (like "adeulyn")
big cat.. omg
Trainwreck movie clips: http://j.mp/1nxnvRq
BUY THE MOVIE: https://www.fandangonow.com/details/movie/trainwreck-2015/MMV3C7EC09AA31B75DE8E4090AC98DEEAF21?cmp=Movieclips_YT_Description
Don't miss the HOTTEST NEW TRAILERS: http://bit.ly/1u2y6pr
CLIP DESCRIPTION:
Amy (Amy Schumer) and Steven (John Cena) get into a disruptive argument in a movie th...
i like to see i'm not the only one who sometimes types ans instead of and by mistake (its in the hover popup)
Dune World: Directed by Mark Polonia. With Samantha Coolidge, Ryan Dalton, Drew Patrick, Houston Baker. A deep space crew takes a job on a mysterious remote planet. A crash landing strands them on the hostile surface. Soon they find out what creatures live there, and the hidden fate of the crew before them.
@unborn storm come here
i'm here
this really looks like 💩
gonna leave
bye everyone ^_^
#voice-verification @eternal drift
What site do you use for tech news?
https://theregister.co.uk - it's very UK centric though
https://arstechnica.com - also good
@eternal drift So for the message count, the easiest way is to just talk in here, use a help channel, help out in a help channel, etc. If you talk in here, most of the time we're watching the paired text channel when we're in VC, so that way you're not left out of the conversation
@eternal drift I have not hosted a Minecraft server on a Raspberry Pi. What's your question about it?
When my friends enter in the server it crashes
thing came up be back later
Does it give any errors or anything like that?
Any logs it makes saying why it died?
DXM is gross lol
yes
you will totally dissociate from reality with the right amount
Both Java Edition and Bedrock, RPi hardware does not have enough oomph
Ok
For the server?
yeah
Yes
i know this
Fair enough. Could swear I've heard of people doing it
only Minetest, which is an entirely different game, can run a server on a RPi
You can run MC in RPi, just not the latest version or for more than like 2-3 players
And I do mean "game" since it is not a Mojang product
Ok
i guess so
self-taught
I miss the ZIP drives
wait... 😂 How old are all of you guys? I thought this server was more run by teenagerish people. Like people who just finished Uni or is till in Uni
30's ... forgot my exact age
ah I get it. So old you forget your age
i have to go. bye.
Iam 21
hello
I'm 16
@rugged root whats your age
hi!
how're u?
When I was in college, so I think I was 19 or 20
ok
wrote my first line of code at like age 8-ish? ( don't remember).
Learnt the basics of C in 8th grade.
Learnt Python since late 2020
I mean if we're counting simple stuff, I wrote a game on my old TI-84 Plus calculator
Basic Input/Output System
Did a little number guessing game
✅ 🥳
Card Flip (Pokemon Gold & Silver)
It's a small amount of code directly written onto your motherboard to run OSes, restart, etc
@rugged root What's my age?
Ig 15-18
🙅♂️
No idea
guess
sub-13 ?
🙅♂️
13/14?
IMHO you act like a kid
🙅♂️
Kcikstarter. Ik I won't win or come anywhere close in the official one but I'll still try
Stop spamming
just tell us please
i lack sleep and dont have the mental capacity
i'm not spamming
Genuinely?
ya
she just said
Experience the wonder of High Quality Podcast and 7.1 Surround Sound with the Sound Blaster Audigy Rx. The Sound Blaster Audigy Rx is an advanced sound card that represents the perfect upgrade from basic motherboard audio to immersive cinematic surround sound. With its advanced chipset designed t...
you didn't give the age!
I see that you don't use the normal Amazon URL. Wuts this?
oh wait
nvr mind
correct
and since you admitted you are 10, you are not old enough to even have a Discord account
huh!
breaking discord's TOS, might have to ban you @frank blaze
still emoji spam? i love kids #sarcasm
i'm not spamming
i'm not spamming
i'm not spamming
!
i'm not spamming!
i'm not spamming!
i'm not spamming!
!mute 885256958989455410 You are indeed spamming. Take a moment to cool off
:incoming_envelope: :ok_hand: applied mute to @frank blaze until <t:1641924377:f> (59 minutes and 59 seconds).
Be right back, have to install Quickbooks on a machine
@stuck furnace 👋
keyboard in your lap can't be good for your posture/neck
I feel like with desks, depth is more important than width 🤔
hi
hmm
no one talking
the voice chat is like a piece of piece of piece of piece of piece of piece of piece of piece of piece of air
Ñetflix
bro
@whole bear Are you doing that deliberately?
please, stop
Can you stop if so.
ok
Nice ducks!
Python does have single dispatch in the standard lib.
Oh right.
Phatic expressions Charlie and Hemlock 👋
Ooh that sounds interesting.
What is freeCodeCamp?We’re a nonprofit community that helps you learn to code by building projects. How can you help me learn to code?You'll learn to code by completing coding challenges and building projects. You'll also earn verified certifications along the way. Is freeCodeCamp really free?Yes. Every
@ossia
You may not automate access to the website, or monitor the website, such as with a web crawler, browser plug-in or add-on, or other computer program that is not a web browser. You may crawl the website to index it for a publicly available search engine.
Can I create apps or tools based around the freeCodeCamp community and platform?
Yes. freeCodeCamp is open source (BSD-3 license), and most non-sensitive freeCodeCamp data is publicly available. But you must make it clear that you don't represent freeCodeCamp itself, and that your project is not officially endorsed by freeCodeCamp.
1337
Here is the forum: https://forum.freecodecamp.org/
i like it
Kyle Mitchell
c/o Free Code Camp, Inc.
725 Washington Street
Suite 203
Oakland, CA 94607
copyright@freecodecamp.org
(510) 712 - 0933
support team: support@freecodecamp.org
de1337ed
lol
@haughty pier the first of these courses is the most general. The second two assume that you understand the science and concepts of climate change.
this is the UN climate consensus: https://www.ipcc.ch/report/ar6/wg1/
so i am needing to process results on 2 conditions both with 5 values.. is there some clean way to do, or I must continue with 25 to 125 different combinations?
values being priority 1-5 and positions secondary to septenary
i think its only 25 combinations really.. but ill be breaking down additional conditions, so really ill end up with quite a few lines of code for this
👋
next child pick up brb
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
Hello
hi MAD
what up Python noob?
can you send Mad your seaguls story.. heh
it was Charlie's I just did a dramatic reading
doh
give us the good old newyork subways and railways.. if you cant get an std from just sitting, whats the point
i wanted be here
it's like the latest Sherlock Holmes
For some reason, New Yorkers seem to feel an urge to combine public transportation with public urination.
and worse.. much worse
We stopped institutionalizing the certifiably insane because of bad conditions in the asylums. Instead of fixing the institutions we emptied them and let the insane go wherever people would tolerate them. This is mostly NYC, Portland, Seattle, and San Francisco right now, as far as I can tell...
c y'all later.
I wouldn't be surprised if this was a dirty trick pushed by the auto industry to undermine public transportation, but that would be a crazy conspiracy theory and I am a sane rationalist.
It happened later then that
https://data.ct.gov/ @quasi condor
US -> https://www.data.gov/
The home of the U.S. Government’s open data Here you will find data, tools, and resources to conduct research, develop web and mobile applications, design data visualizations, and more. For information regarding the Coronavirus/COVID-19, please visit Coronavirus.gov.
gross pay USA: 73,000
gross pay UK: 40,000
Take home pay (CT) USA: 53,000
Take home pay (CT) (after holiday): 50,000
Take home pay (CT) (after holiday) (after healthcare): 35,000
Take home pay UK : 30,000
Friends, I'm submitting an example of my work to a university in the States, but I'm not a native speaker, so I'd really appreciate if somebody could take a look at it exclusively the language-wise. It is really brief.
There are only a few sentences here and there
I'd just feel more confident if a native English speaker proofread those
Please, ping me if you can give me a hand
Honestly, the only thing I'm not sure in is articles
🙏 🙏 🙏
Some python podcast ?
This article lives in: Dev.to Medium GitHub FastAPI's docs (including translations to other langua...
I like generators functions
Make it better
dont stop now
@wind raptor i was expecting it . hope its not the worse noice . i was just saying how is ur day going do far.
we are starting the day here
oo
@willow lynx G.Morning
ah , iseee
i was out for a bit did anyone arrived with something
has anything happened i mean the talk
hahah
gn then
✅ @pallid hazel can now stream until <t:1641999149:f>.
!stream 185917727385321472 1h
❌ @pallid hazel can already stream.
!stream 185917727385321472 1h
✅ @pallid hazel can now stream until <t:1642002748:f>.
if you're a real pro - you overdesign your global variables and call it dependency injection
(/s)
!pep8
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
• PEP 8 document
• Our PEP 8 song! :notes:
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
explicit is better than implicit is so far away from how python actually gets written it's insane
its a placeholder
so is ... aka Elipses (altho it has more uses for stuff like typing and for slicing with numpy arrays)
and the best one i like is
NotImplemented
its the most explicit and gets the point across
yoo i'm not the only one who likes top taskbars in windows
lol
Heathen
sup
which editor is this?
if run_priority in range(1, 6):
priority = run_priority
Instructions unclear. Tentacles in basement.
THE EYES! THE EYES!
Because humanity is going to give up emitting greenhouse gasses tomorrow.
Nuclear power is great. If you don't mind having to store the awful, awful waste that gets produced. Also, you know, the occasional times when shit goes wrong.
Even in a failure of those plants, they're designed to just stop reacting
I'd feel better if we developed processing options for the waste.
Which is happening.
Thorium reactors or whatever.
It's a high stakes game.
Meanwhile, big 'ol fusion generator in the sky.
Human sized.
Yep
People can get paid to exercise.
Or as part of community service or prison
so a chain gang, basically
There are worse ideas
"combining discipline and energy generation"
Astronauts.
"guaranteed non-fossil-fuel-based"
Astronauts don't use fire to cook their food.
If you grow corn on particular coastal areas, is that bay corn?
so are we talking abt bread?
gluten free bread
mhm
totally different
makes sense
so, how do you get moved to an afk channel
???
Is Mr. Hemlock always in this voice channel?
talking abt bread?
Lack of voice activity.
Hi
oh no
how can i talk?
Happens automatically. Discord thing, I think.
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
thanks @somber heath
60,973
235,450

