« first day (2176 days earlier)      last day (2769 days later) » 

12:03 PM
Hi All
I am trying to use google custom search API
but return error
https://www.googleapis.com/customsearch/v1?q=London+UK&cx=016594182476378821404:09qp1q0wip0&key=AIzaSyDwRQYXGcwjj-HUpxuGZFn9j8VeQ7PzKiY
can anyone try this before
 
it says what is wrong right in the message and gives you a link to more details
1 message moved to Trash
 
I know
it working fine when I used this on via curl
but when I tried to use this directly via URL it return error
@Gordon
 
aha. and?
 
Actually I want to use directly hit this url and get a json return with curl
 
whatever floats your boat.
 
12:26 PM
mornin
 
12:40 PM
4 more hours till the start of weekend
 
@NikiC re: 64f91774 I have some code (not sure what it is yet, haven't isolated it) that is causing the assertion added there in vm to fail, I think someone is breaking the rules ... do any of the things that happened recently seem like they might be the cuprit ?
PHPUnit 5.5.5 by Sebastian Bergmann and contributors.

php: /usr/src/php-src/Zend/zend_vm_execute.h:883: ZEND_DO_FCALL_BY_NAME_SPEC_RETVAL_USED_HANDLER: Assertion `(call->func->common.fn_flags & 0x4000000) ? (zval_get_type(&(*(ret))) == 10) : !(zval_get_type(&(*(ret))) == 10)' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff4437cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
sorry for wall peepz
that seems like a situation we shouldn't end up in ...
 
@JoeWatkins what's the called function?
If we know that the rest should be clear...
 
jvk
Hai Guys. I have attended an interview yesterday. Here is one Question. They asked How to send customer reports daily to administrator by email at 10:00 AM. with out using cornjobs?
 
I dunno if my brain is working right, but it looks like fbc is cufa
 
@jvk eh, wat. Just write a script in whatever language that does it, then.
amphp should be able to do that.. if it can sleep.
source: I do crazy stuff like this
 
jvk
12:50 PM
what is amphp
 
oh you want what cufa is calling ? @NikiC
 
jvk
@littlepootis. He asked me send email to administrator by using php at particular time only
 
@JoeWatkins that would be good, cufa is probably just passing on the ref
or no
that in itself would already be a problem, if it does
 
@jvk You can probably do that with this.
There are a gazillion ways to do it.
 
12:53 PM
so likely call_user_func_array + ret-by-ref function is what triggers this
 
Or maybe not.
 
I'm drawing a blank at how to get that
yeah
do we know offset of first arg or do I have to figure that out ?
we seem to know why it's happening, I think ... so does that make the assertion bad, or the change you made bad, or me bad ?
 
it makes cufa bad :P
 
right, you're already figuring out what to do ... right ?
 
jvk
@littlepootis. can you send me few links to refer it.
 
12:57 PM
@JoeWatkins just needs an extra unwrap_reference when copying the return value
 
Amp\repeat should be able to do what you want to.
 
@NikiC you sound like you have it under control :)
 
jvk
@littlepootis. Thanks .
 
"Someone called random dave who's called Chris, these are the sorts of people he hangs around with" - One of my colleagues
 
@Jimbo :P
 
jvk
1:06 PM
what is single sign login user for multiple domain?
 
2
Q: Reverse PHP function

Fredrik LI have a function that returns a user's level based on the user's experience. How would I go to reverse this, so that I can input the level and get the experience needed for that level? function getLevel($experience) { return round ( sqrt( pow($experience, 1.4) - 1.5*$experience +1) /100 ); ...

math anyone?
@jvk it's good they asked how to do it without using cornjobs, because that means you can do it with cronjobs
 
// if "get_magic_quotes_gpc" is activated, delete additional slashes
if(get_magic_quotes_gpc()) { $_POST = array_map("stripslashes", $_POST); }
you gotta be kidding
 
 
is it good practice to define array as class attribute
class A{
private $examples = array('Dr.' => 'Dr.', 'Mr.' => 'Mr.', 'Mrs.' => 'Mrs.', 'Ms.' => 'Ms.', 'Prof.' => 'Prof.');
}
 
hi all, i know stackoverflow is not code writing company, it will help for pepoles who write code and facing some issues, but as i need to finish project soon, i need php code for login-register with mysql, as i heard all online codes are written in bad way, can anyone help me to find a good link or any github code ?
 
@nsdlfefinedieicbe are you looking for class based code or core php?
 
1:41 PM
seems class based code to use in live project.....
@Exception
 
@Exception it depends on your preference. some people dont like it because we got constructors for initialization. I personally prefer to do it this way though. I hate writing constructors.
@Exception he has no clue what he is looking for.
 
@nsdlfefinedieicbe is your current project class based OR code php based..?
@Gordon any specific/technical reason for not using constructor....I also think the same he do not know what he is looking for.. ;)
 
@Exception we still not yet started project.....
 
@nsdlfefinedieicbe if all online codes are bad, why do you ask us to give you links or any github code. By definition links and github are online codes, too. I hope you see how nonsensical your question is.
 
@nsdlfefinedieicbe great :) :)
you must discuss with others what are you all guys planning otherwise it will create great trouble
 
1:48 PM
@Exception I just find it tiresome to write $this->foo = 42 to init my properties when I can do it right away when I declare them
 
cool
 
@Exception please advice me some link , so that we will follow that
 
@nsdlfefinedieicbe @Gordon please help the poor guy..I think you can better..
 
Anonymous
Man this hotel is nice
 
@Exception No, I can't. Help Vampire.
 
2:01 PM
@Gordon haha ..
@nsdlfefinedieicbe dude you need to refer php.net site and start working on studying class objects ..
 
@JayIsTooCommon which one are you at?
 
@nsdlfefinedieicbe look at this link stackoverflow.com/questions/16356420/…
its very good answer to people who wanted to dig into coding ..
you can also check his other answers as well
 
Anonymous
@Leigh Motel One
 
Don't think I've been to that one
I'm about 2 hours out I guess
 
Hola
 
2:09 PM
@JayIsTooCommon I like Motel Ones. Good value for money.
@Exception fwiw, he just posted an utterly and completely broken code dump to code review. if he is unable to realize just how broken that code was, linking him to that answer will do no good and only make him more confused. what he needs (and probably wants) is gimme-teh-codez-that-willl-magically-work
 
Anonymous
@Leigh driving?
 
Anonymous
@Gordon yah, it's good up to now :3
 
@JayIsTooCommon you checked the shower yet? The bathrooms are tiny but I love the shower
 
Anonymous
Yeah xD first thing I checked, tis awesome
 
mornings
I am somewhat jealous of you guys
 
2:19 PM
\o
@FélixGagnon-Grenier same here :(
 
Hmmm... another anime guy. Oh, I wonder where Saitama is..
 
@FélixGagnon-Grenier I think Archer is Saitama
 
Thank you dear sir
:D isn't there a limit to the number of times one can change their account name tho?
 
Wes
he's not, he only watches japanese weird tentacles anime, not archer
 
there, is, ... some thing like 2 times in a month or 1 ... not sure
@Wes cough
fate/sn UBL ftw!
13 hours ago, by Saitama
 
Wes
2:22 PM
efoe/SD BUBU oao/11 ftw!
 
^2 watch that in 4K
 
Wes
There, change your avatar.
 
@Gordon also what is so great about that shower? it got neon light?!
 
nope, never, anime is life, anime is love
 
2:25 PM
@FélixGagnon-Grenier no, I just like it because it has these dark tiles, glass wall and large shower head. its more about the style than anything else
 
hello everybody
any good soul that deals with laravel/lumen and is available to help me out with a "pain in the arse" type of issue?
 
Wes
sorry, we don't do laravel here
why am i always the one saying that first? i waited several seconds
 
do you hate laravel or something? hah.
 
@GiamPy more like we don't use most of these
 
2:29 PM
maybe you could be of help even though it's laravel related though
since it's not an application-level issue (I think)
 
not bad
go on
 
@GiamPy everything you do with laravel is a pain in the arse issue. by definition.
 
laravel killed my mother
 
lol
essentially I am having white-screen-of-death issues. when I access the website, I'm redirected to the login page. I authenticate myself successfully with username and password, but after that EVERY SINGLE PAGE that has a CORRECT route (that is, not a 404 page), the view is not rendered properly, I mean-- it just gives a white page
BUT if I go to like.. domain.com/somepagethatdoesnotexist the error 404 view page is rendered properly
 
you have a strong hint at not correctly set error reporting and display right there
 
2:31 PM
hey fellas quick question i got a job where latter on ill be converting an old php 5.3 or something codebase to php 7 should i get a book and start learning 5.3 or 7?
 
have you checked some logs?
 
server anwers with 200 though, it's not an error
but yes, I have checked every single error
nginx says everything's all right
php7.0-fpm does too
framework logs are empty
 
debuggers are a thing
 
@BlunderCode yes
 
roses are blue
 
2:32 PM
permissions are set 777 (i know it's not the best but still) throughout the entire application
 
violets are rose
 
and www-data owns the entire repository
 
@littlepootis thanks...
 
Wes
@JoeWatkins debuggers require a phd and a iq of 198
 
@GiamPy 777? Seriously?
 
2:33 PM
@kelunik ping!
 
Someone fucked up
 
yeah I know @littlepootis
 
I'm not suggesting you write one, just download one that someone else wrote ...
 
but I just need to get it working right now, I don't care about security issues /right now/
 
Wes
@JoeWatkins it wasn't a critique to phpdbg, any debugger is hard to use. i tried. no clue of what's going on in there like at all
 
2:36 PM
there's lotsa tutorials for xdebug and your chosen setup ... I wasn't plugging anything, genuinely, if you have bugs, use a debugger ...
 
Wes
also real men do var_dump
 
^
bar_dumo ftw
 
Wes
var_dump debugging is character building
 
by real men you must mean something other than smart people ...
 
Wes
:P maybe
 
2:37 PM
I see that none of you can of help to me, thank you regardless.
can be of*
 
you are not a good listener
 
were you speaking to me before about xdebug, Joe?
 
yes, bugs require debugging, xdebug is such a thing ...
 
sorry
I thought you were answering someone else-- anyway, I am 100% sure it's not a code issue
 
you can do two things when you have bugs, use a debugger, or something else ... the former is the only thing that makes sense ... the latter is usually stabbing in the dark at random until you find out what is wrong ...
that doesn't matter
 
2:39 PM
since the exact same codebase works on dev environment
but not in the server I am installing it on
 
It happens.
That's why you use a vm or sth.
 
I am using a VM locally :)
which has the same OS of the staging environment
I use vagrant locally
I'm not a huge fan of xdebug anyway, I've never managed to set it up properly with sublime text 3
 
That's really weird, then.
 
it is weird indeed
 
nobody is a huge fan of it, or any other debugger ... if the only difference between your staging environment and your production one is configuration, then why are you asking questions about laravel ?
 
2:42 PM
@PeeHaa is .... well somewhat a Pieter who needs to drink and smoke less and stop from offering me either all the time... not that it's not funny but uh... I just like to complain about him :-)
 
because the issue seems to be at view rendering
at specific cases
 
you just said, a minute ago, that you didn't think it was a codebase issue ...
 
Wes
groceries, lata
 
you know how to find out ?
lata wes
 
@JoeWatkins By code-base, I am talking about /my/ code, the one I wrote.
The code-base is the /exact same/, however since I had no idea what the problem was, I went through laravel/framework code-base and found the part where the view fails to render
and it's in the view package, the output buffering after include the compiled view gives an empty result
 
2:46 PM
I gave up
 
@JayIsTooCommon nah. On a train
 
Anonymous
@bwoebi you're here already? Have you punched him yet?
 
Anonymous
@Leigh what station are you going to?
 
Picadilly
 
@JayIsTooCommon No but he has managed to get Stella Artois all over the inside of my car already \o/
 
Anonymous
2:52 PM
Lol
 
Also I think he may be powerless to comment atm because he forgot to take the power lead for his lappy out of the car
 
Anonymous
Where are you lot at?
 
@JayIsTooCommon not yet. Shall I?
 
Anonymous
@bwoebi I would, personally
 
And why?
 
Anonymous
2:54 PM
Just for the giggles
 
Meh
Anyway: current status: guarding his phone while he's smoking outside...
 
Hooo :-P (Bob here)
 
nice^
quick, deface @PeeHaa's answers evrywhere
 
not necessary, they already suck
3
 
Anonymous
@PeeHaa @bwoebi tell him to wazzap me when back please
 
2:58 PM
:D
 
I was using white-space: pre-wrap to try to get the examples in the manual to wrap... but it wasn't working. Turns out we convert spaces to  ...
This also explains why I can't get the #layout-content to shrink beyond a certain point, @Wes.
 
Anonymous
@Leigh you coming for a pint first or going straight to hotel?
 
@JayIsTooCommon when do you get here?
 
Anonymous
@DaveRandom 2:30 sir, you coming to the pub?
 
@DaveRandom He's in front of me...
 
oh lol
I'm just setting up this laptop for semi-usefulness as a dev tool
then I will be right there
 
Anonymous
3:37 PM
@bwoebi said I was really good looking btw @DaveRandom
 
which pub are you in?
 
Anonymous
Paramount
 
It's true
 
@JayIsTooCommon good for you
:B
 
@JayIsTooCommon is that the one on Oxford Road?
 
Anonymous
3:38 PM
Yeah
 
Bob is totally gay for the kid
 
Don't sprout too much bullshit iver here...
 
@bwoebi *over
 
@JayIsTooCommon OK cool, that might fill up with twats at 5, but that's a bit of town I know a little better
it's like 2 mins from my office
 
wait? is that conf in London or Manchester?
 
3:39 PM
Manchester has an Oxford Rd
London has Oxford St
 
Anonymous
@DaveRandom it's already fall of twats. Two of them are with me
 
@Gordon it's in jay's mom
 
most of the major cities have road names for other major cities, those are the old roman roads
 
and also a Picadilly?
 
@JayIsTooCommon and then there's me...
 
3:40 PM
yeh I have no idea what the etymoolgy of that one is, but we have one of those as well
 
Sure chris
 
!!is @PeeHaa drunk already?
 
lies!!
 
He's still somewhat sober... for his standards
 
3:43 PM
OK I'm on my way, if you go anywhere else then someone text me @PeeHaa @JayIsTooCommon @bwoebi
 
@PeeHaa has no standards
9
 
true.
 
@DaveRandom suuuuuuuure we will txt you
 
Anonymous
@DaveRandom @PeeHaa can't walk, we're staying here
 
@PeeHaa I have your laptop charger cable. You need me.
 
3:44 PM
Oh fuck
 
see you soon
 
Everybody stay calm and stay the fuck where you are
Oh wait
I dont need it actually
Chris fuck you
 
I think he left already
 
Lol
 
Dayum
 
3:46 PM
is hackathon tonite ?
 
yep
 
I am going to hack into @Jimbo's mom so hard
4
 
are any room 11 peepz doing that ?
@PeeHaa that's ... a different kind of penetration ...
 
@PeeHaa ...
 
Pen testing is pentesting...
 
3:49 PM
Anyone know of a plugin which can expand worpress to include company news, not blog?
 
Please stop having fun in which I can't participate.
 
yeah I would also appreciate that ...
also, I wonder if @PeeHaa ever saw the uk sober ...
 
I also wonder if @PeeHaa ever saw sober
 
@JoeWatkins perhaps the 2 minutes from plane to shop.
 
I think he was drunk before boarding the boat ...
 
3:51 PM
@FélixGagnon-Grenier they are not having fun. they are trying to keep @PeeHaa under control
 
Anonymous
@bwoebi the chat website on your phone looks shit :(
 
TFW your friends are meeting for a #php conference and you have to stay home with the wife ... who doesn't even have a beard ...
7
 
@JoeWatkins we don't have real beards either...
 
Please don't test that
 
3:56 PM
lol
 
Where are you guys floating?
 
In the skies above the worlds...
 
Anonymous
Paramount - 10 min from Piccadilly
 
only another 400 years of trains then @Jay
 
Anonymous
:D
 
3:57 PM
Joe you went to NW as well?
 
10 mins from the hotel too. I suppose I'll be there in 15 or so
 
no, I'm coming sunday
 
@Leigh being slower than Pieter smokes is lame...
 
@JoeWatkins i see
 
When did bob get so feisty
 
4:01 PM
@PeeHee don't smoke (srsly) :D
 
Anonymous
@Leigh what do you drink? That shitty Guinness still?
 
since I'm not the only one writing here...
 
@Archer "teenagers all smoke, and they seem pretty on the ball" Zap Brannigan ...
 
well I haven't started smoking yet \o/
 
Anonymous
@Archer never too late
 
4:06 PM
@JayIsTooCommon it can very well be too early tho
 
I'm not encouraging you 0b10 ...
 
Anonymous
@Archer yeah I'm joking :P don't you tit
 
Zap Brannigan is a fine role model though ... if you're looking for one ...
 
@JoeWatkins lol... "0b10"
 
:)
I don't always use time wisely ...
 
4:10 PM
Who ever does?
 
have fun all :)
 
@Leigh ...............
 
@JoeWatkins totally. and an awesome strategist
 
!!dad
 
Can February March? No, but April May
 
4:15 PM
Right. More specifically where are you? :)
 
@Gordon not to mention smart
 
@Leigh hmm? Are you already here?
 
@Gordon a ladies man, but willing to share his moves
 
Yeah, he is just awesome. If only @PeeHaa was 1% like him
 
4:25 PM
o.O we set PHP.net's max-age to 2678400 seconds... that's 31 days.
 
ThW
5:11 PM
@bwoebi I am at the hotel bar
 
@ThW what? what are you doing there? mixing with those britons?
 
@ThW And we're in the Paramount
 
ThW
@bwoebi will you be back for the Hackathon?
@Gordon like every year :-)
 
@ThW guess so.
 
5:39 PM
looking for an answer to something, guides like this make me grimace html-form-guide.com/php-form/php-form-variables.html
 
evenin
 
> Please use Laravel 5.3 for better MVC
 
@tereško hello
 
evenin @tereško
 
evenings
 
5:47 PM
@madankundu you are so wrong it physically causes pain to others — tereško 12 secs ago
 
o/
:P yeah seen that
 
Evening @tereško
 
o/
 
anyone in here experienced in the Facebook SDK for PHP?
 
should I bug an RM about whether fixing array/object casts can go into 7.1
 
5:50 PM
All I want to do is allow my website to post to my facebook page, and I'm having trouble understanding how this is done. I think I need a never-expire access token, but I'm not sure how I can create one
 
@Phil may this help /me never used php sdk stackoverflow.com/questions/17426018/…
 
should a form post to a processor?
nevermind, ignore that, I need to organize my thoughts first. my brain is going in several directions and I'm trying to catch up with my thoughts.
 
@Tiffany short answer: it depends
 
@tereško I have two forms posting to a page, but one form is losing session data. I'm fairly certain I know why, but I'm trying to figure out the best solution...
The easiest solution is to put a bunch of hidden inputs in form #2 with the session data, but I'm guessing that's not the best solution
 
do you have session_start() both ... emm ... executions?
 
6:01 PM
@Phil are you trying to post to the page as the owner or allow any user to post something to your page? I'm not sure bout the latter but this might be helpful on the former
 
oh wait.. I may be missing that on one page..
WOOPS
 
$5
 
should add a tipping option to Jeeves
 
what I find weird though, var_dump() has the session data
still
Opeth has a new album out today
 
6:08 PM
@Andrea em, what is wrong with array/object casts?
maybe some numeric keys related thing
 
Anonymous
6:26 PM
@bwoebi have you been kidnapped?
 
!!reminder wake me up when september ends in 3 hours
 
Reminder set.
 
did phpunit 5 deprecate getMock in favor of a method createMock that does not exist in phpunit 4?
Or am I misunderstanding something?
 
@tereško sorry for the ping (not that much sorry, 'cause it works :p)
 
6:42 PM
I didnt see any pings
not sure why
 
oh, I guess you've never been to that room but, I still expected it to show up on main, huh
 
nope
 
ThW
@NikiC no, getMockBuilder()->getMock()
 
besides, it would be really annoying for all the users named @user
 
true
 
6:44 PM
@JayIsTooCommon no, just went to hackathon :-)
With Derick :-)
 
@ThW why?
 
ThW
because of the horrrible, complicated arguments for that method
 
ok
hhvm is such a pain
 
ThW
but yeah, I was surprised as well, build a bc method into the testcase for my cms :-)
 
yesterday, by PeeHaa
By default @Jeeves' responses are @{zerowidthspacechar}username to prevent abuse
 
6:51 PM
yeah there's that too, right
 
@Ekin yes, that
 
ThW
@bwoebi so where are you?
 
@ThW sitting right next to Derick
 
@JoeWatkins Do you have any opinion on whether github.com/php/php-src/pull/2142 could go in 7.1? My guess is it couldn't, but…
 

« first day (2176 days earlier)      last day (2769 days later) »