« first day (1285 days earlier)      last day (3646 days later) » 

4:00 PM
@rdlowrey I don't pay for my server os. Seems to be pretty decent
 
ThW
@user3123545 no Ratchet package in your composer.json
the require is missing
 
@user3123545 ^^ that. You need to add a require for the library.
 
Shouldnt their installed do that?
 
omfg that is just epic @Fabien
Best thing I've seen this year
such awesome
 
ThW
@user3123545 install what?
 
4:01 PM
@ThW Sorry, I mean the Windows Installer I used
 
ThW
of composer?
 
Oh i get it, sorry
composer is just like an includer, got confused
 
ThW
how should composer know you want Ratchet?
 
I thought composer was actually rachet's package lol, just got confused here my bad, never heard of it.
 
@BenjaminGruenbaum Singleton couples you to one instance. Pretty easy to work around if you need a second. Pretty easy to refactor if the rest of your app is sane. Active Record on the other hand couples your application to the DB structure. Meaning if you need to refactor your schema (for performance reasons, or whatever), you need to rewrite your entire application.
 
4:02 PM
@Ocramius True, but that's still nothing percent wise I think. Niki and others alike do it because... it's not their job. And nothing can be changed there I think except more contributions from similar people. There shouldn't be any company behind IMHO.
 
in fact, that's actually a pretty common problem identified in rails. If you miss your initial abstraction, it's often easier to nuke the whole codebase than it can be to fix the architecture
and that's directly resultant from the coupling that AR introduces
 
@TOOTSKI yes, but you can't deny that it helps a lot
on the other side, zeev and andi almost always negate new features =_=
 
@ircmaxell or you proxy and pay the cost.
 
@BenjaminGruenbaum proxy which ?
 
@Ocramius There must be a solid company behind otherwise it will not gain popularity i.e. it needs marketing, no matter how good the product is.
 
4:04 PM
The object I guess, to the new schema, instead of mapping them 1-1
 
@BenjaminGruenbaum then it stops being active record, and becomes a data mapper
 
Yeah, it's no longer an active record but that's how you 'scale out' of it.
 
Just a suggestion: all of you probably have more important things to be doing than talking about data mappers and active record ^^
 
Why? This is fun
Also, I'm arguing as some one who never really used ActiveRecord for anything other than a PoC :P it didn't make sense in my use cases.
 
OK people I have found the most secure login script today on the wild waters of SO:
$password = md5($_POST['password']);
$query = $pdo->prepare("SELECT * FROM users WHERE user_password = ?");
 
4:09 PM
@Fabien hey, since when do you look like a serious person, @rdlowrey? I thought you were a drug dealer or something!
 
Not bad for SO. Not bad at all.
 
pastebin.com/39uQYS2J Is that right now?
 
user895378
@Ocramius I used to wear a suit everyday to work. I can cleanup on occasion.
 
woah
I'm not even wearing pants.
 
@Ocramius No, that's my job.
 
4:14 PM
@SecondRikudo good luck!
 
We should form a Not Even Wearing Pants Developer Society.
 
user895378
Oh, don't feel bad. I haven't shaved for about four days and I'm sitting at the computer with thick glasses and no pants.
 
Current status.
Tip: the trick to getting @Facebook recruiters to leave you alone is to tell them there's absolutely no way you can relocate to California.
It's sad because there's no way :D
E_TOO_MUCH_TOOTSKI
 
@TOOTSKI Well, they have other offices
 
@ircmaxell Yeah, but pretty much doesn't matter for me. Same situation.
 
4:22 PM
ya
 
They'll rather hire someone who can bike to work instead of flying over 6000 miles :)
Which is totally natural thing.
 
they'd also rather hire people they can whip
 
lolwut
 
@ircmaxell Hahaha, word.
 
I installed composer, added the require for Rachet, did php composer.phar install, it wrote this: pastebin.com/PALeX8zk, opened PHPStorm and it still doesn't know the namespaces, what am i doign wrong
 
4:26 PM
@user3123545 Have you required the lib into your project??
 
In PHPStorm?
 
and I'm not one of those types of people :-P
 
Somewhere in your code
 
Nope
 
In case the hint wasn't clear to you. You should totally do that :)
 
4:28 PM
you need to require "vendor/autoload.php"; once in your code
to tell PHP where to find the dependencies
 
@ircmaxell Too soon :P
 
:-P
 
My former manager, which turned from PHP to Ruby, convinced me that TDD is the shit. So I had to do it like so for a while, and it's now dead or what?
I don't get anything they're bitchin' 'bout on Twitter :)
 
ok ok ok people. Now this is true genius at work!
function formValidation()
{

 var names = document.registration.username;
var names1 = document.registration.firstname;
var gender = document.registration.gender;
var mobno = document.registration.mobileno;
var emails = document.registration.emailid;
var address = document.registration.address;
var question = document.registration.question;
var answer = document.registration.answer;

if(allLetter(names))
{
if(alphanumeric(names1))
{
if(validgender(gender,gender))
{
if(validmobileno(mobno))
{
if(validemailid(emails))
 
4:36 PM
@PeeHaa short circuiting :-(
 
I literally LOLed
 
wait, what?
 
:)
 
no, that code isn't in the "source"
 
???? what are you talking about???? ;)
 
4:40 PM
@TOOTSKI it's not dead.
 
There is just so much gold on SO sometimes I get confused when linking
 
0
Q: Submit value on GET

santaOK, this is probably elementary, but I'm having a mental block. I have a set of radio buttons and I need to submit the value to a URL in the following format: mypage/myValue and not mypage/?name=myValue Here's what I have: <form action="mypage/" method="get"> <input type="radio" nam...

^^ has no JS in it at all
 
Ahhh
 
I am kinda tempted to post an answer of moving the return false; to the start of the function for performance :P
 
4:44 PM
This is not a place for fun.
 
@PeeHaa well, it does alert
@TOOTSKI it's not?
10
A: How to keep track of the root object from a class chain in PHP

ircmaxellSo, in the spirit of answering the question, of course there's a way (warning: here be dragons): function YouAreAnIdiotIfYouDoThisForReal($skip = 0) { $bt = debug_backtrace(); if (isset($bt[1]['function']) && $bt[1]['function'] === "__construct") { // called from constructor, so ...

 
@ircmaxell Not if everything is valid ;)
 
here be dragons(tm)
 
@TOOTSKI I'm going to start adding that to all my "pseudo-joke" answers :-)
 
So we can search later and share a laugh :)
Or two.
 
4:45 PM
yup :-D
 
:D
Real man question, do you guys shave with razorblade or those fancy things?
 
@TOOTSKI What are those 'fancy things"? Blunt rocks?
 
Unless you're @rdlowrey.
 
user895378
<-- uses a razor blade like once per month. I usually use the electric razor trimmer every two or three days to keep a permanent 5 o'clock shadow.
 
@TOOTSKI I've done both.
@rdlowrey basically same here
 
4:48 PM
@rdlowrey The bum effect. Nice!
 
user895378
Yup. It's the only way to go.
 
@PeeHaa No, the razors that are advertised by soccer players that attract dozen of ladies.
 
user895378
Shaving with a razor every day would be terrible.
 
I'm bleeding more than [sexist joke here].
 
@TOOTSKI Is that that gilette pro glide ultra super massaging happy end razorblade system with squarting handle?
 
4:50 PM
The top 1/2 of this photo is awesome, but I can't get around the distortion in the bottom half: apod.nasa.gov/apod/ap140417.html
 
If so. Yes I use that
 
@PeeHaa That! It's very detailed i.e. gets everything off, but I use real man razorblades, but that doesn't work well, or I don't know how to do it.
 
@TOOTSKI I used to shave in the car. But the battery of the thing is broken :(
 
Last minute :D
It's OK, I don't leave the basement anyways.
@ircmaxell Too round, yeah.
 
4:57 PM
Finally set ratchet up ;3
 
@rdlowrey I actually shaved for the first time in 2 years on Monday night
 
user895378
@cspray Woah, your beard was righteous too. Are you having post-partum depression?
 
Yes. Freedom is here. And not the US freedom where it means the exact opposite. See you all laters
 
Is stackoverlfow chat using ajax to send messages? gyazo.com/0764038a0434380019b2e24c437e4e6b
 
@rdlowrey I have caught myself trying to stroke my beard and wind up hitting air or bare skin
 
4:58 PM
@user3123545 both xhr and websockets
 
user895378
@PeeHaa later
 
Also feeling stuff on my face is really weird
 
@PeeHaa I see
 
@PeeHaa :D
 
5:04 PM
New twitter look sucks...
 
user895378
New facebook twitter look sucks...
 
@rdlowrey what's ftfm here?
 
user895378
ftfy == "fixed that for you"
 
user895378
Because twitter looks just like facebook now
 
user895378
Although strictly speaking I should've struckthrough "twitter" and not facebook
 
5:14 PM
@rdlowrey ah, I have no idea how facebook looks now… and I don't want to know it
@rdlowrey and I asked "what's fixed that for me?"
 
so ... I promised to show some files from my previous workplace system
gist.github.com/teresko/… .. this would be the "main file" (with direct link to the magica __get() method
enjoy
 
@tereško woooooooaaaahhh
 
if enything, it's not the largest file in the project .. not even close
I especially like the $this->$objName = new $objName($this); part
also, please no passing around of this link .. I still might get in trouble for it
 
the infamous service locator <3
 
emm .. not really
more like the infamous god object
 
5:28 PM
@tereško I don't know if that object is passed around etc.
 
5 mins ago, by tereško
I especially like the $this->$objName = new $objName($this); part
it passes itself around
 
so that we can use it in the instantiated object as service locator!?
well, let's say it's a mixture of god object and service locator?
 
for example, it was used to assign value to template
$this->kernel->path->setVar('mlabel',$this->kernel->path->getVar('label'));
keep in mind, that $this in this case actually IS kernel
 
lolwut
 
That is beautiful
 
5:33 PM
$lang['misc']['version']['version'] = 'ERGO ver. ' . $this->kernel->kernel->version->cPportalVersion;
.. or like here
 
// my eyes!
	if (substr_count($_SERVER['REQUEST_URI'], "ee/health_insurance_information?cardnr=") ) {
@tereško there are a few more ->kernel missing it seems. E_NOT_ENOUGH_DISRESPECT_OF_LAW_OF_DEMETER
 
function __construct($siteID = "admin") {
    /// not inportant --- snip --
    $this->kernel  = $this;
 
Be happy that it isn't kernel::$self :-D
 
vimeo.com/80533536 <-- I forgot the awesomeness of this talk
 
how did estimate go in the end ? @tereško
 
5:45 PM
PHP.net: A or B?
2
 
@LeviMorrison That looks great!
 
@LeviMorrison nice!
 
@LeviMorrison Can't decide... leaning toward A, but maybe with the color choice of B for the headers, yea A.
 
The comparison is something akin to comparing green apples to red apples, I understand.
 
@LeviMorrison A
 
5:48 PM
Why do you guys like those boxes? They make everything a pain >.<
 
:-P
 
@LeviMorrison Either, without the dark background. :P
 
@JoeWatkins passed a lot of questions off to the PM
.. sry
 
@salathe Resistance is futile (sort of; you have karma ^^)
 
And I'm not afraid to use it. :)
 
5:49 PM
It has a lot of advantages.
I could list them if you would like me to.
 
@ircmaxell already won.
and joppi.github.io/2048-3D was easy too…
 
Did you hear about the Flappy48 game? Combines Flappy Bird and 2048
 
yeah
 
I think that's going a tad too far with it
 
6:06 PM
@cspray Nah, Mario is Missing: The 2048 Saga would be "too far".
 
6:43 PM
best I could get so far with these games was editing the grid in memory .... :/
 
@hakre haha :-D
 
creating unions with double and unsigned long long...
 
I am interviewing a couple people over the next couple days for a Sr. PHP Developer position, any tips? Quick coding tests I could have them do, something small but that tests as many skills as possible? Just trying to not make a $100k mistake, so if you have had anything that you felt worked well during an interview, please share.
I should say it is for a local full time position before I end up with a bunch of applications :)
 
No worries. I don't need a third job :P
 
:)
 
@Alan Check their github. Ask what sucks about php. FInd out what type of person they are :)
 
7:07 PM
What if they don't have github?
 
Ask them their bitbucket / whatever account
Or ask them about their last personal project
 
Thanks, that is good advice. I just lost my long time programmer of 4 years and not sure how to replace him. We just kinda lucked out finding each other.
 
Morning
 
@Alan Yeah programmers tend to do that after a couple of years :)
@SecondRikudo Morning
@Alan How big is the team the developer has to work in?
 
@LeviMorrison B
 
7:11 PM
Thanks ^^
 
@ircmaxell the talks is quite cool, and it was even give in latvia ... but for me to go to one of those things would cost almost the same amount as what I earn in a month
 
It is just he and I. I am pretty low level (Self Assessed)
 
The larger font sizes are a big plus, in my opinion.
 
@LeviMorrison B
 
@Alan Well in that case try to find out whether or not he is a dick and whether he is actually qualified. Most developers probably will have some open source stuff to show for
 
7:13 PM
@tereško the funny thing with that talk, is it's basically the polar opposite of DHH's talk
 
Thanks.
 
what's "DHH's talks" ?
=/
 
@tereško you missed the hubbub this morning?
 
link to transcript ?
 
7:17 PM
I suspect this will be terrible
 
he makes some really good points
and then goes on to draw out some pretty horrific conclusions
but it's worth a listen
 
@ircmaxell isnt that how RoR came to be?
 
@Gordon yup, which is why it's not particularly surprising
 
:)
 
Hey, Gordon. Not sure if you are aware but we're about to submit my Return Type RFC for discussion.
Thought you might be intersted.
 
@ircmaxell Except it makes a horrible, incorrect analogy.
 
@LeviMorrison which specifically?
 
@LeviMorrison yes, I am. Just terribly busy the last days
 
> Test-first fundamentalism is like abstinence-only sex ed: An unrealistic, ineffective morality campaign for self-loathing and shaming.
 
@LeviMorrison yeah, which led to this tweet:
The fact that tests aren't the ONLY important thing doesn't make it not important.
 
user895378
7:22 PM
Rails ... because even PHP programmers should be able to make fun of someone.
12
 
15:22 <clarkfischer> phpdbg.com looks cool
15:22 <Phergie> [ phpdbg.com ] phpdbg | php debugger
15:23 → shevron joined (~shevron@bzq-79-179-162-17.red.bezeqint.net)
15:23 <pteague_work> guy, i went from phpeclipse to netbeans to phpstorm ... if you have specific "must haves" check the ide for those, otherwise play around & see what you prefer
15:24 <Derick> it's also totally inadequate clarkfischer
New messages since you tabbed out
15:25 <pteague_work> is that the dbg for php that's been around for forever? or is that something new?
 
@rdlowrey We make fun of Java and C++ :-)
@ircmaxell Derick … arrrrrgh
 
yup
 
user895378
7:30 PM
> 15:28 <Derick> it's useless for the general developer
 
I almost want to reply: "At least it's not buggy as sin" :-P
 
user895378
It's going to be 1,000% more useful for the general developer than xdebug once the browser-based websocket frontend is finished.
 
@ircmaxell I'd really have replied that...
 
I know, I'm being more diplomatic. As I'm not going to take shots at Derick
 
@ircmaxell Not sure what he deserves
</joking>
 
user895378
7:32 PM
It's natural to feel defensive when shiny new things show up in the same arena where you've spent a lot of time in your own projects.
 
user895378
I don't blame him.
 
not does it change every instruction before it can debug it, nor does it require more globals than the entire executor parts of the vm, nor does it contain more code than the genome of a fucking whale ...
 
Didn't Derick write/rewrite the DateTime extension?
 
@DanLugg yes, he added DateTimeImmutable.
 
@bwoebi Oh, so he didn't write the original DateTime?
 
7:33 PM
@DanLugg several times
 
@DanLugg he has, but DateTimeImmutable is his most important contribution to PHP ever.
 
what room was that in ... wanna sign in to fuck with him...
 
user895378
@bwoebi No, that distinction goes to the date.timezone E_WARNING ...
 
@JoeWatkins #phpc on freenode
 
@rdlowrey no, it still isn't a fatal.
 
7:35 PM
@bwoebi Ah, well. Then. If I were to take pot-shots, it'd be something on the order of "At least I didn't introduce a mutable DateTime type"
 
change your nic though
 
yeah I will ... and I'll leave it a while ... but I'm gonna pounce on him ... I haven't said anything bad about xdebug publicly ... could, chose not too ... changed my mind ...
 
:-)
I choose not to say anything bad
 
@JoeWatkins wouldnt it be more mature to just ping him in private and tell him exactly that?
 
nope, he could have done that ...
 
7:37 PM
doesnt mean you have to tout the same horn
because you know, an eye for an eye always leads to, well, gouged out eyes and blindness eventually
 
> genome of a fucking whale
^^ Is that big? I don't know biology.
 
he could have asked us not to request inclusion, could have asked us to work on xdebug, could have kept his whining mouth shut, could have been clever ... shame he is and done none of those things ... the very fact that three of us decided to write a new debugger and it was voted in by everyone who bothered to vote says nothing about the adequacy of phpdbg, rather the opposite ...
 
Is there any real alternative for gitlab written in php?
 
15:40 <ircmaxell> veonik: the other big area is when doing performance debugging. xdebug changes a fair bit around the executor which changes the relative cost of certain types of operations. Which can make profiling with the debugger enabled... difficult
New messages
15:41 <Derick> not nearly so much as it used to... and being fixed
15:41 <Derick> and there are ways to make it better already
15:41 <Derick> by turning off the stack traces stuff
15:42 <ircmaxell> Well, that sort of complexity is one of the reasons some choose to use the alternative implementation
 
@PeeHaa I, actually, just got running with GitBlit (not PHP) and I'm pretty happy with it so far.
Like, in the last hour or so got it running, full config'd
 
7:43 PM
lol... this is getting funny
15:42 <bwoebi> I think having a separate profiler is much better for more accuracy
15:42 <ircmaxell> definitely agree there bwoebi
15:42 <Derick> that's not necessary at all
:-D
 
@DanLugg Does it support tickets / issues?
 
@PeeHaa Yep. Filesystem branches, Redis, etc.
 
@JoeWatkins well, did anyone ask him?
 
@PeeHaa Keep in mind, I don't think it'd scale wonderfully. But I'm on a team of 2 (possible 3 contributors) and just a buncha people who'll create issues.
So, for my purposes, it's working pretty splendid.
 
@DanLugg I'm also going to be in a small team
 
7:45 PM
you know he accused bob, when bob was a 17 year old boy, of ganging up on him with me .... ganging up on him ... like I'm going to engage a mind like that ... 17 ... ganging up on him ... whatever ...
 
user895378
I dunno ... software, like most things, is pretty darwinian. If you aren't innovating or serving people's needs then inevitably someone will come along who is doing those things and displace you. It's hard to feel bad when a better solution comes along.
 
I am using Ratchet socket library, and the method onOpen, I need to get real object data so its visible in php storm suggestions, and not it's interface. Is there an option in PHP to declare e.g ((IoConnection) $var)->methodInIoConnection() ? currently the type of it is ConnectionInterface.
 
out for an hour ... must get away from screens ...
 
@JoeWatkins hehe…
 
@JoeWatkins Wonderful idea.
 
7:46 PM
@PeeHaa Give it a spin; setup+config is pretty freaking quick. Full stack, so you don't need to dick with much. Also, apparently (haven't tried) it plays well with everything else, so if you wanna run it behind Apache, etc.
 
@rdlowrey I think in this case better is a strong word. It's an alternative, but not a replacement. It's more a tangental implementation that has some overlapping functionality...
 
If you don't like it; its got a small footprint and keeps it's fingers to itself, so removal is a snap.
 
user895378
Well I'm not saying "better" hands down. But if xdebug were already doing what everyone needed then no one would have considered making/using phpdbg.
 
Thanks will give it a spin
 
@rdlowrey definitely agree. Just recognize there's a difference between "could they do everything everyone needs" and "should they do everything everyone needs".
 
user895378
7:48 PM
You're right for sure.
 
Having 2 implementations that handle radically different use-cases, is actually pretty cool
 
@PeeHaa No prob. Final disclaimer: I just finished migrating repos to it in the last 20 minutes, so don't take this as a review ;-)
If it eats your soul, I'm not responsible.
 
user895378
Hooray for PHP tooling \o/\0/\O/
 
exactly :-D. I'm happy both are living nicely side-by-side. It's really actually a great sign
 
@rdlowrey Small head, Bert head, big head.
 
user895378
7:49 PM
It was a multicephalic celebration.
 
user895378
And yes, I definitely just coined the term, "multicephalic."
 
ummm, I don't know if I should be horrified or impressed
 
@rdlowrey Multicranial would've done. Now I've got "childbirth" in my history.
 
ha!
 
lol
Better than having childbirth in your shoe I suppose.
 
user895378
7:51 PM
cephalo- a combining form meaning “head,” used in the formation of compound words: cephalometry.
 
user895378
I knew that Latin class would eventually come in handy.
 
Thanks Webster ;-)
 
user895378
"polycephalic" probably would've been more sensible.
 
omnicephalic? I don't know Latin.
HEADS. HEADS EVERYWHERE.
 
user895378
Much heads. So celebratory. Wow.
 
7:54 PM
Such debug. Much implementation. Very option.
Oh boy! Someone forgot to use a .gitignore!
 

« first day (1285 days earlier)      last day (3646 days later) »