« first day (3746 days earlier)      last day (1186 days later) » 

Wes
2:53 AM
@DaveRandom you are welcome html{ filter: invert(100%) !important; }
 
3:38 AM
@return array{null, \Params\ValidationProblem[]}|array{T[], null}
is there a dumb typo in there? Psalm is giving a weird error:
> The declared return type 'array{(array<array-key, T:fn-params\createarrayoftypeorerror as object>)|null, array<array-key, Params\ValidationProblem>|null}' for Params\createArrayOfTypeOrError is more specific than the inferred return type 'array{mixed|null, array<array-key, Params\ValidationProblem>|null}'
Or at least one I don't understand...
 
 
6 hours later…
\o
 
in web application design using Symfony, if I have an upload service, which is creating a new File entity. Should I save the file info to the db in the service or else where and How can I decouple this further, as in I was to reuse this service when whenever file uploading is needed? (I'm thinking if there is an author or another relationship on the File entity.)
 
10:57 AM
Where is the recent gearman source code? ・ gearman ・ #80636
 
11:11 AM
@Danack Doesn't seem like your type definition is incorrect but Psalm complains that the inferred return type doesn't match with your defined return type.
 
11:46 AM
Pro tip: Avoid covid at all costs, it's a real pain in the head :-(
 
12:04 PM
morns
 
12:39 PM
@Derick onoes you got it?
 
 
2 hours later…
2:53 PM
@beberlei Yes, me and the Mrs both :-/ Had symptoms since Tuesday, did a test Friday and got confirmed last night .
 
@Derick get well soon :(
3
 
Doing better already, but the headache...
 
3:51 PM
@Derick Hope you sleep well. I slept like 14 hours a day at first.
 
@Derick that sucks :(
Hope you feel better soon
 
@LeviMorrison Yeah, here too. But I'm still tired all the time.
 
4:42 PM
Hello everyone
 
Morning
 
 
2 hours later…
6:48 PM
@Derick Eeep! Fingers crossed it's a mild one. :-( I have a couple of friends who got hit with long-covid and it is not fun at all.
 
7:46 PM
hey can anyone help me with a problem. my pdo insert is not working i followed a tutorial it worked in the tutorial but not in my code. i checked multiple times
 
bindParam() changes type property to string ・ PDO Core ・ #80637
 
<?php
include('databaseconnection.php');
include('function.php');

if(isset($_POST["operation"]))
{
    if($_POST["operation"] == "Add")
    {
        $statement = $connection->prepare("INSERT INTO teams (First_Name, Last_Name, Password, Team_Lead) VALUES (:First_Name, :Last_Name, :Password, :Team_Lead)");
        $result = $statement->execute(
             array(
                ':First_Name' => $_POST["First_Name"],
                ':Last_Name' => $_POST["Last_Name"],
                ':Password' => $_POST["Password"],
what i dont get is i followed the tutorial, checked multiple times and still my code isnt working
 
@KhwajaHussamQuasmi you'll have to be more specific. What doesn't work? Does it error? What's the error message?
 
@KhwajaHussamQuasmi Have you counted left and right curly braces?
 
i havent gotten any error message. and yes curly braces are all good
my values are not getting inserted. should i make question and post the link here?
 
8:01 PM
@KhwajaHussamQuasmi Since here in code snippet you've left, you have 3 opening and two closing braces (maybe typo). Generally chat is not good platform to leave code longer than few lines. SO, gist, pastebin are better options.
 
@Tpojka okay. ill do that
 
1. What tutorial?
2. At what step in tutorial behavior in tutorial and behavior in your application diverged?
 
@Tpojka nightfury-alfa.com/pages/codingsnow/tutorials/tutorial04.html this tutorial. only difference is our table columns my select * and where queries are fine though
 
Have you tried to confirm that identical replication of tutorial would work?
Those are steps I'd go in your place.
 
yes bro replicated it twice
 
8:41 PM
If you claim that exact code on that page is not valid, it can be anything.
Do you have some frontend error in browser's console log?
 
@Tpojka I apologize for wasting your time. i had one alphabet in lowercase that was giving the error. God! I spent like all day on this
 
@KhwajaHussamQuasmi camelCase or snake_case, combining them makes life harder
 
@KhwajaHussamQuasmi Talking about issue usually helps.
Also, that's why in first place I first asked for exact code replication.
 
@Tpojka i agree but i didnt know how to explain the problem thats why i went through multiple directories on stackoverflow
@Tiffany wont be doing that again
 
9:16 PM
@Wes sick
 
9:32 PM
Why would a production environment block file_get_contents for security reasons?
Other than the server IP being exposed, I don't get why. Surely all code ran on production should be checked not to be making http requests to bad sites anyway, I would of thought.
 
please explain to me how one could "check [code] not to be making http requests to bad sites"
and indeed would be interested to hear your definition of a "bad" site
clue: if you cannot explain your thoughts to a computer then they cannot be automated
 
I just meant sites we were suppose to be hitting, maintained rather than checked by a senior dvelooer.
Sites we trusted as much as we could. Nothing can be trusted 100%
 
who is "we" and how would PHP know what "we" want?
 
these sound like questions you should be asking your superiors or colleagues... the questions you're asking sound specific to your environment
 
I do not mean to belligerent here btw, but none of these things seem codifyable
 
9:53 PM
Can you define codifyable?
Not at all, this is a healthy argument. You arent being belligerent I'm interested in all opinions.
 

« first day (3746 days earlier)      last day (1186 days later) »