#ot2-the-original-pubsta
652 messages ยท Page 111 of 1
Mr Robot starts grounded then gets more fastastic (fantasy) as the episides progress while keeping the hacker techniques fairly grounded
you could, but it is not necessary as long as you have a stable net connection
googling things seems better
oh ok
perhaps note down the specific tricks you use
like a specific function you use all the time
but not everything
for example, for me its this:
def displayhold():
while True:
pass
@hoary marsh
or things you know you will need often in the future but that are hard to find
no need to
perhaps for the beginning
but if you use them that often you will memorise them sooner or later
no problem mate
Can someone here help me with enabling SSH over USB with the Raspberry Pi Zero on Windows? I followed the normal instructions (add dtoverlay=dwc2 in config.txt, modules_load=dwc2,g_ether in cmdline.txt, touching SSH), yet I cannot SSH over raspberrypi.local. Interestingly, Windows detected it as a RNDIS/Ethernet device before concluding that the Zero was a USB Serial one...
wow
@jovial island This is a Script that I made for Minecraft (I expect you know what Minecraft is). It generates sphere. But it gets insanely slow for large spheres
do your sphere has to be solid?
Both hollow and solid
hm
I see. That's pretty cool.
is it possible for you to gen row by row ๐ค
Does minecraft have a set-region command or something where you can give it a bounding box and it fills all the blocks?
Rather than you doing one by one manually
/fill possibly, but it's rect only iirc
That won't work
what if you carve the rect
How
hang on, my math brain isnt responding
this /fill? https://minecraft.fandom.com/wiki/Commands/fill
It just files a cube or cuboid
Would def be faster to make the solid sphere out of cuboids
but the math for finding the optimal ones sounds tricky ๐
Making a 10x10x10 cuboid is the same speed at 1000 individual setblock commands?
No
hang on, lemme make some carve algo. i suck at visualization
I can make a cuboid very fast but then I will have to remove the blocks that don't lie in the sphere and that is as slow as the previous method or sometimes even slower than the previous method.
Ok, but what if you can make a bunch of cuboids that perfectly form the sphere, so there's none to remove?
I'm sure that's possible, though again the math sounds daunting 
But sounds like the fastest way
That will make my sphere not look like sphere
reverse the for loop sounds very promising
No
Wdym by reverse the for loop?
fill the whole cube then remove the rounded corners (but I think you said you tried that)
The number of points that don't lie in a sphere is almost equal to the number of points that lie in the sphere so it's not a good method.
you can try only getting 1 corner, then maybe mess with the radius
the for loop should have less to calculate now i think
Yeah I tried checking if the number points in a cube that don't lie in a sphere is less than points that lie in the sphere but I found out they are almost equal.
Yeah, that's surprising. Only like 52% of the volume is the sphere
So like there's no good way?
I don't understand. Can you explain?
maybe calculate 1/4 sphere?
rotate it
Because there's limit to how many blocks you can clone
I can't
hmm
i'll try writing one
not sure if it's even possible
does sound a fun project to do tho
Take advantage of the fact the sphere is symmetrical
Imagine it being composed of circles of varying sizes along a common axis...
In top part the circles enlarge until it hits a maximum then it gradually diminishes
Drawing a circle is easy...and just shift along a third dimension then draw the next
That's still O(n^3)
Mirror the elements in the circle to save compute...
Then mirror top and bottom
The bresenham line and circle algo are built in in many graphics packages
I have implemented these myself from scratch
I am not using any graphics package
How do I mirror?
Same i have done it without
Math
Huh
Imagine a number line with 0 in center
I have seen that before
while drawing on (x,y) you can also draw on (x+2r, y), (x, y+2r), (x+2r, y+2r)
so you draw a circle with the loop of a right slice.
1 is mirror or -1
All pure python has line, circle and even 3d
Also shading lol
I will try that. Not sure I will implement it tho.
Why do I need that?
Just showing it is possible
Doing what you want
It generates sphere?
Yes
Oh
Wow
I was bored by covid so i did this lol
That's so nice
Thanks
Isn't that Sphere just a circle?
All spheres drawn on 2d will be circles. But see the shadows.
The big one isnt
Oh
The small one i used color computation to fake since faster
The dodecahedron lol i pre computed the vertices and same for some other polyhedra
Also surfaces
Also hand coded the bit fonts lol
Outputs to windows bmp
I hand coded that too
Support for mono, 16 color 256 color and RGB
Has image manipulation routines
What's with the new logo
Also, today, I and a friend were stuck in a computer lab without internet and we figured out the command to create a SQL user and give it privileges all on our own
are those real time rendered?
- when you're mentally advanced * jesus christ, if those are real renders in a linux kernel, thats just above senior developer at that point
Fast render i timed it lemme run it on my laptop ...it is all software no gpu
my jaw is dropped rn
you made the mandle brot set rendered in opengl, mf higher order being bro the hell
i took drawing a triangle an achivement
when it came to glsl i just gave up
that should be like a os setup or cpp buildsystem test
Most of the operations are not even a sec all done in 11.5 sec but it was a lot of elements i had to profile
Same output as above
Only imports in test code BITMAPlib mine
Part where I draw 3D
Lol no open GL no DirectX
All CPU
I treat an in memory byte array as a virtual video buffer that is in bitmap format...i flush that to the file system to save...and do the reverse to load
I know the bitmap format and made several loaders for it in other langs
Can be faster if i use open gl lol
yeah
do you used bitmap as a challenge?
I wanted the constraints
oh
ok
well i dont use constraints programming
Even pixel plot routine lol
whoa
Lol pixel plot to byte array buffer
Mind telling me how this works? @fallen current
wow
you use minecraft commands or programming?
JavaScript code
oh
but i was thinking that mc bedrock is made in c++
well gr8 work!
you're mad
I am iterating over all coordinates for a cube of radius equal to the radius of the sphere and check if the distance of the coordinates is equal to radius using this formula:
(x*x+y*y+z*z) == r*r
No as in how you are manipulating minecraft
You can
Are you using the keyboard to execute a precomputed response?
Minecraft gives tool to create scripts that run inside minecraft
This is the script that I am using to generate spheres in Minecraft.
import { world } from "mojang-minecraft";
export function sphere(x, y, z, r, block, blockData, hollow) {
var blocks = 0; //initialising blocks for block count
for(let i = -r; i <= r; i++) {
for(let j = -r; j <= r; j++) {
for(let k = -r; k <= r; k++) {
if(!hollow, i * i + j * j + k * k <= r * r) {
// we are using this formula to calculate the distance from the centre to a point in a 3D plane and check if it's smaller than or equal to radius
world.getDimension("overworld").runCommand(`setblock ${i+x} ${j+y} ${k+z} ${block} ${blockData}`);
blocks++;
}
else if (i * i + j * j + k * k === r * r) {
world.getDimension("overworld").runCommand(`setblock ${i+x} ${j+y} ${k+z} ${block} ${blockData}`);
blocks++;
}
}
}
}
return blocks;
}```
It is Javascript
Yeah
you dont need the k loop
Not the first one to say that i think...mad scientist laugh
Minecraft accepts JavaScript
minecraft has an api?
No python? :(
I am doing for solid
hm
Yes
No :(
world.getDimension("overworld")
>>> โ
What
wait so whats the output of your code @fallen current
sebastian lauge did a video about planets i think and he made a part where he teaches how to programmatically make a sphere out of triangles, if you have a square you can just use that context
let me find it
I can't do it with triangles.
Minecraft doesn't have triangles :(
okay
Only cubes
so, you have an algorithm to make a sphere with coordinates
Yes
why dont you append your x,y,z values every single new value calculated and then when you run your script you run the command in another 3 layer nested for loop
or did you do that already
That will make my script slower
cos im thinking, if you're working from the center to outer, then there must be build up values
then you need to use java i think so you can do memory control
idk does js have memory control?
This API is only available for JavaScript so can't use any other language
so what im thinking is, you need 3 loops, 2 3-layerd and a singular for loop
you need to use the first 3 to calculate the values then append them to thier arrays
Ok and how does that help reduce the execution time?
then you need the 2nd 3-layered for loop to read the values and setup your graphical "flip"
and then the 3rd for loop to render the flip
and by flip i mean, there is a display and a flip, the flip calculates and sets up a rendered screen, then the flip gets swapped with the display and the display is showing the flip and the flip is empty
by just rendering every block at a time you're stressing the cpu

its a pygame thing, 2d game concepts, but they work for 3d as well because 3d is just 2d with shading
but idk if the minecraft api can do that
like queue tasks, and also, you're using js, which i think is a single event loop lang, so you cant really do much about optimisation like you could with somthing like a java lib where you can allocate certain events to occur
That's not my task
All that is done by the game
yeah but thats what's happening with your code
either you're code is fine and you're running mobile minecraft
or your script works
its either 2 mate
But the script is not rendering block. It's just placing the block there and the game is rendering it.
yep, so you cant do anything beyond just placing the block
you can run a profiler and see which parts of the code take the most amount of memory
Where?
idk, i dont fw javascript like that
Ok I will check later
i see the logo changed
oh
ok
3 yello guys (pfp)
Neber tryed
pog
henlo
Hemlo gumz
and thats why we can have most of it to ourselves for now
hruuu
same ig, tysm
uhh, school lol, good luck
lmaooo good luck
btw, where you from
if you dont mind
India
nvm, already figured it out from your name
London
Cool
maybe
Maybe???
Yes!!!
Great
indeed
Yes
No
uh, go to sleep
yours?
Ye
ooof
wow
U dont know this account secreat
Just telling u
The one thing
(This is alt)
ยฏ\_(ใ)_/ยฏ
Not main id
Going to sleep meet u tmrw
this is kind of random but i would love to cut the electricity of a 10th grade class and then stand at the door with lamps in a position to look like they were my eyes and then play freddy's music box
also zamn dead chat
no msgs for like 9 hours
lol amogus finally took over you
Why are your knees not in this picture
Lol im the one holding the camera so that is not me ...have another with knees visible
there they are
You are in medicine?
No lol
That was a picture taken a few weeks ago when my mom was in the hospital with me....low sodium ...she ia ok nao
oh, okay.
Looks like you did a jeans reveal though
Hard to remeber lol maybe
Ah yeah my knees are visible lol
A couple of my relatives thou are in medicine
best delete those
it come over as offensive to some people
and no, shitposting isn't allowed
or meme dumping
learnt that the hard way
but im not going to be mini mod
i thought they linked me here
so a helper tricked me
*Redirected you out of python-general

lol if someone gets offended at making python into your waifu jokes i think thats their problem
indeed
there are weeb-grammers among us
honestly offending prudes and the anti-fun ppl like that is based ยฏ_(ใ)_/ยฏ
how can i solve that under-root term in multiplication
?
ping(as many times you want ๐ ) while answering!
yeah idt you can transform that to anything clean
you can get a 4th degree polynomial by keeping the sqrt on one side and the rest on the other and then squaring
Instead of doing (sqrt(a) + sqrt(b))ยฒ=100, you should put the sqrts on different sides
mm where would you go after that
Also square the whole thing but now we get rid of one sqrt :P
sqrt(a)+sqrt(b) = 10 (because sqrt >=0 so we know it won't be -10 on the right)
sqrt(a) = 10-sqrt(b)
a = (10-sqrt(b))^2
a = 100-20sqrt(b)+b
now let's put our a and b back there:
(x-y)^2+y^2+z^2 = 100-20sqrt((x+y)^2+y^2+z^2)+(x+y)^2+y^2+z^2
(x-y)^2-(x+y)^2 = 100-20sqrt(b) (I'm too lazy to write it)
-4xy = 100-20sqrt(b)
20sqrt(b) = 100+4xy
I wrote it on computer and copied on my phone XD
oh great, i found same solution on internet for my question. i think it's only smartest way of solving because using other approach will make solution of infinite steps.
thanks guys for helping me! @tribal tinsel@dusky cliff
sorry for ping! ๐
Yep. We want to get rid of the sqrts, so we need to keep them single for squaring whole thing :3
i like pings dw
I haven't did such tasks in a long time, it was fun
dw means?
Don't worry
assuming a and b are positive, yes
yea, see this one ^
This is only sqrt(5) calculated here for some reason, tho?
Blah, wrong thing XD
!e
print(50.5 * 60.5)
print(30**0.5)
@tribal tinsel :white_check_mark: Your eval job has completed with return code 0.
001 | 5.477225575051661
002 | 5.477225575051661
hmm, yea i did use calculator again it's correct
but what you did here?
x = x^(2/2) = (x^0.5)^2
Dammit, I'm reading discord too much. I first didn't notice my bus stop and now I went to wrong side of subway because when I lived here, I went north more often than south. + I normally go to other end of the station, so situation was just rotated from what I wanted XD
Hm, maybe I'll go eat something first XD
lol
i have a BEST solution for you
@tribal tinselhttps://play.google.com/store/apps/details?id=yash.naplarmuno
Use this or any of its alternatives. It will start ringing alarm when you reaches your set location.
then use discord hassle free ๐
I'm in city centre and burker king has Thursday promo, I'm fine. I didn't eat a proper lunch anyway, only a small burrito for late breakfast XD
And normally I'm pretty good at navigating while being on my phone
But I'm tired today
We were to check out new office
awesome
Oo
btw thanks for helping me out in my doubt
It's bare for now, but the rooms are nice and we're gonna get what we want there :D we will have some beanbags in that corner
2 desks by the window, facing each other, and one for some future person
I will have my friend in next room
And kitchen nearby :3
room looking awesome btw
Too white XD
Everything is white with sometimes some grey
Kitchen
It's way bigger than what we have in the current office.
Beautiful one
nice office
It's kinda weird how we got bigger. It's almost 3 years that I've been there. I went through one office remodelling to fit more desks, now we're moving offices...
how does it feel like, moving offices?
@fervent tinsel
import random,argparse
parser = argparse.ArgumentParser()
parser.add_argument('-m','--min',type=int,action='store',default=0.0)
parser.add_argument('-M','--max',type=int,action='store',default=100.0)
parser.add_argument('n',type=int,action='store',nargs='?',default=1)
args = parser.parse_args()
for _ in range(args.n):
print(random.uniform(args.min, args.max))
``` might i suggest argparse for your previous q?
Honestly this might be too advanced for me for now, I have alot to learn ๐
might look like a lot, but i made this from reading the docs for a few mins, +1 stackoverflow search for the nargs without having used it before
its got reasonably friendly documentation
I'll read more about this and play around with argparse... thank you for the help
@median spire yeah its the ratio of the diameter to the circumference, but its also the ratio from the area of a square to the area of a circle. Its also found in other places too, like in radians and such
๐ณ
i didnt know that
im only just now learning about the area of a circle n stuff (in school, at least, because i already knew it lol)
I think it was first found in the ratio of the diameter to the circumference tho
yeah probably
ratio from the area of a square to the area of a circle
eh?
Yeah. If you have a unit square (1 wide and 1 high), its area is 1. A circle with a radius of 1 has an area of pi * 1*1, which is just pi
uh what about a 2x2 square
lmao
and a circle with radius 2
Thatโd be proportional to a circle w a radius of 2 i believe
sure ig ยฏ_(ใ)_/ยฏ
m
Lol panic driven dev....ah been there
๐
can anyone recommend me some really really based songs?
xue hua piao piao
thx
oh pok
attention people
Im in need of finding a song I legit dont remember the exact tune or lyrics but
i heard it around 2014 it was a englihs song, this guy had a "rough" type of voice.
i jsut cant rmemeber what it was called something like gumball or rumball or something like that
Can someone help m e find it
You mean Pitbull?
they found it #ot0-fear-of-python before - it was nickelback's 'how you remind me'
#ot0-fear-of-python message
ye we found it
Eliahu Pietruszka escaped from Poland at the beginning of the second world war thinking his entire family had perished. But two weeks ago he discovered that a younger brother had also survived and that his brother's son, 66-year-old Alexandre, was flying from Russia to see him.
Subscribe to Guardian News on YouTube โบ http://bit.ly/guardianwires...
oh no
i was bout to cry
@jade bolt were u typing smthn?
was in a hurry so closed it-
nothin, i was going to type !solved :p
oh
int main() {
cout << "yeet" << endl;
}
Interesting
I get highlighting for py, but not cpp
on mobile? or
android, yeah
I don't think I've had highlighting for anything on mobile
I've tried a bunch of lang prefixes on this block of code and the only one that worked was py
huh
print("This is the only one I'm aware of that works") ```
oh huh, it's the same for me
your phone is like giant but yes
unless that's a tablet
tbh I forget tablets even exist
๐คจ
we call those capsules
deez
Yeah lol
Moar like these
or deez
yee
couldn't find an emoji for deez
Those are tablets or pills
ys
meowing
no
yes
no
Still taking them pills for a fungal infection
Meow
๐จ
hate pills
Same
I'll go the rest of the day feeling like there's something stuck in my throat
keep hydrated btw
I drink tea or water after meds
oh hate that
that does sometimes help get the hairball out, yes
true asf
Lol very well with fluids....dont like med aftertaste so i wash it down quickly
well yeah but what you gonna do its the only way i can get my omega 3 in im terrified of my brain dying before the rest of me fails thats just a miserable life and i dont live in a country where they'd let me off the hook
I was once prescribed those icky oily pills lol
they suck but i cant just have fish every other day or whatever
i dont like fish that much
I eat fish sometimes lol same fish sucks
Unless it is Tuna
large predator fish has too much mercury so thats also not an option
Yeah why I dont eat to much of those too
well with some luck ill make it to 80 lucid enough just with those shitty oil pills
doesn't JS also work
the pixel density is high, it's pretty average irl
i mostly tried the C family, js/ja๐ ฑ๏ธa/etc may work
Im glad to be off those shitty pills lol
pls tell me im not only person who codes on phone over pc
i only use pc when scrsping ect lmao
BTW anyone here uses a local crypto wallet? ๐
Oh damn
I installed the same one just today haha
A friend of mine told to try it out once
its good one
I really like the UI tbh
smart freind
Tho idk what else to do with it as long as he doesn't send me some test crypto ๐คฃ
its pretty much for -18
18 below?
age
Ooh then for me haha
most wallets need 18+
not possilbe
???
exodus doesnt allow test
No test as in
He sends me some crypto haha
Like, costing a dollar or two, to see how it all works
ye it need to be real crpto
Yups
i make btc selling stuff
So now i need to see how to buy crypto with amazon pay haha
tiktok usernames like 3L
Cool!
Okay so how to deposit money into exodus now
;-; I cannot buy directly?
And coinbase is also under 18?
no
so I need to be above 18 to buy crypto, huh
Ouch rip
I tried programming in a phone for a while and gave up on it ..PC better
Seems like my Amazon Pay money is gonna get wasted sitting there haha
during day i use phone then during evening pc
A laptop can do that unless you have desktop only
I have laptop
But phone is easy to type etc
Then for scraping part I go on pc
@jovial island u ever heard of bitpay?
Nope
What is the difference between incoming-outgoing traffic and inbound and outbound traffic?
I see. I thought by no water you meant no fluid, seemed pretty horrible ngl
what do you need help with
How do I prepopulate something to use in a %%timeit with IPython? (or can it?)
In [5]: %%timeit -r 5 -n 100000
...: d = {1: 1}
...: try:
...: c = d[2]
...: except KeyError:
...: c = 0
...:
I want d to be {n: n for n in range(100_000)} but don't want to time that piece. Disclaimer: First time playing with IPython.
oh, setup goes on the first line like the cli.
i lurn
Sweet
In [9]: %%timeit -r 5 -n 100000 d = {n: n for n in range(100_000)}
...: c = d.get(-1, 0)
...:
...:
40.9 ns ยฑ 2.84 ns per loop (mean ยฑ std. dev. of 5 runs, 100,000 loops each)
In [10]: %%timeit -r 5 -n 100000 d = {n: n for n in range(100_000)}
...: try:
...: d[-1]
...: except KeyError:
...: c = 0
...:
...:
184 ns ยฑ 0.638 ns per loop (mean ยฑ std. dev. of 5 runs, 100,000 loops each)
I feel advanced.
yeah nicky I hate to say it but your pronouns are great at finding trolls ๐
Wet bee cleaning itself
I know โค๏ธ it's perfect to nib them at the bud!
Honey filtering ๐ฏ
like I've lost count of how many times a somewhat-inconsiderate member of pygen has completely given a reason to leave the server like that lol
Half the hive, swarmed on the ground. Zoom in if you're not scared of bees (there's a reason I'm spoilering those messages XD)
Queen ๐
And a bunch of other bees on a honeycomb
hmm how come they're on the ground?
do you keep bees?
Swarming is when bees start producing a new queen (many possible reasons - weak queen, too little space...) and old one feels she won't be able to combat the new one, so she leaves with half the bees. They leave with food for a few days and sit somewhere usually nearby (nearbee?), usually some tree or bush... Here they just chose thick grass. They sit in such place until the scouting bees find a suitable place.
That's how it works. How to catch a swarm is another story. We had some theoretical knowledge about catching swarms on trees and stuff but not on ground... So we just brought an empty hive next to them and gave them a plank to get to it XD waaaay later I learned that swarming bees don't sting and some people manually move them, looking for queen in the meantime (they follow the queen, so moving her to the new place - be it a hive or a box for moving - basically means you got them all)
My father-in-law decided to get two hives 2.5y ago. :3
oh interesting
definitely never saw someone just have a bee perched on their hand lol
oh lovely
honeybees are quite docile, swarming or not
assuming they don't have any africanization that is
they're the only stinging insect I will be near and not be afraid of
they really don't want to attack anything
that being said they are quite stupid
I have had one fly into me, get scared, and sting me from it
I've seen plenty of videos online of people moving swarms by just shaking them out of a tree and luring them into a box, they don't even get stung cause the bees don't really care
Bees are good, wasps on the other hand are less fun
I've seen people just straight up scooping up bees without smoke or anything
I could never. Catch me out here with one of those giant hazmat suits
The only times I've been stung by bees is me accidentally stepping on them and getting pierced
I must have said it here before
I don't think I've ever been stung, but I'd be very sad imagining that a poor bee out there is dying because it was scared of me
But I interrupted two bees having a moment in a PVC pipe when I was a kid and got a huge swollen middle finger
I don't think bees have moments ๐
AFAIK all the bees you end up seeing are the females
huh
might have been lesbeeans
hello
hello
dead chat
just joined here and i almost got banned lmao
nevermind not dead chat
was in wrong channel
yeah, talking off-topic in #python-discussion is a pretty strict rule
my apologies, i own a 400+ member discord youd think I know better
ah i was talking shop and didnt even realize
someone other than me share a recent python script you wrote from scratch!
i will to ofc
ima choose randomly
this was my first project in python
my github has my real name so im gonna just give you the script if I can
o sure
Hey @river kelp!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
F
i need comments to go back and understand what I wrote when I am not great at a language
I guess so
ive written like 100 JS bookmarklets lmao for some reason
but don't you think
#prints IP address
print("Your Internal IP Address is: " + IPAddr)
is a bit useless
it shows that it's printing something
hey i didnt say it was good ๐
๐ lol
add this as a bookmark in a browser, i love this one a lot
javascript: var travoltaWTF = document.getElementById('travoltaWTF'); if(travoltaWTF){ document.getElementById('travoltaWTF').remove(); } else { var travolta = document.createElement('img'); travolta.setAttribute('id', 'travoltaWTF'); travolta.src='https://i.imgur.com/Yc0G92s.gif';travolta.alt='WTF!'; travolta.style.position='fixed'; travolta.style.left='25%';travolta.style.bottom='0%';travolta.style.zIndex='10000'; document.body.appendChild(travolta); }
what the
it puts john travolta walking across your screen lel
yo i have a super fire mostly original .bashrc if anyone wants a copy
just give me your PS1
your bash console
my bash console?
imagine not using zsh
i do but i dont like switching and am much better at bash
i use powerlevel10k rn
but i just wanna see his ps1 on bash
what does ps1 mean
much better at bash? that doesn't have much to do with choosing an interactive shell
well each has a slight syntax difference
PS1, the environment variable for prompts
sure, but nobody's saying you should be writing scripts in zsh
you're likely to use bash anyways
and also the difference is typically negligible, you want to be POSIX-compliant regardless
nobody says we have to write in any lang ๐
i was offering my .bashrc file if thats what you want ill dm it
at least the version on my github
I'm just saying that zsh and bash are similar enough to where it doesn't matter
yeah but i wrote some cool custom functions and some decent aliases tho is my point
@hazy laurel
i like this server, got a free nitro without getting scammed (have reported like 5 of their sites and got them taken down) for some reason lol i might boost is there any incentive
just a blue role lol
now you've got a colored role \๐ฉ
can i change the color
nah
I think this server is running low on role colors or something
Haha can that happen
eh not really but semantic coloring
I thought ps1 was a game console (or powershell)
.ps1 is for PowerShell scripts IIRC
PS1 is just a colloquial name for the original Play Station AFAIK
i remember that one lol they made so many compromises with gameplay and loading times for better graphics and mp3 what a time to game
same here, learning a bit of powershell rn so was confused
why are u fighting with ๐
go to the ocean, drink some saltwater
Lol he would die ...we need fresh water
Nacl moment
mm, don't think I will
ill do it for you then
$ curl -X GET https://aem1k.com/void/
<script >/๏พ โโโโ/[ ๏พ โโโโ=""],๏พ โโโโโโโโ='"',๏พ โโโโโโโโโโ= ๏พ โโโโ==๏พ โโโโ,๏พ โโโโโโโโโโ=๏พ โโโโ== ๏พ โโโโโโโโ,๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ+๏พ โโโโ,๏พ โโโโโโโ=๏พ โโโโโโโโโโ+
๏พ โโโโ,๏พ โโโโโโโโโโ=+๏พ โโโโ,๏พ โ=+๏พ โโโโโโโโโโ, ๏พ โโโโโโโโโ={}, ๏พ โโ=๏พ โ+๏พ โ,๏พ โโโ=๏พ โโ+๏พ โ,๏พ โโโโโ=๏พ โโ+๏พ โโโ,๏พ โโโโโโโโโ=๏พ โโโโ+๏พ โโโโโโโโโ,๏พ โโโโโโโโโโ= ๏พ โโโโโโโโโโ.๏พ โโโโโโโ+๏พ โโโโโโโโโ,๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ[๏พ โ] ,๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ[๏พ โโโโโโโโโโ],๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ[๏พ โ]
,๏พ โโโโโโโโโโ=๏พ โโโโโโโโโ[๏พ โโโโโ],๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ[ ๏พ โโ],๏พ โโโโโโโโโโ=๏พ โโโโโโโโโ[ ๏พ โ],๏พ โโโโโโโโโโ=๏พ โโโโโโโ[๏พ โโโ],๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ[๏พ โโโ],๏พ โโโโโโโโโโ=๏พ โโโโโโโ[๏พ โ] ,๏พ โโโโโโโโโโ="\\" +")(",๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ[๏พ โโโโโโโโโโ],
๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ[๏พ โโ],๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ[๏พ โ],๏พ โโโโโโ=๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+ ๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+" ",๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+ ๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+ ๏พ โโโโโโโโโโ,๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ[๏พ โโโโโโโโโโ][๏พ โโโโโโโโโโ],๏พ โโโโโโโโโโ(๏พ โโโโโโโโโโ(๏พ โโโโโโ+๏พ โโโโโโโโ+๏พ โโโโโโโโโโ(
๏พ โโโโโโ+๏พ โโโโโโโโโโ(๏พ โโโโโโ+๏พ โโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+ (๏พ โโโโโโโโโโ=๏พ โโโโโโโโโโ+๏พ โ+(๏พ โโโ+๏พ โโโ)+๏พ โโโโโโโโโโ)+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+ ๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+ "'๓
ฅ๓
ถ๓
ก'"+๏พ โโโโโโโโโโ+"."+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+
๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โ+๏พ โโโโโ+(๏พ โโ+๏พ โโ)+๏พ โโโโโโโโโโ+ ๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+"/"+๏พ โโโโโโโโโโ+".{"+ ((๏พ โโโ+๏พ โโโโโ))+ "}/"+๏พ โโโโโโโโโโ+๏พ โ+(๏พ โโ+๏พ โโ)+(
๏พ โโโโโ+๏พ โโ)+",'"+ "'"+๏พ โโโโโโโโโโ+๏พ โโโโโโโโโโ+๏พ โโโโโโโโ)())( )+๏พ โโโโโโโโ)()) ()</script>
just one script with random symbols
ah yes, jsfuck
besides, curl cant harm you anyway for viewing the source
if you downloading something maybe
woah
$ curl -X GET http://aem1k.com/0/
<body onload=eval(eval('"'+escape("๏ฟฝ๏ฟฝ๏ฟฝ").replace(/..(.)..(.)/g,'\\x$1$2')+'"'))>
is that the same @echo fern
@sweet oyster thanks!
someone add this to their .bashrc and youll thank me later
google() {
search=""
echo "Googling: $@"
for term in $@; do
search="$search%20$term"
done
xdg-open "http://www.google.com/search?q=$search"
}
google() {
search=""
echo "Googling: $@"
for term in $@; do
search="$search%20$term"
done
xdg-open "http://www.google.com/search?q=$search"
}
usage from CLI: google <TERM>
this otn is funny. for some weird reason, i find this funny, not because of kat. but i can relate
Lmao thanks for that notification ๐
With ArrayDeque in Java, why canโt you access elements by index if the underlying structure is an array?
You can do this with Stack but not with ArrayDeque
Why does it let you index LinkedList which is O(n), but you canโt index ArrayDeque which would be O(1)?
!tban 938851074574536747 1w told you you'd be removed if you continued
:incoming_envelope: :ok_hand: applied ban to @ancient dragon until <t:1645894867:f> (6 days and 23 hours).
because it implements the List ADT :D
and ArrayDeque doesn't
Why couldnโt they just make ArrayDeque implement List too?
oracle dumb ยฏ_(ใ)_/ยฏ
is that a real thing 
pretty much how I feel if I ever try to search through sources on Developer Tools
Me: I'mma program now!
turns on music, turns down lights, lifts desk to standing position, prepares...
Partner: Here's dinner sets down loaded plate of nachos
Me: ...
Me: I'mma program tomorrow!
cute!
very
real programmers are si-- oh
Almost as much as me
I never want to be a real programmer under that stupid stereotype. :)
The easiest way to tell a Real Programmer from the crowd is by the programming language he (or she) uses. Real Programmers use FORTRAN. Quiche Eaters use PASCAL. Nicklaus Wirth, the designer of PASCAL, was once asked,ย "How do you pronounce your name?". He repliedย "You can either call me by name, pronouncing it 'Veert', or call me by value, 'Worth'."ย One can tell immediately from this comment that Nicklaus Wirth is a Quiche Eater. The only parameter passing mechanism endorsed by Real Programmers is call-by-value-return, as implemented in the IBM/370 FORTRAN G and H compilers. Real programmers don't need abstract concepts to get their jobs done: they are perfectly happy with a keypunch, a FORTRAN IV compiler, and a beer.
Real Programmers do List Processing in FORTRAN.
Real Programmers do String Manipulation in FORTRAN.
Real Programmers do Accounting (if they do it at all) in FORTRAN.
Real Programmers do Artificial Intelligence programs in FORTRAN.
If you can't do it in FORTRAN, do it in assembly language. If you can't do it in assembly language, it isn't worth doing.
Reject real programmer, embrace imaginary programmer
Could be my anxiety attacks plaguing me today or that I'm just a grumpy jerk. I know it's supposed to be a joke. Feels silly to me.
See how it ages lol
That makes vaporware...imaginary programs
More lol
Generally, the Real Programmer plays the same way he works -- with computers. He is constantly amazed that his employer actually pays him to do what he would be doing for fun anyway, although he is careful not to express this opinion out loud. Occasionally, the Real Programmer does step out of the office for a breath of fresh air and a beer or two. Some tips on recognizing real programmers away from the computer room:
At a party, the Real Programmers are the ones in the corner talking about operating system security and how to get around it.
At a football game, the Real Programmer is the one comparing the plays against his simulations printed on 11 by 14 fanfold paper.
At the beach, the Real Programmer is the one drawing flowcharts in the sand.
A Real Programmer goes to a disco to watch the light show.
At a funeral, the Real Programmer is the one sayingย "Poor George. And he almost had the sort routine working before the coronary."
In a grocery store, the Real Programmer is the one who insists on running the cans past the laser checkout scanner himself, because he never could trust keypunch operators to get it right the first time.
The nachos were, btw, amazing and now I'm going to take a nap.
๐
that's 20 hours old 
knees
butts /j
nostrils
imagine excluding the they/them programmers smh
Speaking of Fortran, see the most recent pin in this channel \๐ด
It was a simple age back then lol bell bottoms... mysognistic males and punch cards
I have seen C versions of this lemme search
wait what i could've sworn that happened earlier this morning, just without punch cards
it is a meme. sorry :C
my life is a meme ๐ญ
Lol im still single
Cant find the c version lol
But found this http://www.bernstein-plus-sons.com/RPDEQ.html
Lol the msogyny
I dont endorse it
i endorse it
real programmers dont program
why
funne
tbh i don't see the misogyny much but if i did i wouldn't appreciate you joke endorsing it
oh, i didn't see that misogyny message, i just saw the "Real programmers ..."
Yep i cut it off there..lots more in the link
Lol the definition of a real programmer..
Changes with time
that's actually not that bad
i saw mental midget
Yeah i question it too but that was what circulated back then
so you won't delete it?
Ok
Yeah it is if you take it as a joke but not if some will be hurt
most of it was fine
but as a moderator i'm gonna high key question the mean-spiritedness of it all
what if real programmers are fake
then they're not real programmers
but they're real programmers
i bet real programmers wouldnt be tired of it
Ok what about int programmers
they're a subset of real programmers too
imaginary programmers
dont square root a negative programmer pls
Dr James Grime discusses a type of number beyond the complex numbers, and why they are useful.
Extra footage: https://youtu.be/ISbJ9S0fzwY
More links & stuff in full description below โโโ
Support us on Patreon: http://www.patreon.com/numberphile
NUMBERPHILE
Website: http://www.numberphile.com/
Numberphile on Facebook: http://www.facebook.com/n...
Quaternion Programmer then lol
Useful for 3D
How to think about this 4d number system in our 3d space.
Part 2: https://youtu.be/zjMuIxRvygQ
Interactive version of these visuals: http://3imaginary1real.com
Help fund future projects: https://www.patreon.com/3blue1brown
An equally valuable form of support is to simply share some of the videos.
Special thanks to these supporters: http://3b1b.c...
from cardmaker.model.constants import COLORS
from cardmaker.model.constants import FONTSIZE
from cardmaker.model.constants import FONTTYPES
from cardmaker.model.constants import HORIZONTALALIGNMENT
from cardmaker.model.constants import WEIGHT
from cardmaker.model.constants import T_COLORS
from cardmaker.model.constants import T_FONTSIZE
from cardmaker.model.constants import T_FONTTYPES
from cardmaker.model.constants import T_HORIZONTALALIGNMENT
from cardmaker.model.constants import T_WEIGHT
hep, too many options!
๐จ
wait, i just noticed i'm renamed
weird
@pytest.mark.parametrize(
("attr", "value", "expected"),
(
("color", "default", "default"),
("color", None, None),
("color", "invalid", None),
("fontType", "default", "default"),
("fontType", None, None),
("fontType", "invalid", None),
("horizontalAlignment", "left", "left"),
("horizontalAlignment", None, None),
("horizontalAlignment", "invalid", None),
("isSubtle", False, False),
("isSubtle", None, None),
("isSubtle", "invalid", True),
("maxLines", 1, 1),
("maxLines", None, None),
("maxLines", "invalid", None),
("size", "default", "default"),
("size", None, None),
("size", "invalid", None),
("weight", "default", "default"),
("weight", None, None),
("weight", "invalid", None),
),
)
It continues to grow...
from cardmaker.model.constants import (
COLORS,
FONTSIZE,
...
)

smh
from cardmaker.model.constants import *
lol
My linters disagree with this idea.
from cardmaker.model.constants import *```
๐ฅ

If true, allow text to wrap. Otherwise, text is clipped.
I love the fact that this flag is optional and defaults tofalse. Display your message with this object, we'll clip most of it by default.
bruh
This is smexy though. Look at that future annotations. (still looks weird to me)
@dataclasses.dataclass
class TextBlock:
type: str = "TextBlock"
text: str = ""
color: str | None = None
fontType: str | None = None
horizontalAlignment: str | None = None
isSubtle: bool | None = None
maxLines: int | None = None
size: str | None = None
weight: str | None = None
wrap: bool | None = None
Not quite as immediately readable to my eyes as Optional[str]
Matching the target model so I don't need to translate the attributes into the payload. https://adaptivecards.io/explorer/TextBlock.html
hm
def __repr__(self) -> str:
# Remove all None values
cleaned = {k: v for k, v in dataclasses.asdict(self).items() if v is not None}
return json.dumps(cleaned)
It is, basically, a dict. One with setters.
yeah thats sort of a consent issue tbh, with rando discord peepo its best to not do those jokes lol
college profs sometimes like to pretend everyone is in with their antics -_-
That one made some in the class cry lol..even a military veteran
5 failed, 44 passed in 0.10s Close to done. This is the largest of the three needed models. Darn nap really delayed me!
45 passed in 0.12s
Name Stmts Miss Branch BrPart Cover Missing
---------------------------------------------------
---------------------------------------------------
TOTAL 122 0 20 0 100%
8 files skipped due to complete coverage.
There we go. Momentum. Now for sleep.
Next model is ez. Not even listed in the docs and just need width and entities[].mention.
"msteams": {
"width": "Full",
"entities": [
{
"type": "mention",
"text": "<at>Preocts</at>",
"mentioned": {
"id": "[UID or Email here]",
"name": "Preocts"
}
}
]
}
Maybe a FactSet and Action.OpenUrl to wrap it up. Toss it into a builder abstract, toss a http.client send in, bob's your uncle, and presto: mildly automated messages into teams with no need to register/build/maintain a bot.
what is a string
Hi, I was wondering if someone could offer a good recommendation of language to use. I want to make a website that stores posts, articles published, pictures etc and have full freedom with design elements. Reactjs and firebase a good combination to use?
@crimson cobalt
yupp i'm here
sup
can i know what you are doing with python
i used to make discord bots and do backend web dev with python, but now i have transitioned to more of a C#/Rust dev
i stil do python but not in major projects
and how did you started
how long have you been programming moai?
9 years (but i took a long break and wasn't consistent throughout that time.)
i rlly started focusing on programming in 2020
so you are the experienced one
well
your profile says you're 14... if that's still true, I'm very impressed
i didn't do much with programming beforfe 2020. i just was introduced to scratch
Hi
u 14?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
and after learning scratch, i legit stopped until 2018 and checked out html/css
i learned scratch around 2015
so i was 5
ohh
how introduced you into coding
Discord bots for me
yes i am
Same
nice way to get into lmao
๐ญ
I only started python like 3-4 month ago
it is
Ya but the problem is Iโm bad at it and I get bullied by @long vortex doing !resources
Facts

im currently learning c# and rust with the hopes of becoming a backend/software dev in those langs
resources
STOP
๐ฟ
@long vortex ares you can not bully us begineer ๐ฅฒ
i don't everyone was a beginner at some point
though, you better admit you are a beginner rather than trying to act like you are advanced
he isn't doh
yeah why to be oversmart
@radiant socket
ok
can i share my c++ code?
only if you want help
i meant, do you know c++?
a bit
class Solution {
public:
ListNode* mergeTwoLists(ListNode* list1, ListNode* list2) {
ListNode* head = nullptr;
ListNode* temp1 = list1; ListNode* temp2 = list2;
ListNode* temp; ListNode* prev;
if(list1 == nullptr)
{
head = list2;
return head;
}
else if(list2 == nullptr)
{
head = list1;
return head;
}
else
{
while(temp1 != nullptr && temp2 != nullptr)
{
if(temp1->val < temp2->val)
{
temp = temp1;
temp1 = temp1->next;
}
else
{
temp = temp2;
temp2 = temp2->next;
}
if(head == nullptr)
{
head = temp;
}
else
{
prev->next = temp;
}
prev = temp;
}
if(temp1 != nullptr)
{
temp->next = temp1;
}
else if (temp2 != nullptr)
{
temp->next = temp2;
}
return head;
}
}
};
this was the first case
class Solution {
public:
ListNode* mergeTwoLists(ListNode* list1, ListNode* list2) {
ListNode* head = nullptr;
ListNode* temp1 = list1; ListNode* temp2 = list2;
ListNode* temp; ListNode* prev;
if(list1 == nullptr)
{
head = list2;
}
else if(list2 == nullptr)
{
head = list1;
}
else
{
while(temp1 != nullptr && temp2 != nullptr)
{
if(temp1->val < temp2->val)
{
temp = temp1;
temp1 = temp1->next;
}
else
{
temp = temp2;
temp2 = temp2->next;
}
if(head == nullptr)
{
head = temp;
}
else
{
prev->next = temp;
}
prev = temp;
}
if(temp1 != nullptr)
{
temp->next = temp1;
}
else if (temp2 != nullptr)
{
temp->next = temp2;
}
}
return head;
}
};
this is the second case
Allman bracket style is so hard to read IMO
i'm pretty sure leetcode just has a bunch of variability in their measuring thing, which probably accounts for the differences
so its a leetcode specific thing?
that's my first guess ยฏ_(ใ)_/ยฏ
I know this isn't about python but how can I run 2 different tasks with different versions of discord.py? I have a bot for discord.py 2.0 and one for discord.py 1.7
I want to run both on one server. Can any1 help?
i ask cuz there was a pretty huge difference in terms of competitor's times
also, are those pieces of code different?
yes they are
oh, there's 2 returns different, i see
notice the return
yes
yeah, i'd try just submitting both of them again
nvm, leetcode's just messed up beyond logic
i submitted the exact same code again, and it took 15 ms
yeah
Okay then, ig. You are your own master ๐คท
that was terrible
Hey! That was great
??
u dont use git :<
I think I've over engineered. :3
https://github.com/Preocts/msteamscard-maker/blob/main/src/cardmaker/model/elements/textblock.py
It has a view attributes.
I knew I was off the deep end with the test count before even starting on a client module. 66 passed in 0.09s
1 failed, 69 passed in 0.12s
Overshot greatness.
obligatory "nice"
Glorious
def __repr__(self) -> str:
return json.dumps(self.asdict)
@property
def render(self) -> str:
"""Render object as serialized string. All None values are removed"""
return str(self)
@property
def asdict(self) -> dict[str, Any]:
"""All None values are removed from output"""
return {k: v for k, v in dataclasses.asdict(self).items() if v is not None}
They are so interconnected it makes me giggle.
Is there any specific reason you didn't use something like indent=4 in the json.dumps for repr?
Not particularly. It's meant to be used as the payload of a web call so no need to be readable.
I would've thought having a readable repr to be handy
just in case you ever need to debug or something
well... actually I'm a bit confused lol
if you were using the asdict as a payload, wouldn't you prefer that it's a dict? (instead of a string)
asdict is for other object to assemble larger payloads together. Actually
as I was putting together one of the clients, the render property held little value at all. Maybe I will toss an indent into it.
Sounds reasonable.
some of it seems a little weird, tbh lol
I feel like you'd just overwrite __dict__ and then you can do whatever outside of this class
What do you mean?
Hmm, the client is the only piece calling asdict and it is the final product (needing to be serialized). So yeah, the smaller pieces could have a cleaner repr for human consumption. https://github.com/Preocts/msteamscard-maker/blob/main/src/cardmaker/webhookcard.py#L13
src/cardmaker/webhookcard.py line 13
class WebhookCard:```
lol I think I've misunderstood how __dict__ works this entire time
probably not appropriate here, then
__dict__ stores the attributes basically
It is, more or less, all resulting in a dict for the final product. https://github.com/Preocts/msteamscard-maker/blob/main/tests/fixtures/webhook_card.json This is what it generates for now.
The extras are all abstractions or builders making it an easier object to work with in code. Build a TextBlock, use it in any number of Cards.
For some reason, I figured it's what would get called by dict()
mm no
which would have been consistent with similar dunders, but... alas, I guess I can't expect the stdl to be consistent
well, there arent any dunders like __list__ or __tuple__ either
theres just one __iter__ which all of them will call
fair enough
I wonder if implementing __iter__ here would be appropriate
meh, I'm sure it's fine how it is
We'll see. sometime mid-this week I hope to start a story that is working with these cards.
at work, that is.
also ngl I feel like using properties here is a bit strange
The real neat thing is, if I've done this correctly, none of this requires any auth or registering with Teams as all. All I need is a webhook connector's URL to drop the paylaod into and done.
like... it works, but I think I would've expected Foo.asdict to be callable
Yeah? That's valid feedback. I don't have a strong preference either way.
idk, there's like an intuitive sense based off of the semantics that you can tell it should do something more than just act as a getter, if that makes sense
hah guess what this returns dict(["ho", "fo"])
yep
Hmm.. .asdict or .asdict()
i generally call mine to_dict()
yeah, I'd do to_dict()
Have to say, thinking about it I do trip in pathlibs when .parent is a property but .resolve() is a method.
just because I feel like generally function/method names should be verbs
but dataclasses calls it asdict() so theres that
hmm I wonder if there's a semantic naming guide out there somewhere
Right, which is the subtle "as" versus "to" in the name.
Should all (or most) function/method names be verbs?
makes sense to me
verb'ed methods is a strong semantic.
def do_main(): 
set_, get_, fetch_, add_, save_, isolate_
def run(): \๐ฉ
Gonna sleep on it (hopefully) but this was a good chatter. I appreciate it!
so then... how about "Function/method names should typically be verbs/actions"
is there a fancy grammar word for actions
verbs.
isnt that just verbs
:loading_cat:
okay so then what was I thinking of
what about functions that returns bools
Boilerplate is cool
def is_valid(x):
def validate(x): \๐ฅด
is is my goto for anything bool checks.
hmm validate doesnt sound bad 
Look at how fast Mac is now!! I wonder if they flipped it over to the new arm processors.
Those used to be the slowest tests.
damn
how do these work
like
are they all VPSs or something like that
or just VMs
Current runner version: '2.287.1'
Operating System
macOS
11.6.3
20G415
I don't know how to read that :derp:
probably KVMs on one system
It's all github actions so GitHub just spins up a docker container for the environment. Runs the actions in the config, then nukes it.