« first day (2082 days earlier)      last day (2859 days later) » 

3:11 AM
good morning
 
prove it
 
Gon
3:35 AM
Moin
 
Gon
o/
 
Gon
4:25 AM
 
 
1 hour later…
5:28 AM
> CodeIgniter, though unarguably one of the best PHP frameworks to be developed, had a problem of not properly storing sessions
5
 
5:49 AM
Hi guys, I wonder whether there has been any discussion into adding a profiler into phpdbg? I have been looking at existing debugging solutions for PHP and to me, phpdbg seems to be the best, however because it doesn't implement a profiler, I am having to look to alternate tools for that specifically.
Ultimately, I would like to have something that will profile each unit test I run so I may evaluate whether I need to fix certain code paths. I have been having a look into the PHP CodeCoverage project and think it would be really cool if something similar could be done with code profiling, in
 
morning
 
morning
 
@Shane What's wrong with xdebug's profiler?
 
@Shane no plan to add profiling, it's a different tool, one that would kill the performance of phpdbg ...
moin
tideways is in pretty good shape for php7 @Shane
 
6:07 AM
mornin Joe,Gordon,SergeyTelshevsky
 
posted on June 28, 2016

New Cyanide and Happiness Comic

 
morning
 
ThW
@Shane why do you want to profile your unit tests (and not the real execution)?
 
Gon
6:37 AM
o/
 
'nin
 
@Sherif it works, sure. I was imagining something with a userland API however as I described above, and phpdbg seems a lot more logical for debugging, which is what I had been using xdebug for before, so I was wondering whether there were plans for this feature too.
@Gordon @JoeWatkins thanks for the suggestion
 
Hi All
 
@JoeWatkins So is it possible to remove MINIT/RINIT completely and still get the interpreter to execute code? Has anyone ever tried this before that you know of?
 
Is it bad practise to keep the values in comma separated fashion in database table?
 
6:52 AM
@Mr_Green Yes, it violates 1NF
 
ok thanks
 
@Mr_Green do you know what 1NF is?
 
@Sherif I think not, you could modify the parts of the core that require minit/rinit, but you would still crash the interpreter when you execute an internal function in an extension that requires globals
 
@JoeWatkins hmm... I'm trying to see if I can create a proof of concept for executing PHP code as a lamda (remove state entirely from execution - so no relying on extensions at all).
But it seems this copying of symbol tables and context switching is quite problematic to strip out
 
yeah I would guess it is ...
 
6:57 AM
A dirty trick I tried was to get the byte code and strip away state-dependent ops from there
 
stateless interpreter seems like a contradiction in terms, doesn't it ?
less I understand what you mean by stateless incorrectly
 
@JoeWatkins I suppose it does :)
 
yeah it really does ...
:)
 
The idea is to execute PHP code as though it were a function
It's basically like an eval.
 
I dunno the words to describe that, but I'm a little confused
in one sense, that's already how all code is executed
it is some kind of sandboxing you want ?
 
7:02 AM
Yes, but the idea of sandboxing is centered around stripping away global state altogether.
i.e. your entire script is just one big function.
 
not stripping away, closing over
 
serverless php?
 
yes
 
I have no idea what serverless means
 
What is Serverless? http://martinfowler.com/articles/serverless.html
 
7:04 AM
@JoeWatkins You ever heard of AWS lambda?
 
Well that article @Gordon pointed out is actually a good explanation of the architecture I'm referring to.
 
I get it
the solution is probably not modifying php
it's probably a protocol on top, if I understand correctly
 
morning
 
in what area is this kind of thing used ?
 
7:12 AM
@JoeWatkins immutable infrastructure mostly
Imagine use cases like a codepad as an example
 
stateless in the deployment unit sense, as written here, doesn't really mean stateless as I understood it to mean ...
the function can have state, but the function as a service is stateless
so you don't need to strip symbols that implicitly require state, you just need to cleanup after execution properly ... no problem ...
gotta go afk because I'm a taxi service, lata
 
moin
 
Anonymous
7:41 AM
@Gordon I still don't get it.
 
Anonymous
It seems like an AWS with some fancy API.
 
@Gordon first level normalization
know theory but implementing for first time
 
@Mr_Green good. just wanted to make sure you know what he's talking about :) please continue.
@samayo the main difference is that faas is ephemeral. you can think of it as /some_func triggering a docker run -it some_func. this will start the container, execute the function in it, and then the container is gone again.
 
7:59 AM
@Gordon Good you understand docker. I might bother you about how to start, run something on it and get result from it in due time
 
@PeeHaa that's actually what I am wondering, too in the context of serverless. it sounds like a huge waste of spawning time. kinda like using fpm with the ondemand process manager.
 
@Gordon docker run --rm, or the container is remaining after that
@Gordon sounds like you're talking about socket activation?
 
@Gordon I (think I) need it to sanely test different php versions / configs
 
@FlorianMargaine no, just trying to understand that new "serverless" buzzword
 
I don't follow tech like that when they make up new words for existing technology
 
8:04 AM
@PeeHaa that's actually a good use for docker containers. has nothing to do with serverless, though
 
@Gordon I know. It wasn't about serverless. It was about my need and finding somebody we can help me :P
 
@PeeHaa there is an official php repo at dockerhub which gives you a number of different php versions
 
See. You're useful already!
tnx
 
Bad gateway D:
 
yay! I am useful \o/
 
8:07 AM
No 7-nginx?
 
Gon
I have this .htaccess -
which works fine in local, but not in the server...
 
Wes
morning PO PO PO PO PO PO PO
 
Gon
@Wes 'n
any help would be appreciated on how to solve dat ^! Cheers!
 
@Gon You reload Apache after editing that?
@Gon Also, do you have AllowOverride set? (Defaults to none on most Apache installs).
@Gon As the docs say: "It may be used in .htaccess files if AllowOverride is set to FileInfo."
 
Gon
k, lemme check!
 
8:11 AM
(or the All wildcard should work as well)
 
@Sean that would be against the docker philosophy. you'd get another container running nginx and then link them via docker compose
 
@Gordon Makes sense, docker is very, very new to me, I know very little :p
 
morning
 
Mornin'!
 
@Sean but you can also use hub.docker.com/r/richarvey/nginx-php-fpm for convenience. its not "correct" but it works
 
Gon
8:14 AM
yep, the AllowOverride All thing worked! Thanks a lot @Oldskool!
 
@Gon Glad to hear it. You're welcome.
 
Morning
Got a simple Question. I want to SetUp a Server for Web Development (Creating Homepage, and Database and so on):

Which System do u prefere for the Server and why ? Not sure if i should use a Windows Server or an Linux/Unix Server..
 
@tereško tl;dw?
@Traxstar linux because it's tried and tested, doesnt require a license and is readily available at hosters for cheap
 
@Gordon sounds logic. and if u got acces to the licenses for windows for free and legal and got a server by ur own ?
 
8:24 AM
@Traxstar no. imo, the only reason to use a windows server is when you want to run a MS stack, e.g. when your application runs on .NET and you want to use other MS tech, like MS SQL or something
 
@Gordon Okay, thank you ! That is very helpful :) . Is there a Special Linux Server Distro that make sense to use for Web Development or just pick the one i like the most ?
 
@Gordon the "real word" in matrix most likely was another matrix
 
@Traxstar I'd go with Ubuntu, but that's just personal opinion
@tereško ah, inception.
 
@Gordon I was aiming more along the lines of "13th floor"
 
@tereško I remember I liked it, but cannot remember the plot. too long ago.
!!imdb 13th floor
 
8:28 AM
 
@Gordon do i need some other software on my server itself aber picking a distro ? im completly new to this part...
 
@Traxstar well, if you want to serve a website connected to some databases, you will likely install a webserver and a database. and php I guess.
 
Anonymous
... took a while but I agree with you @tereško, Cake is an utter ball bag.
 
Wes
drank too much beer yesterday
 
8:42 AM
morning
 
@Gordon one of those movies you shouldn't watch again in 2016 or you will regret it :P
 
@Gordon err, you need to serve the static files in php containers
so you usually need nginx
 
@SergeyTelshevsky I still feel guilty for partially enjoying Meet the Spartans two days ago
 
@FlorianMargaine umm, why would I need to serve static files from an fpm container?
 
8:51 AM
@Buffalo Don't just randomly invite people to a private chat without asking first, please.
 
@Oldskool yup
 
@Gordon how do you serve your images?
you mount your code folder in 2 containers?
 
@FlorianMargaine you can serve that from the nginx container directly
 
don't be silly - Github is a mmorpg
 
8:57 AM
@FlorianMargaine mount static assets into the nginx. mount code into fpm. or you use a shared data volume
 
@Gordon ok, I see
 
that would be following the docker philosophy I think. though obviously no one forces you to do it that way and ymmv
 
I think it's pretty hard to apply for many applications, where static and dynamic files are pretty mixed in, but that's nice too
 
what are u using for software for designing diagrams ?
 
whiteboards. but argo uml is quite okay if you want software
 
9:09 AM
o/
 
@Traxstar also, for simple things: yuml.me
 
@Gordon Interessting, will test it soon. Currently using draw.io
 
@Traxstar draw.io is decent, too. I used it at my last company where it was part of confluence
 
Somebody knows if a software is existing where u for example post in after every work day ur new data, this software analyse the mass of the data and then it abstract it and draws u like an evolution of he data mass u got ? hope u understand me :D
@Gordon like it cuz u can link to google and work with a few guys on it
 
@Traxstar what do you mean by data mass? and how should it analyze/abstract?
 
9:23 AM
@Gordon sorry for bad english. Something like amount of data maybe ?
So on the first day of a project u just got an index.php with for example 2kb...then with more work u got more data... 100 files ... 500kb... and it should draw u something like a timeline what shows u what progress u got measured at amount of data u createt
 
@Traxstar why would you need that? that's pointless information.
 
@Gordon would find it interessting to see...
 
@Traxstar why? what do you expect to gain from it?
 
@Traxstar df -T -x tmpfs -x devtmpfs -P -B 1G > data.txt :)
 
@Gordon for example u are in office and worked on 10 projects and just print this to the wall to show ur employees what u did in the last time as motivation cause u can see what u builded
@PeeHaa what is this doing ? :D
 
9:34 AM
@Traxstar umm, not sure how "we added 20 files worth 500kb" is really motivating. Show me features instead. Or show me interesting software metrics, like code coverage or something like that. But number of files, lines of code or size is just boring.
 
@Gordon yeah i am still working on this idea. U are right. The code coverage could be really interessting. but not sure how this should be realized
 
@Traxstar you can try gource.io to visualize the history in a git repo though.
 
@Gordon omg this looks just awesome.
 
halp
what should I call the abstract class which contains logic for managing rules and triggers?
 
@Traxstar it's fancy, but not that useful. The below doesn't tell you too much, or does it?
@tereško AbstractRulesAndTriggersManager
 
9:44 AM
moin
 
was geht ab
 
Anonymous
@DaveRandom o/
 
@tereško well, since we dont have any other information about that class, one name is as good as another, so call it George. @JoeWatkins has a cat by that name. That justifies it.
 
well, I have banners and those banners can be assebled in queues
both banners and queues have "rules" and "triggers"
 
9:49 AM
AbstractBannerQueueTriggerAndRulesManager
 
since the logic was exactly the same, I separated them in call and gave it temp-name "Regulation"
that's all the information I have to give
 
BannerQueueRegulationsManager
and yes, I know naming things Manager is a code smell
 
somebody of u got accidentally a benq xl2430t monitor ? :D
 
10:10 AM
@Traxstar why? we have a lot of BenQ's kicking around the office (almost literally) - I can go check if you want someone to test something
 
@DaveRandom the model if got ( there are several other that got this ) got a s-switch modul for switching through different color modes... i guess there is a way to switch the input via this but i cant bring this to work and cant find this in anywhere else..
 
@Traxstar meaning you want to know how to switch between VGA/DVI etc?
 
@DaveRandom no. i can switch manually thats no problem. but i want to bind the switch between those on the s switch modul
https://www.amazon.de/BenQ-XL2430T-Monitor-Eye-Care-Reaktionszeit/dp/B00MCX4Q2G/ref=sr_1_1?ie=UTF8&qid=1467108811&sr=8-1&keywords=benq+xl2430t

Here u see the switch modul
 
@Traxstar ah right, so each input has a colour profile associated with it?
 
Wes
@Gon maybe on titan
 
10:20 AM
E_NO_OXYGEN
 
Wes
true dat
 
Gon
:P
 
@flagger no need to flag, but @Gon please don't onebox completely irrelevant content - sharing is fine, this is not a business environment, but it's also not a social network some users are in a business environment while using the chat so please keep the screen mostly-business-like. Avoid oneboxing OT, non-tech-related links but suffixing them with a . or something.
 
Gon
aye...
 
FLAGS ARE SYSTEM-WIDE. Please do not annoy other users in the network by flagging questionable things before you've even requested removal politely.
6
 
10:28 AM
@DaveRandom Could you please remove that psa?
flagged
 
@DaveRandom no every of the buttons on the switch has a color profil on it, and i want to bid the input as well on it
 
Wes
so you guys watched GoT
 
Noooooooooooooooooooooooo
 
Wes
ahahahaha
 
@PeeHaa psa?
 
10:30 AM
pubic service annoucenment
 
@Traxstar oh I doubt you'd be able to do that, it's probably not a common enough use case
 
@DaveRandom but u agree that i would make sense
 
Yes, possibly, but probably not to the average user of hardware like that
 
10:46 AM
@DaveRandom Please change the flag system instead.
 
brb rewriting the entire SE network
 
A flag system that annoys many users doesn't do what it's intended to do.
 
Repi wat?
You're drunk
 
@PeeHaa speaking of being drunk. feeling better yet?
 
10:52 AM
Yeah. Much better. Slept a lot this weekend :)
And didn't really touch a puter
 
@Gordon I did and it still pinned it below, does it on date/time I think
I will just unpin the PSA for now, it will still be in stars list for a while
 
Was there ever a reason for this being forbidden or is it just a mistake - 3v4l.org/rkOmF
 
@Danack $this->staticMethod() and self are the mistake, that's just collateral
 
@PeeHaa cough twitter.
 
@Danack LSB?
 
11:06 AM
That is whoever is using LSB problem, shurely?
 
FWIW @Danack you're the only reason I log into twitter these days :P
 
12 messages moved to bin
 
We need an actual /dev/null instead of moving it to bin
 
ff'ing markdown
 
@PeeHaa will be handled eventually
 
11:09 AM
MD is hard :)
 
class A {
    public static function someNamedConstructor() {}
}

class B extends A {
    public static function someNamedConstructor() {
    	throw new \Exception("Please use someNamedConstructorWithDependency instead");
    }
    public static function someNamedConstructorWithDependency($dependency) {
		// actual implementation
    }
}
Having to do that seems quite bad - there's no better work around is there?
 
thank you @JonClements
 
<3 @Jon
 
@NikiC LSB or LSP?
 
brb food
 
11:14 AM
@Gordon LSB
Or rather, LSP with LSB :D
 
@Gordon like this:
class A {
    public static function foo() {}

    public static function bar()
    {
        self::foo(); // works
        static::foo(); //breaks when inside an object of type B
    }

}

class B extends A {
    public static function foo($thisIsBorken) {}
}
9 mins ago, by Danack
That is whoever is using LSB problem, shurely?
 
A bigger issue is this: bugs.php.net/bug.php?id=72496&edit=1
I didn't even know it worked that way
That makes no sense at all, right?
 
that looks broken indeed
 
@NikiC Adding private methods to the parent shouldn't have any effect on the child. On the other hand, which one should $this->method(..) call then when being called in the parent?
The one of the parent, as it doesn't know anything about the child.
 
And how do you get the parent one through reflection when you have an object of type Bar ?
 
11:28 AM
@Danack By reflecting on Foo?
Not that it makes any sense to do that
 
    class Foo {
        private function getName() {
            return 'John';
        }
        public function debug() {
           // At least one of these is going to be surprising
           $refl = new ReflectionMethod($this, 'getName');
        }
    }

    class Bar extends Foo {
        public function getName($extraArgument) {
            return $extraArgument;
        }
        public function debug() {
           // At least one of these is going to be surprising
           $refl = new ReflectionMethod($this, 'getName');
There's probably other weirdness possible with reflection....
/laters - my work is boring, but I ought to do it....
but first:
We're looking for a "soft skills" talk for next month (Wed 13th July). Anyone interested?
@phpsw How soft? and are you still looking?
@MrDanack @phpsw No softer than 4, please. https://en.wikipedia.org/wiki/Mohs_scale_of_mineral_hardness
.@jnthnjffris @phpsw So you've got an 'Apatite' for something of medium hardness? https://imgur.com/gallery/meftV0q
/science puns are best puns.
 
@NikiC Currently it always calls the base method. 3v4l.org/JTZUc
^ Nevermind, wrong class. 3v4l.org/Rk7sS
 
@Danack No softer than 4? No one can give a Talc on that.
 
So, apparently I bought a house today
18
 
@DaveRandom congratulations
 
11:38 AM
@DaveRandom Congrats.
 
@DaveRandom Woot? \o/
 
does it have a roof?
5
 
Wes
grats
 
I'm going round later to lick the walls
 
!!lick
 
11:39 AM
@Gordon That's sticky.
 
@DaveRandom Ah yes, the PeeHaa approval method, very well.
 
@Gordon It did last time I was there, but maybe it belonged to the EU so I may not be allowed to use it any more
 
@Danack something along the lines of "Intersectional look at PHP logo design"
 
@DaveRandom Sounds like it happened by accident?
 
@NikiC like brexit?
 
11:42 AM
@DaveRandom how much did it take and where?
 
@NikiC It's weird, we handed the money over to the solicitors weeks ago, I've had no material involvement in actually doing anything about it today
 
@DaveRandom congrats!
 
@tereÅ¡ko £211K in a place called Levenshulme, which is a sort of up-and-coming hipster-ish suburb of Manchester
 
@DaveRandom you are aware that Uncle Mtombo from Nigeria is not your real uncle, are you?
 
211k in Manchester? Must be a mansion.
 
11:44 AM
@Fabor you'd be surprised actually, it's hard finding a decent 3bed house in this city for much less than that
 
@DaveRandom I am instead looking for apartment in Riga ... somewhere in range of £50K
 
211k… wow. that was quite much… a week ago
 
it's still a lot
though, it might be a good time to buy stuff like this
 
@tereško Yeh, except this was a done deal weeks ago, so possibly not for me. But idgaf because I plan to live in it, not sell it...
 
so. when do we come over for the house warming party?
 
11:56 AM
Better make it quick, you won't be allowed in to the country soon
 
@DaveRandom I am fairly sure @Gordon is not an undocumented immigrant from Algeria claiming to be under 18
 
@DaveRandom that wont be a problem, because manchester will join independent scotland so you will live in the EU
 
@tereško Exactly, it's apparently trivial for them to get in, but we don't want no stinkin' Europeans
At least I assume that's what we were voting for?
 
whatever you voted for, playing in the soccer euros wasnt part of it
 
@Gordon I'd have voted leave if it meant people would stfu about football
 
12:06 PM
hello every one
any one there
hello
 
Hello.
 
Is it me you're looking for?
 
I can see it in your eyes.
 
Shit, I thought no-one could tell if you used those eye drops
 
@DaveRandom Nice! Room 11 housewarming \o/
 
12:17 PM
When do you move in Chris?
 
Either this weekend or next, lease on current house is up on the 14th-ish (I forget exactly when)
 
PHPNW Afterparty at @DaveRandom
 
\o/
 
Anyone familiar with MySQL?
 
what's MySQL?
 
12:28 PM
I got a; QueryException, could someone define the issue?
The database, MySQL?
 
@Gordon Not Your SQL, My SQL
 
Anyone who has worked with it?
 
is that something like Excel?
 
No.
 
I think it's more like access @Gordon
 
12:29 PM
I saw screenshots. it has rows and columns. that is like Excel
 
I know access
 
@DaveRandom Wow, that's fast.
 
@Fabor tea and cake for all!
 
is there any size restriction on form field ?
any one please
 
@ArifNoumanKhan Yes. Something like 10000 by default for a post request.
 
12:31 PM
i am sendind form body from andoid app to php services ... in one form field i am sending base 64 ecoded string which is obviously a long string
 
159
Q: What is the size limit of a post request?

invertedSpearSorry if this is duplicate,I would think it would be but couldn't find anything. I have a flex application that I am posting data back to a php/mysql server via IE. I haven't run into any problems yet, but knowing this ahead of time might save me a bunch of frustration and work. Is there a size ...

 
will thank you @Oldskool
:)
 
@Oldskool I think it's only limited by the size of the overhead lockers, although most ISPs give you an option to pay extra and check it in with your hold luggage if you really want to
 
@ArifNoumanKhan why not send it as a file?
 
Hello any 1 can please help me for google task API. Is it possible to access task api without user login in google. ??
 
12:39 PM
You want to manipulate a user's private data without the user giving you permission to do it?
 
Actually what i need to from my application admin create some task that assign to some users i want create that task in google task also for that all users.
 
danak i am sending along side a data
 
@DineshBhojvani no
 
like posting ad all data in one form
 
0
Q: Create tasks to other gmail acount using google task api

Wajdi HhI am using google task api, it works fine with my account associated to my device, but I can create tasks ONLY on this account, so how can I create tasks for other Gmail accounts that I know the login and password using my configured device account ? For example my current account is MyAcount...

 
12:43 PM
What does this error mean; Uncaught TypeError: Argument 1 passed to App\Exceptions\Handler::report() must be an instance of Exception, instance of ParseError given,?
 
@Gordon @DaveRandom So can you please suggest me how can i achieve this task. it is possible like we have take permission from users ones and we can use that access token for life time.
 
@JamesSnowy we told you yesterday
 
No, not really @Gordon
This is another error
I believe that the one yesterday was a different error
 
What exactly is unclear about that error message?
!!docs throwable
 
[ Throwable ] Throwable is the base interface for any object that can be thrown via a throw statement in PHP 7, including Error and Exception.
 
12:45 PM
@JamesSnowy no, it's the same one. and the reason is still because your version of laravel and php7 do not mix. upgrade laravel or downgrade your php
 
@DaveRandom The fact that it is an error instead of an exception
/me hides
 
@Gordon The current version of laravel is 5.2, right?
 
wait wut?
 
@JamesSnowy I think so
your issue is because github.com/laravel/laravel/blob/master/app/Exceptions/… expects an Exception. But it gets a ParseError. I dont know why it gets a ParseError but if that method is supposed to handle Exceptions and ParseErrors it needs to hint for Throwable.
interestingly enough, laravel folks claim 5.2 supports php7, so I am not sure your error is not rooted somewhere else
 
Also if you have a parse error in one of your files, fix it
 
12:57 PM
@Gordon I checked my laravel version, I had 5.0, could explain the issue
The upgrading is a pain though
 

« first day (2082 days earlier)      last day (2859 days later) »