#ot1-perplexing-regexing
1 messages · Page 303 of 1
Hundreds I say!
What is Ed?
the standard text editor
nah, it's a very basic command-line text manipulation tool
it's not really an editor, much like its more modern equivalent, sed, you use a regular expression
sed syntax is widely known at least
if you type "hello" in a single message, then follow it up with "s/hello/goodbye/" you'll see what I mean
Hmm
try it
s/hello/goodbye
well your last message didn't have hello in it
Oh in cmd?
no, here
Oh
also I think you need that slash at the end
goodby
Oh
Is it a discord feature?
yeah
Hmm
but it's exactly what sed does too
Didn't know that
Ok only last one
lol offtopic channel names do change! D: I never realized before :S
@rough sapphire Hm?
?
omg I didn't know marquee tag still worked
ymmv though, i wouldn't rely on it at all
I just saw what looks like a really old web

Don't you hate the advertising that says it's "empowering"
This uses all the shitty marketing words Libra’s mission is to enable a simple global currency and financial infrastructure that empowers billions of people.
Just missing cloud and vr in there
who wouldn't want to empower the people
they always find ways to spin things in ways that makes you the bad guy if you disagree 😛
empower is political ye
whaaaaat - you mean you dont want to give stupid amounts of money to a non profit charity organisation that only spends 1% of their earnings on the actual mission?
:)
That's also owned by 20 monopolies in different sectors trying to cling for survival, spearheaded by a company that has the biggest reputation on earth for being untrustworthy out of anything else
were you googling R
#python-discussion I was trying to find a picture of r syntax
Turns out the letter r is too vague, who knew!
@vestal briar the rabbit look good xD
:)
hey everyone
I'm reading about Jenkins, Sonar, and all the stuff and I was wondering
what's the "best" way to deploy and use these tools ? Should I heavely rely on docker ?
Docker is a very popular deployment tool today, yeah
Hm, I'll try to find a howto on that topic then
docker is super prevalent in many environments for deploying stuff
the basics aren't too tricky to get to grips with
docker-compose would be a useful thing to look into too
I'm proud of this tiny little parser
/// Converts a u8 slice to a valid utf8 string or throws an error if not
fn u8_to_str(input: &[u8]) -> Result<&str, SyntaxError> {
match str::from_utf8(input) {
Ok(x) => Ok(x),
Err(_) => Err(SyntaxError::DataTypeNotFound),
}
}
/// Matches to a [DataType] depending on the string supplied
fn dt_match(input: &[u8]) -> Result<DataType, SyntaxError> {
let input_str = u8_to_str(input)?;
match input_str {
"s" => Ok(DataType::StringType),
"i" => Ok(DataType::IntType),
"o" => Ok(DataType::ObjectType),
"a" => {
let array_inner = match get_array_type(input) {
Ok((_, x)) => x,
Err(x) => return Err(SyntaxError::ArrayError),
};
Ok(DataType::ArrayType(&array_inner))
},
_ => Err(SyntaxError::InvalidDataType),
}
}
named!(get_array_type<DataType>,
map_res!(
.. // <-- right parse here
dt_match
)
);
named!(
get_dt<DataType>,
map_res!(delimited(char('('), is_not(")"), char(')')), dt_match)
);
This took 2 days
:)
Not many other ways to do it consisely
So I have to use some intresting recursion
@vestal briar this is rust?
Yeah
I should learn it..
@vestal briar for the upper function you could probably just .map_err(SyntaxError::DataTypeNotFound) instead of a function
Oh true
So uhhh, anyone has some cool ideas for a Python project?
hm if I was to try out docker in a VM, the best and easiest way to affect a domain name to that VM would be to modify the host file right ..?
that feel when you're re-reading a series of novels and find out there's a movie adaption soon
Disney’s ARTEMIS FOWL releases in U.S. theaters on August 9, 2019! Directed by Kenneth Branagh and based on the beloved book by Eoin Colfer, ARTEMIS FOWL fol...
a disney adaption, no less
it was delayed until May next year, but still
What is that feeling? Mild skepticism
Nah, I'm interested
I have yet to see a single book I've read have a good film adaptation
haven't read harry potter, then
Think the films detract from enjoyment of the books
It's a different kind of media really
Actually, good omens and poirot are both good - although not films
Hog Father was amazing too
That's true. Although also a miniseries right? If so, my takeaway is that all books should get a miniseries
I suppose it was? I'm honestly not 100% what it's considered
Can do a lot more in 6 hours than you can in 2.5. You get a lot more wiggle room to bring the nuance and character of books in
Movies do have big budget for cool effects to be fair
True, but I think good books pretty much always live on more than action. So it's fine for stories written as movies, but less so for adaptations
yeah for most genre
but stuff like sci fi can benefit from big action/effects budget
I guess now we have shows like Battlestar Galactica that was like movie graphics for a whole long-form TV show 😄
Battlestar Galactica was like a 70+ hour movie lol
so good
Today we are finally making some 1-octen-3-ol! Aluminum isopropoxide: https://youtu.be/SuoWnueBJaY Patreon: https://www.patreon.com/user?u=2448989&ty=h Faceb...
the snake in Snake eats fruits, and dies when it eats itself
I actually woke up at like 7am for once cus I went to bed early last night and now my mum is forcing me to leave the house and I wish I hadn’t woken up now 
Climb back in through the window
Hahaha
She can’t find my blood test form so I may not be going 
Oh god NevErmind she found it fuck
Just had a kid leave the waiting room saying they couldnt find his blood veins
Multiple pokes no luck, come back tomorrow
I get blood tests a lot and one time the doctor was like “oh you have some very nice veins” I was like... uh thanks?
I don’t think I want my veins to be popping 

It makes it easier to get a clean stick
Less pain for you and less stress for the nurse
Theres no blood in ya meat
I used to hate getting blood tests and then I had to get a steroid injection in my knuckle and after that pain I am TOTALLY okay with Having a blood test if it means I don’t have to go through that again
you should have those that stop your blood from clotting, they inject a HUGE needle into your stomach
👁👄👁
I’m getting surgery on my knuckle soon and I hope that they put me to sleep but I have a feeling they won’t just for that
i had surgery on my ankle, it was brutal, luckily i was asleep!

That steroid injection was the worst outside pain I’d ever felt, man just stuck a needle in my knuckle and started bending it and moving it all around
Ew
i saw one nurse, and she was a right witch! told me men are such babies when it comes to taking blood.
turns out she was really shit at it, punctured a vein, and my entire forearm was bruised!

she went through both sides of it, so it just bled out into my arm
Holy fuck
i got big juicy veins
nurses fucking love em
back of the hand, wrist, forearm, all massive veins
i'd make a great junky
My tendon is out of place so it curves round my knuckle so they tried giving me a steroid injection to stop the pain and it didn’t work so now they have to poke around with it in surgery to see what they can do
At first I thought I’d broken my knuckle cus I can a little dip in the bone but turns out that’s where my tendon is meant to be sitting 
i had to get the tendon over my right thumb cut in half so they could remove a bone fragment

still doesn't feel the same afterwards
Apparently there’s like bands that hold your tendon in place and they think I’ve snapped one of them so I’m hoping they can just.. tie it back together?
@gentle moss same
The vein thing
Mentioned above gf is a nurse, and she loves pretend sticking them
i was once sorta seeing a medical biology student
they can be super weird in a fun way
fucking naming all my bones and shit with biro
👁👄👁
@warm valley What are some projects you've done in the past?
Nothing really huge, only started programming mroe recently, but i've been doing an internship this summer at a research facility, and I've enjoyed it because it wasn't pure programming, it had a feeling of applying knowledge that wasn't just programming and also some math
What do you want to use Python for? What are some big drives for you?
ya get me, like applying programming to other subject knowledge
uhh anything researchy could be interesting, maybe some ML stuff, or some medtech related stuff
I dont know if thats really helpful, what I said
Hmm.. No project comes to mind that needs anything like that right now.
well it doesnt have to be like a real world project
can be small things
like even small things like a double pendulum or some kind of chaos theory related thing or whatever
Double pendulums are crazy 
could say they're chaotic
are they hard to do?
I guess the category of scientific programming interests me, any projects to start in that area
anyone done any scientific programming projects, can you recommend any
I was a BIG BOY 
Blood donor?
did you get a lolly pop?
i got my blood done when i was fucking 25 and the nurse offered me a lolly
fucking bet your ass i took that shit
they always give me a squeezy stress toy when they do my bloods
not to keep but it helps with the anxiety
apparently that's a dyspraxia thing, at least that's what they told me
i cant even remember the last time i did a blood test 
I like blood tests.
They did not give me a lolly pop >:((
i had a crp blood test today
pokey poke
I've also never gotten a lollypop
time to swap doctors
Should probably do that anyways since my current one is a 30 min / 45min bus drive away from here
usually when my kid has to do a blood test, they give him a rubber ball.
norway doesn't do the giving candy to kids at the doctor thing so much, I guess because our doctors don't fail to see the irony? so often you get a toy instead.
depends on the kid 
:D
some of those balls were gone by the time we got to the car.
you won't be airport god forever, you know.
it's not that nice.
At least we get lollypops when buying stronger alcohol
that's.. weird.
Hey, I'm not complaining
Really?
yeah, you'd think vinmonopolet would do it everywhere.
not that I'd be eligable anyway
and besides, my beard is huge and has gray hairs, I haven't been asked for ID since I was 19
I think it might have ended now though
Let me just put a fake beard on
🤔
do they give you a bee then
https://gjerrigknark.com/24830 Says the campaign has expires here
whaaaaaaaaaaaaaaat
oh here sir is your complimentary bee
No, they refrain from killing one.
It's essentially a bee hostage situation.
wait no, the bee thing is a 2015 campaign?
hahaha
so if they have to ask you for ID and you're under 25, they murder a bee in front of you
hahaha
Exactly.
for the bee, maybe
I actually would be very upset by that. I'm one of those hippies who never kills insects.
same, except moths
You better beelieve it
i just don't like them
I just let them out.
wasps eat insects and shit
mostly because I don't wanna fight a wasp
One does not simply let them out of our garden
never been stung by anything and had to deal with them plenty
I got stung as a kid
idk maybe it really fucking hurts
My little brother stepped on a nest as a kid
oh shit
blew up by stings
wow
No
rip
He was a real swell chap
used to live in a house with an old air conditioner from like the 60s that you had to mount outside and make a hole in a window for
turned out one summer there was a wasp nest in it 😃
so imagine thinking youre safe about to escape sweltering heat
nope, wasps start flying out of the aircon
time to escape aircon room
rip
Sounds like a defcon aircon situation.
I get jumpscared by spiders appareing next to me but I don't want to kill them
- poor spider
- It's insides will go everywhere
Oh well then it crossed the line
Nicely scoop it into a plastic cup
Then jump on said plasic party cup
Then drink whatever colour it's blood alternative is
What the hell
I scooped it up, throw it in da toilet,
and burned the sheets.
We had a convo about haemolymph the other day

:P
The hospital in liverpool is fucking depressing
From 1969, should have been demolished 2 years ago when a new one was built
It's crumbling
Also where all the architects in that time high?
Most of the rooms are tiny nooks that are "FIRE HAZARD STAFF ONLY STORE ROOM"
When they were building it they were probably pretty high up yeah
It's a labarinth
They where making a new one but the corrupt contractor went bankrupt
Look at the fucking windows
Hm
I’m also not wearing my glasses so I’m slightly blind but I’ll take your word for it
Basically irl they look shitty
The whole place inside is old fashioned
With random posters up from the early 90s
That’s eerie
Like every hospital in England lol
Mhm
Because the FOOKIN NHS
They really need a better system
And their whole it stack runs 1995 software for their new machines
Because everyone is over worked and everywhere is crowded and everything is a waiting list
It's legacy code running legacy code running legacy code running legacy code running legacy code etc
Jesus
They should do it if you earn over X amount, you have to pay X% of your bill or something
I know someone that works at a security firm for the nhs right at the time of that locking virus
0 they could do
God that must have been chaotic
Mhm
A lot most likely died from that computer virus
And there's no chance in hell you could lockdown thousands of nhs computers all running different osses with different bugs
:/
I just googled it and I couldn’t find an answer but I found “more than 900 NHS deaths yearly caused by IT failings”
Damn
So probably a LOT
“It follows warnings that all 200 NHS trusts assessed for cyber security vulnerablities has failed to meet the standards required”
They are just trying to keep together all the half-working equipment with not enough manpower to rewrite it
Can Jeff bozos just come and fund our NHS please 
I think even he would struggle to keep it going without spending everything he’s earning
Free with prime until we take over the world
I think I worked out before that with how much Jeff bozos is earning he could afford to end world hunger
But amazon would soon collapse because he wouldn’t be able to put funds back into it
He could end it for a little bit tho 
I spend more % on charity then he does
And I have no stable income
If i'm rich i'll spend 99% on charity
I reckon if every rich person in the world worked together they could get the money to end world hunger (maybe, I’m sure overpopulation would soon increase)
Fuck having an inheritance and rich spoiled children
Right, like if you’re rich rich, you could spend SO much of what your earning and still live a comfortable life
Give em a million each in a savings fund that will gradually pour out to them
All I need is a computer and a room 
Yep
I'll have my children not be spoiled but make sure they never have too little to starve
And the rest will all be going to various charities
I think my parents did the same for me, their not Jeff bozos rich, but they’re alright, and they’ve never just given me things, they either just say no I need to get a job or they make me work for them
The only time I get given without needing to work is Christmas and stuff, just normal presents
I’m hyped for Christmas 
This Christmas I’ll probably just ask for money cus I’m saving up for a lot of different things that would be too much to ask for
I have a nice laptop and a useless 3d printer I spent money on and I feel very guilty about
And I have sold everything else of value
I’m saving for a laptop and an oculus quest
VR is a fad :/
Gtg
I know it's a cool thing to have but it's probably not worth spending like £400 on
I learnt my lesson with this 3d printer
£200 gone
but want

And I can use it when I’m OUT
Like on holiday
The maids will walk in the hotel room and see my butt ass naked playing BEAT SABER
You can also get 18+ VR apps 👁👄👁
Woo I am in a cafe place
Time to do some rust before friends come and then continue
:D
@vestal briar What 3d printer you got?
Ender 3d
Why is it a waste of money?
Never really used it
I keep it maintained but just never had anything to use it for and if I did, wan't worth spending an hour calibrating
https://www.youtube.com/watch?v=P79MSwxWKyk
okay, it's amazing
A visual Magnum Opus (if you didn't know this is a parody to this video: https://www.youtube.com/watch?v=BwY2vzuksGk hence the oscar-worthy animation style) ...
i kinda love first deus ex
and this is it's story, but in MUSIC
i just got a really sudden urge to play minecraft obsessively
AAAAAAAAAAAAAAAAAAA
I WANT DEUS EX BUT I WANNA SAVE UP FOR MORDHAU
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
this is like inner demon and inner angel fighting
Solution, better job
only if i knew where i can find that better job
hey guys, i chose here instead
50th anniversary of abbey road!
you know what that means, right?
no fucking chance of driving down abbey road
I thought it was Abbey Lane for some reason
:D
it's a well known "fuck this route" in london
tourists love that zebra crossing and you're legally required to stop if someone is standing at it or near it
all london routes are "fuck this route"
you only drive in central london if you HAVE to
which isn't exciting for me considering i want to be a live sound engineer and ill most likely be working primarily in London and theres a pretty high chance that ill be driving trucks of equipment every now and then 
psssst ive been living in london for 18 years
PSSSSSSSSSSSSSSSSSSSST I haven't been living in london for 23 years
didnt you say you live in the middle of the woods riot >_>
nah, i live in the woods now
too many 2x4's got thrown through our car windows and school kids stabbed so my mum moved us to a forest
hahaha
there are woods in london 
i dont know how many compared to the rest of england but theres a few
no, there are not woods in central london
if you're from the greater metropolitain area
maybe
O2 is nice
Time to triangulate riots location
20 mins train from o2, lives in woods near london
There must be some select areas with that
I don’t even know that
I know if I’m south or east London but idk if I’m south or east from O2
I just hop on the train and scadaddle
you must know if u're north or south of the river though?
in the river
as soon as you go East of Tower Bridge even, ways to cross the river get pretty sparse
so its always obvious which side you are on
no
ive only started driving recently and ive never driven in london yet
i mainly stay underground and then pop up at mainly the O2 and like central central london where all the tourists are
I was a tourist once and some posh woman tried to barge in front of me when talking and I accidenty cought some of the rubber soal at the bottom of her shoe
She looked at me very dirtily done a huffing puffing mini scream and I just looked behind, stared for a split second and continued walking
i never experience anything like that : /
maybe im just a likable person 
from tkinter import *
#Python default bank sample
from random import *
Bank = Tk()
Bank.config(bg = "grey")
Bank.geometry("1350x800")
Bank.title("")```
That's a basic tkinter sample
Currently it's a bank program sample
ugly grey background 

these are my go to for tkinter
'color1' : '#21618C',
'color2' : '#5DADE2',
'color3' : 'white',
'font' : 'Caviar Dreams'
i keep listening to the thing i remixed of yours riot
and thinking "hmm.... it can be better"
Cool but they took their time with that
Gitlab has had it for some years now
Heh looks like they still have pricing on private repos
What have github been doing for the last 3 years? Nothing has changed on the website apart from that beta "sponsor" button that people have spammed on old projects
That's irrelevant
Cause github is the only place for projects that want to be seen
If i get 4x parrallelism with github, and docker build support, ill be moving to github cicd
Self-hosted runners. If you already have your own VMs within your data centers or as instances you manage in the cloud, you can use Actions to automate your workflows with the same simplicity and speed. Install the Actions runner on your VM and register them with Actions. Workloads that execute on self-hosted runners are free.
This is really, really good
Oh shit
Circleci looks like its partnered
i don't think it means that, i think it means they still intend to lead the category, and that github following them is just going to make them more relevant
(i'm reading "play bigger" these days, which is about highly successful companies being "king" on their categories, and taking most of the profit here, and achieving that usually by creating and defining their categories, so other companies moving into your space, when you are recognized as the leader, is a good sign, if you can stay identified as the king)
or at least they are trying to spin it that way because it's the best thing to do for them
yeah, i agree
they might well get ran over
and there is microsoft behind github now
mhm
with the incredible resources of azure
so yeah, it might get windy for them, we'll see if they can take it
hmm.. does anybody know how kronecker product for matrices is different to tensor product for vectors? 🤔
like, i don't see how they're different apart from the fact that one operates on matrices and the other on vectors.
I agree moonman maths
Why doesn't this bloody css work https://scowez.gitlab.io/owml-website/
A lightweight parser for a lightweight markup language.
@rough sapphire i did, as a lot of people i guess
fire pro is on sale right now
it's quite nice so get it i guess https://store.steampowered.com/app/564230/Fire_Pro_Wrestling_World/
The greatest grappling game returns to take on the world! Customize every aspect of the match, from your wrestler to the ring itself, in your fight for the championship belt.PLAY ONLINE Organize exhibition matches, tournaments, leagues, championship bouts and battle royals wi...
$8.99
1400
I heard about that
they remove the ads for the video games and replace them with actual guns
nice.
Eh stupid mothers going to games is better then antivax
Was a meme in my school for a while
Same photo
i think people just resurfacing it to display hypocrisy?
^
apparently someone moved a sign from a school display to the gun display
Yeah
wat?
"Michael Gove raised the prospect of holding a bank holiday on November 1 amid concerns that a no-deal Brexit would cause turmoil on the financial markets."
can't have a financial crash if the markets a closed, innit
@frosty berry do you think it was good? I’ve watched the first episode and I really like it but it feels like so much has happened in the first episode, the other episodes may drag it on and become boring
😄
@rough sapphire Chernobyl? it's very good
and yeah, i was surprised by how much happened in the first episode as well, but there is a lot left for what's to follow, believe me
i was not bored for a minute
i like that Chernobyl was so dramatic, what i do not like is that people i know think that the series is historically accurate. they cant seem to understand that it was nothing like that.. but the drama is good.
Hey!
someone i was talking to said the show was about "some nuclear explosion or something" and when question said he hadnt heard of chernobyl and thought it was just hte name of the show
…
how old?
i mean i was 1 yo, when it happened, so i don't remember things, but people have been talking about it a lot since
I feel like most Americans probably don’t know about Chernobyl
I only know about it because a reference was made in a book in my high school literature class
he's like 15 i think
im 18 and i wasnt alive when it happened but i sure as hell know about lol
i dont know if i was alive when 9/11 happened but like i know about that too
2001
he's also a bit of an asshole - he said "i don't get why people greif over ded people when overpopulation is the main cause of a near human extinction.
like forget 9 11 or cherbonyl" 
you know the date
believing stupid things at 15 is not uncommon, but sadly keeping them later is not either
at first i thought he was just some edgy kid trying to be hard and funny by saying dumb shit, but the more he talks, the more i think he actually believes what he says
he's also said that we should just nuke the middle east and "all the poor countries" and when we said that not only is taht wrong, you also cant just do that, because people wont just let you nuke everyone he said "once the other countries understand it'll be fine"
yeah, either he's a troll, or he's been fed very bad information
worst part is he's a staff member 🤔
Canv?a 
Never heard of that service
I mean you use a password manager, so it should just be a jumbled up password anyway, right?
it says im fine 
it is a new breach, but it may also be smooshed with another dataset
yeah
I do yeah
besides all passwords were bcrypt'd iirc
"Hollywood is racist ... what they're doing with the kind of movies they're putting out -- it's actually very dangerous for our country." - The President of the United States
i'd agree that this trend of Disney re-making perfectly fine movies into garbage is very dangerous
well mickey mouse is public domain soon isn't he?
i don't think remaking it stops it going into public domain
but perhaps bet your ass disney will give that one a bash
Mickey? I'm fairly sure he's not
So the copyright for Steam Boat Willie (the original incarnation of Mickey), is set to expire in 2024, but any subsequent versions will still be owned by Disney until their own times are up
yeah, my point is more i don't think just remaking mulan extends the copyright of the original works
for example
WHAT THE FUCK THEY'RE REMAKING MULAN
i just pulled a fucking disney out my ass
go figure
I'm looking forward to their Artemis Fowl movie
not seen them but the Aladdin trailer pissed me off
and not using Gilbert Gottfried
just awful choice
@gentle moss it lets them muddy the waters though, can you prove your stuff didn't use anything from the newer material
I liked the Aladdin remake - haven't seen the Lion King but I heard it's bad.
The lion king remake is okay
Some people would have preferred a more cartoon-approach to the animations, I think
I didn't mind the more realistic approach
the photorealism destroys all expressiveness
Nah, the biggest issue for people is that when you go with the realistic route, you can't have cartoon expressions
I don't need cartoon expression that much, though
Detective pikachu for instance was pushing the realistic border
We already have a perfectly fine version for that
And it was released over 20 years ago
did you guys see that thing on reddit recently
someone deepfaked the cartoon faces on the remake
I saw that
Made it look worse
But, nostalgia combined with a tendency to complain
And you get the reactions you get
i disagree
it does look worse quality wise, since it was just one guy doing it on his laptop vs a whole studio with a render farm
but the general idea i think is better
I disagree
I like the realistic approach
Instead of over the top cartoon expressions on realistic animations
We already have the old Lion King for cartoon expresssions, like I said above
it's not so much about nostalgia and the tendency to complain, i just really dislike the faces in the remake. there's no emotion in the character's faces. it's just not as fun as watching the cartoon version.
Sure
someone deepfaked the cartoon faces on the remake
link?
Check out the amazing fan art used here at: https://www.instagram.com/ellejart/ My IG: https://www.instagram.com/jonty_pressinger/
But having cartoon expressions in realistic animation is just worse to me
Kills the whole idea behind the style
what style is there to trying to mimic reality 1:1?
¯_(ツ)_/¯
part of the problem is realistic animal characters are hard mode
Yes
because they don't have facial expressions that work the same way as humans
And I think they did a great job
(ignoring the fact that the whole movie revolves around talking animals so reality is already out of the ballpark)
Hmm
That doesn't dictate that you can't use a realistic style for your animations
It's an argument that has nothing to do with it
like, live action humans are fine because... well, they're humans. they (and e.g. the genie) have human faces, and we know how to read emotion on a human face
the point is that youre arguing that you prefer realism, but the whole premise of the movie is already going against that
i just dont see the merit in what is basically a fancy gpu benchmark
No, I was just arguing that the point was to have a realistic animation style
Not that we suddenly have to have a realistic storyline
Those are two completely different things
Using my preference for the former, but the existence of the latter, to invalidate my preference is just silly
but wouldnt you agree that there's no such thing as 'realistic' animation style when it comes to talking animals
the animation style isnt detached from the premise. imagine you had a movie about talking trains
The kingdom hearts team did a pretty good job
You can still make talking trains look like realistic trains, minus the mouths
you could give the trains mouths, but it would violate the realism aspect to begin with
Let's just do everything in the style of annoying orange
To say that the addition of a fantasy story element now suddenly means you can't do a realistic animation style is weird
The latter doesn't follow from the former
It's just you trying to rationalize your preference
I don't care that you prefer that, by the wya
But arguing I can't have my preference for a realistic style because the story has fantasy elements is a bit odd
lol? that's not what im saying. you can make it look photorealistic i.e. you can make the cartoon faces look photorealistic too by virtue of rendering
im saying that if we're going to argue on the grounds of whether realism is better in animation then realism is already gone out the door
i dont care what you prefer either
That latter sentence makes no sense to me at all
and your claim about me trying to rationalize my preference is ironic
It seems like you can't seperate "realistic animation style" from "reality"
Ironic?
Oh, nice one
Anyway, sure you can make cartoon faces realistic photorealistic by virtue of rendering, but we're talking about animal faces here, not cartoon faces
That's the realism style they went with
And I like it
good for you, lots of people dont
Adding cartoon expressions to that would totally defeat the purpose of realistic animations
And I'm not arguing against their preference
They can have it
if anyone's trying to dismiss preferences it's you btw
nostalgia combined with a tendency to complain
Yes, I do think that plays a role in some of the complaining
That doesn't mean I think they can't have their preference
And that I can't have a different preference
And that I can't argue for why I think this is okay
I never said that
Thank you for attacking me on points of your own creation
Totally rational argument.
sorry you feel attacked
considering you started off by saying everyone
who disagrees is complaining and nostalgic
I didn't specifically say everyone and maybe I was careless in my phrasing
I was just commenting that I do think that's part of it
As I still maintain
But, if you're now going to claim that a remark like "ah right, and your preferences are purely rational and above reproach" isn't an attack, I guess this whole conversation has become rather silly
So, I'm going to do something else instead
ok
shrek style best
lmao on a tweet about the powercut that apparently a lot of people experience
im so glad i got twitter this is brilliant
Hey @orchid hull, could you change your nickname on this server so it matches our nickname policy?
https://pythondiscord.com/about/rules#nickname-policy
Just so it's easier for helpers and staff to ping you
hey does anyone have a game suggestion that I can make using pygame
i dont use pygame so idk what it does but you could make like an old retro game
pacman, space invaders etc
ive started messing with pygame and i am very excited 
idk just pygame 
import pygame
pygame.init()
screen_width = 500
screen_height = 500
win = pygame.display.set_mode((screen_height, screen_width))
pygame.display.set_caption("my window")
x = 50
y = 50
width = 40
height = 60
velocity = 1
run = True
while run:
pygame.time.delay(3)
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
pygame.draw.rect(win, (255, 218, 185), (x, y, width, height))
pygame.display.update()
keys = pygame.key.get_pressed()
if keys[pygame.K_LEFT] and x > velocity:
x -= velocity
if keys[pygame.K_RIGHT] and x < ((screen_width - width) - velocity):
x += velocity
if keys[pygame.K_UP] and y > velocity:
y -= velocity
if keys[pygame.K_DOWN] and y < ((screen_height - height) - velocity):
y += velocity
win.fill((0, 0, 30))
pygame.quit()
``` just following a youtube video
instead of pygame.time.delay(3) create a pygame.time.Clock(), and make ticks inside the main loop
but it is basically the same, just that you can control the fps easier
okay
*i really wanna make a platformer but i need to watch the rest of the tutorial to see how to make a different shape other than a rectangle
you can make a fun platformer with a rectangle 😄 Have you played Thomas was alone?
probably, or ive watched someone play it, one of the two
name sounds familiar tho
okay thats my project for the night
im gonna get no sleep but its fine
playing Thomas was alone?
in case you want some examples https://github.com/Mekire/pygame-samples/tree/master/platforming
They explain some concepts
i tried to add a jump thing and i made the numbers too big and my character just went flying off the screen lmaooo
yeah I remember when that happened to me ;D
I just 3d printed half an rpi case and is like a card
Feels like paper but it's plasic
And makes a half wobbly sound
It's such a weird feeling
wibble wobble
Look in #ot0-psvm’s-eternal-disapproval where I accidently posted
@lone otter Ok, I thought I had it changed 😅
Chernobyl should be a Area51
How would I represent this on WolframAlpha, so I can calculate it on there?
>>> a=81
>>> for i in range(81):
a=a*a
what do you mean?
I need to work out what that number would be, and I can't calculate it on my own pc because it'd take way to long
!e
a = 81
for _ in range(81):
a = a * a
print(a)
@summer rampart Your eval job has completed.
timed out or memory limit exceeded
so like 81^3 ?
81 ^ 81?
yeah, more like this
nvm, I can just do 81^2^2^2^2^2^2 etc
or iunno, my math is wek
isn't that 81 ↑81
probably,
is that Knute?
yeah
>>> 81**81
38662196978715633273404758790074316960214213096178319621856934259807530937321861485192508542873470637501160980081794035970219670238407078788135931371782481L
>>>
Sorry, but you may only use this command within #bot-commands.
it's not 81 ** 81
yeah, its arrow notation then, not sure if it’s too big a number
oh no, a changes during the computation, so it's not
even with 3 there instead of 81, you get 6561 (not 3 ** 3 == 27)
let’s get juan to do it in their head
it is not 81 ↑ 81
3↑3↑3↑3 
had read about ackerman's function, but not about knuth's function
oh, what is it then juan?
there might not be a name for it?
oh look it's graham's number
There should be a neater representation though
i'm just trying to think of a way of representing that value
it's going to a be very very big number
quite a monster
@summer rampart Your eval job has completed.
2417851639229258349412433
wait
!e print(81 ** 2417851639229258349412352)
@summer rampart Your eval job has completed.
timed out or memory limit exceeded
bad bot
to make it a bit simpler, it's 3 ** 9671406556917033397649408
haha who knows
!wolfram 3 ** 9671406556917033397649408
fuck i was just working out the last digit :(
i dunno about the last few digits, but i believe for 3 ** n the last digit is "1397"[n % 4]
oh god, now I need to work out 6561↑6561
na
probably 10x easier to just write 6561↑6561 and leave it there
more like 10 ↑↑↑ 10 times easier
!e
for n in range(27):
if 3 ** n != "1397"[n % 4]:
print(f"wrong wrong wrong wrong: {n}")
break
else:
print("woohoo")
fek
!e
for n in range(27):
if 3 ** n != "1397"[n % 4]:
print(f"wrong wrong wrong wrong: {n}")
break
else:
print("woohoo")
also you need to check the last digit
EDGE CASES
not the value
oh yeah
it still works with 0
!e
for n in range(27):
if str(3 ** n)[-1] != "1397"[n % 4]:
print(f"wrong wrong wrong wrong: {n}")
break
else:
print("woohoo")
@summer rampart Your eval job has completed.
woohoo
nice
👌
hmm.. so [1, 3, 9, 7] is the cycle of last digits
i wonder what the cycle of the last two digits is
!e
my_set = set()
for n in range(27):
my_set.add(str(3 ** n)[-2:])
print(my_set)
@summer rampart Your eval job has completed.
{'61', '27', '67', '69', '63', '3', '49', '1', '43', '9', '89', '03', '29', '09', '83', '87', '81', '21', '01', '07', '47', '41', '23'}
['01', '03', '09', '27', '81', '43', '29', '87', '61', '83', '49', '47', '41', '23', '69', '07', '21', '63', '89', '67']
!e
from collections import Counter
c = Counter(str(3 ** n)[-2:] for n in range(40))
print(c)
@summer rampart Your eval job has completed.
Counter({'27': 2, '81': 2, '43': 2, '29': 2, '87': 2, '61': 2, '83': 2, '49': 2, '47': 2, '41': 2, '23': 2, '69': 2, '07': 2, '21': 2, '63': 2, '89': 2, '67': 2, '1': 1, '3': 1, '9': 1, '01': 1, '03': 1, '09': 1})
>>> endings = []
>>> n = 0
>>> while True:
... end = str(3 ** n)[-2:].zfill(2)
... if end in endings: break
... endings.append(end)
... n += 1
...
does it loop though?
!e
from collections import Counter
c = Counter(str(3 ** n)[-2:] for n in range(100))
print(c)
@summer rampart Your eval job has completed.
Counter({'27': 5, '81': 5, '43': 5, '29': 5, '87': 5, '61': 5, '83': 5, '49': 5, '47': 5, '41': 5, '23': 5, '69': 5, '07': 5, '21': 5, '63': 5, '89': 5, '67': 5, '01': 4, '03': 4, '09': 4, '1': 1, '3': 1, '9': 1})
yep, looks like it does
you need to pad your single-digit ones
yeah, taking that into account there’s an even distribution
str(3 ** n)[-digits:].zfill(digits)
!e
from collections import Counter
c = Counter(str(3 ** n)[-2:].zfill(2) for n in range(100))
print(c)
@summer rampart Your eval job has completed.
Counter({'01': 5, '03': 5, '09': 5, '27': 5, '81': 5, '43': 5, '29': 5, '87': 5, '61': 5, '83': 5, '49': 5, '47': 5, '41': 5, '23': 5, '69': 5, '07': 5, '21': 5, '63': 5, '89': 5, '67': 5})
for 3 digits it's ```py
['001', '003', '009', '027', '081', '243', '729', '187', '561', '683', '049', '147', '441', '323', '969', '907', '721', '163', '489', '467', '401', '203', '609', '827', '481', '443', '329', '987', '961', '883', '649', '947', '841', '523', '569', '707', '121', '363', '089', '267', '801', '403', '209', '627', '881', '643', '929', '787', '361', '083', '249', '747', '241', '723', '169', '507', '521', '563', '689', '067', '201', '603', '809', '427', '281', '843', '529', '587', '761', '283', '849', '547', '641', '923', '769', '307', '921', '763', '289', '867', '601', '803', '409', '227', '681', '043', '129', '387', '161', '483', '449', '347', '041', '123', '369', '107', '321', '963', '889', '667']
There’s definitely a long math reason as to why this happens and I’m too lazy to go understand it
i think it would be really simple, to be fair
https://paste.pydis.com/zafobuhugu.py 4 digits
https://paste.pydis.com/kawivilazo.py 5 digits
i dunno
what are the odds it’s on that collection of sequences website?
great minds
to be fair, i want to check the pattern in the length of these sequences
that's.. weird
1 digit(s): 4
2 digit(s): 20
3 digit(s): 100
4 digit(s): 500
5 digit(s): 5000
6 digit(s): 50000
7 digit(s): 500000
hmmmm
wow you guys paste code even in offtopic xd
haha, that sequence already exists in the OEIS
it's exactly how i calculated it too
are you Charles Greathouse IV?
i am not, what makes you ask? haha
PROG
(PARI) a(n)=if(n<5, 4*5^n/5, 10^n/20) \ Charles R Greathouse IV, Mar 26 2016
what's bigger, 260144641↑260144641 or 127↑127↑127↑127?
size doesn’t matter
size doesn’t matter
yeah, you assume that next time you buy a shirt 😛
@sinful turtle i'm working that out now
how would you even go about doing something like that
i'll be estimating the amount of digits in both
oh yeah, that should work
i think the first one may win by miles though, but i'm not entirely sure
okay the first one is approximately equal to 10 ** 2189173055
it's a bit less, so let's just say 2189173054 digits
@sinful turtle btw is that 127↑(127↑(127↑127)) or ((127↑127)↑127)↑127?
actually i could work it out for both
i think the first one is bigger
a lot bigger
it is
oh ok
hmm okay yeah that's a lot bigger
so 127↑(127↑(127↑127)) is bigger than 260144641↑260144641 easily, but i do not know how many digits it has
hold on i can approximate it i think
Well Google approximates it as
Y
the answer is approximately 127 ** (10 ** 3206843605237346186128164935111002690712235808543770984965714631919499800888309002151609585658019964060874717416744842429026233401026125555722005368816474725102301071144187396671281316948564849148808701835413919773103315755122165345095903528731808159027235647742017536)
i'm trying to simplify it to a single exponent but uh.. it's big
Google calculator is great
it's great because you can use it to work out the speed of light in fluid ounce gigahertz per square fathom
same with wolframalpha
it's not an error, that is a valid unit of measurement for speed
how useful
doubting the usefulness of anything juan does, blasphemy!
it's weird. there are 268 digits in 127 ** 127 and 10 ** 268 digits in 127 ** (127 ** 127). i wonder if that's a coincidence or if the pattern continues
ill go for coincidence
yeah i'm also thinking that
i would say it's not if the logarithms were the same but they're not
like sure there are a lot of patterns in numbers based on their divisors and what not but their length, especially in base 10 systems seems a weird attribute
true
like in hex and binary length is always kinda special but decimal?
but that might just be a bias from me doing too many bit hacks and having gone crazy from the stanford bithack website
lmao
if any of you has ever wonder if
Reversing an N-bit quantity in parallel in 5 * lg(N) operations is possible, yes it is:
unsigned int v; // 32-bit word to reverse bit order
// swap odd and even bits
v = ((v >> 1) & 0x55555555) | ((v & 0x55555555) << 1);
// swap consecutive pairs
v = ((v >> 2) & 0x33333333) | ((v & 0x33333333) << 2);
// swap nibbles ...
v = ((v >> 4) & 0x0F0F0F0F) | ((v & 0x0F0F0F0F) << 4);
// swap bytes
v = ((v >> 8) & 0x00FF00FF) | ((v & 0x00FF00FF) << 8);
// swap 2-byte long pairs
v = ( v >> 16 ) | ( v << 16);
i bet youve wondered that havent you juan? @tulip palm
mhm
Or finding integer log base 10 of an integer, "the obvious way"
unsigned int v; // non-zero 32-bit integer value to compute the log base 10 of
int r; // result goes here
r = (v >= 1000000000) ? 9 : (v >= 100000000) ? 8 : (v >= 10000000) ? 7 :
(v >= 1000000) ? 6 : (v >= 100000) ? 5 : (v >= 10000) ? 4 :
(v >= 1000) ? 3 : (v >= 100) ? 2 : (v >= 10) ? 1 : 0;
oh dear
I mean theyre really just brutforcing all base 10 values here :p
Woo complicated tenary expressions in c!
yes i can see that nix
haha, this one is cute
alternatively you could also, Count the consecutive zero bits (trailing) on the right in parallel
unsigned int v; // 32-bit word input to count zero bits on right
unsigned int c = 32; // c will be the number of zero bits on the right
v &= -signed(v);
if (v) c--;
if (v & 0x0000FFFF) c -= 16;
if (v & 0x00FF00FF) c -= 8;
if (v & 0x0F0F0F0F) c -= 4;
if (v & 0x33333333) c -= 2;
if (v & 0x55555555) c -= 1;
i wonder in how many places this is used tbh
in parallel? is there is any parallelisation going on here?
I mean you could technically run all if statements in parallel
they all update the same variable, so at least the assignation part won't be parallel, but yeah, the v & … part could be
one whole logical operation parallelized fuck yes
if you too want to look into the great world of weird things the stanford university produced check out https://graphics.stanford.edu/~seander/bithacks.html
yeah, no, i live in python, so i can look up, not down 😛
start them supporting early 
Boo arsenal and chelsea I think
west ham ftw
im building a base in minecraft and im building from underground going up, and i forgot to flatten out the terrain above and now my base floor is all bumpy lumpy and i have to do it again 
psst @rough sapphire
THIS IS MINECRAFT
what are your builds like?
modern, undergournd secret lab type of thing usually, lot of quartz, green stained glass, concrete etc
hmm okay
i have done a xp farm but did not worked
xp farms are like 
you do them right, get mending and youre mmmmmm good to go
im excited for the pydis minecraft server 
working with iron bars is hard 
so what is the plan for the minecraft server anyway? mods or no mods
i think gdude said plugins
which im nervous about finding out which plugins

i know im bad at building but trying to make iron bars look like they curve is hard 
i also think i need to bring down the size of the platform
looks a bit FAT on top
i wanted to make the pillar coming up bigger but i get lazy in creative mode
i dug a giant whole in survival but cant be fucked to make my pillar 3 blocks bigger in creative lol
you dug that in survival? wow
took quite a few hours 
when i first started digging i also didnt have mending so it took a lot of diamonds too cus my pick kept breaking lol
I'm so used to modded I would just let a quarry do that in a few minutes
yeah thats really the only survival server i played cus it was with some mates
i lowkey started a cult
nice
vanilla survival is nice still I just moved on
I never actually learnt how to fully automate everything in vanilla
i mean me either
most people dont know
cus to automate EVERYTHINg needs a lot of redstone
the only things i know how to automate are some farms
it was weird never having lag spikes tho
TBH modded makes it too easy cos
everything is just in one block
like Farming Station block
Vertical Digger block
i mean you cant always fit everything into one block or chunk especially depending on the mods
Compact Machines mod is awesome

