« first day (2653 days earlier)      last day (2289 days later) » 

Wes
12:00 AM
bu
 
 
2 hours later…
1:39 AM
// Musing: what if instead of:
array_map($data, "even");
// We do:
array_map($data, function even);
I'd much prefer to merge symbol tables but if that can't pass due to BC maybe this can work?
// from:
array_map($data, "SomeClass::method");
// to:
array_map($data, function SomeClass::method);
/cc @bwoebi @Andrea @NikiC @ircmaxell @JoeWatkins @Danack @DaveRandom and anyone else from internals
^ I have the order of args wrong there. I meant to write array_filter but too late and I copy/pasted it everywhere :D
// Or maybe use callable instead to help differentiate incomplete code?
array_filter($data, callable SomeClass::method);
 
mixing up the arg order is what sells me on it for php
 
Tonight while in the shower I was thinking about my biggest grievances with PHP and the inability to accurately refactor functions and methods is #2 on that list.
 
what's #1?
 
Inability to type arrays, iterators, other collections, and callables.
 
that's a big #1
 
1:49 AM
#3 on the list is how mere existence of references break your ability to reason about side-effects on local variables when passed to a callable
 
references are such an annoyance
hey neat, peachpie is still at it peachpie.io/2018/01/zero-nine.html
 
Wes
const even = function($x){ return even($x); }; // alias global function into global constant

use const even;
array_map($data, even);
 
2:04 AM
// And for completeness:
array_filter($data, (callable SomeClass::method)->bindTo($obj));
That case is more verbose than I'd prefer and I think we don't allow rebinding internal methods, but we probably ought to permit it when the class used to create the closure is the same as the instance being called.
 
Wes
i hate it man :(
what i hope, is that if we allow to set functions into constants, the tables merge will happen naturally
 
I really prefer to merge the tables but I'm not sure we will ever be able to do that, unfortunately.
 
was there already an rfc for that?
 
@PaulCrovella Not that I'm aware of.
 
Wes
i started writing it, remember? :B
 
2:16 AM
maybe it's worth bringing up on list for 8.. two of the biggest thread killers are gone, you might get some real discussion
 
2:27 AM
Good morning.
 
Wes
2:43 AM
yo
did you guys read my article about symbola? :B levi, paul. i forgot
if you show people how nice it can be, they will be more willing to accept a change like unified symbol tables
plus, if they start using "the polyfill" now, their code will be compliant to unified tables if they get accepted
 
:/
my sister has a 5.7cm mass on her remaining ovary, and I think? 2cm cancerous tumor in her kidney
fuck cancer
 
Wes
damn :(
good luck...
cancer is a bitch
 
she has my mom's disease :/
my mom died when she was 50 from it
the part that sucks is this won't be the end
even when she has these removed
unless medicine finds a cure for her type of tumor/cancer
 
Wes
2:59 AM
:(
 
benefits of working at a college... I have access to our library databases and can look up medical papers
 
Wes
3:14 AM
I hope she'll be fine. Timing is important, that seems a big tumor but it could be worse. My dad went from diagnosis to death in about a month.
 
:(
I'm a little frustrated, because we've known she has the disease, but for several years, she wasn't regularly tested to see if there were any tumors. My mom was tested once a year. But ultimately, this frustration doesn't matter. I can only assume it has been rough on her mental health.
Goes back to healthcare system in the US is bollocks
and a "luxury"
 
Sorry to hear that. That sucks.
 
 
2 hours later…
5:12 AM
Morning !!!!!!!!
o/
 
6:02 AM
Morning ^^
 
6:35 AM
moin
 
Wes
7:08 AM
\o
 
Wes
7:52 AM
@Patrick can you ping me when you are around and have some minutes? :D
 
doodlesack a bagpipe.
 
Wes
i would think doodlesack is a naughty word
 
 
1 hour later…
9:25 AM
@Allenph what the fuck are you talking about
 
Incorrect PHAR stub parsing – #75850
 
9:41 AM
Year component overflow with formats "c" and "r" – #75851
 
 
1 hour later…
10:42 AM
@tereško It was a joke about your library having the ability to be hooked up to catch failed password attempts.
 
you are shit at jokes
 
mornng
 
10:57 AM
moin
 
o/
 
11:13 AM
Morgens
 
11:28 AM
Godmorgen
 
11:51 AM
Guys, for your information, if you use Cloudflare as your DNS server, your original server IP will be hidden which makes you safe against DOS attack .. your welcome :-)
 
@Shafizadeh to be precise, if you use Cloudflare as your server proxy. The DNS server is actually unrelated and on top of that
 
ah ok, I meant dat ^
 
12:13 PM
Hi guys, I would need quick help from someone who is good in CakePHP in turning SQL query into ORM styled query. If someone is willing to help, I would be really thankful
 
@lbartolic Is English your native?
 
Wes
@Shafizadeh you can't approach strangers with strange questions like that...
 
I'm not trying to approach to him, I just wanted to tell him "your English in good, if you are not a native, then what book did you read for learning English"
 
Wes
yeah but it's a weird thing to ask to someone you don't know
approach = engage in conversation
 
12:29 PM
ok
 
Wes
you need to soften it a bit at least, otherwise it's just weird :D like, "hi, i see your english is very good. i am trying to learn it, is english your mother tongue?"
 
:-)
 
Wes
i mean, say at least "hi"
 
You know, I'm a very friendly person .. I have about 230 friends in here and I even cannot consider all congratulations messages that I receive in my birthday ...
but apparently European people are cold a bit in relationships
 
Why limit just European. That can be way better considered™.
Morning.
 
Wes
12:40 PM
@Shafizadeh it could be, but there's worse. in japan it's considered impolite even looking at someone (you don't know)'s eyes
 
@Wes oh ..!
staring at people (specially females) is a recreation :P
 
1:02 PM
@PeeHaa please kick someone ^^
For being a creepy fuck.
 
Anyone against?
 
@Danack It was a joke, you should focus on this emoji ":P"
 
I agree with @Danack still. It's inappropriate and creepy
Don't let me kick you again
 
as I said, it was a joke. you probably should search for the meaning of word "joke"
 
@Shafizadeh You're being a creepy fuck for entertainment?
@PeeHaa he doesn't understand the problem. Skipping to the punishment phase is appropriate.
 
1:07 PM
done
Especially after that reply
 
For anyone else's reference, this is not the first time he's been told "don't be a creepy fuck to women".
btw I heard you had terrible wind the other day @PeeHaa ?
 
Yeah we had a light breeze over here :P
Seen the videos?
 
I liked the one where the guy entered from the left and then went "Weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee‌​....." over to the right.
 
@Shafizadeh HAHAHA! You are so funny!
 
@Danack :D
How's life btw @Danack? Don't see you speaking that much anymore in here I think?
 
1:14 PM
Speaking the wind, have you checked plane landing in Duesseldorf?
 
Yeah. That was crazy
 
@PeeHaa Been busy due to work, in partly a good way: dijonplatform.com/gb-en is a thing we made and is being used by one of our clients to replace their existing shit. It's actually not as finished as I'd like due to the 2 other programmers being kind of shite, which is being sorted.
 
Ah cool
 
The other project, the one I was actually hired for back in April has just kicked off - so we've hired a couple of new people, and been busy putting a lot of infrastructure stuff in place for that. on a related note:
Does anyone know a docker container for Chrome headless that works in docker compose without falling over?
 
Ah cool
Is it hard to get people over there?
 
1:18 PM
@Danack according to what I read, he insisted to convey what he said isn't what he believe and it was just a joke. I personally believe people should respect to other cultures. Maybe that sentence isn't funny for us, but it is for him and I guess he did not intend to insult.
 
That's a nonsense argument
 
@MartinAJ People can behave how they want in their own home. And other cultures can behave how they want in their own country. But if you come into a room that is owned by people who aren't shit-weasels, then behaving like a shit-weasel won't be accepted.
@MartinAJ "I guess he did not intend to insult." i) He did and then didn't accept that he had been rude ii) He has been told multiple times before, behaviour that is acceptable in his country, is not acceptable here.
 
I didn't read his old comments, so I can't judge anything
 
@MartinAJ The thing is his valuable contributions are almost nonexistent and his crap on several levels are a daily annoyance
 
^ that
I rarely see him help anyone... but he asks at least a question per day
 
1:29 PM
@SaitamaSama I think the most newbies are like that, like me, and I hardly think that's a good reason to kick someone out of the room. but if you seen bad behavior of him, then ok, kicking him would be acceptable.
 
@MartinAJ newbie? He's been in this year for at least 2 years...
 
I said newbie since @SaitamaSama said he asks at least one question per day
 
I still think he's someone's research project for "how much and for how long, will people help someone who shows no sign of googling things that are easily google-able, whilst also being quite annoying".
 
ah
 
1:36 PM
got it, apparently he's following Arabic culture
I had a Arab friend and he had almost the same attitude to women
 
technically Persian, aka Iran.
 
Do you also support banners for campaigns? @Danack
 
@PeeHaa you mean advert banners?
 
yeah
Or mostly landingpages and campaign sites stuff?
 
1:46 PM
No.....we're partnered with a company that is actually good at running campaigns, so all of the external stuff we've left for them to do.
Yeah, the stuff we do is landing pages, campaigns and forms for taking the money.
And being able to manage the content on those pages through the admin interface.
 
kk cool
 
Yes he is a very odd individual, mostly cultural, but Shafizadeh has shown growth when it is explained to him why what he said is uncouth. Kicking is an option but perhaps explaining is a better option.
 
@SaitamaSama @samayo ended up finished 2 hours later than I thought I would last night :(
Today?
 
2:01 PM
@Fabor agreed. also according to taking a brief look at his profile, he wrote 128 answers which means he doesn't just ask and tries to help too
 
yeah, happened to go to bed early yesterday as well... today should work out fine for me
 
@Fabor So weird how bad judgement of character is of some people in here regarding him
 
Also, adorable answer to this question (would be if it was said in joking manner).
 
Wes
2:26 PM
hello caturdays
 
wesley o/
 
Wes
pieter \o
 
o/
@Danack on dijonplatform.com/gb-en the button close to the footer, the arrow icon is not aligned properly
 
@SaitamaSama which browser do you have?
 
evening room.
 
2:32 PM
FireFox-Dev
 
k, thanks. seems fine on chrome.
 
oh... seems to be a user agent style issue then
 
Wes
for the record, the correct render is firefox's
 
also the items in info section are not properly aligned... the right ones are aligned a little bit higher than the left ones
 
> It's actually not as finished as I'd like due to the 2 other programmers being kind of shite, which is being sorted.
 
Wes
2:35 PM
need to invert label with icon for it to work
 
:-B
 
Wes
label <icon>, must be <icon> label :B
 
Wes
or flexbox, display table :B
 
or grid \o/
 
Wes
2:36 PM
grid less support than flex
 
yeah, that's true, tho I really grid's layout mechanism
(especially making me not write too much markup for layout)
 
Wes
you can make grid out of flexbox too :B
originally flexbox supported actual grids, display:-moz-grid, but then they were dropped
@DaveRandom tried another shop, still no 7up :(
need to try in austria lol
 
wait, you guys don't have 7up in Italy?
 
Wes
apparently no
 
meh :B
 
Wes
2:44 PM
we had it for a little while
my guess is that people thought it was some cheap brand and didn't buy it :B
so it disappeared from stores. last time i've seen it, it was like 20 years ago
 
kinda true, there are too many carbonated drink in market rn
 
Wes
200km trip, buys 7up, 200km back home
 
Isn't 7up dead everywhere?
I thought they stopped producing it
 
pretty sure they still sell it around here
 
hmmm
Maybe I am wrong about here too
 
Wes
2:50 PM
i thought the same, but dave said he was drinking one
 
Yeah just checked wikipedia which doesn't mention it being gone either
 
@Wes jsfiddle.net/mot4y64m less markup and css properties for grid whereas flex still requires a huge ass amount of them
 
Don't think I have seen it in a long time at the shop
 
→ 1 message moved to PHP Trash - The Rotating PROS :v
 
2:53 PM
well... still extra css declarations :B
 
Wes
can't express an opinion on grid yet tbh :B i just barely looked at it
i had big hopes on flexbox... but they need to complete it. it's unfinished
it needs cross axis flexibility, and stuff like that
i should propose it
 
I tried using flexbox once. Turned out to be more complex than any programming language I ever used :P
 
Wes
lol, it's bs
you probably read some crap article that tried to explain you the math
you don't need to know the math :B
 
It was bootstrap 4
:P
 
Wes
that's not flexbox. that's poopbox
 
3:08 PM
All I know is that I had the hardest time to make it do what I wanted it to do :)
And had to dick around with weird properties
 
Wes
i am tempted to explain it to you
but then you would become better than me at everything, so no
:B
 
You may do that later
Kinda sickish right now so brain function is even worse than normally
 
Wes
i tried to explain it to tiffany the other day. i doubt i did a good job
 
css is hardly hard to understand
like, fiddling around with it at some point starts making sense
 
What are those content start / end things for?
I think that confused the hell out of me last time
 
3:24 PM
huh?
 
Not sure anymore
:)
It was something like that
 
Wes
@PeeHaa so you start with this:
[[x][y]                                    ]
the outermost pair of brackets is said flex container, x and y are said flex items
when you flex-grow them, you get something like this:
[[x                 ][y                   ]]
right?
 
What if I want 1/4 + 3/4?
 
Wes
so if x is flex-grow:22;
and y is flex-grow:33;
x will fill 2/5 of the empty space, or 22/55
while y will fill 3/5, or 33/55
 
@PeeHaa you'd want to use grid for that, that makes that a lot easier than flex for that particular case
 
3:35 PM
Ooooh
I didn't know you could just give it random numbers
 
Wes
it's just a proportion, can be any number
that however assuming that the intrinsic size of x and y is the same
if you want to change that size, you use flex-basis
otherwise flex-basis is set to auto, which implies intrinsic width/height depending on the flex-direction
[[x][y]                                    ] justify-content:flex-start
[                                    [x][y]] justify-content:flex-end
[                  [x][y]                  ] justify-content:center
[[x]                                    [y]] justify-content:space-between
 
ah
It's just alignment
 
@PeeHaa btw I saw this a while ago: flexboxfroggy.com
 
\o/
 
o/
 
3:41 PM
\o
 
Wes
align-self is for the cross alignment
 
> flex-direction:row;
 
Wes
align-items is something you should not use, it's redundant with align-self
 
My favorite color is knife
Couldn't they just named it vertical?
 
Wes
originally naming was much better
flex-orient:horizontal
flex-pack:space-between
something like that, i don't remember it anymore
but they had to create new rules because old flexbox had to live at the same time of the new one :B
no sorry it was box-orient
 
Wes
why did the salmon cross the road? youtube.com/watch?v=wZt4jJEkhWM
 
:-P
 
'cause he ain't chicken?
 
Wes
:D
 
btw this is one of the coolest thing I've ever seen being done on css codepen.io/thebabydino/pen/eymEOQ
 
Wes
4:02 PM
lol, i've seen better :D
 
meh :B
 
@JoeWatkins Dude you're moving home? Everything okay? What's the hap?
 
/me waves
 
4:24 PM
Not directly related to PHP but a professional PHP developer with some spare time might want to share a way:
0
Q: Automate dir and DB stack creation with WP-CLI

ArcticoolingThis is how I create a database stack and a directory for WordPress in my Ubuntu environment: cat <<-DBSTACK | mysql -u root -p"${dbrootp}" CREATE USER "${domain}"@"localhost" IDENTIFIED BY "${dbuserp}"; CREATE DATABASE "${domain}"; GRANT ALL PRIVILEGES ON ${domain}.* TO "${domain}"@...

 
> Can this code be reduced to say, two lines
why?
 
Because on the one hand it's shorter and faster for review if you didn't touch it for months of years, with less potential to be confusing in times of stress, and on the other hand - WP-CLI is an integral part of nearly every WP dev env so it's not an overkill change.
 
Shorter code is not necessarily easier to review / read and understand under stress
 
Not necessarily, but I feel that in this case it covers what I've described.
 
@Arcticooling answer is: NO
and now, when this pressing problem has been resolved, you can go try to actually learn programming
 
4:35 PM
I've already learned some programming and keep learning, but it has nothing to do with my suggestion here.
 
what exactly was the reason to flag my two previous sentences?
 
@PeeHaa btw developer.mozilla.org/en-US/docs/Web/CSS/… this mozilla guide is pretty nice as well
 
Anonymous
4:58 PM
@MadaraUchiha @SaitamaSama just ping me when you are ready
 
will do ;)
 
Good mornings
 
@FélixGagnon-Grenier o/
 
5:53 PM
@SaitamaSama @samayo I'm set.
 
gimme ~10 +/- 5 minutes
 
Anonymous
I'm already in
 
@SaitamaSama Ping me when you're in, we'll make a group
 
Anonymous
EFI will not be happy about this
 
6:01 PM
Hey guys. Quick question. Im working right now in a proyect in which I have to create Word documents using PHP. It is actually really simple. I just have to add some text, some margins and some spacing, and that is it. I already saw PHPWord, but that library seem to much for my simple proyect. Do you now another library that I can use?
 
Just use phpword
 
@MadaraUchiha ping
 
6:43 PM
nite all,have a great Sunday o/
 
Anonymous
@SaitamaSama sorry i had some lags
 
Anonymous
Got my ass beaten up
 
I'm taking an online humanities class and have to write a short response about Hamlet's indecision. Usually I love writing brief responses but in this case I'm actually struggling to keep it short.
He's indecisive for a large number of reasons.
Bleh. Back to writing...
 
Anonymous
6:59 PM
@LeviMorrison is that for school or just because you wanted to learn
 
@samayo Former.
 
!!lxr array_change_key_case
 
[ /ext/standard/array.c#4402 ] PHP_FUNCTION(array_change_key_case)
 
7:21 PM
Sorry, @MadaraUchiha @samayo my pc apparently isn't starting up anymore....
 
hmm, would be useful if that function had a binary-uppercase mode
what I mean is, a mode where it follows PHP's internal C-locale-esque only-understands-ASCII uppercasing/lowercasing rules that are used for case-insensitive identifiers. “binary” is a PHPism here, the Zend function for this has that in the name
ofc you can just set the locale to C tho
 
7:49 PM
Anybody know a good place to discuss job woes or get career advice?
 
At your new job :P
 
roflcopter
 
8:08 PM
@PeeHaa that can be frowned upon
 
@Tiffany So is stealing clients, buuuuut
:P
Although that is more a sales dept thing to do
 
 
2 hours later…
Wes
9:57 PM
haio
 
ciao
 
10:22 PM
ohio
 
Wes
yoyo
youtube.com/watch?v=wyd-yRnsOdo @FélixGagnon-Grenier
2
 
hahahah
 
Wes
and then it goes, "why did you take his legs?"
:B
 
:D
I have seen so little of newish family guys
 
Wes
10:32 PM
i've bought some new serious espresso coffee
it's ridiculously good :B
it must have some shitty chemicals in it, because it come out of the machine like a foam
but damn, so good
i need to watch like 10 years of simpsons, and 20 years of family guy
i'm just a little behind
 
Simpsons I seen most I guess
But it got really bad at the end
 
Wes
i've seen some nice clips recently
we can't have nice things
everything sux
 
Wes
10:50 PM
i think the last simpsons season i've saw was like 17th
 
Wes
11:10 PM
almost no coverage for the attack in afg
if the same thing happened in europe there would be 48 hours of uninterrupted coverage
seems something pretty major
 
11:23 PM
@PeeHaa I think this is more your sort of thing, re. conversation about non-alcoholic beer
 
!!urban daily fail
 
[ Daily Fail ] A thread posted by a [troll] on a message board that is anti-minority with the sole source being a link to a story in the scaremongering rag the Daily Mail (or the Daily Express or The Sun) that invariably turns out to be completely innocent and harmless.
 
speaking as someone with ADHD, I can see the reasoning behind it
outsider looking at it, yes it looks like torture
 
11:34 PM
having something to focus on makes it easier to concentrate on a task
I fidget...a lot
I'm not going to explain it well without rambling :P
if the kids do it voluntarily, then what's the problem?
 
the problem is that it is apparently the modern equivalent of a slow news week and people have run out of things to be angry about
 
it's one of those "don't be offended for me..."
 
not that there actually aren't any things to be angry about, of course, but those things require both ownership of brain cells and the knowledge of how to apply them to stuff
 
if the schools were forcing kids into them, then yeah, there's a problem
 
my gut feeling is that it's unlikely to be the case in general. The problem with that is that there will be some dick who is using it as a punishment, I'm sure they will be promptly tracked down and paraded about as evidence that the outrage is justified
 
11:43 PM
yeah
 
Wes
i doubt it's ok for kids back to carry weight
 
Obviously though, I have no more information about this than anyone else
 
@Wes but they're doing it for 30 minutes at a time
 
Wes
adoubleshotofrecovery.com/wp-content/uploads/2015/04/… they should use this, at least it won't hurt the kid
:B
 
@Wes I'm pretty certain I have owned coats that weigh >6kg
 
11:43 PM
and there's probably a limit on how many times the vests are used
 
I have definitely owned jumpers that weigh more than 1.2kg
 
@Wes it's the fact that the vest surrounds the body and gives something that the body can feel that would let me focus my distracting thoughts on, so that the rest of my brain can focus on what I need to
 
and all the books and crap that I was forced to carry around at school were probably more in the region of 20-30kg on some days
 
Wes
20kg is a lot
 
yes, yes it is
 
11:45 PM
I don't know how kids go to middle school/high school without a locker
 
when I was 16 my school bag for an average day was like a torture implement
 
Wes
were you frequenting WWE school, or smt
 
textbooks for several courses
 
yeh that's it, it was all just paper
but, like, a couple of medium sized deciduous forests' worth of paper
 
few years after I was in middle school, the school banned students from going to their locker between classes... so kids were basically carrying all of their textbooks in their backpack
 
11:47 PM
^
my school was fucking arcane though
still, 1.2kg when evenly distributed around you body is not actually a lot of weight, and as long as it is voluntary people can do what they like
> whose nine-year-old son Frederick has worn a 2kg
seems like a reasonable ratio, and again, voluntary
 
celsius is the only metric unit I can convert to something relatable
 
> But many psychiatrists are sceptical about the vests’ use, particularly without knowing the long-term effect of them.
yes, because that's how science works
 
...it is
the long term effects of ritalin are known
 
they are right to be skeptical, and it's not difficult to find out the long term effects of stuff
 
it takes time...
unless there's some magic way that I'm not aware of that lets them accelerate the passage of time
 
11:52 PM
@Tiffany "your child is hyperactive, would you like to try some slightly heavier clothes, or shall we just skip straight to the part where we give them speed?"
 
even if they were to run simulations to show physiological changes, they can't account for psychological changes
I'd rather take vyvanse than drink coffee every day
vyvanse works much better
coffee has withdrawal effects, vyvanse doesn't
 
Well, I've had me fill of being angry at the internet being angry for the day, I'm going to bed
nn o/
 
:P
goodnight
however, in my situation, I wouldn't be able to use the vest in a consistent fashion like I do with my "legal speed" ... where vyvanse lasts pretty much the entire work day, the feelings of the vest would wear off after 20-30 minutes because my body would have adjusted to the weight difference
 

« first day (2653 days earlier)      last day (2289 days later) »