« first day (2209 days earlier)      last day (2755 days later) » 

1:37 AM
Hello, people!
Just informing that the formal grammar for PHP integers in the doc (secure.php.net/manual/en/language.types.integer.php) is missing the e-notation.
I'm currently without permission to edit.
12e+1, 7e3 and others are not being satisfied by the spec.
I believe the first rule of the decimal could be taken as [1-9][0-9]*[e[+-][0-9]+]. Correct me if I'm wrong.
 
 
1 hour later…
3:07 AM
morning all
 
 
1 hour later…
4:24 AM
hey guys, has anyone here implemented google Oauth 2.0 for authenticating users ?
I'm thinking about implementing it in a web app, not because I want to access any google service. just to base my app's sessions on the users google session - and therefore avoid writing to code to perform user registration etc...
interested to hear on anyone else's experience with the google oauth2.0 API, positive or negative.
 
moin
 
moin Joe
 
hi Joe
 
4:47 AM
\o
 
o/
 
5:27 AM
@the_velour_fog I did once
@the_velour_fog it's as easy as facebook or twitter
@the_velour_fog Oauth 2.0 is a little difficult to understand at first but it's very simple to implement
 
@Valentincognito cool, yes it looks really simple. But I notice the method calls have changed and there seems to be no reference documentation for methods and methods signatures etc developers.google.com/api-client-library/php/guide/…
Did you find the lack of documentation a problem at all?
 
I'm checking my notes
haha
I started an article about this that I never finished
@the_velour_fog Btw, I know laravel isn't always well welcomed in this chat, but the socialite provider is pretty sweet
I used it again recently, maybe if you dig a little bit into it you can find the missing pieces: github.com/laravel/socialite
 
5:44 AM
hah.. yes I have implemented a registration and login system using laravel 4. It was a bit of work but I had no problems with it. I thought laravel "all or nothing" framework though? is it possible to use individual components like say Symfony? that would be interesting
 
@the_velour_fog I am afraid to not be able to answer that question
I have never tried
@the_velour_fog I am actually never sure what's the best practice with Oauth 2.0, but usually if I only need to login users and not access any google services later I do it this way: login button -> get google access token -> get user profile with token -> write username / picture etc.. in DB -> log the user via a combination of an ID and a random hash -> save the session
and every time the session is expired I just get the token again -> get info -> check if the user exist in the DB if yes log in the user if not create it and log in
 
hey guys
 
just for login I don't bother storing or refreshing the token in the DB
 
hey taco
 
5:51 AM
what's up
 
off topic I jsut discovered something pretty sweet
the postman app
I suppose this isnt completely off topic since you could perform tests for your Oauth2.0 with it @the_velour_fog
 
postman the browser extension? for checking the results of POSTs?
 
I didnt try the browser extension I just downloaded the app
you can store tokens and play with public APIs
 
you can get a browser extension, so if you have buillt an API, but haven't got the front end ajax requests written, you can do POST's to your API and see what your backend is returning
 
that's pretty sweet too
I will try that next
 
5:56 AM
I highly recommend Postman as well
 
I am trying to find it on the chrome store
but I only see postman interceptor and the actual app
 
oh is there a desktop app? I use the chrome extension
 
ah okay I see
yeah that's exaclty the same then
 
@Valentincognito I think I will write a test prototype similar to what you described in your message above: in the init code, check if $_GET['code'] authorization code or $_GET['error'] exists. if it does, run $client->authenticate($_GET['code']);
and set access token $access_token = $client->getAccessToken(); and then put the access token in the users $_SESSION
after that check if the $_SESSION['access_token'] is set, if so let the user see protected content
 
6:14 AM
@the_velour_fog sounds good to me
I just realised 2 things with postman.... 1: javascript session is a bad thing. 2: my personal site is so secure that I cannot access it
 
and give them a "logout" link which unset $_SESSION. if $_GET['code'] is not set, then only show them the link to request an authorisation code from google
@Valentincognito my personal site is so secure that I cannot access it . why can't you access?
 
because of the csrf_token i believe
@the_velour_fog apparently I have to set some headers to make it work but I am unsuccessful so far
 
you need to pass a CSRF token in the headers?
 
yeah I tried this @the_velour_fog stackoverflow.com/questions/27182701/…
but it doenst work
 
posted on November 02, 2016 by krakjoe

Refactor of Brushes: - UI\Draw\Brush abstract UI\Draw\Brush\Gradient - UI\Draw\Brush\LinearGradient - UI\Draw\Brush\RadialGradient UI\Draw\Color Improvements: - Direct access to channels by name (r, g, b, a) as properties, (case ins...

 
Wes
6:27 AM
\o
 
6:59 AM
o/
 
moin
 
7:15 AM
moin
 
aloha
 
Wes
@PaulCrovella the other day i forgot to mention the "Roccascalegna" castle. just saw a picture of it and reminded me. that's game of thrones levels
 
thank you, that was some terrible hdr
 
Wes
:P
 
neat looking place, though it makes me nervous
 
7:27 AM
morning
 
Wes
:P don't like heights?
 
I'm from earthquake country.
How's things holding up there on that front, btw?
 
Wes
no idea, probably lord of light magic
 
7:44 AM
@Wes I mean how are things going with the earthquakes over there?
 
morning
 
Wes
@PaulCrovella sorry, misread. eh. not good. several villages were razed to the ground, literally. 20,000 people without home now :(
 
morning
 
Wes
there's a huge quake daily basically, and small ones every 5 minutes... not exaggerating :(
 
that's terrifying.. all those old, very not earthquake-safe, buildings
 
reminds me of what happened to christchurch, new zealand some years ago
 
Wes
i remember that one, that was huge
 
@PeeHaa o/ do you think I should just merge the PR or wait for a decision on that comment?
 
@Wes there were a bunch of them, people who could were fleeing to australia
nobody knew when or whether they'd stop
 
Wes
terrible
 
8:02 AM
'nin2
 
Wes
\o all
 
this is the worst one I've been through myself.. that first picture at the top right was a two tier road that sandwiched.. got to see that personally (thankfully after the danger had passed)
 
After the christchurch earthquake, the NZ government compensated homeowners who lost their homes, by bailing out a "too big to fail" insurance company who couldn't pay for out the en mass building insurance claims. That and the cost of rebuilding Christchurch has caused NZ government expenditure to balloon to 55% of the GDP of the country.
 
@Wes In a way we were very lucky. Two bay area baseballs teams were competing in the World Series when it hit - usually a lot more people would've been driving on that freeway at the time.
 
Wes
8:18 AM
oscillations so close to the ground are scary. i was at the 5th or something floor in a building that time i was in a quake, and the building moved of like a meter oscillating... but on the ground it didn't felt like a big one. i can only imagine how scary it would be in a tall building during a seriously big quake. unless made of steel i don't think buildings have enough strength to resist more than few centimeters distortion
 
@Wes Oh, that's not necessarily true
Most higher building (15+ floors) sway over a meter in the wind alone.
 
Wes
high building are usually made of steel, at least the supporting structure
 
What's scary about earthquakes is not only that they're strong, but they're often close to the harmonic frequency of most large buildings
Like pushing a swing at the right time makes it go higher and higher, pushing a building at the right times would make it sway more and more, until it can't handle the distortion.
 
just move to a Vault
 
or a vast empty field
 
Wes
8:25 AM
:D
 
the tacoma narrow bridge experience that problem. torsional oscillations matching the structures natural resonant frequency
 
@the_velour_fog Aye, they didn't take the wind into account, and it ended up blowing at exactly the right frequencies
That bridge crashed, by the way, for that very reason.
 
8:46 AM
Mornings everyone
 
Morning!
Dr. Strange was p.cool.
 
Morning
 
9:00 AM
indeed
20 years today since 16-yr-old Damien Nettles went #missing. The case stays open. Call us on 101 with new facts:… https://twitter.com/i/web/status/793739523771498496
it appears to be common knowledge that the young lad was killed by a drug dealer, by accident ... the drug dealer died, overdosed in some crack house ... the poor lads mother will likely never get her answer, she left and lives in texas ...
 
Anyone has any suggestions for New Relic alternatives? Particularly for the back-end part. JS errors and such wouldn't be necessary.
 
@pmmaga Not actually used New Relic, so I'm not aware of all how they compare but for error report handling there's Sentry - their server is open source and you can self-host
 
@pmmaga instana.com Disclaimer: I work there.
 
9:15 AM
that looks like an interesting thing to work on @Gordon
not a big fan of the marketing stuff ...
but looks interesting ...
 
Thanks guys! Both look interesting indeed
 
@JoeWatkins it is. it challenges me every day since I have to do Java and C here
@pmmaga additional alternatives would be appdynamics, dynatrace/ruxit or - if you want php profiling only - tideways.io
 
Moin
 
@Gordon lucky you, there aren't many genuinely interesting jobs out there ...
usually you have to make your own interesting ...
have you showed me this before ?
 
I talked to you briefly about it on IRC when I joined a year ago
 
9:22 AM
@JoeWatkins I feel lucky where I am for this reason
 
ah, something feels vaguely familiar about it ...
@FlorianMargaine yeah me too, I'm pretty much allowed to do whatever ....
 
@JoeWatkins an example I had to debug recently... medium.com/@florian_7764/…
 
> After we deployed this fix to our production servers, at 23:15 UTC,
the random connection drops were gone. Now, we got consistent
connection drops.
6
progress!
 
\o/
 
:P
 
9:31 AM
@PaulCrovella exactly :D
 
I think I have discovred why the "professional SJW" color their hair blue. It's biology: en.wikipedia.org/wiki/Aposematism
 
Ordered a rx480 rather than 1070 \o/
 
rx480 is below the pricepoint of 1060
 
i know, but it is optimum for mining :/
 
aaaaah
 
9:47 AM
in zcash that is
 
@PeeHaa happy new avatar btw :-)
 
It's not actually new though
@Ekin o/
Give him another day
Also morning room
 
We are http://i.imgur.com/417N3Wb.jpg (NikiC) of Borg. Resistance is futile. Your PHP, as it has been, is over.
 
Back to normal avatars now :)
 
Jimyo
@Jimbo I just checked your avatar. You can take the mask off now
 
9:58 AM
@PeeHaa Gotta tell the same to your mum after last night's extended session
 
What? You finished not in 1, but in 2 minutes yesterday?
 
lol
 
@Gordon LOL
 
Anyone decent with SQL on here? The SQL room is pretty much dead and I'm stuck
 
10:13 AM
Just ask your question. If somebody is here and wants to help they will
 
@PeeHaa back to the old vatar?
 
Yeah it's all over
 
Ok @PeeHaa, I'm wondering if someone can take a look at this for me: stackoverflow.com/questions/38640220/mysql-group-increment
Running the increments and checks within PHP rather that MySQL is starting to kill my application
If doing sub selects makes my application more performant then I'm willing to bite the bullet
 
10:28 AM
@Rich If I understood correctly, it seems like you could order by assignmentId followed by interviewtime. That way, you'll have them already ordered the way you want. Then I would leave to PHP to do the round count and detect the last one. I think doing it on the SQL side is unecessary overcomplication but I may be missing something.
 
hey guys, so I'm trying to send JSON object from my android app and access data in it by php coding, does that look right to you? pastebin.com/MDDw5qfp
 
\o
Back into the land of the living
 
\o sean
 
Wes
sorry for ruining your avatars guys :B
 
you made em better imo
 
10:44 AM
dress me like santa on christmas :P
 
kinky
 
means by photoshop tricks..
 
oh :P
 
i bet @wes uses gimp
 
:P
 
10:47 AM
</sarcasm>
 
moin
 
o/ chris
 
Hey @DaveRandom. How did it go?
 
moin DaveRandom
 
Wes
@Linus didn't you have a xmas hat in august or something already? :B
 
10:49 AM
OK-ish, material definitely needs work though
 
Were they throwing stuff at you and boo-ing?
 
yeah :P
 
@PeeHaa The tomatoes were fresh so it can't have been that bad, plus it doubled up as free food
 
what makes you think it needs work ?
 
No it was actually really good, it's definitely a good place to do a first talk
 
10:52 AM
also, have I seen it ?
 
@DaveRandom \o/
Did the audience actual kinda get it? @DaveRandom
 
@JoeWatkins I realised as I was doing it that the ordering is totally wrong towards the end, it feels disconnected and some stuff is just not that well explained
@PeeHaa Well it certainly helped that Jeremy has played with a lot of this stuff in the past
 
cool
 
Wes
video? video?.... video? :P
 
No, that was just not really practical, and frankly I'm kind of happy about that fact as well because if there's going to be a video it needs to be better
Not that I'm a perfectionist or anything
 
Wes
10:55 AM
btw @Danack i had already watched the one on testing. looking forward to watch the one about interface seg
 
Dan's interface segregation talk was really good
 
Wes
who else in here gave a talk? jimbo?
 
god damn it
 
@DaveRandom this … looks too diabolically.
 
Well... PHP on top of libuv is pretty diabolical
 
10:59 AM
@Wes Fecking good one
And @Danack's, imho, was the best of the conference
 
blushes
2
 
It's true
 
Wes
:P what was yours about @Jimbo ? i might have asked already - completely forgot :B
 
@Wes Websockets + Torrents
 
Wes
oh right
 
11:00 AM
@DaveRandom How did your talk go mate
@Wes Oh right -> Boring ass shit
 
11 mins ago, by DaveRandom
OK-ish, material definitely needs work though
 
The PHPNW videos aren't online yet are they though?
 
@Danack No, I need to screen mine for illegal stuff
 
@Jimbo It was certainly the most beneficial. If you had to take a talk that was the most "something everyone should be doing but isn't", it would have been Dans
 
Will deffo work on it and do it at another couple of ug meets though
 
11:02 AM
I'm thinking of replying to Stas' call for help regarding security patch reviews. So this is where the self-doubt and imposter syndrome sets in. Can't bring myself to hit send :/
 
not for a while, need to extract my head from my rectum and do some real life first
 
Wes
i have no idea actually @Jimbo that is, i have no idea what a talk about php + websockets + torrent could be :D
 
@Leigh do the sending
 
@Leigh DO IT
 
I'm surprised to see @Wes here ... I would have thought he was hard at work on xmas avatars ...
 
11:07 AM
s/surprised/dissapoint
 
Wes
@JoeWatkins no need to add more emphasis on how useless i am. thanks
 
that's not really what I was doing ... actually I was wondering what a baby jesus me avatar would look like ....
3
 
Wes
ahaha
i could do that but would overlap winter hats
unless you want a joe baby jesus with a santa hat
:B
 
seems acceptable
 
god why does the miner halt.... (╯°□°)╯︵ ┻━┻
 
11:15 AM
@JoeWatkins speaking of baby jesus. my son has a book about the xmas story. he looked at it yesterday and when he saw baby jesus in it, he joyfully exclaimed "baby! doodoo!"
 
Wes
instastar
 
excellent internet jesusry ....
 
Wes
should i introduce a set of functions in some classes that could definitely be useful but it's absolutely nonessential and that in practice i'd add just to optimize some existing internal functionality
 
11:21 AM
missing is crown of thorns, thought for next time @DaveRandom
 
Wes
it feels like i'm masking a trick as a feature
 
or cross, or virgin, or all three, or one ... I don't really understand it ...
 
@Wes Now sell it for twice the price and remove an essential part of the public api!
 
hehe
 
Wes
lol
 
11:23 AM
@JoeWatkins in my defence I did not know the picture was being taken and I was kind of preoccupied with working out how I was going to feed 5000 people
 
imo no, don't do that ... don't make the public API more complex than it must be to do it's job, you might think you are saving someone a second by making something that should be private public, but you are only costing them time when at some time in the future, you figure you can change this "non-essential" part of the API, or you're only costing yourself a headache when you figure out a better way of doing whatever you are doing and want to change that API ...
@DaveRandom fair one, that's an occupying thought ... easy answer, obviously ... magic ...
 
In the end I went with Dominos two-for-tuesdays, magic might have been cheaper though
damn it now I want Dominos
 
@DaveRandom /me bows
 
I'm probably annoying someone ...
 
@JoeWatkins That has never stopped me
 
11:31 AM
well, I don't want to annoy anyone ...
 
I've seen that one I think
 
froscon sounds like it might be a conference about a breakfast cereal ... not sure why
 
Yeh I remember seeing that one before
It's decent :-)
 
backed the usergroup package last week
 
11:38 AM
I do want too
 
I held the prototype last night, it's really nice
 
I'm not sure how to be tactful
 
Does anybody know what's the meaning of "Sajad, you always come out of blue" ?
 
raising all that money, to make some soft toys, for what is a serious issue, doesn't seem right to me, if we were funding their production, and for example, a stall at at least some conferences, then I'm convinced by the argument that their presence is enough, but their presence on my window sill, is not enough ...
having rainbows in the foyer of big conferences, that actually raises awareness ... the existence of a soft toy in our offices doesn't really ...
 
"Out of the blue" is an informal English language idiom that describes an event that occurs unexpectedly, without any warning or preparation. It is used as an adverb. The "blue" in the phrase refers to the sky, one from which a sudden plane falling is unexpected, thus it comes 'out of the blue'. Longer and more explicit variations include out of the clear blue sky and out of a clear blue sky. == See also == ex nihilo ("out of nothing") == References... ==
 
11:43 AM
@Shafizadeh "to come out of blue" means "to suddenly appear"
 
@JoeWatkins if it helps to raise awareness among coworkers, it's helpful, too
 
@tereško Ah, seems right .. thx
 
it's probably related to people observing, that sometime there is rain falling even when the sky is clear
@DaveRandom I want a white elephpant
:D
 
@tereško :-)
 
that's true
I'm still uneasy
it just seems like a kind of wasted opportunity ...
 
11:48 AM
@JoeWatkins have you heard of the term "slacktivism"?
 
@JoeWatkins obviously just putting it in a office will likely not do too much good if it doesn't also see action supporting it. At one job, I called out my coworkers whenever they called something gay when they meant something negative. I always replied that gay is not a swearword. They gave me weird looks in the beginning but I think they eventually got it.
 
@tereško I had, but not sure exactly what it meant .. I looked it up ... that's valid I suppose ...
but, having organized the thoughts and resources of so many people, having gained their support for a really important thing, to just make a toy with it ... I don't have the words, wasted opportunity is as close as I can get ...
 
you have this odd assumption, that it was organized by people, who are altruistic
 
he's saying he'll underwrite it himself if it doesn't raise the funds ...
I wonder if he wanted to do something better with it, but was restricted by what is allowed by kickstarter ...
 
@JoeWatkins by the way halloween is done .. you can change your avatar ;-)
 
11:54 AM
maybe he just likes his now
 
Kickstarter doesnt allow donating to charity afaik, I think it's mentioned somewhere on the project page
 
yeah, but why do you need too ...
you don't donate to a charity, you fund the activities of a sole trader (yourself), or you register another valid entity to receive the money, not a charity ...
 
I was just trying to support the "restricted by what kickstarter allows" theory
 
you could have figured out something better, I'm sure of it ... there would be no problem using the money to fund a loan to anything non-charitble, and the repayments of the loan can either be written off, or if the entity generates money, it can be legitimately donated to a charitable cause, or underwrite another loan to sustain activities ...
I'd really love to see a rainbow booth at conferences, that's what I imagined when I heard about the campaign, guess I'm just disappoint to not see that ...
I'll obviously have to get one whatever ...
 
11:59 AM
@JoeWatkins ...
<3
 

« first day (2209 days earlier)      last day (2755 days later) »