« first day (1568 days earlier)      last day (3370 days later) » 

12:07 AM
lol
wp sites are bombarded with spammers and script kiddies - this is hilarious
89.37.120.230 - - [31/Jan/2015:00:05:52 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
89.37.120.230 - - [31/Jan/2015:00:05:53 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
89.37.120.230 - - [31/Jan/2015:00:05:53 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
89.37.120.230 - - [31/Jan/2015:00:05:54 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
89.37.120.230 - - [31/Jan/2015:00:05:54 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
89.37.120.230 - - [31/Jan/2015:00:05:54 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
89.37.120.230 - - [31/Jan/2015:00:05:27 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
89.37.120.230 - - [31/Jan/2015:00:05:28 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
89.37.120.230 - - [31/Jan/2015:00:05:28 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
89.37.120.230 - - [31/Jan/2015:00:05:29 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
89.37.120.230 - - [31/Jan/2015:00:05:29 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
89.37.120.230 - - [31/Jan/2015:00:05:30 +0000] "POST /wp-login.php HTTP/1.0" 200 12175 "-" "-"
 
FYI I just moved the group use declarations RFC to under discussion status
thanks @NikiC @AndreaFaulds @Danack and all other contributors who gently reviewed the RFC and shared POV ;)
 
I don't whether it would be better to reply to Yasuo when totally sober or whether I should just get shitfaced first, to see if that helps.
3
 
I'm doing this soon so in case discussion phase goes non favorable we still have time to try other alternatives.
 
user895378
12:24 AM
Is there any way to tell if a function is a generator without reflection or invocation?
 
user895378
Nevermind. Doesn't matter. Reflection is good enough for my purposes.
 
1:28 AM
Actually I am on an old mac......I still can't browse imgur though...
 
1:57 AM
…what about a gaming rig costs $2,500? What on earth are you putting in there?
 
@AndreaFaulds are you sure that you don't simply just need some sleep or a break?
@AndreaFaulds that stuff simply looks like the encrypted output of a burnout starting to be.
 
@Ocramius oh, hi
Nah, it's not, really
 
It really reads like that
 
Mainly because I've been through it a few times =_=
 
2:00 AM
And that's probably because I'm quite tired
 
(and I keep doing that)
 
But attempting to overanalyse it would be foolish
 
Nah, I really just read through it. I have too much of a headache to actually be sentient.
 
@Ocramius I didn't know you were a robot
 
@AndreaFaulds I didn't know either D:
Also, sorry for the age misconception, just remembered the actual numerical value now -.-
 
2:04 AM
don't worry about it ^^
 
I was gonna chat you up in DM, but I realize that I don't have anything meaningful to suggest except for taking a break :P
 
I don't like, actually need help, though.
Though it probably sounds like it ^^'
 
Yep it does :| actually no, you need to fix it yourself
 
I feel like I have missed some conversation ^^
 
Ah, forget it.
 
3:06 AM
hello
Is it possible to obtain a type value upon posting data to a url...?

I need to obtain an authenticity Token which gets changed on each request...
for the posting I need to send this authenticity token with it...
 
I have a method being run only if the value passed to it are in the whitelist. The method then has a switch() with no default set since it should never be reached since the values have been pre-checked through the whitelist. This is a basic example. But I have an issue with code coverage and return point inspections with it on line 16. How can I have PhpUnit ignore that line. Putting a default would be useless since it would still never be reached.
 
Hey there.
 
@crypticツ s/would/should - just throw an exception.
A wild Phil Sturgeon appears!
At 3am on a saturday morning ... it's not very effective.
 
@Danack sorry, it's a bad example. The method is a private method, and the list is hardcoded. So it will never be anything other than the values in the switch(), so even with an exception, that exception will never be reached.
 
throw new ThisIsCompletelyImpossibleAndShouldNeverHaveHappenedException.
 
3:22 AM
@Danack Usually you can't recover from those so I just use assert $expression;
 
@Danack I'm in the USA :)
 
Even if something should be impossible, if the syntax of the code allows it to be theoretically possible, it is correct for code inspection to mark it as a possible error. Throwing an exception wherever it should be 'impossible' for code to reach is the correct way of saying "shits fucked up 'yo".
 
anyhow, to save me digging into things too much I wanted to ask: is there a good way to run single tests instead of the whole test suite?
kinda hoped this would have a note qa.php.net/running-tests.php
 
@PhilSturgeon I believe just php run-tests.php ext/somedir or just a single test.
e.g. php run-tests.php ext/curl/tests/curl_basic_007.phpt
 
perfect, thank you
 
3:26 AM
np.
 
also do I need to give anyone a hug? chat.stackoverflow.com/search?q=phil+sturgeon&room=11 serious hate in there.
2
 
@PhilSturgeon Yeah....that's one of the things I don't like about this place. Far too much piling on. On the other hand...it's still better than internals.
 
^^ Glad to see I did not pile on the hate train.
 
actually @PhilSturgeon talking of which, have you (or anyone else involved in FIG) been in discussions with Pierre about this 'Pickle' replacement for Pear?
 
Danack. I've not heard anything about it. I'm not sure the FIG would have much to do with it
I mean, I've not heard anything on the FIG side of things. im not involved in the FIG anymore though, as of a month ago.
 
3:37 AM
I think possible somebody (hey, I'm somebody) needs to call him out on the fact that he seems to be planning a massive replacement of how to install shit, and isn't asking for anyone's input on how it should work.
 
@LeviMorrison thanks Levi :)
 
"im not involved in the FIG anymore", er - gratz?
 
@Danack thanks! PyroCMS was acquired, so I'm not running that project anymore and gave my seat over to the new owner. It was nice to escape tbh. Lots of arguing for very little progress.
 
Yeah...I think I've said it elsewhere, but the best way to get people to agree on a library to to make something, show it's useful and then allow other people to use it. For example Symfony's httpkernel is horirfic and would never stand up to any PSR code review. But people seem to be building useful apps around it, so who am I to judge.
 
yep. being good quality and being good enough to use are different though. people in here have complained about CodeIgniter plenty. UTTER MESS, but it helped hundreds of thousands of developers get things done, so who's to complain.
PSR-7 will be life changing for the PHP ecosystem though, as long as it ever gets finished. :)
@LeviMorrison I'm adding a feature, super simple. It's just ReflectionProperty::getClassName(). PR on the way, but hotel wifi Writing objects: 50% (46857/93714), 19.56 MiB | 56.00 KiB/s
does that need an RFC?
 
3:48 AM
Maybe. I would suggest piggy-backing off of the reflection RFC for parameter types.
(I mean maybe; not that you should)
 
That RFC is really intended to revamp the "type" portion of Reflection.
 
ahh, yeah im gonna avoid that RFC I think
 
I think looking at what you are proposing I don't think it's a good fit.
 
3:52 AM
Basically, from a ReflectionProperty you want a link back to the class it is a property of.
 
user895378
4:13 AM
mornin'
 
hey @rdlowrey
 
user895378
@PhilSturgeon Don't like the the current "read only" ReflectionClass::$name property access?
 
user895378
Actually it might not be read only, I forget.
 
user895378
If it's not then a method would be useful.
 
yeah its not that :)
 
user895378
4:16 AM
Oh sorry, I read "ReflectionClass" and not "ReflectionProperty" in your message.
 
user895378
Probably because I just used ReflectionClass::$name about sixty seconds ago :)
 
that'll do it!
 
4:38 AM
test
yep, it works!
 
5:13 AM
monrin
 
user895378
5:29 AM
hi there paul
 
If I had a request header that reads "Content-Disposition: form-data; name="name"\r\n\r\n", how could I access that in PHP?
 
user895378
5:58 AM
 if (isset($_SERVER['HTTP_CONTENT_DISPOSITION'])) {
    $value = $_SERVER['HTTP_CONTENT_DISPOSITION'];
}
 
user895378
@jkaufman ^^
 
hi all
Does PHP have a module repo like npm for Node? Is Composer the equivalent for PHP?
 
6:18 AM
hi guys
do anybody why there is need to use client side MVC framework like AngularJS?
 
huh?
You don't need to use a MVC framework, it is optional.
 
yes its optional and its personal choice too
but as the technology advances
 
Guys,
how do you do that build: passing etc
on github?
 
we need to use different options to make process fast
so many are suggesting to use client side frameworks too
 
You can follow MVC convention without using a framework. Yes, a framework is intended to make coding MVC faster. The point is to separate the Model, View and Controller logic.
 
6:20 AM
that can manage view and input data from model
 
I don't know what you're talking about. PHP is server-side.
The reason AngularJS is client side MVC is because it's all client-side - the opposite of PHP.
 
yes you are right and AJ is client side and PHP is server side
 
@HassanAlthaf Build passing? I think that means the Github user is signed up for Travis CI. It's free for open source projects.
 
but if a que in mind why to use client side MVC is to make client side code well structured and manageable
 
Oh, how do I do that @taco
I have Travis CI but Idk how to do it
 
6:23 AM
No idea. I dont have any projects
@John Is English your second language? I don't understand what you are saying.
 
yup you guess right
haha
 
Repeat your question :>
 
no no that was not my question it was answer if you think its right...
my question was why to use client side MVC?
and the answer is to make client side code well structured and manageable ..
 
yes
It's for bigger applications
I work with alot of developers. It's easier when you use MVC
Our applications that do not use MVC are harder to work on
For small applications you will not need it at first, until it gets more complex
At that point, you will cry and shoot yourself in the head
 
6:44 AM
(y)
 
user4284772
7:09 AM
hi
 
user4284772
is there anyone who help me??
 
user4284772
?
 
Suere
State your problem.
 
user4284772
i quit new in php and mysql
 
user4284772
i am working in accounting application
 
user4284772
7:16 AM
now i wanna make sure my database structure
 
user4284772
can you please give me database schema?? please
 
moin
 
user895378
7:33 AM
@JoeWatkins I'm going in the opposite direction. Have a good day. Catch ya in a few hours :)
 
nn @rdlowrey
@PhilSturgeon I'll have a hug ...
 
 
2 hours later…
9:11 AM
Morning
 
moin
 
9:56 AM
Enjoying the weekend @JoeWatkins?
 
not doing anything yet ... going out in an hour or so ...
 
10:13 AM
=] like for a nice walk in the fine nature?
I miss taking a good walk out in the nature while blasted
Most be the thing I miss the most about smoking
 
Good mooning, chaps :)
 
morning
 
10:52 AM
Anyone feel like helping little dumb me? I'm trying out Silex, but I think I'm forgetting some use or something in my autoloader. Because I keep getting the error that the App class can't be found in my frontcontroller.
 
moin
@RonniSkansing nah much more boring stuff ...
 
Pop quiz: someFunc() expects a number, should someFunc(123) and someFunc("0123") produce the same results?
Answer: For nearly every function in PHP, yes The number is cast as a decimal string to an int. For long2ip(), no, it's determined to be octal, and so is cast as an octal string to int.
PHP annoys me so much sometimes...
 
11:07 AM
Morning
 
11:41 AM
Curl automatically display the result???????
 
11:59 AM
@SaraGolemon The answer is, of course, it should throw an error and avoid any such issues altogether :)
 
12:14 PM
Do we really need ReflectionProperty::getClassName() ?
what's wrong with $aParameter->getClass()->name ?
(just asking, I could not find a use case to justify it's really necessary yet)
 
Morning
 
@marcio It requires the class to be loaded
 
@NikiC what's the problem with that?
Oh I see...
the class may be not available
it might belong to another package or do not exist at all
 
yes
e.g. if you have some kind of analyzer that walks through your files, executes the file and gets the reflection on the defined class, it won't be able to retrieve the parameter typehints, because getClass() depends on the autoloader
 
@NikiC @PhilSturgeon this will probably be a recurrent thought for everyone reading the RFC. Better to add it as a justification and save the trouble to explain it again and again :P
 
12:50 PM
Oh boy, it looks like I’ve been pissing in peoples cornflakes for a while now http://chat.stackoverflow.com/search?q=phil+sturgeon&room=11 People know this is public right?
this makes me sad ...
 
It is sad, but this one made me laugh chat.stackoverflow.com/transcript/11?m=4796432#4796432
 
@JoeWatkins which part: that people on the internet are mean, or that it still comes as tweet-worthy news to people?
3
 
that people are mean, but more so that people are mean behind your back and then nice to your face ...
 
this makes the room appear all about negativity while it's just 10% or less, most people here are constructive 90% of the times.
 
@JoeWatkins Seems pretty harmless ^^
 
1:03 PM
no, they aren't really ... the only reason I started to hang around here is because of nonsense being spouted by several people in this room that came up on a google search ...
May 8 '13 at 13:59, by rdlowrey
Started playing with pthreads last night. My first impressions ... Some of the extension code looks like it was written by a five year old. And it seems to have a lot of weird quirks that, if you aren't aware of them, will result in segfaults all over your application. But, if you can work around those things the ability to incorporate limited threading can be a real win.
 
I'm sure this room had a lot more choice words about Derick ^^
 
not something daniel would say to my face, others did the same kind of thing ... just mean for no reason ...
 
it's harder to be mean when you've got an actual person rather than just a name, or author of some bit of code
 
@JoeWatkins I also tried to call him out in his face once. Also didn't pan out...
 
you can be constructive without calling people names, it's fucking galling to find out people are calling you names behind your back and are pretenders to your face ... everyone is nice to phil when he comes in so why are people being dicks when he's not here ...
 
1:10 PM
meh, I'm not going through the transcripts to match up insults with reach-arounds just to figure out the venn diagram of naughty and nice.
 
I'm not going to do that either, I love to hang around here, some of the best internals work gets done around here and it's exciting to be around, but I'd like it if we could make some effort to focus on only being constructive about stuff ...
slagging off CI doesn't even make sense, you could dig up code I wrote 10 years ago and find things wrong with it, and I could do the same to any one of you probably ...
 
@JoeWatkins And we all do and indeed say our code was shit
Personal attacks I can see people being against that. Attacks against code is something that should happen every single day
 
@JoeWatkins FYI CI is still a thing.
 
@JoeWatkins does that mean I can't talk shit to @PeeHaa anymore? :(
 
it's nothing to do with phil any more though, hasn't been for a good while ...
 
1:14 PM
@PaulCrovella Have you seen my latest release? :P
 
CodeIgniter wasn’t my fault. I didn’t invent it, or design it, or make it worse. I dedicated my own time to make it better. Then I gave up.
 
did you fuck up the credits again?
 
@PaulCrovella Nope. Fixed it github.com/PeeHaa/Requestable/releases
 
trying to lay the problems that CI has and causes at phils feet is like blaming @NikiC for every problem that php has ... stupid ...
 
1:15 PM
@JoeWatkins The thing is that he was telling people all the time it wasn't that bad and people saying otherwise were trolls
paraphrased
 
/me doesnt like when peoples feelings get hurt..
 
A bit like the laravel and taylor although he is a proper dick
 
@JoeWatkins I think code rant is not the issue, some things need to be addressed. The evil part is the name calling only.
 
inb4 2 years later taylor gets in here and checks chat search
 
@PeeHaa that doesn't make him a dick, that makes him invested in something, and possibly wrong, and that can be discussed without being mean ...
 
1:17 PM
@JoeWatkins I was talking about taylor being a dick
Because he is a proper one
 
and interpersonal problems can be discussed constructively too, rather than whined about on twatter
 
Tbf I called @PhilSturgeon a dick once because he merged code without attribution and he didn't think it was bad
 
I've watched a few podcasts with taylor, he's alright ... you can be wrong, or arrogant, or ignorant, that doesn't make you a dick, it makes you worth engaging ...
 
@JoeWatkins There is no engaging with taylor in my experience
 
@JoeWatkins this is a interessting topic
I guess anyone is entitled to their opinion
even if I agree or do not
 
1:21 PM
People should be nice. People should also work it out or get the fuck over it when they aren't. Neither of these is bound to happen so...
 
@philsturgeon that room is so toxic.
 
@PeeHaa maybe not, but that doesn't mean we have to be nasty about him, we can just observe that he's difficult to engage ... and we can talk about the reasons for that ... all the while being constructive, without being nasty ...
I'm not saying I'm innocent, I've probably put a foot wrong, which is why I said it'd be nice to make a concious effort, me included ...
 
This room teached me alot and it paid off, do not think I called Taylor, Phil or anyone a dick. I might have lashed at Ci, Wp or Laravel and I might reconsider my wording in the future
But the room is not toxic
 
THAT ^
 
obviously observing that something is crappy about insert name here is fine, observing people are wrong, normal discourse in other words is healthy, but calling people names should grate on all of us like it's happening to us ... there is no need for it ...
 
1:24 PM
It's also nasty to come here, search for your own name find only mean comments because of mean things you did or said and throw it on Twitter, completely out of context.
 
well he was here for a while, but guess not many of us were online ...
 
Does anybody have experience with unique id of mail?
 
be nice </rant>
 
Message id in RFC 2822 - Internet Message Format
 
@JoeWatkins I'm just saying I don't like both attitudes. From now on, if I see a personal defamatory comment I'll flag it, but I'll not defend that attitude of sharing things out of context. It's "mean" too.
 
1:28 PM
@marcio Pls don't flag
Ping a room owner if you like, but flagging will make people angry (it's global)
Basically if you flag some minor insult guys from the C++ room come over and there's a major shitstorm :)
 
there is, I've seen that ...
 
What?
 
Since recently we can even kick people, though I've never used it
 
lol, ok I don't want a shitstorm to deal with :)
<mean> I don't want C++ people here either </mean>
 
@philsturgeon are you complaining that people are not talking about you enough? Or were you expecting to be worshiped?
 
1:46 PM
I wouldn't mind the ability to "flag" messages for the attention of only the people in the room.
 
@tereško he sounds proud of the chat history actually "Oh boy, it looks like I’ve been pissing in peoples cornflakes for a while now"
 
exactly
which is why I phrased it like this
 
I got ignored in javascript chat ... again.

here is my copy-paste
Hi, i'm constantly pulling XmlHttpRequests (with ajax) to update my progress bar. The problem is = in the firebug inspector panel, under resources, pulled data files are piling up. How do i prevent this?

I added **cache: false** and it didn't work.

*this is hours long process and it might collect even 100 mb of these junk files. This also hung my old mac up*

please help
 
@animaacija put code in a pastebin.
 
@RonniSkansing sec
@RonniSkansing Here. pastebin.com/3cHDBKJP
 
In this example i did not put cache: false , but i tried that - no effect.
// Ill be out for 15 min...
 
@animaacija when you are long polling you should have a approriate pause between each request
you do not want to fire all the time
I do not think the problem has anything to do with caching
 
@animaacija Don't leave firebug open for hours?…
 
2:17 PM
@RonniSkansing well i could, but my process is 2 hrs ,if i place 2 sec latency damage, it becomes 3600 files ... maybe, not so bad. I could do like this.
 
@animaacija anything is better than polling in a almost recursive way that you are doing it right now
 
@salathe is it extra heavy resource ?
 
also it would be 3600 requests, not files.
 
@RonniSkansing but why is the cache:false not working ?
 
@animaacija what would you expect it to do?
1. you making a ajax request to a value
2. you are using firebug to keep track of all request/response
 
2:20 PM
ouh, the second point! ^
 
caching does not mean, do not make request nor do not log request
 
=]
Also, as salathe mentioned, why would you have it the firebug open for hours?
the numbers of requests you are making does not really matter much, just avoid a recursive approach, have a timeout, like 5, 10 or 15 sec
it is for debugging
 
@JoeWatkins I think the guy is still making the same mistake that he was making back then, and I still stand behind:
May 28 '14 at 11:31, by Danack
And that is why I get annoyed with Phil Sturgeon so much. Every time he gets involved in a debate it seems to turn out into a really exclusionary way of thinking, trying to find the One True Way of how to do things like classloaders, cache interfaces etc. Instead of making things compatible in fluid ways that are open to future expansion.
Apparently he's not involved with FIG anymore, but he was involved for a long time, and they have been searching for the One True Way for caching, HTTP messages and other things.....and I think that binding people into trying to find perfect solutions is far more toxic than some of the stuff said in this room.
Having said that, it would be better if people criticised people's code or behaviour, rather than the actual person.
 
2:35 PM
The caching PSR was a disaster, BTW ^
 
I tend to ask this question once in a while, but I still haven't found a suitable solution. Is there some decent OSS PHP solution which minifies CSS and JS yet?
 
@PeeHaa Just use yuicompressor.
It's java but fast.
 
Yeah. That's what I have been using, but as you say java :(
 
so 2000
@PeeHaa I wrote a css minifier in go if you want
 
It's about 5 times faster than any PHP equivalent.
 
2:37 PM
@FlorianMargaine Nope I would really love a pure php solution
 
@PeeHaa why not just some of them npm things, I tend ot seperate frontend and backend completely. So backend has stuff like composer, phpunit.. while frontend is build with setup with stuff like grunt/gulp etc.
 
:(
 
@PeeHaa there is github.com/c9s/cssmin
never used seriously, but seems to work
 
I was more thinking about a userland php lib
 
@marcio Yes I was there...I think that one PHPs strength is that a lot of the core library is procedural code, as it's just not possible to find OO solutions that are good enough for everyone.....and that any attempt to find the one true OO design for things like caching is dumb. They should build it out of procedural functions, and then those can be composited in any way...
2
 
2:39 PM
I don't need it to be fast. I just need it to be portable easily
 
It has bugs though....
 
@Danack Interesting
What kind of bugs? Bad code gets fucked up?
 
@PeeHaa Yep. And that's the point I went fuck it and used one that works.
btw...Java is portable.
 
write once, run hide ... anywhere?
 
Not easily (for me). I find myself a bit more in the situations where I have to install on an external machine I have limited control over
 
2:42 PM
write it in c (std=c99)
 
@PeeHaa This is the issue I encountered - github.com/tedious/JShrink/issues/19
Finding that in a massive minified file was not fun.
 
hehe I can see that has been a pain
 
@PeeHaa why are you doing minification on the machine you're installing to?
 
@PaulCrovella Because I have built it in a way end users of my cms can change css
 
@RonniSkansing JVM: write once, feel like a stranger everywhere.
 
2:46 PM
=]
 
I will give jshrink a quick spin anf if it works write an adapter so I can easily swap it out if the thing blows up in my face :)
 
@Danack I have a feeling PHP FIG is functophobic because "there is no autoloading for functions"
which is not really true, you just don't need to lazy load functions like you do with classes but go figure.
 
@marcio no, it's just because fig people are javaists trying to force their views on php...
But hey, the php community is becoming javaist...
 
I know I am
 
@FlorianMargaine this is a matter of education, "OO all the way" looks like shiny gold for people doing spaghetti code.
@Danack But I second what @Danack said, some PSRs should consider a functional API and OO wrappers for the functional API could be released.
 
2:58 PM
Imho that is not the problem of FIG. As a matter of fact I am personally a big fan of OOP ALL TEH THINGS ZOMG SILVER BULLET SOLVES ALL MY PROBLEMS in general
 
Poe's law, named after its author Nathan Poe, is a literary adage which stipulates that without a clear indicator of an author's intended sarcasm it becomes impossible to tell the difference between an expression of sincere extremism and a parody of extremism. == The law and its meaning == Poe's law, in broader form, states: Without a blatant display of humor, it is impossible to create a parody of extremism or fundamentalism that someone won't mistake for the real thing. The core of Poe's law is that a parody of something extreme, by nature, becomes impossible to differentiate from sin...
 

« first day (1568 days earlier)      last day (3370 days later) »