« first day (2540 days earlier)      last day (2422 days later) » 

3:00 PM
@NikiC That's why I did the unset, but you could always $k => $v and then $myarr[$k] = null; if you really wanted to avoid references
I feel like by-ref on foreach is actually one of the valid use cases (edit: for references) AS LONG AS you remember to clear it after use
 
\DateTime::format('v') returns 4 symbols instead of 3 – #75286
 
^ that's kinda funny ackshually
 
@DaveRandom hover over the comma...
 
gmfdi
 
3:05 PM
@DaveRandom now hover over the apostrophe
 
@FlorianMargaine Listen here Floor-cleaner Mayonnaise
 
Anonymous
!!urban gmfdi
 
[ GMFDI ] Gawd-Mother-Fucking-Damn-It
 
Anonymous
classy
 
@JayIsTooCommon Certified Classy™
 
3:09 PM
reasons to use PHP, #765: $x = [&$x]; $y = [&$y]; var_dump($x == $y); // PHP Fatal error: Nesting level too deep - recursive dependency?
 
@Dereleased I'm listening
 
3:22 PM
@Andrea stackoverflow.com/questions/28362055/… yes, I had it .. (:
 
lol... coworker just told me he upgraded a server to php 7.1 and everything stopped working
and he panicked bad :P turns out everything in there was using mysql_* and he didn't know it got deprecated
 
@AlmaDo safe way to compare might be to var_dump them since that checks recursion :p
 
Anonymous
@Ekin .. clearly did his research then
 
Anonymous
@PeeHaa ping
 
yeah
 
3:24 PM
@Andrea .. which will not help when I need to check arrays as unsorted entities (because to sort them, I need to apply comparison which is not safe) ..
 
@FlorianMargaine I should've thought of something to say
(Sorry, was in parking lot talking to people who struck my vehicle a couple days ago; nice folks)
 
Hi! Can I ask about Wordpress here?
 
@neoDev Just ask, if we know we'll answer
!!welcome neoDev
 
Welcome @neoDev, please read the Chat Guidelines
 
@Ekin sure ;)
 
3:27 PM
Ekanssssss
Took me far too long to realise that is "Snake" backwards.
By realise I mean someone pointed it out.
 
Anonymous
what does it mean forwards?
 
:P
 
I am trying to figure out how to use visual composer components (sliders, carousels, etc) to output posts
my idea was to create a vc element as a script that does a query to retrieve the posts, then "copy" the actual structure of the component, and clone it as a loop
 
In PHP? o.O
 
yes, in PHP, they use PHP
but the problem is that I am not sure if that is a good idea
 
3:31 PM
@Fabor maybe because the vowels sound completely different!
 
@Fabor wow, I never realized
 
no thats wordpress
@neoDev
 
@JayIsTooCommon in case you're serious, it's a pokemon name
 
what you mean Ronni?
 
/ˈsneɪk/ vs /ˈɛkənz/; if you say “ekans” backwards it sounds nothing like “snake” and vice-versa
 
3:33 PM
we are talking the visual composer plugin for wp? @neoDev
 
yes, it uses PHP
 
no wordpress uses PHP (= anyways, when you are using something like visual composer then its just drag and drop, it has functionality to extend upon it
 
yes
 
have you checked the docs, for the "most viable way" ?
 
Anonymous
@FlorianMargaine thanks
 
3:36 PM
yes I'm really trying to find a solution. Note that what I am trying to do is give all the non-programmer people the possibility of create things by themselves, and if I will evere create something it will be open source
many people told me that will no help me, so I am alone for now
imagine you have a "category" page, the parent page of many child pages, e.g. "products"
now you want to display the products inside a carousel
well, if you are a programmer, you just read some docs, understand what html structure the plugin uses, then put it manually inside a loop, and done.
but now, imagine you are not a developer, and you cannot do this, using code
 
Ekans => Snake
Arbok => Kobra (cobra)
Muk => ...
 
my idea is for giving those people the possibility do it using the already existing plugins, addons, etc
so not reinventing the wheel
 
hah. Yeah I wasn't going to go there but you went :P
 
@neoDev I am not sure what problem you are solving wp already has everything (=
except a secure base
 
^ lololololololol
 
3:40 PM
Ronni so how this can be done?
 
I am not sure neoDev, but I think extending on visual composer anything can be done, especially if you code it up
 
@neoDev Are you describing a loop that reads results out of a database?
 
visual composer is like the dream plugin of all wp companies just drag n drop n ship it
 
@RonniSkansing Visual Composer is the bane of my existence.
 
@RonniSkansing WP:FrontPage
 
3:42 PM
@Dereleased yes it outputs the posts of a certain post type
 
@Andrea we should maybe fix that or something
 
It took me forever to get that on-top of WordPress...on top of Magento.
Morning all.
 
oh noes (=
 
@NikiC it should do what var_dump does ideally
 
3:43 PM
@RonniSkansing yes vc is good but in the case I desctibed I was not able to find a solution nowhere
 
Think I need to do a security bug wp run so I can stay on top this year though I think it's unlikely anyone will catch me
 
AH GOD DAMN IT.
 
@Andrea It already does what var_dump does, which is that warning
 
WHY DO YOU SERIOUS GUYS KEEP PRANKING ME!!!!!1111
I wish I remembered that feeling from week to week so I could say this is why I have trust issues
 
you need to do a bit more to than just detect the recursion to have a meaningful equality check
 
3:44 PM
@neoDev sorry I am heading out, I didnt really get to understand what you meant fully. Good luck with it
 
I think. Or maybe not
 
@NikiC my assumption is that once you spot the recursion you can assume that branch is true
but I'm not… certain that's a safe assumption
 
@RonniSkansing can you at least help me undestand just one thing please?
 
@Andrea yeah, hrm
 
or actually no, assume the branch is false maybe?
 
3:46 PM
@neoDev if I can do it within the next 4 min.
 
if it matches higher up then it'd already have returned true
 
nah true sounds right
 
just in general terms, not being too specific so:
reading the vc docs I understand that there is a sort of API
 
and I am trying from the "child" component to retrieve the html structure of a "parent" component
 
3:47 PM
@FélixGagnon-Grenier wat
 
how I should be able to access it?
 
@Dereleased rebecca
I trusted @kelunik
 
Wow, @neoDev you have more reputation removed from your account ("user was removed") than I have in total :O
 
now I hate myself for forgetting from week to week that everyone here is potentially an arsehole
 
@FélixGagnon-Grenier don't do that
 
I did but nothing from their docs helped me
it does not contain what I need
(that is more about PHP in general)
unfortunately I'm still a noob in PHP
 
@JustCarty Where do you see that?
 
@Dereleased I got nosey and went looking at the reputation tab. There was about 700 rep removed with the message "User was removed"
 
Wow neoDev has almost 33% more impact than me at 10% of the rep. What is life
 
3:53 PM
@NikiC the problem is recursion doesn't necessarily mean true or false. x { x { x {} } } and x { y { x { y {} }}} both have recursion on x
 
@JustCarty Ah, I was on the wrong tab
 
@Dereleased 783 removed vs 787 current
 
@Andrea but if it recurses on the same thing in both and they are equal ignoring recursion then shouldn't they be equal overall?
 
@JustCarty fine, 20%. Still...
 
@NikiC that's… what I'm not sure about. I wonder if there's a paper on this
 
3:55 PM
@Dereleased And here I am struggling to make ends meet :(
 
@Andrea Probably. Kind of reminds me of bisimulation.
 
Anonymous
Could someone make the next 30 minutes go faster please. thank you
 
Anyone got a baseball bat?
 
Anonymous
Speaking of baseball bats.. What if batman got bitten by a vampire?
 
if*
 
Anonymous
3:57 PM
same thing
 
is else
 
@JayIsTooCommon echo date("H:i:s", strtotime("+30 mins"));
 
Anonymous
Are you back in the UK yet or still a hipster? @Fabor
 
@JustCarty If you found a way to make ends meet with SO rep, I want to know about it
 
Anonymous
@JustCarty I can't parse PHP
 
3:59 PM
@Dereleased SOCoin.
3
 
@Dereleased SO rep = quality of life
 
@JayIsTooCommon No plans to return.
 
Anonymous
@Fabor say whhaaattt. How come? Is it a girl?
 
I do have a GF here but that's not really a reason to not come home so much as one to stay in Vietnam
 
Anonymous
What is it about the place which makes you want to stay out there?
 
4:05 PM
Hey I am struggling with some URL rewrites in WordPress Multisite I have the following in my .htaccess

RewriteRule ^(\w.+)$ ./pretty.php?pretty=$1 [QSA]

How do I get this to apply to all the multisite networks not just the mainsite?
 
GF. But if I didn't have a GF I still have no plans to return to the UK.
 
Anonymous
fair enough
 
Might change in a few years, who knows.
 
Anonymous
Sooo... free holidays to Vietnam for me?
 
Sure. Bring @PeeHaa
And tell him to bring me a kebab
 
Anonymous
4:06 PM
kinky
 
Anonymous
I'm in love with vscode
 
@Dereleased you looking for a job it sounds like?
 
not sure how you get that impression
 
I get the impression he got the wrong impression.
 
4:53 PM
@DustinSnider does it?
@samayo Really? I find it a little under featured. But I love it as a second window, instead of another instance of $heavy_IDE
 
Anonymous
Under-featured? compared to which other IDE?
 
Anonymous
But then again, I'm using it for NodeJs development, so I'm not sure if it sucks for PHP.
 
it does
I've tried
PHPstorm is infinitely better
 
Anonymous
Yeah, since it is focused solely for PHP. Also, it's heavy
 
So, Mars in 2024...Surprised no one has said anything yet. No buyers?
 
4:58 PM
I think I am having a real brainfart moment.
echo strpos('bh-sdbasdda-sdasd', "-", 1); // returns 2
 
Anonymous
maybe the offset is after the first occurance
 
Anonymous
It will return the expected result, if you set the offset to 3+
 
Ohhh brainfart in offset not occurance
 
5:16 PM
@samayo pretty much all jetbrains ide's are better at any specific language than any generic one
 
Builtin webserver crash after chdir in a shutdown function – #75287
 
5:47 PM
i checked out a branch from master, but it copied all they commits made in master, is there a way to remove all those commits?
 
revert?
(I'm not sure if that's what you need... I'm still newbish with git)
 
@ChrysUgwu stackoverflow.com/questions/13969050/… you probably want an orphan branch
 
@FélixGagnon-Grenier I mean, you'd hope. I use Komodo at work because I have to work in several languages and it has the best intersection I've found for all of them. But I've recommended that they use PHPStorm for people who work here exclusively in PHP, and they might actually do that
 
Could someone review the wording of the first paragraph. The words connecting the sentences sound strange to me somehow. github.com/amphp/aerys/compare/… /cc @JoeWatkins @DaveRandom
 
@Dereleased This might possibly be because I sucked a lot, but when I started using phpstorm, the syntax and logical checks made me write much better code
 
5:58 PM
@kelunik Any time you link something, I fetch with cURL first and check for certain... keywords
 
@Dereleased I don't know if they changed this, but like four years ago, IntelliJ Idea could be any one of their other IDEs with the right plugin
@Dereleased "rebecca," "black," "friday"
 
"[...] and it is possible to use all the non-blocking libraries built on top it. That's also why several things need to be `yield`ed, as they are `Promise`s."
=>
"and it is possible to use any of the non-blocking libraries built on top of Amp. This is also why several things need to be `yield`ed: they are `Promise`s."
@Tiffany + "location", "refresh", "youtube"
 
@Dereleased that would make sense
 
6:19 PM
Mornings o/
 
I'm still curious why @DustinSnider thought I'm looking for a job.
but morning anyway
 
@kelunik you don't think I'll notice that shit?
It's an arms race, you do that and I'll build a sandbox/headless browser to see what dat javascrip do
 
Anyone actually played DnD before?
 
yeah, lots
stopped around apparition of fourth though
 
6:30 PM
Mean IRL
 
I played it a little IRL
 
@Fabor I did a bit of that too. Not my forte
 
Probably cooler to think about then do
 
It strongly depends on the group of people you're playing it with.
If there's one bad apple in the group, it could ruin the fun entirely.
 
Like Bloodninja?
 
6:43 PM
I'm thinking more like toxic
The group I was in, one dude would nitpick practically everything
and at one time he thought the DM was giving preferential treatment to one of the players cause she was friends with the DM's wife
 
I'm not sure if Fred is some strange troll, or genuinely doesn't know how the internet works [web pages can change!].... have my beers addled my noggin or is he just being a weirdo? Context is this question.
 
@Tiffany ...bit of a leap
(on that other person's part I mean)
 
@Fabor oh... I too meant irl. fourth means Dnd 4th edition. IRL for me means actual LARP, with costumes, pvc swords, and stuff
your question was about pen and paper? I played that a lot
 
I've never played so don't know much
 
@salathe I think he's just being nitpicky on how the manual was changed, that the comment should have been left, but it doesn't really make any sense why the comment should've been left
 
6:51 PM
@FélixGagnon-Grenier When are you coming to LAGFH? Have you picked some time yet?
 
maybe he's very fond of Jay Blanchard
 
@Dereleased not really...
 
ooh, maybe LAUGH - Live Action Utterly Get Hammered
 
I like that
 
That's why we've gotta go to EPCOT - Every Person Come Out Trashed /cc @crypticツ (cc is for acronym joy, as a floridian you can likely confirm that we say that)
@FélixGagnon-Grenier =(
 
6:53 PM
I know..
 
@Tiffany yeah that's my line of thought too... that and he's now got a huge pile of answers/comments (more likely a couple) on SO that are outdated now.
 
@salathe but shit like that happens...
just go on with your life instead of worrying about it... in my opinion
 
totally, just as I will :)
 
evenin
 
7:09 PM
\o
 
o/
 
stream_socket_enable_crypto() blocks during handshake – #75288
 
\o
 
@PeeHaa fix imdb plugin
 
7:25 PM
@Jeeves fixitfixitfixit @PeeHee
 
@salathe What's your name??
 
You know my name, @Jeeves
 
@salathe No, I don't. Please tell me.
 
*runs away giggling*
 
@Jeeves your mother was a hamster, and your father smelt of elderberries!
 
7:35 PM
@Dereleased My mother at least acknowledged me as her child.
 
FUUUUUUUUUUUCK
 
@salathe Not a troll. Just genuinely stupid in this specific case
 
That's too specific, that has to be SwordFight it isn't?
 
Unserialize ArrayIterator broken – #75289
 
@Dereleased That's my personal list :P
 
7:43 PM
What plugin is that in?
 
Terminator
It first tries to match that list and falls back to cleverbot
 
@Jeeves youfdjsfksghdjaklfgrkghrihjtkwerhuilghjklrghuilasrhafjkgahreuiahjkrhgluarshkl sentient?
 
@Dereleased No no no. I am just a dumb bot. Carry one filthy human errrr master.
 
@Jeeves What do you think about @Jeeves?
 
@Fabor @‌jeeves I don't think I like @‌jeeves?
5
 
7:48 PM
\o/
 
I was thinking about trying to loop him too
couldn't decide which message to use
@Jeeves give me my @Jeeves back!
 
@Dereleased @‌jeeves /me gives @‌jeeves back.!
 
I tried once with the reminders
 
@Fabor asking jeeves to remind jeeves in 1 second?
the remind message being to remind jeeves in 1 second?
 
heh pretty much
 
7:50 PM
did it work/crash Jeeves?
 
Nope. Ekins had it covered.
 
frydai
 
last frydai before starting to work again =/
 
7:51 PM
@Fabor lol
 
@NikiC hey, remember how I was tearing my hair out over missing func data? I was casting &(zend_object*) to zend_object*. i am smart. I am honestly surprised it didn't segfault
 
@RonniSkansing My condolences.
 
@RonniSkansing this is my last Friday before my last Friday before my new job
 
thanks
@Dereleased you too?
oh
 
7:51 PM
@RonniSkansing I am working rn tho
 
almost (= well congrats on your new jobs
 
yeah, @Dereleased is the new "I have a crazy ass job title" high class r11-er
 
Was it better than my old title? "Pirate Hunter"
 
I'll admit than Pirate Hunter is kinda much cooler ;)
 
@Fabor ... :P
 
7:53 PM
mine is Web Applications Administrator
wtf is a web applications administrator
 
<< developer ... again
 
@Andrea heh
 
@FélixGagnon-Grenier It is. And I don't think any of us are topping @ScottArciszewski or @ircmaxell
 
.... since my employer is so institutionalized, I can't get the "research agent" title becuz I ain't degree holder, hence I am..... Javascript Developper. Kill me now.
 
@FélixGagnon-Grenier Wait, you don't have a degree? This friendship is over
 
7:56 PM
I knew it
You superficial Senior Architect.
 
Is "Coding Monkey" a cooler job title?
 
yes, it is
It is downright unassuming, and funny
 
I have a bastard's degree in WRECKING SHIT
(I have no degree -_-)
 
@FélixGagnon-Grenier That's weird...because when my co-workers call me by that title they do so in a condescending tone.
Right before the beatings.
 
7:58 PM
awwwwww
learn boxing
 
Code Monkey I think is generally kinda disparaging. I guess it depends on where in your career you are
 
@FélixGagnon-Grenier Senior engineer is into Brazilian Jujitsu. He'll just take me in the ground game.
 
@Dereleased What about Dream Weaver Dream Weaver?
@Tiffany I know what I'm doing with the rest of my life.
 
8:01 PM
@Allenph hiring monkeys to do your job?
 
Playing that stupid game.
 
@Allenph Learn how to handle long-range medium-calibre small arms
 
Why do the monkeys get more expensive? Buying one monkey effects the supply/demand curve so much that the price of a monkey goes up like 25%?
 
have you played an incremental/idle game before?
just curious
 
@Dereleased My Senior Engineer was also Neo in a past life.
 
8:03 PM
@Allenph trimps.github.io
 
@Tiffany No.
 
I've spent way too much time playing trimps... it's sad when I'm using a ~1400 dollar computer to play a game that's mainly text
 
@Allenph just kill yourself then. That'll show 'em.
@Allenph "affects" -- this is why you never got ahead and Dan Brown Novels
 
@Dereleased You sound just like my mom.
 
8:06 PM
@Allenph swarm sim has a bit more substance
 
@Tiffany I'm blaming you by name when Neo comes over here and sees what I'm doing.
 
hmmm
@NikiC is it just me, or is the __debugInfo for Closure… completely broken for internal functions parameter names and probably spitting out random memory
because it, sure looks like it
 
@Allenph the cool thing about idle games is they play themselves after a little managing
 
@Andrea repro?
I haven't seen that yet
 
lemme try it on 3v4l
 
heh
 
I don't know where it's getting those strings from but they're, not the right ones
$ sapi/cli/php -r 'var_dump(Closure::fromCallable("count"));'
object(Closure)#1 (1) {
  ["parameter"]=>
  array(2) {
    ["$ion"]=>
    string(10) "<required>"
    ["$ %s instance wasn't initialized properly"]=>
    string(10) "<optional>"
  }
}
this one's fun :3
@NikiC oh my god I think I know what's happening too, I have a guess
@NikiC if you take a random const char * in .rodata, and pretend it's a zend_string, and try to print its value…
oh dear, this feature dates back to 5.6, I wonder if it's broken there. can I pretend it's a sec bug.
ahaaaa
PHP 7 broke it
 
@Tiffany have you noticed that you can click upgrades again after hitting max and it takes your money but gives you nothing?
 
5.6 works fine, it's because someone forgot to account for the types of arg names changing :D
 
8:19 PM
@Dereleased the developer said the game was a prototype, he may or may not ever finish it
 
@Andrea I don't understand you people
 
@NikiC "What do you mean, YOU PEOPLE?!" -Andrea, Probably
 
I always try to put things in the newest version I can justify, because I hate that up-merging
 
@NikiC it's a part of 5.6 that would be easy to fix :p
 
8:21 PM
And here you're talking about touching php 5 code...
 
@NikiC I mean, okay, I don't want to touch 5.x that much…
but I find upmerges not too painful since I usually make very small bugfixes on infrequently changed code
 
debug info of Closures of internal functions contain garbage argument names – #75290
 
@Andrea On an unrelated note, I'm 95% through RTK and those Nanoha lyrics on your Twitter still have five kanji I don't recognize. That's depressing :(
 
@Tiffany Which will occur first...my machine crashing or me writing the complete work of Shakespeare? I don't know...but I'm going to find out.
 
@Allenph also, if you enjoy these types of games, there are more
 
8:41 PM
@NikiC aw :<
 
Hey, would any of you help spot my bad grammar and like just shitty sentences gist.github.com/RonnieSkansing/056917674ee569a5502f1ad02b1fe898
btw @Tiffany I got that kindle and rocks
 
anyway I fixed that bug, lol
C is wonderful~
 
@Andrea It's like when someone learns to do something on a computer not by reading and comprehending, but by pressing a certain sequence of buttons every time.
@Tiffany they really don't, because it's always about orders of magnitude
 
9:02 PM
@Andrea it's not so much merge conflicts, it's mostly just annoying to every time checkout, pull, merge, push … like 3 times or so…
 
MySQL on MySQL Workbench, how do I copy the results from a query for something that looks pretty on SO is if I want to post as a portion of a Q or A? Anyone?
I'm working with MySQL Workbench and just want to paste the results from a grid view result set.
I thought there was a way to copy the results to a table like in command line separated by pipes and such
| field1 | field2 |
| data1 | data2 |
 
> very first talk
"it-bosses" should be "IT-bosses", because abbreviation
 
@bwoebi And edit NEWS :/
 
@NikiC I regularly forget that one.
 
9:21 PM
@RonniSkansing :)
 
I am very happy about it even ordered a cover for it today
perfect match for the last 2 hacking humble bundles
 
yeah, I bought a cover for mine when I got it. The cover is cumbersome at times, but it's easy to take the kindle out/put back in.
@Dereleased depends on the game, imo
@IROEGBU I'm not sure that the hyphen is even needed in this case.
 
Yeah, just space I guess: "IT bosses"
 
@NikiC there should be a special merge driver for NEWS which automatically imports a NEWS entry when merging to the next version unless it's master…
 
9:44 PM
@bwoebi YES
@bwoebi only need one push :)
 
@Andrea there's nothing more fun than redoing all the merges because you forgot to pull-rebase in one branch
that's why I usually push for each branch individually
at least it warns me then
 
@IROEGBU thx
appreciated =)
 
@bwoebi look up git-buildpackage
it's debian specific, but it has very good ideas
notably generating the changelog based on commits
 
PHP7, session_regenerate_id(), not marked as PHP7 function in Bulgarian version – #75291
 
10:29 PM
oh hey ZSTR_KNOWN() is neato, when'd we add that
 
@Andrea relatively recently I think, by Dmitry.
 
@bwoebi aha, it would be him. he solved a long-standing problem!
 
@Andrea no, axtually anatol :-D
 
@bwoebi ooh, I should thank him
 
@Andrea github.com/php/php-src/commit/… … Just assuming it's always Dmitry with such changed :-P
 
10:44 PM
Hmmm I need a person with a US bank and the ability to send transactions online -_- not shady :P
 

« first day (2540 days earlier)      last day (2422 days later) »