« first day (2287 days earlier)      last day (2674 days later) » 

1:00 PM
The reason that you are not authenticated is not a protocol-level status
 
guys please help ,I cannot access my site from our network whereas it could other network,why this ? is this ram of webserver issue?
 
can you ping the IP?
 
yes
166.62.6.38
www.nousappsystems.com
 
No USA PP systems... what an odd name
 
yes Bro lol
 
1:02 PM
no u sappy systems ?
 
:)
nousappsystems
todays app making systems yaar
 
no usa ppsy stems
 
no u sap psy stems
 
Thanks dave and kelunik
 
bah
 
1:03 PM
@Leigh no, u sap psy stems
 
my psy stems are completely sapped :(
 
Your assistance to my querry is ver helpfull to me
 
:-P
 
@RAJMOHAN was the site newly launched?
 
1:04 PM
Glad to be of service, now, please present your psy stems for sapping
 
@RAJMOHAN: flush your DNS cache, check your hosts file
 
no 5 month aged@DaveRandom
 
lolz
 
oh
 
1:05 PM
Somewhere you have a fucky routing rule or a hardcoded, incorrect DNS entry
 
maybe a bad dns record on intranet/lan
yeah ...
 
ok
 
So check your DNS caches, DNS local config, routing tables
somewhere there's a problem in one of those
 
might be routing out, then trying to come back in
 
first thing to do is check that the DNS resolves to the right IP from your local machine
if it does, traceroute it
 
1:07 PM
Guys, what's this? you know, my code would be working even if I remove it. So what's it exactly?
 
@Shafizadeh A type hint
 
wow thanks for all your help and time
 
declaration!
 
It makes sure you can only pass an instance of Log.
 
@MadaraUchiha Ah I see
thx
 
1:08 PM
@Shafizadeh ctrl click it
 
@Gordon in which IDE?
 
do new myclass(123); and you'll see what it's for
 
@Shafizadeh any decent IDE will support ctrl clicking it
 
I'm very confused that you could write that code, and not know what that is ...
 
@Gordon ok
@Leigh ok
 
1:09 PM
ok
 
Is there any issue if using ajax for getting refreshed external page in a page or say immence amount of usage ajax affect the webserver (its performance)?
 
maybe
 
Am I the only one around here who clicks no when phpstorm asks if I want to git add the new file, and finds out that it still adds it sometimes? It happens quite often on my end.
 
1:12 PM
 
why?
 
Should I use this for my speaker bio pic? https://t.co/Wx3og2bca7
3
 
@Ekin I very quickly decided to not use the IntelliJ family's git integration.
 
@MadaraUchiha oic
 
Command line all the way.
 
1:13 PM
@Ekin I'm sticking with gitkraken for handling commits (when I'm not just using CLI)
 
Yeah I think I'll do that as well. It just bugs me since I do it all on cli myself anyway
 
@Ekin You can just say "No, and never ask me again"
 
I did though
Something is flucky about it I guess
 
MORNING!11!

Anyone has tickets for PHP Benelux for sale or something? :-)
 
@Ekin What version are you on btw?
 
1:16 PM
yomin
 
@PeeHaa 2016.3.2
 
Jesus christ @Wes. nature hates you and your people
@Ekin Same. But for me it works :P
 
Weird it is :/
 
@PeeHaa has @Wes come out as scientologist ?
 
@Danack plz do :D
 
1:18 PM
@tereško Not that I know of. But nature has been hard on Italy the last couple of months
if I would have been a christian I would have thought they have done somethign really wrong
 
:35191429, naah, the problems is in the Italy's land itself. It is trying to escape EU and go hang out with UK.
 
:p
 
when I read "snow has made it impossible to access a thing", I completely fail to understand ... this is a first world country with first world resources ... wtf ...
 
all they need is a nice ass-shaped meteor to cap it off
 
@Danack you look nice there :-P
 
Anonymous
1:25 PM
@Leigh holy mother of god
 
If only I could be bothered to do my makeup in the morning right.
 
@tereško HAHA
 
Hum. This seems to be a real thing :D TIL
 
@bwoebi Would you like to contribute with me @DaveRandom and @kelunik on new pure-OO streams API initially as a pecl ext ?? http://chat.stackoverflow.com/transcript/message/35190048#35190048
/cc @rdlowrey @Trowski @WyriHaximus
 
Disturbing thing of the day: yolocaust.de is potentially NSFW
 
1:30 PM
> Google Safe Browsing recently detected malware on unitedchurchofbacon.com.
@Ekin ^
 
lol... better with wiki just in case
 
@brzuchal I do not want an official OO stream API…
 
@JoeWatkins @bwoebi on the subject of typed properties. I've been considering what Go does with declared but unassigned vars, it gives them a default value. Do you think this is something worth including in a typed properties proposal? I.e. a property declared as string would have a default value of an empty string (rather than null), int would be zero, array an empty array, and so on.
 
@Gordon Fuck, will I get deported now?
 
@Leigh And objects null !?
 
1:31 PM
If you can declare a typed property as object, yes
or a class type
 
@Danack lmao. What did you use for that filter?
 
nah
 
@bwoebi and bool would default to false, naturally. :)
 
it took quite some convincing to get people to come around to the idea that implicit nullability is bad ... default values undo all that hard work
 
Does it?
 
1:34 PM
yes
public Type $thing;
lies
 
Implicit nullability is bad, yet public string $s; // this is null
 
should be public ?Type $thing[ = null];
no it isn't, it's uninitialized, and shall throw an exception on access
 
That's another solution, and not one I'd considered you considering :)
 
@kelunik Heh :D For some reason my initial expectation was something related to Portal game, still another TIL for me too
 
1:40 PM
@brzuchal Also: what would be better with the new API than our existing API? (Being OO isn't a benefit)
 
@bwoebi Well, there are many streams libraries tending to pack streams into OO
It would help to replace resource's with OO objects.
 
@brzuchal replacing resources with objects is fine, an OO API not
@brzuchal Also, why do they do it?
 
Because almost everyone likes OO-API
 
s/likes/wants/
 
@brzuchal Also, what do they do? Are they thin wrappers just packing it in an OO wrapper? or building functionality on top of it?
 
1:43 PM
OO APIs? Object Oriented API?
 
@Trucy yes
 
There are responsibilities packed into their corresponding classes, there are some interfaces which may be implemented etc.
@Trucy Yes
 
@brzuchal what do you mean?
 
Right now there are streamWrappers I started implementing one
 
@bwoebi The API form, in a way, is irrelevant. The point is simply to create a streams API that fixes some of the broken-and-impossible-to-fix-in-BC-way things.
 
1:45 PM
There are responsibilities mixed: directory traversing with stream operations
 
@DaveRandom okay, which ones concretely?
 
@DaveRandom To start with, we should probably have a list of those things then.
 
And there are also thousands of stream_* functions
 
@DejanMarjanovic that seemed really well matching my experience
 
@brzuchal if there are redundant ones, we can deprecate some…
 
1:46 PM
@brzuchal please stop making up new words
 
@tereško Well, they've got tagged, same as my nation... know the feeling.
 
also, what the fuck is "OO object"?
 
@tereško (he means objects with an OO API)
 
@tereško Sorry I cannot edit it anymore
 
@tereško An object oriented object, silly you
 
1:47 PM
:P
 
@Trucy "silly you" :D
 
@brzuchal Yep, leaky abstractions everywhere.
 
@Danack that pic
ZOMG
 
ok, so, basically, you are saying, that I should ignore all the places where you wrote "OO", because it's just an empty sound of buzzwords
 
@bwoebi stream wrapper is specifically problematic, general chaos in terms of stream contexts, nightmarishly impenetrable C API + others. You cannot seriously be saying that you thing the streams API is fine.
 
1:48 PM
@tereško well, it may ;/
 
@brzuchal could you please rephrase your question without using "OO" in it ?
 
@DaveRandom I agree that the internal C API ought being rewritten … how does that affect the PHP API though?
 
@tereško Don't you like my Cyber objects?
 
@bwoebi resources are part of the php api
that should be killed for starters
 
@bwoebi If you are going to write the C API, why not provide an alternative, less shitty userland API (which more closely reflects the underlying API) at the same time?
 
1:50 PM
general chaos is not concrete … Yes, there are things wrong … but to get it right, I first need to see what concretely.
 
@Danack Nice to have you on board
 
The point of the project would be to create a complete replacement both at the C API level, and the userland API level, which is properly thought out. It would provide a drop-in replacement, fully backwards-compatible layer as well.
 
@DaveRandom well, perhaps… But what are the current APIs diseases?
 
4 mins ago, by kelunik
@DaveRandom To start with, we should probably have a list of those things then.
 
The only truly horrible thing imho are user filters
 
1:51 PM
agree @kelunik ^^
 
@MadaraUchiha Now you remind me of my school which just LOVES random bullshit buzzwords like "cyber digital uberized agile cloud"
 
@bwoebi Rebuilding on top of inspired by Aerys filters?
 
@Danack looking pretty Jesusy to be honest, does this affect your trustworthiness?
 
@bwoebi The streamWrapper API is also completely unusable, and stream contexts are totally fucked (many options badly named, many functions do not accept them for no readily apparent reason even though they make use of them)
 
@kelunik for the string data part, could be a solution.
 
1:52 PM
 
I would like an OO API, but that is not the primary purpose of such a project.
 
@DaveRandom Stream wrappers should be killed with fire IMO.
 
@tereško which one? I was going to say that Object Oriented API for streams could replace using resource's. In a community there is also trend to create only Object Oriented ones. I was gonna say there are some responsibilities mixed into streamWrapper, that there are no interfaces, no abstraction at all.
 
@kelunik Very possibly
 
@MadaraUchiha Didn't get the last panel (also, related: sansbullshitsans.com)
 
1:53 PM
The point of this is to get a discussion going about what would be better and why, by getting a group of people who actually understand the problem domain together in one place to discuss it
 
@DaveRandom badly named options can be fixed within the same API, with new names, and deprecating old names in 4 years or such
 
@bwoebi Fine. Then let's discuss how that might look, in the open, in a dedicated place
 
@DaveRandom functions which do not accept them currently can just be extended to support them - no API changes necessary there.
 
question about regex , what is the difference between '#.*#' and '#[.]*#'
 
@DaveRandom streamwrapper … dunno, I haven't built anything recently myself with them, so cannot tell … but that's just a specific subpart of the whole which can be replaced individually
 
1:56 PM
Is it possible to provide procedural and Object Oriented API just the same as DateTime does?
 
@bwoebi can u help?
 
@brzuchal It is. And it sucks.
 
@brzuchal Having two ways of doing things is bad.
 
Don't know why, I'm using only Object Oriented as most of community in their libraries does
 
hey anyone can help me?
 
1:57 PM
@brzuchal there should never have been an DateTime OO API nor a mysqli procedural API…
@beginner well… [.] matches a dot, . matches every character
 
Isn't it just a matter of preferences?
 
@kelunik sweeping generalisation is sweeping. It's fine if there are two ways of doing things when the reason is that there is a new way which is demonstrably better, and the old way still exists for BC.
(IMHO)
However the only point I'm trying to make is that this discussion should be being had not-here :-P
Even if the result of the project is "let's fix the old things in the following way", it's still accomplished what it set out to do
 
@bwoebi there are 354k found code results on github for date_create() vs ~7M results for new DateTime()
 
Exclude forks
And exclude PHP test suite :P
 
@brzuchal Ultimately, yes… But TBH the DateTime API feels like it's a procedural API shoehorned into an OO API with a few new functions
 
2:04 PM
@Leigh Why excluding test suite? I was looking for usages. If someone uses date_create in tests then that's fine?
 
@DaveRandom Sure, if one of those is deprecated, everything is fine. Users will know which to use then. This was rather aimed at @brzuchal asking whether it's possible to have a proc. API and an OO one that do the same.
 
@brzuchal I mean php-src tests
 
@bwoebi So it has benefits in addditional functions not only OO API ?
 
Lots more testing around DateTime than date_create
 
@Leigh Ok
 
2:05 PM
@DaveRandom Before we have a list of concrete issues, it's probably better to do it in chat, we just need someone to sync the list.
 
@kelunik oh good lord no, we don't need a new procedural API
 
@brzuchal no, a few functions added to both APIs to accomodate OO API
 
FWIW, we won't gain from a new API either, because our new shiny Amp v2 wrappers exist already. I think we'll only have a reason to switch if the new internal API brings async as a first class citizen.
 
So what's the point of having DateTime OO API and sticking to only proc streams API?
 
Anyway, have to do real work, laters.
 
2:08 PM
I didn't meet any developer who uses date_create and that doen't mean they are bad developers because proc API is more... more what actually?
 
more procedural :P
 
OO stream API doesn't mean we have to deprecate file_get_contents and introduce some boilerplate just for read file contents using stream API, but there may be some more clean API to talk to streams I think.
I mean more clean OO API
@tereško sorry for those plenty of "OO"'s
IMHO there is much more readable OO API when writing code and having IDE autocomplete on them, than just proc one.
 
In proc API you need to know earlier what you're going to do and with OO API IDE will tell you what is possible to do with n object at all.
o/
 
@Sean Because we like his face
 
2:20 PM
Stars
 
btw @Jimbo and @JoeWatkins, my SO said that you were pretty :D
 
Thank your SO <3
 
I feel left out :(
 
SO is stealth officer right?
 
Yeah, what else would it be?
 
2:22 PM
sausage operative
 
hmmmmm sausage
 
which I guess is closer to the truth
 
So this site is for Sausage operatives?
And I believe that SE stands for Sausage Experts
 
Yep, we're all pretty much our own sausage experts
 
Anonymous
2:32 PM
@Leigh I think you're fit, don't worry.
 
@Jimbo and I had Salsiccia for lunch so I know what I talking about.
 
How to cancel a promise in AMP?
 
@brzuchal since you obviously didn't understand: what is "object oriented api"?
because to me it sounds like bullshit
 
Shllould I use object API instead?
 
@Leigh that meitu app is so pointless… when you are @rdlowrey
I mean, he will obviously look the same after applying all the filters
 
2:36 PM
@brzuchal what is "object api" ?
 
Anonymous
@Gordon if not, uglier
 
@Gordon It does add lipstick though
 
An API which uses objects and their behaviours?
@tereško I think it's the same in my mind
 
what is "api"?
 
Well app programming interface
 
2:42 PM
jeez
what does "api" do in your mind?
 
Seems like @rdlowrey has gone quiet again…
 
The way you're using objects and tgeir behaviours or the functions and the way you're using them
 
@m6w6 you don't cancel promises, you should cancel an operation … i.e. close a connection or whatever.
 
@tereško am I messing something?
 
@bwoebi seems short-sighted. What if I'm not interested anymore in the information I requested?
 
2:45 PM
so ... what you actually wanted was for Stream to be a class in php, instead of talking about object oriented objects
 
@m6w6 you aren't - but e.g. your operation works on a connection. The incoming data has still to be processed anyway in order to follow the protocol … if you're not interested anymore, you just ignore the return value of the promise?
 
evening room
 
@bwoebi processed is vague; on cancellation incoming data could just be discarded instead of processed/transformed etc...
 
@tereško exactly also StreamContext StreamBucket File etc.
 
@m6w6 you still have to process quite some data … e.g. consider a mysql connection. packets are going to be of different types ((critical) error or normal), warnings may be set which need to be retained in the connection state etc.
 
2:48 PM
@littlepootis meitu
 
@bwoebi Do I actually know which operation is going on when receiving a promise for some abstract operation?
 
@m6w6 if you are not interested at all in that connection - well, then close the connection instead.
@m6w6 no.
 
@bwoebi I probably didn't open that connection...
@bwoebi How to cancel that operation then?
 
@m6w6 you probably did DI it
@m6w6 then provide some API for cancelling that operation, not the promise
A Promise is an unidirectional chunk of information
 
^ That's probably a sentence that should make it into the spec.
 
2:52 PM
Guys, how would you create the filename of a file that contains sensitive data, given that you do not have access to any "proper" authentication methods and thus have to rely on the randomness of the filename?
 
Does anybody have a "normal" word for full-duplex stream when describing two talking persons?
 
@kelunik conversation? face2face communication?
 
@kelunik simultaneous talking?
 
Feels anally strict.
 
@Gordon That's actually enough, yeah, thanks.
 
2:54 PM
@m6w6 it's more separating concerns
 
@Gordon It's not face to face, it's about async digital communication between patients and health care providers. ^^
 
@m6w6 you can extend the spec interface to do whatever
 
Hey fellows, just a quick question.

I have from ajax
$data = \Input::get('data')

which is an Object with {email: blabla, name: blabla...}

however when I try to return $data->email it tell me that I4m trying to get the property of a non-object.. What is the proper way of getting those data ?
 
@Baldráni your code isn't doing what you say/think it's doing. You should either make a reproduce case on 3v4l.org or step through it with a debugger.
 
@Baldráni your example is malforned or it isn't PHP
 
2:57 PM
Sure, still feels like 5th form of normalization.
 
Input is a model from Laravel
And the Object is render through console.log() in javascript
 
@m6w6 but the discrete, interoperable concern the spec is tasked to resolve is a way to be notified about the result of an operation. A Promise is not an operation.
 
@Danack Not sure I can reander Ajax in a php fiddle can I ?
 
A Promise is the promise to deliver the result. You may cancel deliverance maybe, but the operation will still happen.
 
@Baldráni no, but that shouldn't be part of your example: sscce.org
 
2:59 PM
@Baldráni debug an object. Check methods properties maybe you have sone getters like getEmail
 
Maybe that's all right, but the last few days made me feel like when I'd to choose I'd go with react every time.
 
can I somehow pass php code to php-cgi? I know I can use php-cgi -f file.php but I'd like the equivalent of php -r "some code". maybe through some clever use of data:// or something
 
@brzuchal Ok I got it :D Thank guys It was just that it was render as an object in javascript while it was an array in php .. If someone got an explanation ?
 
Arrays which are maps nay be rendered like json in your case.
 
@m6w6 I can understand that - react gives a feeling that it's more flexible … I mean, dynamic events, everything easily subscribable, cancellable, disposable, more control about the loop etc.
 
3:01 PM
ugh, looks like phpunit just dumped memory on me as error output
@bwoebi I'm just talking about react/promise, though
 
@m6w6 you'll be easily able to use react/promise while mixing in amp libraries once interop is implemented
 
bah, I'm trying to implement async-interop as third-party library provider, adn it's been a nightmare so far -- I'm not interested in mixing amp with react or whatever, I'm interested in "let the user chose his promise lib"
 
@m6w6 yep, that's fine
@m6w6 Why a nightmare though?
 
mabye it's fine, it didn't feel fine for me, when there's only a done called when in Promise :)
re nightmare, check the archive for discussions with kelunik :p gotta have a smoke
 
@m6w6 maybe you're just not used to that :-)
 
3:17 PM
I have an array of numbers that are either formatted as "123.456" or "123,456" and I kinda need to consider the whole array when parsing them because a single value might be ambiguous. Is there any library that has any work done on this or must I start from zero?
I'm considering building upon this: http://php.net/manual/en/class.numberformatter.php
But I have never used it before.
 
Maybe it's not the intention of the spec, but third parties feel definitly left out
 
@m6w6 I still don't understand why you think it's a nightmare
 
@m6w6 because we ended up having only single letter abbreviations … and nobody cared adding multiletter shortcuts
@m6w6 just checked, either that discussion is too far back (looked back to last week) or there's nothing to find…
@m6w6 why?
 
@m6w6 Seems like the missing link for you is that a promise is not a promisor. You seem to want a interoperable promisor spec?
 
@kelunik Sure, as third party, I need an inter-operable way to create promises
 
3:29 PM
 
@m6w6 Why?
 
@m6w6 why?
 
Anonymous
@JoeWatkins personable
 
@JoeWatkins I guess she's your daughter?
 
yep
 
3:34 PM
@TomasZubiri what you're asking is not clear. What problem are you actually trying to address?
 
I am reading a file that has numbers from different cultures. So one file may have numbers formatted as "12,345.67" and another one might have "12.345,67" or "12345.67" or "12345,6789".
I need to find out what the formatting is so I can properly interpret these values.
 
do the numbers come with some indication of the formatting they use ?
 
I have done something very similar in the past, where I needed to accept spreadsheets from various vendors who could not agree which columns to use. What I did to make it bearable was to:
 
like origin country, currency or something like that ?
 
No, documents from within the same country use both formattings.
 
3:40 PM
how unreasonable
 
One document goes as far as reporting "1,000.00 0.26%" and "128640 0.0157" on the same file
 
i) validate each of the columns, against the possible different formats that the column could contain.
ii) "score" each possible format that column based on how many cells contained a valid entry for that format.
iii) Assume that the best guess for what the column should contain would be the format that has the highest score.
iv) Then show the data imported with the suggestd format, but then allow a human to override what the column should contain.
 
you're going to make mistakes whatever
 
I like this approach Danack.
Except for the 4th step that requires human interaction.
 
but you need that
unless you are okay with erroneous data ...
 
3:43 PM
Oh, and also reshow the data that is being inputted to the user, with red background against cells that aren't acceptable for the format chosen for that column, and green background for the cells that have values that validate for that format.
@TomasZubiri why can't you have human interaction?
 
Where's the fun in that?
 
It's a possibility, but I'd rather only do that if full automation is impossible.
 
It's going to be a trade-off. bad data entry will happen, if a machine is guessing what the format is meant to be.
 
yeah, that ... it all depends what kind of fidelity you need ...
 
What are some cases where format cannot be deduced?
 
3:46 PM
btw I also put in massive hacks for the guessing algorithm. e.g. if the column had 'country' in one of the first couple of lines, I would add quite a bit to the score of the 'country' formatter.
@TomasZubiri costs vs revenue. Both are money values...
s/format/what the number represents/ though maybe.
 
With composer I am trying to automatically format code but when php-cs-fixer fixes one of the directories it will exit and won't continue fixing the rest. Is there a way to tell composer to continue when there is an exit code. composer.json: pastebin.com/fiP6EMAS
 
$html = concat($old, $diff)
	|> filter($interesting_courses, $$)
	|> map(pluck('id', 'name'), $$)
	|> $build_list_view($$)
;
@Sara The above example is why I think we shouldn't require $$; it could just be written like this:
$html = concat($old, $diff)
	|> filter($interesting_courses, $$)
	|> map(pluck('id', 'name'), $$)
	|> $build_list_view
;
 
I acknowledge that columns will need to be guessed or hacked. But I think I can determine the formatting of numbers with 100% accuracy while marking a very small amount of ambiguous cases for human review.
My plan is that I can take all the numbers in the file and try to parse them according to the 2 possible interpretations. (###,###.####) and (###.###,####) If neither has 100% success rate, then mark the file for human review. If both have 100% success rate, then mark the file for human review. If only 1 has 100% success rate, then Parse with that formatting.
 

« first day (2287 days earlier)      last day (2674 days later) »