« first day (1434 days earlier)      last day (3514 days later) » 

5:28 AM
@ircmaxell da faq
 
morning.
 
moin
 
morning
 
5:43 AM
fridaying...
 
6:06 AM
@ircmaxell inorite! it's missing . and / from the alphabet ... and uses $2a$ ... and uses LCG ... and didn't call it best_crypt() :)
morning room!
 
6:25 AM
aah, yes .. morning
 
https://www.youtube.com/watch?v=kfVsfOSbJY0
The coding love
deployment
kbironneau
1411108214
/* by Attakinsky */
 
ThW
6:53 AM
morning
 
morning
 
I need to write more answers
 
7:13 AM
@tereško are there actually questions that can reasonably be answered though?
 
=/
 
@tereško You just need to edit tags more ;)
 
morning
 
good mornings
 
morning
 
7:21 AM
Hey
 
@ircmaxell ticket sorted for nw ... all good :)
 
@JoeWatkins how are you doing?
 
great, thanks for asking :)
just about to pop out ... no time for chat ... bk lata :)
 
Yo! :)
 
7:47 AM
special characters!! I HATE YOU!!
 
Happy friday @salathe
 
wiki.php.net/rfc/loop_default - made a draft RFC I would like to send to the list tonight, I would appreciate any feedback (anything you think is missing, or unclear)
5
Off to work :)
 
8:09 AM
php 7 black edition will be even superior :)
 
Is someone here maintaining a big site or platform?
 
anyone @ unconf over the weekend?
@Duikboot what is big? big enough or too big?
 
hi
everybody is working here ? ahah
 
8:24 AM
Hej Niels
 
hi! @Niels, so I guess you're not?
And yes, I just cleaned up the repo and pushed everything upstream. This gives a good feeling as it's early in the morning here.
 
hi, @Ronni, @hakre, yes i'm
That's true, I have to do this too...
 
mornings
 
https://www.youtube.com/watch?v=kfVsfOSbJY0
The coding love
when I see a furious client during my lunch break
kbironneau
1411115420
/* by gontran */
 
@hakre registration platform for about 40 000 in 1 month is large imo
 
8:46 AM
@Feeds that p0wnage...
 
Gooooooood Rebecca Black FRIIIIIIIIIIIIIIIIIIIIDAAAAAAAY!
 
so.. according to the doc, DateTime::format always uses english. Is there a way to use something else?
 
@FlorianMargaine translation table :P
 
more information?
like, an array with the english names as keys?
 
yes
Or numeric values as key
 
8:57 AM
k, thanks
 
hi @PeeHaa :)
 
Hey, can anyone help me?
I'm looking for a site that is named after a girl
 
@FlorianMargaine You're looking for IntlDateFormatter most likely.
 
@BenjaminGruenbaum there are many in .xxx domain
 
It also has to do with a certain day with a certain color where stuff is sold at considerable discount
So it's a girl's name, and then a color and a day where stuff is sold at a considerable discount.
 
@hakre hey! You've been busy lately or just didn't feel the room 11 love anymore? :)
 
@Ja͢ck we should not support IDN by default for filters, we don't (and can't) support it anywhere else.
 
@hakre shorter
 
@BenjaminGruenbaum 4salepricenow.com/… ?
 
9:18 AM
Nope, the domain itself is named after this girl, and it ends with a color followed by a day of the week.
What day is it today anyway?
 
@BenjaminGruenbaum I'm fairly certain some pr0n names match those criteria
:P
 
@BenjaminGruenbaum yourmum.brownsaturday?
 
see ^ porn name
 
@DaveRandom why not?
 
9:29 AM
@Ja͢ck See internals mail
 
mail hasn't loaded yet
ah, there it is
@DaveRandom okay, fair enough .. have you thought of the scenario in which the filter turns the punyshit into plain ascii?
plain ascii is what streams etc. can support
 
@Ja͢ck I did consider that as a possibility but it would need still some work in ext/openssl to support name verification (IDN may be handled in a few ways on certs, there are cases where conversions would be required there as well)
 
good point on ssl verification .. hmm
 
It's all doable, but it sounds like something that should not be implicit
 
afaict there are no bug reports on it so far either ...
 
9:34 AM
I may have raised one when I was looking at it in the first place, let me check my assigned
I did not
 
Good morning room 11
Fuck.
 
@rdlowrey so... 5.5.17 was released with the regressive behaviour for SSL stream buffers :-/ just spoke to jpauli, he said he needs to be told explicitly about things like that (which is fair enough)
 
@AndreaFaulds love the enthusiastic entrance :)
Oh, iOS storyboard merge conflicts, I hate thee.
 
@AndreaFaulds It could be worse. Nothing has really changed - it's not like you are actually any worse off.
 
@Ja͢ck That's just how I've felt all morning since the referendum result.
@DaveRandom Not for now.
I'm not sure how long Scotland's privileged position can last. Or, well, the Union, actually. I'd still contend its days are numbered.
 
9:37 AM
@AndreaFaulds If the govt. don't deliver on their "don't leave, we love you" promises, there will be calls for another vote and the Yes campaign will be much stronger
 
It'll be 10 years before there's another vote, probably.
 
10 < ~300 (or whatever the number is, I forget)
 
Before then, though, I expect a budget cut. There is no fucking way English MPs will vote to keep the Barnett formula. No way in hell. Not if pigs fly.
@DaveRandom 307
 
There is no sane way to get a date diff in seconds or in minutes right?
 
I'm happy with ~300, 2.333333% is not a terrible error margin
 
9:40 AM
@PeeHaa Can't DateIntervals be converted to seconds?
 
@PeeHaa Seconds must be doable
 
@PeeHaa Be lazy and use UNIX time
 
Hmmm yeah
 
It sort of works
If you don't care for leap seconds
 
fuck leap seconds
 
9:41 AM
I mean that's how I did my Croatia EU accession countdown in JS
(function () {
    'use strict';
    window.onload = function update() {
        var curTime, croTime, diffTime, days, hours, minutes, seconds;

        curTime = (new Date().getTime());
        croTime = (new Date('2013-07-01T01:00:00.000Z').getTime());
        diffTime = croTime - curTime;

        if (diffTime <= 0) {
            document.getElementById('answer').innerHTML = 'DA';
            document.getElementById('explanation').innerHTML = 'Since 1st July 2013';
        } else {
            diffTime = Math.floor(diffTime / 1000);
I'm sure something similar is possible in PHP.
 
ewwwwww javascript
 
@PeeHaa JS is a superior language to PHP and the elePHPant huggers are merely in denial :p
 
GTFO! :D
 
@AndreaFaulds Serbia accession time will be out of Unix time range.
 
@webarto ...ouch, really, after 2038? Come on, 2028 maybe?
I know one thing for sure: no new EU members until at least 2019
 
9:43 AM
They're saying 2020, but I doubt...
It would be a fair thing, tho.
 
Because Juncker put a freeze on accession.
 
Because NATO fucks and others.
 
@AndreaFaulds heh, I did this one
 
Scotland, had the vote been Yes, would've been an exception because it's not a new state in some ways
 
@AndreaFaulds + It's EU Ready™
 
9:44 AM
@webarto Yeah, we meet all the accession criteria. Because we're already a member!
 
sorry people I need an extra set of eyes. I'm really stupid. Shouldn't this just work??????????????
<?php

$start = new DateTime();
$end   = new DateTime('2014-09-21 00:00:00');

$diff = $start->diff($end);

var_dump($diff->format('Y'));
Please fix my code for me. I am stupid
Also: it is urgent
 
%Y ?
 
Is it urgent, please?
 
It's always urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!‌​!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!‌​!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!‌​!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!‌​!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
9:51 AM
What's the expected output?
 
Anything but the string Y
 
lol peehaa
" format
The following characters are recognized in the format parameter string. Each format character must be prefixed by a percent sign (%). "
 
ow lol
stupid api is stupid
 
5 mins ago, by webarto
%Y ?
NO, YOUR STUPID.
 
yeah read that, but didn't realize you meant in the format method :P
 
9:54 AM
Say "Thank you, Derick" :P
 
thank you derick idiot
 
:D
I hated DateTime (more) 'cause it's mutable.
Until Immutable.
 
Anyone an idea where I can find the SMTP settings on a VPS?
 
@Duikboot WHat smtp settings?
@webarto I hate immutabledatetime
 
9:59 AM
I have to set them for phpmailer. but I am not yet able to find them.
So port /server / encryption/ ...
 
Hey @Patrick come on over to code-golf! Maybe you can build a PHP solution. codegolf.stackexchange.com/questions/37965/…
 
I found the records etc
 
@AndreaFaulds EU added part of Serbia to Croatia, and then "fixed" it quicky :D
 
@webarto hahaha
 
10:02 AM
The "Powder keg of Europe", sometimes alternately known as the "Balkan Powder Keg", refers to the Balkans in the early part of the 20th century preceding World War I. In this time period there were a number of overlapping claims to territories and spheres of influence between the major European powers such as Russia, Austria-Hungary, Imperial Germany, and to a lesser degree, the Ottoman Empire, Great Britain, and Italy. In addition to the imperialistic ambitions and interests in this region, there was a growth in nationalism with the indigenous peoples of this region leading to the formation of...
Europe is shit... 'murica FTW.
 
Lol directadmin SMTP server: SMTP Server: Your ISP's outgoing mail server
w t f
 
Europe is shit but the US is shittier
@Duikboot ? where's the wtf?
 
I want to configure a phpmailer online with the smtp credentials form my server.
 
okay...
 
Shouldn't be hard, is the mail working from some e.g. client like Thunderbird?
 
10:07 AM
Hi all
 
@webarto "Island" ??
 
The Europe Peninsula :D
 
I was referring to the fact that Iceland appears to have changed its name...
 
@Duikboot has the VPS an SMTP server running?
 
@DaveRandom In Iceland, Iceland is written Island - like the .is TLD
 
10:12 AM
0
Q: How to update the view counter in symfony and doctrine

StaticVariable/** * Lists all user entities. * * @Route("/article/{id}/{title}", name="article") * @Template() */ public function articleAction($id, $title) { $em = $this->getDoctrine()->getManager(); $article = $em->getRepository('TryoneeArticleBundle:Article')->fi...

 
@Leigh Just reading. I had assumed it would be something 800 chars long, mostly consonants
 
@DaveRandom like Finnish, 800 chars but mostly vowels :D
with umlauts
 
@Leigh What about other loops?
 
@NikiC I don't like it for do {} while(), what other kind is there?
 
foreach
I thought that would be the primary interest really
 
10:15 AM
I included foreach...
 
oops
 
in times of goto, who needs default? :)
 
Do you think I need to include example opcode changes for foreach?
 
you're right, so it only doesn't support do loops?
 
yea, only do excluded because they always enter the loop
 
10:17 AM
@Leigh add that to the RFC
that sounds like a very convincing reason not to have it for do loops ^^
 
Also it's complicated to add to do loops
 
with the proposed method, the condition is duplicated, for a post-condition loop I can't see a way of doing it without a tracking var that doesn't involve duplicating the whole loop
 
Also do { /* stuff */ } while ($cond) default { /* other stuff */ } looks weird
 
@BenjaminGruenbaum lol
 
10:20 AM
It looks like writing if ($cond) else { /* stuff */ }
 
do {} default {} while()
 
Also do-while requires a ; - where would that do with do-while?
 
if I can come up with a sane way of doing it, I'll include it as an option, but indicate I'm against it
 
@Leigh as you said, it doesn't make sense
 
@Leigh Also looks weird
 
10:21 AM
if default is supposed to mean "run if we don't enter the loop" then it just doesn't make sense for do/while. What would it even mean there? If there's only one loop iteration?
 
@PeeHaa +1 it :P
 
@NikiC yep
have to decide if it means "run if we don't enter the loop" or "run if the condition is not met" - the latter is more analogous to switch
I agree it doesn't make sense still, that was my gut feeling (and I'll say it's excluded in the RFC), but we can see discussion if someone has good reasoning for bringing it in
 
@Leigh: if we have loop + default how can you catch exceptions that are only in the loop but not within default?
 
10:29 AM
@hakre raise different kinds of exceptions
 
the syntax change would require me to move the try-catch block inside the loop body where as before I could have left it around.
 
I anticipate that the default block will be used mostly to raise exceptions
 
@DaveRandom ugh, stupid sandy completely wrecked that getdnsrr thread =/
 
@hakre you're free to not use that syntax :)
 
@Leigh I don't think so. With every loop you have to validate pre- and post-conditions anyway in sane programming, the default block won't change that requirement.
 
10:30 AM
not even top posted, just wrecked it.
 
@Leigh it's not against the syntax, that was just something which came to mind. it's solvable with that syntax, too, just in case you were interested for feedback.
 
@Ja͢ck That guy is a huge pita, he was a bit of an asshole over TLS improvements as well iirc. Not even bikeshedding, just arguing the toss and ranting about totally irrelevant shit.
 
if ($cond) {
    try {
        while ($cond) {}
    } catch() {}
} else { // default }
@hakre, you can still do that
unless $cond is something that changes when you evaluate it, which is what this syntax is designed to help with
 
this won't do it:
while ($condition) {
    try {
    catch (Exception $e) {
    }
} default {
};
maybe with nikics AST parser things are easily done in the future:
while ($condition) try {
} catch (Exception $e) {
} finally {
}; default {
}
 
that might even work... if you remove that semi-colon
 
10:38 AM
but the try-body must be the loop-body then.
 
hm, yea in that case the finally will be executed on every iteration
@hakre no BC is broken, sorry that the syntax doesn't fix everything :P
 
@hakre The AST is no license to commit language torture
9
 
@NikiC if you sit on the AST you should not saw it. ^^
 
@hakre wut
 
@Leigh sure :) - have you thought about putting default first, then the loop?
 
10:42 AM
yes, and no :)
 
because with default afterwards it looks like a postcondition, but it's more a precondition - different to default with switch.
and just seeing: the loop_else link on the bottom does not link there.
and what's so wrong with the else naming? if for backwards compat, why not otherwise ? :)
foreach ($empty as $value) {...} otherwise { ... };
while (false) { ... }  otherwise { ... };
 
otherwise has been suggested, but if I can avoid a new keyword, I would like to
especially if PHP.next is a 5.x, I'm sure people method chain with $blah()->otherwise()
 
@Leigh what is that? new feature?
 
user defined something
a new keyword is potential BC - try it function default(){}
 
@Leigh yes I know that drama. always when I want a method in my class called new or similar.
 
11:20 AM
@Leigh Yea, but targeting 5.X might be ambitious; seeing this in "7" is far more likely and obviously AST will fix.
 
11:31 AM
@DanLugg yea we'll see what peoples opinions are. The PoC is based off master
so it would take a backport to get it into 5.x anyway
 
11:49 AM
@ThW, @Gordon - see you tonight in HH?
 
ThW
@hakre I am on the way ;-)
 
@ThW I'm in 10 mins :)
you take the bike again, right? ;)
 
ThW
hehe, not this time, no
to much work at the moment
 
@hakre I can see an EXIM config
but Im not sure about SMTP
is there a way to see it fast in the CLI?
 
@Duikboot does the shell mail command work?
 
11:54 AM
No mail for ...
it says
 
I mean the one to send emails.
but I'm in a hurry and I'm now leaving.
maybe later.
 
@Duikboot what are you trying to do?
 
cu l8ters and hopefully with some beer or so :)
happy friday along.
 
Ok thanks @hakre @DaveRandom I am trying to fill in my SMTP credentials for my PHPMailer script from my webserver.
 
@Duikboot OK, and where is this web server, and which SMTP are you trying to use?
 
11:57 AM
But on the credentials is written: SMTP Server: Your ISP's outgoing mail server
A POP server is available but that is not what I need.
 
What email address are you trying to send from? (just the domain portion is enough if you don't want to post the whole thing)
 
@castel.be
 
one second
 
remote... be?
 
What is remote.castel.be? Is it a server you control, or one provided by the ISP/domain host?
It looks like a Windows server
Running exchange
So you will either need to configure the SMTP relay connector thingy on it (I forget what this is actually called) and set up a user for it
or just don't use an SMTP server
 
12:04 PM
 
@derp I still have to write code for 4.3.10 on occasion :-/
 
that is our server
hmm ok
can I use gmail as smtp server? the thing is ... I have problems when sending mails
I receive myemailadres@mydomaincom 'via myhostingcompaint001.hoster.com'
and I don't want that. I found out if I use an SMTP mailserver I don't have that extra sentence as from adress.
 
@Duikboot Running what? Looks like SBS 2012?
It's hard to tell though
 
The thing is I need to get rid off that message.
I used gmail before
but.. then I saw my account was being inactive and not used.
 
@Duikboot Not necessarily. It's not as simple as that
But if you relay the messages through exchange it will fix the problem
 
12:08 PM
But I dont' have to use that castel domain..
That is not occuring the problem it's my webserver wich is causing it.
 
I've done it before, and it works, and it's not that hard, but you will need to be able to change exchange settings
 
@hakre yes
 
@Duikboot It's nothing to do with where the message comes from, it's about how it is sent
 
But the webhost != using exchange.
 
@Duikboot No, but you can relay messages through the remote. server
 
12:10 PM
But I buy domains and add them to the host nameservers but then I see via @myhost.hostingadress'
oh
I am not able to get access to that mail config :s
 
Does anyone have a link to a document that describes the difference between MVC and MVP in words that dumb-asses should be able to understand?
 
@Duikboot Then you need to talk to someone who understands your mail infrastructure and ask them what the best way to do it would be. Ignore for a second that you want to do it with PHP, pretend that you are some remote worker wants to use a mail client that is not Outlook. Go talk to the network admins, ask them for some SMTP credentials that would allow you to do that, it's essentially the same thing.
@Danack /cc @tereško @Gordon seem like the most likely people to have something like that
 
@DaveRandom definitely @tereško because he cares about all those MVFooBars
 
Nah, he's given up caring.
 
0
A: Downloadable Output of XML file with PHP

PeeHaaUpdate your PHP version to something that didn't die more then six years ago.

 
12:25 PM
Good morning
 
886
Q: What are MVP and MVC and what is the difference?

WolfbyteWhen looking beyond the RAD (drag-drop and configure) way of building User Interfaces that many tools encourage you are likely to come across 2 design patterns called Model-View-Controller and Model-View-Presenter. My question has three parts to it: What issues do these patterns address? How ar...

?
 
Yeah.....I don't think I understand that answer, and am not sure it's actually correct.
"In MVP, the Presenter contains the UI business logic for the View." Why is there business logic for a view?
 
@DaveRandom I was wondering if you would provide a better response than on Monday
 
Why, what happened on Monday?
I imagine there was no getting down, although people probably were still looking forward to the weekend weekend
 
12:34 PM
Apparently there was a test on monday.
 
You provided an error for Monday
 
Oh right. Well you claimed it was a "Good" morning, which was a patent lie.
 
I'm sorry, I'll try to come up with something more clever for the upcoming Monday
 
:-P
 
wait... you guys actually understand each other?
 
12:37 PM
He's referring to:
Sep 15 at 12:33, by DaveRandom
@Ryan E_MONDAY
 
Ah yes, that was the one!
 
PM assigns ticket to sysadmins because front-end devs claim notices in the error log are a server configuration issue...
 
Hey @DaveRandom, does it make any sense to you that the order of appending nodes here matters?
 
Hello everyone
 
@derp seems wrong to me, order shouldn't matter
 
12:44 PM
@derp No, but then a lot of libxml's namespace handling makes no sense.
 
any yii framework developer is here
 
@Leigh that's what we're calling teamwork
 
@AlmaDo That's what we call finger-pointing :)
 
Hey guys! Quick question, how often do you find yourself using RIGHT or LEFT JOINs ? I'm going to be teaching a course on SQL, just some of the basics, and I never use RIGHT or LEFT, but that might be because I'm used to writing verbose SQL.
What do you guys think? Would it be a good idea to cover LEFT and RIGHT JOINs?
 
:|
 
12:48 PM
LEFT JOIN, yes ... never used RIGHT JOIN
 
I fail to see how verbosity is related to left joins
I'm fairly certain that most people use left joins on a daily basis if they do anything related to sql as a job
 
Also @derp it's worth noting that neither result is actually invalid. Also eval.in/195657
 
exaggeration mode disabled
But not far off
 
@PeeHaa I mostly use an ORM. However, when I do use SQL, WHERE and INNER is more than enough.
 
=O
 
12:51 PM
OUTER FTW
 
...
 
@Ja͢ck LEFT JOIN is same as RIGHT JOIN, but table order is revers (:
 
Yeah :)
 
@DaveRandom Oh, I know. It's just something I ran across in a SO question that I hadn't seen before.
 
so a LEFT JOIN b is just b RIGHT JOIN a
it's for lazy guys (:
 
12:51 PM
@GamesBrainiac You never had a need for finding rows in A that are not in B?
 
@AlmaDo That's what I call "notices are errors, fix your shit"
 
@Ja͢ck Most of the time, I just need to find the intersection, so unfortunately no. I mean, I know how these JOINs work. But I've barely ever needed them :P
 
@derp createElementNS is fraught with difficulty, it tends to result in a lot of unnecessary xmlns attributes, just because libxml does stuff in weird ways
It's nothing to do with PHP though
 
noted
 
ThW
@DaveRandom, if you append the parent element first (and it has the namespace defined) you can avoid the duplicate definitions.
 

« first day (1434 days earlier)      last day (3514 days later) »