« first day (448 days earlier)      last day (4500 days later) » 

10:00 PM
has anyone got any idea about checking domains which access a file on my site?
 
@zerkms no, username was already taken^^
 
yay, I have a home phone...
 
@hakre: that's terrible. I also was upset when realized that @gmail with my username has been taken. It was zillion years ago, when gmail was only accessible by invites. not sure why and who did that
@ircmaxell: for what?! :-S
 
@zerkms because it's free
 
hehehe
 
10:11 PM
@zerkms yeah, I really hate it when people just steal my username :( That's the good thing about SO, it can be there multiple times
 
@ircmaxell: What do you think about starting a project that brute-forces gravatar's md5 hashes for email addresses?
 
@hakre lol
That's actually a nice idea
 
Yeah, one could make a combination attack with a domain name dictionary on the right and permutation on the left.
Additionally test if MD5 hashes have an image or not.
 
10:38 PM
@Gordon äh are you seriously using Java style namespaces?!?! It's just so ugly...
 
@hakre good luck
you have any idea how much compute power you'd need? That is, unless you had a list of emails first
 
@Gordon by the way, you got a tab in here: github.com/gooh/InterfaceDistiller/blob/master/src/… :)
 
@ircmaxell well at least for the domain parts on the right. oclHashcat-plus looks suitable for the job.
 
eih
 
Hey PHP guys :)
ircmaxell, fancy meeting you here
 
10:48 PM
Hey there Paul
 
you here alot ?
 
I'm number one in the room, so I'd say so :-P
 
lols !
nice waistcoat :P
 
Thanks!
how's it going?
 
@NikiC i like them. and i find everything else unintuitive and defeating the purpose of a unique namespace
@NikiC yes, thanks. there is one or two more. i didnt bother to fix those yet.
 
10:53 PM
@Gordon seriously? I find them so incredibly ugly that I would not use that library for just that reason :(
 
ircmaxell: it's going great ! coding lots of nice stuff on PPI, business is going well, my wife is bout to give birth to our second child any day now.. and i'm preparing to add a new feature to PHP 5.4's SplDoubleLinkedList class.
 
I don't have a problem with long namespaces, but those are just pointlessly long and don't contain information.
 
@PaulDragoonis Sounds awesome! Best of luck with the new child!
 
@PaulDragoonis Congrats on the second child :)
 
@PaulDragoonis What feature would that be (the DLL class addition)?
 
10:55 PM
@NikiC they do. in fact, they capture much more information than just \zf or \sf2. you immediately know where to look for that library with the java style ns. and there simply cannot be any collisions.
 
@PaulDragoonis By the way, you can't add anything to 5.4 anymore. Stas just announced code freeze ;)
 
I'll get it in 5.4.1 :-)
NikiC, are you on the mailing lists (internals) ? I recognise your name.
@ircmaxell thanks !
 
@PaulDragoonis Yes he is :-D
 
@Gordon Apart from the fact that I could just google for InterfaceDistiller: I'm usually not concerned where to find a library after I'm already using it ^^ Instead the long prefix is only in the way the whole time
 
@NikiC you can alias it
 
10:58 PM
@Gordon That doesn't change anythign about the fact that I have to type it out in the use declaration
 
@NikiC once :) if at all. your ide will likely autocomplete it anyway
 
@PaulDragoonis Only reading mostly though ;)
@Gordon I'd still prefer use InterfaceDistiller\Filters\RegexMethodIterator; over use com\github\gooh\InterfaceDistiller\Filters\RegexMethodIterator; anytime
 
If only we could do a namespace level alias as opposed to only class aliasing
 
@NikiC but that's not unique :)
 
@ircmaxell we have namespace aliases
 
11:00 PM
@NikiC No we don;t
 
@Gordon It's unique enough
 
it would be useful to use import com\github\goo\InterfaceDistiller as InterfaceDistiller...
 
@NikiC agree to disagree :)
 
@ircmaxell use Some\NS; :)
@Gordon no, sorry, but no :P
 
@NikiC if you dont agree to disagree you have to agree with me, so that wont work either ;)
 
11:02 PM
@Gordon If you want perfect uniqueness you should start adding a signature to all namespaces (It's probably only 256 characters anyways, and it can be autocompleted, so who cares!)
 
What are you guys making these days ?
 
@NikiC nah, URI is good enough
 
@NikiC doesn't work
<?php
namespace foo {
class bar1 {}
class bar2 {}
}

namespace bar {
    use foo;
    $b = new bar1;
    var_dump($b);
}
PHP Fatal error: Class 'bar\bar1' not found
 
@ircmaxell oh that you mean
I meant namespace imports
 
You can only use or alias classes. You can't do anything with namespaces
 
11:04 PM
Like in use Some\NS;, now you can access Some\NS\Foo with just NS\Foo.
 
@PaulDragoonis As can be seen: arguing :P
 
well, and the data structures project
 
@NikiC: What else is new,, ircmaxell is in the house! :P :P
(joke)
 
@PaulDragoonis Hey! I resemble that remark
 
11:11 PM
:D
 
So what's your change/addition to DLL?
 
@ircmaxell it took me days to figure out you mean DoublyLinkedList and not Dynamic Link Library
 
adding an empty() or clear() method
u can pop and push
but no wipe...
so i posted on on Twitter i was adding tht feature
 
@Gordon lol...
@PaulDragoonis you can do while($dll->pop()) {}... but I can see the point
 
@ircmaxell seriously, when @NikiC talked about DLL I wondered if he started working on a windows extension
 
11:13 PM
@PaulDragoonis you'll be happy to hear that ->clear() will be in SPL Datastructures 2.0 :):
 
@Gordon Hahaha...
 
@Gordon lol ^^ I'm not that far yet :P
 
out of curiosity, do you intend to add a (Typed) Set to the new data structures? I never use SplObjectStorage for anything but that
 
@Gordon I don't see why not, I can see the uses for that. But what I'd rather see personally is a decorator that can type satisfy any of the Collection classes...
 
@Gordon We intend to have general Set and Map structures ;)
@Gordon Ah, I think I got you wrong. What do you mean by typed set?
 
11:18 PM
@NikiC A Map that only accepts members of a certain interface, for example
 
@NikiC "SPL Datastructures 2.0 :):" <-- is this documented anywhere
 
@PaulDragoonis Here
it's a pet project of a few of us here to re-do and extend SPL quite heavily. There are few parts of SPL that are well designed, and some of the data structures are down right unusable. So we're starting a small initiative to re-implement all of the existing data structures. Then after that, we can look to expand SPL to other areas (correct me if anyone thinks different about the project)
 
@NikiC Set that can only contain a specific type, like DateTimeSet can only contain DateTime instances without duplicates
 
@ircmaxell What's the reaction from internals on this?
 
@PaulDragoonis We haven't brought it up yet
 
11:20 PM
@Gordon Though why would that restrictoin of a single type be there? Couldn't it be just a Set any you only put DateTimes in it?
 
our plan was to build it in PHP first, to get the APIs down, then write it as a PECL extension. Prove the concept and get it implemented first. The present it to Internals
 
@ircmaxell maybe you should get approval before doing a lot of work for something that might not get integrated.
 
@NikiC umm, because I usually use SplObjectStorage for objects of a certain type or interface for which I have to aggregate the SplObjectStorage into a custom object and give it a typehinted attach method
 
@NikiC Yes, but then you'd have to manually expose your own API for changing it. If you had a typed set, you wouldn't need any code to do typechecking. It would be built in
@PaulDragoonis Perhaps, but since when does approval matter? I'd rather come with something to show... Besides, implementations are what will get in, not ideas...
 
@PaulDragoonis And it's not like we didn't ask at all ;)
 
11:23 PM
That's right, almost forgot we've talked with a few core devs about it already
 
People are interested. Only time will tell if enough people are interested.
 
my own thoughts on the Data Structures are: it's interesting but I am hugely sceptical about it being accepted into core due to the massive BC breaks it will likely contain towards the existing datastructures
 
Hey there @LeviMorrison
@Gordon It won't contain any BC breaks at introduction time.
 
@Gordon No BC breaks. Namespaced reimplementation
 
@NikiC ah, nice.
 
11:25 PM
eventually there will, if the existing ones are deprecated. But that won't be on introduction anyway
 
Seems like an interesting project guys.
Good luck with it !
 
Thanks!
(that's one reason when you mentioned DLL my ears perked)
 
:)
I'm on a mac, never setup a dev env yet
on a mac
Has anyone compiled PHP from src on mac ?
 
@NikiC and @Levi, just a thought here. What about the two base interfaces are Container (which can be iterated, counted) and Collection (which is a container that has order, so it is sortable and accessable by index - arrayaccess)
 
@PaulDragoonis no. mac is from apple and apple is evil.
 
11:29 PM
So a Map would be a Container, but a DLL would be a Collection...
 
@ircmaxell Don't like that much. I think our current Collection approach is good.
 
@NikiC just one root?
 
@ircmaxell Wait, we want to give access by index to the DLL after all?
I thought that we don't want to and instead provide manipulation methods based on iteration?
 
@NikiC Oh, I thought that was decided (I don't care for it, but I can see the use cases)
 
@ircmaxell And I thought it was decided the other way around :D
I think giving access by index is a bad idea
 
11:31 PM
And the more that I think about it, I like the concept of having core decorators for the Collection classes. So instead of implementing ->map() on each class, just implement a MapDecorator(Collection $collection). So you'd do $newResult = (new MapDecorator($result))->map($function);...?
@NikiC I won't argue that
 
@ircmaxell Havin insertAfterCurrent / insertBeforeCurrent / removeCurrent / replaceCurrent would sound much more useful to me
@ircmaxell How is that supposed to work?
 
actually, I wouldn't call it MapDecorator, but FunctionalDecorator (or something like that), and include ->map(), ->filter(), ->reduce(), etc on it...
@NikiC pretty transparent actually... Give me a sec and I'll whip up a quick example
 
I mean on the implementation level ;)
Because I don't see how this is going to work without support from the side of the structures themselves
 
class FunctionalDecorator {

    protected $collection = null;

    public function __construct(Collection $collection) {
        $this->collection = $collection;
    }

    public function map(Callable $callback) {
        $class = get_class($this->collection);
        $newCollection = new $class();
        foreach ($this->collection as $key => $value) {
            $newCollection[] = $callback($key, $value);
        }
        return $newCollection;
    }


}
 
@ircmaxell Not everything will have a []
E.g. we don't have that on Stack Queue and DLL
still map can make sense for all of those
 
11:36 PM
won't all of them have a push() method?
 
why dont you just give the Collection an each() method and be done with it? why map(), reduce() and filter()? For semantics?
 
they all will have some method to push on it, but it isn't necessarily the same
 
@PaulDragoonis Yes, I have.
 
@Gordon each() is pretty pointless. If you need each just foreach ;) Only implementing higher lever concepts like map or filter makes sense
 
@NikiC agreed. each() works in JS because Javascript doesn't have a foreach that works...
 
11:40 PM
@NikiC sounds superfluous to me
 
hrm, and a replace() method wouldn't work (on a cloned data structure), because it could bork the structure (example: working with a priority queue or heap, changing a value without altering its place in the list)
@Gordon It's not strictly necessary, but it can make things a lot easier, which is why it's being looked at...
 
@CharlesSprayberry can you help me a moment.. I have apache 2.2 installed via macports and php already.
 
@Gordon What, each or map?
 
@PaulDragoonis What exactly are you having problems with?
 
@NikiC map, filter, reduce
 
11:41 PM
@ircmaxell I think Vector pretty much is what you supply as collection, and Container is collection. . .
 
@LeviMorrison right
 
@NikiC i can do all that in an each() or - if you think that's worthless - in a foreach. the logic will be in the callback anyway. and filtering can also be in a FilterIterator
 
@CharlesSprayberry getting started, really. I need to grab the right build information from my php installation via macports so i can replicate it. This means i can compile my custom version and hook it into the apache setup via a .conf change
@CharlesSprayberry you following me ?
 
@Gordon No, because that would destroy the data structure
 
@Gordon One thing that it could make sense for is if something operates on a Collection generically. I.e. if it doesn't accept a specific structure, but just some collection. In that case it may want to ->map() without knowing how to create the structure
 
11:44 PM
@PaulDragoonis err, like phpinfo() or php -i from cli?
 
Actually, based on that, Filter wouldn't be appropriate at all, since it can destroy the structure entirely for the more complex ones (Map and Stack / Queue would be fine, but Heap Tree and Set could be hurt)
 
@ircmaxell i cant follow
 
By the way, C++ chose to use algorithms separately from the classes.
 
@ircmaxell Yes, I already wondered about how ->filter should work for Tree
 
11:47 PM
@CharlesSprayberry maybe. I'm gonna load my svn account from svn.php.net and try to do a successfull compile.

I'll need to install to a custom directory though, not to interfear with my macports PHP install.

What's the PHP install option to install to a custom DIR, is it '--prefix' ?
 
Imagine if you filtered out 36 from that tree. it's not imediately obvious where to put 25 or 1 (you can determine it, but that's not trivial in the general sense)
 
@ircmaxell It would have to know via polymorphic behavior, I think.
 
@ircmaxell if you'd filter out 36, it would also filter the leafs (25/1). at least i think that's how it works currently
 
@Gordon "currently"?
 
@NikiC with current [recursive]filteriterator
 
11:49 PM
Sorry for popping in and out so much today. I've been everywhere :)
I've missed a lot of discussion, I can see.
 
@Gordon It's not a multi-dimensional array... It's a tree
 
Guys, i didn't realise we had a nice room here :) - I'm usually on ##php on IRC and such.
 
@Gordon Well, in that case, you can't do it generically, since 25 and 1 would still be iterated over...
 
@PaulDragoonis Honestly can't remember, was a while ago when I did it but pretty sure I just compiled into my own directory and changed an apache configuration file to point to my new install
 
@PaulDragoonis Yeah, there's often some good conversation in here. Hence why I hang out here a lot...
 
11:50 PM
@ircmaxell it would work the same for a composite iirc
 
@PaulDragoonis Yea, this is a pretty high quality room
talking about the other people in it
 
@PaulDragoonis how you called there?
 
@CharlesSprayberry is there a nice tutorial you could link me to ? I'm gonna need some extra macports packages i think for the compile.
@NikiC i'm Dr4g on IRC
 
@Gordon interesing, need to think about that
 
I'm usually talking on ##php and #ppi
 
11:51 PM
@CharlesSprayberry Probably only because there are so few people here
 
@PaulDragoonis I'm afraid I couldn't help you there. I'm not a big fan of macports/homebrew
 
@NikiC few, but active
 
@PaulDragoonis I usually on ##php too but I don't like it for all the low-q content (I mean trivial questions)
 
@NikiC Well, I mean the regulars. You'll get your random doofus come along but for the most part it seems to be pretty good stuff :)
 
@CharlesSprayberry That's what I mean. We have a few active people and I ignore everybody else :P
 
11:54 PM
@CharlesSprayberry I've had other experiences there myself...
 
@ircmaxell You've also been around about 20 times longer then I have so that's to be expected.
 
I don't know about 20
 
Maybe I exagerrated a little
But I'm not even a yearling on the site and I haven't been in chat that long
 
Oh, you mean here
I thought you meant IRC
:-D
@funkatron Well, I *am* off today... :-P (kidding aside, it's a mistake none the less)
 
Oh, no I can't speak for IRC. And I definitely wouldn't talk about a lot of great stuff coming from it
 
11:55 PM
in reply to
NBC very obviously has the C-team working today.
 
I got onto the Internet back when IRC was a lot bigger than it is today. IRC is a dark, dark place.
@ircmaxell I saw this in my feed. Was wondering what he's referring to...
 
Dear @nbc, you probably aren't familiar with us, because we usually don't get this far, but there's an "e" in "Bengals" http://bit.ly/zQE1yk
 
@ircmaxell don't get it
 
Ah, I see heh
 
@NikiC I work for NBC...
 
11:59 PM
@ircmaxell And what does "NBC very obviously has the C-team working today." mean?
 
@NikiC See the tweet right after I said "Was wondering what he's referring to..."
 

« first day (448 days earlier)      last day (4500 days later) »