#voice-chat-text-1
1 messages · Page 117 of 1
that's why.... it might be wrong
algorithm will never halt
if there is some number for which collatz is not true
@cold trellis
I was joking!!!
@cold trellis https://youtu.be/uNjxe8ShM-8
Video highlighting my research on PowerPoint Turing Machines for CMU's SIGBOVIK 2017
Read the paper:
http://tomwildenhain.com/PowerPointTM/Paper.pdf
Download the TM:
http://tomwildenhain.com/PowerPointTM/PowerPointTM.pptx
Original video (without live background noise):
https://youtu.be/sdkxWqsk17c
Please check out my other videos for (slight...
It's funny!! watch it
what can I do to@fierce summit🙃
@true valley can you do an all nighter in the library with me?
what can I do to help you slay? @fierce summit !! and what are we slaying!
can someone tell me whats wrong with this code please?
File "c:\Users\furio\Documents\Code\Python\automate.py", line 18, in <module>
user_input(user)
File "c:\Users\furio\Documents\Code\Python\automate.py", line 12, in user_input
collatz(input)
File "c:\Users\furio\Documents\Code\Python\automate.py", line 2, in collatz
if number % 2 == 0:
TypeError: unsupported operand type(s) for %: 'builtin_function_or_method' and 'int'
PS C:\Users\furio\Documents\Code\Python>
what's the error? @wet panther
thats the error
range should be (small number, big number)
what's the input you are giving?
but i already define that
only integer
show me that...
random_number = random.randint(int(user_min_input), int(user_max_input))
input!!
user_min_input = input()
user_max_input = input()
oh
the max number and the min number for the range
the need to answer this
and then i switch the string to integer
@true valley number = int(input())
ohhhhh thanks i get it now its working
😂 I was telling that to furyo
@fierce summit ctrl + c to halt the program 😂 😂 ... it's an infinite process
thanks ;>
@true valley that's not how it works
@true valley it reaches infinity ... it's never infinity
SORRY TO INTERRUPT
so basicly what i was need to do is just to define that you can only enter an integer input ?
Division by zero makes NO SENSE at all Mathematically
@true valley infinity is not a number!!
@true valley nothing is forever pretty boy
What makes sense is taking (limits)
So when we say 1/0 is ♾️
What me mean is
can someone can discard my mute?
?
steel on mute
!voiceverfiy
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@true valley eastern time?
can you come to the library and pull an all nighter with me?
@cold trellis she must make good chapatis
fuck programmer
@cold trellis you are adding constraints... the subset is getting smaller
@cold trellis so people who are asexual dont like food?
you dont value subji?
alo gobi
man reaper dosent eat indian food
only noodles
You said youre trying to pick a wife
and you said programmer...
🤣
😆
Actually @cold trellis , you sound more Afrikan like
reaper you dont like food enough
youre crazy
i would eat punjabi food everyday if i could
nah
im just saying
some stuff must be valued
nah reaper i suck
i cant cook
nah takeout is terrible for your health
id rather die
noodle
i like to go to the sikh temple
to get langar
i will never deprive myself
thats not in my genes
but its not buffet food
its reallllll food
cooked in big ass pots
reaper youre crazy
i better not see your ass in amritsar
indian ladies are good cooks
they have that cook game on lock
@true valley how do you define asia?
😆
im hungry
im going to go make some food
well not make
but im going to grab something
Russia is too big to be one culture
Eurasia () is the largest continental area on Earth, comprising all of Europe and Asia. Primarily in the Northern and Eastern Hemispheres, it spans from the British Isles and the Iberian Peninsula in the west to the Japanese archipelago in the east. The continental landmass is bordered by the Atlantic Ocean and Africa to the west, the Pacific Oc...
@fierce summit if i ate pastries would you look down on me?
its unhealthy man😆
because man
im fucking my body up
more to love bb
while true; do clear; python3 '~/Desktop/test/lambda.py'; done @crystal aurora taught me this!! @cold trellis
yeah
got you..
@cold trellis can you make me an audiobook?
but what don't you use bash... @cold trellis ... easier to switch around with devices
yeah.. bash scripting suck...
I usually just use python, instead of bash for scripting
@cold trellis
okay
try bat @cold trellis it looks nice
cat alternative
@nimble axle :white_check_mark: Your eval job has completed with return code 0.
You need magic powers
are you serious
@fierce summit statement is declaration
yeah
+= is addition to itself @fierce summit
concat is adding any two strings
concat is an operation that takes two string and gives new string @fierce summit
because we use numbers for integers literals @fierce summit
@cold trellis JAVA!!!!!! isn't it a strongly typed lang
GOD
Another reason... why I don't like java @cold trellis
!e
print(True + True)
@twilit leaf :white_check_mark: Your eval job has completed with return code 0.
2
@twilit leaf :white_check_mark: Your eval job has completed with return code 0.
False
@cold trellis
@cold trellis I don't know why... decimals are very slow... I tried
math.isclose
@cold trellis we can write a rational numbers class
I always wanted to write that... I'll tommorow
sure
@fierce summit operators means ... it takes two bool and gives bool
Bye guys... Gotta Sleep
night bb
JuanAcademy
ty noodle
@fierce summit look at screenshare 🙂 showing you partials
its basically a version of the function where some argument is already given
80–90% vaccine efficacy
is nobody talking? lol
Hi how are you ?
yoooo
@high scarab can you get @misty sinew streaming perms
!stream 95175136319115264
✅ @misty sinew can now stream until <t:1648676659:f>.
I might be back later, but gotta take care of the dogs
float func(int a, int b, int c)
int f1(int a, int b) { ... }
int f2(int a) { ... }
int some_func(callable f) {
return f(5);
}
int main() {
if (some_user_input == 1) {
return some_func(f1);
} else {
return some_func(f2);
}
}
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
If you're wondering, "Βέστερ" is "Vester" written with Greek letters
^
os.system("say nom")
!voice @molten niche
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Ooh, is this Co-Pilot?
.color rgb 255 255 255
An AI that makes AIs 👀
Start typing def min_value 🤔
And it might auto-complete with minimax search.
If you nudge copilot in the right direction, it works pretty well.
@clever cedar #voice-verification
@pale pivot it says I have to be in the server for 3 days
can I priv vc you?
no, please don't call me privately
ok
until you get voice permissions you can use the text channels
ok!
Dock, Vester 😄
Powers gone, gn all
It's "artisan"
Erm, I'm heading off too, cya 👋
you want to teleport the snake to the opposite side when moving through wall right
okay
cool
hi
Hi
Moss introduces Jen to a new concept in business technology: The Internet. Subscribe for more The IT Crowd clips and episodes! http://www.bit.ly/SUBSCRIBE_THEITCROWD
WATCH More Bonus Clips The IT Crowd here: http://bit.ly/BONUS_CLIPS_ITCROWD
!e
my_list = [3, 2, 6, 9, 54, 7, 1, 8, 0, 11, 4, 5, 10]
odd_index_list, odd_list = [], []
for i, num in enumerate(my_list):
if num % 2 == 0:
continue
odd_index_list.append(i)
odd_list.append(num)
odd_list.sort()
for num in odd_index_list:
my_list[num] = odd_list.pop(0)
print(my_list)
@umbral rose :white_check_mark: Your eval job has completed with return code 0.
[1, 2, 6, 3, 54, 5, 7, 8, 0, 9, 4, 11, 10]
Hey Chris!!
Hey
Good, how about you?
odd_n = sorted([i for i in n if int(i)%2==1])
n2=[]
x=0
for i in n:
if i == 0 :
n2.append(i)
elif i%2==0:
n2.append(i)
elif i%2==1:
n2.append(odd_n[x])
x += 1
return n2
u_input = [1,9,8,6,5,4,7,3,1,2,6,0]
print(sort_array(u_input))
Wanna teachme some stuff?
Can you help me and teach me nested loops?
yea if you dont mind?
Okie....
How long do you know?
Ok... i will do my project rn ig...
np
oh im back
hello?
hey whats up
Im good
ohrip
are u a dad?
Or what is it
Oh really
omg
how old are they
must be great
omg
I want kids so badly
😭
Do you work from home?
Where u wokr if u dont mind me asking?
oh you do?
Oh thats great....
Really?
Like what programs?
Ohh ok...
Whats it called?
I might check it out?
Whats that
i have no clue
😂
lol
okok
Oh...
Makes sense
How much does it cost?
hmm makes u quite a bit?
thats good
passive doing nothing
yea thats good
and u made it for free
so all 100% profits?
thats good.
what does it do?
Ohhh
Thats sick
Do you work for any programming company?
Thats cool from the game it self?
thats nice
Do you work for any programming companies at the moment or want to get any?
like where?
Anywhere?
Whats stopping you though?
jw
really?
then
what do i do
;-;
I am trying to major in computer science
one of my fears is not getting ajob
Hey opal!
So did you wanna teach me nested loops Chris?
Thanks, let me know when you are free im listening
just teaching it
idk
;-;
hey
my_list = ["Hello!", "This", "is", "a", "test"]
don't worry about that it's easy
So just print them out?
Without the brackets?
and stuff?
Ok, in a line or seperate?
oh okok
yea one second
nah
ill doe each
one seocnd
leme install vs code first
lol
I kinda deleted it by mistake lol.
give me a secnod
idk so i got a new laptop and im switching laptops constantly cause my laptop broke
:-;
so now im getting myt laptop
so now i have to do it 3 more times
its all over the place
almost done
what are the best extension for vscode for python?
windows key, cmd, enter, "python", ... 😉
wyat it do?
yeah pycharm is the way
hey I'm just wondering how do you guys deal with threading and async in python?
and generally performance
go ahead
nvm i think i got it
lol
Ok im done chris
where do i put it
jhere?
This is for each list new line
!e
print(*my_list, sep='\n')```
!e
print(*my_list, sep='\n')```
@lime badger :white_check_mark: Your eval job has completed with return code 0.
001 | Hello!
002 | This
003 | is
004 | a
005 | test
also I tried to use something like pygame and it looks like it can't run on an secondary thread because it's not thread safe...
This is for one line
print(*my_list, sep=" ")```
oohh
rip
;-;
oh yea
lol
uhhh
hwo do i do that
I dont know that...
yeah
!e
print(*my_list, sep=" ")```
@lime badger :white_check_mark: Your eval job has completed with return code 0.
Hello! This is a test
Bam
can u just showme loops and teach me loops first
then we will come back to the same question?
its unpacking variable
the astrix
Yea ort that
!e
print(*my_list, sep=", ")```
@lime badger :white_check_mark: Your eval job has completed with return code 0.
Hello!, This, is, a, test
ight it was nice hopping on gtg
I found about this like in the morning when i was doing research lol
So i know that it unpacks the vairable and prints it
🙂
!e py print("a", "b", "c") print(*"abc")
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
001 | a b c
002 | a b c
also, chris can u show me and teach loops to me first then talk about the question?
If you dont mind?
no worriesd im learning too
we can join another call
if ytou wnat?
uhhh
for loop?
cause it came to my mind first
so like its used for lists
would you use
for i in range() stuff right
but idk about a list?
whos talking
im so lost ;-;
meaning?
wdym
how would you do it to an list then?
!e
for character in "This is sparta!":
print(character)
@umbral rose :white_check_mark: Your eval job has completed with return code 0.
001 | T
002 | h
003 | i
004 | s
005 |
006 | i
007 | s
008 |
009 | s
010 | p
011 | a
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/nikimoripa.txt?noredirect
ohhh
!e py for v in 9001: #Nope!: ...
@stuck bluff :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | TypeError: 'int' object is not iterable
so like how would you make a list into a thing that outputs to each line?
its kinda confusing me
iterable meaing?
Oh i think i got
for letter in "I am the iterable":
...```
it
one second
wait
Chris i got the question u said for each line but im not sure how to do it in one line
Sets, lists, strings, dictionaries, tuples, ranges and a number of other things are iterable.
!e
for word in my_list:
print (word)```
@lime badger :white_check_mark: Your eval job has completed with return code 0.
001 | Hello!
002 | This
003 | is
004 | a
005 | test
Cause you said?
lol
hoiw would you do it in one line tho
ya u did
lol
yea but how would you?
for this?
for a loop how do you make the thing print once
only
not like 1000 times
yea im doing it but how do i make it not repeat 1000 times
wdym
what
yea?
Ya, im asking
That, how do i make it in one line cause a for loop keeps going
so itsnot stpooing
!e
for word in my_list:
print (*my_list, sep=', ')
@lime badger :white_check_mark: Your eval job has completed with return code 0.
001 | Hello!, This, is, a, test
002 | Hello!, This, is, a, test
003 | Hello!, This, is, a, test
004 | Hello!, This, is, a, test
005 | Hello!, This, is, a, test
!d print
print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)```
Print *objects* to the text stream *file*, separated by *sep* and followed by *end*. *sep*, *end*, *file*, and *flush*, if present, must be given as keyword arguments.
All non-keyword arguments are converted to strings like [`str()`](https://docs.python.org/3/library/stdtypes.html#str "str") does and written to the stream, separated by *sep* and followed by *end*. Both *sep* and *end* must be strings; they can also be `None`, which means to use the default values. If no *objects* are given, [`print()`](https://docs.python.org/3/library/functions.html#print "print") will just write *end*.
The *file* argument must be an object with a `write(string)` method; if it is not present or `None`, [`sys.stdout`](https://docs.python.org/3/library/sys.html#sys.stdout "sys.stdout") will be used. Since printed arguments are converted to text strings, [`print()`](https://docs.python.org/3/library/functions.html#print "print") cannot be used with binary mode file objects. For these, use `file.write(...)` instead.
so use end?
oik ill see
nope didnt work for some reason
ohhh
oopd
forgot
mbmbmbm
wait
wdym
i am unpacking it
!e py print("Hello", end=" ") print("World")
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
Hello World
wat
oh...
then how
what
word?
my brain
for word in my_list:
print (my_list, sep=', ', end='')
this is brutally wrong
look
yea iknoiw
;-;
😭
idk
it works
it repeats
hmmmm
what does end= meann
like i dont get that
so for this case do I add another line of print?
!e py print("Hello", end="*") print("World")
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
Hello*World
im pretty sure that's just so that the words stay on one line
!e py print("Hello", end="\n") #Default behavior print("World")
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
001 | Hello
002 | World
!e
for word in my_list:
print (word, end=' ')```
@lime badger :white_check_mark: Your eval job has completed with return code 0.
Hello! This is a test

!e py print("a", "b", "c", sep="*")
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
a*b*c
16 but i understand it but idk
i just need elaboration
but it looks like end= does the same tho
!e
print("a", "b", "c", end="*")```
@lime badger :white_check_mark: Your eval job has completed with return code 0.
a b c*
"a*b*c\n"```
*
**
***
****
func(positional_argument, positional_argument, positional_argument, keyword_parameter=keyword_argument, keyword_parameter=keyword_argument)```
!e
print("hello " * 5)
@umbral rose :white_check_mark: Your eval job has completed with return code 0.
hello hello hello hello hello
hmmm
ill try
uhh
so for i in rnage
if i do that
what does the i mena?
like if i have for i in range()
what is i
the i
yea
its range
🙂
0, 11
I think
wat>
why?
oh yea
nvm
yeaaa i remember
like it always starts from 0 forpython
0, 9
!e py print(*range(10)) #Ten values, starting from 0. So 0-9.
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
0 1 2 3 4 5 6 7 8 9
range(stop)
range(start, stop)
range(start, stop, step)```
wait what does start do again sorry
!e py print(*range(5, 11))
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
5 6 7 8 9 10
Yes.
ok ty
and the i?
what does the i do
so for this question
I will do for i in range
I am gogin to ask user for an input
oh....
so immma make 2 for i in range
!e py for letter in "abc": print(letter)
#Equivalent to
letter = "a"
print(letter)
letter = "b"
print(letter)
letter = "c"
print(letter)```
@stuck bluff :white_check_mark: Your eval job has completed with return code 0.
001 | a
002 | b
003 | c
004 | a
005 | b
006 | c
A for loop is a repeated assignment operation to a variable.
I will be back in 5 minutes...
It takes each thing in "abc" and assigns it per iteration to letter.
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@shadow flume
!e
from random import shuffle
def best_sort(lst):
def is_sorted(lst):
for i in range(len(lst) - 1):
if lst[i] > lst[i + 1]:
return False
return True
while not is_sorted(lst):
shuffle(lst)
return lst
print(best_sort([2, 3, 4, 5, 6, 1, 2, 1, 2, 7]))
@umbral rose :white_check_mark: Your eval job has completed with return code 0.
[1, 1, 2, 2, 2, 3, 4, 5, 6, 7]
I have to guys but i will be back in a hour or two if you guys will still be here?
wat
😭
noooo not chrisyy
Ok.... I will be back
lol.
Nice
I'm getting there soon
I was gonnajoin
But now my parents saing to sleep
Thanks, I will talk to you and OpalMist Soon, see ya guys!
Cheers
i need help please
i made this rock paper scissors game, and i dont understand why it shows my for loop first
from random import shuffle
def best_sort(lst):
def is_sorted(lst):
for i in range(len(lst) - 1):
if lst[i] > lst[i + 1]:
return False
return True
while not is_sorted(lst):
shuffle(lst)
return lst
print(best_sort([2, 3, 4, 5, 6, 1, 2, 1, 2, 7]))
ie
from random import shuffle
def best_sort(lst):
def is_sorted(lst):
for i in range(len(lst) - 1):
if lst[i] > lst[i + 1]:
return False
return True
while not is_sorted(lst):
shuffle(lst)
return lst
print(best_sort([2, 3, 4, 5, 6, 1, 2, 1, 2, 7]))
@umbral rose
number_of_rows = int(input("Enter A Number of Rows You Want To Insert: "))
for i in range(0, number_of_rows):
for j in range(0, i + 1):
print("*", end="")
print()```
I did some research and came up with this for The pytimad question....
I just need a little clarification on some parts of this code and it should all be good...
Like why the end="" was used. and what the for j in range(0, i + 1) actually did
hello how are u doing
???????
hey, anyone here speak leet
!e
'''from random import shuffle
def best_sort(lst):
def is_sorted(lst):
for i in range(len(lst) - 1):
if lst[i] > lst[i + 1]:
return False
return True
while not is_sorted(lst):
shuffle(lst)
return lst
print(best_sort([2, 3, 4, 5, 6, 1, 2, 1, 2, 7]))'''
@sleek blaze :warning: Your eval job has completed with return code 0.
[No output]
!e
from random import shuffle
def best_sort(lst):
def is_sorted(lst):
for i in range(len(lst) - 1):
if lst[i] > lst[i + 1]:
return False
return True
while not is_sorted(lst):
shuffle(lst)
return lst
print(best_sort([2, 3, 4, 5, 6, 1, 2, 1, 2, 7]))```
@sleek blaze :white_check_mark: Your eval job has completed with return code 0.
[1, 1, 2, 2, 2, 3, 4, 5, 6, 7]
!e print("hello world!") nice = input("enter name")
@sleek blaze :x: Your eval job has completed with return code 1.
001 | hello world!
002 | enter nameTraceback (most recent call last):
003 | File "<string>", line 2, in <module>
004 | EOFError: EOF when reading a line
Hey guys Can anyone help me identify the number of operands in a source code by hand?
public class Deneme {
public int x;
public int y;
public Deneme(int x, int y) {
this.x = x;
this.y = y;
}
public int x2y2() {
return x * x + y * y;
}
public double Squareroot() {
return Math.sqrt((double) x2y2());
}
public double log2() {
++y;
return Math.log(((double) x) / y);
}
@Override
public boolean equals(Object obj) {
if (obj != null && obj instanceof Deneme) {
return ((Deneme) obj).x == this.x && ((Deneme) obj).y == this.y;
}
return false;
}
}
could anyone with django and htmx experience please help
voice chat!!
:incoming_envelope: :ok_hand: applied mute to @dusty juniper until <t:1648981499:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
I'm going to start a new project on a trading Binance bot, anyone wanna work together?
@cold trellis
Yes
I'm trying to find the channel
I can't speak btw
Says I ain't got perms
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@pale pivot https://turbo.fish/
import xlsxwriter
import pandas
for row in sheet.iter_rows(max_row=6):
for cell in row:
print(cell.value, end=" ")
print()
'my_excel.xlsx'
pip install .............
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
what a heart breaker right there
A sextant is a doubly reflecting navigation instrument that measures the angular distance between two visible objects. The primary use of a sextant is to measure the angle between an astronomical object and the horizon for the purposes of celestial navigation.
The estimation of this angle, the altitude, is known as sighting or shooting the obje...
fluke
Tektronix 2445 vierkanaals 150 MHz oscilloscoop.Deze scope werkt prima, alleen de ventilator maakt soms geluid en is eigelijk aan vervanging toe.Er is
@pale pivot do u have a min
whats up?
im pretty new to python coding and I had a question if you're down to help
(if not its alr i kinda sort of can figure it out)
did you make a help channel?
let me look
Hello 👋
hallo
see ya
see you ^^
@rain lance
pypy
Hi
hello
Do you know python
!d dict.values
values()```
Return a new view of the dictionary’s values. See the [documentation of view objects](https://docs.python.org/3/library/stdtypes.html#dict-views).
An equality comparison between one `dict.values()` view and another will always return `False`. This also applies when comparing `dict.values()` to itself:
```py
>>> d = {'a': 1}
>>> d.values() == d.values()
False
crashed my computer LOL
rip
@halcyon notch That guy/gal who implemented it wanted it
!pastebin
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
#1
out_path = OUT_IMAGE_DIR / "test" / "raw-image" / f"{i}.png"
print(f"Saving raw-image: {out_path}")
os.makedirs(Path(out_path).parent, exist_ok=True)
torchvision.io.write_png(filename=str(out_path), input=pixel_array[0, :, :, 1024:4000].to(torch.uint8), compression_level=7)
#2
y_pred_raw = image_logit_overlay_alpha(logits=y_pred, images=None, cols=keypoint_cols)
y_pred_raw = y_pred_raw.mul_(255).type(torch.uint8).cpu()
out_path = OUT_IMAGE_DIR / "test" / "raw" / f"{i}.png"
print(f"Saving raw: {out_path}")
os.makedirs(Path(out_path).parent, exist_ok=True)
torchvision.io.write_png(filename=str(out_path), input=y_pred_raw[0, ...], compression_level=7)
del y_pred_raw
biriyani
@torpid shale Yo
sup, indian ?
Yup
hyderabadi ?
yes
bye teluguvadu
avunu
how old are you vaadu ?
guess it
25
from PIL import Image
with Image.open("hopper.jpg") as im:
# The crop method from the Image module takes four coordinates as input.
# The right can also be represented as (left+width)
# and lower can be represented as (upper+height).
(left, upper, right, lower) = (20, 20, 100, 100)
# Here the image "im" is cropped and assigned to new variable im_crop
im_crop = im.crop((left, upper, right, lower))
For sure in the right place then
@mild flume i got this dude
import cv2
vidcap = cv2.VideoCapture('big_buck_bunny_720p_5mb.mp4')
success,image = vidcap.read()
count = 0
while success:
cv2.imwrite("frame%d.jpg" % count, image) # save frame as JPEG file
success,image = vidcap.read()
print('Read a new frame: ', success)
count += 1
bye gtg vaadu
ok
f-req
done
🤟
temp = image_t.numpy()
temp = temp[0, 0, ...]
plt.imshow(temp)
plt.plot(xs, ys, "r-")
!stream 906320410382061599
✅ @misty wolf can now stream until <t:1649274484:f>.
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@misty wolf
oh hey
Suggestion me some good areas of studying in IT... besides AL, ML, cybersecurity, web/mobile development
Wdym areas of studying?
certain domain
If you're going to college do compsci if you're self studying just do whatever is interesting to you
not for college
so just do what's interesting to you
Honestly.. I am totally tired from web/mobile development.
AL ML I am pretty bad at math and netowrking.
So no cyber security too..
I wanna what are theres like these.. so I gonna research those areas and focus on something else
You can do operating systems, compilers, graphics, networking, devops
emulator .. ***
@cold trellis dm me if griff joins, I'm gonna go watch Billions
► More Phasmophobia HERE: http://bit.ly/SarkVsPhasmo ◄
I'm like catnip for ghosts.
Social Media:
Twitch: https://www.twitch.tv/themrsark
Twitter: https://twitter.com/sark
Instagram: https://instagram.com/master_sark
Facebook: https://www.facebook.com/MisterSark
Squad:
Diction: https://www.youtube.com/user/EatMyDiction1
APL: https://www.twitch...
sure
TSA Pre-Check Let's goooooooo
Damn
That thing is going to outlive me
I use this
my glasses are the same and i've been wearing these for 10 years
never noticed o- o
@elder wraith Do you remember the conversation we were having about the Excel issues some of our folks were having here? Do you remember what processor or feature you said Windows didn't support?
Windows 10 does not handle 12th generation intel
Right right, thanks
Be right back
This post presents WaveNet, a deep generative model of raw audio waveforms. We show that WaveNets are able to generate speech which mimics any human voice and which sounds more natural than the best existing Text-to-Speech systems, reducing the gap with human performance by over 50%.
Rawdio
so.. isnt there already a cpu algorithm that tries to predict what your going to do.. to align instruction sets.. where if you dont take that fork, it dumps and recompiles it..
Yep, this how Meltdown was able to exploit stuff
im gonna loose my shit at this job..
pull an LP
Guys if you are into leetcoding for interview what should i do if i get stuck on a problem for 2 days , ? see the answer on youtube ??? @misty sinew @random minnow
Sure, look up how to solve it
func<(int,int)->int>
std::function::create_from::args::int::int::to_return::int
std?!function?!create_from?!args?!int?!int?!to_return?!int
method Vector::push(item: void*) {
if (self.size == self.capacity) {
let new_capacity = self.capacity * 2;
let new_data = malloc(new_capacity * sizeof(void*));
memcpy(new_data, self.data, self.capacity * sizeof(void*));
self.data = new_data;
self.capacity = new_capacity;
}
self.data[self.size] = item;
self.size = self.size + 1;
}
Hi all, I'm new to python and I hope someone can help me install pip
I'll be back tomorrow for if I hadn't figured it out
looks like everyone is busy, thanks anyway
int* a, b
int *a, **b
x = *a
A highly configurable auto-marker. Contribute to mustafaquraish/marker development by creating an account on GitHub.
Hey
Hows it going.
I dont know if you came back or something when you were making lunch but I had 2 tests so my bad....
I am good thanks for asking 🙂
I did not
Lol
lol okay 😂
Was playing with the kiddos
Awww ☺️
Nice
We are learning number stsyrems but I don’t really get it
And Functionsi want to learn cause I see it everywhere
Did you have time now?
But don’t know what it is
No worries
No problem
Hi
Can anyone help with a python3 question?
I have a program that is too slow
I want to use a stream rather than a file path in an api called speechbrain.
Does anyone here have experience with stream objects?
Join the challenge or watch the game here.
hi
how goes it?
Join the challenge or watch the game here.
Join the challenge or watch the game here.
Join the challenge or watch the game here.
Join the challenge or watch the game here.
const App = () => {
const [newSearch, setSearch] = useState('')
const [Data, setData] = useState([])
const handleSearchChange = (event) => {
setSearch(event.target.value)
{/*console.log("event.target.value=",event.target.value)
console.log("newSearch=",newSearch)*/}
const partial_url = 'http://localhost:3001/'
axios
.get(partial_url + newSearch)
.then(response => {
{/*console.log('HSpromise ful')
console.log(response.data)
console.log(">>",response.data.capital[0],"<<")*/}
setData(response.data)})
}
return (
<div>
<form>
<input
onChange={handleSearchChange}
/>
</form>
<button onClick={myFunction()}>Click me</button>
</div>
)
}
export default App```
const App = () => {
const [newSearch, setSearch] = useState('')
const [Data, setData] = useState([])
const handleSearchChange = (event) async => {
setSearch(event.target.value)
{/*console.log("event.target.value=",event.target.value)
console.log("newSearch=",newSearch)*/}
const partial_url = 'http://localhost:3001/'
const response = await axios.get(partial_url + newSearch);
setData(response.data);
}
return (
<div>
<form>
<input
onChange={handleSearchChange}
/>
</form>
<button onClick={myFunction()}>Click me</button>
</div>
)
}
export default App```
async*
SInce we are using asynchrnous call.. which means it take some time to get data from server...
which is in axios.get
we are awaiting the value
by using await axios
in to use await the function must be async
so ... async on handleSearchChange
Join the challenge or watch the game here.
Join the challenge or watch the game here.
anyone here to play chess
sure I'll go for a few rounds
void selectionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
size_t locationOfMax;
void *a, *b;
for (size_t i = 1; i < nitems; i++)
{
locationOfMax = 0;
for (size_t j = 0; j <= nitems - i; j++)
{
a = base + (j * siz);
b = base + (locationOfMax * siz);
if ((*cmp)(a, b))
{
locationOfMax = j;
}
}
if (locationOfMax != nitems - i)
{
a = base + (i * siz);
b = a + siz;
swapVal(a, b, siz);
}
}
}
hi all!
void bubbleSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
void *a, *b;
for (size_t i = 1; i < nitems; i++)
{
for (size_t j = 0; j < nitems - i; j++)
{
a = base + (j * siz); // for pointer addition of void* you have to add the size of original data type
b = a + siz;
if ((*cmp)(a, b))
{
swapVal(a, b, siz);
}
}
}
}
public static void selectionSort(int[] array) {
int temp, locationOfMax;
for (int i = 1; i <= array.length - 1; i++) {
locationOfMax = 0;
for (int j = 0; j <= array.length - i; j++) {
if (array[j] > array[locationOfMax]) {
locationOfMax = j;
}
}
if (locationOfMax != array.length - i) {
temp = array[array.length - i];
array[array.length - i] = array[locationOfMax];
array[locationOfMax] = temp;
}
}
}
#include <stdio.h>
#include <stdlib.h>
#include "Sorter.h"
/**
* Sorting Algorithms in C
* (algorithms are found in Sorter.h)
*/
int cmpfunc (const void * a, const void * b) {
return (*(int*)a) > (*(int*)b); // '-' doesn't work cuz both -ve and +ve nums are true in c
}
int main(void)
{
int toSort[] = {1,2,3,4,9,8,7,6,5};
puts("Before sorting:");
for (int i = 0; i < 9; i++)
{
printf("%d ", toSort[i]);
}
//bubbleSort(toSort, 9, sizeof(int), cmpfunc);
selectionSort(toSort, 9, sizeof(int), cmpfunc);
//qsort(toSort, 9, sizeof(int), cmpfunc);
puts("After sorting:");
for (int i = 0; i < 9; i++)
{
printf("%d ", toSort[i]);
}
return 0;
}
Before sorting:
1 2 3 4 9 8 7 6 5
Process returned -1073741819 (0xC0000005) execution time : 2.319 s
Press any key to continue.
a = base + (locationOfMax * siz);
b = base + ((nitems-i) * siz);
void selectionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
size_t locationOfMax;
void *a, *b;
for (size_t i = 1; i < nitems; i++)
{
locationOfMax = 0;
for (size_t j = 0; j <= nitems - i; j++)
{
a = base + (j * siz);
b = base + (locationOfMax * siz);
if ((*cmp)(a, b))
{
locationOfMax = j;
}
}
if (locationOfMax != nitems - i)
{
a = base + ((nitems - i) * siz);
b = base + (locationOfMax * siz);
swapVal(a, b, siz);
}
}
}
public static void insertionSort(int[] array) {
int temp, compareWith;
for (int i = 1; i <= array.length - 1; i++) {
temp = array[i];
compareWith = i - 1;
while (compareWith >= 0 && array[compareWith] > temp) {
array[compareWith + 1] = array[compareWith];
compareWith--;
}
array[compareWith + 1] = temp;
}
}
void insertionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
void *temp, *a;
size_t compareWith;
for (size_t i = 1; i < nitems; i++)
{
temp = base + (i * siz);
compareWith = i - 1;
a = base + (compareWith * siz);
while (compareWith >= 0 && (*cmp)(a, temp))
{
base[compareWith + 1] = base[compareWith];
compareWith--;
}
base[compareWith + 1] = *temp;
}
}
void insertionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
void *temp, *a, *b;
size_t compareWith;
for (size_t i = 1; i < nitems; i++)
{
temp = base + (i * siz);
compareWith = i - 1;
a = base + (compareWith * siz);
while (compareWith >= 0 && (*cmp)(a, temp))
{
// base[compareWith + 1] = base[compareWith];
b = base + ((compareWith + 1) * siz);
memcpy(b, a, siz);
compareWith--;
}
//base[compareWith + 1] = *temp;
memcpy(b, temp, siz);
}
}
for i in range(1, N):
j = i-1
while j >= 0 and arr[j] > arr[j+1]:
swap arr[j] and arr[j+1]
j -= 1
#include <stdio.h>
#include <stdlib.h>
#include "Sorter.h"
/**
* Sorting Algorithms in C
* (algorithms are found in Sorter.h)
*/
int cmpfunc (const void * a, const void * b)
{
return (*(int*)a) > (*(int*)b);
}
// Use this to sort doubles
int dcmpfunc (const void * a, const void * b)
{
return (*(double*)a) > (*(double*)b);
}
int main(void)
{
int toSort[] = {1,3,2,4,9,8,7,6,5};
puts("Before sorting:");
for (int i = 0; i < 9; i++)
{
printf("%d ", toSort[i]);
}
//bubbleSort(toSort, 9, sizeof(int), cmpfunc);
insertionSort(toSort, 9, sizeof(int), cmpfunc);
//qsort(toSort, 9, sizeof(int), cmpfunc);
puts("After sorting:");
for (int i = 0; i < 9; i++)
{
printf("%d ", toSort[i]);
}
return 0;
}
void insertionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
void *a, *b;
size_t j;
for (size_t i = 1; i < nitems; i++)
{
j = i - 1;
a = base + (j * siz);
b = base + ((j + 1) * siz);
while (j >= 0 && (*cmp)(a, b))
{
swapVal(a, b, siz);
j--;
}
}
}
void insertionSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
void *a, *b;
size_t j;
for (size_t i = 1; i < nitems; i++)
{
j = i - 1;
a = base + (j * siz);
b = base + ((j + 1) * siz);
while (j >= 0 && (*cmp)(a, b))
{
swapVal(a, b, siz);
j--;
a = base + (j * siz);
b = base + ((j + 1) * siz);
}
}
}
// Quick sort LOL
#define quickSort(base, nitems, siz, cmp) qsort(base, nitems, siz, cmp)
#define quickSort qsort
int main(void)
{
int toSort[10];
puts("Enter 10 space-separated integers to sort, and press ENTER:");
for (int i = 0; i < 10; i++)
{
scanf("%d", &toSort[i]);
}
int algorithmChoice = 0;
chooseAlgorithm:
puts("Select a sorting algorithm (enter number and press ENTER):\n"
"1. Bubble sort\n"
"2. Selection sort\n"
"3. Insertion sort\n"
"4. Quicksort"
);
scanf("%d", &algorithmChoice);
switch (algorithmChoice)
{
case 1:
bubbleSort(toSort, 10, sizeof(int), cmpfunc);
break;
case 2:
selectionSort(toSort, 10, sizeof(int), cmpfunc);
break;
case 3:
insertionSort(toSort, 10, sizeof(int), cmpfunc);
break;
case 4:
quickSort(toSort, 10, sizeof(int), cmpfunc);
break;
default:
puts("Invalid choice! Try again.");
goto chooseAlgorithm;
}
puts("After sorting:");
for (int i = 0; i < 10; i++)
{
printf("%d ", toSort[i]);
}
return 0;
}
@random minnow come here, so I can ask Qs
with open("dump.hex", "r") as r:
with open("out.bmp", "wb") as w:
for byte in r.read().split():
w.write(bytes.fromhex(byte))
with open("dump.hex", "r") as in_file, open("out.bmp", "wb") as out_file:
for hex_byte in in_file.read().split():
out_file.write(bytes.fromhex(hex_byte))
42 4d 76 02 00 00 00 00 00 00 76 00 00 00 28 00
00 00 20 00 00 00 20 00 00 00 01 00 04 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 80
00 00 00 80 80 00 80 00 00 00 80 00 80 00 80 80
00 00 80 80 80 00 c0 c0 c0 00 00 00 ff 00 00 ff
00 00 00 ff ff 00 ff 00 00 00 ff 00 ff 00 ff ff
00 00 ff ff ff 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 09 00
00 00 00 00 00 00 11 11 01 19 11 01 10 10 09 09
01 09 11 11 01 90 11 01 19 09 09 91 11 10 09 11
09 11 19 10 90 11 19 01 19 19 10 10 11 10 09 01
91 10 91 09 10 10 90 99 11 11 11 11 19 00 09 01
91 01 01 19 00 99 11 10 11 91 99 11 09 90 09 91
01 11 11 11 91 10 09 19 01 00 11 90 91 10 09 01
11 99 10 01 11 11 91 11 11 19 10 11 99 10 09 10
01 11 11 11 19 10 11 09 09 10 19 10 10 10 09 01
11 19 00 01 10 19 10 11 11 01 99 01 11 90 09 19
11 91 11 91 01 11 19 10 99 00 01 19 09 10 09 19
10 91 11 01 11 11 91 01 91 19 11 00 99 90 09 01
01 99 19 01 91 10 19 91 91 09 11 99 11 10 09 91
11 10 11 91 99 10 90 11 01 11 11 19 11 90 09 11
00 19 10 11 01 11 99 99 99 99 99 99 99 99 09 99
99 99 99 99 99 99 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 90 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 99 11 11 11 19 10 19 19 11 09
10 90 91 90 91 00 91 19 19 09 01 10 09 01 11 11
91 11 11 11 10 00 91 11 01 19 10 11 10 01 01 11
90 11 11 11 91 00 99 09 19 10 11 90 09 90 91 01
19 09 91 11 01 00 90 10 19 11 00 11 11 00 10 11
01 10 11 19 11 00 90 19 10 91 01 90 19 99 00 11
91 01 11 01 91 00 99 09 09 01 10 11 91 01 10 91
99 11 10 90 91 00 91 11 00 10 11 01 10 19 19 09
10 00 99 01 01 00 91 01 19 91 19 91 11 09 10 11
00 91 00 10 90 00 99 01 11 10 09 10 10 19 09 01
91 90 11 09 11 00 90 99 11 11 11 90 19 01 19 01
91 01 01 19 09 00 91 10 11 91 99 09 09 90 11 91
01 19 11 11 91 00 91 19 01 00 11 00 91 10 11 01
11 11 10 01 11 00 99 99 99 99 99 99 99 99 99 99
99 99 99 99 99 90
This tutorial explains how to create and modify a bmp file with an hexadecimal editor. An Device Independant Bitmap (DIB) picture can be created with Paint, or pixel per pixel, with an hexadecimal editor...
@stuck bluff https://www.youtube.com/watch?v=lCJnTEcWtLk
The Wowgo Mini 2 is a new affordable electric shortboard that has a nice-looking design and a premium polish to go along with it. It should probably be the first consideration for anyone looking to buy an electric shortboard, and here's why.
Wowgo Mini 2 (use link below and code: "ESKATEHQ" to get 5% off)
https://www.electricskateboardhq.com/wo...
@wary schooner https://www.youtube.com/watch?v=aDdOchBejcc
love me some shawarma
shawarma great actually I like it more than a burger
but recently i found out carbs and gluten screws with my brain
so i can't have any now
yeah shawarma is banger
i've also heard of celiac disease, which is like a really severe reaction of the body when you eat gluten
and some people don't know they have it, they feel awful all the time
because bread is everywhere
Right, but that's more an intestinal tract thing than a brain thing, as I understand it.
I've a friend who has it super bad.
from what i've understood the whole body gets affected with inflammation, as well as the brain
but i might be wrong
that sucks
Mm. The smallest amount and it knocks her down for 6 months.
yeah, i get that too but i get fuked up for 3-4 days
i ate some pasta at my grandpa's house and i felt horrible 3 days after that dinner
stoopid
@charred creek I'll try and get a pr for this at some point to you, I am going to head for now
People do stupid things. News at 11.
i'm stoopid
Intermittent short term is fine.
ite
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Dare you risk the consequences?
That is the correct answer.
Are you, though?
any doubt
What does that entail?
So you said.

What's your schtick with Python?
tbh nothin for now
Unrelated, but I've always liked using "schtick"
I don't know why, I guess I just heard it once and it's schtuck
lol
i can't even stream
am sheeps now
ou i see
i see now
ye i understand
so we can't fun stream
ye
ig it should be 50 msgs by now
ou ic
mb mb
lollol
nooo stoppit
lol
it may come under spamming
i have a question
does it really matter when companies ask bout why you took a gap year or pause
sadge
ye
tbqh i jus finished my hs last month
ou i see
ye it makes sense
i was thinking bout learning blender
how bout it
can't really hear you mustafa
yes
not really
jus for fun
ye
so can i ask what you guys are doin, if yall don't mind sharing
lollol
ok cool
xD
ice cream
gib!
Taking a little break from my next.js website
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
If I wanted to use a class from a different file and I guess import it into another class? How would I do so. I have tried the import function but it is not responding as I thought it would\
• Have been active for over 3 ten-minute blocks. This means you need to have sent your messages over a span of at least 30 minutes.
this one
:((
ou i remember i needed help with somethin
Remember that importing runs that module entire. What's the nature of the behaviour?
how do you share audio with screen share on disc stream
it says it just unuses the import functions that I am trying to do
Could you rephrase?
I believe I am doing something wrong, I had looked up calling the class as a parameter but then it gave me a typeerror
i mean i stream on vcs and the audio don't jus cope up
when i use disc appl
but its fine on web
but i cant stream in 1080 60 fps in browser
