« first day (2174 days earlier)      last day (2757 days later) » 

12:00 PM
@bwoebi answered in #php.pecl
 
@Gordon i just dont know how to use this vagrant environment
 
hey @m6w6 you ever do any confs?
 
sorry for barging in but
7 mins ago, by Gordon
"how" is explained at https://www.vagrantup.com/docs/getting-started/
 
@DaveRandom nope, sociopathicly living in my attic
 
@bwoebi I didn't, but I do now ... thanks @m6w6
 
12:04 PM
@Traxstar see if sitepoint.com/re-introducing-vagrant-right-way-start-php helps. ignore the laravel/homestead parts
 
@m6w6 confs are great for sociopaths. There are people there, you can plot to kill them and everything.
:-P
well if you ever do let us know :-)
 
@Gordon thank you
 
(go to a conf, I don't need to know about everyone you are plotting to kill)
 
SSL certs are a nightmare >_>;
 
12:08 PM
@Sean You are doing it wrong :)
 
@PeeHaa E_TOO_MUCH_BOEING
 
:P
 
For requests involving a client cert, should the client PEM file just be the actual CRT file or both the CRT and private key file?
 
oh pem files
 
pffft ... nightmare ...
 
12:09 PM
Yeah that's a bit fussy
 
Not done anything involving client certs before and it's actually driving me crazy haha.
 
@kelunik might know how to deal with client certificates
What does the client send?
If it's the pem you surely don't want the private key in there
 
@PeeHaa @Sean No, dunno how to deal with them. But the client needs the private key for sure, otherwise he can't prove anything.
It probably sends the public key (in the certificate) and a signature.
 
lol. read fast and seen that as "sends the public key [...] and a nightmare" ^
anybody proposed a !!blame yet?
 
proposed yes
a lot of times
 
12:13 PM
heh
 
Pen pineapple apple pen
 
@Sean The client generates a CSR. You sign it (or submit it to the CA for signing). No-one except the client should ever have the private key - clue is in the word "private" ;-)
The public key is embedded in the CSR
 
@DaveRandom Aye. This end point is annoyingly secure.
 
I've been considering using client certs for something recently
 
I have private key, a CSR and a signed CRT from the endpoint's trusted CA root.
 
12:18 PM
@DaveRandom something being annoying clients right?
 
Wes
\🐼
 
\o
 
I have a CRT in both der and pem formats
 
der?
!!? certificates der
 
Search for "certificates der" (https://www.google.com/search?q=certificates+der&lr=lang_en)
• DER vs. CRT vs. CER vs. PEM Certificates and How… - 7 okt. 2011 - DER = The DER extension is used for binary DER encoded certificates. These files may… (https://support.ssl.com/Knowledgebase/Article/View/19/0/der-vs-crt-vs-cer-vs-pem-certificates-and-how-to-convert-them)
• What is the difference between PEM and DER certif… - DER–Format: *.CER and *.DER -> contains the X.509 certificate in binary form - again, the same cont… (https://www.odette.org/support/article/1762)
 
12:18 PM
PEM is der afaik
it might be BER
!!? asn.1
 
Search for "asn.1" (https://www.google.com/search?q=asn.1&lr=lang_en)
• Abstract Syntax Notation One - Wikipedia, the fre… - Abstract Syntax Notation One (ASN.1) is a standard and notation that describes rules and structures… (https://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One)
• Introduction to ASN.1​ - ITU - ​ASN.1 is a formal notation used for describing data transmitted by telecommunications protocols, r… (http://www.itu.int/en/ITU-T/asn1/Pages/introduction.aspx)
• A Layman's Guide to a Subset of ASN.1, BER, and D… - Advanced features of ASN.1, such as macros, are not described
 
^ that @PeeHaa
 
> The DER extension is used for binary DER encoded certificates. These files may also bear the CER or the CRT extension.
ah I see
 
@PeeHaa right, PEM is just base64 encoded DER
 
^
So I have all the stuff
I even have the root and intermediate CAs
Beyond that there's WSSE or something like that which asks for a username and password
 
12:20 PM
Are you signing them yourself or submitting them to an external CA?
 
@Sean Might need to chain them all up in a single one
 
@DaveRandom Signed by the CA.
 
@Sean This is still that soap crap I assume? :P
 
Oh yes
 
:D
 
12:21 PM
@Sean in that case you need to include the chain (except root CA) in what you give to the client
 
@DaveRandom You mean.. the server?
 
cat private.key client.crt intermediate.crt root.crt > client.pem
 
Without the root ^
Should work either way, but meh
 
yep, guess they're right =)
 
@Sean The client gives you a CSR. You send that to the CA. The CA gives you a cert. You send a chained cert, except the root, back to the client.
 
Anonymous
12:22 PM
@PeeHaa @DaveRandom you guyz doing anything Friday afternoon?
 
@JayIsTooCommon my money is on getting wasted to Rebecca
 
@JayIsTooCommon I will see what is going on
 
@DaveRandom Ah, this isn't setting up ssl for a website if that's what you're explaining
 
Thinking of strategies to expedite adoption of PHP 7 here, thinking a good strategy to catch 90% might be to capture a days worth of traffic, then play it back at a test environment running 7
 
@Leigh What are you trying to proof?
Performance or fc?
 
12:26 PM
forward compatibility? :p
 
What does stuff run on now?
 
Java
 
lol
 
The client in this case is me. I generated a private key, generated a CSR from it, and passed it to service I'm using. They returned with a root CA, intermediate CA, and signed CRT. I've installed the root CA. Now when I make requests I need to send a client cert to their service's endpoint. With the advice above confirming it, I do think I'm on the right track, if not verified already.
My immediate problem is that using no cert does give a failed cert error from the endpoint, and using the PEM i've bundled gives a bad authentication error, but I think that's the next layer down
I just can't be sure
 
@Sean no, it's giving the client a cert that they present as proof of identity when they talk to your API (right?)
I may be wrong about something above there, but I'm like 99.999% certain it's right
 
12:31 PM
I think it's the other way around
He is trying to talk to an external api
 
ohhhh right
then yeh, surely you just need to send them a CSR?
 
Wes
trying to register to wiki.php.net. what does this even mean? "To which email address do you have to send an email to now?"
 
@kelunik I don't think that str_replace() is necessary
 
@bwoebi more simpler fix: bugs.php.net/…
 
12:32 PM
@Wes lol
I feel a UX tweet coming up :P
 
I started writing an ASN.1 lib once but I abandoned it because I re-located the will to live
 
Wes
@PeeHaa no i already gave up
 
@JayIsTooCommon something, I'm sure. No idea what. When I've got Bob from the airport I'll give you a shout.
 
@Wes Read the instructions. :P
 
@m6w6 does this also work properly with static compiles?
 
12:35 PM
ugh did kali release a new version or something?
 
I tested --with-readline and --with-readline=shared
READLINE_SHARED_LIBADD is empty if ext/readline is linked statically
 
Wes
@kelunik yea list@internals but it's too much work, i'll just gist something
 
thus the name...
 
@Wes it's a sanity check to verify that you actually read the page, it tells you on the same page ;-)
 
anyway, o-~ (i.e. gotta have a smoke)
 
12:37 PM
@DaveRandom It's "there" but it's written up like somebody who doesn't know angliesh
There is no relation between the field and the sentence
 
Anonymous
@DaveRandom @PeeHaa okie doke
 
@JayIsTooCommon At what time are you in manchester?
 
on time
 
I wouldn't be so sure
 
@m6w6 good, will push that then
 
12:41 PM
Is there any survey library for laravel such as this plugin in wordpress wordpress.org/plugins/awesome-surveys/screenshots?
 
such request
Short answer: no
 
@PeeHaa 5.6
but we throw on warnings and deprecations, and have a whole vendor directory full of junk
extensions that may or may not die in a fire
etc.
@PeeHaa According to ~/Downloads I got 2016.2 on the 19th - If you were using a VM you're still stuck on 2016.1
 
hmmm that may explain the influx of kali crap on SO
 
Anonymous
1:01 PM
@PeeHaa 1:30pm
 
@JayIsTooCommon kk
 
This or Mr. Robot
 
@tereĹĄko ping me when you have a minute?
 
Also possible
 
!!should @nikita2206 watch Mr. Robot or waste time in chat?
 
1:04 PM
@⁠nikita2206 should waste time in chat.
 
hahhha Jeeves
 
That's what I was planning on doing
 
!!should i die or sleep?
 
You should sleep.
 
@Jeeves thanks
 
1:10 PM
@Linus You're welcome!
 
1:26 PM
Still alive. Someone stole our internet in the resort. Literally stole the cable from the road
 
:P
 
Bye for now!
 
\o
 
@Fabor lol!
 
> "stole our internet"
 
1:30 PM
@DaveRandom Should watch season 1, but not bother with season 2
 
@Fabor that's why you buy wifi cables
 
mrnng
 
Thanks for your help everyone
turns out there was a problem on their end
They didn't associate the username/password auth with the signed certificate they gave us
Lesson learned: Don't trust the government
 
@Sean never trust the fucking government :D
 
1:35 PM
I've been racking my brain over this for half a week and it turns out it was their fault >_>;
 
got a similar problem last week in office ...
 
Hi guys im trying to edit an image in pyrocms admin panel I inspected the element and I saw that the images come from a domainName.com/files/thumb but when I want to store a new image it doesnt get stored sorry for my english
where I can find that directory its not under public_html
 
thats fucking annoying if u sit there and think wtf my code is well and then u call the tech support from the other company and they tell you "oh yeah its our mistake"
@undefined most time a webpage is divided into public and private folder. you cant get access to the private folder if you dont got acces to the server. but in most cases the images should be stored in public
 
I can ssh into the server I didnt find that folder
 
can u do ls -lrat in page folder ?
and post the result here ?
 
1:40 PM
can post the result in here sorrt
y
 
so you got a public html folder ?
 
yes
 
any other folder in there ?
 
but cant find files/thumb in public_html
system addons ...
 
when you go to the webpage and go to inspect element, can you find the link over there to the image ?
 
1:42 PM
yes
 
and this link goes to ?
can u post exact link ?
 
yes
 
domainname.com/files/thumb
 
Wes
1:43 PM
i've always wondered why the output of $array1 + $array2 is right to left rather than the opposite :|
 
might be that files is an alias set in .htacces ? can u have a look in it ?
 
Wes
eg
$a = [0,1,2,3];
$b = [4,5,6,7];
$c = $b + $a; // [4,5,6,7]
 
ohkay
 
@Traxstar doesnt exisit
 
1:44 PM
@Wes That's left to right imo
 
its a hidden file.
use ls option -lrat
 
As in the the latter overwrites the first
 
@PeeHaa ah I accidently cut of a number from the v param. this is the original youtube.com/watch?v=d9TpRfDdyU0
 
Wes
@PeeHaa which is not what it does :P
[0,1,2,3] + [4,5,6,7] i expect it to be 4,5,6,7 but it's 0,1,2,3
 
doesnt exisit
 
1:45 PM
you are using any cms ?
 
@Wes well… with a non-commutative operator, you have to choose one side for the one function and another for the other one… In this case I imagine it like having the array ($b) and adding what's not yet in the other ($a)
 
@Wes Oh right.
your example is confusing
2 mins ago, by PeeHaa
ohkay
I think you should leave the internet alone for a while now :P
 
@PeeHaa let it sink. it will grow on you
 
Wes
@bwoebi not complaining about, it's just a thing to keep in mind. but makes more sense now, it's "add unless it exists already"
 
@bwoebi if I want a once() callback to be a generator, do I need to resolve()?
 
1:48 PM
@DaveRandom no … also, you mean coroutine(), not resolve().
 
As long as it isn't [4,6,8,10] :P
 
cool, ty
 
@Traxstar pyrocms
 
@bwoebi No I was meaning more passing function() { resolve(function() { /* do stuff here */ }); } to once
I think coroutine() invokes the callback doesn't it?
I don't want the generator to be started until once() fires
 
@DaveRandom no … that's the task of resolve().
coroutine() is just wrapping
 
1:51 PM
PyroCMS: because it needs to be burned with fire
 
oh right yes
 
@PeeHaa lol
 
@bwoebi btw I've never actually used coroutine(), I don't really understand why I would tbh
I don't understand what problem it is solving
 
@DaveRandom It's just wrapping function() use ($yourFunc) { return resolve($yourFunc); }
 
@undefined are you using any CMS ?
 
1:53 PM
@bwoebi huh
 
@Traxstar pyrocms Codeigniter
 
Stupid question incoming:
what does that wrapping do instead of just using resolve?
 
@DaveRandom just look at the code: github.com/amphp/amp/blob/v1.x/lib/functions.php#L736
@PeeHaa … I mean it returns a closure, which when called calls resolve
 
oh
 
@bwoebi yeh I have before and tried to understand where/why that would be useful... I just don't get it. I'm sure I will eventually, one day, but... not today
 
1:54 PM
@DaveRandom for the same case where you wanted to pass a Generator to once()
 
like, can I make this any better with it?
        $this->timerWatchers[$identifier->getIdentString()] = once(function() use($identifier) {
            yield from $this->unapprovedRoomFirstReminder($identifier);
        }, $remind1Delay);
 
no.
 
(unapprovedRoomFirstReminder is a private method)
@bwoebi OK fine, then today I will continue to not get it :-P
 
@DaveRandom It's just for the case where the callee doesn't handle Generator return values itself … once() does that for you, so no need to coroutine() there.
 
@undefined ah sorry didnt read that before. i never used this before.. so only thing i should guess that there is an alias for the folder or an htacces or something like this. The Folder shouldnt be hidden, otherwise the browser cant find it, so we can leave this out. What if the file is hostet by the CMS in somethink like the template folder, cause the CMS Makes changes the root to the template once ?
 
1:57 PM
@DaveRandom also, you could just return instead of yield from there.
 
maybe the folder u are working in is not public/files, it is public/templates/your_template/files
@undefined
 
@bwoebi yes I just realised that
ty
 
@undefined have a look at this: stackoverflow.com/questions/6630770/…
 
"Dan Akyroyd is presenting at PHPNW? Fuckin' hell, wasn't he in ghostbusters?!" - My boss
12
 
lol
 
2:09 PM
@undefined could u fix it ?
 
@Jimbo Not sure if I can tweet or not :)
 
Sure
:D
 
Tweet 2.0 ^
 
uhhmm yeah. that's the reason I left the old one in place I guess :P
 
2:11 PM
"Dan Akyroyd is presenting at PHPNW? Fuckin' hell, wasn't he in ghostbusters?!" - My boss
 
!!remind 5h fix ^ tweet
cough cough @Ekin
;-)
 
:D I was trying to rebase the merge commits first... but, but... it's my first coffee and that big green button is too shiny
 
hehe no worries. Just a friendly reminder :P
 
How should this question be handled? The solution is more or less "have you tried running it to see what it does" stackoverflow.com/questions/39749395/2-default-case-in-switch
 
@KevinMGranger haha damn :D you're right ^^
 
2:23 PM
Morning.
 
@Traxstar no not yet
 
@undefined have you checked what i saied about the routing ?
 
@Traxstar no
 
@undefined try it maybe ? :) :D
 
2:24 PM
random thought of the moment: how come we're in 2016 and html spec still hasn't realized we need a simple way to create fixed table headers, without needing to absolute width everything
 
@Traxstar im following answers in the link u gave me thank u bro
 
@undefined no problem :) hope it works. write me again if it doesn't work and u need more help
 
ok thank you a lot
 
u are welcome :)
 
Wes
@DaveRandom i'm writing the unpacking into array literals rfc. do you have new ideas/thoughts about it?
i needed a break from javascript so i'm doing that :B feels good
php is love
 
2:31 PM
@Wes haha :D only engineers understand ^^
 
@Danack If you need someone to look over your slides I'm happy to swap
 
hi everybody
 
@FĂŠlixGagnon-Grenier fixed? You mean like stays there when you scroll or..?
 
@FĂŠlixGagnon-Grenier Pretty sure I have seen @Wes do a hack
 
@LeviMorrison yeah
 
Wes
2:39 PM
i haz that! :P it's done with flexbox though, even supports colspan if you are brave enough
 
u crazy guy
 
Wes
it's not that crazy, i've already used it several times
 
I mean there are a gazillion css, js, jquery, libs out there that does it
each one I can find resort one way or another to absolute width and heights to manage the thing
 
Wes
aaaand how are those better than my 20 lines css :B
 
not sure :)
my problem is, when creating dynamically filled tables, with an undefined number of columns, I'd rather not use js to calculate displayed width, then assign to each rows
which gets even worse when trying to give width that respect columns with more content
 
Wes
2:42 PM
damn i can't find the jsfiddle
 
I believe in you
 
Evenin
 
I wish there'd be a 'display: table-header-group-fixed' that would just make that thead fixed, respecting the width like tables do
 
Wes
jsfiddle.net/xDLvg @FélixGagnon-Grenier found it :P and, if you add a little bit of javascript you can even make it behave exactly like tables, with columns sizes calculated upon their min-content
 
shiite
@Wes thx, u rock
 
Wes
2:46 PM
@FélixGagnon-Grenier it will never happen. instead it's very likely that flex-grid will happen (already existed in mozilla's flexbox 0) and what would do can be emulated easily with said little bit of javascript
 
that is actually not so bad ^
 
Wes
you can use flexbox unless you need to support msie 8,9
starting from 10 you can actually think to do stuff with it :P (msie 10 has a different syntax, though)
 
!!canon list
 
The following canonicals are currently supported:
• errors → https://stackoverflow.com/q/845021
• headers → https://stackoverflow.com/q/8028957
• globals → https://stackoverflow.com/q/5166087
• utf8 → https://stackoverflow.com/q/279170
• parse-html → https://stackoverflow.com/q/3577641
• sqli → https://stackoverflow.com/q/60174
• operators → https://stackoverflow.com/q/3737139
• mysql → https://stackoverflow.com/q/12859942
 
2:52 PM
ugh can you add the json thing @PaulCrovella? <3
 
aww that looks nice @Jeeves <3
 
@Ekin I love you too :-)
 
Wes
@FélixGagnon-Grenier if you need help chat.stackoverflow.com/rooms/29074/html-css-webdesign
daaaaaaaave
 
spaaaaaace
 
@PeeHaa what did I flag? I did not flag anything to my knowledge ...
 
2:59 PM
hmmmmm vewwy odd
Also you're somewhat late :P
 
umm how do I put the hacktoberfest label in my issue :V
 
Yes, forgot to click on the tab this morning ...
 

« first day (2174 days earlier)      last day (2757 days later) »