« first day (1324 days earlier)      last day (3628 days later) » 

12:01 PM
@AlmaDo Would you say, if a Torrent object has methods like start() and stop(), and these call methods within an ActionDispatcher dependency, that this is the active record pattern?
And that really there should be a TorrentManager that takes an instance of Torrent and uses it to start(), stop() etc?
 
You use Mocks to test methods that have DI objects passed to them in PHPunit?
 
?
 
    private function getStaticContent(ViewMapper $routes)
    {
        $routeSettings = $routes->routesList();
        return $routeSettings[$this->subdomain][$this->path];
    }
I have this. I want to write a test for.
the $routes is just an array of all the available pages and the static content they require (css, js etc)
 
Doesn't look like it's something you'd test. Because you're mocking out the ViewMapper object, which is already unit tested... and you'll be mocking what routesList() returns....
 
$routeSettings['www']['/test'] = [
    'header' => 'page-header',
    'body' => 'test'
];
How would I write a test for that?
 
12:05 PM
Looks more like your ViewMapper object should have a method that returns static content. You'd test that in your unit tests...
 
I see.
 
I don't know, I may be completely wrong :-) Just looks like getStaticContent only manipulates a very simple array
 
What would the rest look like after I move the function in to the viewmapper?
 
No idea I can't see your code
 
12:11 PM
Btw I've never coded a ViewMapper
 
I've no experience making anything so I name things incorrectly and do things incorrectly.
Know any good reading on how you should structure views?
Typically i just read throught @tereško's answer.
 
@cspray PR-64 is in Auryn. Basically it allows you to create your own class to set the DI rules to use in the injector. tbh I'm still not liking combining share + define in one function though. It doesn't allow you to do anything that isn't possible to do now, and having more than one way to do things is usually bad.
 
Hi there, is it legit to use chrome in our softwares as web browser
 
Am I in the Chrome license discussion room again? Damn.
 
oh is there such a room?
 
12:21 PM
\o/
 
afternoon all the people ...
 
Hello
 
> Installing ri documentation ...
^^ BETTER GO FOR A WALK
Oi @JoeWatkins
 
does anyone remember the code I posted in here the other day for that jit ext I was playing with ?
 
Vaguely; you had it running in userland.
But there were perf issues, no?
 
12:26 PM
I sorted those ...
 
Niiice :-)
 
it was pretty hard to understand code though I think ...
<?php
/* This is a fibonacci function, and is ~60 times faster than PHP :o */
use JIT\Context;
use JIT\Type;
use JIT\Signature;
use JIT\Func;
use JIT\Value;
use JIT\Builder;

$context = new Context();

$context->start();

$integer   = new Type(JIT_TYPE_LONG);
$signature = new Signature
	($integer, [$integer]);

$function = new Func($context, $signature);
$zero     = new Value($function, 0, $integer);
$one      = new Value($function, 1, $integer);
$two      = new Value($function, 2, $integer);
$three    = new Value($function, 3, $integer);
this is easier, right ?
 
Hell yea. That's awesome.
I like the new Signature(); return, and array of params?
 
yep
it's done ... was fun ...
 
When you do new Value, is that evaluating $function?
 
12:28 PM
no, they are constant values
 
Oh, so then $zero is invokable?
 
most builder methods return Values (temporary ones) and you create constants like ^ that for now ... or we can have function->createConstant
no
 
Okay, so you've done everything except define the body for fib.
 
no, it's defined ...
 
lol, apparently I'm off in a world of my own
 
12:33 PM
from $builder declaration downwards is the body of the function being built ... that codes bit messy, probably easier to understand in README.md where I tidied a little ...
 
Oh shit. I didn't scroll.
lol
Fucking chrome, the scroll bar didn't show up right away.
 
Any of you seen the new xmen yet?
 
@JoeWatkins lol, now that I've actually scrolled and read; that makes perfect sense.
 
@DanLugg pretty easy now, right ? wondering if i should pecl and document it, it's pretty damn cool I think, but it might only be us in here that think it's cool ...
 
It is pretty damn cool. I doubt it'll be only us.
We might think it's cooler ;-)
And a 60x perf gain over native userland?
 
user895378
12:43 PM
I think this should be said publicly: @JoeWatkins, you are a php-src beast.
9
 
user895378
Also: morning.
 
Morning
 
@rdlowrey Starred for great justice.
 
user895378
Pinned/unpinned for additional great justice and self-starring.
 
Pin it! <marquee> it! Whatever!
Also, morning @rdlowrey
 
12:50 PM
@DanLugg yeah, for that specific function anyway ... I think we need a name for it because if i call it jit on pecl ppl will get the wrong idea and it will probably cause an argument ...
@rdlowrey hehe :)
who is A5l something ?
@A5l-lE5 speak, I'm listening ... no moar rooms already in three ...
 
@JoeWatkins userland-jittifier
 
jitwatkins
 
hehe
 
jit-fu -- JIT For Userland
 
nice
 
12:52 PM
what would ns be ?
 
JitFu (please not JITFu)
 
@A5l-lE5 speak, I'm listening, stop with the room invites
 
m getting an error in wordpress on localhost Warning: mysql_set_charset(): Error executing query in C:\xampp\htdocs\wordpress\wp-includes\wp-db.php on line 715
 
@DanLugg the ext name needs no - or _ in it really else awkward from experience ...
 
can you helo
 
12:53 PM
OH MAN
I was gunna call a WP question!
Damn it. I shouldn't have held back.
 
@A5l-lE5 I stopped listening, you said wordpress ...
 
@JoeWatkins Right, hence JitFu
 
Jit looks a bit odd ?
 
No more odd than Xml or Html
 
user895378
lol
 
12:54 PM
they look odd too ...
lol
 
lol
 
user895378
"No more odd than Xml" ... talk about damning with faint praise.
 
Don't question my man-love.
 
something u or usomething is good, I used that before ... uopz ... how about ucode ?
I'm terrible at names ...
 
You could have a cute ninja mascot/icon with JitFu
Further indicates speed.
 
user895378
12:56 PM
ucode is a bit too vague for my taste.
 
user895378
ujit?
 
yeah it's crap
 
user895378
ujitfu
 
user895378
sounds like jujitsu.
 
ujitfu
 
12:57 PM
That works too.
 
I think I think it ...
 
joeJitFu
 
but ... what does it mean
 
Joes' JIT For Userland
 
@rdlowrey As I mentioned before, I've been using my fork for months so there's no time pressure from but it would be nice to merge before too many changes in Auryn are done....as that refactoring doesn't exactly play nice with merging.
@rdlowrey Also, here is a link to a conversation about the doctrine crap slight oddness.
 
12:59 PM
omg, a picture ... I love it ... where's that from ?
 
Don't think re-doing that conversation would be any more productive this time.
 
user895378
@Danack Yeah I totally get it -- merging becomes a real deterrent to progress at that point.
 
thought a little PHP logo on the ninja's chest.
 
user895378
@Danack thanks for the link, I updated my comment on github with it.
 
Would be cool if someone <cough> @salathe </cough> could do an elephant in a ninja uniform.
 
1:00 PM
@Fabien When I hit the office tomorrow, I'll PHP-ize a vector Ninja in shoop.
 
heh
 
@Fabien or that.
 
user895378
@DanLugg this is awesome. And I think I really like ujitfu: U JIT For Userland
 
^^ Just first page of google images.
But something like that.
 
I liked joeJitFu. For vanity!
 
1:01 PM
you jit fuck you!
 
If Torvald can do it. Why not Joe.
 
user895378
\o/
 
lol
 
user895378
Anytime you can build profanity into your library name it's a win.
 
so what does ujitfu mean ?
 
user895378
1:02 PM
U JIT For Userland
 
U for what though?
 
user895378
You.
 
You
 
You...
 
^^ ;-) I'm with ya.
 
1:03 PM
like the american dodgeball association of america ?
 
Oh a literal you.
 
user895378
@Fabien you intarnet n00b!
 
user895378
2 mins ago, by PeeHaa
you jit fuck you!
 
Or really.. just because "u".
 
Little appley for my tastes.
 
1:03 PM
You as in me, or u, or you ? or someone else ?
 
ijitfu sounds like sushi
 
@rdlowrey I can't blame him. That's the first thing that came to my mind as well :D
 
apple and EA. EA uses u for it's stuff. uPlay etc.
 
user895378
WiiU
 
lol
 
1:04 PM
PhpJitFu
 
iWiiU360
 
^lol
 
can't have php in the name because no battles because ... sunday
 
Worked out fine for dbg though.
 
user895378
iWiiU360GenesisUltra
 
1:05 PM
pJitFu.
p for PHP :P
Ah I still like JoeJitFu. Simply because Ju Jitsu
 
> I'm going to quit Hogwarts to become a Jedi. ~Gandalf
@Fabien Do you know which is the deadliest religion of them all?
 
Christianity?
 
@Fabien Judaism.
We have jew jitsu!
 
Dad Joke alert.
 
1:07 PM
@SecondRikudo :D
 
Where's @webarto when you need him?
 
Buying guns most likely.
 
user895378
@Fabien JoeJitsu would be okay with me too.
 
Against my jewjitsu :D
Thanks Obama!
 
Well jitFu is available on github so I assume almost everything suggested is too.
 
1:10 PM
jit-fu: new martial-arts style. Coming soon. See in all cinemas.
 
now there's more than one name ... so I dunno which one to use ...
 
Well, JoeJitsu, JitFu, etc.; any will work with a PHP ninja icon/mascot
 
ijitfu - I'm a JIT for Userland ... makes some sense
ujitfu - You JIT for Userland makes a little less sense
joe is my name, not sure I like using my name, urm ... dunno ...
jitfu - JIT for Userland is what it is ...
jitfu ?
 
1:16 PM
bit short tho ...
@Fabien hahaha
 
@JoeWatkins What are we debating again?
 
because I can't really call it that, I'll get shouted at I think ...
 
@JoeWatkins JoeJITsu is nice I think
Got a nice ring to it
 
who voted Lusitanian's Mother
lol
 
lol Lusitanian's Mother got a vote
I bet it was @PeeHaa
 
1:21 PM
:D
 
Nope it was me :(
 
:o Shankar is here
How's life?
 
@SecondRikudo :) . lol its good :) Thanks
 
@Fabien Aw, Jit-Fu and JitFu are the same thing
 
Can I revote ? I wanted to click on JoeJitSu
 
1:26 PM
Proxy ^^
 
lol hmmm
 
I predict that in about 5 minutes, it'll be Lusitanian's Mother: 987234
 
@DanLugg I'm already writing the program
 
lol
 
Lushitfu
 
1:31 PM
LuSHITfu
 
Exactly :)
 
Just write it into core and call it PHPYANG
 
that should be something meaningful. Like PHPASS
 
PHP Yet Another Next Generation
 
I got 5 minutes laughing when listening @ircmaxell on his video, when he tried to pronounce that as ph-pass and not php-ass
 
1:34 PM
@AlmaDo link? :D
 
1 min
 
30 sec
10 sec
 
TIME'S UP
 
1:36 PM
Too late.
At what time though? :D
 
that what I've tried to figure out
 
^^ How convenient.
 
@DanLugg \o/
 
Apr 8 at 8:27, by Alma Do
user image
 
:-)
Hmm. Ruby seems to be shitting the bed over Sass.
 
1:47 PM
@tereško Was thinking about yesterday's case, and got an idea, but I have a question if you approve it - Can services serve services? e.g a service uses few services.
 
/me is out a while ... do more polling ... back soonish ...
 
Later @JoeWatkins
 
@BenBeri not really. Or at least I have not come across a good usecase for that.
 
well it probably wont help too since you IIRC said that services should not validate
 
99
Q: How do I select an element with its name attribute in jQuery?

MSajjadiHow to get an element with its name attribute with jQuery? Is there anything (like # for id and . for class) for name in jQuery?

Must. Not. Upvote
 
1:57 PM
okay, let's delv it!!
 
@SecondRikudo aint you proud of your answer ... eih
 
@Danack happens when you throw an exception inside the array_map function array_map(function($data) { throw new Exception(); }, $array);
 
@tereško This is commonly known as the bikeshed problem.
 
@SecondRikudo nope, it's not
 
@tereško Yeah, people will see an easy question and an answer which applies, and they upvote
I doubt even 5% of the votes my answer there got was from people with over 200 rep.
Am I proud of the answer? No. But it helped me get the gold JS badge, which is good for the dupehammer
So I guess I'll have to live with the shame that one of my most upvoted answer is a jQuery one.
 
2:01 PM
oh .. if you put it that way, then I guess could looks at it as "bikeshed"
 
Hello
I am not able to ask questions on my account. What should I do
I try to answer questions that are under my limits
would that do
 
drink alcohol to drown the pain, from not being able to perform such operations :D
 
I would definitely ;) but dont drink alcohol
 
Wow. Sunday herp-derp. Spent 10 minutes stressing over why my query wasn't working when trying to add some values to some rows in my table. Turns out UPDATE works a lot better than INSERT when you know... updating.
 
@subhamsoni Improve your existing ones so that they are reopened.
@Fabien =D
 
2:05 PM
@Fabien Compromise; INDATE or UPSERT
 
@Fabien hahaha, had that problem as well bro
 
@SecondRikudo Can I edit my questions, such that it is totally a new one>
 
@DanLugg sounds more like ABSURD
 
@subhamsoni here is something you definitely should not do: You should not come to random chat room, crying about results of your inability to google before asking question
 
Aye. It should magically know what I am trying to do!
 
2:06 PM
good point tereshko
 
you are not even a php developer
 
@subhamsoni No./
 
@Fabien it should be able to read your mind and code itself :D
 
Sorry everyone. I will take care next time
:)
 
At a minimum
 
2:07 PM
Thank you @SecondRikudo
 
they should use this to make you code by just thinking about it
 
@bwoebi Thanks - I had a discussion with people in here before complaining about array_map eating errors, but inconveniently forgot what caused it.
 
@PeeHaa And then they come here and ask "Why am I question banned?"
 
2:15 PM
@SecondRikudo and, just like the previous customer, rewrite his own questions
 
@SecondRikudo :)
 
@Fabien I strongly dislike any song with the word "Nigg(er|as?)" in it.
 
As a generalisation of the music or in offence to the word?
 
@Fabien Offense to the word
I think it's degrading, even if they call each others that way.
As if your color defines you
I even dyed my hair white in protest! (And to destroy the world as we know it)
 
heh
Can't really say I find it offensive personally. I try not to taboo anything.
 
2:20 PM
@Fabien Not taboo
But it's a racist remark.
It's like in Hebrew we have this word, I don't know where it came from (certainly not from the bible)
 
I know but it's no worse to me than any derogatory remark.
 
"Kusit", which is like the word "pussy" in female form.
It's supposed to mean "Hot", or "Very attractive"
But I think it's very degrading, and people use it without even thinking about what it means
 
It also falls in to a persons choice to be offended though.
 
@Fabien That just tells me people are too stupid to even understand them being insulted.
I can call people here nincompoops and most of them would have to Google to understand what I wrote
Does that mean I did not insult them?
 
Or they choose to reflect the insult as a product of the person saying it.
And the context.
Basically desensitization.
 
2:25 PM
@Fabien It's like girls calling each others "What's up ho'?"
Even if she doesn't take offense, I think most of us would agree it's degrading.
 
So she's not the type of girl you'd marry :P but that's fine. Doesn't mean they shouldn't say it.
If it's inoffensive to the receiver.
 
I can't force anyone to say or not say something
 
> Approach the world as though everything you do will offend it, and everything in it will offend you.
2
 
I just think that people should think for a second or two before they get a word out of their mouth.
@DanLugg True. But I'm not taking offense.
I'm cringing for those who should but don't
Due to society, due to undereducation, due to whatever reason.
 
Fair. But that's where I pull a good ole cup of IDGAF.
 
2:28 PM
@SecondRikudo I get that it can be trashy, but it wouldn't stop me enjoying a good rap song. :)
 
Giving too many fucks means you run out of fucks to give. And sometimes it's best to preserve the aforementioned fucks for fuck-worthy giveables.
 
His face is priceless ^ :D
 
heh
 
hi all
 
2:30 PM
^^ Erry Friday at about 4:45PM
 
^^ I'm guessing; my last Friday at about 4:45PM
 
@DanLugg And the panda suit?
 
Well, it wouldn't be complete without it.
Worst case, I'll just paint it on and go to work naked.
That way, at least I won't get called a furry.
 
2:32 PM
^^ My last Friday at 4:59PM
You're just foretelling the future my friend.
 
@DanLugg Your last Friday 5:01 PM
Folks, do we want this question? superuser.com/q/761050/104976
 
@SecondRikudo Well, based on my potential day leading up to that point, I think it'll go a bit more like this: llwproductions.files.wordpress.com/2012/04/…
 
@SecondRikudo lol, if my boss is here then I'm calling the police because I'm in my underwear at home.
 
@DanLugg You'd better start dialing boy!
 
2:43 PM
Actually, I'm supposed to be going to her house today along with co-workers. I... don't think I'll be doing that.
 
why not?
 
@DanLugg Is her name "Libby" by any chance? :D
 
@Fabien Because I already spend 45+ hours a week with those people; and it's not like we can even gripe about management, because, y'know, being at the management's home and all.
 
@rdlowrey I absolutely need to become owner again!
 
@SecondRikudo lol, no
 
2:45 PM
You can snoop
 
Could, I don't think we'd be there long anyway; something about doing a wine tour.
It'd be fun, no lie there, but I'd just rather not.
@bwoebi Sorry, the gif police stripped you of your badge.
 
Those kind of things sound great on Wednesday, then every day you get closer the more you cba.
 
@Fabien Those kind of things would be good to do on a Wednesday. Break up the week a bit.
 
lol yes
 
I'm derping all over this library...
I can't figure out the most sensible way to get all the routing data out of... the router; parameters, remaining URI segments, and handler.
I suppose I should make a return-type struct; or just array-oriented programming it.
 
2:50 PM
@DanLugg Return a Route object
 
Meh, that's not how I've got it set up at the moment; Route has a Pattern and a Handler. If the Pattern matches, I need to bind the resulting parameters to the Handler and return that for dispatch.
Though, the binding can be externalized (or should at least)
I think part of the problem is I'm trying to completely decouple the routing from the requests, such that routing only deals with scalars (verb, uri segments, etc)
 
it seems today is a gifday
 
3:23 PM
I wish PHP was more strict with type names as strings; this upper/lower/mixed case + backslash-prefix or not whole thing is a pisser.
 
@DanLugg bad news
6. Don't start an RFC (or mail list discussion) about standardizing PHP function names and function argument orders. There are several historical reasons why the functions are what they are (including compatibility with underlying libraries), and many good reasons why the change would be counter-productive causing more end-user confusion, would lead to unmaintainable PHP engine code, and generally be a waste of everyone's time when they could be doing more interesting projects...
 
@AlmaDo That's completely different. Dan's not suggesting changing the names, just making them only match exactly on case, rather than any case being allowed.
 
@Danack even worse (: I can't even imagine how much sh*t would be thrown on that kind of RFC :-D
 
^ Open link -> Read title -> Closed tab
 
@AlmaDo I'm dying here! XDDDDD
 
well deserved :p
 
@Fabien Elephant in ninja clothes... that sounds awesome!
 
:D
 
3:54 PM
@salathe I call that a.. very precise description of what PHP does
 
Hi all. I'm having a problem with an error message on modsecurity. Whenever appending a $_GET PHP variable to a php file on the server, I am recieving a CSRF attack warning in the error log. I have been looking for an answer to this, and there are multiple posts from people with the same problem on google, but none of them answered. I was wondering if this was a bug, or what it could be. It's a complete wonder to me. PS In this php page, I have not started a session either.
 
@HelpingHand try trim.
 

« first day (1324 days earlier)      last day (3628 days later) »