« first day (1853 days earlier)      last day (3092 days later) » 

12:03 AM
phpunit getMock() is weird <.<
 
use mockery ^ it's far superior github.com/padraic/mockery
 
@RonniSkansing might it be that instrumental song where someone names each new instrument that comes in?
 
@marcio well, I'm struggling a bit with multiple calls etc.
 
... for some reason, the first song that came to mind was actually this thing: youtube.com/watch?v=6DcfXVL0mh0 (but when I found it, I realized my memory was completely off)
 
heh that brings backs memories @tereško
its more like a beat that starts with only drums, and then it keeps on adding new riffs and etc
and the guitar player also sings the same words over and over in a almost chipmunk pitched sound
=) (actually it's really strange to listen to that song again, I feel all silly)
 
12:11 AM
@marcio I feel like new class extends ClassToMock { /* */ } with just a few funcs is still superior. I'm just annoyed that all the code is using getMock(), so I have to work with it (too lazy to change 200 lines of tests…)
 
@RonniSkansing but is someone "naming" those instruments?
 
nope, not that I recall.. but again.. I think it's like 5 years ago .. and you know.., I smoked alot of weed since then (and before...)
 
@bwoebi yes, I understand that and aerys seems to have many little moving parts to mock.
 
@marcio uh, it's not that bad… github.com/amphp/aerys/blob/master/test/ServerTest.php … that's actually the class with most dependencies (and indirect ones too)
 
@tereško thanks for the suggestions, +1, gonna go to bedz now.. tty another day
 
12:17 AM
I probably will remember that song, which I suspect, by tomorrow
it usually takes time to pull something for deep memories
 
But @marcio do you feel my pain when I write such code from scratch:
        $root = new \Aerys\Root(self::fixturePath());
        $root->setOption("useEtagInode", false);
        $diskPath = realpath(self::fixturePath()."/index.htm");
        $etag = md5($diskPath.filemtime($diskPath).filesize($diskPath));
        $request = $this->getMock('Aerys\Request');
        $request->expects($this->once())
            ->method("getUri")
            ->will($this->returnValue("/index.htm"));
        $request->expects($this->any())
            ->method("getHeader")
            ->will($this->returnCallback(function($header) use ($etag) { return [
 
I don't know what it does, but it looks really fugly
 
@bwoebi worth noting, when we started to use mockery for testing there was no new class extends ..., anonymous classes make a big difference for this task.
 
@marcio hehe
@marcio … you could have used eval though, you know…
 
@bwoebi :/ even with mockery it wouldn't look that better.
 
12:21 AM
@marcio You said it were superior!
 
heh
looks good to me
 
@RonniSkansing good? it's horrible.
 
it is, but you can't really dry mock based tests too much
 
@marcio … and the alternative is…?
 
otherwise you will have write only tests (like my ruby tests years ago)
 
12:23 AM
@bwoebi dont think so =) sure it is horrible to write and read.. but that's how I accept wrritting units sometimes (=.. you could delegate it out it a few privates so it is easier to read
 
don't dry it too much, make some custom assertions and pass the mocks into them perhaps
 
anyways was going to beds.. laters
 
me too, gn @RonniSkansing :)
 
12:31 AM
heh @bwoebi github.com/rdlowrey/arya/pull/34/… for example.. very horrid
 
That's cruel…
I need to go to bed before I can't sleep anymore o_O
 
yea, I cant sleep, going to the bar.. laters
 
Abe
12:58 AM
mornnnggweurhwsfsdfhshdh
 
@Jimbo did you give Ghost in the Shell a try"
 
@marcio I'd much prefer we make instanceof work with primitive types too. I have had a plan for a 'shadow class hierarchy' for a while, where we would have a hidden internal class corresponding to each primitive type, and instanceof etc. would check against it, so that we could do stuff like scalar methods, make array implement Traversable, etc.
 
Abe
@Andrea wouldn't that break everything ?
 
@Abe no
@tereško amazing
 
Abe
1:04 AM
also i prefer way more is; it's way shorter
 
... that's one of ways to describe it
I would have gone with "terrifying"
 
Abe
@Andrea also since you guys are at it, is it possible to make "is" compatible with future generics' syntax? $foo is Bar < Baz, Rofl >
$foo is(Bar < Baz, Rofl >)
 
but instanceof could be
is might be shorter but we don't need two versions of the same thing
 
Abe
regardless of that
because < and > may cause problems with the parser, am i right?
 
ah, yes, that could be an issue, hmm
 
Abe
1:14 AM
wrapping the type in parentheses wouldn't be too bad though
$foo is (Bar<Baz, Rofl>)
though you are right, instanceof won't break anything if supported primitives
but do we really want "instance" referring to types that aren't instances?
is is shorter and works for both objects and primitives
 
 
1 hour later…
2:28 AM
There is an autumn sale on GOG: gog.com
 
2:41 AM
Anyone able to help me figure out why my patch is acting weirdly. I've run it through gdb, and phpdbg and I can't see why it doesn't seem to be firing off my request :(
 
3:15 AM
Via GDB I am able to get this: "Empty reply from server"
but AFAICT, it never even hits the server
 
3:36 AM
Hi can any body help me regarding rewrite url using .htaccess
i want to convert this url (naissancebebe.com/…) to only naissancebebe.com/boy.php
 
3:50 AM
Hi can any body help me regarding rewrite url using .htaccess
i want to convert this url (naissancebebe.com/…) to only naissancebebe.com/boy.php
 
Abe
4:14 AM
\o
 
4:35 AM
morning
 
morning Orangepill
what could be best way to validate email address??
 
Abe
5:03 AM
@AnmolRaghuvanshiVersion1.0 3v4l.org/GYCWN this is usually fine
the best way would be also validating the tld, and other things i suppose
 
it seems to correctly validate .sucks and .xxx tld's
 
@Abe .bogus could become a valid TLD in the future.
 
Abe
the best way to validate an email is sending a message
and ask the user to perform an action that would confirm you that they actually received the message
 
means link for email verification..
 
Abe
5:19 AM
yeah
 
Anyone know how to control the sound on an hdmi device on mac?
 
moin
 
morn
 
Abe
\o
 
5:34 AM
I fell asleep mid afternoon again yesterday, so went to doctors last night to get sleeping pills ...
they didn't work ...
 
Abe
why do you care? most of programmers can't have regular work hours
sometimes i sleep 3 hours, sometimes 10
also, if you want to sleep get a bottle of rhum :D or something... smokey :D
 
I couldn't smoke more if I tried ...
 
Abe
lol
 
I'm always exhausted, falling asleep at your desk at 2pm is no fun at all ... especially when you are supposed to get kids from school at three and are awoken by a phone call from a secretary "come and get your kids" ...
 
Abe
could that be a bit of depression? did you notice yourself to be less tired when you are satisfied / successful with life work etc?
 
5:45 AM
I wake up at 3-4 am every day, no matter what time I go to sleep at night ... there's something wrong ...
I dunno ...
 
Abe
in case: i solve it with autogenic training. shia labeouf JUST DO IT mode
 
Abe
coffee also helps, and pumping music
 
I'm sick of being tired whatever ... sleeping pills should work ...
 
Abe
autogenic training works though.
yelling yourself "GET YOUR WORK DONE YOU LAZY ASS!" works :D
 
5:50 AM
it's not effecting work ... if anything I work longer now ...
 
Abe
are you having difficulties with work recently? have things you want to finish but you can't see not even remotely the end?
 
I can see the end, but seven has been dragging out a bit ... I'm still not done there ... but I don't think it's that, I've always got a lot on my plate ... I am the entire C team, responsible for everything we rely on, which I wrote, mostly ...
I like it that way, and am used to it ...
I also just had a whole week off work, which was actually 9 days long ... it didn't make a bit of difference ...
 
Abe
spend some time psychoanalyzing yourself. i often do, it's a good deal understanding your mind and body reactions
also try jogging before sleep, in the evening
 
I walk every day before bed, with the dogs ... and in the morning ...
 
Abe
walk or jog?
 
5:57 AM
I don't really do jog ...
pretty long walk though, most days ...
 
Abe
how do you feel after it? tired or better than before?
 
I enjoy it, look forward to it ...
 
Abe
do you work from home?
 
but I was tired when I started ... I'm not more tired by the end, just still exhausted ...
yeah
 
Abe
tried moving your desk near a window, so that you can see the outside while working?
 
6:01 AM
surrounded by windows, I'm in like a conservatory thing ...
( a brick one, but surrounded by windows still )
 
Abe
though you are not the first i hear having this kind of problems... and includes myself
 
I got better for a while ...
a year nearly ...
I can't remember what changed ...
 
Abe
try to identify the problem, small changes in your lifestyle. we are not machines, our mood even reacts to small changes in the weather...
@JoeWatkins perhaps does it happen after lunch?
 
lunch time is pretty random, so is falling asleep, there doesn't seem to be any correlation ...
perhaps I'm just being impatient, I don't know what wrong but sleeping pills should work, maybe I should just give them longer than a day to work ...
possibly they'll start to work ..
I don't intend to stay on them a day longer than I need too, but neeeeed some kind of reset, maybe give them a few days to work before I go back to doctor and ask for better ones ...
it seems like this is my rhythm now, do you know what I mean ?
 
Abe
bah, i would never take that shit if i were you :D try to identify the problem instead
 
6:13 AM
I'm saying, problems come and go, maybe the root cause has already gone and I'm still left in this rhythm
because I feel fine, optimistic even ... just physically exhausted ...
 
Abe
then you should actually try running. you will feel very tired after running, but you won't feel tired the days you didn't run
 
oh I don't run, but I do ride a mountain bike ... or did all through summer ... was cycling with kids on school runs ... bit cold now though ...
I'll look stupid wearing leathers on a mountain bike ...
 
Guys need some help I am using form handling with ajax and php everything works fine but the data from the form is not being sent to the php script ! Here is my code : pastebin.com/g8dTjY9t
 
Abe
if dogs are medium/big sized they will enjoy running too
 
little jack (russel, whose name is jack) loves running with the bike ...
the bigger one ... not so much, he's ... clumsy ...
 
Abe
6:18 AM
lol
 
Abe
lol
 
the theme of having way too much skin carries on throughout the body ... this limits his ability to be precise ...
 
Abe
nah i think he's just not used to that, all dogs enjoy running :D
 
honestly, he's not good at it ... I've tried ...
 
Abe
6:20 AM
anyway bike is not the same imho
i mean, it would require you triple the time for the same result
 
you know when dogs get all excited and they'll run through the house ... somehow sliding on slippery floors but precisely, through doorways and whatever ... he hits the walls, trips over, steps on the other dog, he's properly clumsy ...
when you run with him, without a bike, he'll fall into the road, into you, into bushes ...
 
Abe
hahahaha
 
we still try, the kids run with him in wide open spaces ... it is hilarious ...
 
Abe
:D
 
6:23 AM
that whole face, and all his skin, flaps around ...
 
Abe
haha dogs are awesome :D
 
0
A: PHP's white screen of death

SherifThis is a problem of loaded vs. runtime configuration It's important to recognize that a syntax error or parse error happens during the compile or parsing step, which means that PHP will bail before it's even had a chance to execute any of your code. So if you are modifying PHP's display_errors ...

 
yeah cat's too :)
 
I really think all of those answers are horrible. I hope I gave a better, more useful answer there.
 
great characters, they both are ... and a great match too, he's a gentle giant, he can fit jacks head in his mouth, and does, but so gentle with him ... I've thought about putting up a video of them playing before, but don't want to be the guy who posts videos of his pets online ... his bark is great, you only ever get one, very rarely, mostly while playing ... and it's like he does it in slow motion ...
 
Abe
6:26 AM
@PeeHaa i don't. it's the only linux i've ever used
moving on.... in case you missed it... The Bourne Identity!
he's a candidate for moderator :D
i'm not a fan of cats but i know one that follows me every time i put out the trash. happened that i gave him cheese once, and after a year he's still looking for more :D
i don't own him, but now i buy food just for him :P
 
cats are lactose intolerant
to vary degrees, but all of them are intolerant, some of them, just like humans, can die if they ingest too much lactose ...
TL;DR don't give cats milk, or cheese ...
 
Abe
in fact i don't buy him cheese now
 
meat treats are best ... even dried ones ...
 
Hi all,
is it possible to pass a dynamic php variable to a bootstrap modal popup in the same page itself?
 
6:35 AM
I give mine bacon, uncooked, or cooked, they don't care ...
we only have one now actually ... kittens are gone ...
 
Abe
mine loves spam @JoeWatkins :B
 
spoiled kitty
 
Abe
:D
i owned a husky for 15 years... my gf used to feed him turkey, every day
no joke...
just because she didn't trust dog food
 
Hi all,
is it possible to pass a dynamic php variable to a bootstrap modal popup in the same page itself?
 
Hi every one how is it going
i have a little confusion about constructor chaining in php.for example
extend a class2 with class 1 and create a object of class 1 then whose constructor will be called first
 
Abe
6:54 AM
the most specific constructor you defined is called
other constructors in the hierarchy are not called unless you don't call them explicitly
 
yes i have executed the script echo some string in the constructor the child class constructor was called thanks @Abe
 
Abe
function __construct(){
         parent::__construct();  // calls the super constructor
         // ... specific constructor
}
 
parent::__construct();
about this thanks this was the confusing part for me
 
Can I get a help for this post please
http://stackoverflow.com/questions/33665834/get-the-data-id-attribute-inside-bootstrap-modal-popup-and-fetch-fields-from-dat
 
7:23 AM
anyone have experience with content tools? i am trying to get things to save on the server. here is my small practice project with all the code.
https://github.com/JGallardo/package-mules
 
7:50 AM
Morning
 
Abe
mornin
@all will you guys phpdoc exceptions in the Error branch? for TypeError it seems obvious to not do so, but for others, especially custom ones? will you phpdoc 'em all, including TypeError, for consistency?
 
Morningssssssh
 
Abe
o/
 
8:07 AM
I never understood why people like frameworks so much, I like coding the entire shizzle myself much more.
 
@Epodax Yes, same here.
 
All of it?
you dont use composer packages or etc?
 
Well, It might be that I've just not been involved in any projects big enough yet (which is the most likely reason), but no, I don't use composer packages or such, well, I do use bootstrap or such (mainly jQuery / js libs etc etc).
 
okay.. well I used to DIY also.. but now a day I really try to squize what I can from packages.. but yea.. writting it yourself is very satisfactory
wait shit
your danish?
 
Aye
 
8:18 AM
me 2, @Epodax so Jylland, Fyn or Sjælland?
 
Abe
Fatal error: Uncaught PHP\InheritanceError: The type ROFL1 is not covariant to ROFL2.
yum i'm getting generics [accidentally] working
 
Jutland.
 
Cool, let me guess abit. Århus?
 
Born 'n' raised. And still living there
 
Cool, atm living in Odense (working for GulOgGratis) but from Fredericia
 
8:22 AM
No offence meant at all, but, is GulOgGratis still a thing? I though they had gone out of business with google 'n' things.
 
hah, fair question yep it is. It is amoung the top 10 half the time. It only runs half the traffic of Dba, but it is still major.
 
So, you do SEO 'n' stuff?
 
@JoeWatkins Introducing today: callback hell … right?
 
@Epodax nope just development (mainly backend)
 
8:26 AM
context: github.com/krakjoe/apcu/issues/142 (and the reddit thread linked in the issue)
 
Ah, nice.
 
How about you, all-around stuff?
 
All around, Sysadmin. I'm the only IT guy they have so I handle everything.
From servers to developing code to maintaining it all.
 
okay =) when I google EarMaster I find some music learning software, is that where you work
 
Abe
user image
3
cc @MadaraUchiha you are not one of us anymore, but i think you still have several votes here :D
 
8:34 AM
@Abe Heh, thanks :)
 
Aye
 
=) @MadaraUchiha - one of us, one of us, one of us ..
@Epodax cool software
 
Ayup :P
 
9:05 AM
posted on November 12, 2015 by nlecointre

/* by Mulder */

2
 
Abe
rofl ^
 
He tries it… AGAIN?!?
 
I guess persistence is one of the keys to success
 
@Leigh Here
 
9:19 AM
Who is this teo guy
 
Well, it doesn't matter who gets nominated anymore, Madara Uchiha is there and that's all there is needed.
 
Hmm. Candidate put "json" down as a key skill
 
> Your Carphone Warehouse order will be delivered today between 11:13-12:13
lol @ specificity
@Sean heh
 
hi all
 
\o
 
9:26 AM
got this in my php.ini : extension=php_pgsql.dll
extension=php_pdo_pgsql.dll
extension_dir is set as c:\php (windows)
if I uncomment the pdo_sqlite extension, it appears in phpinfo()
but, pgsql seems to fail :/
I have "no value" in pdo section of phpinfo
The only strange thing I see now is this :

Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\PHP\php.ini
 
Got the dll in that directory?
 
yeah
both php_pgsql.dll & php_pdo_pgsql.dll
PDO support enabled
PDO drivers no value
for
;extension=php_pdo_odbc.dll
extension=php_pgsql.dll
extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
 
ThW
The extension dir looks weird - I would expect something like c:\php\ext
 
yeah looks weird, i agree
but, now I fix these changes in file :
;extension=php_pdo_odbc.dll
extension=php_pgsql.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_shmop.dll
(enable sqlite)
got this :
PDO
PDO support enabled
PDO drivers sqlite
pdo_sqlite
PDO Driver for SQLite 3.x enabled
SQLite Library 3.8.10.2
(changes done only in c:\php\php.ini, not in windows dir)
btw, there is no "php.ini" file in c:\windows
 
Hi Guys..
 
9:42 AM
Heyop
 
Oh man
 
I am trying to implement the HTTP Post Authentication , which mentioned on this document : https://www.clearslide.com/view/mail?iID=YS7LCS8XDPCABFR453DE
Can you guys give me some light on this
 
I was on the fence when this one listed "Wordpress" as a key skill, but when he mentioned "WordPress" after, I was sold
 
Abe
@PeeHaa i think i have a couple of weeks free now. hopefully this time i'm going to finish you know what \o/
 
Tried to add this to httpd.conf : LoadFile "C:/Program Files (x86)/PostgreSQL/9.4/bin/libpq.dll" but apache does not start with this line... any idea?
 
9:57 AM
Hey guys, im really irritated about why this is wrong '@^\/\/Hello\/\/world\/$@'
it should match /Hello/world/
 
posted on November 12, 2015 by Joe Watkins

Fig 1. Stampeding Elephants.We cache things to avoid unnecessary load on our servers. It might therefore surprise you to learn that when you are most vulnerable, the kind of shared memory cache that is APC(u) will stab you in the face ... APC(u) has had stampede protection for a long time, however, it is perniciously named, and ineffective when it is most needed. You are most vulnerable to h

 
I did try out this site regex101.com
 
@Asperger but you have \/\/ I count two /
 
so it seems errors are fixed but the logic of my regex is wrong
 
Literal match for "//Hello//world/"
 
9:59 AM
yep
 
WOOOW
 
should be obvious that \/\/ is not the same as \/ as in the start and the end of your regex
 
@Sean best site ever!
@RonniSkansing ya it is, I was abit confused because at first I only had 1 then regex101 told me there was a error, adding two fixed it. Dont know, its all weird and need to get used to regex xD
wow
awesome!
 
If anyone ever "fails" like me on this strange pgsql issue, just fixed it with loadfile for php5ts.dll + libpq.dll (from the php path)
 
10:14 AM
@rdlowrey uhm… you did not well test range support when writing it, right? missing response->end(), ranges off-by-one, seeking to $startPos forgotten etc. … Well I'm having fun writing tests and fixing these :-D
 
I like it for some reason i.imgur.com/L41HUso.png
 
lmao
 
It works but my code still returns false, so it echos 0
	$getURL = $_SERVER['REQUEST_URI'];
	$type = '@^\/project\/PROTOTYPES\/$@';
	echo preg_match($type, (string)$getURL);
Im requesting the url name which returns a string. Then I check if the pattern matches the searched string
I did typecast $getURL just in case
 
> echo preg_match($type, (string)$getURL);
 
whats the difference?
 
10:22 AM
Just to note
that preg_match returns either 1, 0, or false
 
oh
 
That's also useful for debugging.
 
I see, alright, didnt know that.
 
If it returns false, your pattern is failing.
If it returns 0, your string didn't match
If it returns 1, it matched
 
it did echo 0 yes
 
10:24 AM
Then the next step is to check the value of $_SERVER['REQUEST_URI']
 
I echo getURL variable and this is what I have /project/PROTOTYPES/function-prototypes.php
 
ThW
@Asperger the backslashes are unnecessary.
 
so basically the string there exists
 
ThW
If you use / as delimiter you would need them, but not with a different one
 
well that is the output, with slashes
 
ThW
10:27 AM
And why are you using preg_match for a simple string compare?
 
@Asperger /project/PROTOTYPES/function-prototypes.php will not be matched against '@^\/project\/PROTOTYPES\/$@'
 
@Sean oh then the logic is wrong
 
And @ThW is correct, there's potentially a simpler way to match it.
 
@Sean as it is supposed to see if those exist within that string
not check if the entire string consists of the pattern
@Sean I am absolutely sure, I just want to learn regex so im fine with it as for now
need to level up ; )
 
ThW
$type = '(^/project/PROTOTYPES/)';
 
10:29 AM
ah!!!
$ that was the issue
I specified the end right?
 
Yep. $ represents the end of the string.
 
crap, why didnt I think about it earlier xDDD
@ThW I see you didnt use @
 
ThW
@Asperger I prefer using () as delimiters, like "group 0"
 
Always used #, no idea why.
I like the idea of () though
 
@Sean, Could you please have look on my issue which i mentioned above?..
42 mins ago, by Salim
I am trying to implement the HTTP Post Authentication , which mentioned on this document : https://www.clearslide.com/view/mail?iID=YS7LCS8XDPCABFR453DE
Can you guys give me some light on this
 
10:32 AM
I see, so it is a personal preference. I will use () then
much cleaner
 
MOrnign
 
ThW
@Sean # is used for comments in an extended pattern, so here is a conflict
 
@Salim Not the right person to speak to about it, though you have a whole room of developers :p
 
Sorry about that..
 
Thanks for the tips guys
 
10:39 AM
Any idea guys... :)
 
@rdlowrey finally exactly 33.3% coverage… :-D
 
Is Nov 26th the last RC planned for php7 before a full release?
 
I thought next year february
 
Am I right that this matches anything in between the /: project/anystring/
 
10:53 AM
@Sean no, it should be the release itself
 
oh, right!
@Asperger * matches 0-* of the preceding group or character
so \/* matches 0-* '/'
`^\/project\/*\/` would therefore match
/project/ , /project// , /project/// , /project/foo (basically '/project/' and then anything after it)
However, it would match that anyway without \/*
 
if it does match any precedant character then I need to somehow make it end somewhere
 
What are you trying to match?
 
I have a testing url which is projects/unkown/
unkown can be anything
actually what Im trying to do:
 
Alright, do you want to know what is between the /s too?
 
10:59 AM
Also… over 10000 lines added to Aerys \o/
 
get the section of the url that starts with projects and ends with unkown/
 
ooo, nice @bwoebi
 
just need to add 14 times more lines to exceed @rdlowrey :-D
 

« first day (1853 days earlier)      last day (3092 days later) »