« first day (2185 days earlier)      last day (2989 days later) » 

Wes
Wes
00:01
damn 2 only is hard
> Machine washable
@Wes lol
Wes
Wes
yeah that was a good one :B
> created javascript
genius
> free candy
Wes
Wes
RV resident
> disappointing fellatio
Wes
Wes
00:12
ahah
where are you reading these?
FB, which I went on to get a friend's phone num and that was on the front page and now I can't turn it off :-/
> beta release
Wes
Wes
Windows ME
doomed nation
a little on the nose
Wes
Wes
created yaml
Anonymous
Sausage jockey
Anonymous
00:18
Am off, nn o/
\o
> spelling mistake
> Beauty is in the eye of the beholder, which is a pity because this week the National Association of Beholders wrote to tell me that I've got a face like a rucksack full of dented bells.
Wes
Wes
00:33
@DaveRandom broken condom
As much as I appreciate the update, you probably have higher priorities than chat in that case,
:-P
Wes
Wes
ahaha sorry
neuron owner
Not sure whether that one is actually true though
> MLP pyjamas
Wes
Wes
STD carrier
01:08
HTTP/1.1 410 Gone
01:53
!!reminder beer must be cold by now in 20mins
Reminder set.
Wes
Wes
!!reminder japan GP is starting in 2 hours 50 mins
@Wes I guess I'm late: japan GP is starting
Wes
Wes
did i break it :B
Have a look at the time again, yo!
02:00
no need for and
Reminder set.
Wes
Wes
\o/
:-)
btw, @Wes what do you think of these?
s/these/all that page
Wes
Wes
problem is, with arrays you can't really know what keys are required by the thing unless you look at the code or read the documentation @Ekin
true
Wes
Wes
02:09
a struct thing would be more suited for that
but you always end up with a lot of setter and getter methods, if you want to be type safe
actually I just need to allow setting two types of separators, symbol|word
which can be used interchangeably when given input is expected to have multiple intervals
@Ekin beer must be cold by now
thanks @Jeeves
@Ekin You're welcome!
Wes
Wes
an easy answer is, the constructor should ask for the actual objects the class needs, so if the constructor does stuff like unwrapping, grabbing inner stuff, chances are that it's wrong
but that's clearly a too easy rule that doesn't work in the real world :P
i actually spend a lot of time thinking about these things
02:19
I'm also thinking maybe bitmask/int $flags and an optional 2nd param to supply a word or symbol (if defaults won't be used) would do
however, I'm not sure then, about what to do if the user wants to set both types of separators to be used in different methods
Wes
Wes
people hate bitmasks, at least int based ones
I actually like it for cases like
findInterval(string $input, int $flags = IntervalFlags::INTERVAL_ONLY)
(what I'm trying to sort out is the IntervalFlags::MULTIPLE_INTERVALS bit)
Wes
Wes
int $flags carries very little domain with it, it should be: EnumSet<IntervalFlag> $flags
with a nice api, like $flags->contains(IntervalFlag::INTERVAL_ONLY)
or even with bitwise operators actually
where IntervalFlags is like this and used like this
Wes
Wes
there aren't really clean solutions for that... maybe with stuff like enums, enumset
Wes
Wes
02:58
@Ekin 3v4l.org/uTCEE in case you want to annoy people like @PeeHaa, do this
i need a coffee, still 2 hours to go...
i'm waiting awake to 7 am to watch Ferrari crash at first corner of first lap. it's trending this season
heh :-)
thanks for the example
I was also reading some others, it helped
that much new always made me feel I'm doing it wrong
Wes
Wes
i could for sure save some new in my example :B
03:13
Can anyone help with an android problem ? There seems to be nobody in the android rooms . and in need of urgent assistance please
Wes
Wes
we don't do androids here
Okay
Morning
Happy Sunday all
Wes
Wes
03:37
\o
o/
04:08
O/
04:51
@Wes japan GP is starting
Wes
Wes
it works! :D
:-)
05:04
Moin
'nin
05:17
posted on October 09, 2016

New Cyanide and Happiness Comic

hey guys is anyone pretty familiar with j query?
i know is something simple
05:52
moin
 
1 hour later…
06:57
Morning
how can I remove bold line at top of pdf in php? I am using tcpdf
Class [ <internal:ui> class UI\Window ] {

  - Constants [0] {
  }

  - Static properties [0] {
  }

  - Static methods [0] {
  }

  - Properties [0] {
  }

  - Methods [15] {
    Method [ <internal:ui, ctor> public method __construct ] {
    }

    Method [ <internal:ui> public method setTitle ] {
    }

    Method [ <internal:ui> public method getTitle ] {
    }

    Method [ <internal:ui> public method setSize ] {
    }

    Method [ <internal:ui> public method getSize ] {
    }

    Method [ <internal:ui> public method setPosition ] {
Phelectron?
I'll probably have something usable by the end of today :)
I'm out, lata all
Can please someone explain me the concept of "mapping"? I mean in ORM (object relation mapping)
07:17
hi guys
I have like a navigation menu on my website and this menu is the same on different pages, how can I reference this block of html elments (I'm using bootstrap also) to use it in different pages? because I don't want to repeat the same entire code multiple times
I searched a lot on stackoverflow and google but can't find a solution
07:52
Hi Johny, you can create a separate file as nav.php and then include 'nav.php' in all your other files
a normal include will do the job if my block code is in a "col-md-4"??
The php include 'nav.php' will take whatever is written inside the nav.php and place it at the same place where this line is written
it does not matter whether it is inside col-md-4 or col-md-12
any one know how to get the current user in a symfony controller, i am having this weird issue where it work in one controller, but not another
@Amol thanks
No worries
08:21
Still pretty drunk from last night
@Petah You get it from the security context (or updated one) right?
umm, just doing $this->getUser()
one controller returns the user, the other returns null
Are you extending or doing something different at the class definition part at the top?
Try passing in the security context as a service (you shouldn't be using a "base controller anyway") - as in, Dependency inject it. That'll always give you the correct one
i tried both ```
class ManageSignupController extends FOSRestController
class ManageSignupController extends Symfony\Bundle\FrameworkBundle\Controller\Controller```
will try injecting
Ah, you're using a bundle - sorry I never used a user bundle I did it myself :-)
Anonymous
!!remind test in 20s
08:25
Reminder set.
@JayIsTooCommon test
08:45
:( cant figure it out
i can get a SecurityContext but the token is null
one request seems to send a auth basic header, but the other doesn't
09:12
\o
09:37
Hey @Asgrim - quick question. Did you have a 'minder' at PHPNW to make sure you were at your talks?
@Danack no, or if I did, I wasn't told about it
also hey :D /me dusts off SO chat
I didn't have one either....apparently some people did.
@Asgrim Bulgaria looks nice btw...
@Danack honestly it's an amazing conference. You should definitely submit :)
I will next year......and i've submitted to PHPUK for the talk I did at phpnw.
Is there a way to automatically use make -j 8 without specifying -j 8 all the time?
09:48
I don't think it uses a config file. Just alias make=make -j 8 would do it right?
@Danack facepalms of course
Oh - and also apparently - MAKEFLAGS
14
A: Makefile: Automatically setting jobs (-j) flag for a multicore machine?

Jeremiah WillcockIt appears that the MAKEFLAGS environment variable can pass flags that are part of every make run (at least for GNU make). I haven't had much luck with this myself, but it might be possible to use -l rather than -j to automatically run as many jobs as are appropriate for the number of cores you ...

ah nice!
hrmm, have I missed something obvious? /home/james/workspace/php-src/ext/spl/php_spl.c:749: undefined reference to php_mt_rand'` (lots of this) trying to compile php 7.1.0RC1 branch
@Asgrim that's kind of weird. Just do a make clean and try again?
@Danack yeah, tried that; if it helps for context: ./configure --prefix=/home/james/workspace/php-src-build --enable-debug --enable-maintainer-zts --without-pear is my configure params
09:55
It's possible someone broke something....but kind of unlikely.
@Danack yeah, I'm assuming it's something I've done wrong first :s wouldn't expect a tag to fail to build
I compiled the RC2 a few days ago successfully, tho
@Asgrim try adding some stuff to debug it - like in php_mt_rand.h, just before the line PHPAPI uint32_t php_mt_rand(void); put something like #error Well it got here
yar, seems to:
/home/james/workspace/php-src/ext/standard/php_mt_rand.h:37:2: error: #error LOLZERZ
#error LOLZERZ
#md
10:05
@Archer I am good at this communication thing :)
will try and sort this later; gotta grab some lunch in a sec; thanks folks :)
@Asgrim so the header is included - remove that debug, and put it in mt_rand.c where the function body is defined.
@Asgrim ./buildconf
@Danack yeah that didn't throw an error this time; so I'm guessing it's missing from the list of files to compile
@NikiC ooh yay, that seem to have done the trick, thank you!
I guess buildconf regenerates the list of source files to compile or something?
it regenerates ./configure
@Asgrim ./buildconf generates ./configure generates Makesfile generates everything
10:12
@Asgrim it reassembles all the config.m4 etc. files
ahh I see
Welcome to the insanity of C build systems
that is good to know, thank you folks!
haha :)
Checking stuff out into fresh directories can avoid there even being a ./configure file left over from a previous checkout.
btw, before i start bashing my head against a brick wall probably for a few weeks, i'm assuming no-one has attempted to create a patch for the Generics RFC yet? I'm interested in having a go at it, but I may fail miserably... but if someone else was already working on it, naturally there's not much point (aside from being a learning exercise for me)
10:18
@Asgrim So you're taking the next 4 months off work, for this attempt?
@Danack I'll just cancel sleep
sleep is for the weak
People have looked....it's "a little bit" difficult. If you are serious about wanting to attempt it, you could have a chat with @JoeWatkins about the hurdles he found when trying to implement it.
If you're looking for something far more manageable - I was thinking of doing this next: markmail.org/message/…
that seems fairly straightfoward :s
morniong
10:30
I wish the generics impl you're envisaging will heavily discourage nesting them multiple times… no need for a brackets hell…
I'm trying to reference this code: jsfiddle.net/zpggwxz3 (menu.html) in multiple pages, so I used "w3-include-html" like this: jsfiddle.net/uoj9bhkg . I want to maintain bootstrap design in dividing the page into 3 "col-md-4" like this: imgur.com/a/VagIW
but unfortunately this design doesn't remain the same after the reference: imgur.com/a/Eyyux
how can I get my bootstrap cols back?
@Asgrim Wow, you're ambitious
@NikiC that's one word :)
@Danack the function would be implemented on \Exception though, right? (but declared in \Throwable interface)
10:55
@Asgrim I guess. Also in the Error implementation probably.
Though as object methods are just functions, the same one could be bound to both classes.
@Danack aye. But would it make sense for errors? I guess so
-_- Turkey bans github
@Ekin urrrgh. Is it safe to use a proxy to it?
well, a friend is saying he's pretty thankful to vpn and bitbucket
I honestly don't know
> Japanese Communist Party
11:06
yeah that...
dropbox and everything alike too
ugh
@Asgrim ambition is a good thing ...
@littlepootis is that a japanese varions of AntiFa ?
the patch itself is not really the problem
it's every one of the ten billion details
@tereško Sounds more ProMarx than AntiFa.
Extension [ <persistent> extension #41 ui version 0.1.0 ] {

  - Functions {
    Function [ <internal:ui> function uiMain ] {
    }
    Function [ <internal:ui> function uiMainStep ] {
    }
  }

  - Classes [4] {
    Class [ <internal:ui> class UI\Window ] {

      - Constants [0] {
      }

      - Static properties [0] {
      }

      - Static methods [0] {
      }

      - Properties [0] {
      }

      - Methods [16] {
        Method [ <internal:ui, ctor> public method __construct ] {
        }
I'm not doing very well ... my brain is rusty and it hurts ...
11:11
@JoeWatkins did you already partially implement then, I take it? I'd be up for helping develop it :)
more than once, I don't have any of that work left unless there happens to be a generics branch on my fork, but I doubt it ... this is a thing we keep discussing ...
@littlepootis depends on what you mean by "more pro-Marx"
the work I had done was easy every time whatever, making the parser do what is required and whatever is not so tricky, it's the details of the implementation that are difficult to model ...
@JoeWatkins okay; Well I'll see if I can do this patch for \Throwable @Danack suggested first to dip my toes in a little first, then see if I can make it work & discover all the issues :)
I wish I could give you specific problems ... my memory doesn't work like that, it could have been a year ago ... I just remember it being a real shit when we got into how it was actually going to work ...
@Asgrim we're all here to help whatever, and we will :)
11:15
@JoeWatkins I appreciate it, thank you :)
well, we'll argue about stuff, and you have to extract from that what you are supposed to be doing ... is normally how it works ...
normally just go with whatever niki or bob says ...
haha :)
no doubt I will be pestering a lot soon
Hum, I passed 2^16 reputation sometime recently
@Danack btw @Danack I'm assuming from naming that addSuppressed would allow multiple exceptions e.g.: $e3->addSuppressed($e2); $e3->addSuppressed($e1);
11:21
@Asgrim yes, and then the signature for retrieving them would be Throwable::getSuppressed() : Throwable[]
@Danack cool, yep that makes sense :)
is there any way to skip the doctrine cache for a one off lookup?
for some reason i save a entity with a bunch of related children but when i call getChildren it returns null, if i re fetch it from the db it works fine though, but on the next save call it says A new entity was found through the relationship
@Petah I doubt that's cache, that's the EM's managed entities; you can either add the new children to the parent (probably the better solution) or clear the EM
11:36
its when i call clear i get the "A new entity was found through the relationship"
@Petah are you operating on the same reference after you cleared the EM? the clear solution isn't ideal, as you have to re-fetch the entity (&relationships)
it's better to just populate the child relationships when adding them ;)
hrmm, my breakpoint in gdb isn't working; done: gdb --args make test TESTS=Zend/tests/exception_suppressed.phpt then b Zend/zend_exceptions.c:762 but when I r it just runs all the way through (trying to debug a segfault, yay)
11:52
@Asgrim I think make test spawns PHP in a new process. Try just running the test code yourself directly?
The PHP file that was generated should still be there if the test segfaulted.
@Danack yep that works, thanks :)
12:20
@JoeWatkins Well, this is less a technical issue, but rather a language problem… I doubt I or Nikita are one of the only sources to listen to here ;o)
@Danack wait … what exactly is a suppressed exception?
@bwoebi They are exceptions......that have been suppressed:
$suppressedExceptions = [];
for ($i=0; $i<$retryAttempts && $success == false; $i++) {
    try {
        foo(); // this does something that can fail.
        $success = true;
    }
    catch (SomeException $e) {
        $suppressedExceptions[] = $e;
    }
}

if ($success == false) {
   $fooException = new FooException();
   foreach ($suppressedExceptions as $suppressedException) {
       $fooException->addSuppressed($suppressedException)
   }
   throw $fooException;
}
Also for when yo' dawging occurs:
Ah, you mean when an exception is caught to be rethrown
but isn't $previous intended to cover that?
Multiple exceptions, not just one.
Multiple exceptions is quite a rare case for which I then just add a bit more code to the specific exception
I do not see particular gain in having this on Throwable in all cases?
Or am I missing anything? @Danack
12:35
Previous isn't appropriate when there are multiple different exceptions happening, like:
try {
    try {
       throw new Exception("A");
    }
    catch (Exception $e) {
        //Exception thrown by cleanup code in here.
    }
}
finally {
    throw new Exception("B");
}
....sorry, if I'm not making sense - I 've got a massive cold.
But yes, it's not 100% obvious that we need this.
@Danack AFAIK with finally the exceptions are just implicitly chained?
… oh, you're catching it first…
but uh…
It does seem like a pretty narrow distinction
yep, the backtrace of the previous exception (i.e. the one happening in the catch block) will anyway point to where it happened then
@Danack I feel to demonstrate utility of this feature you need to engineer an overly complex and artificial code example, not reflecting needs in real code…
13:06
Here's a better example, it does exist in Java for a reason:

$file = $fs->createTempFile();
try {
    $file->write("foo");
} catch (FileException $e) {
    try {
        $file->remove();
    } catch (FileException $e2) {
        $e->addSupressed($e2);
    }
    throw $e;
}
$e2 and $e have no parent - child relation here, so that would not work
evening
@nikita2206 That makes some more sense in that here the relationship is inversely temporal
Does that mean you use "previous" for a temporal relationship and "suppressed" for an inversely temporal one?
@NikiC I don't understand those words, but I'll hope the use of parent as well will demonstrate relationship better:
$file = $fs->createTempFile();
try {
    $file->write("foo");
} catch (FileException $e) {
    try {
        $file->remove();
    } catch (FileException $e2) {
        $e->addSupressed($e2);
    }
    throw new TemporaryFileException("temp file isn't accessible", 0, $e);
}
@nikita2206 What I means is that you use "suppressed" for an exception that occurs at a later point in time, while you use "previous" for one which occurred earlier
I'd say Java does it better because what we call Exception->parent they call it a cause which more clearly represents what it is
13:15
Yes, that's the distinction I'm after. In PHP it's "previous", so there is no implied causality, only an implied temporal order
oh yeah, it's previous not parent
it's buggy still, but roughly there
@Asgrim github.com/php/php-src/compare/… I'd just use zend_parse_parameters_throw here.
Also you probably don't want that !
hi guys o/
Morni g
13:29
@NikiC Use previous for when you've caught an exception, and are just converting it's type before rethrowing. Use suppressed for when multiple individual exceptional things have occurred.
@bwoebi there are reasons to use it....and yes, some pieces of code are inherently complex. If the RFC fails, then it could also be done as a FIG thing:
namespace Psr\Exception;

interface Suppressed {
    public function getSuppressed();
}
And then in the app runner:
...
try {
    // run application
}
catch (\Throwable $t) {
    if (class_implements('Suppressed') === true) {
        $suppressedExeptions = $t->getSuppressed();
        //blah blah
    }
    //Normal fatal exception handling.
}
@Danack How would the consumer of the exception treat suppressed exceptions?
And how would the default printer treat them?
"the default printer treat" - not entirely sure what you mean by that....but in general, however they wanted?
@Danack In other words, how are they represented in "uncaught exception" messages?
13:51
@NikiC however people wanted to have them represented? But for something where the network is being flaky:
FileUpload exeption "Could not upload foo.jpg", suppressed DNSException "Could not resolve s3.amazon.com", suppressed ConnectionTimeoutException "Could not connect to s3.amazon.com", suppressed TransferTimeoutException "Transferring data took too long"
The upload was attempted 3 times...each time a different exception occurred....rather than it being the same previous all three times.
 
1 hour later…
14:54
1 hour ago
Not sure if you still had pending commits for twitter @DaveRandom. But it's going to be a pain ;-)
no I got nothing outstanding
\o/
nothing that's actually written, anyway
what you doing?
Moving stuff
14:57
ah k, no worries
And adding tests, but mostly the move would have been annoying
pffft, you real developers and your tests
yojoe
@DaveRandom ikr. pussies! all of them!
real men just go straight in there grab the code by the compiler
14:59
!!remind
Usage: !!reminder [ examples | list | <text> [ at <time> | in <delay> ] | unset <id> ] Try !!reminder examples
!!remind fix jeeves after twitter lib refactor in 1 hour
Reminder set.
I'm here with @kodeart!! Room11 guy in Bulgaria!!
I really should invest some time into leraning how to properly use phpstorm's refactoring tools...
15:07
Ha! Not even drunk yet!
Sobering up from last night!
How is / was it?
Still here and closing remarks, but it was epic
cool cool
15:10
""
No, before you ask, I have no idea.
To any question about that picture.
wth lol
So it gives you skincancer instead of preventing it?
user895378
lol
user895378
that is glorious
it has a picture of a surfer on it, that's the closest thing I got to a connection between sun cream and a web browser
15:17
lol
@PeeHaa that's just... magic
@Ekin It is, but the good kind of the stories are true
this would be easier if I weren't so fucking terrible at guis
it feels really wrong to keep rebuilding every time I add a function to make sure it's tested, and I have no idea how to layout forms, at all
Do I have to / Can I help somehow?
I think not until I have first revision, then everyone can do testing and see what I fucked up ... if you like ...
Sure thing
Hi guys, is there anyone with microservices experience here
@Wes only now did I think of [citation needed] and Actual Size!
That's what she said

« first day (2185 days earlier)      last day (2989 days later) »