« first day (1417 days earlier)      last day (3524 days later) » 

1:00 PM
 
@DaveRandom thanks, looking at it
and bookmarking it :)
 
Is that the room about PHP sucking ?
 
@DaveRandom Hold the phone here for a sec... $doc->getElementsByTagName('body')[0]?? Are we getting array access to node lists?
 
@dystroy precisely
 
@Danack how do I run phpunit from the phar file in Windows CMD
I tried php phpunit.phar --bootstrap
is that the way?
C:\Program Files (x86)\Zend\Apache2\htdocs>php phpunit.phar --bootstrap fmsdev\tests\application\bootstrap.php fmsdev\tests\application\controllers\App_Data_Abs
tract2Test.php

C:\Program Files (x86)\Zend\Apache2\htdocs>
as you can see I do the proper testing but it doesn't say anything so most likely the phpunit.phar doesn't work properly
 
1:07 PM
@derp Oh you can't do that? I didn't check, just assumed you could (although now I think about it I think that's bitten me before). Seems like you should be able to, might open a separate ticket for it.
@dystroy Every room is the room about PHP sucking
 
You can't. You need to use ->item(0)
 
Yeh I remember now. Well n/m, I can't edit it but it's obvious what it means
 
ya had my hopes up
 
hmm, what kind of wizardry do browsers use to properly scan <script> tag contents? technically it should be wrapped in <![CDATA[ ... ]]> isn't it?
 
<?php hi;
 
1:11 PM
@MacLover Parse error: parse error in chatroom.
 
Hello professional and enthusiast PHP programmers!
 
erm @ircmaxell How did you take these photos (the newest ones on twitter)!?
 
@bwoebi long exposure + (probably) -8EV filter.
 
@derp Could be done pretty easily I imagine
 
Actually, just 1s exposure ... not that long.
 
1:16 PM
@Ja͢ck EXIF data says 0 EV
 
@Unihedron Hello.
 
@bwoebi The camera typically doesn't know when you put a lens filter on ;-)
If it's already dimly lit you won't need those of course ... which is why I said "probably"
 
@DaveRandom also, that second span would be after the div, not a child of it (unless your expected result really is different from mine)
 
@Ja͢ck that's a point…
 
:)
soft water shots are nice :D
 
1:18 PM
ND filter and IR filter.
 
IR filter?
I doubt that was used.
 
Aug 29 at 0:47, by ircmaxell
the other long exposure was infrared :-D
 
well, the only proper way of doing that is a camera mod.
 
Yes, not that, I think it's...
Infrared cut-off filters, sometimes called IR filters or heat-absorbing filters, are designed to reflect or block mid-infrared wavelengths while passing visible light. They are often used in devices with bright incandescent light bulbs (such as slide and overhead projectors) to prevent unwanted heating. There are also filters which are used in solid state (CCD or CMOS) video cameras to block IR due to the high sensitivity of many camera sensors to near-infrared light. These filters typically have a blue hue to them as they also sometimes block some of the light from the longer red wavelengths....
I have Canon 20D, is I going to mod it one day. It can be IR sensitive.
 
How can I use generated routes from array in github.com/nikic/FastRoute
 
1:21 PM
I've modified a D60 to take IR shots :D
Pictures need some photoshop love, but the results are pretty amazing.
 
@derp Bad example code is bad example, but you get the general idea
 
@DaveRandom easy peasy :D
 
@Ja͢ck Awesome? Awesome.
 
yeah, let me dig up one of my shots
 
I do love me some dom extension improvements
 
1:25 PM
@Ja͢ck I'm sure, going to look at it shortly, never done anything with inheritance internally so interested to do something simple like that
 
@DaveRandom oh, let me tell you .. it has nothing to do with inheritance at all
just register the read_dimension handler
 
@Ja͢ck Yeh but it needs to be instanceof ArrayAccess?
 
nah
who wants that? just needs to work :)
 
What is the best way to benchmark PHP and find slow code?
 
if you make it implement ArrayAccess you need to do a lot more.
 
1:30 PM
because I need to make a report and for now
I use microtime but it is too slow
is there a way to optimize the whole run and check each operation speed?
 
XHProf?
 
is there a tool?
 
@Ja͢ck I want that. Not because I would actually use it, but because hiding it is basically applying SimpleXML levels of magic to things for no good reason
 
^^ Taken in summer
@DaveRandom Up to you, I wouldn't bother ...
 
1:32 PM
@JoeWatkins It's okay.
I've got a handler that does nothing, but the opcode is emitted properly (I think; tested the cases I could think of)
 
hello every one
 
hi ;)
 
@Ja͢ck thanks for the fix! :P
 
@Tyrael heh, no offence intended with that statement :D
 
student finance are dicks
 
1:37 PM
@ziGi short answer Xdebug
 
@NikiC any source on this? the last discussion that I know of was grokbase.com/t/php/php-internals/121at0swjh/disabling-ereg and there were no consessus on moving ereg into pecl.
 
I am using Zend Server and stopped the Zend Debugger to not interfere with XDebug
but I really don't know how to use it once it is installed
do I have to install something on the browser?
 
albeit I do think it would be ok with the next version as we are deprecating it for a long time now.
 
\o/
yeah i wouldn't be very comfortable with that in a 5.x
 
my first mail to the 'Kill ereg with fire' was just tl;dr-ing the previous discussion.
@Ja͢ck for the record wiki.php.net/rfc/releaseprocess allows exts moving to pecl in a minor version.
 
1:40 PM
@Tyrael moving to pecl is optional
Remove was the primary part ;)
 
@NikiC Sorry to bother you, Please, how can I use array in Fast-Route?
in dispatcher
 
@Tyrael i know we can :)
 
Good morning!
 
please reply this
0
Q: Google Map marker

Faiz RasoolI'm using google map on my website. I'm using the code below to display map with markers and info window. The map and the circle is displaying correctly but The marker are not visible on the map. Please suggest what changes i should make to marker visible. <div id="mapview" style="width: 100%; h...

 
@NikiC oh, then it was a misunderstanding.
 
1:42 PM
@ircmaxell Good mornin
 
@Tyrael I'm totally fine with not having it in pecl
I just thought that was the usual process when something is removed from core
 
@VeeeneX please stop pinging random people in here.
 
@NikiC yeah, we call it syberia
 
How's everything?
 
@Ja͢ck I like it
 
1:43 PM
any one can solve my question ?
 
@VeeeneX It's not proper etiquette, please stop.
 
@VeeeneX what do you mean by "use array"?
 
moin @ircmaxell
 
@FaizRasool this is not a secondary channel for dumping your freshly posted questions on the site.
 
@ircmaxell Oh, you know, freedom of speech is under attack, the usual.
 
yes im not dumping question .
im asking question .
if any one can help me
 
@NikiC I want to use file with routes and as someone said Room 11 recommends Fast-Route so I want to use your lib.
 
@FaizRasool We can't help you without you asking a question... but if it's Google maps related it's unlikely, especially since it has nothing to do with PHP...
 
@FaizRasool i answered u
 
1:47 PM
Beautiful photo ircmaxell
 
oh thanks
:)
 
@VeeeneX So, what's the problem?
 
thanks for helping friends
 
@ircmaxell did you try to rotate the colour palette to make the sky opal blue? :)
 
just simple google map problem
 
1:48 PM
@NikiC I've read documentation but I don't know how to achieve it.
 
@Vaflan can you post full code instead of only change
 
morning
 
What do you call this thing: =>
 
@Ja͢ck well, I did custom white balance, since my IR filter lets in some red
 
@FaizRasool ok
 
1:49 PM
also, keep in mind, that's completely in the camera, no post-processing at all
 
@ircmaxell yeah i can tell there's no post-processing done heh .. my pics have the same tint of brown for sky :)
 
I am pissed about that smudge in the upper-right
a bug got on the lens under the filter
ruined that shot, and anther
 
@Fuser97381 The name of the parser token is T_DOUBLE_ARROW, which is kind of misleading
 
@ircmaxell ah, i've modified my camera instead :D
 
1:51 PM
@dav
 
@Ja͢ck I am debating getting a camera to modify... like a 7D or something like that
 
@ircmaxell I took a relatively cheap d60 :)
unfortunately, the guy who did that for me messed up a few things and now my AF stopped working :(
 
@DaveRandom thanks. Was looking for the name of the operator though, not what the token is called. Is it the same? Double arrow?
 
@NikiC I just don't know how to implement $r->addRoute('GET', '/user/{name}/{id:[0-9]+}', 'handler0'); from array
from custom array
 
@VeeeneX loop through the array and call addRoute for every element?
 
1:53 PM
@Fuser97381 Well it doesn't really have one. I suppose you might refer to it as the "array operator" since that's the only context in which it is valid - maybe "array double-arrow operator" to disambiguate the name from [] and the array() construct?
 
@NikiC Like this pastie.org/9521610
 
Depends on the context @Fuser97381 - why do you need a name for it?
 
@VeeeneX yes
 
@NikiC I've tried it but without luck
 
@DaveRandom writing a coding standard for arrays to augment the fact that there is no array declaration in the PSR standards. Thanks. I will call it the "array double arrow operator".
 
1:56 PM
@Fuser97381 Take a look in the spec, see what that says, that would be the best term to use if you're talking PSR
 
PSR doesn't mention it, and I couldn't find the operator listed in the PHP docs, strangely. Although the array operators page uses the operator in examples, it's not defined first. Urg.
 
@NikiC I've tried this pastie.org/9521620
 
@VeeeneX if you look closely to some of his IR picture.. you could notice the same spot. =] hence not a ufo, more like a scratch, dirt corn etc.
 
user1642018
0
Q: How to search multiple keys from predefined array?

AMBi have predefined array of categories like this in key => value pair $all_categories = array (1 => 'friends', 2 => 'family', 3 => 'personal', 4 => 'public'); and i have new small array like this which are only values. $searched_categories = array('family','public'); Now how can i get the ke...

 
@RonniSkansing I was joking
 
2:00 PM
 
Iknow =]
 
@NikiC thanks for merge - was probably a better idea for you to fix the problems you had with it rather than keep going backwards and forwards misunderstanding each others intents :)
 
@Fuser97381 even the spec doesn't give it an explicit name at the moment. Since the token is called T_DOUBLE_ARROW and that's not about to change, I suggest just using some derivative of that.
 
I like "T-Dub", for short
 
@VeeeneX I think he meant more like
 
2:03 PM
posted on September 02, 2014 by nlecointre

/* by Hervelecanard */

 
Sorry bout that other paste =] pastie.org/9521636
 
@RonniSkansing That's fine I know what you meant
 
great =]
 
@Danack are you planning on going to the hackathon at phpnw? /cc @PeeHaa @JoeWatkins
I guess Joe isn't actually
 
why aren't I ?
 
2:11 PM
I'm not :-)
 
Well last time we spoke you were talking about not coming up until Sat
 
Room 11 Hackathon group.
That'd be awesome.
 
ah, then if I'm not there I can't ...
 
ThW
@DaveRandom actually Xpath results would be the real usecase for that.
 
@ircmaxell I have it in my head that you'll arriving be on the last minute again? Or am I just confused with last year
 
2:12 PM
You'd probably end up building something you'd then have to present the next day
 
Why are people so afraid that others would see them nude? Especially celebrities, I mean, what is gonna happen?
 
@RonniSkansing Thank you but I'm expecting following problem Undefined variable: routes in
 
I still didn't get ticket details yet ... I guess they are coming and forgot who to ask about it ...
 
Are they afraid of their own bodies or something?
 
@DaveRandom that was last year
 
2:13 PM
oh hai.
 
@VeeeneX put the code in a pastie and I will have a look at it and see if I can help you
 
My finances are private matter but the country still wants to know what I do with them. Isn't that hypocritical?
 
@ircmaxell You up for a drink on Fri night then or you already have plans?
 
'a' drink. Sure.
 
2:15 PM
@ThW You want to add a +1/comment to the bug? @FlorianMargaine is going to look at implementing it I think, I haven't found the time since I did the initial feasibility study
 
@DaveRandom I think we have a speakers dinner, let me check
 
Oh right, I think there is
 
@RonniSkansing pastie.org/9521650 ;)
 
a friend showed me a bit of code at his work... pastebin.com/3p4DYnP2
 
@Fabien Yeh so @PeeHaa will be here at around 11am and reckons he will already have had one or two. Need to try and figure out a way to not get too badly damaged for the conf on Sat...
 
2:17 PM
I think that ascii art is broken
 
^^
 
@VeeeneX try $dispatcher = FastRoute\cachedDispatcher(function(FastRoute\RouteCollector $r) use ($routes) {
 
@DaveRandom I found a great solution is to just not be the first to be drunk.
After that you're safe.
 
@DaveRandom after that, I am definitely up for one
 
In other words, spike @PeeHaa's drinks.
 
2:18 PM
@ziGi Presumably php phpunit.phar -c phpunit.xml
 
@JoeWatkins Need to get on top of that, who sorted it out in the first place?
 
"Hey @PeeHaa! Look over there!"
*sploop*
"Oh, nevermind. Bottoms up!"
 
heh. Spoken like a pro.
 
@ircmaxell Cool, will DM you on Twitter when we know what's going on, I doubt we'll be far from the venue
 
@Danack I fixed it
 
2:19 PM
very cool
 
@RonniSkansing Bingo thank you so much you saved my day again !, And how is this called dependency? Have a nice day!
 
now that there is a .xml config it works fine
 
@Fabien Enthusiast maybe, but not a pro ;-)
 
@FlorianMargaine I feel bad for your friend..
 
2:22 PM
@Fabien I'm going to UG meet tonight, will scope out the likelihood of more conf-only tickets being released, last month it was suggested there would prob be a few available, if so would you be interested or is it just not possible?
 
@Fabien Wauu
 
Probably not much of an option for me atm @DaveRandom thanks though.
 
@ircmaxell who was it that sorted phpnw ticket for me ?
 
@JoeWatkins Lorna Jane
@lornajane, Leeds, UK
PHP and API specialist dev/consultant, author, speaker, open source project lead and trainer. I am freelance, ping me if you need me on your next project!
10.3k tweets, 7.4k followers, following 46 users
 
cool
ah you wanted stubs in a separate repo
will move em
when correct
 
2:31 PM
@JoeWatkins can be in the same repo
I just want something composer installable...
 
no idea how to do that ...
 
@DaveRandom re our earlier convo apparently the => operator is called "hash rocket" in other languages. I think that sounds pretty dumb though.
 
I mean for a directory
missing ctor on context, dunno why
 
ThW
@DaveRandom done, I think I will implement this in FD as well.
 
Reading Head First and it says often in simple factory the create method is declared statically? Yay or nay?
 
2:33 PM
@JoeWatkins just add a composer.json. It will let me install the stubs. The extension would still need to be installed for usage, but the stubs for testing is enough
 
nay if you want to test that factory ....
ok cool ...
 
@Fuser97381 Sounds like drug paraphernalia
 
Furry.
 
@ThW cool :-)
 
@DaveRandom The Wire is on your watch list isn't it?
 
2:35 PM
@Fabien That would be the "static factory antipattern"
 
heh
 
yes
 
@DaveRandom They're remastering it this month so hold off a little.
 
Oh OK. Is that needed?
Remastering is often a not-awesome thing to do
 
Yeah, it's a fairly old 4:3 series. Remastered will (hopefully) be a lot nicer.
Depends on how much they spend on remastering it I guess.
 
2:38 PM
OK, as long as they don't go all George Lucas on its ass
 
Well nothing stops you starting in 4:3 and if you want more hopefully it'll release faster than you watch.
 
@VeeeneX no problem. I did not understand the other question
 
2:50 PM
@DaveRandom I went to GlasgowPHP once and people thought I was insane for going all that way just to go to, well, a tiny little meetup.
Afterwards so did I
 
Hahaha, that's funny.
 
zsd
hi all
 
:-D
 
@AndreaFaulds Size is not important</double-entendre> - seriously though, it's more about the people. If they didn't make you feel like you wanted to go back then... meh
 
3:06 PM
@RonniSkansing Use function or I don't know what is it.
(FastRoute\RouteCollector $r) use ($routes)
used in anonymous functions
 
Does anyone use PHPSpec? I'm trying to figure out how to configure the PHP environment that it uses since it doesn't seem to run off of the local php.ini (functions that exist when I run PHP from the command line aren't there when I run the spec).
 
@Gordon I think you were looking for jkbrickworks.com/lego-computer-keyboard
 
@DaveRandom the funny thing is that a lego keyboard makes perfect sense
 
I suspect it would break a lot. My experience of trying to create Lego things that will withstand every day usage stresses has not been positive
It's a while since I did anything though
 
@VeeeneX you can read abit about them at php.net/manual/en/functions.anonymous.php
 
3:18 PM
I have been meaning to have another go at a previous attempt at building a suspension bridge between the sofas, I have more lego now so I could hopefully make some pilings that are actually up to the job
 
@RonniSkansing Thank you and you are so helpful do you know some reference or article or your own skill how to store and work with config files ?
Answer if you have time...
 
Has anyone in here ever used mapproxy.org to proxy Google Maps? Did it work?
 
@Gordon No but the concept is interesting. Are you asking because you are evaluating options or because it actually doesn't work?
 
@DaveRandom I am asking because China blocks Google Maps and I need a way to circumvent that
 
@VeeeneX what kind of config files did you mean? What kind of data do they have?
 
3:22 PM
@Gordon wut
to both elements of that
 
2
Q: Is it possible to connect the Google Maps API through reverse proxy in my app?

treblamI am working on an app which I want to use the Google Maps API in it. The problem is the connection to Google Maps API server is unstable, sometimes it's OK, but sometimes it's blocked, because I'm in China. The solution I come up with is to make all the Google Maps API requests through a rever...

 
@Gordon Considering there are limits in using GMaps, I doubt it would be useful/reliable.
 
@DaveRandom our app uses GMaps and we got lots of reports from clients in China that the maps are unstable or do not work at all. So I am trying to find a solution that proxies all access to GMaps.
 
@RonniSkansing It is similar to this link
 
@Gordon Wouldn't a simple straight proxy through your servers be a safer bet that would almost certainly involve less work?
 
3:24 PM
@webarto why? mapproxy lowers hits to the API so the number of requests should beless than with an unproxied connection.
@DaveRandom that's the other option I consider, but I am not sure how that works with the client side code. Like the OP suggests: what about the URLs within the JS client code?
 
I'm up to 165 slides for one talk... a 45 minute talk...
 
Well nginx has a bunch of clever things for content rewrites in proxy mode, but how it will cope with that level of complexity I have no idea
 
@VeeeneX okay, are you asking if you can put you routes in a file in a array like the configuration example you showed me?
 
I think there's a roughly equivalent Apache module, but being a proxy is one area where Nginx would definitely win out I think
 
@RonniSkansing No, I'm got another class Main(for example) which runs routing,reporting logging and so on. But I want to know how to work with config I mean save whole config to that class in $config var with protected scope or load only one property from config.
 
3:31 PM
@DaveRandom we got a single page app. Once it's delivered, all GMaps code will run on the client, so I am not sure if I can rewrite anything that way.
 
Yeh it's a tricky one. How much of the code have you written so far? I mean, how easy would it be for you to test how well it would work through a proxy with content rewrites?
Because it's the work of an hour or so to set up the actual proxy just to test. If it works well then you don't have a problem.
 
Ronni, I'm using this class to load a config it's simple self programmed link to pastie
 
Does it have to be Google Maps specifically?
 
@DaveRandom none yet. I am old fashioned and believe in doing research before taking action. It's highly unpopular with the hipster crowd but it pays off :D
 
If you're covering zee Germany, OSM would be nice too I guess.
 
3:35 PM
@webarto ideally, yes. That is actually one of the nice things about mapproxy though. it would allow us to swap out the map service.
@webarto we are covering the world :)
 
@Gordon :-P
 
Got it.
 
@DaveRandom :P
OH @go_oh: "I am old fashioned and believe in research before taking action. It's highly unpopular with the hipster crowd but it pays off"
 
Stupid 140 chars
 
@VeeeneX, sure you could load you config files like that, side comment on the code.. why static and why the get function (it does nothing.. =] )?
 
3:41 PM
OH?
overheard?
 
^ that
 
I'm up to 169 slides. For a 45 minute talk. About complexity. There's some irony in there...
 
Does anyone know if how long it would take on an average server to count to 100,000 but doing ++ in a loop?
 
I got a feeling @ircmaxell feels ignored ;)
 
3:43 PM
@StephenWolfe average is a fuzzy term
 
@RonniSkansing I'm using it for loading 'config.php' and 'routes.php', but where should I store them for working with them
 
=]
the config files?
 
:-P
 
Routes are easy:
$routes = ConfigLoader::load('routes.php');
 
@Gordon is there a way to time how long it takes to run a function
 
3:44 PM
Yes, only config file.
 
@StephenWolfe write the script then run it with time php script.php
 
@VeeeneX anywhere you like and think other people can find them also. But you should there is this old saying..
kill your statics
 
@ircmaxell You should wear thumb protection for sliding that amount of ... slides.
 
@webarto yeah, protection... :-X
 
@StephenWolfe if you want a more detailed breakdown you need to use xdebug or xhprof
 
3:46 PM
@StephenWolfe php.net/microtime linux.die.net/man/1/time php.net/manual/en/book.xhprof.php in ascending order of usefulness and complexity.
 
@Gordon could i just echo out the time at the start and end of the function?
 
@StephenWolfe sure
 
@RonniSkansing Bacause I need to make it accessible for my other classes which are separated from Main class because they aren't extended.
 
@Gordon cheers,
 
@VeeeneX, you can solve this without statics, and it will make you feel great. Instead of the statics, inject a instance of the same object, for example if Main .. was it Main(?).. depends upon the configurator class, then inject it into the constructor or the load method, check dependency injection
 
3:50 PM
Looks like it only takes like .5 of a second to run over a million increments
 
The difference between the swiss and american press. quite striking. http://t.co/FJCb82IH5o
mildly nsfw
 
mild
 
@RonniSkansing With Auryn
 
@Gordon is it the glasses? ;-)
 
Gordon that's funny :D
 
3:53 PM
@Gordon Ah, The Fappening proves otherwise, because of the clicks, unrated == more clicks.
 
Ronni, I forgot question mark, so with dependency injection like Auryn
 
Also I believe the face protection (@ircmaxell) is respected in Switzerland, Austria, Germany and maybe somewhere else in EU.
 
@VeeeneX yes you could do that, but that in more than just di, and it is awesome. But the fact is that, in this case, to avoid involving new parts or ideas.
ex. new Main(new Configuratior()) and someFunction() { $this->configurator->load('x') .. instead of somefunction() { Configuratior::load('x');.. atleast imo
 
@VeeeneX Do not confuse a DI Container with DI. Do not use a DI Container until you understand DI
 
Ok
 
3:57 PM
 
^ @VeeeneX very educational
 
@ircmaxell Yes, I've seen that video It's awesome
 
@ircmaxell I like it but still you use a lot of terminology that confuses people that don't know the pattern
don't get me wrong, it is quite educational
 
such as?
 

« first day (1417 days earlier)      last day (3524 days later) »