« first day (2796 days earlier)      last day (2149 days later) » 

6:00 PM
@BenjaminGruenbaum Don't understand your question. You already have a payment page setup and you want the form submit to take you to the payment page? :p
 
huh SO main changed again
 
I have a form, I have payment set up - I need to connect the two
Submitting the form should take to the payment provider's payment page - right now I have to go through the product page and the cart
 
Meeting. Sorry.
 
Hello people, I have this query: "INSERT INTO users (email) VALUES ('example@example.com')", but if I have a repetition of the same value, the id field continues to increment without inserting anything. I would like the id not to be imported if a record is not added. 'INSERT IGNORE' does not work. Some idea?
 
6:05 PM
@Ekin stackoverflow.com/users/preferences ☑ Hide left navigation
 
<3
much better
 
@BenjaminGruenbaum If you're using something like adyen for instance, you should be POSTing your form directly to them, and not to yourself. So check what's the action of your form
 
@Danack github.com/amphp/socket/compare/master...DaveRandom:feature/… I don't have time to go in depth explanation atm but briefly (assuming auryn) create/share a ClientConnectContext, set withDefaultUriConcurrencyLimit($yourLimit) on it, inject it into the BasicSocketPool, inject that into (artax) HttpSocketPool, inject that into DefaultClient
n.b. totally untested and not the best impl
 
@User probably relevant for you: stackoverflow.com/questions/2787910/… is it really a problem to let it auto inc?
 
but hopefully should Just Work™
oh sorry the "assuming auryn" was meant to include "just share your BasicSocketPool"
although that said I've suddenly realised I don't know if auryn injects shared instance into optional ctor args
/out
@DaveRandom /cc @Trowski @kelunik brutally honest review pls :-P
 
6:23 PM
By using this error_reporting(0);, I hide PHP fatal/warning/notice for the product (not debugging) version of my website. Is it possible to make a page for that situation? Currently I see a blank page when there is a PHP fatal. How can I make a customized page for that?
 
don't use error_reporting(0) is the short answer
error reporting should (imo) always be set to max, in prod you set display_errors=0 and log_errors=1, in dev you set both to 1
and you don't deploy stuff to prod until you have fixed the errors...
There is always the possibility that you will get a 500 in prod, and you handle that by configuring the web server with an error page
 
@Ekin I love it!
 
how you do that depends on the web server
 
@DaveRandom I guess lack of using it can causes security problems .. by the first query failure, users can see your database column names.
 
@pmmaga thank you, but it does not solve my problem.
 
6:27 PM
@Shafizadeh no
you need to handle the reporting of errors
7
A: PDO fatal error reveals username and password

Félix Gagnon-GrenierThere is a difference between error handling and error reporting. Error handling is the process of preventing your end users to see any stack trace, vital information or automatically generated error messages. It can also modify the way your script runs by using a try catch block. Error reporti...

tldr report all errors that can possibly be reported, handle them appropriately according to the server
 
@Shafizadeh that's why you set display_errors=0 in production
you don't want to disable the errors, you just want to not display them
error_reporting=0 prevents them being logged as well, so you never even find out about them
/out
 
aren't error_reporting(0) and display_errors=0 the same things ?
 
@DaveRandom I see
 
@Shafizadeh Dave and me are both literally telling you that they are not the same thing, right now
 
6:30 PM
@DaveRandom I'll review after you created a PR, otherwise I'll forget about it.
 
@FélixGagnon-Grenier upvote
@DaveRandom I see
 
hrm, thanks? I hope you read it too :)
the answer is a bit naive, but the point about reporting vs displaying / handling is somewhat clear
 
@FélixGagnon-Grenier I already use try{} catch{}.
 
@Shafizadeh no
@FélixGagnon-Grenier this is actually a case, when making a connection manage might be a good solution
 
hello
So I m doing a COUNT statement in PHP but something wrong
The output I get is: Array to string conversion
 
6:42 PM
@tereško Yes they are not the same, but according to some researches, the result/goal of both is almost identical. One avoids generating errors, the other one avoids showing them.
 
Can I show you my code?
 
@GuilhermeR count() works just for arrays. Did you pass a string to that function?
 
my code is this: pastebin.com/9p7nQr4V
 
use var_dump()
 
@tereško something with a getConnection api, ish?
 
6:51 PM
@FélixGagnon-Grenier I was just thinking, that some fuckery with a connection can happen also withing a mapper and how would you recover from that
 
Afternoon.
 
@tereško duplicate / foreign key constraints failure I generally handle locally in the service / mapper. downright connection failure are left up to the global try catch block. indeed, I'm not sure how I would approach not showing a general app failure on that. A preferred behaviour could be for the mapper to return an empty entity
 
@Shafizadeh yes, and you don't want to avoid generating errors. Errors are the result of a problem that needs to be fixed, you need to know about them, you just don't want to show them to the user in production. You still need to generate them, log them, monitor the logs, and fix the things that are causing the errors.
 
@FélixGagnon-Grenier no, I mean "connection lost" type of fuckups
 
@DaveRandom agreed
 
6:56 PM
I can't do mysqli_fetch_array, right?
 
@GuilhermeR $resc is an array. As the error message is telling you, your are trying to convert an array, to a string, when you try to show it
8 mins ago, by tereško
use var_dump()
 
@GuilhermeR are you unable to follow the instructions?
or do you actually have no fucking idea what var_dump() is?
 
@tereško ok sorry
the output of var_dump()
 
so, the answer to my second question is: no
 
var_dump(variable here), right?
 
7:10 PM
Love when our company does vacation buybacks!
 
like... they just buy your vacations so that you work more?
 
evenin
 
o/
@BenjaminGruenbaum There still?
 
ok i'll just figure it out
thank u
 
@GuilhermeR I mean... so you've been told to use var_dump, which you did, you've asked if you could use an array, which we answered, you've received an error message telling you exactly what the problem is.
Do you have a problem deciphering the meaning of the words? Maybe use a dictionary to make sure you understand "array to string conversion"?
 
7:15 PM
@FélixGagnon-Grenier no sir
 
well then, how can it be not clear at this time that you are trying to echo an array as a string?
 
@FélixGagnon-Grenier I was expecting an answer from @tereško
 
for the var_dump() usage?
 
@GuilhermeR Why? Are the rest of us not worthy of answering your question?
 
ok bye
 
7:19 PM
@mega6382 Let leave the benefit of the doubt, maybe they expected a follow back on the var_dump() thing
 
yeah, could be..
 
@GuilhermeR btw, whenever you're unsure about a function, the php manual is really nice php.net/manual/en/function.var-dump.php
 
and sorry for my dumbness
 
we have no problem with dumbness. we generally take gripe when we're under the impression that you don't really listen to what we're saying / are not reading the error messages
have you understood the error message yet? do you understand where the array to string conversion was happening?
 
@FélixGagnon-Grenier ok I understand, my bad sorry
 
7:23 PM
now don't get all canadian on me ;) as I say, it's fine.
 
@FélixGagnon-Grenier If you been at the company for over 5 years and you have a lot saved up (we can have a maximum accrued of two years worth) then they give us the opportunity to sell up to 80 hours back... which is a nice check to put towards debt or whatever. I usually have a hard time finding time to take time off. I love my job- I still get time off.
 
but the count function returns a string?
no, it returns a number, right?
 
yes.. go on?
the code you showed first does not directly call count by the way. you use the MySQL COUNT function.
the result of the sql query is accessed through mysqli_fetch_array
> mysqli_fetch_array
> array
> array to string conversion
> echo ''.$resc.' resultados encontrados';
 
*"If you've been..." wow... that was a late correction for me.
 
oh wait...inside while(mysqli_fetch_array) I have to put var_dump()
 
7:27 PM
@FélixGagnon-Grenier well, seems it'd be handy if I were to pay for private teams but I usually just click a tag to browse questions or use search so, this is much better for me
 
right?
 
lol, so mean
@GuilhermeR no... did you like, read the manual page I linked you to?
 
@Allenph lol, that is so amazing.
 
@Allenph No fun allowed
 
@Allenph OMG... Danack's going to get you.
I would star it but I'm afraid it would be moved to trash. =D
 
7:31 PM
@Ekin I'll agree that's not so mad either ;)
 
I've made way worse memes about people on here and @GuilhermeR seems okay with it so I don't think he will get mad.
 
Okay- I'm starring it!
 
@Allenph he vardumped the mysqli_result
which means that he did not even understand what I told him ... and thus, there is not point to engage any further
 
@Allenph you wrong
 
Hey @JonClements
 
7:33 PM
me tarzan, you jane
 
Woof
 
woof woof!
 
C'mon @GuilhermeR. That was actually kinda funny
 
.... and the little shit goes in the ignore list
 
Teresko can insult people into the dust but I can't post a meme?
Meh. Whatever. You guys saw it.
 
7:35 PM
ok im sick of this
 
@Allenph memes are a tool of fascists
 
bye
 
@JonClements did you delete it?
 
@GuilhermeR teresko said using my Mac was causing me brain damage yesterday. It's pretty common around here. Means you're liked... or at least tolerated. =D
 
@GuilhermeR thats the 2nd time you've said bye and you are still here.
 
7:36 PM
@GuilhermeR and we're somewhat sick of you ignoring the things we're saying
if you have a question, read the answers we give you
 
@FélixGagnon-Grenier That's not exactly needed either imo
Well may be needed but wrapped differently :P
 
@mega6382 yes... It was attracting flags
 
@tereško How many people do you have in your ignore list?
 
@StatikStasis Everyone except @PeeHaa :P
 
@StatikStasis 35, I think .. or at least that's how many I see in preferences
 
7:39 PM
@tereško Memes are a tool of everyone. If a fascist uses a hammer is it evil to use hammers?
 
@JonClements so, instead of dismissing all the invalid flags, you decided to delete it
 
^
 
And dismissing all flags
He saved @Allenph
 
@tereško I unblocked them a few days ago. Just now, I've had a little hope they would be able to understand the not so subtle hints at fetch_array with array to string conversion
 
tbf
The bar is set to level 10 5 now so it's all mostly good
 
7:40 PM
I should have bought that wine
 
@PeeHaa?
 
@PeeHaa I understand all of these words
 
@JonClements ?
 
@PeeHaa I don't think anyone gets what you meant.
 
ten5
 
7:41 PM
ok, fuck this, I'm going to try playing Ziggurat instead
 
oh lol, gj Ekin
 
...
Yeah @Ekin
Good job bro
 
yeah bro
you don't mind if we call you bro forever starting now?
I knew you'd like it too
 
:P
I'm okay with it unless it turns into bruh
 
@Ekin What about The Brosiah?
 
7:43 PM
@JonClements We have been dealing with a weird spamming mental patient for months now
 
@Allenph WhAT AbOut ThE brOSiAh?
 
@FélixGagnon-Grenier Memetic content flag.
 
uh, is that some sorta messiah only better because he brings the cold beers? then fine
 
7:45 PM
@PeeHaa I just saw he finally resurrected early this morning.
 
@Allenph it's the only way to track the infamous hacker "for chan"
 
@PeeHaa they're off chat for a bit. Any other issue.?
 
@PeeHaa I've been saying 10 f i v e too in case he searches for the uses of his name for attention.
 
@StatikStasis He went to to c# doing the exact same thing over there :P
@JonClements uhm yeah actually thanks for asking
 
He's been doing that for a while. Usually after getting kicked here. This is classic him: chat.stackoverflow.com/transcript/message/42899473#42899473
 
7:48 PM
I am growing a beer belly and I don't like it at all
Also work kinda sucks
 
lol
 
And I am hungry
fix it plox
 
I am hungry too
 
I'm concerned about mortgage rates...
 
7:49 PM
@PeeHaa Vodka belly is worse.
 
And I am losing more hair on my head with each passing day. =/
 
@StatikStasis Yeah.... he's weird
 
So @JonClements?
 
@Allenph =( Your meme is not even in the trash... it's just gone. We'll always remember it got to 5 stars... well until later.
 
7:52 PM
:P
 
@PeeHaa I hear moving our body can be of help with that
but it reaaaaally sounds like work...
 
@StatikStasis I still have the link, I will post it as soon as @JonClements leaves. :P
 
@FélixGagnon-Grenier I know rite
 
@FélixGagnon-Grenier What if you move it enough to acquire another beer but that's it?
 
whispers Perfect! Thanks @mega6382
 
7:53 PM
@PeeHaa yeh that's because you still didn't light up the bbq you promised... sister
 
oouuuuuhhhhhh ;)
you tell her @Ekin
 
Reeeeeeeeeaaaalllly @Ekin?????
 
:P you started it
 
Reeeeeeeeeaaaalllly @FélixGagnon-Grenier?????
 
I tell you... sometimes the dialog in this chatroom is the highlight of my day... at work.
 
7:54 PM
sudo light up teh bbq
 
lol
 
Just so you people know. I am still a man and am just lighting the bbq because I want to
Not because she said so
Really
 
Like really really
 
7:55 PM
we'd never dare to think otherwise
sis'
 
Good
Like really
 
... wat you mean that you're really doing it?
 
he is :P it worked!
 
gods @Ekin, what did you do to him?
 
gave him more tequila?
:)
 
7:56 PM
Nov 10 '16 at 11:17, by Gordon
@Ekin NL? Netherlands? Don't go there. @PeeHaa lives there. He might want to meet you. Don't risk that.
I see you did not heed that wise advice
 
 
does Guzzle use curl connection pooling under the hood? or does it create a new connection for each request?
 
@FélixGagnon-Grenier It took her half a year and still fell for that trap
 
@PeeHaa's been whipped.
 
awwwwwwwwww
 
7:59 PM
@johnmarinelli It does by default if you have it installed.
 
@Allenph, when you say have it installed, do you mean the version of curl that uses connection pooling?
 
@johnmarinelli I believe so, but I'm not sure.
I think you can edit the cURL settings directly though.
 
#SheeHaa
3
#Hekin
 
It should totally be SheeHaa- that's great
 
peekin'
 
8:03 PM
:P
just started playing around with canvas and tiled map navigation
 
oooooh
That's actually interesting stufffffs
 
I have the very modest goal of making an interactive pen and paper rpg tiled base map
 
/me likes
pen and paper
 
?
Also
 
8:06 PM
pen and paper, with computer support when actual tactical combat happen
 
Any of you guys ever played D&D using Fantasy Grounds?
 
Is it going to be a public repo and normal sane JS?
 
@PeeHaa yeah
 
I bought it years ago when it first came out. It's really a good way to do tabletop games over the net.
 
omg
That's hot
 
8:07 PM
I've tried to (ab)use every amphp lib possible
 
ooooooooooooooooooooooooooooooooooooh
 
> "require": {
"php": ">=7.1",
"amphp/amp": "^2.0",
"amphp/http-server": "^0.8",
"amphp/http-server-router": "^1.0",
"amphp/log": "^1.0",
"amphp/file": "^0.3",
"rdlowrey/auryn": "^1.4",
"twig/twig": "^3.0@dev",
"symfony/yaml": "^4.1"
},
"require-dev": {
"phpunit/phpunit": "^7.1@dev",
"roave/security-advisories": "dev-master"
},
 
I have started so many games like that
 
:P
but yeah, canvas is kinda really frecking nice
 
You writing your own engine or using one?
 
8:09 PM
writing me own "engine" right now
 
niiiiiiice
 
@FélixGagnon-Grenier condolences
 
I've set the goal on a simple 2d map creation and navigation viewport
 
Totally want to see that
 
so far I'm able to drag the map around
... ok I'll public the repo a few minutes
 
8:11 PM
If you need help on amp side I am totally going to help you
 
@Allenph thanks!
 
:42903033 you need to add some screenshots to your readme
 
good point
 
also, hex-maps are a lot cooler
 
yeah... at some point that would be a configuration option
like, hex vs square tiles
 
8:13 PM
AFAIK, dnd does not work with hex
 
it's ok
we're playing hex with the group these last weeks
it's strange when thinking about spell ranges and zone of effect, but we haven't met with real problems so far
 
I like bitches writing game engines for funsies
 
also, there might be copyright issues
 
@PeeHaa :)
@tereško ?
oh you mean, about using dnd rules for instance?
 
yes
 
8:18 PM
@PeeHaa if you php server/server.php, you can navigate to map and see the canvas shit I threw together
 
if you want to make a game, you should make your own combat system and ... emm ... talk some book author into being allowed to use their lore as the setting
 
I thought d20 system was fair game
 
I thought so too.
 
I am not so sure
 
it's really intended as support for dnd games
 
8:19 PM
!!wiki D20_System
 
The d20 System is a role-playing game system published in 2000 by Wizards of the Coast originally developed for the third edition of Dungeons & Dragons. The system is named after the 20-sided dice which are central to the core mechanics of many actions in the game. Much of the d20 System was released as the System Reference Document (SRD) under the Open Game License (OGL) as Open Game Content (OGC), which allows commercial and non-commercial publishers to release modifications or supplements to the system without paying for the use of the system's associated intellectual property, which is owned...
 
@FélixGagnon-Grenier coolio. Gonna dick around this week
 
Sigh. I came up with a solution to our WP update problem.
Then the guy who implemented it did the exact same thing that caused the problem in the first place.
 
@PeeHaa <3 as you might have noticed, it's extremely early in all this. I'm totally open to suggestions, complaints, insults in any event!
 
I am not going to complain or insult in any way in this specific case
All engines + games I wrote were bad
 
8:25 PM
:)
 
I think people underestimate how much less reliable a microservice is than a service inside of a monolith. Quite likely way more than a billion times less reliable. Reliability of method calls in a monolith is something we often take for granted in a monolith...
 
Nice to have a look into how other people are solving it
brb
 
bbq because @Ekin told me to I want to
 
hue hue hue. bon appétit!
 
8:26 PM
lol
@PeeHaa I've been married 17 years now... I understand. Just embrace it. We don't ever really make the decisions, they just let us think we do.
 
Wait wat. yours lets you at least make you think you have any control?
 
She's a good master!
 
hehehe
 
I remember hearing a funny bit by a comedian on this subject a few years ago... let me type it up.
@PeeHaa “I am convinced that every man is being trained by the woman in their life. If you don’t think you are you just haven’t figured it out yet. I realized I was being trained one night while me and my wife were laying in the bed reading one night. All of a sudden she says “I’m hot.” That was it. I close my book, throw back the covers, and head to the wall to flip the switch for the fan when I stopped in my tracks realizing I had been trained to respond.”
@PeeHaa “I could hear her the next day bragging to her mom. Mom! I can’t believe it, it’s working. Last night all I had to say was I’m hot and he got up to turn the fan on. Her mom replies “Honey, that’s great! I would let you tell your father but I just said I’m hungry and he’s on his way into town to pick us up something to eat.”
They Are Billions did a huge patch; unit balancing and added wonders.
 
Wes
8:46 PM
today i raged so hard on something so trivial......
 
@Ekin or "bra"
 
Wes
people fucking drive me crazy
 
What was so trivial that you raged about? @Wes
!!reminder Time to go home in 10 minutes
 
Reminder 42903487 is set.
 
Wes
8:52 PM
the topic of the discussion was not important, but something was said that really made my blood boil. anyway, ignore it. i'm ok now
time to go to bed
 
@Tiffany you can always go with "bruja" (it's with the spanish "j") //cc @Ekin
 
@tereško guys calling each other "bra" is funny cause it's also short for brassiere...
 
Wes
gn \o
 
8:57 PM
@Tiffany yes, thank you, I know what a bra is
 
nn Wes
 
!!wiki Bra
 
A bra (), short for brassiere (, UK or ), is a form-fitting undergarment suspender designed to support or cover the wearer's breasts. Swimsuits, camisoles and backless dresses may have built-in breast support. Bras are complex garments made of many parts. Most come in 36 sizes; standards and methods of measurement vary widely. Up to 85% of women may be wearing the wrong size. == Etymology == The term brassiere was used by the Evening Herald in Syracuse, New York, in 1893. It gained wider acceptance in 1904 when the DeBevoise Company used it in their advertising copy—although the word is actually...
 
!!urban bra
 
8:58 PM
[ bra ] a barrier known to all men, that is almost the only thing between us(males) and the holy mounds known as BOOBS, and if you didn't know that your a fuckin' moron.
 
@tereško you calling me a witch now :P
 
^.^
 
@Jeeves you used "your" instead of "you're." Not good when calling someone a moron. =/
 
suppose it's time for me to be productive, was off work today because of a persistent migraine, and I'm at my limit for triptans until tomorrow
 
@StatikStasis Time to go home
 
9:00 PM
Yay!
Talk to you guys in a bit.
 
also, "Krypton" is boring
why are all the new series so terrible?
 
you seen 3%? portuguese I believe
 
next series in line: "Lost in Space"
lets see if it's shit too
 
Basically that one good episode of black mirror and a series of that ^^^
 
lost in space wasn't that bad but nowhere near expanse or alikes
 
9:08 PM
I wonder, what is in the "alike" category, @Ekin
 
tbh I've been thinking about that for the last minute
 
sP_
@Ekin Are these thrillers? Or just sci-fi action kinda shows?
 
legion is quite nice
 
sP_
I would like some recommendations in mystery/thrillers/comedy but no horror
 
@sP_ series or movies?
 
sP_
9:13 PM
@mega6382 Series.
 
@sP_ Try, "True Detective", "Sherlock", "Supeernatural", "Person of Interest", "The Blacklist", "Grimm", "Stranger Things", "The Originals", "The Wire", "The Office" and "Seinfeld"
 
sP_
@mega6382 I've seen like 8 of them. List looks good so I'll probably like the other ones thanks :)
 
I have no seen "True Detective" (since it seemed boring, aside from Alexandra Daddario), "Serlock" is cool, "The Originals" is a spinoff for "Vampire Diaries"
 
sP_
"since it seemed boring, aside from Alexandra Daddario" +1
 
@tereško I don't care much for Vampire Diaries, but I quite like The Originals.
 
9:27 PM
oh, and "Grimm" was shit
 
@tereško True Detective might seem boring, but in my opinion it is 1 of the most interesting series out there. Especially the 1st season.
@tereško Anyway, you can change that out for "Buffy: The Vampire Slayer"
if you wish.
 
@ircmaxell trading a lot of stability for a little more flexibility is usually a bad thing. microservices are a fine thing once you're hitting real scalability issues, but that's pretty far into the game … One shouldn't engineer applications like they were developing the next google
 
@mega6382 I assumed we were not talking about old series
 
Its not that old, anyway, grimm is alright too.
 
9:52 PM
@DaveRandom still needs to be fixed: make sure cache is working, make sure files are properly served
also: footer
 
10:11 PM
@tereško True detective is really fucking good. The first series is amazing.
never seen the second, mostly because I've been told it was not the same actors
 
lately I have stopped watching tv series in general and been sticking to books
 
that is also an acceptable idea
 
maybe I am just getting old
 
lately I started to realize how much of my time I've spent on stuff I did because relatives like them, or because it's popular. I've literally bandwagoned on hockey (don't misunderstand, it's an amazing sport, and I took a liking to it) but at some point a friend was like "but hey, it's not like violon was really your passion", and I was like... where did I screw up.
The sheep effect is hard to fight
 
indeed
just find a good herd
I found room 11... I'm a better developer
 
10:19 PM
@FélixGagnon-Grenier not sure I can actually relate to this :/
 
@FélixGagnon-Grenier Yeah, thats what i said.
@FélixGagnon-Grenier Yeah, and the story is different too.
 
so if I haven't heard anything from SiteLock by tomorrow, email them tomorrow?
 
also, regarding tv series, last on I was marginally interested in was Westworld ... and I didn't even finish the first season
anyways, nite
 
@tereško g'night
 
10:21 PM
\o
@Tiffany Yeah, I once didn't hear from a company after the interview, so i sent them an email. They still didn't reply so I sent them another email after about another week. Then they called me in for a second interview, and I was hired. And I am working at that company still. :P
 

« first day (2796 days earlier)      last day (2149 days later) »