#voice-chat-text-0
1 messages · Page 647 of 1
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
GET OFF MY LAWN
also bot trading requires a year or so of active profits before it's considered steady
and you have to beat S&P500 well to be considered better
Hey guys
Hey
def add(x):
def addx(y):
return x + y
return addx
currying
So, you can do map(add(10), xs)
sorry guys, my wife didn't know I was online lol
Erm, @rugged root, can I ask you a quick question when you have a second?
Was it ok for me to help the guy in #help-chestnut? I'm not sure where the line is on rule 5.
Looks like they are trying to crack a password.
Ah right ok, noted.
I think that, for me that I am a beginner, is very overwhelming the tons of information, and I often think like "How is it possible that I remember ALL this information, when I need it and have to use it in the future?"
def entry_exit(f):
def new_f():
print("Entering", f.__name__)
f()
print("Exited", f.__name__)
return new_f
Yeah, he's calling the constructor of the class to create an instance.
a = MyClass()
!e
class Vector:
def __init___(self, d):
# create d dimensional vector of zeros
self._coords = [0] * d
def __len__(self):
return len(self._coords)
def __getitem__(self, j):
return self._coords[j]
def __setitem__(self, j, val):
self._coords[j] = val
def __add__(self, other):
if len(self) != len(other):
raise ValueError('dimensions must agree')
result = Vector(len(self))
for j in range(len(self)):
result[j] = self[j] + other[j]
return result
def __str__(self):
return '<' + str(self._coords)[1:-1] + '>'
d = Vector(5)
print(len(d))
You are not allowed to use that command here. Please use the #bot-commands channel instead.
a.alpha()
When you call an object's method, the object itself is passed in as the first argument to the method.
This argument is conventionally given the name self.
The idea is that methods are meant to be no different from functions.
def alpha(self):
print('y and self point to the same object in memory. y is self.')
y=MyClass() #< *This* is self
y.alpha() #< *This* y is what self refers to.
In a FPTP system, you're forced to vote strategically.
Yep
Can I have a go at explaining classes? 😄
Go for it, brother
Alright, so everything in python is an object. That is, everything you can assign to a variable.
You can set attributes on objects. Like x.a = 1
Now, as long as you have a reference to the object x, you can get the value of x.a.
@dataclass
class Sender:
"""
Represents the sender of a contact form.
"""
email: str
name: str
phone_number: Optional[str]
One moment, talking to mah wife
Put the mic up to the wall @quasi condor 😄
Wait what? Does he have rats in the walls?
Wait what? Does he have rats in the walls?
nope, people
Not sure if that's more or less creepy
not as disgusting i guess
Disgusting? No. Plot of a horror film? Probably
I love my wife, but man, she repeats the same things in a conversation sometimes
only Joe "DMT" Rogan would be able to create such a plot
HA
Yeah - we've done that, and pointed out that they're quite unfriendly
Good
competition reel
@fierce summit I'm glad we were able to get you taken care of. I think that would have driven me crazy otherwise
It's probably quite evocative of memory because it refers to a scent, whereas other screen names often don't.
Miranda on the veranda.
Forging a gerrymander.
I hate keyrings
Still working the kinks out on the splay function, but I've started taking it out and using it as my daily driver. The reactions I get are amazing, leave your comments below.
People who lose a limb can have "phantom limb syndrome".
You can have pain in your lost limb.
Yeah, I think I have a slow brain too 😄
I just can't type faster than like 65 wpm no matter how hard I try.
I just trip over my words too often.
how many fingers do you type with?
But like, that last sentence I typed in, I had to correct like 5 words 😄
Needs to have a vi-mode if it's a code version.
Oh, have you guys played the wikipedia game btw?
ąęśóżźłńć
hexual sealing
start: "int, value: a stop number",
end: "int, value: a stop number >= start"```
Hey @dense echo!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
I can never surpass 50 :/
hi @noble patrol @fiery hearth!
Ayyo
My mic doesn’t work rn 😅
S'all good
Yeye
Would that also mean this is also for python3?
yeye
kk
o/
Pls Unmute me someone pls pls
Pls Unmute me someone pls pls
@whole rover Pls Unmute me someone pls pls
@leaden comet Pls Unmute me someone pls pls
@dire folio Pls Unmute me someone pls pls
@torpid crag Pls Unmute me someone pls pls
@real coyote please don't ping a bunch of individuals. Just ping @Moderators if you need mod attention
in this case I have no idea what you mean.
@real coyote please don't ping a bunch of individuals. Just ping
@Moderatorsif you need mod attention
@leaden comet I am Baneed to use mu mic in voice chat pls Unmute me there
you'll have to join the voice then
I cant use my mic there 😦
fixed
Thanks 🤟
wat
oh there are a TON
Here's a quote from a mailing list I've subscribed to
# Exploit Title: Student Result Management System 1.0 - Multiple SQL
Injection Vulnerabilities
# Date: 2020-10-02
# Exploit Author: b1nary
# Version: 1.0
# Tested On: Linux + Apache2
# Description: Project Worlds Student Result Management System 1.0 is
subject to multiple SQL injection vulnerabilities due to improper input
sanitization.
Well, there is OTP XOR
It's not breakable by definition
Alisha and Bobby used advanced tech to talk. In a weird turn of events, we figured out their encryption method but not their key See if you can figure it out.
shortened_alishakey = alishakey[:len(flag)]
encoded_m=''
for m,k in zip(mes, shortened_alishakey):
encoded_c = chr(ord(m) + 6*ord(k) % 512)
encoded_m += encoded_c```
key = "110010001011001000101110111001111011100111000011101100001110100111100110011110010011011011001101101100001101110000110111000111010100011"
alisha_rotate = "100100100110010010011011010111101101011110101110111010111011100010101110001010111001101101100110110101111101100111110110111111101011111"
bobby_rotate = "101011100110101110010110000010011000001010001110111000111011010000110101000011011111011101111101110101010000100101000010011011100001101"
remember to split it by 10 and reduce bobby's key at the end
ƊƉƒƙƖƔơƗƕŔƔƔƛƓƅƍŚƊƔœƙƙſŐſŗƣ```
An encryption problem
can someone solve it
If you're on wiondows
theres a sneaky spot for microphone gain
and you sound like it is too far down
i wanna take an input from the user in which each word should start with an "at"
#include <iostream>
int func(int arr[]) {
int size = sizeof(arr) / sizeof(arr[0]);
std::cout << "array size: " << size << std::endl;
std::cout << "Output array: ";
for(int x = 0; x <= size; x++) {
std::cout << arr[x] << " ";
}
}
int main() {
int array[] = {0, 1, 2, 3, 4};
func(array);
return 0;
}```
I have no idea why the value of variable size is: 2
ok
I'm sorry my network sucks
ok
try to run sizeof(arr[1]) or the last index and see what it is saying
input
main.cpp:6:26: warning: ‘sizeof’ on array function parameter ‘arr’ will return size of ‘int*’ [-Wsizeof-array-argument]
main.cpp:5:18: note: declared here
iam on insta
@whole bear you're leaking a lot of noise into the voice channel
please go to push to talk
ok
let me know when you have done so
ok ok
str.startswith
shors is the break for RSA
it requires a lot of qubits though
and current quantums have ~100 or so at very max
and you need thousands to get RSA cracked
so we're on a timer, but its like 20 years away or so
this is why my keys are 4096 and 8128 size, to stave that off as long as possible
@craggy zephyr @cosmic lark @frozen sentinel
Hello!
Response headers?
@cosmic lark what library are you using?
For a request sent from python, or another application?
ok
import requests
response = requests.post("url", data="etc")
print(response.headers)
should work
it'll give you a dict
you'll just need to filter it
yeah, please do verify my suggestions ><
{'Connection': 'keep-alive', 'Server': 'gunicorn/20.0.4', 'Date': 'Sat, 10 Oct 2020 11:19:36 GMT', 'Content-Type': 'application/json', 'Content-Length': '5', 'Access-Control-Allow-Origin': '*', 'Via': '1.1 vegur'}
Are you sending a post request to authenticate, is that what you're trying to do?
yeps
check response.json()
Normally authentication is sent in headers to a server, but returned in the response body back to the client. That's available in the .text or .json() attributes
odd, try .text
You can also use response.status_code to see if it responded wtih 200 for OK, or 403, or 400 or whatever
of course :P
o/
https://www.youtube.com/watch?v=A1V21vOKgSs&t=44s i made this when i was 13
ok thanksss
I do apologize, I thought I could strip it even if you weren't in voice and that's apparently not the case
hmm....ok
no its an app ['andriod]
movies_title_genre = movies[['movie_title','movie_genre']]
gives: two column by name movie title and movie genre
------------------------------
in a iloc isn't the first argument row and second argument col?
whereas: using iloc i get some weird result?
I know you're doing Pandas, but...
_dict = dict()
_dict['key'] = 'value'
#is really calling, I believe
_dict.__setitem__('key', 'value') #Square bracket behind the scenes
_dict['key']
#is really calling
_dict.__getitem__('key') #Again, when square brackets are used like above.```
Hey @dense echo!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
@brisk current Have you tried researching how other people have done buttons and find people who have encountered and solved the same kind of problem you're having?
class MyClass(dict):
def __getitem__(self, v):
out = super().__getitem__(v)
print('Access granted')
return out```
Thick = Épais (like a lot of layers) in french
Jean-Baptiste Lully
Amadis, tragédie en musique sur un livret de Philippe Quinault (18 janvier 1684, Académie Royale de Musique)
I. Acte II, scène 4: Bois épais, redouble ton ombre
II. Acte II, scène 9: Est-ce vous, Oriane! ô ciel! Est-il possible!
Cyril Auvity (haute-contre),...
Bois
hi
Lmao
@chilly kiln what is the name of the ide in which u writting the coding?
Yes, it is
Yep
High five @whole bear
High five @whole bear
@feral crown high five
guys im new to voice chat here can anyone explan me wt this vc is about?
one think is there in atom we dont have to download any ide bt in vc we have to
https://atom.io
@feral crown this is great
atom is basically sublime text but more extendable
@chilly kiln ya i also cant understand y'll celebrity likes apple
@feral crown this is great
@whole bear it is great
@whole bear it is great
@atomic zodiac yes
Hey @whole bear , of course. Rishabh if i'm not wrong
noo you are right bro
Windows house. Good to live in. Looks nice. You can rearrange, add and subtract furniture. It's built on landfill.
Linux house. It's a bomb shelter. Indestructible. Utilitarian. Ugly by itself, but customisable. You can do what you with it, provided you know how.
Apple house. House under a Home Owners' Association. (HOA). The suburbia from the Edward Scissorhands movie run by Delores Umbridge from Harry Potter.
@lime grotto i also wanted to talk on voice not my mic is not working bro otherwise i would help you
glottal stop
while booting it
@whole bear i dont have the complete idea of it actually, like can you access all your files while working with linux?
Hey @dense echo!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
As it was shown to me:
sin(sin x + cos y) == cos(sin(xy) + cos x)
Hey @dense echo!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
nope
this site not working is it?
lmao
there is an error
'at'
@
@somber heath y u sit on vc?.....just asking for fun
@somber heath i am here to imporve my english
no one likes duolingo
n cambly is expensive
n discord is free to use so y to pay for learning a language
🆗
👍
i never read books
video lectures are the best
@somber heath sry everyone is sleeping right now
its 12 o clock in india
😕
@somber heath never sleeps
@restive hill he sleeps on vc
u were doing politics
and i just started disturbing you
and even the owner came
🤣
I don't recall based on that information.
<img style="height:20px;width:20px" src="/media/images/Screenshot_237.png>" <u="">
Hahaha 😉
print('hello, world')
@somber heath u heard skechers?
@somber heath song
search on youtube
streamed 1 billion times on tiktok
Hey @dense echo!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
You are not allowed to use that command here. Please use the #bot-commands channel instead.
create calculator
i haven't muted anything
@icy axle
bruh
A Windows version was available from 2007 to 2012
free hacktober credit^ xD
prs to your own repos count?
@honest pier, you have not linked a GitHub account
You can link your GitHub account using:
.hackstats link github_username
Or query GitHub stats directly using:
.hackstats github_username
is it really convenient to have a touchbar
.hackstats link savagepastaman
@honest pier, your GitHub username has been added
.hackstats
lel
oof
"dave"?
.hackstats
reference to a movie
which one
2001 space odyssey
the one
yeah
ye
ok
iconic movie
i like it
bruh
o
@tidal rapids
india
A weeb is a derisive term for a non-Japanese person who is so obsessed with Japanese culture that they wish they were actually Japanese.
is that the "weeb" you are referring to
Here's the Gurkult source file svg for future reference. I'm deleting it from my computer now
Discord messages as version control - I like it
The only true version control
help me with my output to get 300 chr0m0s0m3s for free
!e ```py
print("Hello ", end="")
print("there")
@icy axle :white_check_mark: Your eval job has completed with return code 0.
Hello there
!e ```py
output = "Hello"
output += " there"
print(output)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
Hello there
!e ```py
def output(a, b):
print("====")
print(a)
print("----")
print(b)
print("====")
output("hello there", 57346)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
001 | ====
002 | hello there
003 | ----
004 | 57346
005 | ====
!e ```py
def output(a, b):
print("=====")
print(f"First variable: {a}")
print(f"Second one: {b}")
print("=====")
output("hello there", 57346)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
001 | =====
002 | First variable: hello there
003 | Second one: 57346
004 | =====
!e ```py
def output(a, b):
print(
f"""=====
First variable: {a}
Second one: {b}
====="""
)
output("hello there", 57346)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
001 | =====
002 | First variable: hello there
003 | Second one: 57346
004 | =====
You are not allowed to use that command here. Please use the #bot-commands channel instead.
It's a great language that should never be used seriously
............................................................................*.........................................................................................................................................................................*...........................................................................................................................................................................*..................................................................................................................
This is kind of like how source files look
@hidden cove
"The happeare man, and litier aske they thice so like you as fuld he broand gan my lamonly.
Carse I cummedicksunbere was, en mucked to and says ver whold doin, when hust re,
I winew who fairs wild nightbout int them unit wasan as so few."
@onyx geode
import subprocess
data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8').split('\n')
profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i]
for i in profiles:
results = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles', i, 'key=clear']).decode('utf-8').split('\n')
results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b]
try:
print("{:<30}| {:<}".format(i, results[0]))
except IndexError:
print("{:<30}| {:<}".format(i, ""))
input("")
I am pranking one of my friends and want him it guess one of the passwords and make it check the password in the
brute-force
Do you know how do I do it???
class FollowUser(models.Model):
profile= models.ForeignKey(to=MyProfile, on_delete=CASCADE,related_name="follower")
cr_date=models.DateTimeField(auto_now_add=True)
followed_by= models.ForeignKey(to=MyProfile, on_delete=CASCADE, related_name="followings")
def __str__(self):
return "%s" %self.followed_by
def follow(req, pk,):
user=MyProfile.objects.get(pk=pk)
FollowUser.objects.create(profile=user,followed_by=req.user.myprofile)
return HttpResponseRedirect("/web/home_search/%d"%user.id)
```py
code goes here
```
@hidden cove https://imgur.com/gallery/OJaqKvR
re: the trig intersections, per point in the plane, if math.isclose(math.cos(x+math.cos(y)), math.cos(y), abs_tol=.5), then draw point
@hidden cove You've cut out.
Definitely a meteor.
@hidden cove I can see that you've rejoined, but there's still no audio from you.
@hidden cove I can hear you.
Sort of...?
Weird
@hidden cove https://imgur.com/gallery/NMeAt6h
@hidden cove Does it work for any n x n grid of Sudoku?
Also can it show a valid and invalid puzzle?
The larger grid you have, the more calculation you'd have to end up doing. You'll exhaust your speculative value placement search tree, eventually, if it's invalid.
The itertools module is your friend.
Is there a specific ratio for each additional k+1 to a k x k grid?
Is it just 2k because of the derivative?
By ratio I mean difficulty/length of computation
🤔 7j
In celebration of Richard Feynmans birthday, this video goes over a method of integration not invented by him, but still one of his favorites!
Bloomberg terminal.
"Beating everyone else" Like, just rocking up to the stock exchange and punching people.
"Bear market, bitches! 🤜 * boof*"
Agressive negotiations.
Field 'id' expected a number but got <django.db.models.fields.related_descriptors.ForwardOneToOneDescriptor object at 0x000001CF6F691820>.
(-1+0j)
I was eleven when my teachers were mistaking me for a male teacher by my voice.
I can hear you, yes.
@minor pike Yahoy.
My ears are on.
well I mean yea
I'm just not in a good position to speak. 🙂
it's ok
For example, I can hear your keyboard. 😁
yeah that's kinda a given tbh
Not necessarily.
My keyboard isnt mechanical
but it is still really loud
plus at least noise suppression is always there
Quite.
and I find it really weird that almost everyone that I see in this server has a somewhat "rare" tag, by what I call them
Like this person,
or not
The person in code help 2
their tag is this
6420
and they dont have nitro so they didnt do that on purpose
@fiery hearth im good

Hello, @fiery hearth, I am...vaguely pleased with myself. 😁
soup tier list
Hah.
There was...is...an ongoing argument about what qualifies as a soup. For example, is cereal soup?
#ot2-never-nester’s-nightmare what the heck is this
There was...is...an ongoing argument about what qualifies as a soup. For example, is cereal soup?
@somber heath dont ask
Off topic channels, of which there are three, are given randomly determined names from a database.
o
They change periodically. Maybe once a day?
ok makes sense
So you have ot0, ot1 and ot3.
hm
Followed by a chosen name.
interesting
So Joe organised a ranking of things which are soups. Such is my understanding.
hi
Well, it's working, it just sounds like you're typing underneath a number of doonas.
Yeah, maybe adjust the sensitivity threshold for transmit.
what
Yeah. You've got yours on automatic.
Maybe switch to manual.
I have mine set at about one quarter from the right.
When I use it.
No, that's your microphone gain.
See where it says "Automatically determine input sensitivity"?
The gain is how loud it is when you do come through. The input sensitivity is the threshold you need to reach before you begin to come through.
Ciao.
Hey @dense echo!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
https://i.imgur.com/bmsWQLl.gif Trigonometric intersections on a Cartesian plane.
so cute!
chonky chonk
stdio is a header file so its written in assembly and i think that will get converted into machine code prompting the system to print something
ig i have the code for printf
lemme check
Hey @bold bear!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
oooh nice cat pics
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL snprintf(
_Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int _Result;
va_list _ArgList;
__crt_va_start(_ArgList, _Format);
#pragma warning(suppress:28719) // 28719
_Result = vsnprintf(_Buffer, _BufferCount, _Format, _ArgList);
__crt_va_end(_ArgList);
return _Result;
}
#endif```
not sure but ig this is the code
for printf
_Success_(return >= 0)
_Check_return_opt_
_CRT_STDIO_INLINE int __CRTDECL snprintf(
_Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer,
_In_ size_t const _BufferCount,
_In_z_ _Printf_format_string_ char const* const _Format,
...)
#if defined _NO_CRT_STDIO_INLINE
;
#else
{
int _Result;
va_list _ArgList;
__crt_va_start(_ArgList, _Format);
#pragma warning(suppress:28719) // 28719
_Result = vsnprintf(_Buffer, _BufferCount, _Format, _ArgList);
__crt_va_end(_ArgList);
return _Result;
}
#endif
rhis?
ig discord doesnt have code formatting for assembly
this is the whole <stdio.h> file
2470 lines
k nice "talking" to ya'll
what are you guys doing here? come watch the stream
Where?
uhh youtube?
who and what are they streaming?
code jam
lemon, aeros, and ves
are you guys talking about the codejam
hell yeah!
ONE OF US! ONE OF US! ONE OF US!
bruh
brb, something interesting going on in stream
import discord
from discord.ext import commands
class BaseCog:
def __init__(self, client):
self.client = client
def setup(client):
client.add_cog(BaseCog(client))
@somber heath i knew u r here
is today jackbox?
🆗
lurking == best
@ripe aspen don't know if someone answered in VC or whatever - but Jackbox has been discontinued for the time being
.
assembling the gurkan army
Colour is the correct way to spell the word. 😋
actually, no
kalar
really cool
This is really awesome render 🤟
website
Whats the project?
gurkan themed website
@regal vault Can you try and.. not be loud... and not interrupt people
And maybe just stop messing around in general
"Who was on alligators?" One of the Irwins, probably. Crocs are their usual, of course, but I find it hard to imagine they haven't branched out at some point.
what's goin on here 😄
!warn 598716484767842304 Please don't spam join and leave the voice channel
:incoming_envelope: :ok_hand: applied warning to @trail osprey.
how to join gurkult?
Simply add Gurkan somewhere in your name and you'll be in
In Swedish:
Gurkan = Cucumber
(Vester = western)
(Vestergurkan = the Western Cucumber)
@nocturne hound Can you pick a channel and stick with it instead of spam clicking between them. In a code voice you might have to be patient before somebody can help you, you can also try using a text channel, see #❓|how-to-get-help. Thanks
👍
need some help with 2cap + selenium
Uhh... 2cap as in that captcha solving thing? If so that sounds highly likely to be against our rules
yeah captcha automation
ok is's against server rules (and most peoples moral principles) to help you bypass captcha
Yeah, that's gonna break rule 5
Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.```
If a site has a captcha I think it's safe to say they don't want you to automate access to it
notes from a Python devop
ooo
it used to support boo(python like language)
@frosty vale
ello governor
did he even join vc?
!warn 356301108966195201 Spamming the joining and leaving of voice channels doesn't contribute anything useful.
Member "356301108966195201" not found.
!warn <user> [reason]
Warn a user for the given reason.
Message ID?
nope
They left?
yep
Ah ok. Wouldn’t it be logical to allow warnings for members who aren’t in the guild?
After finding out they joined just to spam the voice channel, I removed them from the server forever.
coolio, ty xith
np
hi guys can someone help me. I have to show users from ad with a python script (pyad) but I can't figure it out.
?
¯_(ツ)_/¯
@sly jolt Bruh, I got muted because I Lol'd 🤣
it was a loud lul haha
I'll unmute you but can you try not to be disruptive...
@olive hedge @turbid oriole I have never heard a better description of sex xD! 😆
I don't think there's a need to continue that topic
lol, I am sure he appreciated your appreciation
🙂 @olive hedge
@whole bear who's going to write the code to write the bots?
The bots
frick
@olive hedge time to do more cs
replace yourself with a bot you created
@whole bear can you not place the same question in multiple channels, it can be really disruptive.
Also if someone else sees you posting in multiple channels, it incentives spamming.
I'm going to delete your question in all other channels besides #python-discussion.
replace yourself with a bot you created
@sly jolt we know this is how you were created xD
@olive hedge isn't there like some sort of "safety space" that you need to keep away from commercial airplanes?
when flying like
not about planes, but companies are attempting to figure out automated transportation
kinda. There are areas I need permission to fly through, but usually they just move me around them
I flew right through the approach path for SJC airport the other week, it was just annoying for them haha
"go away D:"
kinda LOL
I cant fly through san jose airspace without permission. Or san francisco, I just have to ask them
can someone help me with a script i have the script it doenst work?
@honest pier couldnt hear you haha
did you send a phyto @olive hedge
I was afraid of fliying now I afraid more 😄
and I am not turkish, it is a swedish work xD
you can message here instead of dm haha
who ask hahha
I was afraid of fliying now I afraid more 😄
haha, it is not scary. I was barely texting
ohhhh, saucy
and I am not turkish, it is a swedish work xD
@olive hedge btw at least 5 people ask that are you turkish hahaha 😄
@turbid oriole @honest pier materialize
haha, I know, it is funny haha
oh
The hacking wunderkind thinks Big Tech's approach won't work. He built a $999 autonomous driving system that runs on a smartphone.
Subscribe to our YouTube channel: https://www.youtube.com/ReasonTV?sub_confirmation=1
Like us on Facebook: https://www.faceboo...
can I join too?
hi!
hello!
Note, ReasonTV is Libertarian heavy bent
Whats up?
are there any self assigned roles here??
Off-topic channels
There are three off-topic channels:
• #ot0-psvm’s-eternal-disapproval
• #ot1-perplexing-regexing
• #ot2-never-nester’s-nightmare
Their names change randomly every 24 hours, but you can always find them under the OFF-TOPIC/GENERAL category in the channel list.
you can try these if you want to talk aside from voice chat
ah, thanks 🙂
buy guys, gotta go do stuffs. good talk!
my uni had c and c++ as starter languages
cya
var spam = 0
var eggs = "0"
var spameggs = spam + eggs #This will boom```
Python
spam = 0
eggs = "0"
spameggs = spam + eggs #This will boom
well no shit
python doesn't compile
and IDE will catch it C#
why do you think Typescript exists?
Because Microsoft was doing a ton of Javascript and it kept blowing up with type errors
maybe that's more of an issue with runtime languages than necessarily dynamically typed languages, then
what if they know python and use mypy everywhere
Jr Devs we are not hiring at all right now
but we do not require College for Jr Devs
By enforcing typing in Code, your compiler can apply a ton more limits on the programmer and can make a ton more inferences
that also means an IDE can learn a bunch more
yeah, typescript is easy mode compared to vanilla js imo
Hey @mystic marlin!
It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .svg, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a.
Feel free to ask in #community-meta if you think this is a mistake.
Blend resumes in water. Filter through a fluid filtration apparatus. Great success!
Not before
@amber raptor why tho?
I've got 30 resumes, I don't have time to look at every github
not every one has enough time to make quality side projects
Recruiters wouldn't know quality github from hackotober hot garbage
When 3/5 of applicants fail fizzbuzz
bruh wot?
@cosmic lark https://en.wikipedia.org/wiki/Fizz_buzz
Fizz buzz is a group word game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz".
very basic programming
no i mean how can they fail it?
The secret ingredient is l y i n g
One, fizz, bugger.
about knowing to code
lmao....its just psuedo code if written in python tbh
yep
just like swapping vars
but still there are people that fail it
I've seen a = 1;b="2";c=int(b)
I've seen a = 1;b="2";c=int(b)
they still exists? i thought they became extinct after 2017?
When using C I just made a MSLib.h with all the functions I need
like void swap(*prt1,*ptr2)
like void swap(*prt1,*ptr2)
@mystic marlin yikes
we use REST API for our interview
@amber raptor i aint applying for a job but can ya like look at my code and say if its like an eligible project fr developing a rest api and using it?
200 is successful
There is no HTTP status code 0. What you see is a 0 returned by the API/library that you are using. You will have to check the documentation for that.
I think he was taking about exit code 0
for number in range(1, 101): # ? for each number in the range of 0 to 100 perform:
output = "" # ? create a blank string
if( (number % 3) == 0): # ? if "number"'s module of 3 is 0, we will add "Fizz" to the string
output += "Fizz"
if((number % 5) == 0): # ? if "number"'s module of 5 is 0, we will add "Buzz" to the string
output += "Buzz"
if(output == ""): # ? if the output didnt change, we will replace the output to the "number"
output = str(number)
print(output) # ? after finishing checking, we will display the output
ye same here
fizz buzz with vim macros
def fizzbuzz(x):
if x % 3 == 0 and x % 5 == 0:
return "FizzBuzz"
elif x % 3 == 0:
return "Fizz"
elif x % 5 == 0:
return "Buzz"
else:
return str(x)
basic fizz buzz...ik a more efficient way tho..xD dont wanna make it wrong
def fizzBuzz(rangeNumbers,FizzMap):
output=""
for number in rangeNumbers:
temp=""
for divisor in FizzMap.keys():
if(not number % divisor):
temp+=FizzMap[k]
output+=temp+"\n"
return output
print(
fizzBuzz(
range(0,101),
{3:"Fizz",5:"Buzz"}
)
)
range(0,101),
{3:"Fizz",5:"Buzz"}
)) ``` Don't do this
ok
def fizzbuzz(x):
return ''.join(
["Fizz" if x % 3 == 0 else '',
"Buzz" if x % 5 == 0 else '' ]) \
or str(x)
str=input("enter sentance or a word")
v=0
l=0
u=0
d=0
for i in str:
if i in 'AEIOUaeiou':
v=v+1
if i.isdigit():
d+=1
if i.islower():
l+=1
print("no of vowel is",v)
print("no of digit is",d)
big red flag
str=input("enter sentance or a word") v=0 l=0 u=0 d=0 for i in str: if i in 'AEIOUaeiou': v=v+1 if i.isdigit(): d+=1 if i.islower(): l+=1 print("no of vowel is",v) print("no of digit is",d)big red flag
@cosmic lark
My eyes
@cosmic lark
My eyes
@mystic marlin thats how our teacher codes
def fizzBuzz(rangeNumbers,FizzMap):
output=""
for number in rangeNumbers:
temp=""
for divisor in FizzMap.keys():
if(not number % divisor):
temp+=FizzMap[k]
output+=temp+"\n"
return output
print(
fizzBuzz(
range(0,101),
{3:"Fizz",5:"Buzz"}
)
)
@mystic marlin
cleaned variable names
We are no way close to FAANG company
@tall latch isdigit for is a digit islower for in lowercase
Step 1) Fizzbuzz
Step 2) reading my FAST API (which has a bug)
Step 3) Roman Numeral decoder (discussing how you would implement)
Step 2) reading my FAST API (which has a bug)
@amber raptor can ya read my rest api tho? and say if its good enough?
5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious or inappropriate. Do not help with ongoing exams. Do not provide or request solutions for graded assignments, although general guidance is okay.
@amber raptor wont reply me ;-;
I don't do code review
F
!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.pydis.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.
oof
just show REST API
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
this line should be helpful
i need to make a ai kinda thing like a voice assistant that can do what i tell them to do
like search google and wiki and youtube
speech_recognition, pyttsx3, datetime, sys, wikipedia, wolframalpha, os, smtplib, random, webbrowser, pygame, subprocess
thats all u need
pygame??
pygame if u wanna use a gui
smtplib?
tkinter
for email sending
will do
kivy??
enaml
is there any data scientist here?
:d
pr = fp [2..]
where fp (p:xs) =
p : fp [x | x <- xs, x `mod` p /= 0]
how old are u guys u know so much
18
17
I wish I know too and join to you 😄
19 in december
wow 27 started this year coding
the lm-sensors package has it
if you don't wanna do sudo all the time you can do sudo sensors-detect once
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +57.0°C (high = +100.0°C, crit = +100.0°C)
Core 0: +57.0°C (high = +100.0°C, crit = +100.0°C)
Core 1: +57.0°C (high = +100.0°C, crit = +100.0°C)
Core 2: +55.0°C (high = +100.0°C, crit = +100.0°C)
Core 3: +56.0°C (high = +100.0°C, crit = +100.0°C)
BAT1-acpi-0
Adapter: ACPI interface
in0: 11.89 V
curr1: N/A
pch_cannonlake-virtual-0
Adapter: Virtual device
temp1: +55.0°C
acpitz-acpi-0
Adapter: ACPI interface
temp1: +27.8°C (crit = +119.0°C)
temp2: +29.8°C (crit = +119.0°C)
temp3: +10.0°C
hello!
ignore this i just needed to slap this in a boosted server 2 get a link because over 8mb
!doc struct
Source code: Lib/struct.py
This module performs conversions between Python values and C structs represented as Python bytes objects. This can be used in handling binary data stored in files or from network connections, among other sources. It uses Format Strings as compact descriptions of the layout of the C structs and the intended conversion to/from Python values.
Note... read more
yee
ignore this again i just needed to slap this in a boosted server 2 get a link because over 8mb
among us?? @somber heath ?
hi guyz!
i am getting this error
i have already downloaded tensorflow
how did you download tensorflow?
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
pip install --user tensorflow
pip install tensorflow
@graceful grail it's not working
try using --user
did you run it into a environment like 'venv'?
@keen current yes!
@craggy zephyr And do you run the code within this environment?
so try this print(sys.path) then see if tensorflow is in one of the folders ilsted
okay
@craggy zephyr you find tensorflow in a folder?
@wraith ridge https://amitness.com/2019/12/migrating-to-pathlib/
Learn how to use the modern pathlib module to perform tasks you have been using os.path for.
using Revise
includet("mymodule.jl")
...
@wraith ridge https://computationalthinking.mit.edu/Fall20/lecture1/
Romanians allowed? or racism?
I want infinite writes, damnit!
"If it's free, you're the product." Hello, welcome to Python, an open-source product.
"If it's free, you're the product." Hello, welcome to Python, an open-source product.
we are the product in it too
We're the code slaves?
nope...we are like contributors
So...socialism.
the 1%....
I am communist snek
@craggy zephyr you find tensorflow in a folder?
@wraith ridge i didn't have the upgrade version of pip
I'm creating art, not publishing scholarly papers on water table hydrodynamics.
then I would highly suggest dash, make interactive data art
cos(x*sin(x)+z) ≈ cos(y*sin(y)+z) for z of -pi*2 to pi*2
how is this equation read? so cos(x*sin(x)+z) is approximately equal to cos(y*sin(y)+z) for z of -pi*2 to pi*2?
@graceful grail Wrong.
@wraith ridge indeed
so for the visualization the x z are used but not x?
there was a time element to to tho
idk
I've no strong opinions.
I suppose I don't really know her that well.
But she is a Liberal (right-wing authoritarians) party member, so I'm not that keen.
oh f I forgot to put the license in my code
oof
def mycallbacks(button_name):
def button_callback():
print(button_name)
return button_callback
command=mycallbacks("thisvar")
If you have sticky keys, may I suggest that you clean your keyboard?
I am aware.
No more jam toast around the computer.
is eating jam toast over keyboard at this very moment
Quokka.js: Introduction
It's like a horse gallop rhythm. Pdb-pdb-pdb-pdb.
how about no
@tall latch We can hear you...
@tall latch Heavens forbid you should be subjected to the privations of bad ergonomics.
Your mouse.
Nothing is wrong with your mouse.
You just don't have to put up with having to move your fingers around on it.
As you said.
So heaven forbid you should have to be put to any inconvenience.
Such as moving your fingers.
sticky mouse?
Let us pray such does not come to pass.
The last time I submerged my computer mouse into glue resulted in an epic adventure of woe.
put up with having to move your fingers around on it.
As you said.
So heaven forbid you should have to be put to any inconvenience.
Such as moving your fingers
I intended it as a throwaway comment.
I intended it as a throwaway comment.
Uploading big files may take a bit of grunt, but that's more to do with your bandwidth and the size of the file than github, itself.
Uplink speeds can tend to be much lower than downlink speeds for many internet connections.
try:
with open(filename,"r") as file:
data = json.load(file)
except:
with open(filename, "w") as file:
json.dump(users, file)
print("bot is ready")```
he answers not
lol
@slate sluice How big is what file?
If you're referring to the github conversation, it was FabCode's bandwidth issue, not mine.
ah
@late sapphire
any one can come to voice 1 sec to help me?
if i add .json on the end of a link i get a lot of information
I am how I am and how I am is quite uncertain. I feel fine, but I walk a line and that line is behind a curtain.
Ayeees?
just say that you are alive ^^
ok
and you are breathing
i'm still like that
