#voice-chat-text-0
1 messages · Page 172 of 1
(colours change proportionally to how many lines were (added+removed) in a commit)
> Though a part of the continent of North America, Greenland has been politically and culturally associated with Europe
so, both
Is lemon employed?
Huldufólk or hidden people are elves in Icelandic and Faroese folklore. They are supernatural beings that live in nature. They look and behave similarly to humans, but live in a parallel world. They can make themselves visible at will. Konrad von Maurer cites a 19th-century Icelandic source claiming that the only visible difference between norma...
So, if lemon's employed, was the day he join celebrated with lemonade?
Because they has been given lemon?
!pep 703
Can I have a summary on the GIL, and the implication of PEP 703?
Needs more electric guitar.
proposal with Lukaz
Lukaz @ ambv?
Whooooooooohoooooooooo my idol
The Worm Man™️ back in Pyxel
Does the "removal" of the GIL bring major side effects? I read somewhere that a lot of Python is built on top of assuming the GIL is there forever
I'd expect some C extensions to break
where it's not Python that breaks everything but custom C code instead (that relies on GIL)
might need to have more fine-grained locking mechanisms
6-7 years.... We're essentially looking at ~3.18-3.19 for the GIL to be lifted....
Key-Locked Rank One Editing for Text-to-Image Personalization
Welcome to my Channel. This channel is focused on creating tutorials and walkthroughs for software developers, programmers, and engineers. We cover topics for all different skill levels, so whether you are a beginner or have many years of experience, this channel will have something for you.
We've already released a wide variety of videos on to...
REM sleep?
It's kinda funny, the liver part, because over here in Asia "big liver" (literal translation) is idiom for "arrogant" @rugged root
Meanwhile "to have the liver to do sth" (literal translation) is "daring to do sth"
Similar to "have the guts"
....why are the ancients into livers that much?
I heard Kontakt
@bronze charm 👋
Do there exist any free versions of these templates? I'm in need of a preformatted template with predefined elements. Here's an example. I specifically require an HTML5 and CSS3 responsive template.
https://pixelarity.com/threshold
@rugged root
How bad is the idea of hosting your own mail server?
Very
DKIM, DMARC, blargh blargh blargh
What would be a good (preferably free) mail service that can use custom domain?
Proton needs...5EUR/mth
is it 5?
*sad noises*
was this for me? I'm confused
yea
for sending, you need to have ip->domain dns records, which, if you're not a company, are likely to be impossible to set up
@zenith radish are these templates or how to make templates
hold on, I need to figure out how lol
or, rather, should
gmail will argue if you send to gmail
well, you can just ignore that gmail exists
other services may opt in to follow this policy too
Terminal uwu
@obsidian dragon "You don't know, oh oh, you don't know you're beautiful"
@verbal windtrue tho
A hugo theme inspired by terminal ricing.
use a gui to make a terminal
@obsidian dragon A lot of things exist for sheer spite
headphones
@zenith radish Ooh, ooh, Sennheiser?
Why not Senny? :(
Question about beer: Do you folks prefer the stuff with a shitload of hops or the opposite?
Terminal DEMO - https://hugo-terminal.now.sh/ ⚠️ The theme needs at least Hugo Extended v0.90.x. Features Built-in shortcodes Code highlighting How to start How to run your site How to configure Post archetype Add-ons How to edit the theme Found a bug? New cool idea or feature Terminal theme user? Licence Features 5 duotone themes, depending on ...
disgrace
lmaooooo'
Your description
Too much fucking animation, too little practicality
how do i chekc how many more messages i have to send to get voice chat unlocked
never mind
got it
Music video by "Weird" Al Yankovic performing Amish Paradise. YouTube view counts pre-VEVO: 14,859 (C) 1999 Volcano Entertainment lll, LLC
@glad steeple
awwww. my screenshare privilage is gone 😦
that's one's one of his best
Sad
reStructuredText (RST, ReST, or reST) is a file format for textual data used primarily in the Python programming language community for technical documentation.
It is part of the Docutils project of the Python Doc-SIG (Documentation Special Interest Group), aimed at creating a set of tools for Python similar to Javadoc for Java or Plain Old Docu...
I feel like RST is verbose for the sake of verbosity
Have you considered our lord and saviour mkdocs
LP, will you support my tyranny?
I’m making a discord Ai will someone help me to train it and code I have made it a little active he can solve cubes cuberoots squareroots square arithmetic’s and linear equation in 1 variable if u can help please do 👍
What was your question again. Sorry you keep getting interupted
@cosmic bison Are you creating a documentation for a python package???
I search in google about restructured code
It said it is used for creating docstring for like python packages and stuff
I'm just curious and want to try it
I'm using it to document my own programming language
your own programming language???
coool!!
Yeah. It's compiled. The compiler is made in python
Altho I hope to be self hosted within the next year or so
Compiled straight down to x86_64?
no no
like what's your insta or like social platform I would like to follow you
its compiled to llvm ir
like see your programming language when it's available
there is a github link in my status on discord
ok got it
ohhh
@zenith radish https://www.linkedin.com/pulse/microsoftthe-truth-even-worse-than-you-think-amit-yoran/
Last week, Senator Ron Wyden sent a letter to the Cybersecurity and Infrastructure Security Agency (CISA), the Department of Justice and the Federal Trade Commission (FTC) asking that they hold Microsoft accountable for a repeated pattern of negligent cybersecurity practices, which has enabled Chine
@cosmic bison Is it the bens compiled language???
run bcl <subcommand> <args> to use BCL!
I am not sure in this part
what's the subcommand and args that I have to put in?
do bcl help
sorry I am noob in programming just 9 months in
ah
got it
the language is a bit of a pain to install
especially because it uses a forked version of a package called llvmlite
which is hard to build
Does anyone know whats the best gui package for a To-Do List Application?
(it also doesn't have great windows support)
I hope to change that, but it will take a lot of time to figure out
I am on ubuntu 22.04
oh cool
Tkinter for python probably
Replit for moblie tkinter does work lmao
Generate a random sample of size 1000 from a binomial distribution with probability of success 0.4
and plot a histogram of the results using matplotlib.
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
and now i am unsure in the question what does it mean by histogram
so basically by using the formula i have to plot the histogram?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
this is the helper code for the above
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pip install git+github.com/spidertyler2005/llvmlite.git
Defaulting to user installation because normal site-packages is not writeable
ERROR: Invalid requirement: 'git+github.com/spidertyler2005/llvmlite.git'
Hint: It looks like a path. File 'git+github.com/spidertyler2005/llvmlite.git' does not exist.
Is this is a good explanation?
Big brain move: FastAPI, but instead of API, return back rendered Jinja2
{
"tapasil": [
{
"name": "Hannah Washington Kate Prince",
"relationship": "Applicant",
"citizenship_cert_no": "419",
"remarks": "",
},
]
}
{
"purpose": "dsds",
"tapasil": [
{
"name": "anjil pandey",
"remark": "_",
"relationship": "Applicant",
"nagararikta_no": "27653"
}
],
"document": [
{
"name": "ded",
"document": "<base-64>"
}
]
}
Whats that
a django form
Yea
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
What
Whats the problem am kinda interested but am very laggy so the voices are lsggy
Yep
So 64 forms in pdf but 124 their is
Json
So you cant edit the form
Yea is very laggy
So a json config to database
196 ping
Wait canyou write the problem inchat?
Bruh deadlines
oh boy 18 hours
I did my first internship this summer and was able to scrape by mostly by copy pasting (and of course slightly modifying) existing code 😓
Bye @rugged tundra 👋
Da fuq, how was I still connected? I was gone for hours
hey guys
what does set do in python?
i dont know how i got this far without even knowing what it is
turns out its really useful
oh nevermind
just read an article
i understand now, thanks
not an article
a document, sorry.
alright lmk when u done
shut up
turns out there is no default dark theme
😦
but I have made string literals store a size by storing data behind the char pointer
busy pogging
wel
well
from my point of view
it seems whatever ur using
cant compact
with the object ur inflicting it on
so
well
obviously
but
toucan that doesn't make sense.
we need more info about what you are using
yeah
it says
it cant compact
at the start
so theres not really a solution except for whatever ur using is most likely 100% the issue
unless im reading it wrong
no it doesn't
dude
the to
top
it cant be used
whatever hes using
cant be used
with python 2
it isnt supported by the python "core team"
what does that have to do with compact?
i might've mispelt the word wrong
i mean the word
that means
like compact as in
you know when u have
mash potatoes
you compact it with
like
salt
yeah
that definitely isn't the right word
no
the python 2 warning is a deprecation warning
i was trying to get access to with password and username mssqlclient.py
I assume the connection failed then? Looks like you don't have the correct address
so it seems your requests aren't going anywhere
okay
its a pfp generator. I can't remember the name
someone made art of me
its me
but like im a
roman emperor
do u see it
like with my laurel
and toga
thank you very much i just got it right am putting a wrong input
alright, glad I could help
ok
goodnight
spider
and capital1
they call u capital1
b/c ur alway first
always
yup
good night bestToucan
Just finished string compare in my language
i also found a way to include the size with the char* without messing up it's ability to be used in functions like printf
I basically allocated extra space BEFORE the string data and stored the size there
Kind of think of it like putting an extra 8 chars at the start of the string that contain the size. Then offsetting the string by 8 bytes to trick everything into starting from the actual data and pretending like those 8 bytes don't exist
just leads to goofy codegen like this
%.19 = getelementptr i8, i8* %.18, i32 -8
sooner or later I want to think of the best way to do slices
:((
hey wassup
heyy
@somber heath how you create image using python.explain little bit about that
Pillow
oh
Numpy
i were thinking about developing web based editing app.so is that with this libraries
ok
hyd cynoki
good.wbu
same here
Web assembly.
I'm tired though
woot! found my bug and script finished now I think.. going to start scale testing..:)
what does the script do?
qos script that updates settings in access points and customer devices.. cordinates and tracks reboots.
im using dictionaries to track everything, at somepoint I had pulled a section of the dict out of the main dict and was working with it.. and it introduced a overwritting bug b/c of the link to the main dict.. took forever to find out thats where it all started 😦
Any luck getting that untangled?
on the one hand yes, but new issue not sure what's causing it 😦
Demons
hey af
!e
ham = ["bacon", "pork", "spam"]
for i, element in enumerate(ham):
print(i, element)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0 bacon
002 | 1 pork
003 | 2 spam
!e py i, element = (0, 'bacon') print(i) print(element)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | bacon
!e ```py
ham = ["bacon", "pork", "spam"]
for ielement in enumerate(ham):
print(ielement)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | (0, 'bacon')
002 | (1, 'pork')
003 | (2, 'spam')
!e ```py
ham = ["bacon", "pork", "spam"]
print(list(enumerate(ham)))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
[(0, 'bacon'), (1, 'pork'), (2, 'spam')]
!e
print(bool(0))
print(bool(1))
print(bool([]))
print(bool([False]))
print(bool(""))
print(bool("abc"))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | False
002 | True
003 | False
004 | True
005 | False
006 | True
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
True
!e py if 'abc': print('Hello!')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello!
!e
print(issubclass(bool, int))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
True
!e
x = "hi"
if x == "hi":
print("It is hi")
@willow nebula :white_check_mark: Your 3.11 eval job has completed with return code 0.
It is hi
!e py print(7 + True)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
8
!e
print(1+True+int("1"))
@dry jasper :white_check_mark: Your 3.11 eval job has completed with return code 0.
3
!e
ham = ["pork", "bacon"]
ham[1] = "spam"
print(ham)
beef = ("steak", "ribs")
beef[1] = "t-bone"
print(beef)
@rugged root :x: Your 3.11 eval job has completed with return code 1.
001 | ['pork', 'spam']
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 6, in <module>
004 | beef[1] = "t-bone"
005 | ~~~~^^^
006 | TypeError: 'tuple' object does not support item assignment
hiiiii af
!e
ham = ["pork", "bacon"]
if "pork" in ham:
print("Yep, it's there")
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
Yep, it's there
!e
ham = ["pork", "bacon"]
spam = ["pork", "bacon"]
print(ham == spam)
print(ham is spam)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | True
002 | False
!e py a = [] b = [] c = a print(a == b) print(a is b) print(a is c)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | True
002 | False
003 | True
!e py a = print('Hello.') print(a)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello.
002 | None
!e ```py
def func():
pass
a = func()
print(a)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
None
!e ```py
def func():
return 'Hello.'
a = func()
print(a)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello.
huh lists are pass by reference in python, I didn't know that
and this is implemented for all objects
for some
!e
def func():
return 'Hello.'
a = func()
b = func
print(a)
print(b)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello.
002 | <function func at 0x7fdca70a84a0>
Source code: Lib/copy.py
Assignment statements in Python do not copy objects, they create bindings between a target and an object. For collections that are mutable or contain mutable items, a copy is sometimes needed so one can change one copy without changing the other. This module provides generic shallow and deep copy operations (explained below).
Interface summary:
so iz like a collect call?
list allocates x2 memory
you can pre-allocate
when you construct a list from another object
pointed-to objects won't be placed as one chunk, obviously
the list itself (array of pointers) might be
!d operator operator.length_hint
one way to get a more efficient allocation
!e
from operator import length_hint
print(length_hint(range(1000)))
print(length_hint(i for i in range(1000)))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1000
002 | 0
!e ```py
class A:
pass
class B:
def repr(self):
return 'B()' #Usually a literal equivalent, able to be copypasted as code
a = A()
b = B()
print(a)
print(b)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | <__main__.A object at 0x7f8482ec46d0>
002 | B()
The object class has a __repr__ that does the memory address of the object. Classes inherit from object.
But we can override the method for it.
!e
ham = "pork"
spam = "eggs"
old_style = "I love old %s and %s" % (ham, spam)
method_style = "I love average {} and {}".format(ham, spam)
f_string = f"I love the best {ham} and {spam}"
print(old_style)
print(method_style)
print(f_string)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | I love old pork and eggs
002 | I love average pork and eggs
003 | I love the best pork and eggs
is there string interpolation in modern cobol versions?
@vocal basin how long are you coding with python?
5 years and 11 months
damn
!e
import random
x = random.randint(1,5)
while x != 5:
print("not 5")
@willow nebula :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | not 5
002 | not 5
003 | not 5
004 | not 5
005 | not 5
0-4
range as a sequence of numbers
nevah 5
!docs range
class range(stop)``````py
class range(start, stop[, step])```
The arguments to the range constructor must be integers (either built-in [`int`](https://docs.python.org/3/library/functions.html#int "int") or any object that implements the [`__index__()`](https://docs.python.org/3/reference/datamodel.html#object.__index__ "object.__index__") special method). If the *step* argument is omitted, it defaults to `1`. If the *start* argument is omitted, it defaults to `0`. If *step* is zero, [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError "ValueError") is raised.
For a positive *step*, the contents of a range `r` are determined by the formula `r[i] = start + step*i` where `i >= 0` and `r[i] < stop`.
For a negative *step*, the contents of the range are still determined by the formula `r[i] = start + step*i`, but the constraints are `i >= 0` and `r[i] > stop`.
oeugh, the highlighting
definitely, a subclass of stop
there it's an instantiation syntax
so it's not python class syntax
class C(arg) with C(arg) being an instance, not type definition
!e py for letter in 'abc': print(letter)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
!e py letter = 'a' print(letter) letter = 'b' print(letter) letter = 'c' print(letter)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
I have some bad news. I'm out of green tea
letter or index or element
i for indices most of the time
!e py for letter in ['a', 'b', 'c']: print(letter)This is what Griff was talking about.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
aren't Lua's for loops similar?
with its own equivalents to generators, iter, etc.
Lua is built to be embedded
initially, into C
match "because":
case why if False: ...
print(why)
Sorry, had to talk to our lighting guy for a sec
!e
match "because":
case why if False: ...
print(why)
@uncut meteor :white_check_mark: Your 3.11 eval job has completed with return code 0.
because
match args:
case ["command", *args]:
pass
case [*args]:
pass
last one necessary to restore the variable
(p.s. don't do this)
Please tell me you didn't write "In conclusion..."
In conclusion, Mr. Hemlick
pyopencl bsods on each failure
sometimes does worse things
the only language, which I implement rock paper scissors in, is brainfuck
it didn't pick responses randomly, it just cheated instead
Hangman%20by%20GDWR/main.py line 15
# <--------------------------------------Sprites-------------------------------------->```
# converts a letter to int, a = 0, b = 1, c = 2 .... z = 25
def letterToInt(letter):
alphabet = list('abcdefghijklmnopqrstuvwxyz')
return alphabet.index(letter)
codewars has better difficulty ranking, compared to leetcode
True
God damn it
2FA for merging PRs
no 2FA for opening PRs
I think you can't restrict opening PRs at all, unless you close the code fully
well, you can, but temporarily
for 6 months or something
there is a moderation section in settings
you can turn off issues
but not PRs
I wonder if there's a tutorial somewhere saying "if a repository doesn't have issues opened, use PRs to submit issues instead"
(would expect that from humanity, tbh)
I could see it
GitLab has auth through external sources
why is github sign up so laggy
you can sign in into GitLab via GitHub
you can self-host GitLab
including CI
(for free)
I'd still prefer Gitea because it's simpler
then add Drone integration to make everything complex and messy again
I think, yes
maybe that includes issues/projects/etc.
(sometimes it does)
Gitea can migrate from these
dependabot?
@vocal basin :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e
[] + ()
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | [] + ()
004 | ~~~^~~~
005 | TypeError: can only concatenate list (not "tuple") to list
Animation by Nathan Mazur. Music by Parry Gripp with permission to be on by Albino Blacksheep by Parry Gripp. http://www.albinoblacksheep.com/flash/waffles
See related: http://www.albinoblacksheep.com/flash/upbuttcoconut
send it here?
You can
yes
freak, i knew i had seen that cover before. Already had it liked but thanks for refreshing my memory.
That album cover is surreal
.
your welcome. i just forgot what channel you pinged me so i was searching for it hehe
true
Is that an actual building?
looks like something the aztec would build
yep
im listening to british accents now!!
wow
hehe
Yep, there's at least two brits
you need to look for FastAPI not Flask
trying to decide whether or not to try this
https://github.com/lab132/buildbot-gitea

i don't play video games :3
w badgem mr hemlok
What'd I do?
!e
b = True
print("YNeos"[not b::2])
b = False
print("YNeos"[not b::2])
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Yes
002 | No
I'm confused, which badge
Oh yeah, that one is cool
I just don't pay attention
def boolean_to_string(b):
print(str(b))
return str(b)
print(boolean_to_string(True))
print(boolean_to_string(False))
-> deez nutz
-> did nae ask
Why's he boolean me
import math
def boolean_to_string(b):
stack = []
for i in range(int(math.sqrt(math.sqrt(math.sqrt(math.sqrt(99999999999999999999 ** 2)))))):
lis = [math.sqrt(j ** 2) for j in range(i)]
stack.append(lis)
if b == True:
return boolean_to_string("T")
if b == "T":
return boolean_to_string("Tr")
if b == "Tr":
return boolean_to_string("Tru")
if b == "Tru":
return "True"
if b == False:
return boolean_to_string("F")
if b == "F":
return boolean_to_string("Fa")
if b == "Fa":
return boolean_to_string("Fal")
if b == "Fal":
return boolean_to_string("Fals")
if b == "Fals":
return "False"
!e
import math
print(int(math.sqrt(math.sqrt(math.sqrt(math.sqrt(99999999999999999999 ** 2))))))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
316
**
def boolean_to_string(b):
return "True"*b||"False"
Dumb question, 1_000 meters in a kilometer, 100 centimeters in a meter?
Or is it 100 meters to km
1000 meter
!e
def boolean_to_string(b):
return "FTarlusee"[b::2]
print(boolean_to_string(False))
print(boolean_to_string(True))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | False
002 | True
Danke
!e
from itertools import permutations,combinations_with_replacement
numbers = ["1","2","3","4","5"]
operators = ["*","/"]
unique_set = set()
for operCombo in combinations_with_replacement(operators,len(numbers)-1):
for oper in permutations(operCombo,len(numbers)-1):
formula = "".join(o+v for o,v in zip([""]+list(oper),numbers))
unique_set.add(formula)
sorted_set = sorted(unique_set)
for i in sorted_set:
print(i, eval(i))
easier than yes/no
The prefix kilo is derived from the Greek word χίλιοι (chilioi), meaning "thousand".
Deoxyribonucleic acid, DNA is the primary information storage molecule in biological systems. It is composed of four nucleic acid bases Guanine ('G'), Cytosine ('C'), Adenine ('A'), and Thymine ('T').
Ribonucleic acid, RNA, is the primary messenger molecule in cells. RNA differs slightly from DNA its chemical structure and contains no Thymine. In RNA Thymine is replaced by another nucleic acid Uracil ('U').
Create a function which translates a given DNA string into RNA.
For example:
"GCAT" => "GCAU"
The input string can be of arbitrary length - in particular, it may be empty. All input is guaranteed to be valid, i.e. each input string will only ever consist of 'G', 'C', 'A' and/or 'T'.
"and now you start a war about what kilobyte means"
Right right. Just been a while since I've had to convert or remember the various metric sizes
God I wish we would just go metric...
this is NSFW because of language but:
https://www.youtube.com/watch?v=KtJJC0nWs9s
From the album "Team America: World Police - Music From The Motion Picture" © 2004 Atlantic Records
Lyrics:
America
America
America - Fuck yeah!
Coming again to save the mother fucking day yeah
America - Fuck yeah!
Freedom is the only way yeah
Terrorist your game is through
'Cause now you have to answer to
America - Fuck yeah!
So lick my butt a...
that movie was awesome
def dna_to_rna(dna):
for i in :
if i == T:
i = str(dna)
str.replace("T", "U", 1)
return dna
print(dna_to_rna("GCAT"))
!e
ham = "pork"
spam = ham.replace("p", "b")
print(ham)
print(spam)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | pork
002 | bork
ham = "pork"
spam = ham.replace("pork", "beans")
print(f'{ham} and {spam}')
REMASTERED IN HD!
What’s your favorite Weezer video? Vote here: https://www.udiscovermusic.com/stories/best-weezer-videos/
Listen to more from Weezer: https://Weezer.lnk.to/essentials
Subscribe for more videos: https://weezer.lnk.to/subscribe
Facebook: https://www.facebook.com/weezer/
Twitter: https://twitter.com/weezer
Instagram: https://www....
Pork and beans
def dna_to_rna(dna):
for i in range(len(dna)):
if i == "T":
i = str(dna)
RNA = i.Replace("T","U")
return RNA
print(dna_to_rna("GCAT"))
!e
ham = "pork powers popular people"
spam = ham.replace("p", "b")
print(ham)
print(spam)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | pork powers popular people
002 | bork bowers bobular beoble
def dna_to_rna(dna):
dna = "GCAT"
rna = dna.replace("T", "U")
return rna
def dna_to_rna(dna):
def DNAtoRNA(dna):
RNA= ""
i = 0
for i in dna:
if i == "T":
RNA = RNA + "U"
else:
RNA = RNA + i
return RNA
```
import codewars_test as test
from solution import dna_to_rna
@test.describe("Sample Tests")
def basic_tests():
@test.it('Basic Test Cases')
def basic_test_cases():
test.assert_equals(dna_to_rna("TTTT"), "UUUU")
test.assert_equals(dna_to_rna("GCAT"), "GCAU")
test.assert_equals(dna_to_rna("GACCGCCGCC"), "GACCGCCGCC")
@pine depot Example of the kind of sample tests they give
def dna_to_rna(dna):
return dna.replace('T', 'U')
/n
def dna_to_rna(dna):
rna = ""
for let in dna:
if let == "T":
rna += "U"
else:
rna += let
return rna
I did it for clarity
yeah
Can you find the needle in the haystack?
Write a function findNeedle() that takes an array full of junk but containing one "needle"
After your function finds the needle it should return a message (as a string) that says:
"found the needle at position " plus the index it found the needle, so:
Example(Input --> Output)
["hay", "junk", "hay", "hay", "moreJunk", "needle", "randomJunk"] --> "found the needle at position 5"
Note: In COBOL, it should return "found the needle at position 6"
Python, still?
||
print("your mom")
||
yes
||
haystack = ["hay", "junk", "hay", "hay", "moreJunk", "needle", "randomJunk"]
for i, val in enumerate(haystack):
if val == "needle":
print(f'found {val} at {i} position')
||
||```text
"are extra newlines for comedic effect?"
using enumerate's output after the loop is problematic
just like any other loop variable
enumerate is often advised in place of i += 1
but sometimes that recommendation is inappropriate
where would the issue arise
!e
for i, element in enumerate([]):
print(element)
print("total length:", i + 1)
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 3, in <module>
003 | print("total length:", i + 1)
004 | ^
005 | NameError: name 'i' is not defined. Did you mean: 'id'?
you still need i = -1 at the beginning
!e
for i, element in enumerate([1, 2, 3]):
print(element)
print("total length:", i + 1)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 | total length: 3
Yeah for the initial you'd need the i = 0
the actual case where problems arise:
it's pre-initialised with something non-constant
it's used after the loop
and, also, where you obviously can't enumerate:
conditionally incrementing the value
!e ```py
class A:
def method(self):
return 'A'
class B:
def method(self):
return 'B'
a = A()
b = B()
print(a.method())
print(b.method())```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A
002 | B
so, problem with enumerate is that people blanket-label i += 1 as an anti-pattern
thats really gross that python doesn't delete the variable. Idk something about that makes me cringe a little. But I completely understand why it does that
there also are cases where you can use enumerate but it's semantically inappropriate
it does if the scope disappears
This is why it's a good idea to give the class and the method when talking about methods (A.method, B.method) to avoid ambiguity.
def find_needle(haystack):
return haystack.index("needle")
!e
try:
1 / 0
except Exception as e:
print(e)
print(e)
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | division by zero
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 5, in <module>
004 | print(e)
005 | ^
006 | NameError: name 'e' is not defined
that pointer doesn't correspond to an allocation
and (pointer - sizeof(size_t)) does
presumably
def find_needle(haystack):
return print("found the needle at position", haystack.index("needle"))
!e
x = 4
new_string = f"this thing is at {x}"
print(new_string)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
this thing is at 4
"but then you realise that JavaScript is a Lisp derivative"
def find_needle(haystack):
x = haystack.index("needle")
y = f"found the needle at position {x}"
return y
pythonyearold.mp4
you can disable JS's garbage
all that type coercion can be converted to errors
(on some JS engines)
docker run -it --rm python:2
python 3 fixed python 2 and broke everything else
let's change all to a function
"oh, wait, that's lisp"
!d enum
New in version 3.4.
Source code: Lib/enum.py...
https://haxe.org/ Could always go for this weird middle of the road
@cosmic bison should be intersection of lifetimes
(a,b) is valid if a and b are valid
why can't it be more granular?
tuple needs to be safe to drop
you aren't guaranteed to have ordering defined between two lifetimes
A : ---------------------------
B : -------------------------------
(A, B): -----------------------
there is no smaller lifetime among A and B
(A, B): 'a if A: 'a and B: 'a
"just use conditional lifetime annotation"
(extremely hard)
electron-based
https://github.com/webtorrent/webtorrent-desktop
https://motrix.app this is also electron I think
A full-featured download manager.
But seems a bit cuter
they can't block individual pages unless they provide access to GitHub to citizens via state-controlled proxy
Russia is planning to roll out this for basically the entirety of the outside internet
Doja Cat // Paint The Town Red // Get It Here // https://DojaCat.lnk.to/PTTR
Directors: Doja Cat and Nina McNeely
Based on Paintings by Doja Cat
Production Company: Freenjoy
Produced by Nathan Scherrer, Fabien Colas, Malcolm Duncan
Label Producer: Sam Houston
DP: Tehillah De Castro
PD: Nu California
Styling/Creative Director: Brett Alan Nelson...
I thought it was Doge-cat
Like! Share! Subscribe!
Thanks for watching :)
#tiktok #tiktokcompilation #tiktokchallenge #tiktoksongs #tiktok2021 #trendtiktok #tiktoktrend #tiktoktrends...
@velvet tartan
The Absence Management APIs support the management of employee benefit time and leave requests in Attendance on Demand. Benefit balances can be updated or retrieved, while leave requests can be added,
@coarse turret So are the job listings on attendanceondemand.com or is it another one?
Like are you trying to apply to them or something?
different site
you can only access B once it is in the beginning of it's lifetime. That means the remaining life is what we compare. That means there is a "longest lived" object here
Can you link to the site proper? Either here or DM if you're more comfortable with that
I know I won't be able to get to the same page you're on
I'm sending screenshots one sec
Yeah, this is something we can't/won't help with on the server. Automating access to their site like this is against their terms of service
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
Sorry
alright I understand
lifetimes 🙂
:x: failed to apply.
A doubly-linked list with owned nodes.
wsg
how to verify
it works
I wonder if there's a way to make it run the build thing on every commit in repo's history
wasn't that easy to set up, but mostly because I have no idea what I'm doing
fizz bizz buzz?
def fizz_bizz_buzz(n):
for i in range(1, n + 1):
if i % 3 == 0 and i % 5 == 0:
print("FizzBizzBuzz")
elif i % 3 == 0:
print("Fizz")
elif i % 7 == 0:
print("Bizz")
elif i % 5 == 0:
print("Buzz")
else:
print(i)
# Replace 'n' with the number you want to run the Fizz-Bizz-Buzz program for
n = 100
fizz_bizz_buzz(n)
w rizz
lmfao
@wheat haven 👋
@somber heath that was a bit hostile TBH, i'm confused as to what's with the discrimination
if i've done something to you i dont know what
I'm not trying to anger you or anything
Leave me alone.
What did i do
i'm lost
If i've done something i need to know
did you used to have a differnet username
I'm lost
I'm gonna report the hostility if it continues tbh
its not nice to just randomly attack people
I'm so lost as to what i'd done to deserve that
I really don't appreciate getting mumbled then yelled at
:(
I'm not going to let you draw me into another argument. I don't want to talk to you.
what argument
I'm not whoever argued with you
you just hallucinated an argument
It was likely someone else
tell me
what did we argue about
what was my stance
cause it likely wasn't me
i'd just got in vc
and then all of a sudden you decided to be with anger
I'm not the guy
yes
hlo
i m havnig problem i habe dm mod
i have a problem i math all the criteria
so what i should do
to speak
how to do that
what
plz send me that code
do u do java coding
can we make 3d game with python
togeather
ooh
Ursina
can we make a game like miencraft in python
ok
i could help him
i have intrest python
yeah what could u expect from a 500 ruppes mic
of 5$ mic
can we make a mod for miencraft (written in java) from python
can we make
@native hazel
do you have echo cancellation on?
means
there is Python for JVM but I'm not sure how well it's supported
Nope like Minecraft
You can make using pygame
No thanks
oplamist who is owner of here
aaaaaaah
I will share you later
i think i might not get the person who can teach me all about pygame
Just DM me
there's a topical channel for #game-development
oooooooooh
Search on YouTube
> teach me all about pygame
probably no one
You can make basic games like snake game and all
For making like Minecraft it's required good knowledge
it's just too large of a library, so "teach everything" is likely impossible
Yes
Guys did you know about shiny for python?
shiny for python?
Yes
might've hear about it, but never used
Build interactive web applications easily with the power of Python’s data and scientific stack.
It's looks good
I think it's use to represent data?
Like maps and graphs?
@prime crystal 👋
yes
👋
just joined@somber heath
@somber heathme
?
@proven ice 👋
Hi
@whole bear 👋
I forgot how to make verified voice
What will humanity become, millions of years in the future?
This video is an abridged retelling of All Tomorrows, a story written and illustrated by C. M. Kosemen. Here's an interview with Kosemen on the Alt Shift X Podcast: https://www.youtube.com/watch?v=_1DUeMbesM8
Follow and support C. M. Kosemen:
Website: http://www.cmkosemen.com/
YouTube:...
Huh i have not been on server moar thsan 3 days
There is e-girl voice somewhere
There is voice of like tiktok girl
I wish there is subtitles on discorf
I cant get what r ppl talking about
/tss
Ielts listening score 📉📉
5000ms
I realized opal mist has ucraina flag in his pfp
Ukraine
Ucraina is like vietnamese
I seems to hear easier using headphone
My headphone ismade in china
China is 200km far from my house
I forgot what does concern means
Dictionary says concern is like axiety
It can mean belonging to
Cer cribe the coded?
Each siege of magazine is big paper
I cant hear its siege or size
I have no knowledge in star war :(
I never buy games on steam i always watch those spoilers video and then forget em all
I never bought games on steam but spent money on youtube premium
I also very les watch film i also watch plot of the film on youtube
In vietnam there is copy right but not sure why there r still too much spoilers video
Hi
I'm a self taught python developer
took an online bootcamp
with Angela Yu on udemy
@mild socket 👋
I have a couple of questions
I wanted to make a career change. I'm struggling with finding a job. I already have projects on github.
Any advices
oi tava configurando me mic aqui
ok Thanks
Hi, I was setting up my mic here
what types of projects do you already have on gitrub
the should be a book analogous to "A City Is Not a Tree" but about languages
pythonic/non-pythonic is a gradient not something binary
convention can also specify multiple "right ways"
iirc, pep8 doesn't choose between " and ' for regular use
for strings containing many 's, it's "
for strings containing many "s, it's '
""" for triple-quote
' for eval?
In Python, single-quoted strings and double-quoted strings are the same. This PEP does not make a recommendation for this. Pick a rule and stick to it. When a string contains single or double quote characters, however, use the other one to avoid backslashes in the string. It improves readability.
asyncio
with as many tasks as enough to saturate one CPU thread
I was brought up on " through BASIC, though I think I quite like ' now because it's more visually minimalistic than "
I switched to using " because that's default in black
also:
class C:
def __repr__(self):
return "C(name='example')"
> If you want to format Jupyter Notebooks, install with pip install "black[jupyter]".
whaaa
I need
most of the "troll farm" accounts before 2022 were ran manually
even though widely called "bots"
"liberal" historically wasn't leftist, afaik
(as in what term refers to)
dna
then whats the point of inbreeding??
@somber heath
whats the point of inbreeding
werent you talking abt inbreeding?
ohhh
i thought you were talking abt inbreeding
ya this is both racist and dumb
I did
ya ur right
@cerulean ridge will there is plenty in more racist areas
eg whiter countries
isn't that a racist statement itself
you associated a negative attribute to white people
@somber heath I looked up, and seems like the two nuclear bombings weren't the most deadly one-day bombing campaigns
(there's one other, by USA against Japan too)
it had basically the same effect but with firebombs instead of nukes
similar number of people left homeless as a result
i forgot what this wat about
are u online i need help with data structure https://discord.com/channels/267624335836053506/1137455956272365588
Does anyone understand the pytesseract and opencv libraries?
some one come in voice chat
its 4am
for me
well
this server i think
has a much different timezone than yours perhaps??
i dont see much people active when it gets late for me
yet when its morning/afternoon for me the calls can be packed
@brave girder 👋
do i need a role for that ?
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Sorry, I wasn't looking at chat.
ive found out that
3:08 / 4:48
Ed Sheeran - Castle On The Hill [Official Music Video] is nice
there is channel status
however i cant use it
hello @vernal bridge
hello @marsh idol
hello @somber heath
how are you all doing
the pronunciation is kind of correct
yeah @somber heath is correct
@cinder pasture 👋
@gusty yacht 👋
u hav to wait 3 days to talk
is that possible to get freelance work
50 messages
oh alright
@brazen stirrup 👋
hi
50 messages is long
50 meesages oh god im going to be here a while
i think this is 50th message
im still trying to learn python
im 15 trying to learn it @somber heath
i feel like soon this genaration is going to be the old people not knowing how things work
with how everyhting is headed with ai and diffrent things
imagine the world in 2040 2050 oh god thats going to be in my peak years too
@tiny prawn @somber heath
!code
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
@obsidian socket 👋
brb
which board of school u in @ionic jasper
wait i have hardware related doubt
rx 6400 or rx 580 with 16gb ram and i3 12100f?
which will be better
@whole bear thay must be thinking we are doing some kind of satanic ritual
@whole bear 4gm ram android with already cracked = best device
not very expensive, the build maxes out at 45k rupees or around $450, and minimum will be 35k-40k rupees or $350-$450
@somber heath whatever u said i did, but some people say that rx 6400 is neer which somehow equals better, but some benchmarks show that rx 580 exceeds rx 6400 in some cases, so there a lot of confusion, but thanks for help
your voice sounds like morgan freeman @somber heath
nice voice that is
from what i have noticed, opalmist is like the wise sage of the server vc, anything you ask him, he will either give a detailed and informational answer, or give you directions to the right path to find your answer
@somber heath gtg
lmao, tata in my language if you say it right literally translates to testes
and i used to say tata everytime i was leaving
and surprisingly, the biggest company in india is named "tata"
45k is not 450dollars but around 550 dollars
ok
@whole bear ok
opal, have you watched interstellar?
i saw it for the first time last week, it blew me away
@whole bear in market reliance is bigger
@whole bear financially
@somber heath but product wise Tata
everytime i look at the moon, i just get shivers up my spine knowing that every planet in our system could fit in the gap between
yes yes i have seen it
@somber heath why u so active in voice chat? I feel lile u r on vc 24/7
@minor raft what is this
as he mentioned, hes a glorified sign post, helping travellers
Wth
Because I have no life. 😁
simpson?
@whole bear why ur message got blocked bu discord
U must have done somethinf
i had gotten hacked once, and since then this shit was happening
