« first day (2377 days earlier)      last day (2570 days later) » 

12:00 PM
Leigh is a secret Spanish?
 
@DNC no. You need to describe what users will do with that API client
 
Just lazy I think
@DNC Does different people have access to different resources? Do you need to revoke access? etc...
ugh damnit
soo many calls today :(
 
DNC
@PeeHaa Yes different people have access to different resources. I don't need to revoke access.
 
@PeeHaa loan shark? drug dealer?
 
worse
clients
 
12:02 PM
:O
 
@PeeHaa the joy of freelancing
 
Not for long anymore though
brb for real now. Need to try to listen what person on the phone is actually saying :P
 
@tereško i am trying to make an application in laravel where there will be different hotel owners and employees for each hotel...the owner/owners will be able to set hotel admins who will further create employees...and there will be one super admin who will create owners and set permissions for different modules in the application...one login for all users
i can't figure out how to structure all these different types/hierarchy of users...can you please give some insight on how to tackle this problem
 
why are you pinging me?
 
12:06 PM
because i have learnt a lot from your answers
 
i have
 
then you have to ask more precise question
 
i have solved users and permissions by doing many-many relationship using a pivot table
 
that's not how I would approach this
I would create a role/group tree (using closure table on the SQL side) and then assign each user in one or more of those groups
basically, @Bonzo, you should be assigning the permissions to roles and not users
 
12:13 PM
@tereško Thanks for the resource
^^
 
@Sean I think it was the accompanying material for stackoverflow.com/a/9685039/727208 //cc @Bonzo
 
2 users having the same role can have different permissions
yes that answer!! :)
 
Anonymous
 
@Bonzo two users can share a role but one of them can have two roles
@JayIsTooCommon not sure how is it "inclusive", when it excludes about half of humans in general
 
Anonymous
^
 
12:22 PM
@JayIsTooCommon it seems like someone has been playing intersectional buzzword bingo there
 
Anonymous
Stop using big words like 'bingo'
 
I have to watch Inglorious Bastard some time soon
 
ah i just want to ask that question
 
12:29 PM
\o
 
o/
 
\o
 
@FélixGagnon-Grenier *basterds
 
Wes
afternoons
 
12:47 PM
o/
 
@Jimbo how's Majorca?
 
@DejanMarjanovic Brilliant :) Good bunch of people here, good career prospects too :-)
 
Awesome :-) :beer:
 
@Jimbo I think you might need to update your SO avatar to reflect your tan.
 
@DejanMarjanovic hehe indeed.
 
12:50 PM
@Danack he might loose his patriarchal cis white privilege
 
lol!
 
Also @Jimbo - so who says selenium with Behat is not reliable?
 
Anonymous
@tereško hahah
 
Wes
use My\{C1, C2, C3, C4};
use A\B\{C1, C2, C3, C4} as PrefixAllTheThings*; // group prefix/suffix
new C1(); // My\C1
new PrefixAllTheThingsC3(); // A\B\C3
 
@tereško oh_snap.gif
 
12:52 PM
@JayIsTooCommon I hear they are sending out the privilege money in the mail
 
@Danack It's not Behat or the driver for mink, it's a ballache to work with and I had to work around the problems with elements not being 'visible' (even though they were) and stuff like that (that happens IRL). I saw someone else pointed out they had the same problems, and Sahi was the solution
 
Wes
use My\{C1, C2, C3, C4};
use A\B\{C1, C2, C3, C4} as *Suffix;
new C1(); // My\C1
new C3Suffix(); // A\B\C3
 
@Wes is it just me or this is starting to look more and more like Perl
 
Wes
lol
use A\B\{C1, C2, C3} as LOL_*;
equivalent to
use A\B\{C1 as LOL_C1, C2 as LOL_C2, C3 as LOL_C3}
in case it wasn't clear :B
 
@Wes shut up
everyone else, afternoon ...
 
Wes
12:57 PM
ahahaha
 
Wes
imo that is more useful than group uses
i thought i would use group uses, then i realized that i prefer maintaining the long version than the groups
 
Anonymous
yo jo
 
Wes
delete/add line is simpler than indent, add name add {} and everything
 
12:58 PM
o/
 
@Wes use A\B\{C1, C2, C3} as s/(.+)(\d)/\1infix\2/;
 
stop it, I've got a headache already ...
 
Wes
2 mins ago, by Joe Watkins
@Wes shut up
 
@Jimbo huh. Not seen stuff like that, though I've only used Behat lightly.
 
@PaulCrovella I like it. Don't shut up.
 
1:14 PM
public function testMethod(){ ;;; //code } . Why doesn't those semicolons after opening curly brace give me an error?
 
Anonymous
@BalrajAllam empty statements are valid syntax
 
@JayIsTooCommon Thanks!! Got it.
 
1:37 PM
PHP.net: the colors of the buttons are of off, as well as the logo color, but what do you guys think of the direction? i.stack.imgur.com/R2NvV.png
/exclude Wes
 
I think you should go to PC settings to activate Windows
 
Wes
@LeviMorrison :(
 
@PaulCrovella It's honestly a Windows bug.
This is genuine Windows shrug.
We have licenses through work.
If I go to Activate Windows it shows my current product key.
 
I like the download buttons, not so much the hello world above it. and i prefer the current header
 
With "Windows can't activate right now"
 
1:42 PM
@PeeHaa that is pretty niche humor. I approve.
 
ThW
htmlentities?
 
I used htmlentities instead of htmlspecialchars because it is shorter :D
@PaulCrovella What sort of programming language doesn't have a snippet of itself on its homepage?
 
ThW
@LeviMorrison most of them
 
@ThW Only one I know of is Java.
 
1:46 PM
Heh, they used to.
But also fitting since they are a JVM language ^_^
 
So a few.
Now post all the ones you didn't
Ruby, Python, Haskell, Racket, etc
 
@FélixGagnon-Grenier :-)
 
It's definitely not most.
 
1:48 PM
@LeviMorrison most or not, I still don't care for it
 
@Leigh yay! :)
which one is it?
 
Wes
@LeviMorrison i wouldn't use that function in homepage, you know with its thirty-four parameters, each of seventy-eight parameters mask :B
by the way, can someone please propose a simpler alternative to that?
like escape_html5($string) escape_xml($string) one parameter only, possibly
i mean, i'm like 15 years into php and i still struggle remembering how that thing works. i just copy the one i've used in the last project and i hope nothing goes wrong :B
 
I knew I was smart and could figure out algorithm problems, I just need a little nudge.
 
Anonymous
escape_yourface(@Wes)
5
 
I was half-tempted to write "smert"
figured out a bean counting problem without using a hint. :D
 
1:59 PM
@tereško thank you for helping!!at first i inserted the hotel_id of the person who is creating the employee to the employee being created by him(an employee belongs to a hotel) but what happens when the owner(who can own multiple hotels) is creating an employee....he should see a drop down of his owned hotels, right?so belongsTo won't do.
so for different roles of user creating an user there should be a different view and a controller...but all interacting with the same user model with a many-many relationship with hotels or a hasThroughMany relation- a hotel has many users through roles?I am sorry for pinging and writing such big sentences but i haven't figured it out yet
 
@PaulCrovella yeah, that's how I feel. I'm happy I figured out the exercises in this chapter, but a bit frustrated that I struggle with algorithm problems on freecodecamp.
it's a :D :| reaction
 
@Bonzo no different roles should get different results, when retrieving data about "visible hotels" and result of "many" or "single" should cause some changes in templates
also, I have no idea what "hasThroughMany" does, since I dont use active records
stop trying to hardcode "hotel" in the user profile
 
2:14 PM
i have to relate a employee to a hotel...but there are 2 kinds of users who can create employees...the owner who can place the employee in any one of his hotels and a hotel admin who will create employees for the same hotel he belongs to
 
I fail to see the problem
 
fun fact @shadowhand, this is still used gist.github.com/shadowhand/78051 :-D
 
@DejanMarjanovic oh god
that looks like codeigniter
 
looks like kohana 2.x-dev
 
... that too
depends on what ORM global contains
 
2:20 PM
well the ORM is crap, at least the v2
I mean in Kohana 2
 
@tereško you are way too familiar with codeigniter's shape. Who are you and what have you done to the real @tereško?
 
@FélixGagnon-Grenier I worked a year with CodeIgniter
I have also worked with Yii and Kohana
@DejanMarjanovic there is no "at least" required in that statement ... or even context
 
wat, you mean that when you hate on the people that ask question about these, you actually know wth you talkin 'bout?
 
did you really think, that I talked shit about frameworks and their users, just because it's "edgy" .. or something?
 
do you really want me to answer that?
 
2:27 PM
probably not
 
I will assume that your statement was intended to be sarcasm
 
I'd be grateful. that being said, no, I did not think you did that just because "it's edgy", but more because you know what oop stuff should look like. which in turn implied at least a minimal knowledge of said frameworks.
 
@tereško Well aforementioned human is the creator of Kohana which was at the moment kewl, unfortunately I had to work with butchered version which was not cool :-)
 
Soooooooooooooooooooooooooooooo
class Customer extends Model implements ICustomerAsset {
yes...
abstract class Model extends \Eloquent
cc @Danack ^
 
2:32 PM
stop the PAIN\
 
@PeeHaa abstract final class Model extends \Eloquent FIFY :-D
 
@Wes if it's not a statement or expression, it's something special that can't occur in a normal statement or expression context
E.g. a parameter. You can't just put a parameter anywhere you would normally be able to put a statement
Though tbh a lot of things that are not general statements are still implemented as statements
 
Wes
for example?
 
e.g. there is a UseUse node
which is an element in a Use list
It really ought to be called UseItem and be outside the statement hierarchy
And there's a couple more like that
Maybe one day I'll refactor it :P
 
Wes
2:39 PM
considered the complexity it's already incredible. i mean, i've encountered files of several thousands of lines long :B
 
It gets even better \o/
They re-use an instance (not a class, an instance) by adding a ::reset() method to clear the instance properties
This is genius
 
Thinking about github.com/xdebug/xdebug/commit/… ... would it not make sense to deprecate php_error() usage in extensions for PHP 7.2 and disallow it for PHP 8?
 
@SebastianBergmann php_error is also for warnings and notices
 
2:54 PM
Those should die, too ;-)
What I want is ... now that core no longer raises fatal errors extensions should not either.
 
core still raises fatal errors ^^
just not so many
 
I have never even heard about such a function
 
@NikiC I know. I just try to ignore the fact :-)
Looks like my plane is ready for boarding. Gotta go.
 
Anonymous
@PeeHaa what a great idea
 
3:05 PM
SO great
 
Anonymous
@PeeHaa will do import fuckery soon, just getting over the new job thing.
 
Wes
@PeeHaa you are a bad artisan
 
is clion any good?
 
Wes
fuck model integrity, let's empty all the things. i do what i want
wondering about that too ekin
(still have to try vs code though)
 
@JayIsTooCommon You mean you are getting drunk?
@Wes I'm a terrible artisan
 
Anonymous
3:09 PM
i haven't had a pint in 3 weeks... :(
 
my condolences
 
@JayIsTooCommon What's wrong?
 
Wes
@PeeHaa
"authors": [
    {
        "name": "Wes",
        "role": "Smith"
    }
],
 
"role": "Disco Bandit"
 
What are you Smithening?
 
Wes
3:11 PM
@PeeHaa forged php
 
boom
 
Anonymous
@PeeHaa ikr
 
Anonymous
I need a new game to play
 
@JayIsTooCommon FOUnd anything yet?
 
Wes
${"lol@@@@"} = 1;
$c = function() use(${"lol@@@@"}){};
this doesn't work (sorry)
 
3:14 PM
morning
 
Wes
for some reason i've expected it to work
\o kel
 
Anonymous
3:30 PM
@PeeHaa I have a craving for Minecraft... but I'm not 5. Still looking
 
@JayIsTooCommon I've played Ragnarok Online for years
 
@bwoebi @kelunik So fixing the timer issue is more complicated than I thought. libev and libuv appear to account for time between loop handle creation and calling run() with timers.
 
Anonymous
@FlorianMargaine well i opened it and just saw tits everywhere so i'll look when home :P
 
Wes
are you guys playing together at something online? :B
 
Anonymous
we were playing rust for a while, but it's a bit frustrating
 
Anonymous
3:35 PM
now looking for a new game
 
Universe Sandbox
 
@JayIsTooCommon I got tired of Ark, not really to get stomped by 12 year olds again yet
picked up GTA 5 cheap, so finally playing that
 
Wes
if you have a game that doesn't require 20 years of training (e.g. not like CS) i'll play too @JayIsTooCommon
 
You can get Slime Rancher on Humble Bundle at the moment :D
 
Anonymous
@Wes /cc @PeeHaa
 
Anonymous
3:37 PM
@littlepootis that looks pretty cool /bcc @PeeHaa
 
Wes
back in the day we used to play robocraft. it was good fun. does that still exist? :B
 
@Leigh try Battle Brothers :D
 
Oh, also Spintires on bundle, that was kinda fun
 
I think y'all should try rocket league. Good game to blame everything on @PeeHaa
 
Wes
it was completely free + premium
 
3:39 PM
I have Rocket League \o/
Played Robocraft for a bit too, got to the point where it wasn't fun... people in fliers sniping all the time
bigger boys ruining the fun as always
 
Wes
i actually want to play robocraft now :|
check it out @JayIsTooCommon
 
@Trowski What's your proposed solution?
 
Wes
!!annoy JayIsTooCommon
 
@JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon @JayIsTooCommon hi
 
@kelunik I just pushed the timer-fix branch, but I'm not sure if that's really the right solution because it might have different behaviors between NativeDriver and Ev/UvDriver.
@kelunik What might be simpler is recording the time that NativeDriver is created and basing timeouts on that for the first round of activations.
 
4:00 PM
@Trowski Why does the creation time of the driver matter?
 
@kelunik Because that's how libuv and libev calculate the timout for initial timers.
If I create an EvLoop instance, then sleep for 4 seconds and give it a timer with a 5 second timeout, it will execute after only 1 second.
 
Don't you just hate it when people start spamming a question in chat rooms about 5 minutes after asking it? Anyway:
0
Q: ElasticSearch snapshot leaving snapshot indexes

DanackPlease could someone explain what 'snapshot' indexes are, and what should be done to make my ES cluster be green again? What I've been doing to encounter these is this: I'm creating a snapshot of an old ElasticSearch cluster that is still running 1.3.4. I've setup a file system repository and ...

 
@Trowski I guess we just have to call uv_update_time before creating timer watchers.
 
@kelunik Or just let it go since that is the behavior I'm trying to emulate in NativeDriver and EventDriver.
 
I think it should be timer creation relative, not driver creation relative.
 
4:13 PM
@kelunik yes, but why would you call uv_update_time() then?
 
@bwoebi To update the current "now" of the loop, which is the creation date otherwise.
 
thanks … I mean, why do you want to update it?
 
it's updated upon each tick anyway
 
@bwoebi Because the time is creation relative instead of driver creation relative then.
@bwoebi It's fine for running loops, but not for non-running loops.
 
4:15 PM
Open question for the engine nerds: If I held an online Bug Hunt (rando folks picking up tasks from bugs.php.net, getting help from experts, and putting up PRs), who'd be down for helping by being experts to point at where to look, what might need fixing, and merging the PRs?
5
And when, in the next couple months, sounds good to you?
 
Wes
$comment = new Comment("LOL");
$method->stmts[] = $comment; @NikiC i can't do that, right?
 
@bwoebi @kelunik A simpler fix emulating the behavior of libev and libuv in NativeDriver and EventDriver: timer-offset
 
Wes
i'm getting:
Call to undefined method PhpParser\Comment::getAttribute() in ...PhpParser\PrettyPrinterAbstract.php:223
 
That branch should satisfy React and at least offer consistency between driver implementations.
 
Wes
Comment is phpparser\comment and $method is ClassMethod
 
4:19 PM
Comments aren't really expressions/statements
 
Wes
yeah i think i can't do that, as it's not a node nor a stmt...
 
Anonymous
@PaulCrovella awesome game.. on console :D
 
Anonymous
@Wes what is it?
 
Wes
@JayIsTooCommon lego ish. you build robots with bricks etc and you use them in battles
 
Anonymous
ooOOOo
 
Wes
4:23 PM
both the building part and the battles were cool. it's a super mario kart kind of game.. not a lot of skills required, but it's fun :B
 
Anonymous
I want a new game like command and conquer
 
Anonymous
strategic defend / attack
 
@Sara you mean random extension bugs?
I don't think people will be able to solve our very complex engine bugs
 
I've only played Robocraft for a few hours. I remember building ridiculously long or wide vehicles that are made of guns, tyres and nothing else.
 
4:32 PM
@Sara apropos of nothing, what is really bugging me about the ctx option approach to labelling persistent sockets is the fact that timeout arg exists. Something like restoring from a persistent socket feels like it should be an arg on its own rather that a ctx option, but I guess this is entirely academic since the API is what it is.
 
I do think that for use cases like those redis clients that were linked in the bug report that they aren't truly useful without a managed pool, but I've concluded it needs a completely new API, can't sanely bolt it on via ctx options I don't think because you need to be able to query the pool for it's status
 
@Trowski Why does it set the timestamp to 0 at the end?
 
@kelunik The creation timestamp is only used on the first tick.
Another name for that property might be appropriate. ;-)
 
4:35 PM
@Trowski Why? Uv uses the same timestamp for each tick.
 
@kelunik Internally it's updating it's concept of "now" each tick.
 
@DaveRandom Anything on bugs.php.net, including doc bugs even.
 
@Wes you can't, because comments are not nodes
 
@bwoebi But engine nerds are well placed for any of those.
 
you need to associate them with a node
 
4:38 PM
@kelunik So as I understand it, libuv uses the "now" that was set when the loop was created on the first tick, but then updates it each tick.
 
Wes
yeah figured it out how to do it @NikiC :P with setdoccomment
 
@Sara I think you meant to hit Bob with that, but I would be up for helping people with doc bugs. I suck at docbook but I understand(ish) the doc VCS and build systems.
 
@DaveRandom Well, adding an arg is an option, but what I like about putting it on the ctx is that it threads down. For example: file_get_contents("http://...", $ctx); That ctx passes down to the ubderlying transport open for tcp/ssl
 
Robocraft downloads in 2 minutes.
 
@DaveRandom Yeah, that was for @bwoebi :D
 
4:43 PM
@Sara yes, although we don't have anything like a managed persistent sockets layer for application layer protocols underlying sockets right now afaik. Still I agree it could be useful in other places that deal with stream contexts. I think I would be happier about it if STREAM_CLIENT_PERSISTENT were deprecated in favour of a context option as well (soft deprecated such that supplying the flag sets the ctx option)
it feels super weird to specify persistence behaviour in two places
Doing it with HTTP is a real can of worms, there are still bugs in the keep-alive impl in artax, and that is, frankly, a much better HTTP client impl than the built in stream wrapper
 
@Trowski yes
 
Is using the Command pattern to get transnational behavior while consuming a REST API a proper use case for the pattern?
*transactional
 
Wes
5:03 PM
i liked transnational more :P
 
@Trowski yes.
 
Wes
best antispam filter ever
100% of filtering success, literally
 
@Sara Ultimately ... some things are rather rewritten than fixed :-D
 
5:19 PM
eveninn room
 
5:34 PM
!!dad
 
What is the one-handed guy doing in the mall? He is looking for a second hand shop!
 
@Jeeves nice atleat you got something new
 
@Linus Sure, I'll be glad to learn it.
 
:)
!!learn
!!dad learn function/Why was the function sad after a successful first call?/ because He didn’t get a callback.
 
@Linus Ha ha ha! Brilliant! I'll save that one about function for later!
 
5:46 PM
!!dad learn elevators / I farted in an elevator the other day / It was wrong on so many levels
 
@DaveRandom Ha ha ha! Brilliant! I'll save that one about elevators for later!
 
:P
 
PHP.net Live and WIP
 
6:03 PM
@tereško heh. so after not being so understanding of you having to work with angular 1, guess what the new legacy project we work on for the next three months was written in?
 
VB6
 
gods be good
only angular1 ;)
 
I maintain a VB6 app. Luckily I no longer have to do VBS, but VB6 is still fucking retarded, even when you take into account the enormous drag factor of VB in general.
Also "maintain" isn't really true, I just occasionally fix bugs that exist because there is literally no error handling at all.
 
that's perfect. I think that's the only error free code :D
 
my world got darker today
 
6:11 PM
@JoeWatkins cloudy weather?
 
?
 
@NikiC I have to work with a laravel app
 
Wes
noooooooooooooooooooooooooooooo
for how long joe
 
it's a production app, have to review the codebase to bring it up to standard, then on an ongoing basis review all commits - they can't be merged before I've reviewed them ...
 
Wes
how can one that hates laravel even do that? :B
 
6:16 PM
@JoeWatkins "laravel app" ... "bring up to standard"
 
Wes
... "delete laravel"
 
yeah, I know ...
 
mornin
 
Wes
\o
 
Anonymous
@FélixGagnon-Grenier same :) currently working on a system that has a mix of PHPMaker, Laravel and Angular 1. It's so much fun.
 
6:19 PM
so dark
 
lol. it's the confessions room11 time
 
o/ @Wes
OMG it's the end of the world, Larevil and Production App in one sentence, Holly Molly
@bwoebi Are those complex engine bugs listed somewhere?
 
@JoeWatkins Well... g'luck mate.
 
thanks, I will need much of that ...
 
6:47 PM
guys if anyone can enlighten me whats goin on in this ......unable to call the error.php page .......if ( $result->num_rows > 0 ) {
$_SESSION['message'] = 'User with this email already exists!';
header("location:error.php");
}
 
require() REALLY should throw exceptions – #74475
 
7:09 PM
declare(strict_types=1,exceptions_ffs=1);
@Smple_V exit; after setting the location header. Also, this is pedantic, but the 'L' in 'Location' should be capitalized.
header("Location: error.php");
exit;
 
exceptions_ffs wat
 
@brzuchal would you prefer use_exceptions_goddammit=1
 
What is this, is it real flag?
oh, no it isn't
@Dereleased I was suprised, I thought I don't know something :)
 
@Dereleased myMan thx!! cant believe had to wait an hr to get to it
 
@brzuchal I think we still haven't fixed all bugs related to IS_INDIRECT pointers into arrays.
 
7:41 PM
@Dereleased why the uppercase L?
@brzuchal I hope for you there are many things you don't know...
 
I thought I don't know PHP, but luckilly I know some
 
today has not been a good day ...
I'm looking at code in a directory named Facades
 
Wes
how can "facades" be a directory? what's that @JoeWatkins
 
5 hours ago, by PeeHaa
class Customer extends Model implements ICustomerAsset {
 
Wes
mkdir Facades/ coz i'm gonna need moar redundant types, MOAR
 
7:52 PM
@Wes "code in a directory named ..." ie app/Facades/MyAbominableFacade.php
@Wes I'm not sorry for the multi pings
 
Wes
ahahaha
 
@Wes ...
 
Wes
lol
i heard laravel's facades aren't actually facades,but what are them then?
 
a mistake ...
as I understand it, they are a kind of facade ...
 
@FlorianMargaine to promote my archaic worldview
 
7:55 PM
@FélixGagnon-Grenier wooooounderful
there also probably the additional excrement excitement of having all those ... emm ... professional jquery developer in the team
 

« first day (2377 days earlier)      last day (2570 days later) »