#voice-chat-text-0
1 messages Β· Page 13 of 1
for x in range(100):
if (x % 3 == 0)
print("fizz")
elif (x % 5 == 0):
print("buzz")
elif (x % 3 == 0 and x % 5 == 0):
print("fizz, buzz")
else:
print('eleminated')
!e
for x in range(100):
if (x % 3 == 0)
print("fizz")
elif (x % 5 == 0):
print("buzz")
elif (x % 3 == 0 and x % 5 == 0):
print("fizz, buzz")
else:
print('eleminated')
@surreal wyvern :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 2
002 | if (x % 3 == 0)
003 | ^
004 | SyntaxError: expected ':'
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including 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.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
!e
!e
for x in range(100):
if (x % 3 == 0):
print("fizz")
elif (x % 5 == 0):
print("buzz")
elif (x % 3 == 0 and x % 5 == 0):
print("fizz, buzz")
else:
print('eleminated')
@surreal wyvern :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | fizz
002 | eleminated
003 | eleminated
004 | fizz
005 | eleminated
006 | buzz
007 | fizz
008 | eleminated
009 | eleminated
010 | fizz
011 | buzz
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/xohevuhagi.txt?noredirect
hey i needed help in n queens and knights problem with simulated annealing approach
i have a code for n queens with simulated annealing can someone add knights logic in that
Hey @lone sun!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
Whoever came in just now, said something, then left, I didn't see who you are or what was said.
"[garble] is the best", maybe?
Could have been "Mustafa is the best". @lavish rover, people are complimenting you behind your back.
I mean, that has actually happened, too, elsewise.
You're just hearing what I want to hear.
Perhaps, but that doesn't make it untrue.
yeah bro
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@toxic grove
i know
it is ezier
to send messages here
in voice chat 0
instead of dms
colombia
guatamala
china or india?
@lethal thunder china or india?
pakistan?????
kazakstan
kazakstan @lethal thunder
i
have
to
ur the closest so far
get out
my map
π
is austrailia and oceania difrent continents?
YES
new zealend is a bost now
i know it sounds fake
but its true
i know
what does β’ You have been active for fewer than 3 ten-minute blocks.
@lethal thunder
β’ You have been active for fewer than 3 ten-minute blocks.
what it mean
you have to be active on the server for 3 ten-minute blocks
be active on the server 3 times
and you have to be active for longer than ten minutes
np
i cant tell if you are being sarcastic
it is a beutiful day today
just copy
all
the
stuff
from
stack
overflow
how you forget a
FOR LOOOP
lool
if you memmorise itt goes faster
so you should try to memorise
it makes coding easier
``py
@peak ice I'm struggling to hear and understand, sorry.
def dselection_sort(a):
c = a.copy()
a = c
n = len(a)
ini = 0
for i in range(n):
for j in range(i + 1, n):
if a[i] > a[j]:
temp = a[i]
a[i] = a[j]
a[j] = temp
return c
a = [156, 141, 35, 94, 88, 61, 111]
b = dselection_sort(a)
print(a)
print(b)
copy() or slicing list[:] βis linear to the number of elements in the list. For n list elements, the time complexity is O(n). Why? Because Python goes over all elements in the list and adds a copy of the object reference to the new list (copy by reference).
def dselection_sort(a):
c = []
a = c
n = len(a)
ini = 0
for i in range(n):
for j in range(i + 1, n):
if a[i] > a[j]:
temp = a[i]
c[i] = a[j]
a[j] = temp
return c
a = [156, 141, 35, 94, 88, 61, 111]
b = dselection_sort(a)
print(a)
print(b)
There's the copy module.
@trail tusk
!e ```py
class MyClass:
def function_or_method(self):
pass
instance = MyClass()
print(type(MyClass.function_or_method))
print(type(instance.function_or_method))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | <class 'function'>
002 | <class 'method'>
good to see you π
My fingers were feeling left out.
too kind person
Let me see if I understand the question. You want to take a list and...break it into pieces?
Oh.
You want copy.deepcopy.
He want to break the memory location
!e
def dselection_sort(a):
c = []
a = c
n = len(a)
ini = 0
for i in range(n):
for j in range(i + 1, n):
if a[i] > a[j]:
temp = a[i]
c[i] = a[j]
a[j] = temp
return c
a = [156, 141, 35, 94, 88, 61, 111]
b = dselection_sort(a)
print(a)
print(b)
@trail tusk :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [156, 141, 35, 94, 88, 61, 111]
002 | []
But if you're talking about integers, there'd be no point.
Oh, hang on.
Well, once I understand what is wanted to be done, quite possibly.
So you want the same data, but in a different list?
!e py a = [1, 2, 3] print(id(a)) b = a.copy() print(id(b)) print(a) print(b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 139981234514112
002 | 139981234516736
003 | [1, 2, 3]
004 | [1, 2, 3]
opal i thinks this is it
but thanks
Yeah, I saw that, but I was being queried, so...
Yet another way is use of the list constructor.
a = [1, 2, 3]
b = list(a)```
But a.copy() is a nice, Pythonic-feeling sort of way, so mm.
!e
def dselection_sort(a):
c = []
a = c
n = len(a)
ini = 0
for i in range(n):
for j in range(i + 1, n):
if a[i] > a[j]:
temp = a[i]
c[i] = a[j]
a[j] = temp
return c
a = [156, 141, 35, 94, 88, 61, 111]
b = dselection_sort(a)
print(a)
print('a', id(a))
print(b)
print('b', id(b))
@trail tusk :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [156, 141, 35, 94, 88, 61, 111]
002 | a 140369922975936
003 | []
004 | b 140369922978688
Hah. Yeah.
You can either replace the variable referencing the list, if appropriate, or you can use the list.clear method.
Or you can overwrite with the [:] slice.
Using either del or assignment.
use this @peak ice
def mooo(lst):
new_lst = []
while lst:
new_lst.append(lst.pop(0))
return new_lst
a = [156, 141, 35, 94, 88, 61, 111]
c = [1, 2, 3]
b = copy(a)
d = copy(c)
print(a)
print(id(a))
print(b)
print(id(b))
print(c)
print(id(c))
print(d)
print(id(d))
!e ```py
a = [1, 2, 3]
b = a.copy()
a.clear()
print(a)
print(b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | []
002 | [1, 2, 3]
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
test
!voice @whole bear
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I won't be able to talk for 3 days it says
why would they do that in a coding server though?
Oof cant talk yet
Thats fair
π
π
Welp I might be screwed then
I'm having trouble coding rn
O_o
I'm getting an str error
I can
π€
Traceback (most recent call last):
File "main.py", line 13, in <module>
print( str(name) + ("will have to practice the language") + adv1 ("to make it easier to ") + verb ("with people.") )
TypeError: 'str' object is not callable
I can show the coding i've done so far
"..."()
I should probably explain what i'm doing for the assignment
Man I took robotics class as an elective for my senior year of highschool and I had no idea that we would be coding. This is by far the hardest thing i've had to do in a class other than math my whole life. It's very challenging
!e py age = 17 name = "Peter" print(f"Hello, {name}. You are {age} years old.")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, Peter. You are 17 years old.
f-strings
so the f string substitutes the regular string? but does the same thing?
you can do math with it
that's crazy
print("Let's play Silly sentences!")
name = input("Enter a name:")
adj1 = input("enter an adjective")
adj2 = input("enter an adjective")
adv1 = input("enter an adverb")
food1 = input("Enter a food")
food2 = input("enter another food")
noun = input ("enter a noun")
place = input("enter a place ")
verb = input("enter a verb")
print( str(name) + ("was planning a dream vacation to ") + place )
print( str(name) + ("was especially looking forward to trying the local cuisine, including ") + adj1 + food1 + food2 )
print( str(name) + ("will have to practice the language") + adv1 ("to make it easier to ") + verb ("with people.") )
print(str(name) + ("has a long list of sights to see, including the ") + noun ("museum and the") + adj2 ("park.") )
this is what i'm working with right now
i'm having to do a mad libs
this is just how my teacher teaches me at school
I've been coding for 2 weeks so far
regex?
How do you know all of this information about coding? This stuff is so difficult, I try to find joy out of it but it's hard to do. You seem to find joy out of it. Can you tell me how you find it so interesting?
that's where i'm at right now
So the joy out of it is achievement and success
when i put f infront of the verb it just gives me another error
does the f stand for filter?
!e py a = 123 print(f"Hello. {a}.") print("Hello. {a}.")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Hello. 123.
002 | Hello. {a}.
print( str(name) + ("will have to practice the language") + adv1 ("to make it easier to ") + verb ("with people.") )
the only way i know how to input the name into the sentence is by using str before it
wait hold on i think you figured out the error
I needed more plusses
get rid of which "s?
i have to open an account at oracle.com will be there a problem if i write random things about opening an acc like "Company Name : 12412","Company No : 124124" etc
there's no way he made a video game
what the hell
OH MY GOD
DUDE
Thank you so much for helping me we did it bro
Jade was planning a dream vacation to Australia
Jade was especially looking forward to trying the local cuisine, including charming chicken noodles
Jade will have to practice the language never to make it easier to smell with people.
Jade has a long list of sights to see, including the bed museum and the fantastic park.
the print?
print( str(name) + ("was planning a dream vacation to ") + place )
print( str(name) + ("was especially looking forward to trying the local cuisine, including ") + adj1 + food1 + food2 )
print( str(name) + ("will have to practice the language") + adv1 + ("to make it easier to ") + verb + ("with people.") )
print(str(name) + ("has a long list of sights to see, including the ") + noun + ("museum and the") + adj2 + ("park.") )
i'm getting errors from deleting the "
oh my god i'm an idiot
ok don't tell me what's wrong with this
i'm going to try to fix
File "main.py", line 14
print( name + "has a long list of sights to see, including the " + noun + "museum and the" + adj2 + "park".)
^
SyntaxError: invalid syntax
what exactly is the string?
yes but what part is the string? is it the words?
print( name + "was planning a dream vacation to" + place )
print( name + "was especially looking forward to trying the local cuisine, including" + adj1 + food1 + food2 )
print( name + "will have to practice the language" + adv1 + "to make it easier to " + verb + "with people." )
print( name + "has a long list of sights to see, including the " + noun + "museum and the" + adj2 + "park.")
@whole bear :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | EOFError: EOF when reading a line
okay @somber heath does this suit you?
print( name + "was planning a dream vacation to" + place )
print( name + "was especially looking forward to trying the local cuisine, including" + adj1 + food1 + food2 )
print( name + "will have to practice the language" + adv1 + "to make it easier to " + verb + "with people." )
print( name + "has a long list of sights to see, including the " + noun + "museum and the" + adj2 + "park.")
wow that's a lot shorter than what i was having to do before
thank you
you helped me a lot
@whole bear
Now try it with f-strings.
read the article i send above
f"{}"
!e py age = 17 name = "Peter" print(f"Hello, {name}. You are {age} years old.")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, Peter. You are 17 years old.
ok so there's { these things
!e py age = 17 name = "Peter" print("Hello, " + name + ". You are " + str(age) + " years old.")Roughly equivalent to above but uses concatenation.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, Peter. You are 17 years old.
{} curly braces
!e @somber heath
import sys
from io import StringIO
sys.stdin = StringIO("Hello, World!")
x = input()
print(x)
@terse needle :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, World!
so you want me to try and do the whole program again but with f strings?
f strings are so much more readable and concise
it's so worth it
Not only do f-strings look nicer, they're easier.
wait another question
{name}
could i just do this at the beginning of my sentences and not have to put a +?
print( name + "will have to practice the language" + adv1 + "to make it easier to " + verb + "with people." )
^that for example
i'm going to have to make a new replit
!e py name = "Peter" adv1 = "conscientiously" verb = "program" print(f"{name} will have to practice the language {adv1} to make it easier to {verb} with people.")
ok i've made a new one to experiment with
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Peter will have to practice the language conscientiously to make it easier to program with people.
If you want to enter it in at runtime, you may.
But I knew what I wanted those variables to be.
Be wary. () [] and {} are contextually dependant. Depending on where they are, they can mean different things. {} won't always be part of an f-string or have anything to do with substitution.
name = "Peter"
adv1 = "downstairs"
print(f"{name} will have to practice how to the play violin at his parents house {adv1}.")
Peter will have to practice how to the play violin at his parents house downstairs.
ξΊ§
the x at the end is an ad on my screen
my_set = {1, 2, 3, "a", "b", "c"}
my_dictionary = {"apple": "fruit", "rock": "mineral"}```
Looks like you've got the idea.
If you wanted to be really disgusting, you can even do something like this...
text = f"This is how to annoy your teacher. Your answer is: {input('Say a thing')}"
print(text)```
Do not do this.
You can. Don't.
answer = input("Say a thing: ")
text = f"Your answer was {answer}."
print(text)```This is a better pattern.
okay i've done some practicing
name = "Peter"
adv1 = "downstairs"
crazy = "the crazy cat decided not to join along "
faster = "the cheetah decided to run even faster though"
print(f"{name} was a very lovely lad that enjoyed eating a lot of peanut butter, unfortunately there was none {adv1} his aunt on the other hand was crazy and as was her cat as {name} was running down the stairs his aunt started chasing him but {crazy} as they were running around the house a cheetah charged in hungry for a kitten supper the cat then started running very fast {faster} the cat unfortunately was supper in the end and {name} ended up with no peanut butter")
it came out like this
Peter was a very lovely lad that enjoyed eating a lot of peanut butter, unfortunately there was none downstairs his aunt on the other hand was crazy and as was her cat as Peter was running down the stairs his aunt started chasing him but the crazy cat decided not to join along as they were running around the house a cheetah charged in hungry for a kitten supper the cat then started running very fast the cheetah decided to run even faster though the cat unfortunately was supper in the end and Peter ended up with no peanut butter
the f strings are a lot better you're right
π
So my teacher is just teaching us in a weird way that makes things way more complicated
Concatenation is worth knowing.
f-strings are worth knowing.
Most people learn how to achieve this result with concatenation, first.
is that what I was doing?
all of this
print("Let's play Silly sentences!")
name = input("Enter a name:")
adj1 = input("enter an adjective")
adj2 = input("enter an adjective")
adv1 = input("enter an adverb")
food1 = input("Enter a food")
food2 = input("enter another food")
noun = input ("enter a noun")
place = input("enter a place ")
verb = input("enter a verb")
print( str(name) + ("was planning a dream vacation to ") + place )
print( str(name) + ("was especially looking forward to trying the local cuisine, including ") + adj1 + food1 + food2 )
print( str(name) + ("will have to practice the language") + adv1 ("to make it easier to ") + verb ("with people.") )
print(str(name) + ("has a long list of sights to see, including the ") + noun ("museum and the") + adj2 ("park.") )
now this looks crazy to me
Joining strings together with + to form one string is called string concatenation.
the way you can just make it so much shorter is absurd
Ok I understand
Well thank you very much for all of your help! I will be back in the server at some point but I must leave now to do my homework. You were a very nice person and I appreciate that. Have a good one!
Alpha Bank is the second largest Greek bank by total assets, and the largest by market capitalization of β¬2.13 billion (as of 4 December 2018). It has a subsidiary and branch in London, England and subsidiaries in Albania, Cyprus and Romania. Founded in 1879, it has been controlled by the Costopoulos family since its inception. Most recently, Io...
.
what is is the russian gov say to the people
what is is the russian gov saying to the people about the war @frigid shard
the american gov is saying the govermentel head of russia had a stroke bassed is this ture
true
fear is a good motivation to thing that is not smart @molten pewter
to do things that
@somber heath east and west berlin ?
oh
the african gruilla mittary
afiaca
.
is the mafia still big over since the 90s and eraly 2000s @frigid shard
ummm wym
Live from London and Windsor, full coverage of The State Funeral of Her Majesty Queen Elizabeth II at Westminster Abbey and the Committal Service at St Georgeβs Chapel in Windsor.
In the morning His Majesty The King, together with other members of the Royal Family, Heads of State and dignitaries from around the world will gather at Westminste...
Mesopotamia is a historical region of Western Asia situated within the TigrisβEuphrates river system, in the northern part of the Fertile Crescent. Today, Mesopotamia occupies modern Iraq. In the broader sense, the historical region included present-day Iraq and Kuwait and parts of present-day Iran, Syria and Turkey.The Sumerians and Akkadians (...
Ψ¨ΩΩΩΨ§Ψ― Ω±ΩΨ±ΩΩΨ§ΩΩΨ―ΩΩΩΩ
βI donβt even know what Aβs are anymore.β
Check out more awesome videos at BuzzFeedVideo!
http://bit.ly/YTbuzzfeedvideo
MUSIC
Hereβs How We Do It
Licensed via Warner Chappell Production Music Inc.
STILLS
'Brooklyn' Premiere - Arrivals - 2015 Sundance Film Festival
Araya Diaz / Getty Images
BUZZFEED.COM VIDEO POST OF PUBLISHED VIDEO
www.buzz...
Tadgh
"Ooh ooh, ahh ahh, sexy eyes... I wanna take you to paradise..." π΅
Caoimhe
Kao-iim-heh
kee-vah
The list of countries by UNODC homicide rate is typically expressed in units of deaths per 100,000 individuals per year; thus, a mortality rate of 30 (out of 100,000) in a population of 100,000 would mean 30 deaths per year in that entire population, or 0.03% out of the total. The reliability of underlying national murder rate data may vary. Onl...
@somber heath On in a bit
As SOON as I got into work, "Oh hey, 3 computers can't connect to the network
Hello how are you?
Dead switch?
Addresses in the DNS weren't being released
No idea why yet
DNS?
For local computers?
Did you mean DHCP?
Or like Active Directory DNS?
Mexico
But there was already a conversation about rotating tires
I think that's a euphemism for something
"Hi, I'm Murder McMurderface."
literally me
.xkcd 1125
Thank you bot
@rugged root - bot just needed coffee
Provided to YouTube by RCA Records Label
Disgustipated Β· TOOL
Undertow
β 1993 Volcano Entertainment II, L.L.C.
Released on: 1993-04-06
Unknown, Mixing Engineer, Producer: Sylvia Massy
Assistant Engineer: Robert Fayer
Assistant Engineer: Brad Cook
Assistant Engineer: Chris Olivas
Auto-generated by YouTube.
Cryptominers have made GPU VMs difficult to get
Know your Playstation.
Missin' u bae
I don't have any real use for them
But I hear they're good for AI/ML
How involved is the process?
Embrace PowerShell!
At least the Airbnb has a view
Dogfooding?
That's a gorgeous view
Using your own product
using the product you make
in order to understand what user experience is like
I'd never heard of that term
Eating your own dog food or "dogfooding" is the practice of using one's own products or services. This can be a way for an organization to test its products in real-world usage using product management techniques. Hence dogfooding can act as quality control, and eventually a kind of testimonial advertising. Once in the market, dogfooding can dem...
Appropriate considering your pfp
Good, you?
can i change color on socket chat script?
@amber raptor do you like em?
Five top comedians try and paint the best picture of a horse whilst riding a horse. Also, expect melon-eating, bath-emptying and pop-u tents.
Follow the show at http://www.twitter.com/taskmaster
Become a fan at https://www.facebook.com/officialtaskmaster
Get the Taskmaster book and board game: https://taskmaster.tv/over-you
----...
Matt Berry ^
I think pretty much the same thing as what Americans think of it
they tend to like it if they like the royals
@zenith radish https://arxiv.org/abs/2106.10800
Hello there
::1
Same day apparently
@south bone You been doing well?
Been sleeping in this, and sometimes on the board in a lake, for the past week
Yeah, I been alright bro, been learning a bunch of stuff , amping up my resume bud
taskmaster is absolutely the best TV
I have introduced at least a dozen people to it
it's fucking phenomenal - I love it
the real question is
i am not familiar
have you seen taskmaster Norway
have you seen the New Zealand version?
I haven't - the only international variant I've watched is NZ
I've only heard good things about the Norwegian one, I just need to actualyl get around to watching it
If it is a tv show that you can't get by putting a coat hanger into the back of your television, then I probably haven't seen it
highly, highly recommend it
honestly norway s1 was the only thing that's come as close to the hype as the UK season 1 for me
the other seasons are good but they don't have the same oomph
the UK S1 has something special going for it
I'm with grandparents, cannot talk
I cannot read, I'm a Murican
I'm not even going to entertain that thought
they couldn't get the remote for the blinds working at our airbnb, I don't think I'm going to ever be able to explain to them what aecor is
indeed, but norway season 1 is special in it's own regard, it's actually fucking brilliant
the host is not as good as greg davies, no one is, but all the contestants are like significantly funnier and just better
I'll watch it soon and almost certainly love it - I'll let you know how I find it
they do some of the same challenges as the UK one, and it's especially great because you get to compare how much harder there people are actually trying
some of them are straight up psychotic, it's amazing
You guy actually know where you applied?
I don't even read the company names
So, some quick housekeeping questions
What made you interested in our application -- what stuck out to you?
Uh.... I have no idea
I don't even know what application this is for
But honestly seriously - Sometimes even if you remember the company name, then you get a email from a random recruitment company, so it doesn't even match anyways
"why did you apply at XYZ"
"I personally really resonate with the goals XXX tries to achieve, I have heard that the work environment is great and I feel like my technical skills would be a really good fit for the positions I am applying for"
Copy pasta, ez interviews
"Why are you applying for this job?"
"Bro, have you seen medical bills in my home country?"
Something tells me that won't fly
Unless you're applying for the position of a doctor at a small clinic, I guess
cries in $40,000 for a twelve-second CT scan of my right elbow
"I'm at a small company by myself with no room to grow, I'd like to move into spot where I can grow and be apart of a team"
Is what I've been going with
That's so relatable it hurts.
@zenith radish
here
is the link
@zenith radish
in case
you didn't see it
@rugged root
Node("Thing") - Node("Other Thing") # complains at me for not using the result
@zenith radish can I bait you into helping me finish aecor LSP
I'm so close
But typescript
Sadge
I can now trigger completions from the CLI, I just need to hook it up to vscode extension and debug typescript
@lavish rover how do you personally call the __init__ function in python?
initialiser or constructor?
or init?
ur all wrong
what is this () => {} in js? an arrow function or a lambda
How am I wrong about what I personally call it
@lavish rover how do you personally call this
is arrow so arrow function
you're so wrong
Mustafa is dead to me
from aws.compute import Batch
with Diagram:
Batch("thing 1") >> Batch("thing 2")
You'll understand when you're older, it's ok
@cyan pivot If you're wondering why you can't talk, check out the #voice-verification channel
Incorrectafa
That'll tell you what you need to know
Actually it's just a monad backwards
Okay
if there is anyone that can help me for 2 sec id really apritiate it
I can only imagine the shits and giggles y'all are having about this in VC
dm me
What's your question?
Hmm. Might be better to snag a help channel for that one then. You'll probably want to provide more details / screenshots / error codes and what have you. See #βο½how-to-get-help for more details
Hey, anyone having connections with someone in UK or CA who might know software dev openings? would love to explore the foreign opportunities, indian btw
linkedin jobs
#career-advice might be a good place to talk about stuff like that, specifically how to get into that rather than asking for folks directly
We kind of have a thing about asking jobs and what have you
okay cool thanks ill post there,
This mandatory harassment training includes CA state law, which strikes me as odd since we have no offices in CA, and I can think of several hundred reasons to never live on or even visit the West Coast.
Yup Edgerunner
Neon genesis evangelion
Yup
Trigun
Vash the Stampede
Baccano
Just like Bullet Train
Durarara
I stopped watching Anime nowadays
Did anybody watched Terraformers
Yeah and series too with all that censorship
Yup Credit
So what in the world are people talking about here
I just don't know anymore
god-emperorhood or smth
Idk either, just joined
Have you ever seen Harry Potter?
that must be true
then he's lying
it will eventually grow somehow i guess
IDK
idk either
no smelling any roses with that nose
He's a mouth-breather
lol
Idk what i expected to hear here
but im sure it wasnt politics
π€ ...it was interesting
Is that why they send postcard in the movies?
You guys have one friend?
Yup it costs less to send postcards internationally that way
CAD Sketcher is a free and open-source project looking to enhanceΒ precision and parametric workflows in blender by bringing CAD like tools, features and usability to blender.
- = Alfonzie
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
there is nothing concrete about issues with snap in that post
I have had issues with Jetbrains IDE - but the issue was the fact it was storing its config in funky places
but that was just because I didn't know how snap fucked messed with filepaths
Let's Benchmark! Get Surfshark VPN at https://Surfshark.deals/TECHHUT and enter promo code TECHHUT for 83% off and 3 extra months for FREE!
We're going to be focusing on flatpaks, snaps, and appimages. All of these have the benefit of being independent from your Linux distribution, meaning that no matter what version or distribution of Linux we...
draw call test:
general browser graphics benchmark
https://i.laundmo.com/tENe0/NOTEGUKA29.png
@zenith radish
with 3d symbols enabled you ould make a box around it
you need to export the model as a vrml from kicad, which will export a wrl file
then do import wrl in blender
Hello all
Voip sistem to Asterisk
@sonic hatch u working on Python?
is anyone in voice chat 0 able to help me with dictionary in python for my college assignment? I am stuck breaking down a text file to extract the information I need
What's got you stuck
Example:
Example. For a scifibookfavorite.txt file containing:
2 Alone Against Tomorrow --Ellison, Harlan
2 Agent of Vega --Schmitz, James H
2 A Mirror for Observers --Pangborn, Edgar
2 A Midsummer Tempest --Anderson, Poul
2 A Knight of Ghosts and Shadows --Anderson, Poul
2 A Gift from Earth --Niven, Larry
2 A Fine and Private Place --Beagle, Peter S
1 A Connecticut Yankee in King Arthur's Court --Twain, Mark
The expected output is (EXACTLY):
Anderson: 2 books with 4 total nominations
Beagle: 1 book with 2 total nominations
Ellison: 1 book with 2 total nominations
Niven: 1 book with 2 total nominations
Pangborn: 1 book with 2 total nominations
Schmitz: 1 book with 2 total nominations
Twain: 1 book with 1 total nomination
@rugged root Can i call u and screen share?
#file = open("scifibookfavorites.txt", "r");
file = open("tet.txt", "r");
#text = file.read().split('\n');
text = [];
for line in file:
if line == '\n':
break
else:
text.append(line);
scifi = {};
lastnames = [];
for x in text:
y = x.split("--", ',');
for last in y:
z = last.split(',');
print(z);
#lastnames.append(z[1]);
I mean for right now, what is the exact issue you're having
Also, easier if you use the Discord highlighting
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
oh
Just makes it a bit cleaner to read
so, I got each line saved in a list. Now I need to seperate by the -- and the common
comma
I want to split a list consisting of ['2 Alone Against Tomorrow --Ellison, Harlan '] into ['2', 'Alone Against Tomorrow', 'Ellison']
So I would use .readlines() and iterate over that
So something like for line in file.readlines():
That'll let you handle it one line at a time
#file = open("scifibookfavorites.txt", "r");
file = open("tet.txt", "r");
#text = file.read().split('\n');
text = [];
for line in file:
if line == '\n':
break
else:
text.append(line);
scifi = {};
lastnames = [];
for x in text:
y = x.split("--", ',');
for last in y:
z = last.split(',');
print(z);
#lastnames.append(z[1]);
thats everything I got
It's the backtick `. On US keyboards, it's on the same key as the ~ tilde next to 1 on the number row
There we go, yeah
Trying to figure out a way to explain without just giving the answer
would voice call be easier?
Not really
ive been stuck for the past 5 hours and my prof wont do office hours even tho he assigned it to be today on zoo,
zoom lol
hmm
what is a command i should look into?
ive tried nesting for loops together
and splitting it multiple times
with open("mahfile.txt") as file:
for line in file.readlines():
...
So that's what I'd do for the reading file. This way you're not having to manually track the new lines and pack them
This will just feed you the lines one by one, and will keep going until there are no more lines left
Yeah, I am on that track
You also won't need nested loops or anything
I am just stuck on how to break the line up with split with two characters
i love your comms
Yep, so
Sure, one sec
they must be, otherwise you couldn't lookup
@rugged root I tried using re.split() but i couldnt get the parameters right any tips
i tried:
file = open("tet.txt", "r");
text = [];
for line in file:
if line == '\n':
break
else:
line.re.split('--', file, ',', file);
I also need to import re
file = open("tet.txt", "r");
text = [];
for line in file:
if line == '\n':
break
else:
re.split('--', line, ',', line);
print(line);
I tried that and I got an error
TypeError: unsupported operand type(s) for &: 'str' and 'int'
!e
final_group = []
spam = "Bacon is great! Although, I prefer spam"
ham = spam.split("!")
pork = ham[1].strip().split(",")
final_group = [ham[0], *pork]
print(final_group)
@rugged root :white_check_mark: Your 3.10 eval job has completed with return code 0.
['Bacon is great', 'Although', ' I prefer spam']
@rugged root lets fricking go
I got the last name lol
Idk why i tried the exact same thing but using a nested loops lol
now I gotta make a dict with last name: [first integer in the line, title of book]
let me try it my self
!e ```py
source = "Bacon is great! Although, I prefer spam"
bacon, leftover = source.split("!")
although, spam = leftover.strip().split(",")
spam = spam.strip()
print(bacon)
print(although)
print(spam)
@faint ermine :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Bacon is great
002 | Although
003 | I prefer spam
!e ```py
a, b, c = ["aaa", "bbb", "ccc"]
print(a)
print(b)
print(c)
@faint ermine :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | aaa
002 | bbb
003 | ccc
!stream 516815919272427522
β @south bone can now stream until <t:1663619070:f>.
is it possible to have a dictionary key like this: key : [int, str]?
a key to call a integer or a string
Yep!
are dictionaries also like sets? you cant have multiple keys with the same name?
jk u cant
Ok another question lol
I can set up the key and dictionary now, I understand and broke it down
!e ```py
a = {1: 2}
b = {(a, 2): "d"}
a[3] = 5
print(b)
@faint ermine :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: unhashable type: 'dict'
but the next problem I have is figuring out when I have a duplicate key (author last name) who has different books (string) and different number of nominations per book (integer), would I have to do a for loop search to check each line for a key with the same last name and then add the nominations together and append the new book title?
2 Alone Against Tomorrow --Ellison, Harlan
2 Agent of Vega --Schmitz, James H
2 A Mirror for Observers --Pangborn, Edgar
**2 A Midsummer Tempest --Anderson, Poul
2 A Knight of Ghosts and Shadows --Anderson, Poul **
2 A Gift from Earth --Niven, Larry
2 A Fine and Private Place --Beagle, Peter S
1 A Connecticut Yankee in King Arthur's Court --Twain, Mark
ok bet
something like a nested loop tho
cus i have to check for authors name in every line
get?
getkey
.get()
bet
.get(girls)
bet ty, ill look into that command
@silent sequoia love u bb
anyone here a mechanical engineer lol
π¦
does anyone have any tips for appending a dictionary?
i tried:
file = open("tet.txt", "r");
scifi = {}
for line in file:
if line == '\n':
break
else:
x = line.split('--');
y = x[1].split(',');
print(y[0]);# last name
noms = x[0].split(' ');
#int(noms[0]); #gets nomination as a number
scifi.append{y[0] : [int(noms[0]), 5]};
My dog when I code, must be nice being that relaxed lol
@snow cedar #voice-verification will tell you what you need to know
file = open("tet.txt", "r");
scifi = {};
for line in file:
if line == '\n':
break
else:
x = line.split('--');
y = x[1].split(',');
print(y[0]);# last name
noms = x[0].split(' ');
#int(noms[0]); #gets nomination as a number
scifi[y[0]]: [int(noms[0]), 5];
Well shit. My headset is breaking
epic
my spare laptop screws fit perfectly in my potentiometer
for x in list pop(' ')
!e
l = [" a ", " ", "c"]
print([c.strip() for c in l])
@quasi condor :white_check_mark: Your 3.10 eval job has completed with return code 0.
['a.', '', 'c']
titles = [x.strip(' ') for x in titles]
file_obj = open("nsfw.txt", "r", encoding='utf-8')
file_data = file_obj.read()
file_data_list = file_data.split(",")
nsfw_list = [x.strip(' ') for x in file_data_list]
file_obj.close()
file = open("tet.txt", "r");
scifi = {};
for line in file:
if line == '\n':
break
else:
x = line.split('--');
y = x[1].split(',');
print(y[0]);# last name
noms = x[0].split(' ');
title = noms.copy();
title.pop(0);
title = [x.strip(' ') for x in title]
#int(noms[0]); #gets nomination as a number
scifi[y[0]] = [int(noms[0]), 5];
The Yeomen Warders of His Majesty's Royal Palace and Fortress the Tower of London, and Members of the Sovereign's Body Guard of the Yeoman Guard Extraordinary, popularly known as the Beefeaters, are ceremonial guardians of the Tower of London. In principle they are responsible for looking after any prisoners in the Tower and safeguarding the Bri...
Find upper bound for f(n) = n^4 + 100n^2 + 50
def check_guess(guess, answer):
global score
still_guessing = True
attempt = 0
while still_guessing and attempt < 3:
if guess.lower() == answer.lower():
print("Correct Answer!")
score = score + 1
still_guessing = False
else:
if attempt < 2:
guess = input("Sorry Wrong Answer, try again...")
attempt = attempt + 1
if attempt == 3:
print("The Correct answer is ")
@rugged root
@rugged root what does it mean when a job offer lists this as a requirement:
Able to be part of a week-long on-call schedule once in a while
while not isinstance(rounds, int):
what's on-call schedule?
On-call means that they can call you to do work any time
aha
"On-call" means that you're only a call away
this is mixed remote and live
And if it's a physical job, then availability to go to those places, but it shouldn't stop you from doing things in most cases
aha
while True:
try:
rounds = int(input("Best of: "))
break
except ValueError:
print("Please only enter integers")
class Student:
def __init__(self, name, age, favorite_subject):
self.name = name
self.age = age
self.favorite_subject = favorite_subject
def introduce(self):
print(f"Hi! I'm {self.name} and I'm {self.age} years old. My favorite subject is {self.favorite_subject}.")
sally = Student("Sally", 8, "science")
billy = Student("Billy", 7, "math")
print(sally.name)
print(billy.age)
sally.introduce()
billy.introduce()
Student.introduce(sally)
1 argument is being sent in sally.introduce()
"There's too much blood in my caffeine system" - Hemlock 2022
!e ```py
class MyClass:
def get_self(self):
return self
instance = MyClass()
print(instance is instance.get_self())```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
True
hello world.echo
``` ?
"Hello, World!".echo()
Thanks
does this print hello word ?
in the Nim programming language, yes
oh I see Isee
@whole bear Link the name of the book?
btw how do you make your messages appear code like
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
or you can do it inline `like this` like this
### Super Hero question ###
def What super her mix would you like the best?:
if you mixed ("The Hulk"), with (" Wonderwoman "):
elif would we get the best wiping Peter Griffin ever:("?")
print (" Post what super hero mix you would like to see below and why it would be so awesome.")
I don't see them in the channel. Probably a client bug for you
@whole bear my favourite command man man
yeah techna told me to refresh
contribute
contraybute
@uncut meteor how do you say this word
maf
and @cobalt fractal
schematic
Shouldn't it be mathS as in mathematicS?
mafemafics
indeed.
I say both con-tribute and contra-bute
@whole bear please send here too
OpenAI Codex is the follow-up model to Github Copilot. OpenAI Codex is a GPT based model that generates code. In this video we test if it an write AI / ML code in Python. As it turns out, it works fairly well even for machine learning code!
Next video on OpenAI Codex: https://youtu.be/FC962DmVfSU
Link to API post: https://openai.com/blog/openai...
A quine is a computer program which takes no input and produces a copy of its own source code as its only output. The standard terms for these programs in the computability theory and computer science literature are "self-replicating programs", "self-reproducing programs", and "self-copying programs".
A quine is a fixed point of an execution env...
basically bacteria
Aren't we all?
DID YOU KNOW DARUDE STREAMS ON TWITCH?
Watch live streams on https://Twitch.tv/Darude !
βIN DA STUDIOβ
Music production - Mondays (Schedule TBA)
- Darude live streaming making music, playing music, talking about production techniques & gear.
βDIAL IT INβ
Just chatting - Wednesdays (Schedule TBA)
- Peer, industry insider & friend calls and fan...
Taken from the album ββ β available on all platforms: https://BecauseMusic.lnk.to/Justice
Subscribe to the channel: http://bit.ly/JusticeChannel
Listen to the essentials from Justice here: https://lnk.to/JusticeEssentials
Justice : Gaspard AugΓ© and Xavier de Rosnay
Official website β https://justice.church
Follow Justice:
Facebook: http://...
!stream 489485360645275650
β @silent sequoia can now stream until <t:1663686934:f>.
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i need about 30 more messages
!voice
awfully quite here
yeah ima go do a coding project then
oh, I am on the same challenge...
but it seems like you improve quite fast @swift olive π
i just speak a lot so i dont spam
i'm starting small with a presonal music app
so it has use
Neat
you?
Well I KIND of have a project in my mind but I don't know if it'll be viable
make it something you will use a lot like a checker or music or idk i just want my music
It's going to be a random game picker
when you object they will hear you then kick you out
I've got like.... far too many video games
And there's no easy way to just spin a wheel and pick one
i just play terraria and apex so 50% chance
so russian rulet
nice so the winner lives this time
wait i just looked at the roles and saw your a admin
No, you're fine
Context made sense
@rugged root Nobara
from JJK π
whenever @quasi condor shows up I am tempted to go make myself a cup of coffee or chai
you should
Its your profile picture i swear
What's the question?
its hard to explain over text but im trying to get an external program to run
What are you trying to do over all
This exists. So we're taking a look at it.
Download: https://uwuntuos.site/
β Gear I use to make these videos: https://www.kit.co/mjd
Camera: https://amzn.to/3ipyKc5
Tripod: https://amzn.to/3pqxycn
Microphone: https://amzn.to/35UbkXb
Editing Software (Premiere): https://amzn.to/39kawfS
Thumbnail Editor (Photoshop): https://amzn.to/3lVqVN6
β Af...
yup
lunar3DS?
im trying to troll my lil cousin lmao
Ah, we're not helping with that then
We're not going to help someone be a jerk
i only mod to have fun in private games 
oh
Bois D'Arc
OK tnx
Why
Is that his ID?
Why
"Goes by Scrub Lord"
No no, sorry. I mean why did you ask initially whether I remember him
Actually as u know his parents were iranian
I had a question to ask him
Do you know his new ID?
Once he changed his ID to "Not Mr Hemlock"
Suggestion. Hang around for long enough until you cross paths.
Not entirely sure why the Iranian part is relevant
Because I am Iranian
it sounds like a voice chat for dads when i just entered
I wanted to ask some question s about immigration to Canada
Dad jokes, yes. A number of regulars are parents.
oh
You can google them? their website is quite helpful I found
im not even 18 yet
gasp a child
bruh
Common enough.
Because he has borned in Canada and now he lives in Iran
@rugged root
Is that crystal clear?
π€£
It is, but you might have an easier time getting that kind of info in #career-advice
Not to mention more details about how that would work with getting a job
Pretty sure Swzzy a kid and doesn't have one
Jen Yun.
That's actually kind of neat
GTG have a good one all o/
Parody of the Fear Mantra from Dune:
I must not fear.
Fear is the mind-killer.
Fear is the little-death that brings total obliteration.
I will face my fear.
I will permit it to pass over me and through me.
And when it has gone past, I will turn the inner eye to see its path.
Where the fear has gone there will be nothing. Only I will remain.
your boss is not your friend- more workplace motivation from alternative life coach Self-help Singh.
myprogram.bat
cd "C:/path/to/project/folder"
py main.py
i cant even taste beer yet
anyone used docker before?
can anyone think of any cool projects i could make to get used to this technology and could be part of it?
setting up services you would like to use is a good practice and you also get something out of it
could i have different services for a website? or not complex or monolithic enough?
heres a list of things you could look through find something you want to set up, most have a docker option https://github.com/awesome-selfhosted/awesome-selfhosted
he just has a short neck guys
π’
Metrodox Studio Production / Cubase 5
Vocals dy MagnaCarta80
http://www.youtube.com/user/MagnaCarta80
hey can anyone explain why when I create an object that is not hawk it automatically executes print("what ?")
!e ```py
class A:
print("Defining the class")
def init(self):
print("instatiating the class")
def method(self):
print("method called")
print("defining done")
A()
A()
a = A()
a.method()
@faint ermine :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Defining the class
002 | defining done
003 | instatiating the class
004 | instatiating the class
005 | instatiating the class
006 | method called
just to show what happen in various places in the class
where should i start learning python , should i go with qazi or freecodecamp
Not sure honestly. Haven't used either
We have a bunch of recommended resources on our site:
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
howdy I did the $30 code with mosh class and it is awesome!
The only critique I'd say is there needs to be more homework/exercises to implement what you just learned
import os
import time
import string
import random
os.system('cls')
pass_length_verify = []
special_chars = ['!', '@', '#', '$', '%', '^',
'&', '*', '(', ')', '?', '>', '<', '`', '~']
for y in range(6, 43):
pass_length_verify.append(str(y))
print("###############################################################\n")
print("###### PASSWORD GENERATOR ######\n")
print("###############################################################\n")
time.sleep(1.5)
print("How long would you like your password to be?")
print("*Password must be between 6 - 42 characters*")
while True:
user_input = input(">: ")
if user_input in pass_length_verify:
# name = True
os.system('cls')
print("###############################################################\n")
print("###### PASSWORD GENERATOR ######\n")
print("###############################################################\n")
time.sleep(1.5)
break
else:
print("\nYOU MUST INPUT A NUMBER BETWEEN 6-42. PLEASE TRY AGAIN\n")
print("\n")
print("Generating your password...")
print("\n")
time.sleep(2)
user_input_int = int(user_input)
passw = ""
for x in range(1, user_input_int):
y = random.choice([random.choice(string.ascii_lowercase),
random.choice(string.ascii_uppercase),
random.choice(special_chars),
random.choice(range(0, 10))])
passw += str(y)
print(f"Your {user_input_int} char length password is...")
time.sleep(.75)
print(passw)
print("\n")
a small password generator
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Sir, for Open Redirection/URL Manipulation, is Python is the only option or other language is also there?
james "the butcher" π
Explore the most popular first names in the world.
hm?
#include <stdio.h>
int main(void) {
int arr[5];
for (int i = 0; i < sizeof(arr)/sizeof(arr[0]); i++)
arr[i] = i * 2;
for (int i = 0; i < sizeof(arr)/sizeof(arr[0]); i++)
printf("%d\n", arr[i]);
return 0;
}
Generally recommended to store the size separately, this can bite you in the ass
Especially when arrays are being passed around
array[index1:index2]
I felt the presence of bad C code, had to join
And somehow it wasn't me!
I suppose if I am doing reallocation stuff
Real C programmers do i[arr]
lmao it's so stupid
Rust:
exclusive: 0..5
inclusive: 0..=5
range(start, end) -> [0, 0, 0...] // length of end-start
for let i = start; i < end; i += i {
...
}
do that with your fancy pants programming languages
How's homophobia going
I haven't worked on it in a long time because of my compiler
Did I miss something?
(0..10).step_by(2)
With step, I highly prefer the range
note: step_by is a function of the Iterator trait which the range implements, not specific to the range syntax
call().(|err| { print(err) }); is bad
call().((err) -> { print(err) }); is better
no unique operator that's only used for something
call().(fn (err) { print(err) });
call().(fn (err) πΉ { print(err) });
call().(fn (err) |> { print(err) });
!charinfo |
\u007c : VERTICAL LINE - |
@zenith radish
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
let (thing1, thing2) = ("test", 5);
Ooh yes me like anonymous structs
Join the discord server:
https://discord.gg/Ap2sf3sKqg
@mild quartz
get back in here for a sec pls
need advice with CV AI
Is there a way that I as an individual can have apple/samsung level of picture/video processing using openly available ML models/techniques?
what processing exactly do you want
I guess this stuff for a start
Can I achieve what smartphones have in terms of image/video processing?
um
all but the most advanced should be possible
but not necessarily plug and play
like u can use open source to train an image recognition model
the same open source tools as apple
but the details will be closed source
I don't care that much about recognition
I care about making a video stream look better
I want to process the video streaming coming from the image sensor
In the same regard that modern smartphones do it
C and C++ is security risk
sry that was silly of me i guess lol π

