#ot2-the-original-pubsta
652 messages · Page 79 of 1
but if you need to quickly slap together a CRUD app because your job needs a registration system, it does seem quite nice
import gpt3
import typing
class AIResultContainer(gpt3.GPT3ResultContainer):
def __init__(self) -> None:
super().__init__()
def get(self) -> typing.Any: ...
class AI(gpt3.GPT3):
def __init__(self) -> None:
super().__init__()
def run(self, value: str) -> AIResultContainer: ...
def program_ai(ai_pool: list[AI] = [], i: int = 0, this: AI) -> None:
ai_pool: list[AI] = ai_pool
i: int = i
while True:
new_ai: AI = this.run("Program an AI.").get()
ai_pool.append(new_ai)
program_ai(ai_pool, i, ai_pool[i + 1])
i += 1
if __name__ == "__main__":
program_ai([], 0, AI())
The better question might be did gpt3 write that 👀
AI writing AI to write AI 😳
is there any good wallpaper site / app for windows ?
Google, pretty much
i mean going out there having the possibility to filter and look for specific things at high resolution
googling mostly results in bad stuff and i need to browse for ages
Linux, yes
any1 game jam???
Ha... went digging in metrics. Found the day I switched my keyboard to save the health of my wrist.
That was a brutal month
what is that
ha
words per minute typing speed.
what'd ya switch from & to?
That graph didn't start to bounce back up for a good two weeks
From a standard WASD full-size to a Kinesis Advantage2
let's actually
lets
oooooooo never saw one in person, or any board of that type
It was a "small" learning curve
send the link
nvm im learning python
how do you write code for the initial value in JAVA
epic 
oh yes. it's j1e
in my banner? yea
what battery should i get for a 3W bt amp to last for a couple hours?
lmfao what
yeah volcyy keeps claiming that my late hamster humphrey died in a drive by or by drowning
humphrey passed away of old age at the ripe old age of 3
lmfao
Hi i need help with kali linux i want to know what is the deafult user name and password
root root perhaps
its kali kali
i know it thank uyou yea its kali kali
root root is for slackware sorry
another q where can i find black eye
not sure
ok thank you
A few months ago I found this website that allowed you to extract the "best part" of any song. Basically the chorus. Anyone knows which website this was? I plan to work on a similar project.
Hey guys , im trying pick a subject for college . The module is machine translation , would this mainly involve machine learning , learning about AI etc... ?
You should look at the module contents and learning outcomes
We have no way of helping you with this
Ahhh 'Merica
I am sick if seeing so much memes on America
We can't help that we are the best
I wonder what would be the meme content in murica
Also America
Geography probs
Y'all have sick ass topography
Hey buddy, that isn't really appropriate language for the server. Would you kindly remove your message?
Moar boosters
🕵️♂️
wth is the channel name :P
Any ideas for how I should make my cryptocurrency price go up normally, I though about adding a few USD every solved block but, that's kinda like not normal lmaoo
sus
?
sus
If you don't know how crypto works, you shouldn't have your own crypto...
I don't remember asking ro your criticism
You asked for something that should've been thought about before creating your crypto, so my answer is relevant
Again, I don't need criticism, I need help, don't reply unless you can either help or suggest something. :)
Like... Cryptos have value mainly by supply and demand (which is insane when it comes to things like BTC because media coverage made it more and more popular) and usability. That's why "adding a few USD every solved block" makes it weird.
There are "cryptocurrencies" with coverage, but this usually means that there exists an entity that will always keep the minimum price. This makes it centralised and based on trust into the entity that covers it.
You're a private person, ergo no public trust. The coins probably have no real use (it's really hard to make crypto work even for bigger players, so given you don't know some stuff, I assume you didn't plan for it either). So it's just "my coins cost X, you can buy them from me but I cannot guarantee I will ever buy it back"
You are asking a ridiculous question
Don't answer it then :)
I wasn't planning to
💩 is my fav
i see



we need your vote, for a new community day.. one with no tyranny or order
make your voices heard ~
@lucid osprey ag2 ended in "oblivion," an ending achieved after 7 days of inactivity
okk
what is anaguild? @pastel nest
an inside experiment of cat devs, where we tried out different governments (part 1, anarchy; part 2, democracy) in a private discord server and just fk around lmao
they all ended badly
part 3 never came, although this server might just get anaguilded if enough people vote
which can be helped because the most voted option is ofcourse going to be implemented by the mods right? /s
lmao yeah
no mod day would probably never come, since this server has 240k+ members and like tons of trolls coming every day
ngl, this server could use a polls channel (where the polls are made by admins) for server changes based on the majority opinion and preference.
240k already?!
last I checked it was 205
!server
damn
lol yeah, almost 250k
yep, we're growing exponentially
ye
ahh but isnt the server anarchy anyway.. there is one holy mod tho
lmao, kind of, we were at first decentralized but then squid sorta pulled a coup d'etat and became dictator
oh boy
and u lost quite a lot of power it seems
i didn't have that much power in the first place, we all didn't, we were just a team working together lol
decentralized
ah ohkay
but that was the past
i did create the server, but there're also catbot admins and github admins
ahhh
but i mean its still kind of decentralized with squid having powers and others not
wait fuck devs have more power than me
duude
I just checked out your website, its dope
thanks lol, i haven't worked on it in a long time
i'll restart learning web dev soon
I really really liked the card concept and how it moves when hovered over
also the social logos expanding smoothly when hovered over
how'd you get that to work?!
lol tysm! the socials are easy, i used some transition css properties along with state change when hovered over:```css
#contact-icons img {
width: clamp(35px, 5vw, 150px);
box-sizing: border-box;
transition-property: width, opacity;
transition-duration: 200ms;
transition-timing-function: ease-in-out;
}
#contact-icons img:hover {
width: 6vw;
opacity: .7;
}
```and the sliding uses transformation transform: translateX(1vw);
for left slide to right and right slide to left, i just used the pseudo-class :nth-of-type(2n)
transition-duration is epic
ooo i didnt know transition timing function existed
epicc
@vague shadow I just merged that paginator into my feature branches 👀
that was probably object
he did that one day
pls use yellow on hon (python) works betta
yeah changed the background hue 👀
hmm perhaps
invert color should get an either orange or yellow color
:))))
fucks up the background
he is saying to have it in python logo color scheme 👀
blue/yellow
yup
hard work 
tbf now that aph said it i think a blue/yellow coloured one would look even better👀
idk ill have to think how to get yellow with overlay and maintain bg tinge (picsart is not a good tool... doesnt directly allow to change hue of a specific area)
aahh ohkayy
!pstream @naive finch
✅ Permanently granted @naive finch the permission to stream.
since he's our video helper
280x6 and had to hold a fart in throughout the set which made it 10x harder

holy shit this is some trash quality, think my iphone camera is having an aneurysm
lol very random
Your name doesn't adhere to pep8 naming guidelines!
XD
potato.py
Nickname. Module names should be lowercase :P
How i can do 1 sec between this ?
The way I know off the top of my head is to use time.sleep(1)
thanks
magic
looks like a pretty quick scan lol
nice one
Does anyone have an intermediate programming ideas for me?
heres one, dont crosspost
yes sir sorry
u use cloudflare?
@grim seal DMssss 😔
@jovial island here?
sorry i was talking about the education system
i will read this now
it's just the why
oh actually can you link it again?
in short: the coder wants to brag that he's better than you https://security.stackexchange.com/questions/224971/why-do-viruses-that-wipe-boot-sectors-exist
or politicalo motives
but: it can also be, to disable you to access online accounts
to commit identity theft
id like to say that i know for sure that i have no malware or viruses on my computer
i run ubuntu and ive heard its pretty safe compared to windows
i know the best saftey measure is to make sure you dont get it in the first place
like not going to suspicious websites make sure the domain is the correct one and not some knock off
I run a nonlicenced windows version that is activated, so I probably infected my machine on my behalf
because of games
because linux might be great, but for games it sucks balls, you need to many things to run stuff properly
yeah thats the sad ting about linux but it might be less of a problem in the future as more developers make their games cross platform
im not Jamaican by the way
I didn't assume^^
I am not Betageuzian by the way
well its just i said ting
and thats something they do
anyways
im going to try and make a browser rts game
so im learning javascript
i want it to be similar to starcraft 2
also only 2 types of resources?
gas and minerals
but i might change that
not entirly sure what i want to change but i might brainstorm a few ideas
beer and crackers
to set you apart
i was thinking i could do like space. ships and asteroids. or maybe cells and you could customise your cells by literally consuming other cells and gaining their abilities or destroying them for energy
im liking the potential of the cell idea and it would be nice and simple to represent visually
like i was inspired by this video which taught how the immune system works. It was very entertaining. Some cells had the ability to reinvigorate tired cells to fight against a infection and i want to use that concept in my game
yes but its a more in depth rts version of that
ah ok^^
in the mean time I search for a song I only get some words right
FLER G-HOT - AGGRO - NACH EIGENEN REGELN - NACH EIGENEN REGELN EP
Fler, G Hot "Aggro/ Nach eigenen Regeln" aus der EP "NACH EIGENE REGELN" (2005)
KAUF'S DIR:
http://amzn.to/x6CVfS
http://tiny.cc/llu5aw
Aggro Berlin Label Nr. 1 Playlist auf Spotify:
http://open.spotify.com/user/1125411677/playlist/0L6jizDOamrXaVhViO4mls
Sido Trilogie Playl...
now i need it without some intro 😄
but I'm happy I know the title
why make it in space tho, why not like your inspiration in a human (or other animals) body?
two separate ideas
either space with asteroids or cells inside a body
not really sure which one i want to do yet
do you intent to make a story?
for right now i want to focus on the gameplay of it and then a story later
huh?
ah ok
@jovial island will there be "races" of any sort?
or factions whatever
truth be told im terrible at making up game ideas but i tend to figure it out. Just learning js right now. But if you have any ideas ill consider them.
had some kubernetes question, so tried to DM you but you had dms closed
or i am blocked 😔
i think that having different races will make it more interesting.
@jovial island in space I'd consider factions as valid (some that are not used by pop culture), in a body I have no idea
they can have their specials like in AOE(2/3) or enterily different mechanics
(like sc2)
lol
rockroll
hows this for a race concept. A race of artificially intelligent robots designed to help propagate the human race throughout space. Eliminating any threats to the human colonies. They setup the initial infrastructure of the colony. Guiding/protecting the humans from birth. But here is the catch. The robots have a design flaw. They are overprotective and actively seek out threats which then find their way back to the human colonies. This spells trouble for the humans. Sadly some colonies will die because of this but a few survive and take refuge to the more curious alien races. In the game you can either play as the robots, humans or another race.
ah yeah I have them off, feel free to ask here though
rock n rock rocck n troll
never gonna give you rock
I find it ok 🙂
thanks. Somone on gamedev discord ripped it apart though.
like SG-1 but reversed haha
and without a fourth player
@jovial island I had bad opinions on HOTA when it was in the babystage (homm3 fan mod). I must say I was very wrong
so keep in mind maybe when your product is finished an refined they are wrong as well
thanks maybe ill try the idea and see how it plays out
sc2 is just a drama with skirmish mode
Not a rock roll
https://tinyurl.com/54c27aps
Definitely not a rock roll
http://dothezippermerge.org/
I can verify that.
Yeah it's just an interesting article about traffic
https://www.youtube.com/watch?v=_WPLyrYgAFc
definitely not a rock roll™️ 
MAAAAAAAA
listen to it for 10 seconds
you will experience a feeling of euphoria
(you're dying)
i listened to it for 5 minutes
feeling great rn
thats asmr
thanks
Started to read Robert Martin's... Clean Code. Revelations go from first chapters.
Thankfully at least some things I knew
But some things I failed horribly
Apparently one can get a sudden physical work injury while being a programmer. My work integration trip proved this
if i type the wrong way for a couple of days
my hands pain so much i cannot use them at all
i keep proper posture now
and im 13
also the main symptom that things are bad is that the skin below the pressure point (where all the pressure is exerted in that posture) is red and numb
....like it is now
I had real problem with hand, tunnel syndrom
thankfully I solved it
just bought a big enough mouse for my hand
That's not "sudden", that's why I added that word
worked miraculously. all pains dissapeared
Guys does tabnine make vsc laggy
not a rock roll, what.
I feel this, work mouse is a small af amazon basics one
Cramps my hand everyday
Then i come home to a yumongous corsair and it all feels better
nice lol
what terminal?
hmm
how did you get the dropdown thingies
yes pls
o yea 1 sec
done
installing it now had to reboot
lol
it's uh
it's crashing my terminal
ah fixed it
lol you're good
@jovial island this is nice ty for sharing
cant you just bring a nice mouse to work and use that? I dont think theres anything against that.
people are gonna get mouse envy and we dont want that
The problem with governments ruling over large groups of people is that trust goes away and then they have to have rules about everything which is very restrictive. But if we have smaller groups of government that know the people relatively then the people are more free and in some cases more protected.
thats not to say that there doesnt need to be one central goverment but smaller ones should exist
What if they fight me for it
lol idk bout that maybe a buy a nice one but not that fancy?
The hard thing about making an browser rts game is representation. Units and structures need to be distinct enough to tell them apart at a slight glance, but id like it to be simplistic which is hard to do.
its not that i want it to be simple its that i myself dont have the talent to make something look good if more complex
a quick search and i couldnt find rts games similar to sc2
i think i need to do the cell idea but instead of fully committing to realistic ideas just take what i want
just to be clear this is an rts and not some arena game like agario
https://www.logitech.com/en-gb/products/mice/m590-silent-wireless-mouse.910-005198.html?crid=7 I have this one at work
And keyboard with unifying receiver as well. So I configured one receiver to be mouse+keyboard for work computer and keep the other receiver as mouse-only for private computer 🙈 (even before the pandemic, I took the work laptop with me, now I mostly work remotely anyway)
quick question how do i set my window icon
im tried but just cant get it to work
idky
just tiny brain
do you have an idea for a game?
that youd like to make
im interested in teaching people how to code so they can make thier own games and applications
i do not Due to the fact that me and a friend are planning on just learning python and becomming more expreinced ith it while we wait for game jam 33
but some private lessons hmmm
eh nevermind im not really in a good state to do it. but if you need help with a specific problem just ask and i might know how to help
lmao kk
i myself am terrible at coming up with game ideas. I enjoy coding alot. Ive made tetris, that was a lot of fun. I want to make something my own however.
i made tetris in lua and love2d https://github.com/MonkeyToiletLadder/Luatris
if your interested in making games id suggest looking at pygame or arcade
or try pyglet
just let me know when you want to talk.
Sorry wasnt paying attention
but like i said just use pygame pyglet or arcade
Im planning on making a arcade style game after my current project
doesnt really matter which one you choose
alright cya
@fickle moss But, yeah, I used to do archery. (If you're into archery, I shot an Olympic-style recurve bow.)
OOO
i always wanted to know more about archery
but
its not that popular in india
There were a few archers from India at the Tokyo 2020 olympics
It's a pretty cool sport, but it takes a lot of dedication to get really good
I was never really good, although I was doing quite well for a period
it is not as popular as cricket.. but it is well decently known in certain places iirc 👀
if to translate from indian english to regular english
what means "Quote"? (context: freelancing web site)
if I guess right, "quote" is translated to "bid"/"proposal"
oo
Not really just Indian English I guess
huh. all right
2 year battery!
that sounds cool
and menacing
are we living in a simulation
no we are dying
every day of our lives
we get closer to our demise
#TechnicallyTrue
every 60 seconds in africa a minute passes
you know if you stand on the poles of the earth for 1 day you'll have moved 0 meters but people at the equator will have travelled 12472 km
inertial frame of references are poop, use the (idk which frame to use)
There is no universal frame of reference
then you are just fat asf
LMFAO
lo
Is it possible to derive the tangent of an angle without the unit circle or any of the other angles and side lengths?
i.e. using only constants/ratios/equalities/algebra
@jovial island aight, from #community-meta 😄
about modmail bot
tldr I don't like any of the ones that exist, so I'm writing my own
The modmail bot should be simple, not like the others that have many decorations or special ones.
@vapid maple I see it as a simple bot (I think it is understood)
Its mostly simple, but with a few things
If you just want modmail purposes, you can use it, and it should just work
but, if you want additional features that it doesn't provide, it will have a way to add features to the bot without needing to write a whole new bot
An addon system
A subset of this addon system is the plugin system, which allows adding files like discord.py cogs to the bot.
And these cogs can be supplied from a github respository and added automatically
@loud ivy what database does your accounting system use, do you know?
I just saw a little.. I think it's SQL, but i dont what kind of SQL.
so currently how are you getting your data in Excel?
From the build-in software by the vendor, so i export limited stuff by the menu.
is it quickbooks by any chance 😂
Nope.. just a random vendor you wouldn't know..
Haha
So, in order to get data what I want i have to make a request to IT department.
But sometimes they send me the wrong stuff
😂
ahhhh i feel your frustration lol
Hahaha.. yup, but the IT staff will let me to get these data what I want, as long as I have the knowledge about our company database and my supervisor know what I want to use these data for.
I'm kinda curious. If you dont mind to share, What industry are you working in?
what's the new trend of putting the heart emoji after ur name?
@loud ivy did you see? so I can delete :P
I copied it from one of my customer's emails lol #voice-chat-text-0 message
my nickname elsewhere:
O.o
see I show restraint here 😂
use the taylor series expansion of tan(x) maybe
the one for tan(x) has weird coefficients which i dont remember but wtv
easily googled
@lost tapir is nurses/nurses2 avaliable in pypy? or do i need to download the repo
pypi'nt
i might make a tui browser with it. selenium might have all those stuff for me.
what i actually want is mouse support 
tests/conftest.py line 28
"#What type of .env supports comments?",```
LOL There is no "standard" that I found
adding tests to what I just rewrote
But two of the loaders I've used in the past had interesting sideeffects with comment-like lines so when I wrote my own I said "I want comments"
yeah
i use comments sometimes to disable configuration variables
herm... i don't think using tempfile may be possible for a zip
or if it is, I have no idea how
I wonder if I could just make the test download it
You could. What are the requirements of the zip file?
i mean
Darn it, I missed it. 😂
it literally downloads it elsewhere in the code 😛
and its a zip file of a repository
from github
Oh I see
import os
import zipfile
import tempfile
try:
file_desc, path = tempfile.mkstemp()
with os.fdopen(file_desc, "w", encoding="utf-8") as temp_file:
temp_file.write("Hello there.")
with zipfile.ZipFile("arl.zip", "w", zipfile.ZIP_DEFLATED) as ziptarget:
ziptarget.write(path)
finally:
os.remove(path)
was the starting framework of creating a "tempfile" zip I had 😄
But if it needs to be the git repo, then it would be easier to just download it for the test I suppose
.gh repo onerandomusername/modmail-addons
Addons for https://github.com/discord-modmail/modmail
eh, since it only needs ~4 files for the test, and two of them are folders, probably will just make a zip file
was the starting framework of creating a "tempfile" zip I had 😄
I really hope not, since you named the filearl.zip😛
all the dozens of micro files I make get named for who I'm chatting with
heh
if I didn't do that, I'd commit them accidentally since I usually don't leave my current project folder to tinker
tests/modmail/addons/test_utils.py lines 24 to 32
@pytest.mark.parametrize(
"source", [AddonSource.from_zip("https://github.com/discord-modmail/modmail/archive/main.zip")]
)
@pytest.mark.asyncio
async def test_download_zip_from_source(source: AddonSource, session: ClientSession):
"""Test that a zip can be successfully downloaded and everything is safe inside."""
file = await download_zip_from_source(source, session)
assert isinstance(file, zipfile.ZipFile)
assert file.testzip() is None```
so apparently I'm already testing downloading zips.
Well then
An aside: can't run the test suite more than 2k times in an hour, since there's no github token used yet 😄
The question is which repo do I test from for plugins downloading, my own personal plugin repo or something else.... hm
ah shit how am I gonna do this
wow
just found a bug, thanks!
lol
lmfao
umm
can someone suggest me videos for conditional constructs of if else and nesting
so i can easily make progreams
i have exam
pls
someone
omg
thnx u so much
can u give one for scanner class too
and ty u so much
it has conditional constructs for scanner class?
oh
this is great tnx u so much
finally found scanner class
btw we use string for a sentence right?
i am kinda new to this stuff
sentence with multiple words
and if i am not annnoying can i ask one more ques when u print u assign value first then put these " in printing
like system.out.println( "z = " + y )
these are used for the assigned value
?
oh
it's not on pypy... yet -- maybe when I feel close to a version 1.0
it's stable, the api might change though
also which char should i use to render image
my image and video widgets render with half-blocks by default
to double the terminal resolution
alright, thanks for the suggestion
thats really less lol
it's just for 5 days
and this much trackers...
Hmmm, you gave me an idea to make an extension collocting unique trackers. And maybe comparing them to pokemon. Like google's stuff being Zubats and similar annoying common pokemon (Zubat for some general Google tracker, other annoyances for more distinct Google trackers). Then some weird trackers from sites nobody knows about would be some new get pokemon that barely anyone knows. :D
I'm too lazy to actually to such extension, but I like the idea
If that ddg extension shared some info, then it would be easier
._.
I still haven't done my 2 months old idea xD
@lost tapir can nurses2 grab PIL image objects as image
can i do
AutoGeometryImage(
size_hint=(1, 1),
path=PIL.Image.open("image here"),
)
alright thanks
the path will get converted to a string anyway, so technically you could just use path="image here"
@lost tapir btw will widget update if image updated
yes
well, not if the image is update on disk
if you change the path though the image will be reloaded automatically
thanks for that 👀
lmaooooo
i love this
bruh
but ok
hello-python.py speed run when
lollll
This is so dumb I love it haha
class ImageButton(ButtonBehavior, Image):
pass
ty
i had a video button example but never uploaded it
that'll be cool, like i can do something like pause the video
i used it to make this:
cool.
srsly
32G of that is the rocket emojis
lmao
@echo "It takes just a afternoon to build this LLVM optimised:rocket:, memory safe:rocket:, robust:rocket:, minimal:rocket: and configurable:rocket: project, please wait for the awesomeness :rocket:"
xD
Elo
Encrypting every aspect of my PC.
Encrypting traffic
Encrypting file system
Wiping fully usbs
A bit of paranoia, but so nice to scratch
Encrypt this information too
Lol
Do you still install software by other people, such as security updates? Do you run on hardware you haven't built yourself from the chip and firmware level up? Congratulations. It's still not enough.
bad argument
Do you not make your own hardware? Smh.
ikr
make your own energy™️
i dont care that u cant do it
just do it
- the manager
Can someone give me hint for the answer to "Why are standards important for protocols?" (general protocols, not specific to one topic like diplomacy or networking)
so you don't get 12831903 implementations of a protocol that are all different
Mmh, so an answer could be: It's important, because if you have no standards, things or people following the protocol in "their" way, couldn't communicate with each other without mayor problems?
is this for some course or something
It's just selfeducating, a question from a book, no homework
Computer Networking A top down approach
yeah, that's a pretty good answer
Is a law in some country a protocol in a sense?
¯_(ツ)_/¯
Not realllllly, a protocol refers to a method of communication, laws aren't really about communication they're just a set of enforced... regulations and expectations I suppose
i guess a law could be a protocol, but not all laws are protocols?
Yeah I'd probably agree with that. Since some laws dictate communication in some sense, but don't necessarily have to
unclaimed
sms_dtm <- DocumentTermMatrix(corpus_clean)
after running above code in r studio I am getting
"Error in simple_triplet_matrix(i, j, v, nrow = length(terms), ncol = length(corpus), :
'i, j' invalid"
anyone please help me
NO MULTIPOSTING
what are the characteristics of functional programming languages?
from wikipedia:
In computer science, functional programming is a programming paradigm where programs are constructed by applying and composing functions
my thoughts:
programming languages generally work by constructing function/statements, for example golang. but some people say golang is not a functional language
Well, GoLang would technically be of the functional programming paradigm afaik but there's also like "pure functional" programming languages like Haskell
I'm pretty sure just about any modern language is of the functional programming paradigm
Python included
nah
Python has functional elements
"function" as in def is not functional
it doesn't mean those functions
also CC: @exotic hound
I'm not understanding how Python is not considered functional
the next sentence is the key:
It is a declarative programming paradigm in which function definitions are trees of expressions that map values to other values, rather than a sequence of imperative statements which update the running state of the program.
you can see it as transformative functions
map, filter, zip, comprehensions are functional elements
it's maths type of function not programming type of function (def)
math-type functions are pure functions, though
yes. and pure functions are a functional concept
they're a pure functional concept
it's just that when most people say "functional programming", they typically mean "purely functional programming"
and technically just about any modern language is functional but not purely functional
I'd say "includes functional elements" rather than "is functional" - just as I said with python
because the elements exist but don't have to be used... as opposed to eg OOP paradigm
I mean that like Python does allow for the functional style
yep, I said the same thing
and I'd say that's suitable to say that it's of the functional programming paradigm
I'd say "includes functional elements" rather than "is functional"
because the elements exist but don't have to be used... as opposed to eg OOP paradigm [which has to be used because everything is an object]
I don't know what I'm not understanding
it's about semantics. python has functional elements and I'll keep saying only that, I will never agree to the "is of functional paradigm/is functional"
because, as I said, the functional elements are not required. you can (and most people, especially beginners) write code without any functional elements. mostly with stuff that's completely opposite of functional. - that's why I won't say "it's functional" because it gives the false idea that all python code has functional elements
my code has a lot of functional elements. my code is partially functional. it's not "purely functional" but still can be called functional... but this doesn't make whole python functional, just my code
A beginner will 100% be using some form of functional in their code, it's hard to grab any segment of code that doesn't have some sort of function
but functions are baked into just about everything that you do
Namely with dunders
that doesn't have some sort of function
again, wrong functions
What do you mean wrong function?
I've been saying from the start that def/programming function doesn't make something functional
Why not?
here
that's literally in the definition of functional
def functions are most often imperative, a set of steps
functional functions are basically transformative
as I said: map, filter, zip, comprehensions are functional elements
loops are not (unless they're "for all, do xyz" which are basically comprehensions). recursion is (because it's "take first, go deeper" or "go deep, return")...
In computer science, functional programming is a programming paradigm where programs are constructed by applying and composing functions. It is a declarative programming paradigm in which function definitions are trees of expressions that map values to other values, rather than a sequence of imperative statements which update the running state o...
In addition, many other programming languages support programming in a functional style or have implemented features from functional programming, such as [...] Python,
python includes functional elements but they aren't required, just like haskell can have side-effects monads (monads wrap such things to be functional, but what they do inside is not really functional) but they aren't required
but then what makes Haskell a functional programming language?
functions
but as I said, they're not python def kind of functions
they're maths kind of functions - transforming one thing into another
tbh I never really got monads. the rest, the real purely functional thing, I could do well, but I could never wrap my head around monads and similar concepts
and I took haskell uni class twice
I just mean that if you can have side effects in Haskell
does that mean it's really functional
or does that mean it just largely has functional aspects
monads are still functional, but not pure functions. they meet other criteria for functional 🙂
and you still have to use other functional stuff in the code
I mean purely functional
https://en.wikipedia.org/wiki/Purely_functional_programming is not a strict concept + as I said, I never fully got monads, so I cannot explain
In computer science, purely functional programming usually designates a programming paradigm—a style of building the structure and elements of computer programs—that treats all computation as the evaluation of mathematical functions. Purely functional programming may also be defined by forbidding state changes and mutable data.
Purely functional...
I believe monads basically handle non-functional elements in a functional manner. yes, it's weird, as I said, I could never fully get it
I'd suggest asking Avery when she's online
she gets functional programming better
Monads are just monoids in the category of endofunctors and such and whatnot
when my eigenfunction is misbehaving i like to use a monad to put it in shape
its so useful sometimes 😅
Monads are purely functional still
It's the explicit control of state that makes it functional
Is it ok to ask questions here?
I mean not like about python
How long does it actually take to learn python? basics?
@winter bone It'll probably get buried by the wall of text I'm about to send so #ot0-fear-of-python or #ot1-this-regex-is-impossible would be better, those typically are more active as well
oh no
I dont even fully know the basics i just came here atleast ill learn something
I have a question how do you make a functional button?
Nvm
that well depends for what you are making a button though 👀
Alright...
I feel like we've gotten this one before
Functional programming languages (starting from LISP) is basically just lambda calculus. Lambda calculus itself is pure, lawful, and deterministic, but requires a human if you want to do something with it, as it just is symbols on paper. Similarly, Haskell eventually compiles into machine code, regardless whether a function is pure or not, which is ultimately a matter of how it's run
Hello, I joined again, my other account that joined this server was banned because it was spamming links. I apologize for that but that wasn't me. It's like someone hacked into my account to do that.
I imagine it'd be best to DM @vapid maple
ok
Researching the history of MongoDB for a scientific text, the title MongoDB daddy: My baby beats Google BigTable of a 2011 blog article hits different.
i have haskull book
such skullery
any learning resources for Lua? The manual assumes that I already have prior knowledge.
Do you already know python? If so this is a decent overview of syntax and has some additional links at the bottom http://tylerneylon.com/a/learn-lua/
oh man gotta love it when people ask something in a help channel and then dont set channel notifs on
I know a bit
make a note to reply to generate a ping lol
congrats @jovial island on becoming contributor 🥳!
is there a js channel or can i just talk here about javascript
This is offtopic. If there isn't a conversation going you're welcome to start one.
i was wondering why when i run this application the output window always closes before the actual code is executed
its a nodejs app on visual studio
its a nodejs app on visual studio
wait, how's Java involved then
nodejs runs javascript
or atleast i think it does
are you wondering why im writing it on a nodejs application or why im learning javascript
the System.out.println?
all of it
ok
both go hand-in-hand with web design and stuff
you're right, my bad
you might wanna check what resource you're learning from though
its pretty easy to get mixed up between the two because they're used together so commonly
@echo fern help
I'm fairly sure that this is not, in fact, valid JS 😛
not that Java and JS have much in common except the name
why im learning javascript
you might wanna check what resource you're using
my school
lmfao
dude literally
are you paying attention in class?
but how
you've got bigger issues, you're going to the wrong school
they have an online java engine that was running my commands just fine
i heard the teacher refer to it as javascript but maybe i misheard it
yes, the java engine worked because it’s java
i'm going to hope this is true, i don't think it's possible for a school to be that incompetent, but i've been surprised before
how can i get something to run java on in virtual studio
did you install a jdk?
i dont think i did
you need that
this is why i like python more
i mean, you need to install something to use python too
visual studio for java is pretty weird
intellij is nicer
it's mostly intellij or eclipse that are used for it (I'd recommend the former)
eclipse 🤮
oh yes. that's some nice JavaScript
https://codeahoy.com/img/java_ides_dev_survey.png
nobody uses VS 😅
my school uses eclipse for java application projects usually
i dont know shit bro
same 😔
my school('s CP course) taught me Java in eclipse too
CP course? \🤔
i'm shocked eclipse has that big of a share
computer programming 
I see
schools are amazing at picking the worst ways of doing things
eclipse probably has a better deal or something, plus it runs better on school laptops ¯_(ツ)_/¯
My school doesn't offer anything related to that
Doesn't it run worse? or am I confused
competitive programming, actually
That's what I was thinking, but since when is there competitive programming course
since the 1970s
yes
taught some DSA in Java and had us participate in codeforces contests, then taught us how to do the problems we failed on
that course taught me most of the DSA I know, actually
huh, cool
up to like binary search trees
I've become the lead programmer in our robotics group
except I'm the only one who ever does anything
nobody else really cares
Yes
has it ever gotten to the state championship
I don't think so
f
its always nice when you get with a group of people that work together well on projects like that ig
yeah, everyone here is dumb
mcpi momento
well, i use pirated win10
windows updates break my computer
so much that i installed stopupdates10
You just admitted to breaking the law
well s====
my tech support guy always uses that to install WHEEEEEEEEEEEEEZ
Even if I have a full 21H2 instdrive
he uses 1909?
You have a personal IT guy who pirates for you? ._.
Dude I have a personal team of people (3) which download all of the illegal stuffies for me and the; consume them. It's like doing drugs except someone else gets them and uses them.
/s ofc
um
well thts still called doing drugs
lol
are u sure 👀
im wondering why we are talking about peeracy
Hey. In 1997 Harvard grad stud was a little mod guy
Ah yes. The one who called Scofflaw a little mod guy
There was someone who messaged ModMail after an infraction that they deserved, insisting that we "don't help people"
As if we have to help people to charge our ban hammers, or something.
Little mod, B.I.I.G. hammer
hello, is anyone experienced when it comes to microsoft remote desktop and error 0x204 ?
readthedocs.io takes very long to load, did you guys get the same thing?
my internet is good
It's loading fine for me rn
@ionic locust You've got me stumped
No idea why I had it in my head that the __init__.py played a role. I'm toying around now and having no issues calling modules from the cli with -m or importing nested modules. All without the __init__.py
Some bit of old information that got put in my head early on and has never been updated?
I was having a play around too. Seems like you don't even need them for running __main__.py
Ah
It used to be a required part of a package (old, pre-3.3 "regular package", not newer 3.3+ "namespace package").
I really need to refresh my memory of the namespace package specification
3.3 was ages ago lol
@mental idol it's important to note that having and not having an init.py does make a difference, though for most things it's fine either way
Can you define what difference it makes? I, honestly, thought my from module imports would fail without it.
Hmm.. so priority is given when namespace searching?
Otherwise, only the first (defined by python path) will be used
No, it allows you to have a single package in 2 directories
I just tested, and you don't actually
It is useful when you are splitting your pypi package but want to keep the same namespace
Which is why they are called namespace packages
They only provide a namespace for modules, and have no attributes themselves
heh. I'm on the cusp of a "aha" moment here
Been a bit since I dove into mechanics of namespaces in Python. I shall do that after dinner. My curiosity is lit
I guess the downside is a) more complex to package and b) you can't do things like from my_namespace import my_function directly?
Yeah, pretty much
Though I think it should be about as simple to package as anything else
Oh I know why I thought that they are more difficult
I was helping some person here debug their package and they were trying to do the archaic pkgutil-style namespaces when what they actually needed was a regular package.
It led to a confusing conversation jumbling PEP-420 namespace packages, pkgutil-style namespace packages, and regular packages. Worked out in the end though
Python packaging could do with a few less dials
Reading through the docs again now, seems like pkg_resources-style namespace packages also got jumbled in there too from what I remember...
It allows more freedom than is useful
That's probably why PEP 420 was proposed 🍏
can someone help me test something
@sharp spoke
View the file you want to rename (click the file name)
Then find the "Edit" icon
Then just change the filename
GitHub will walk you through the rest with choice of creating the changes in a new branch or committing directly to the branch you are on.
yeah thanks a lot it worked well 😄
please inform me with your findings
I got sidetracked with a project my partner wants for a game we play. 
The short of my reading is that I don't understand namespace discovery as much as I thought I did. So YAY more learning
'
😔
@open wyvern loved ponyo <3
ponyo <3 ham
I watched ponyo over the weekend
her father was ugly yet hot
Looked very similar to the witches in Spirited Away
Studio Ghibli is just all-around awesome
yes
you musttttttttt
ponyo is love 💙
i like how ghibli fans are here too💙
hi everyone
hello
IaI my duderson
@tulip shore lol wait that is bizarre that it worked because I just skimmed the video you linked and in that video his script ran fine without it??
but in any case I recommend the realpython article which uses a context manager https://realpython.com/python-send-email/#starting-a-secure-smtp-connection
well when i added that, that problem went away and there were some other small problems
it's the same library they're both using but realpython's code looks cleaner and better explained
realpython is amazing
indeed it has saved me a couple times from going insane at 2 or 3am
f o r n i t
"Getting Started with Command Blocks | Microsoft Docs" https://docs.microsoft.com/en-us/minecraft/creator/documents/commandblocks
didnt expect this from ms docs but ok
lol
wtf
surebuddy
aha
Every time I think I know smth
I discover that I know nothing
https://roadmap.sh/postgresql-dba
The depth of postgresql
lmao
lol
D and V will probably only get popular for making unditectible malware. Everything D and V can do are achieved by C, C++, and Go
I personally prefer D over c, c++, and rust but D was just too late to the game with little more to offer than the competitors
the language used has nothing to do with malware being undetecable
or at least, very little
using Python I can exploit a vulnerability in any system that has Minecraft Java Edition installed
0 detections on virustotal, wipes the C drive
And no, I'm not going to send the code before the skids ask
That poor C drive that you tested on
That's not surprising, now if it was a Rust drive...
I just realised I have my bone broken for a first time ever. Seems weird I survived so long without breaking anything... I had my hand in a partial cast before, but now when I finally have a broken bone, I don't have a cast. XD
Oh, I realised I might've had a broken rib before. Idk, I didn't get rtg, my father just got me excused from PE for a week then... ??? Because he said they can't put me in a cast anyway... ???
It's "funny" how now I also don't need a cast but I have meds and real medical support
I have yet to break a bone but it's inevitable tbh
I took skateboarding up again this year
My bone is not even my fault
We're making fun of a coworker who did this to me during a work game of football XD
bruh
ah ok
i do
acceptable with paneer otherwise no.
Spinach is just superior vegetable so
why
twas funny for me
tis but a scratch
lol
Spam is not permitted here

i have had 3 oof
💀
😂
I am waiting already unknown amout of time for C++ compiler to finish its job.
huh. it is so slooooooooooooooooooooooooooooooooooooooooooooooow
interesting
nice!!
clangd?
maybe you're compiling it for the first time
compiling squid first time from binaries
it always takes a lot for the first time
yeah, second time was instantaneous, that's great
make[2]: Entering directory '/build/squid/build/tools/squidclient'
make[3]: Entering directory '/build/squid/build/tools/squidclient'
cp ../../../src/tests/stub_debug.cc tests/stub_debug.cc
cp: cannot create regular file 'tests/stub_debug.cc': No such file or directory
make[3]: *** [Makefile:1518: tests/stub_debug.cc] Error 1
make[3]: Leaving directory '/build/squid/build/tools/squidclient'
make[2]: *** [Makefile:1049: all-recursive] Error 1
make[2]: Leaving directory '/build/squid/build/tools/squidclient'
make[1]: *** [Makefile:1192: all-recursive] Error 1
make[1]: Leaving directory '/build/squid/build/tools'
make: *** [Makefile:591: all-recursive] Error 1

I think I should just mkdir tests
nah, wrong
fuck yeah! i was right
Squid Cache Users: Re: SOLVED - compiling squid 5.1
hey @unique dune That's me!
I made it!!
import numpy as np
a = np.array([[(0, 255, 255), (0,0,255)],[(0, 255, 255), (255,255,0)]])
# flattening image, tho, there could be better way
b = a.reshape(a.shape[0]*a.shape[1], a.shape[2])
# making mask for each pixel
res = np.all(np.equal(b, np.array([0,255,255])), axis=1)
# reshaping mask to 2d array
res = res.reshape(a.shape[0], a.shape[1])
# changing colors if mask is True
a[res == True] = np.array([0,0,0])
print(a)
u sir are a legend @jovial island
haha thanks :D, also if you do have time, make sure to find a way to do it without flattening. doesn't seem like necessary step to me.
i will look into it! ty so much again
happy to help 😄
!e
import numpy as np
a = np.array([[(0, 255, 255), (0,0,255)],[(0, 255, 255), (255,255,0)]])
# flattening image, tho, there could be better way
# b = a.reshape(a.shape[0]*a.shape[1], a.shape[2])
# making mask for each pixel
res = np.all(np.equal(a, np.array([0,255,255])), axis=2)
# reshaping mask to 2d array
# res = res.reshape(a.shape[0], a.shape[1])
# changing colors if mask is True
a[res == True] = np.array([0,0,0])
print(a)
@jovial island :white_check_mark: Your eval job has completed with return code 0.
001 | [[[ 0 0 0]
002 | [ 0 0 255]]
003 |
004 | [[ 0 0 0]
005 | [255 255 0]]]
ah jeez done. @unique dune there we go.
yeah so the thing was i was bit more comfy with 1d array as in chunks of rgb so i tried that way to get result. so all this reshape came in.
i knew it was not required. but it made stuff easier for me lol.
you can try on bigger image to see how things go!
FINALLY SOMEONE FOUND IT FUNNY
Someone Uninstalled me 😢
rip
Whats the -y flag for
answers yes to all prompts generally
how is that spam?
it may break the on going conversation, and people here are not usually the kind to take a screenshot and spread.(atleast in this server)
Chain letters like that are inherently spammy.
News. One of next Golang versions going to bring generics!
@gaunt jacinth try server() instead of server
nice that worked
^ It returns a generator, but it's still a function
Anyone know why I’ve just woken up to 8 ghost pings?
Like where I get pinged but can’t find the message where I got mentioned
Did something happen in the last 7 hours?
there was a raid
Ah ok
Lemon's gold ingots are golden lemons
I guess this is what happens when your username starts with the letter a
I didn’t think of that 🍏
Hmm, I am trying to do components now.. what do you guys think about this form of API? ```py
components = ComponentList(ActionRow(
Button(label="Press me!", custom_id="PRESSME")
))
await interaction.respond("Ooh, message components :3", components=components)
try:
pressed = await components(lambda interact: interact.user == interaction.user, timeout=60)
except asyncio.TimeoutErrror:
await interaction.edit("Too late :(")
pressed is now the component that was pressed
how to keep this popup showing? while writing code
Just hold the Sentence
To see the info
Are you asking how to stop it from showing or how to keep it showing
hover over the identifier
You tryna making Discord bot?
keep it showing
👍 
no
Ohh
im implementing my custom event loop in a custom http server using python with the minimum amount of modules
because i hate myself apparently
where ?
wdym where
in this server

55,313
191,683