« first day (3779 days earlier)      last day (1176 days later) » 

12:01 AM
@LeviMorrison That's essentially what I had been talking about earlier with : Request|Response|Error for a monadic middleware pipeline. Then each step would need a match() connecting it to bail out if an Error happens.
Building up explicit dependencies for everything on each route would possibly be doable in a pre-compiled environment. I wouldn't want to think about it at runtime, though.
Also, I come from a Drupal background, so I go in with the assumption that user config is going to change what's required at runtime, at runtime, because user config always does shit like that.
 
12:32 AM
$_GET['hash'] removes end of long strings ・ URL related ・ #80773
 
 
3 hours later…
3:30 AM
Why... just... why
 
3:43 AM
"You were so concerned with whether you could, you didn't stop to think if you should."
 
That explains a solid 75% of my development
 
4:07 AM
@MarkR ಠ_ಠ
 
@Tiffany ¯\(°_o)/¯
 
@MarkR ...ಠ_ಠ
 
@Tiffany (ノಠ益ಠ)ノ彡┻━┻
^ my code. Also tabletop simulator.
 
4:52 AM
lol
 
5:51 AM
wassup guys
is there a need for my sign in page to have preg_match? I'm doing prepared statement anyway. What do you guys think?
 
 
3 hours later…
9:05 AM
session_name() problem with backslash ・ Session related ・ #80774
 
9:56 AM
why do I get this warning PHP Notice: Only variables should be passed by reference in C:\\xampp\\htdocs... on line 64

my code looks like this on line 64
$stmt->bind_param("sss", $name, $email, password_hash($password, PASSWORD_DEFAULT));
and this is the code before that line
$stmt = $conn->prepare("INSERT INTO users (profile_name, profile_email, profile_password) VALUES (?, ?, ?);");
should I do something about the password before binding it?
 
10:14 AM
ohhhhh to fix it I should have done this first lol
$hash = password_hash($password, PASSWORD_DEFAULT);
 
11:37 AM
Are you searching for the best and honest de-addiction centre in Jalandhar to l ・ *General Issues ・ #80775
Are you searching for the best and honest de-addiction centre in Jalandhar to l ・ *General Issues ・ #80776
 
Rick Astley Never Gonna Give You Up remastered in 4k. youtube.com/watch?v=2ocykBzWDiM&feature=emb_logo Source about remaster:engadget.com/…
Looks incredible
 
11:55 AM
@Tiffany useful for people not allowed to install software on the machine maybe?
 
12:19 PM
@edorian @beberlei is the ug slack down or is it me? cant connect since yesterday.
 
@Danack IDE should be preinstalled.
But I concede there's a possibility it isn't, and no real solution remains. But then again, it requires a JDK installation...
 
12:46 PM
@Gordon its up and chatty
 
@beberlei hmpf. thanks.
 
 
1 hour later…
cmb
2:15 PM
@NikiC, re dirname/basename: github.com/php/doc-en/commit/… :(
 
that moment when people try to make an argument to defend their pet security theatre rituals..
 
I have a basic token function and it works but in phpstorn where i call the function <?php _token(); ?> is underlined saying Unhandled \Exception but where the function reside in functions says no issue
function _token(): string
{
$random_token = bin2hex(random_bytes(24));
return $_SESSION['csrf_token'] = $random_token;
}
 
@Da'Don random_bytes
 
Try mousing over the individual functions, it will say where the unhanded exception is
Semi-related, is there a cryptographic or even just a good reason to bin2hex random_bytes? I thought random_bytes was created such that anything extra is unnecessary
 
2:30 PM
@Da'Don you can turn that inspection off...it's not always useful handling all possible exceptions.
@Tiffany sending the random value over text based channels.
in this case the csrf token in the header.
 
Ahhh, thanks
 
Im about 4 months in learning thanks guys and gals
@Danack yea I am finding inspection to be irritating at times
 
3:16 PM
Still in sight of the uncanny valley, but not too shabby considering the source material.
I will say it makes Rick Astley look EVEN YOUNGER than he already did. Like, the boy looks about six years old in that video.
 
That was my thought, too. Just weird enough to feel weird.
 
3:34 PM
I think it's all just a ploy to get people to stick around for longer to see if it's the4k version or not when they get rickrolled, hence extending the rickroll
 
3:46 PM
That's so epic rick rollage.
 
4:23 PM
I just think it is interesting how well it can (re-render/improve/upscale/whatever proper term is for this specific application) the quality of an older video. Sometimes newer resolutions come out and I find myself wishing "Man, I wish Lord of the Rings could have been shot with IMAX 3D cameras." With improvements in this technology they may be able to upscale a lot of older movies without the upscale flaws that can sometimes occur.
 
Oh yeah, as a technology, it's pretty cool.
Though I care less about resolution upscaling as my personal vision downscales most video to about half a megapixel
 
Give it 10 years and they'll be beaming it straight into your brain.
 
@MarkR I would like to be able to remove my memory of watching many movies, just so I could watch them for the first time again.
 
That's some proper black mirror stuff right there. Hollywood would shut down overnight, each studio would make one blockbuster film that came with DRM that forced your brain to forget it after 30 days, and then make you pay to re-watch it.
 
4:40 PM
@MarkR Yeah- that's exactly what would happen. I would like the tech for myself and never share it. =P
 
The money is definitely going to be in brain-viewer connection though, can you imagine advertising revenues if ads paused if you're not actually mentally paying attention to the advert?
 
Reminds me of a video someone posted here awhile back
 
5:04 PM
snip: nm that's a terrible example
 
Memory Leak on function() in include ・ opcache ・ #80777
 
5:22 PM
Cannot handle UTF8 characters when connected to a SAP HANA database ・ ODBC related ・ #80778
 
6:15 PM
@MarkR That sounds awful.
That is if what you're saying is the ad paused until you paid attention which forced you into watching.
 
6:29 PM
@StatikStasis do you remember the simulated reality short movies that were posted here awhile back? I remember you had posted one. There was another that was basically ads in an augmented reality.
The other was a virtual reality with an FPS
I tried digging through chat log, but I don't remember enough of the conversation to find them :(
 
Hmm... it is all running together for me at the moment. I remember it... but I cannot recall what it was to search for it.
 
6:48 PM
Will the VM interrupt handler happen during any exception handling? Hard to find through browsing source code.
 
7:35 PM
Good mornings.
Just wondering if there ever was suggested to have global variable aliasing within functions in PHP.
 
Not that I'm aware of. The usual response these days would be "WTF are you doing using global variables so much that you even need to ask the question???"
 
@hakre ... so $alias = &$GLOBALS["foo"]; essentially?
 
@bwoebi yes like that. global $foo as $alias;. Have to check if that is working btw.
it might be I want any changes to the local variable however not being global. so likely without the &
but good idea, that's actually speaking code.
can have it with or without the & depending on which kind of access.
next thing is wondering how the support of static code analyzers is for that ^^
Phpstorm directly fails.
 
7:54 PM
@hakre forget about that :-D
 
@bwoebi yeah, this no static code :D
 
I am looking for Canonical question on Stack Overflow that explains how to prevent duplicate usernames in MySQL database. Does anyone know of any?
 
I don't use canons. I'm more of a sword nerd.
 
Don't get the joke
 
Canonical. Of or relating to canon.
 
8:02 PM
that's a load of balls
#shotsfired
 
If there isn't one then I am planning on adding an answer here stackoverflow.com/questions/17736421/…
Is bugs.php.net down?
 
@hakre I mean, that doesn't need new syntax. @bwoebi's code works, now, and lets you specify if you want it by-ref or by-val. Expanding the global keyword is the wrong solution for a problem that's already solved.
 
@Sara yes, @bwoebi suggestion is formidable. And the syntax is speaking.
 
In that vein, I'm actually quite pleased with my answer here: https://www.reddit.com/r/PHP/comments/lm3m1p/so_there_is_and_why_no/gnu5rxl/?utm_source=reddit&utm_medium=web2x&context=3

TL;DR - We don't need ??: because we have ??0?:
 
@Sara You're a bad person and should feel bad.
 
8:17 PM
@Crell I'm a problem SOLVER, not a problem CREATOR
 
haha.
I like the unsubscribe comment btw. :)
 
The whole subthread is mostly "NOPE". :D
 
is ?? throw new ... possible in PHP 8?
or given function id($id) {return $id;} is there any overhead next to the parsing for $foo ?? id(throw new Exception('xxx'));?
 
@hakre Yep.
 
That's totes legal now.
 
8:21 PM
@hakre That'd have a little function call overhead, but considering that you're throwing at that point the FCO is the lesser of the evils
$x = $_GET['x'] ?? throw new Exception('WTF??? No x???? Duuuuuude');
 
@Sara is that a full FCO or are there phases?
 
Currently, still a full function call. Someday we'll have proper inlining.
 
@Sara E_UMLAUTLESS
 
Where was the umlaut supposed to have been? o.O
 
on all of the us in Duuuu...uuude
surely that must be a convention, if not legally required
 
8:23 PM
Düüüüüüde ?
 
definitely reads like the sound you make when you say it
 
I'm from California, we don't pronounce it like that
 
It's subtly different.
 
There like the Dude.
 
And it's almost certainly different in Munich vs Berlin.
 
8:24 PM
And there is only one.
 
Southern California's pronunciation is canonical here.
 
@Sara I mean I guess your stereotypical 60s san-fran hippy has a bit more of an "ee" sound in there almost
but still I stand by it
 
Paging Keanu Reeves...
 
Keanu Reeves AS Ted "Theodore" Logan, specifically
 
Woah.
 
8:26 PM
It's probably not actually common knowledge that I grew up in SoCal.
I've lost my ability to speak Valley like a native, but I'm still roughly conversant
 
@Sara I think I remember reading that in a blog post in a different era
 
I've been picking up some Midwest in my accent. It's a bit gosh darned discerting though.
 
also I have a weird creepy accidental memory for shit like that, I am not a stalker I promise
 
heh
 
@Sara you also appear to be picking up some 1950s in your cussing accent, be careful with that
 
8:29 PM
@Sara which part?
I grew up in the desert
 
Depending on context I've been known to mince an oath or two
@Tiffany Pasadena
My great-gran lived out in the desert though
What was the name of her town.... looks at a map
 
Ah, other end of the mountains
 
Hesperia
 
What? Sara? Use vulgar language? That's unpossible!
 
cannot help but intentionally read it as dessert and picture people living on a giant cheesecake
I would live there
 
8:31 PM
I grew up in Palmdale
 
I can't. I'm lactose intolerant.
 
god damn it brb, going shop to buy cheesecake
not even joking
 
Yeah, I passed through Palmdale more than once
@DaveRandom Bring enough for the entire class
 
Never thought I'd miss the desert, but the summer humidity out here... blech
Don't miss the droughts though...
My backyard toys included actual tumbleweeds
 
When I visited Nana, my favorite toy was her tortoise collection.
Like... actual reptiles in her back yard.
Never seemed weird at the time. Seems weird now.
 
8:37 PM
Didn't see many animals, but we were in a subdivision
 
Nana's the only one who kept in touch with the Roddenberrys though. Papa basically hated his entire family.
 
If I went out in the wider desert, jackrabbits were common
 
Papa hated everyone though. Miserable old drunkard.
 
I have a few relatives like that
Pretty sure I have at least one or two relative in CA, but it was mainly my nuclear family that lived there. Extended family is from the midwest.
 
I basically have a gap in my family tree because my grandpa didn't even want to talk about his dad (probably a degree of physical abuse there)
He paid for his nursing home out of a sense of blood duty, but basically never visited the man
 
8:41 PM
Your poor grandpa :/
 
His mom (nana) was a much nicer and generally more loved person.
 
8:53 PM
Anyway, random aside, but that's my experience of "outside the LA basin"
 
Anyone ever used TabNine? I'm using it now and it's scary how accurate it can predict what I want to do
 
Never heard of it.
 
It's AI code completion
It will even predict the log messages I'm writing haha
 
9:29 PM
Hmm, why didn't they predict I have javascript not enabled on their site?
 
9:56 PM
@hakre They predicted you wouldn't purchase it anyways so there wasn't a reason to make it work without JS
 
10:28 PM
I need to bookmark where the list of functions that gets optimized into VM opcodes is >.<
 
It's looking like although the vm_interrupt triggers when returning from internal functions, it's done after the internal function has been popped off the stack.
Really wish it was called while it was on the stack, so if you can see exactly what was on the stack when the interrupt was triggered.
In other words theres a difference on what's on the top of the stack between when it is triggered and when it is handled, because of this.
 
 
1 hour later…
11:53 PM
@scorgn how did they knew I need this for perl?
 

« first day (3779 days earlier)      last day (1176 days later) »