« first day (2274 days earlier)      last day (2899 days later) » 

00:51
I feel like the core idea of this library is good. Hoewver its dependency list is way too large for something like this and it also messes around with data-* attributes to allow "filtering".
If it dropped most (perhaps all) of those dependencies and focused just on validating based on [type], [required], etc, it would be a lot better.
Wes
Wes
01:21
@Ekin noice
just watched the magnificent seven. meh.
01:38
i have a folder which save some files that shown into php page. can i have some exception of certain file?
02:21
@Wes Why don't we just fix PDO again?
We are doing "language design by least resistance"? :D
By the way, this is why documentation is insufficient and the march towards more type-safe features is ongoing.
 
3 hours later…
05:20
moin
Morning @JoeWatkins
\o
05:33
Morning all
\o
06:20
!!dad
Where does Fonzie like to go for lunch? Chick-Fil-Eyyyyyyyy
O/
06:40
So how Jit thing worked in php?
that's a pretty complicated topic :)
:)
checkout the jit-dynasm branch of zendtech/php-src
I think there might be a readme or something in it ...
would love to discuss but trying not to get distracted ...
ah will do today
will ask some questions while doing that ..
07:19
Morgen
morgen @MadaraUchiha
07:36
matin
In this new year I found myself using the sheer amount of mails recieved around 8am @krakjoe as an alarmclock, #php #github
\o
안녕하세요
morning
@Kalle_ EVERYONE OUT OF BED ... WORK TO DO 😁😁😁
I just saw this: vimeo.com/121096680 and thought it was beautiful
07:54
Morning
o/
Any news regarding the realpath cache impl?
08:07
I merged the updated configuration, when I've time to sit down and work out a better impl, I'll do it .... unless bob gets to it first ...
Thx for merging
In case noone gets to it we should add a php.net bug so it wont get lost
morgne
@staabm add ?
\o
@JoeWatkins of course I can do that... will do.
no I mean, I dunno why you would add one ?
08:21
morning @PeeHaa
mornings!
Anonymous
moin
@JoeWatkins just to make we sure we wont forget
so add and close ?
08:22
If its on your list for the next days for sure, I dont need to
Regarding the cache effiction, not the php-ini thing
oh sorry, my brain isn't working ...
Eviction
yeah, I just got that ...
Sorry @JayIsTooCommon was busy and tired yesterday
please do add bug
08:23
Doesn't the builder build incoming events instead of outgoing messages?
Anonymous
@PeeHaa that's ok (old age), Yeah it does but it'll have to log it on incoming because I need to get the ID of the message
k
What format will the message queue have
Anonymous
ergh, I need you to answer a question before I can answer that
Anonymous
@PeeHaa What format should the message queue have?
Idunno. I am asking you. I wasn't sure why you need the incoming message id so I asked it like this :P
Anonymous
08:28
oh you mean generally, i thought you meant a ds thing.
OMG, I registered an account on Pluralsight, but I forgot to cancel the preapproved payment. Just now, I received a message telling me that the payment has been made.
Could I ask them for a refund? I just forgot about that.
@ZhengquanBai I think you meant to click on pluralsight support chat but somehow ended up in here
Anonymous
@PeeHaa what do you mean by format?
Anonymous
in JavaScript, 3 mins ago, by Mr_Green
yeah try asking
JayIsTooStalky
Anonymous
08:32
JayIsAFuckingGenius
I wanna know if anyone has any experience with this sort of thing.
@JayIsTooCommon Maybe I'm not unterstending what you are working on. But why would you need the id of the incoming event?
Yeah, I train people in asking for a refund.
Anonymous
@ZhengquanBai Just ask them? Why do you give a shit if anyone else has experienced this.
Anonymous
@PeeHaa !!remove
08:34
I only charge $50 an hour. Skype?
Anonymous
@littlepootis you sound like @Jimbo's mum
ay lmao.
@JayIsTooCommon Oh. That's the one which removes arbitrary messages?
Anonymous
@PeeHaa Any messages posted by Jeeves. So for every message, detect if the ID == Jeeves and if so log the message ID. pop() when > 10. Then use those ID's for reference when someone attempts !!remove.
Anonymous
but i've just noticed a problem with that approach.. It wouldn't work on a per room basis. So I think instead I'm gonna have to use room storage
Anonymous
08:42
i'll just come up with some code first and then go from there, will probs be easier
How to get @attribute value from given array 3v4l.org/16LTl
I have converted xml to array using json_decode();
@JayIsTooCommon yeah
posted on January 06, 2017

New Cyanide and Happiness Comic

However instead of checkng incomign messages and checking it they are his why not check the response of outgoing messages?
That contains the id
Anonymous
Because I need the message ID
09:00
ah, fuck
it's -18°C outside
Happy Fryday
at least there is that
@tereško where are you from?
Latvia (as it says in the profile)
ohh
yup -13 degree as google says
09:06
no, it's -18
according to local measurements
well .. 17.6
> why not check the response of outgoing messages
AFAIK if you post a message the response is the message id
Anonymous
@PeeHaa but they wouldn't have the message ID? The message hasn't been posted at that point
Anonymous
oh.
IIRC messageid + timestamp
Anonymous
that could be easier
09:17
test
{"id":34962394,"time":1483694242}
^ that's the response I just got
Anonymous
Ah awesome, that'll be much better
\o/
Anonymous
thanks :B Will try tonight
I think I will be better available tonight. So if you have questions I probably will be here
!!remind examples
Examples:
• !!reminder foo at 18:00
• With timezone: (ie. UTC-3) !!reminder foo at 18:00-3:00
• !!reminder bar in 2 hours
• !!reminder unset 32901146
• !!reminder list
• !!in 2 days 42 hours 42 minutes 42 seconds 42!
• !!at 22:00 Grab a beer!
Anonymous
09:19
@PeeHaa noice
!!remind check if internals works yet in 10 hours
Reminder set.
Anonymous
did you contact them?
I only just remembered :(
Was busy last night and forgot about it
do anybody have any idea about xml to array?
Anonymous
09:23
!!? xml to array php
Search for "xml to array php" (https://www.google.com/search?q=xml+to+array+php&lr=lang_en)
• How to convert xml into array in php? - Stack Ove… - 5 jul. 2011 - Another option is the SimpleXML extension (I believe it comes standard with most … I… (http://stackoverflow.com/questions/6578832/how-to-convert-xml-into-array-in-php)
• Parse XML data into an array structure - PHP - This function parses an XML string into 2 parallel array structures, one ( index ) containing point… (http://php.net/manual/en/function.xml-parse-into-struct.php)
Anonymous
@PeeHaa business good?
please check this link
Anonymous
@Exception 3v4l.org/Ovbo0
@JayIsTooCommon Meh I had a day full of complaining and bitching clients
Anonymous
09:24
php.net/manual/en/language.types.array.php @Exception have a read of this
bu i thought its object
@Ekin don't you have to wrap all these yields in amp\waits?
Anonymous
@Exception No it's an array, that's why it starts with array (
okay...
Anonymous
@Exception Have a read of these two, it'll probably help your understanding php.net/manual/en/language.types.object.php php.net/manual/en/language.types.array.php
09:28
@JayIsTooCommon thanks I will look into it
I love pluralsight.
I got a refund just now.
i.imgur.com/mrDpcrb.png Damn that's helpful
Moin 11
@JayIsTooCommon You just taught me a phrase: "give a shit". I'm grateful for that.
2
@蔡正海 你是中国人吗
@Sean Yeah that's annoying as fuck
Anonymous
09:36
@ZhengquanBai anytime
PostgreSQL has roles, oh my god I'm sold already
moin rebeccas!
Anonymous
morn sean pmm o/
@JayIsTooCommon you learned someone to give shit xD this room never let's me down ^^
Anonymous
:P
09:49
I need some suggestion regarding Rest API
mornin
mornin
here is a free advice: "pretty URLs" have nothing to do with REST API
@Trowski stream, promises, loop, dns filesystem io… not that much ^^
@tereško We have an application that allows user to upload file on rest end point. A user is not allowed to have special characters in the filename, upload filename without extension and there are some restriction on filename length too. Do you think it would be good to give 400 - BadHttpException if any of these validation fails
09:55
BadHttp?
That makes no sense
If anything bad request
400 is actually "Bad Request"
@tereško Wrong ping?
not really
?
Why are you repeating what I just said?
:P
@PeeHaa because what you said was not in english.
09:57
?
2 mins ago, by PeeHaa
If anything bad request
yes
please, translate
If anything (it should be) bad request
09:58
that would require a comma
That ^ would require a capital T
@tereško in 'murican english they don't put commas
:D
@tereško how can you guide so quickly? o_O
google know I to how use
also, I was looking for options to format my own SQL code couple days ago, so I knew what I wanted to find
@tereško +1
:p
10:16
"We told them we'd replace it later!" https://t.co/8zJ3USGWtc
@Leigh can you look over a thing for me ?
I can look over a thing trying not to over look a thing, if you desire, sire
this is okay, right ?
sorry, not the comment, I mean the patch
Ah, well I started with the comment :D
okay, next review patch :D
10:26
Good mornings
@JoeWatkins I think I'd want more NULL checks, not sure if X509_get_serialNumbercan return null, but the return is passed directly into the bignum conversion function, likewise for the outermost function
got any time today ?
Well, I'm a little light on work-work
there's already code there assuming it can't fail
10:30
yea, also it's called twice now, we can extract that at least
yeah true
can you improve it with a pr for me please ?
Sure
or just commit, if you have karma to do that ...
thanks you muchly :)
I do :)
cool, just commit improve then ... ta ;)
10:32
OpenSSL internally uses X509_get_serialNumber without null checks on the return, so assuming safe
yeah, assume same ... I'm not sure about this RETURN_FALSE, but if it really is in a critically broken condition, I guess a segfault might happen if it weren't there maybe ... or something else bad ...
Yea I'm not liking this RETURN_FALSE either
at the same time I don't want to omit the array key if for some reason it does fail. I kind of want to throw a warning...
it does return false further up though, if the cert is invalid
11:02
I think i lost answer to my question
Wes
Wes
mornings
Could someone please guide if it is correct to send 400 error code for validation error ( file length exceeds, special characters) or please suggest some better error code
Wes
Wes
is the ml still down?
@Leigh seems okay then
Wes
Wes
hey joe
11:16
yo
I just remembered, I hate libssl
3
romnings
good morrow
@PeeHaa yeah I shouldn't write tests that early in the morning :P
also I still use 4G
@JoeWatkins I'm confused. We don't use OPENSSL_free()on any of the other resources returned by x509_get_* funcs, but it is being used on this one...
11:28
@Leigh can you run it through valgrind, see what happens ?
it could be because the others are all part of parsed cert and are only returning a pointer to that, whereas this one is actually allocated
also, openssl leaks a bunch of memory, wouldn't be all that surprised if we are doing it wrong ...
(vg --leak-check=full --show-reachable=yes)
heh, waiting for run-tests.php -m to finish, you're right, whole bunch leaking
yeah it's very poor ... I'm scared of security stuff ... it's not that I couldn't do it, but almost anyone has more experience than me ...
Shame those people aren't usually the ones implementing :)
there are just so many caveats ... it's very difficult to write rock solid sec sensitive code whoever you are .. so I defer to someone who actually likes to do that, rather than have-a-go-and-hope
Wes
Wes
@PeeHaa i'm missing already testing the way i did :B that was super easy. i just throwed everything in and checked the result. now i'm actually required to think, and ain't good at that :B
11:41
@JoeWatkins This is why I'm quite enjoying Go, seeing commits by actual crypto experts (from Google)
Well, a reason I'm enjoying it
Wes
Wes
how can i improve engrish here? ie, how do i get rid of the double "remove"? "It throws an error when attempting to remove more element than there are to remove."
yeah, that's valuable ... we have a few people who are pretty clued up ... but no organization between them, not real effort to actually improve security ... we only bother to fix stuff when it's reported ... but too much code gets committed that a sec expert would reject ...
> It throws an error when attempting to remove more element than exist
Wes
Wes
wow. that really sounds weird to me :P
perfectly good engrish
Wes
Wes
english is hard. i try to read everything i can but i don't feel i'm making progresses. still feels an alien language to me :P
11:47
if I can't guess English is not your mother tongue, then you are doing fine ... I can't ...
Wes
Wes
lol
/s/more element/more elements/
Wes
Wes
"It throws an error when attempting to remove more elements than there are."
"It throws an error when attempting to remove more elements than there exist."
would these be correct too? just out of curiosity
former is
It throws an error when attempting to remove more elements than exist in the insert word here
would also work ... Collection ... BasketOfShit ... whatever ...
Wes
Wes
:P
thanks :D
@Patrick Are you here?
@JoeWatkins What are your thoughts on specialising the Volatile class with VolatileObject and VolatileArray? This would mean that VolatileObject no longer needs to enable for array access, and VolatileArray could use the same empty checking as the SXE object, so that code like this works as expected.
you couldn't change default behaviour without breakage, but no objection to specialized versions of volatiles ... feel very free to do that :)
@JoeWatkins Ok, I'll give it a bash later today :)
12:06
@bwoebi I guess we should suggest PHPUnit (github.com/async-interop/promise-test/blob/master/…) instead of requiring it? Depending on the project, it might conflict somewhere and be run as PHAR instead.
^fwiw we do that ... when you have 3m loc, anything you can cut from deps is a good thing ...
@kelunik why not require-dev?
@Danack Both then.
oh wait - there's no actual unit tests in that project....so phpunit can't be run from it....so there's nothing to run.
@Danack require-dev is still useful to have autocompletion
Anonymous
fuckk
Wes
Wes
lol
Traffic hasn't even reached normal maximum yet either, not all schools have gone back yet and air pollution levels tend to be inherently lower in cold weather
Also last year was the first year in recorded history where CO2 levels never dropped below 400ppm \o/
12:25
@DaveRandom something something temperature inversion captures smog.
@JoeWatkins Which configure switch do I need again to create the pecl binary? It's not --enable-pecl.
Bristol has a similar thing I think....calm cold days captures a whole load of gunk over the city.
"So I'm making a curl request and it's not reading the data back correctly" Turns out the end point he made to receive the request was print_r-ing the data.
#justfridaythings
Anonymous
@DaveRandom It'd be good to have a parliament that gives a shit
@Danack indeed, and we could also debate the general sanity of imposing a legal limit on something that has no single responsible party. It's largely symbolic, but at the same time I wouldn't want to remove that limit because it generates "project fear"-type news stories with the potential to have a positive impact for once
12:28
are you building CLI @kelunik ?
possibly you have --without-pear which I believe is dep still
it should be built automatically, unless --disable-cli is used .... but that doesn't sound like you :)
@JoeWatkins I have a --disable-all build, yes.
yeah that doesn't disable cli though
@JayIsTooCommon It's not just a governmental issue. You can't legislate that the genera; population must care about it.
(or pear)
I'll try --with-pear.
12:30
worth a shot
I have pecl, but only for 7.0.0alpha1. ^^
Hi All, Could you please tell if it would be correct to give ConflictHttp Exception in case the uploaded file found to be empty( We dont want user to upload empty file ).
@DaveRandom climate change is a chinese hoax
mv: cannot stat 'Zend/zend_language_scanner.loT': No such file or directory
libtool: link: `ext/tokenizer/tokenizer_data.lo' is not a valid libtool object
make: *** [sapi/cli/php] Fehler 1
make: *** Auf noch nicht beendete Prozesse wird gewartet …
libtool: link: `ext/tokenizer/tokenizer_data.lo' is not a valid libtool object
make: *** [sapi/phpdbg/phpdbg] Fehler 1
libtool: link: `ext/tokenizer/tokenizer_data.lo' is not a valid libtool object
make[1]: *** [sapi/cli/php] Fehler 1
make: *** [install-pear] Fehler 2
Hm.. that didn't happen before.
have you annoyed any gypsies ?
you may be cursed ... if not make distclean && ./buildconf --force && ./config.nice && make -j32
or however many j's you have ...
Anonymous
12:34
@DaveRandom Agreed, but they're our 'leaders'. It'd be nice to hear an actual plan for once. Stop concentrating on destroying land for houses and see the bigger picture. It'd be interesting to know how much stop-and-go traffic contributes to air pollution because of how shit our roads are
have you heard about this ice shelf thing ... something a fifth of the size of a whole country is about to break away from main ice shelf ... sounds like end of the world kind of shit
Hello, have two variables one name corp_resp have that output string(3) "0.3" string(4) "0.35" string(3) "0.4" and another corp_resp_tem have that output string(3) "0.4" string(3) "0.6" string(3) "0.8" i want to do that: $total = (0.3*0.4)+(0.35*0.6) +(0.4*0.8) => 0,12+0.21+0,32 $total=0.65
how to do that in php?
it doesn't matter, the world is going to end ...
@ChristopheCosta so these variables ar arrays, right?
Anonymous
@JoeWatkins lol
12:39
yes @Al.G.
brb digging bunker
@ChristopheCosta In short: iterate through both of them, each time add the product of the two to e.g. $sum.
@JoeWatkins I always use a fresh zip download, so that doesn't help.
Do I need to test private methods? I feel like if the public ones can use them and are tested, I wouldn't?
@kelunik I have a zip on my jeans ...
otherwise I don't use archives, but it shouldn't make a difference I guess
@Ekin If a sentence starts with "Do I need to test" the answer is yes
unless someone or something else tested it first
12:42
@Ekin Private methods aren't a part of the interface. So I would say no.
wut, you mean public interface, and why should closed code be unstable ?
@Al.G. can you give example please?
@JoeWatkins It happens directly after --2017-01-06 13:38:43-- https://pear.php.net/install-pear-nozlib.phar is fetched.
@ChristopheCosta Pseudo-code: $sum = 0; for i=0; i<count($arr1) { $sum += $arr1[i] * $arr2[i] } echo $sum
12:44
oh wait, find tokenizer.re (forget full name, check repo)
there may be a tarball without that file, stas accidentally deleted it the other day, don't know what if anything was pushed out in between
@Ekin No never try to directly test private methods
Alright
If you're testing private methods you're doing encapsulation wrong.
Yeah point taken
maybe not directly, but they should be tested imo
you never write private code before it's used ?
12:49
If I write code for a private method I expect it to be a black box to my encapsulation. Otherwise, what's the point?
Wes
Wes
@Sherif @PeeHaa you see. keep getting contradicting information all the time :B
I feel like I need to make sure the private method does it's work right on the public one I test though
@PeeHaa that test you linked earlier is the reason why I asked in the first place
Right, if the public interface fails a test then that's all you care about. You should never care about testing implementation details.
Wes
Wes
not saying you are wrong @Sherif i just realized i'm utterly clueless about the whole testing thing
@Sherif oh I see, and you can write black boxes without needing to test ...
12:51
Also I don't need to wait, that wasn't a promise returning one @PeeHaa
@JoeWatkins I test the interface. If it works, I don't care what's the underneath the private methods the public interface calls on for me. Nor should I.
@Ekin But how do you know the promise resolves to the correct value?
@Wes Why?
@Sherif fine, if public methods are calling it ... what if you are not the only person working on a feature ? what if someone else is going to come along and rely on your black box ?
@PeeHaa I didn't write a test for that yet though. I just wrote quick tests for the return type of two methods. That auth one wasn't returning a promise, it was an array
@JoeWatkins Then they're working on the same interface I am and they should be careful when relying on my implementation details.
private means they must be using it from my interface.
Wes
Wes
12:53
@Sherif if you don't make assumptions about the implementation then your only option is testing all possible input combinations
I did say if someone/something tested it first then there's no point ...
> should be careful when relying on my implementation details.
I mean ... I just don't know what to say to that ...
Wes
Wes
and with all i mean all
@Wes According the principle of encapsulation that's an exercise in futility. By testing the public interface, I am testing all possible input combinations, since the interface can only receive input from the public-facing methods.
@Sherif no it doesn't, what if they are working on the same feature in the same file, maybe the next day/hour or whatever ...
@JoeWatkins Then why are they relying on implementation details and not the interface spec?
I can't fix stupid.
Sorry.
12:55
@Sherif When you say interface what do you mean cc @Wes
I mean those methods which I defined in my interface, which can only be public.
Why are you calling on private methods to use a class with a well-defined interface?
Wes
Wes
@Sherif example. function add(int $addend){} how do you know that all int are handled the same way? you can't grasp that by looking at the signature only. so your only option is testing all integer values
Ye, but said interface allows an int
That breaks the entire principle of encapsulation, which allows me to change implementation details without breaking the interface.
Not so much an int in range of 1 - 10
12:56
That is the entire point of an interface.
@Sherif I'm not talking about code that is already in production ... in case not clear ... I'm talking about collab with other team members ... they aren't relying on an interface, they are developing the same interface with me ...
but they are relying on details, which should be tested, by one of us, preferably whoever wrote the details ...
@JoeWatkins Right, if they're developing the same interface then they are liable for understanding the same implementation details. Nothing has changed.
@JoeWatkins Wrong, that will never work.
You're now writing a test that's subject to understanding implementation details, which do not constitute the validity of the interface.
Wes
Wes
don't be proud guys we are not the only having different opinions about this, just let's have a smart conversation because this is interesting :P
If the test breaks, what useful information am I getting? That I changed an implementation without breaking my interface? How's that useful to anyone?
All I should care about is that my interface keeps its contract. Not whether or not the underlying implementation details are changing. That's just silly.

« first day (2274 days earlier)      last day (2899 days later) »