#ot2-the-original-pubsta
652 messages ยท Page 110 of 1
A true Garfield
He calls hinself TheCat as a nick in many places
it's that easy to land a job?
well to land an initial conversation about a job
Ok
Its expensive
No
I dont know what to mock with him
Cuz bible?
says YOU AREN'T REAL HAHA YOU FOOLED ME BUT NOW I KNOW
Have you folks ever looked up your name on UrbanDictionary?
Oh wait
lemme try that
The only thing they got right about me is my nationality
A man of intelligence, handsome, well hung, astute.
Petes are fun loving sexy lads. They're tall making them masculine and strong and are total lovemaking machines!! Often have very large members
these are so funny ๐คฃ
Look at mine, I sound like Shah Rukh Khan
HOLLYWOOD?!
Best male in the world
- B
WHAT MAKES YOU BELIVE IN GOD
Oh wait sorry
Can you hol' up a sec
how about i ask you 2 question if you can't answer you need to move on religious to sciene
And no, I don't watch Bollywood movies and do not appreciate most of them. Mollywood, Tollywood and Kollywood are a lot better
CHA-
Damn it you are just like senku
who's senku
Dr stone main character?
Did you just tell us your name there
bro my first name is not pete lol
Nathanael is a gift from god
wtf is that?
you can't prove or disprove god
Biblical character I guess
Its related to my name
Jerrusalem: 
what makes you think jerrusalem exists
Israel: 
what makes you think israel exist
Lmao not even watch google map
jokes on you!
lemme ask you 2 question
if you can't answer
move on to sciene
typo
Oh god i am choking chewing gum
Personally, I like to keep a distinction. Scientific and rational matters in one sphere and spiritual matters in another
you just laugh while chewing gum
This all your fault
it's yours because you laugh to his joke ๐คฃ
Luckily I still can breathe
ok
you both proved nothing today and contributed nothing to debate about god
i am going
Bye
watch me
if you think heaven exists
Help me
Call 999
What kind of idiotic is this
ITS AT SKY
There's no sky
1000th frames i guess
if world was smashed notthing left
It's just sunlight being diffracted by the atmosphere
Then what is up on you
There's no such thing as a sky
Bird?
It's space. There is no such concrete thing as a 'sky'
HELP
This is why i dont want mock god
The sky in Australia and in Russia are in two opposite directions
mock him
I think i am gonna die
sky is astrosphere with like 8 of them
We're all gonna die
My girlfriend says this too
Help
when you die it just like when you sleep
you feels like notthing
but you just sleep forever
Thanks alot pete
that's why you shouldn't be on discord when chewing gum
because you will laugh to them and choke
Pepe
search google how to get choked gum out
Tomorrow i will poop it
Its at my stomach rn
Is it bubble gum or chewing gum
i cant spell it rn
swallow
Bubble
If it's bubble gum you'll blow a bubble out of your arse
Or probably not
literally
I already swallow it
stomach will just make that turn into shit
I am choked for 6 sec and swalloe it
The body for some reason can't digest beetroot essence
It comes out red
I am afraid it could make me dead
You'll know if you've ever eaten beets
Da fuq
it just berry family
Eat elderberries
i mean
No idea
i never eat beetroots
Eat anything made of Maida and your shit will come out like rocks
because it's underrated and rare in asia
maida
meat
I'm in Asia...
We get plenty of beetroots here tho
What's meat like
i still wants people to actually know how world was born
they were not made by god ofc
eating just meat will get your shit hard like rock
and it's like hell to shit it out
Oooh so no more viagra!
Oh wait you meant shit
Damn science can be propaganda sometime idiot
propaganda? ๐คฃ
If gravity exist why we cant fly
because it pull you down are you dumb
gravity actually pull you down lmao
incase you need to fly you need power to push you
and in case gravity exist
s
- The Earth's gravity pulls you into it
But yeah that's the idea
prove it
what the
i'm so scared ๐ญ
shame on you karma aren't real
it just coincidence
isn't
or someone made it happens
Then why my character not posing
I already insert all things in it
The xml shit
And other
wat
because you're dumb to make it work
It's karma from your previous births
wtf
Ok now it's just name calling
you even belive we actually die and born?
No, we all live in the Matrix
ofc you can
After the choke
Whew the gum didn't stay long in my stomach
It went into your intestines soon after
I bet
Yo you are expert in English
You make me confuse
Umm
Sorry. I'll keep it simple
O its ges to my usus
Ok tomorrow i will poop it tomorrow
Yes, Uranus
Ur anus
e
why are y'all like this
Who's us
huh?
Are you talking about the atheist/theist debate
new to this
help, I have too small brain. how do I do something like getting over it. idk how to get angle through mouse movements
what on Earth is the context for this?
idk how to explain stuff
I'ma copy some scratch code
bai
dis
Some trigonometry ...probably you are doing some game
possibly math.atan2
I think I got it
@gray plover if god doesn't exist explain to me how am i make anime head
finger
their ads suck
and the gameplay in general is kinda boring imo
int main(int argc, char *argv[]) {
}
void zero_matrix(int row, int column);
printf(float matrix[row][column] = {0});
please tell me this is correct code to make a function which makes a zero matrix with 2 params row and column
I need saving please
ok hold on.
okay yeah i am not really sure what you are trying to do here.
please, where are the designated initializers .
i was joking because @rare moat was complaining about them earlier ๐
Python not being ANSI C moment
i mean
int main(void) {
int x[10][10] = {0};
}
boom, 10x10 matrix with all zeros.
i mean, there can be.
there can realistically be boilerplate in any language.
do not need what?
no, you do need a main function.
a main function is not boilerplate.
depends what operating system you are on and what compiler you have.
main;
do you want to live
no boilerplate. and also bonus 139 exit code
gobject
๐คช
one way to write it, yes.
what are you scared of
you are probably just used to Python.
alright good luck. if you need help feel free to ask.
i suppose The C Programming Language is a fairly nice book for this kind of thing.
you are using the same code as before.
yup
it is not that it is not an index, it is that it is not known at compile time.
the size, i mean.
by not storing the values in variables. it needs to be known at compile time to initialise them all to zero.
i mean, arrays probably are not the solution here if you cannot know them at compile time.
you normally use malloc and calloc to do that kind of thing at runtime.
i mean i barely know what you are doing here.
are you writing a C extension to Python or something?
so a C extension
probably i dunno.
you should probably learn the basics of the language first.
it is difficult for me to help you with something that i have little information about.
what are you trying to do?
alright, try this.
#include <stdlib.h>
int *make_matrix(int row, int column) {
int index = 0;
int **columns = calloc(column, sizeof(int*));
/* Make row length rows for n columns */
for(index = 0; index < column; index++) {
columns[index] = calloc(row, sizeof(int));
}
return columns;
}
calloc will initialise the memory you allocate to all 0s.
you need to free all those blocks, though.

oops
bug in code
sorry
hold on
okay
int **make_matrix(int row, int column) {
int index = 0;
int **columns = calloc(column, sizeof(int*));
/* Make row length rows for n columns */
for(index = 0; index < column; index++) {
columns[index] = calloc(row, sizeof(int));
}
return columns;
}
this should work.
well i mean
that is all
you made your matrix.
depends what the variable is.
for the record i used the word object there incorrectly.
it is not an object.
anyway, printf("%i", x) will print an integer.
where x is the integer.
you need to include stdio.h first though.
no
it is just a block of memory.
i suppose you could say that.
Good Evening All ๐
what did kat's cat do?
ahhh I see reading the logs, lol
pretty silly but cute ๐
man im so used to instinctually pressing ctrl + s after i write like a few lines of code that now i do it even where i am not coding
like i legit pressed ctrl + s before closing file explorer
laughs in autosave
i think vsc even does that
im just too much of a schewpid idiot to see the dot and be insecure
sorry wrong wording
did you just say "stupid furry"? \๐ค
wrong wording
.-.
because i have like powercuts all the time
so i worry
that
i fixed code
and
it gets deleted
because i didnt press ctrl + s
does format on save work with autosave
no idea, I don't use VSCode
I have no idea what you mean @languid reef
why
why would you
LMAO THE EYES REACTION
The only darkmode i use is in my editors.
im actually curious tho, why light mode
Because dark mode hurts my eyes.
nope.
Presently f.lux has the lums turned down. But it is 01:00 here.
oh i used to use that
i should probably re-install it
oh now i know why u deleted the image lmao
It's only so accurate. :)
Nothing that knowing it's 01:00 and currently a breezy -7 right now.
๐ฅถ
f.lux stopped working for me on Windows 11, I had to start using the built-in filter
if y'all like how it looks, then it's okay, but it should be noted that the 'helps your vision' part of blue-removal-at-night apps like flux has no scientific basis other than maybe the placebo effect
ugliest imo
You're welcome to your opinion certainly! Just so long as you're okay with it being wrong. ๐
Something's brewing, lol
beer
idk why but something makes me feel weird about those purple hearts
\๐ค
Noted!
I am ever so grateful to your care taking stance, and I must note that you are rather friendly to the average converser.
Meh. Y'all gonna like what you like and it really doesn't affect me at all. We are all different and that's pretty darn cool. I can't read a screen for any length of time with dark mode. Except code, which is still weird to me.
I keep looking for light mode editor schemes. Haven't found one that works though.
i thought you spoke in stereotypical american accent
I speak with the accent of the last person I've been listening to.
me?
Naw, literally I just adopt accent behaviors. So right now I probably sound Southern as I've been listening to a lot of Zig Ziglar tonight.
ah ok
He's got such a damn good point of view of life. Humor, perspective, and drive.
https://www.youtube.com/watch?v=EXyrkwLMbF4
Zig Ziglar gives his life advice on how to pursue happiness and get the most out of your life. This motivational speech will change your future! Young people NEED TO SEE THIS!
Subscribe for Motivational Videos Every Weekday, Helping You Get Through The Week! http://bit.ly/MotivationVideos
Interested in saving this audio and listening to it off...
the likes of those whom i admire
"Anything worth doing is worth doing poorly... until you learn to do it well." ๐ฅ
"You must be a constant student." that's another of my favs.
hundreds of ways to say it. You'll hear it over and over.
probably my insomnia but I'm soaking this stuff up tonight. I feel like I lost my focus over the last six years.
insomnia rates drop to 0
EST
you measure time in units of pressure ๐
I remember long enough for daylight savings to make me wrong.
hep I am flat
Hi flat, Nala here
I've done been got
But I think that a shower, a long contemplative gaze into the forest, and some attempted sleep is a good idea.
ni
amateur
Y
is a joke above going to sleep instead of staying awake far longer than one should
no. don't ruin the joke.
it's doing numbers.
let me perish under the weight of my atm.
well what does the colon mean for units? alternate decimal point, maybe?
its time
not for atmospheres, it's not - unless a new unit? atmosphere-hour?
Pascal hours... okay
program TimeDemo;
uses sysutils;
begin
writeln ('Current time : ',TimeToStr(Time));
end.
Pascal.
๐ง
thats_the_joke.gif
I'm older than your dad. Neat.
What are 60 year olds doing on Discord ๐ง๐ฝ
Learning python, I'd imagine. 
Pascel was my third language. never though about it but the use of the period to terminal a block reminds me a lot of Progress.
You've either overshot my age or Pascel's... not sure which but yes, I play Minecraft.
Hold on, let's clear stuff up
Pascal was created in 1970 says Google
As was my dad
record scratch Was it really 70?
Or so Wikipedia says
1983 is when Borland released it.
Based on Wirth's book Algorithms + Data Structures = Programs, Pascal was developed on the pattern of the ALGOL 60 language. Wirth was involved in the process to improve the language as part of the ALGOL X efforts and proposed a version named ALGOL W. This was not accepted, and the ALGOL X process bogged down. In 1968, Wirth decided to abandon the ALGOL X process and further improve ALGOL W, releasing this as Pascal in 1970.
The Free Encyclopaedia
Neat! I learned something.
So did I
Yeah, wow. Turbo Pascal (the one I used) was a implementation built off Pascal. The latter being far older than I knew!
They look the same, syntax wise.
hmm
Lol i miss that language
I was there during the transition point when some taught Pascal and some taught C in uni
youre 60 yr old?
i should call u granny
grainy
don't make my yae uncomfy pls
๐ฅ
if option == '1'
name1 = input("Name 1: ")
with open('config.json', 'w') as config_file:
data={'name1': name1}
jsong.dump(data, config_file, indent=4)
elif option == '2'
name2 = input("Name 2: ")
with open('config.json', 'w') as config_file:
data={'name2': name2}
jsong.dump(data, config_file, indent=4)
If i do this it only shows 1, if i change the first one gets removed, i need it to be like this
config file:
{
"name1": "name1",
"name2": "name2"
}
Yes
okay so what is your problem
no just put it here.
I want some solutions using c program
okay, so what is the problem?
Can I post here?
yes
Write a c program to create an array of 10 cells to store integers.find largest,second largest and least values?
How to write it โน๏ธ
are you asking me to write it all for you?
Just logic for finding largest, second largest and least value
you can have three integers that you compare as you loop through the array.
int main(void) {
int largest = 0;
int second = 0;
int least = 0;
return 0;
}
as you loop through the array, you can compare three things:
if the current value in the array is larger than largest, then assign the variable second to whatever is currently in largest.
and then assign largest to the current value in the array.
you do that kind of thing.
I can't understand bro 
For 10 integers??????
just sort them
yeah you can sort them
but that is probably a bit more of a pain in the ass than what i am suggesting.
yes
int index = 0;
int x[10] = {3, 8, 1, 2, 7, 9, 4, 7, 6, 4};
but either way
are you allowed qsort?
oh right i forgot about that
well assuming you are not, here is how i did it:
basically, assuming you do not want to sort it.
- loop through each number
- if the number is larger than
largest, setsecondtolargest, and thenlargestto the number. - however, if
leastis0, then we should just assign whatever the current number is in this (assuming they are all greater than 0, that is.. lol) - if it is not equal to 0, then if
leastis greater than the current number in the array, setleasttonumber.
@jovial island please keep it in here.
Ok
are you allowed to use the qsort function to sort the input?
Idk it means but we can use anything
i mean if you are sure you can use anything, then yes you should use the qsort function in stdlib.h.
Ya we can
you should use that then.
well yeah but, you can just use the qsort function and then get the 1st number, last number, and second last number in the array.
Use stdlib.h instead stdio.h ?
BTW can I ping u here?? For reply?
yes
Ok
This
well i mean, you might still need to print them.
so you should probabl yhave both.
but why are you writing this on paper?
Now iam on mobile write code then do on PC
qsort is a C standard library function that implements a polymorphic sorting algorithm for arrays of arbitrary objects according to a user-provided comparison function. It is named after the "quicker sort" algorithm (a quicksort variant due to R. S. Scowen), which was originally used to implement it in the Unix C library, although the C standard...
Wikipedia has a pretty good example on how to use qsort.
OK tysm bro
yup
Bye bro see u tomorrow
Ty
i
Linting question: How would a generator be better here when the target assignment is a tuple[] | Mapping[] | None?
record.args = tuple(["REDACTED" for _ in record.args or []])
linting error:
Consider using a generator instead 'tuple('REDACTED' for _ in record.args or [])' (col 30)
Or is it telling me to make a generator instead of using list comprehension here?
ye, the listcomp is what it doesn't like
Okay. That makes sense in my scrambled head.
This is what I get for trying new linters.
"Well there are issues, I can't just not fix them!"
โโโถ $ prospector --strictness high
Messages
========
src/secretbox/secretbox.py
Line: 128
pep8: E203 / whitespace before ':' (col 80)
Check Information
=================
Started: 2022-02-13 14:23:49.423340
Finished: 2022-02-13 14:23:52.397447
Time Taken: 2.97 seconds
Formatter: grouped
Profiles: default, strictness_high, strictness_veryhigh, no_doc_warnings, no_test_warnings, no_member_warnings
Strictness: high
Libraries Used:
Tools Run: dodgy, mccabe, pep8, profile-validator, pyflakes, pylint
Messages Found: 1
Sweet. I have no intention of fixing E203 because pep8 is wrong 
In what kind of line did you have whitespace before : that could be acceptable?
it's a string slice: value[-(len(value) // 4) :]
However, in a slice the colon acts like a binary operator, and should have equal amounts on either side (treating it as the operator with the lowest priority). In an extended slice, both colons must have the same amount of spacing applied. Exception: when a slice parameter is omitted, the space is omitted.
I feel the pep8 linter is interpreting it differently and I don't want to fightblackwhich asserts that formatting.
value[
-(len(value)//4):
:
]``` is the way
This makes me feel things.
You have one space left, no space right, so that goes against the equal on both sides.
value[-(len(value) // 4) : ]```
"Exception: when a slice parameter is omitted, the space is omitted."
I see what you are saying, but that's not how it seems to read.
haha! angy
build/lib/secretbox/secretbox.py
Line: 128
pep8: E203 / whitespace before ':' (col 80)
src/secretbox/secretbox.py
Line: 129
pep8: E203 / whitespace before ':' (col 80)
pep8: E202 / whitespace before ']' (col 82)
for key, value in self.loaded_values.items():
# fmt: off
self.logger.debug("Push, %s : ***%s", key, value[-(len(value) // 4) : ])
# fmt: on
os.environ[key] = value
def _push_to_environment(self) -> None:
"""Pushes loaded values to local environment vars, will overwrite existing"""
for key, value in self.loaded_values.items():
# fmt: off
self.logger.debug("Push, %s : ***%s", key, value[-(len(value) // 4):])
# fmt: on
os.environ[key] = value
Is what it wants. I don't feel like toying with black. Fun exercise though and I think I have a another plugin to add to flake8 from this.
Cleaned up six spots where I had if/else with returns in both. Don't need that else if ya just gonna return!
on one code
prospector is what I'm trying.
oh
Tools Run: dodgy, mccabe, pep8, profile-validator, pyflakes, pylint
With a lot of plugins.
https://black.readthedocs.io/en/latest/guides/using_black_with_other_tools.html#id1 that just reminded me of this thing
Was curious what "out of the box" meant for the developer.
ye! I have that baked in. https://github.com/Preocts/secretbox/blob/main/setup.cfg#L73-L75
setup.cfg lines 73 to 75
[flake8]
ignore = W503,E203
max-line-length = 88```
When running flake8 with some of the pep8 examples of correct whitespace for slices it errors.
preference or interpretation? The world may never know.
ham[: upper_fn(x) : step_fn(x)]
is correct according to pep8, but not according to flake8
@mental idol looks like it's a known issue
https://github.com/PyCQA/pycodestyle/issues/373
I've encountered the problem in the following code: a = [1, 2, 3, 4, 5] b = a[1+1 : 2+2] # E203 c = a[1 + 1 : 2 + 2] # E203 d = a[1+1:2+2] However, PEP8 chapter https://www.python.org/dev/p...
for almost 4 years now
that's 6 years. wheee
O I looked at the last comment, not the first, it's 6 indeed
To be the cat that pokes that thread with "Any news?" a year later.
https://github.com/Preocts/secretbox/pull/69
Nice 
I achieved something today.
nice ๐
+11 โ12 net gain too. poggers.
got rid of massive amounts of bloat I see
This is why I keep trying new linters. I've looked at this code so much and never thought "Hey, why do I have a useless else here?"
There's probably some langs where you can't have an if without an else.
@if $myvar["0"] equals $theirvar
cout << "Hello World!"
@endif
@else
...
@endelse```
You don't like string indexed arrays?
I'm not sure what I want to focus on more.... string indexed arrays?!
equals
Tell me this is some database lang.
This is something I made up on the spot
whew.
heavily inspired by php
I don't remember much of php. I used it, I have poof of that. Dont' remember it.
I lost most of my es5 knowledge sadly, used to mess around with it a lot. I know it has all these weird hoisting rules and such but not what they are anymore. Or how most things work.
I think Rust has some warnings about it
in specific situations
borger time. ๐
Nice
huh
I could swear I've gotten some warnings about it
only at the end of functions, I think
some return type stuff, maybe?
I assume in rust it happens if you are using the result of the if
thanks!
yo can someone send this to another server
no
y
ye
Eye chart for super sharp reading
lol
cross posting isnt allowed iirc
they didn't cross-post
it's just chainmail
which probably goes against the off-topic etiquette or something
he broke the chain by not capitalizing the first letter
Sharp eyes lol
Definitely. I still don't understand why people think this is funny
i mean, that is a dict
dict = {'a':'11313', 'b':'bruh'}
dict['a'] # '11313'```
I tried to use ISLR2 as an opportunity to learn R and machine learning, and stopped doing the examples/exercises by chapter 6 (did continue the rest though). It was fine at first but every time I compare R to Python, it just feels like a mess
I understand R is recommended to many non-programmers, but I'm a programmer, so that's a negative in my books, and I feel like I appreciate Python more, it is more of a language, more error-checking, more features, it can do anything, I can combine it with making a pyglet game and run some machine learning / statistics on it
I really don't understand why should I use R when I already have Python, yes some functions are easier to use for the statistical parts, but Python should have the same functions, without suffering from the same disadvantages and learning curve, it seems that when writing R you need to deal with silent errors and not fall in some traps, which feels like a pain
/rant
u know whats fun? not sending this kind of shit
you know whats fun? just ignoring stuff you dont like. you cant control everything
you know whats fun? just ignore me :V
you know whats fun? genshin impact
def generate_integer_list() -> List[int]:
int_list = [randint(0, 100) for _ in range(5)]
int_list.sort()
return int_list
def compute_largest_numbers(int_list: List[int]) -> List[int]:
largest_num_1 = int_list[0]
largest_num_2 = int_list[1]
for num in int_list:
if num > largest_num_1:
largest_num_2 = largest_num_1
largest_num_1 = num
elif num > largest_num_2:
largest_num_2 = num
return [largest_num_1, largest_num_2]
messy but works. gonna simplify it
Shouldn't L in list be in in smaller case?
class typing.List(list, MutableSequence[T])```
Generic version of [`list`](https://docs.python.org/3/library/stdtypes.html#list "list"). Useful for annotating return types. To annotate arguments it is preferred to use an abstract collection type such as [`Sequence`](https://docs.python.org/3/library/typing.html#typing.Sequence "typing.Sequence") or [`Iterable`](https://docs.python.org/3/library/typing.html#typing.Iterable "typing.Iterable").
This type may be used as follows:
```py
T = TypeVar('T', int, float)
def vec2(x: T, y: T) -> List[T]:
return [x, y]
def keep_positives(vector: Sequence[T]) -> List[T]:
return [item for item in vector if item > 0]
```...
ye i used typing
Comment cava
Yea was aware about the list typehint, that's why asked
Idk the spelling, its been 3 years
i can also use list[int] but List[int] looks better ๐ฟ
Ikr
[Int] ๐ฅด
just another import.
from builtins import int as Int
U do know that importing the whole typing library consumes less resources than importing using the from syntax, right?
Also, sorted function exists.
Ah
He asked for a question, I gave him
Int = int
i'll simplify it later. gtg now
Cya!
Hahaha
@remote widget ๐
Waiting for my turn to get promoted too 
๐๐๐๐ฅณ๐ฅณ๐ฅณ
Hahaha
What have you been up to lately, eh?
Same
Got myself some bread and fika (Swedish word)
I wish I had more time and energy for personal projects right now, I'll get a break next week so I'll probably get a fair share of stuff done
def hunter(uwu: list):
largest_num = 0
second_largest_num = 0
for i in range(len(uwu)):
if uwu[i] > largest_num: largest_num = uwu[i]
for j in range(len(uwu)):
if largest_num > uwu[j] and second_largest_num < uwu[j]: second_largest_num = uwu[j]
return print(f"Largest Number: {largest_num}\nSecond Largest Number: {second_largest_num}")
uhh @remote widget
Ooh, looking forward to your projects
Hmm, why i tho
idk, I was bored
cuz why not
no
Why tho
idk, I'm too lazy to edit the message or open vsc
Me who writes code in mobile: 
uh, I cant even read indented lines on phone
๐
Lmao I'm used to it anyways
idk, thats the first method I could come up with, maybe not the fastest code to solve the question
WHY U DO THIS
...
for i in uwu:
. . .
what
huh?
lol
Why not directly iterate through the list
no
Why
because no
Use enumerate if you need the index
Why ๐ฅบ
range-len idiom bad
stop annoying otherwise I'll start calling you with a weird name
l1 = [1, 2, 3]
l2 = [i for i in range(len(l1))]
๐ฅบ
yโall are something else
cringe
Ik
Can I call you with that annoying name though 
Sure, ig
niceeee
if that is child friendly
ig not
Lmao depends on the name now
oki
bruh
Hello Everyone... Today I want to share my walkthrough video of my Azure Project... Please DM me any improvements...
https://youtu.be/mpHKGFnxKY8
This is a walkthrough video of my Azure Project on Loan Approval using Azure Automl then deploying it on Azure container as well as Azure Kubernetes Services. Also create a Flask App which is hosted on Azure Web App.
I can't demonstrate properly because my subscription is disabled because I have consumed all of the credits which were given to me...
๐ She is just kidding dw
do anybody here know the song called "Brividi" by Mahmood and Blanco?
how can't you know
Cz I don't listen to English songs much
or how can you not know
I am Indian haha
Idk, there is an english song called Jalebi Baby too even when the word Jalebi is Hindi
do not say stupid things pls
๐ ๐
Just stating the facts bruv
there's the word baby inside, it's still understandble
OFFICIAL MUSIC VIDEO OUT NOW: https://tesher.lnk.to/JBDeruloVid!YTC
STREAM & DOWNLOAD MP3: http://jalebibaby.teshermusic.com
Make a Jalebi Baby TikTok or Reel: http://jalebibaby.teshermusic.com
CREDITS:
Singing/Vocalist
- Shweta Subram - @shwetasubram
- Neha Sharma
Tesher, Jalebi & Jalebi Girls Artwork by:
ZHKDesigns - @zhkdesigns
Video by:
...
and brividi isn't an english word
so stop it
Ascolta โBrividiโ http://island.lnk.to/brividi
โบ Segui MAHMOOD
https://www.instagram.com/mahmood
https://www.tiktok.com/@mahmood
https://www.facebook.com/MahmoodWorld
https://www.twitter.com/Mahmood_Music
โบ Segui BLANCO
https://www.instagram.com/blanchitobebe/
https://www.tiktok.com/@blanchitobebe
Prodotto da Michelangelo
https://www.inst...
Okay bruv
listen to it, I really suggest you
ultimate crossposter 
?
Hi, everyone! I made a small project which I want to expand in foreseeable future. It's a CLI app that lets you hide information inside images, check it out if you want and let me know your feedback, https://pypi.org/project/imgrerite/
seems damn cool
@jovial island u thinking of adding a public, private key system?
to prevent anyone decode the text or smth
thank you :)
exactly, I want to add this key system and further, I want to let users hide images and executables too, for time being, it just lets you hide texts
๐
damn cool module btw
this is a major boost, I'm very new to python specifically new to creating projects
Oh, well I got a few suggestions
add the build files to gitignore, like the egg ones so that they don't get pushed
oh I thought about this, but I was afraid to do so (I'm new to git too), thanks haha
also, can you point me to a resource to read more about this 'key' implementation?
would they be executed? when the kmagr opened
bruh spelling
image
files added in gitignore wont be pushed to git, they will however function properly
of course no, it can harm the host system that way if the executable is malicious, I won't implement it, but I'm sure that sort of program can be written this way
the public and private key one?
yeah
yeah that would be scary
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.
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.
Oh wait nvm
I already posted that
I think public key implementation isn't much complex, private key seems to be some good amount of work (I need to study more on this)
cool!
why tho
@remote widget
Go on
is this really practical? like its really easy to make and use but idk if its good to use https://github.com/ksIsCute/automatedHelpCommand/blob/main/help.py
discord.py automatic help command cog, use brief="" for the help command, if it matters. use help="". - automatedHelpCommand/help.py at main ยท ksIsCute/automatedHelpCommand
!d discord.ext.commands.HelpCommand exists lol
class discord.ext.commands.HelpCommand(*args, **kwargs)```
The base implementation for help command formatting.
Note
Internally instances of this class are deep copied every time the command itself is invoked to prevent a race condition mentioned in [GH-2123](https://github.com/Rapptz/discord.py/issues/2123).
This means that relying on the state of this class to be the same between command invocations would not work as expected.
its all in an embed and a group, aswell as alot more appealing
Well I never really used 3rd party modules to make help command anyways
Always used the classes
right
Am I the only one who made my own help command lol
As in using the command deco?
i used too, now i just code automated stuff
I used to do that in the start
Yeah
https://github.com/ksIsCute/Rocket this one has a normal one
this happened
but deco for newbies or someone like me lmao
I dont even write half of my code, my intellisense (takes 1 gb ram) writes 3/4 of the code for me
Facts
lmao
What was the command for embedding github code with link for python bot, i forgot
Wym
I didn't really understand yr ques tbh
this?
or this
None of those
Nvm
it takes permalinks with lines ๐
probably utilise the github api or bs4 if you mean something like what python bot does
Yeah that, I just wanted to embed smth here, I just forgot how to smhh
!pip pygithub
this is something i would use
Nvm, I really meany something else...
could you explain what you meant by the embed part?
Ahh its fine babe, no worries
alrighty, i assumed that you meant something what @clever salmon bot does upon posting a link
Could be that it shows the line text when u specify the line? Idk
Ah, u mean that it removes the embed or smth?
Nah, it shows the code from line numbers
Yea
what i sent does the same...
you just need to do some slicing stuff with the content
Not a command, it does that on any message containing a link with line numbers
There
As long as it fits
Hmm it didn't show
Too long
ignored in this channel
Anyways, that is the code which does the thing
its just 32 lines tho
i use it its pretty good
hey can anyone help me i need someone to run this code to see if it works https://paste.pythondiscord.com/mopanevidu.py
bot/exts/info/code_snippets.py lines 244 to 250
async def on_message(self, message: discord.Message) -> None:
"""Checks if the message has a snippet link, removes the embed, then sends the snippet contents."""
if message.author.bot:
return
message_to_send = await self._parse_snippets(message.content)
destination = message.channel```
This is mine https://github.com/Dark-Light007/Dark-Light/blob/6133dd7cf49d6fd38338092500015e146997037b/cogs/Help.py
oh cool
https://github.com/ksiscute/rocket this is my old one
json
Who even creates a hardcoded help command nowadays
imagine creating a slash help command manually
ikr
Uhh, I dont have the patience
kakashi/bot.py lines 13 to 20
class Kakashi(BotApp):
def __init__(self, token):
super().__init__(
token=token,
intents=Intents.ALL,
prefix=when_mentioned_or(PrefixHandler.prefix_getter),
help_slash_command=True,
)```
waits for something cool
@command(name="ping", description="Sends bot's latency", aliases=["latency"])
@implements(PrefixCommand, SlashCommand)
async def ping(context: Context) -> None:
"""Bot's Latency"""
await context.respond(
f"๐ Pong `{round(context.bot.heartbeat_latency *1000 , 2)}` ms !"
)
``` ๐ฅ slash and normal commands in a single function
0.65% java? truly a major sin
Yeah I know
lmao ive been trying some stuff so i can work on discord rpcs
hi
I was redirected here, they said you can help!
Forwarding my question
It's just that my teacher sent me a file (4.63mb; exe, apparently just a deliberately broken file). No code, no information. The only thing to do is open it. The word (musical instrument) should appear in the console.
I've tried ALL methods, but nothing comes up. I started to think he was just playing a trick on me. Does anyone have any ideas? I will be very grateful.

I don't think that there's much to do other than ask your teacher who supposedly sent the file.
I also wonder if the teacher actually sent it as opposed to a forged email or such containing a malware. exes without context are always quite suspicious.
send file
is it .exe
is this an assignment or a game, like, fix the broken file
@pearl birch, gimme deez filez
This is a task, there are 25 of us, in theory, no one has managed to throw it off yet
Right here?
dm's
no hints
it was sus at first, but it's just hard tbh
i would be wary of downloading and running exes regardless of whom it was sent from
ask your teacher if he indeed did send one, and, if yes, you can go ahead and try to run it
but i suppose it's too late now? you might want to check with him and if he says no, he did not send it, you might be in trouble
WHY
logging.basicConfig(filename = 'server.log', level=logging.INFO,
format='LOG> %(message)s')
def connectionThread(sock):
while True:
try:
client, addr = serverSocket.accept()
except: #handles disconnect error
logging.info(f'An error occured.')
break
client.send("NAME!".encode('ascii'))
name = client.recv(1024).decode('ascii')
user_names.append(name)
clientList.append(client)
logging.info(f"{name} has connected with {str(addr)}")
logging.info(f'The name of the client is {name}')
display(f'{name} has joined the chat room.'.encode('ascii'))
client.send('You connected to the server.'.encode('ascii'))
l = pwn.listen(9080)
sock = l.wait_for_connection()
t = threading.Thread(target=handle, args=(client,))
t.start()
def display(message):
for client in clientList:
client.send(message)```
Theres one half
def handle(client):
while True:
try:
message = client.recv(1024)
#Testing quit statement
if (str(message)[-6:-1]) == "/quit":
client.send("You left the chat!".encode("ascii"))
index = clientList.index(client)
name = user_names[index]
clientList.remove(client)
logging.info(f'{name} has left the chat room')
display(f'{name} has left the chat room'.encode('ascii'))
user_names.remove(name)
client.shutdown(2)
client.close()
break
else:
new_message = str(message)
logging.info(new_message[2:-1])
display(message)
except:
print(client)
index = clientList.index(client)
name = user_names[index]
logging.info(f'{name} has left the chat room')
display(f'{name} has left the chat room.'.encode('ascii'))
clientList.remove(client)
# client.shutdown(2)
client.close()
user_names.remove(name)
break```
Okay more like a third
try my code
def main():
global serverSocket
serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# serverSocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
IP = '127.0.0.1' #localhost
serverPort = 60010
serverSocket.bind((IP, serverPort))
serverSocket.listen()
connThread = threading.Thread(target=connectionThread, args=(serverSocket,))
connThread.start()
# Waits for it to end
connThread.join()
serverSocket.close()
print("Server has shut down.")
print("Server has opened.")
clientList = []
user_names = []
main()
connectionThread()
your doing a chat room?
Where would I put in though?
Yes, using tcp and sockets etc
I've got two threads going
a exe that does just that shouldn't be more than 1mb
try my code
dm me the exe
Where though?
general
@light fractal ```py
from pwn import *
import threading
def thread(socket):
#client handling
while 1:
l = pwn.listen(9080)
sock = l.wait_for_connection()
threading.Thread(target=thread, args=(sock,))```
connect from another instance using soket
Hey @light fractal!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
lol
Hey @light fractal!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
lol
Where do I put this? At the start of the program
Or under the threading function
replace the program, client connect handling is in the thread func
Sorry I don't get what you mean by that
yup okay
sorry
Spongebob
g++ filename
you'll get an exe
I forgot run & compile command
google it perhaps
g++ -o myCoolApp filename.cpp && ./myCoolApp should work
Tell me what is this show
Lol Mr Robot clone it claims.. a hacker show
quick question, if i am learning an programming language ( and in the case of python its libraries) should i make notes about things like variable types etc. ?
