#ot2-the-original-pubsta
652 messages ยท Page 73 of 1
๐ฅ
๐ฅ
๐ฅ
big fan

๐ฅ
cackles gleefully My CLI is almost ready. All this so that I can submit a single report to a repo without having to have git installed.
self screwing up lmao
self screwing? sounds kinda sus
but isnt that what we keep doing everyday when we open vsc
i use neovim
i use spyder
fair
the fuck is spyder

yet another IDE
ah
@brittle ridge Check this out:
/tmp>printf "echo 1\necho 2\nsleep 15\necho 3" >a.bash
/tmp>printf "echo a\necho b\nsleep 15\necho c" >b.bash
/tmp>cat a.bash >x.bash
/tmp>bash x.bash >bash_output &
[1] 21920
/tmp>cat b.bash >x.bash
/tmp>cat bash_output
1
2
c
[1] + done bash x.bash > bash_output
We've wandered way off topic in general, so moving over here
that creates 2 bash scripts, one that prints out 1 / 2 / 3, and one that prints out a / b / c. It overwrites x.bash with the first of them, runs it, and while it's still running in the background, overwrites it again with the other one.
and you wind up with output that's a mix of the two - it winds up printing out 1 / 2 / c
Hahah yeah sorry bout that
you don't have to apologize; I'm the mod ๐
I just got into the conversation, hehe
anyway, I had to check my memory about bash - but yep, it's purely interpreted, and is reading one line at a time from the script, which is why that crazy behavior happens
Why did I not know about this, that's so fascinating. I wonder why it was designed like that - care to fill me in (you sound like you already know tbh)?
I have, at least once in my life, had to track down a bug where a script did something it could never do, and had it turn out to be that one process ran a mix of old code and new code
I don't know why it's this way, actually. My guess is that it's because the shell was designed first and foremost as a REPL, and scripting was an afterthought - and with that model, processing one line and then waiting for the next is the norm
Lmao that would've been so irritating because I'd assume you would have exhausted all other debugging options before deferring to something completely outside the scope of most mature implementations
it was definitely a memorable one ๐
That's not a bad call at all, I would believe that. Might have to do some googling (if there is anything to find)
If you find out why, let me know!
Hey i know this is a bit off-topic but i need help with unity
does anyone use unity?
huh
!doc numpy.squeeze
numpy.squeeze(a, axis=None)```
Remove axes of length one from *a*.
squeeze
bruh
what is it doing
!e
import numpy as np
x = np.array([[[0], [1], [2]]])
print(np.squeeze(x))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
[0 1 2]
interesting
!e
import numpy as np
x = np.array([[[[0], [1], [2]]]])
print(np.squeeze(x))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
[0 1 2]
import np
dude, i can write import numpy as np in sleep as well
how did you import np!!!!
lmao
same
the return of savage pasta man!?!?
YE
PSVM never left though
yee
he was offline for ages
@solemn panther Yeah, So RSI means Repetitive strain injury, it makes my hand feel like I don't have hands! and its like CTS(carpal tanal pain) I am suffering so two of the mods suggested me yesterday to take some precautions! (Lak and Jack)
Hope you got it
Its because how you hold your mouse and the way your posture is!

BIG OOF
github just added a new feature it's called pull request
ah yes what a new feature
that's it, github it's a thing now
Oh okay.. I had problems with my carpals too so I started some physical activity and I take care how to put hands on the desk 
Bruh that is speed
I am also practicing exercises
wow i wish i do not get anything like this
like rolling a ball under my hands
this seems liek torture
bruh it sus ๐
I am quite slow for now
big oof
get well soon
do yer exercises i g
:pepe_enter:
Well yours too ๐
@echo flower dontyoudaretodifferentiateme
d/d(@wheat rock)


ยฏ_(ใ)_/ยฏ
But yours is more pythonic 
cue the compliment battle
!e
import pyautogui
@wheat rock :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'pyautogui'
@wheat rock :white_check_mark: Your eval job has completed with return code 0.
{'sys': <module 'sys' (built-in)>, 'builtins': <module 'builtins' (built-in)>, '_frozen_importlib': <module '_frozen_importlib' (frozen)>, '_imp': <module '_imp' (built-in)>, '_thread': <module '_thread' (built-in)>, '_warnings': <module '_warnings' (built-in)>, '_weakref': <module '_weakref' (built-in)>, '_io': <module 'io' (built-in)>, 'marshal': <module 'marshal' (built-in)>, 'posix': <module 'posix' (built-in)>, '_frozen_importlib_external': <module '_frozen_importlib_external' (frozen)>, 'time': <module 'time' (built-in)>, 'zipimport': <module 'zipimport' (frozen)>, '_codecs': <module '_codecs' (built-in)>, 'codecs': <module 'codecs' from '/usr/local/lib/python3.9/codecs.py'>, 'encodings.aliases': <module 'encodings.aliases' from '/usr/local/lib/python3.9/encodings/aliases.py'>, 'encodings': <module 'encodings' from '/usr/local/lib/python3.9/encodings/__init__.py'>, 'encodings.utf_8': <module 'encodings.utf_8' from '/usr/local/lib/python3.9/encodings/utf_8.py'>, '_signal': <module
... (truncated - too long)
Full output: https://paste.pythondiscord.com/asepovuqun.txt?noredirect
!e
globals().clear()
print(globals())
@severe trout :white_check_mark: Your eval job has completed with return code 0.
{}
mine is pythonic but rusty 
so the ghost appeared in my room today again lol
this time i was ready tho
i had the knife, and when it came into my room i pounced on it all tiger woods like and killed it
it was a weird kinda ghost though, i dont think ghosts normally bleed
quickly, eat the evidence before the cops come
is killing ghosts illegal lol?
i thought it was like hunting
or do you need a permit?
i dont think thats a thing thats like calling the deer cops for running over a deer lol
it was a cyanide and happiness reference but ok
on a side note, it smells like carbon monoxide in my shower
Might have found your ghost
Bruh
Get that checked and get an alarm
There's this reddit thread about an anon that asked about ants in the house
Lemme see if i can find it
Ah it wasnt ants in the house it was postits
563 votes and 84 comments so far on Reddit
That is...insane
@proper python check for carbon monoxide and get an alarm for it
Unless this is an inside joke conversation or something
There's another Reddit post about someone I think suspecting their landlord doing something to their house (moving things). But it was a carbon monoxide leak.
CO threads are a wild ride
im pretty new to python? Where do i start?(Im a hands on learner)
prob not
you're right ma dude
your body transform your heat to carbon and gives away co2 when you breathe (prob not true)
which is a good thing?
ye
it is true lol
pure oxygen can also kill you r8
mostly not
ye
u do need a bit of n2 in air too tho
oOoOoOh
da,m
and can someone help me install msql
msql?
oh
what is mysql good for, how different is it from sql or postgres
i need it for school
ah
ye
why use a database when you can run python in disk and not memory
!pypi mysql
i installed by running pip install mysql-connector-python in cmd
but it shows an error when i check if it is connected
Silent killer is a carbon monoxide. It has no voice.
you haven't mentioned a ghost in the server before
@rare tundra sorry for the ping
did u find out how to do this one?
#help-croissant message

that's an interesting question
it was fairly straightforward with numpy arrays
In [17]: def count(a, b):
...: ra, ca = a.shape
...: rb, cb = b.shape
...: c = 0
...: for sr in range(ra - rb + 1):
...: for sc in range(ca - cb + 1):
...: if (a[sr:sr + rb, sc:sc+cb] == b).all():
...: c += 1
...: return c
...: count(np.array([[1, 2, 3, 4], [5, 6, 7, 8], [1, 2, 3, 4], [5, 6, 7, 8]]), np.array([[1, 2], [5, 6]]))
Out[17]: 2
shouldn't be too bad to translate that to normal lists
Sorry, had too much work yesterday so I didn't do it. Thought about getting to it today, but I see hsp already solved it
it just gets all slices of a which are of the same shape as b
either my humor is completely fucked or people just haven't learnt irony
what's with True.all()?```py
if (a[sr:sr + rb, sc:sc+cb] == b).all():
numpy arrays need .all() or .any(), because a == b returns an array of bools
u mean a[sr:sr + rb, sc:sc+cb] == b doesn't return True but a list of them?
!e import numpy as np; print(np.array([1, 2, 3]) == np.array([0, 2, 5]))
@dusky cliff :white_check_mark: Your eval job has completed with return code 0.
[False True False]
oh
(this is just for numpy arrays)
start row and start column
oh
"take the slice from the start row to start row + no. of rows and from the start column to start column + np. of columns"
there's 4 columns, and i want slices of width 2, so i'll need the columns [(0, 1), (1, 2), (2, 3)]
look at the first number in each group
o
how does this slicing work?```yaml
a[sr:sr + rb, sc:sc+cb]
I think that'd be
from sr (inc) to sr + rb (ex) in the first dim
and then from sc (inc) to sc + cb (ex) in the second dim
...
weird
when you see a:a+b it basically reads as b elements starting from a
i.e. 5:5+3 would be indices 5, 6, 7
so it reads a - (b-1) indices?```py
import numpy as np
a = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]])
print(a[0:2])
001 | [[1 2 3 4]
002 | [5 6 7 8]]
```
the : separates the start and end indices
so in your case, a[0:2] means indices 0, 1
the low bound is inclusive, the upper is exlusive
o
o
ye that pattern is pretty common
weird it prints indices 1 and 2 for every list(idk if I should call array here) in the first dimension```py
import numpy as np
a = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]])
print(a[0:2, 1:3])
001 | [[2 3]
002 | [6 7]]
```
ok so here you select the first two arrays using [0:2]
and then within them, you select elements [1:3] -> 1, 2
o
in the first snippet, you have only done a[0:2], which means "indices 1, 2 in the first dimension; all indices in the second dimension"
it should be synonymous to a[0:2, :]
so I can see this as
[list_of_arrays, slices_for_each_array_within_the_previous_one, the same as before but for the sliced arrays]
for 2-dim arrays, it is useful to imagine them as a grid / matrix
when you do a[0:2, 1:3], you're saying "select rows 0, 1 and columns 1, 2"
oh
0:2 on i and 1:3 on j
hehe
if you had 3-dims you can imagine the third one as depth
if you have more, it gets tricky ๐
however the slicing still works the same way
idk for 3d+ arrays am just thinking it as columns for the last dimension
you could imagine the 4th one as time, if that makes sense
in fact thats what it often is, when working with data that captures something in the real world
but the array itself does not care
as long as you manage to understand the slicing in 2 dimensions, 3, 4, 5 etc still work the same
its just not that easy to create a visual representation
i think eventually you stop trying to think of it visually because it just doesnt work
but its natural to use visual aids initially
omw to visualize a complex number of dimensions
o

i am a programmer
lmao
Does a box in github means a day? Or a week?
A single day
nope
!json
When using JSON, you might run into the following error:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
This error could have appeared because you just created the JSON file and there is nothing in it at the moment.
Whilst having empty data is no problem, the file itself may never be completely empty.
You most likely wanted to structure your JSON as a dictionary. To do this, edit your empty JSON file so that it instead contains {}.
Different data types are also supported. If you wish to read more on these, please refer to this article.
.and?
getting the reason wait
.catify
Your catified nickname is: TheLegendBeacon | แแแข | ๐
nice
i tremble in your wake
Your catified nickname is: TheLegendBeacon | แแแข | ๐ | แฆแแข
can you give me examples of something db can do that json cant?
.catify
Your display name is too long to be catified! Please change it to be under 26 characters.
lmao
can it have relation between different data?
like sql
Joins?
fast query times?
probably
100%
it can't
also json can be currupted any time
nah
sql is easy af
then you are dum dum and I can't do anything about that
my json has never corrupted, ive used it non-stop for 3 months
@fallen dome on a separate note, capatalism sins for light mode
oh god, what is this server, some think json is a database, others prefer light mode discord
im gonna take json out of my name because 1) people like you will comment 24/7, 2) in all fairness ive never used a db, only json and its worked 100% flawlessly with no error ever
and i mean when i first started using python i used excel as a db, so count your blessings
well a lighted lighter placed next to a can of gasoline wont necessarily explode
but would you do that?
hell yeahhhh! live life on the edge babbyy
jk
lmao
Recommending people to use json unconditionally is rather bad advice.
It is prone for corruption and data loss. JSON isn't designed to be used as a database, it's that easy.
I don't think it should be avoided like the plague, as it is rather easy to get started with working with files. But one shouldn't recommend it to someone wondering how to get a database up and running.
i havent recommended it
but ok
!e
import numpy as np
c = np.arange(5)
print(np.tile(c, (1,6)))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
[[0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4]]
uhm
wat
!e
import numpy as np
c = np.arange(5)
print(np.tile(c, (6,1)))
@jovial island :white_check_mark: Your eval job has completed with return code 0.
001 | [[0 1 2 3 4]
002 | [0 1 2 3 4]
003 | [0 1 2 3 4]
004 | [0 1 2 3 4]
005 | [0 1 2 3 4]
006 | [0 1 2 3 4]]
hey ho. Does anyone know an Addon that allows temporary/auto deleting bookmarks for firefox?
I know there is one with not that many reviews, current version doesn't match github and It's not monitored so I'm looking for more trusted alternative.
Thank you and pinging me would be nice.
does any one know how to control the rbg in my pc (fans + light strips). ive tried aura as i have a prime b460 plus mobo, but it says that there are no devices available even though the mobo is compatible with aura. can any one help me? ping on reply
:-)
there is this interschool event where u need to present a renovative idea that will change our day to day life and make it better
kinda like shark tank show
can u guys suggest some good ideas
for eg
a torch with 2 bulbs
can u guys please suggest some good ideas
pls
ping me when u reply ๐
it was an idea bro
btw a lamp generally lights up the entire area and is meant to be at places where multidirectional light is needed
torch is needed to concentrate the light to view a particular object or area
lamps were there but a torch with additional light source will help u watch that steo
hey @jovial island , please don't post your message across multiple channels
One channel will do
because you'd be spamming otherwise ๐คท
sorry I had become desperate :/ but no one seems to bother much sorry
bro why would we give you ideas? you're the contestant, so you should be coming up with the stuff
when why are u talking then
I KNOW THE RULES so shut up, who are you to ask what I am doing is right or wrong
I am asking for ideas, if u have an idea speak or else dont pay any heed to the message
DAMN chill out
s--sorry I am quite desperate
by asking someone for an idea, you're essentially making that person a teammate, since from the info you provided your main goal is to come up with an innovation
so by asking this channel for ideas, you're making this chat your teammate, which i don't think a school would allow?
Usually when people are desparate for something and need help they ask politely, not demand
A please and thank you goes a long way
very true
how?
hey guys can you please delete joe my mom doesnt like him
bruh
please post your query to @vapid maple , the mods are very helpful if you are facing any issue.
damn
ok @vapid maple can you please ban joe ok thanks :)
i asked joe earlier. he gave modmail no perms
so it's impossible to ban him
and it's impossible to ban the owner of the server except for discord banning him
contact discord support then
but it wont ban the server
which is quite sad
that would be funny
damn
Did you really need to ping them like 6 times tho?
Wait what
By pressing his profile you pinged them
6 times
lol maybe he was holdin shift
lol only 1 time 
lol
a true programmer
np man

no, the first one that works
the one that works and u can code
stackoverflow is my weak point 
I have a really, really bad way of coding python that results in the brewing of one-liners from hell
it's called "nesting functions until I get what I want"
For example, if I want to find the length of all the concatenated integers between 0 and 1e6, I'll do something like this:
>>> map(str,range(int(1e6)))
<map object at [id redacted for safety]>
>>> len([*map(str,range(int(1e6)))])
1000000
>>> len(''.join([*map(str,range(int(1e6)))]))
5888890
just skip to last step :yes:
I would usually skip to the last step but that's my thought process
!e
print(sum(map(lambda x:len(str(x)),range(int(1e6)))))
@sharp spoke :white_check_mark: Your eval job has completed with return code 0.
5888890
good code should not throw errors - it should be a magic monolith
who said anything about me being able to write good code 
the what
!pep 9
the pep 9 song
!pep 69
PEP 69 does not exist.
A songification of that most holiest of Python Enhancement Proposals, the PEP 8.
Based on an idea by Daniel "Mr. Hemlock" Brown.
Written and performed by Leon Sandรธy, A.K.A. lemonsaurus.
Music and melody from Mad World by Roland Orzabal. This version was inspired by the version released by Gary Jules.
๐ Website: https://pythondiscord.com/ โ
๐ฌ ...
is that lemon?
no that's melon
wotah
Woah that's new
and it's actually possible to rescrambble lemon to melon
lenom
also @jovial island can i contact u for something.. thats probably if i remember it a week later
something about a vague idea i have inspired from the formatter u made this/last week
the lockdown has made me bad at time.. i dont remember if stuff was done yday or a month ago
also out of curiosity.. what's the longest time u havent closed vsc for?
btw pascalcase is also named as uppercamelcase so uh
20 hours
No
the source is wikipedia and everyone knows that wikipedia isn't a reliable source
ok sure :)
Framework is a new company on the block with big ambitions: their first laptop is built to be incredibly easy to repair and customize. Weโve been anxiously waiting to get our hands on this thing to see whether it lives up to our expectations, and in this video we do just that!
Grab tools for your repairs!
https://www.ifixit.com/Store/Tools/Pro-...
fully modular
Ah no, why? ๐

because the channel name says so
what you guys think about the operating system Mint
Mint is free?
yes..
honestly you can just use ubuntu if you want a beginner linux distro that also is also used in real world settings
just like get the LTS for your server/spare box
plus APT isn't terrible anymore so no need for NixOS or an arch based distro
mint is just an ubuntu derivative
#ot2-oobnut-lunix
thank you
oobnut ๐
kubuntu is kinda gross cause KDE is ๐คข
but XFCE is pretty good stuff for a floating WM
What's wrong with KDE?
it's gross
a friend of mine uses Windows and when she selects a file through a GUI, the path comes up under the 8.3 filename format (those shortened versions like ...~1.MKV). This is giving us some issues with a program that shares the name of the file to check we have the same one. I tried to replicate the problem on a Windows machine, but on mine it works fine, I don't know why it happens on hers. I did fsutil behavior query disable8dot3 C: on the Windows computer I'm now using and it shows 0 for the volume and 2 for the registry, but that doesn't seem to be what I'm looking for, although I don't know. Any idea?
@cunning phoenix hahahahahahahahaha (look at the channel name)
lmao
Lul
I can't believe i fell for it AGAIN
the colour changes on hover
sus
on phone it doesn
LMFAOOOOO that was our cat bot ban testing
We never reverted
I needed to see if you had good emotes
Don't worry, I'll yeet you in
You are banned no longer
oof
is != in javascript similar to != in python
i haven't gone through the javascript basics
uhhhh kinda-ish
It's semi comparable
you should hardly ever use ==
you almost always want === and !==
because == doesn't care about types
ty
ok tyty
it's it
yes
yes
Solution: don't use js
๐
eh i dont like python for web development
js is so much easier
Well you can't use python on the front end reasonably anyway
You're pretty much forced to use js
yep
I just find it funny how two of the worst programming languages both have java in their name
:^)
thinking of starting js
before java
since it has nothing to do with java
lessgo
free code camp i am coming
make sure to use ecma all the way!
because java tastes bad
bruh
We may not agree about the java languages
But we can agree that was a horrific statement
ol
bitchoin > bitcoin
bit chin. nice.
hahastinkyjava
hello i'm looking for javascript help, how to decode html entities. i found a solution already but it doesn't seem to replace <div><br></div> to \n any other solution than this one: https://stackoverflow.com/a/34064434/13884898
the green flag answer is not what i'm looking for because it doesn't work on large string
inside which tag you're putting again?
can you give the html it generates for the text?
also i just tried to put it inside a div. i did not even need to do br or anything
@jade bolt
huge L to debbe
Canon
god fucking damnit why can't devs make a mac build
Yes but also no
== and !== in js do type coercion
=== and !== do not
Python, on the other hand, doesn't do type coercion, but different instances of different types can be considered equal
"of different types" - if we consider only standard lib, doesn't it only work on types that inherit from each other? like True==1
for user types, it all depends on __eq__ implementation, that's why I mention only std lib
int and float would a lazy on-the-nose example, but that reeks of "Ackchyually"
fractions and decimal should be a better example ig
Ackchyually int and float are (virtual, at least) subclasses of number.Real ๐
Yeah, but virtual subclasses don't affect the behavior
Comparing values of drastically different types usually wouldn't make sense
!e from fractions import Fraction; from decimal import Decimal; print({1, True, 1.0, Decimal(1), Fraction(1, 1)})
@dusky cliff :white_check_mark: Your eval job has completed with return code 0.
{1}
I can't come up with a reasonable example at laest
I literally compared int and bool, sooo...
this would compare hashes, not values. stuff that is == can have different hashes
std lib has those implemented based on numerical value, so it works here but underneath it's completely different check
It does compare values if hashes are equal
And hashes are defined to be equal for all of those
!e from fractions import Fraction; from decimal import Decimal; print(Decimal(1) == Fraction(1, 1))
@dusky cliff :white_check_mark: Your eval job has completed with return code 0.
True
all numerical types are supposed to maintain this
but in general, they're not
I only said "stuff that is == can have different hashes", not the other way around (same hash but diff value would be diff)
I also said: "std lib has those implemented based on numerical value, so it works here but underneath it's completely different check"
True, my point was that in the set example it still did run equality checks
It's not enforced, but it's supposed to be the case, for even used-defined types, that a == b implies hash(a) == hash(b)
python core uses quite a bit of magic to enforce that for floats, say - 3.0 needs to have equal hash to 3 even though the hashing algorithm is generally different
Yeah, that's basically a requirement which can't be enforced (I believe?)
But if it's not implemented properly, the whole hashing idea just flies out the window
mainly comment
# In order to make sure that the hash of a Decimal instance
# agrees with the hash of a numerically equal integer, float
# or Fraction, we follow the rules for numeric hashes outlined
# in the documentation. (See library docs, 'Built-in Types').
Objects of different types, except different numeric types, never compare equal.
well that's pretty explicit
nice. that answers my question: "if we consider only standard lib, doesn't it only work on types that inherit from each other? like True==1" - but the answer is not inheritance but just being numerical having hashes and eq dunder made specifically for that
i wonder if booleans are subclasses of ints in other languages
I think so?
I'm not sure actually
I feel like you can consider that for C for example?
C doesn't really have subclasses though
C doesn't really have subclasses though
And for the longest time it didn't even have bools, and I'm not sure if it does now
It just used int
Right but a boolean is really just a number
Exactly
well, bools are basically bytes of 0 or 1 in most languages
It has a different meaning associated to it, so I'm not sure if a subclass would be the best design choice from a purely theoretical standpoint
in Python they are instead ints of 0 or 1, which is, now that I think of it... most languages use 8 bits per boolean value, we use, what, 30+? ๐
They're singletons though so it has O(1) space occupation
Padding
why ๐ค
Hardware reasons. For the CPU, the lowest unit is a byte. Working on individual bits would take several times more instructions per operation.
Don't they commonly use the numeric type that is the fastest on the CPU, which would be 32 bits in most cases?
oh ok
That's how it is (or was) in C and C++ at least
(so bitarrays are still used if you really need that 1 bit per bit memory usage, but that's at the cost of speed compared to a vector of bools (which are a byte each))
Yeeah
makes sense
That used to be a hot topic at some point I believe
The stdlib C++ vector uses a bitarray specifically for the bool template
hmm, interesting, looks like Rust does guarantee one byte:
An object with the boolean type has a size and alignment of 1 each.
only since 2018, though
I'm not very certain about modern languages
Ah, right, due to Python's list model it's more like 64 bits (one pointer) per value in a list/whatever, so really it doesn't matter how big the bool object itself is
CSharp doesn't subclass bools from ints, but it does store the value as an Int32

Actually no wait
The source code is fucking useless
192 bits to store one bit of information, let's go
[Serializable]
[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public readonly struct Boolean : IComparable, IConvertible, IComparable<bool>, IEquatable<bool>
{
//
// Member Variables
//
private readonly bool m_value; // Do not rename (binary serialization)
...```
Very epic
And trying to find the source of bool just forwards you to the same struct because it's supposed to be an alias
bool and Boolean are the same?
one is a primitive type, the other is an object 
ah hmm
interesting
java has that thing too
They are supposed to be aliases for one another and usable interchangeably
like C huh
four bytes? huh
structs are passed by value and can't use subclassing, so they are effectively primitives
The thing I was talking about earlier, the size CPU is optimized most for, which is 32 bits on most modern CPUs
Operations on 32 bit ints are fastest on modern models
Oh, another fun fact while we're at it
C# prohibits casting from bool to int at all
Not implicitly, not explicitly, boolean ? 1 : 0 is the best you can get
And for some reason they decided that you can only overload the bitshift operators with int arguments
That makes me angery
lol
oh yeah, I encountered that
I guess that was an attempt at preventing cout
but like
why though
let people have fun
Nah, it's somewhere in the specification
Bitshift can only be overloaded with int, period
That's why part of me prefers C++ to C#
overloading with whatever I want and being able to overload operators for classes I didn't write
I remember having a cursed codebase which, um, extended the idea of streams
< and > were used in the same way << and >> were, but it would treat it as raw bytes over text
So running fin > some_int would read exactly 4 bytes, reinterpret them as an integer and store in some_int
what the hell
you better not decide to upgrade that int to a long, or bad things happen
does any one know how to control the rbg in my pc (fans + light strips). ive tried aura as i have a prime b460 plus mobo, but it says that there are no devices available even though the mobo is compatible with aura. can any one help me? ping on reply :-)
It was supposed to be for serialization, so if you read the wrong types, that was on you
But the whole >< thing was a weird mix of genius and severely questionable
hey @round moss, a few weeks back you told me to look into the code object constructor, and i said it was too challenging
i understand all its parameters now except for stacksize
, thanks for encouraging me!
co_lnotab was the hardest, took some experimenting and research for that lol
here it is, in all its glory https://paste.pythondiscord.com/oyorigiqap.py
CodeType is obtained from a code object's __class__
for me, python's internal stack systems still remain a mystery
the only stack system i've encountered and actually understood is the indentation one used to generate INDENT and DEDENT tokens
hello-world-2to
hello world
why are we egypt
its australian
so i added a speed trait to the organisms, 1 in a 30 chance of a mutation occurance which makes the child have greater speed than parent, and most of the times the child has the same speed as the parent, this is the average speed of all over time
so apparently in this environment less speed is better because it does not consume as much energy and is not much of an advantage
yeah at the start even 1 mutation would make a lot of speedy guys
but then most of them just die out
think i am going to add something to let them eat other organisms if they are bigger than them, so size will become a trait too
maybe this could result in very small organisms or very large ones depending on how i set the energy consumption on being big ๐
I feel like speed should allow an organism to get more food because they're faster
yeah, but i am not sure how to do that since food just randomly spawns on the screen
i guess that would be true if the plane was smaller
heres a shorter version of the run, cant compare properly to the last one but it seems like this one didnt go down as much as the last one did till 175 seconds
this one hovers around at 2.8 in 175, while the last one was at 1.6 at 175
yooo @lost tapir nurses_2 is sooo cool and easy to use, i just remade(kind of, its still incomplete) the quackstack duck maker and nurses_2 made it so easy to output that image to the terminal
thanks!!!!
thanks, if it needs some more docs anywhere let me know
i only faced one issue, but i think its because i was being dumb but in
class MyApp(App):
async def on_start(self):
image = AutoGeometryImage(path= image_path)
self.root.add_widgets(image)
MyApp().run()
i tried to add a def __init__(self): like have it be
class MyApp(App):
def __init__(self):
builder = DuckBuilder()
self.image_path = builder.generate_duck()
async def on_start(self):
image = AutoGeometryImage(path= self.image_path)
self.root.add_widgets(image)
MyApp().run()
i got this error AttributeError: MyApp has no attribute exit_key
so i just shifted the builder = DuckBuilder() outside the function
it's cross platform
need to have args and kwargs in your init
errr, or call super().init
or both
def __init__(self):
super().__init__()
builder = DuckBuilder()
self.image_path = builder.generate_duck()
oh so do i just do def super().init(self, args, kwargs) ? im sorry im not familiar with the super thing
i dont think u can def taht
typically you would do this:
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
builder = DuckBuilder()
self.image_path = builder.generate_duck()
to be compatible with everything
that way you can pass all the same arguments and key word arguments to your subclass
brb, cooking
did u add salt 
ohhh i will have to learn about super args and kwargs but i will do that in a min, thanks a lot tho!!!
byee happy cooking!
if only we had dlrow-olleh-2to
to understand the inner workings of python

and also to make some cursed crap
I can't do (self.a, self.b, self.c) = f(); in rust?
I believe it can't unpack to attributes
It makes sense tbh, they aren't stored on the stack like local vars
no it can't unpack at all, even (a, b, c) = f() doesn't work
but let (a, b, c) = f() works
Aaahh
You can assign attributes like that?
I guess that makes sense, but I've never had to do that..
mint have support for keyboard and mouse?
hmm, can it really not? that's kinda strange
considering it even allows fancy stuff like unpacking structs
but, uhh, you can do that in Python? It's called positional arguments ๐ง
that's literally the default way to pass arguments
although you can't put a keyword argument before a positional one, like how you can do
Struct {
arg: 3,
arg2
}
``` in rust
yeah, that's true
because they are basically all keyword, and the shorthand is just a shorthand
but in python you can init a struct with __init__(self, arg, arg2) as Struct(arg, arg2), so not sure how the shorthand should work
yeah
do you guys still have the event bot that anyone in the server could help with?
I dont really see the channels for it anymore
Gateway Latency: 117ms
.src
Here's the github
alright ill take a look maybe they renamed it since a long time a go thanks for the link
i think it used to be called the seasonal bot im not sure
It was iirc
yeah it was
oh i see was it just renamed or like a whole re-structure of the project?
not really sure, i wasn't here at the time
oh ok
wow so cool seeing people as mods or helpers now i use to talk to
I haven't coded in python is a bit actually i think i made a disc bot with known but we never finished it lol
i swear i can never find this server, y'all change logos so often anywho, so I'm facing an interesting issue with Pterodactyl and running a python bot
this isnt a help channel

@wide totem I'm on my third bripe
no I drank two and now I'm drinking my third one. Just gotta keep briping.
wtf is bripe?
the revolutionary way of making coffee https://www.youtube.com/watch?v=tltBHjmIUJ0
You too can Bripe: https://www.briping.com
This was just meant to be some fun, mostly at my expense. I would love to hear from other fellow Bripe enthusiasts though....
Music:
"love we both know (with The Field Tapes)" by Red Licorice
Elevate your videos with record-label quality music from Musicbed: http://share.mscbd.fm/jimseven
Links:
Pa...
the person who made this video is the best coffee man on the internet
8 min kk im watching i also loveee coffeee
james coffeemann
lol
nice
k, admittedly i have a coffee caffeine addiction but you guys are smoking this i dunno lol
!!!
I don't actually have a bripe
I have an aeropress, a siphon, a few french presses, a regular drip brewer, a pour over stand...
probably some others.
and I have a bunch of attachments for the aeropress.
oh and I have an iced coffee pitcher that makes hot coffee cold without diluting it.
and a coffee spoon: #ot2-the-original-pubsta message
lmao
what? who said anything about that?
no one but its a thing

I love seeing your coffee facts and info
Also just love talking to you, you're so wholesome.
since that wasnt possible in the environment, i added predators, first the predators made everyone extinct when organisms have no genes, then after tweaking it creates a balance and both live, but if you add speed genes, the speed genes are like this
they all evolved into being speeed
with speed they can run away from predators
label pls ๐
i said its speed 
okay
this is predators, y population x time
they went extinct
because they couldnt catch anyone because everyone was fast enough to run away
ye
lol
is this the same hoffmann as one in chemistry?
Why does it immediately drop?
at the start the predators are like only 2, and their threat isnt much, so speed is useless like earlier
Ahh, that makes sense
I need some help, anyone here?
It isn't python
There's over 35 thousand members online right now, I think someone is here..
Haha
#ot0-fear-of-python does this image look blurry to you?
Like my monitor screen
Hey could someone please help me out, I just got my Laptop reset and when i tried to browse something on the wb it says "Your Connection is not Private" with error code NET::ERR_CERT_REVOKED I found many videos on youtube but got no solution to this problem, does anyone have a fix for this. I am using Chrome on windows 8 on my laptop.
is your date and time correct
basically it says that the certificate of the website has expired
but if the datetime is incorrect it might thing that it's later than it actually is
@jovial island why is "have" and not "has"?
Do you have....
Does it have...
etc
So "structure has", like "it has", right?
you missed we has
So I was right then
joek
lol
my intuition rings up a lil tho
ah nevermind its because of the missing quote
Hey @upbeat sandal, is it "has" or "have" in this sentence? #internals-and-peps message
i dont know anything about grammar anyways
conjugation
wat
we use have with do as well
do you have the gut to prove it wrong - example lmao
no it should be have.. stop messing with my brain 
oh my god i was so cringey aaaaaaaaaa
Quora has become what yahoo answers used to be
the new bing: meme
I don't care what grammar thinks, "Does it has" is wrong.
Grammar is what I make it be, that's how languages work.
*grammer
have it does
(โฏยฐโกยฐ๏ผโฏ๏ธต โปโโป
sure
๐ข visual studio auto generated code gave error and i don't know how to fix it because i'm just a code copier
nvm fixed it i'm just too smart..
heres one more graph but smexy
u be da graph man
joe in the making
smh use vsc
it's "Grammar"
I know
then why did u say grammer?
It's a joke
Grammar is what I make it be, that's how languages work.
i see
Also why can I only ping griff or blue h?
shits borked? ยฏ_(ใ)_/ยฏ
The real question is why you're trying to correct someone and immediately failing to spell a three letter word...
otn suggestion:- grammer-have-no-rules
just merged my huge ci and dev env pr to a project of mine with a few peeps whew
cool
Nice
then manually updated all of the open prs to the newest commits
because I would have had to sometime, and all of the checks then effectively were failed since they were gone lol
git commit -m "hopes and dreams"
> please enter the passphrase to unlock the OpenPGP secret key:
Okay I need to vent
what happened sir
The JS ecosystem is so bloated that it's so hard to know which is the better option
did someone say ecosystem
Like just looking at the amount of JS game frameworks there are: https://github.com/collections/javascript-game-engines
Then you have the choice of whether you should use TypeScript, vanilla JavaScript, ReScript, CoffeeScript, so many
Then should you use React, Vue, Angular....
Just
So overwhelming
well that's hard to wrap my head around O.o
Yeah. This is what turned me off every time I've tried to approach this in the past
Easy, use typescript, react, npm
But I really like yarn
Also, I have this weird functional kick I get into
do you mean functional as in you mean business or do you mean functional as the style of programming
Functional paradigm, declarative
I think its nice that you get so many options
It is, but it makes folks who are trying to get into it very hard to get a grasp
I use opera and when I just refresh any webpage its completely zoomed out.
When I checked the settings, its still shown as 100%
the zoom
opera moment
I do have opera, but I don't use it
wait a min I found a forum submission regarding the default zoom.
Zoomed out mode is automatically enabled if the page viewport width is more than the device doubled screen width or at least so we're told.
ok so, ctrl+0 gets it back to normal
but I'm gonna have to do it everytime I open a webpage
which is a pain in the arse
oh wait it worked
the next time I open something else, the zoom is normal by defaualt
I think I might have accidentally pressed a keybind that changes the default zoom maybe, since zooming in or out using 2 fingers in the trackpad isn't making any difference the next time its refreshed.
hm, with 4 fingers I can get to 60wpm
yeah, I gotta learn how to use all 10 fingers, might as well be now.
Smhh I don't use any of my pinky fingers can reach upto 98 wpm.
Tho, I shared some ss you can check it 
Flex
oh yes my pinky fingers are weak
Which layout?
and yea I am going through rsi syndrome too
๐ฉ
So it will be tough time
I mean 24/7
unless I put it in hot water or something
Uh you may have rsi syndrome but it won't be permanent
it's quite irritating because I have loads of hw
So stop typing too much, try watching vid for good posture for holding mice
okay
and keyboard too
my dad says it could be carpal tunnel
i will the coming weekend
Or buy a good ergonomic keyboard like split keyboard and mx master 3 its pricey ikr
I use a laptop keyboard....
git commit crimes
I wonder where big companies store their codes
Some sort of internal git repo(s) im guessing
in the orange cloud
I thought github
Some use github too







