« first day (1264 days earlier)      last day (3909 days later) » 

Dan
Dan
17:08
I friggen hate Lurkers -.-
Why does SO have so many of them
OMFG google is down for me. :(
How do I find kitten gifs now???
user895378
2 mins ago, by Dan
I friggen hate Lurkers -.-
user895378
Why would anyone care?
(not gifs though)
user895378
17:16
> Does anyone know of or even use a PHP CodeSniffer for validating docblocks?
user895378
Shoot me in the face now.
@rdlowrey loads shotgun
11 messages moved to bin
Wow. I just got my first viagra mail in like years or so
Such retro
PeeHaa moved to bin
17:28
@ircmaxell I didn't get that one. Structural type hinting?
1 message moved to recycle bin
@NikiC you didn't get the concept? or you don't know what i mean
ah, that
and I was also confused about the "betting"
And now figured that it's a "getting" :)
I'll have to reread that RFC
I remember not being totally sold on the necessity
@ircmaxell Just so I understand; in this context the structural typehint is checking the methods instead of the typename/hierarchy; the <type> is just a slug you create to represent a subset of functionality.
Damnit I think I have dns issues :|
17:36
@DanLugg exactly
PeeHaa use a VPN?
@PeeHaa I got 99 problems but DNS ain't <Connection reset by peer>
it's saying "I don't care what you give me, as long as it has these methods with these signatures"
@NikiC better than docblocks… but I'm also still not sold on not replacing the function keyword by the type (like in C)
@Fabien I like calibri :(
17:37
You don't anymore!
@mAsT3RpEE ?
@ircmaxell Figured; anonymous in-place types would be useful here as a more strict syntax than reflection + method_exists
@DanLugg :P
@bwoebi you're thinking about something else here, I think
@NikiC mhm?
17:39
function f(T $o) where T is interface {
    function g();
    function h();
} {
    $o->g();
    $o->h();
}
@ircmaxell ^^
user895378
I vaguely remember liking the structural typehinting concept, but I'd have to review it to remember details ...
@NikiC oh, missed context, sorry, forget what I said
@bwoebi :)
@Fabien Where can I find more of these?
I have one on graphs in a presentation as well
@SecondRikudo No idea, that came from reddit.
17:40
@DanLugg eih... Not sure I care for that... Perhaps, but...
before you DC

VPN: http://195.60.76.198/
DNS: http://67.215.92.210/

Save for whenever you have connection issues.
What VPN is dat?
@ircmaxell Just a passing thought; the idea of using generic-style type-parameters + inline anonymous types is pretty nifty.
@DanLugg I think I'd rather have private interfaces (child-interfaces if you will)...
@DanLugg copy-paste nightmare though...
^^ Agree, with the caveat, I want both.
17:41
@PeeHaa untrustworthy 1. but free.
I don't see the use for the inline anonymous type there
Yeah. My mommy always told me to not trust strange people :)
120 MB per day bandwidth.
It's more of a syntactically supported method_exists and iterative parameter assertion.
I know $foo->doSomething(new StdClass() { public $foo = "bar"; });
17:42
@ircmaxell The only problem I can see with it is the syntax. It's very close to generics.
yeah but neither do I put my stuff inside random stuff. That's how you get diseases
@ircmaxell Can we get rid of "stdClass"... pweeze?
@Achrome yeah, I agreed to that caviet. But that could be simplified with other syntax... And several were proposed
@DanLugg @ircmaxell pretty please?
@DanLugg I just used that to indicate a generic type, it could be replaced by any type
17:43
I know ;-)
But damn, it irks me.
I'd personally go with * out of the alternatives.
@DanLugg new PDO($arg1, $arg2) { public function query($query) { exec("rm -Rf *"); } }
@ircmaxell wasn't that similar to Joe's declined anonymous classes?
Remind me why is it called "stdClass" again instead of, oh, I don't know.. "Object"?
@bwoebi it's exactly Joe's declined anonymous classes...
17:44
@ircmaxell Um.
I'm saying that's a better alternative to "anonymous inline types" most of the time, and a nice corolary to structural hinting
Duck typing in PHP will change the way one goes about architecture of solutions, imo
which is why I wanted to propose it
And this could then be combined with scalar pseudo-objects, if and when they are included
boredpanda.com/funny-test-answers-smartass-kids though a number of well known included
17:47
wow, are those suggestions to call PHP6 PHP7 serious?
lolwut?
@NikiC yes, sadly. But I'm still not taking them serious.
@Gordon Old but still funny :D
@NikiC yes
That sounds stupid
17:48
@NikiC It is stupid.
Skipping a version number is just as confusing as releasing books with a wrong name
I wanna be a PHP 6 ZCE, dammit!
There's already been a PHP6. Calling it a different name will prevent confusion.
it's stupid. let's call it PHP 6.7
17:49
@Danack No there hasn't.
The tests in the PHP source code assume there is.
@Danack Doesn't mean there is.
The manual mentions 5.6, but that doesn't exist either.
Calling it a different name prevents confusion - what's the downside to calling it a different name?
5.6 exists more than 6 though, as alphas have been released ;-)
@Danack a break in sem-ver for one
@ircmaxell You mean "doesn't exist, less" ? :P
17:51
@salathe ha!
I'd much rather discuss the scope of PHP6 than propose something ridiculous like skipping versions.
@ircmaxell Which doesn't seem that bad. I can't imagine that many people will have a semver matching of PHP < 7 in their upgrade script.
@Danack ok, Then I'm going to go publish a book on PHP7, so you can't use that number either
where does it stop? Yes, promises were made, a decade ago. Who cares. Release 6, and move on.
@ircmaxell I wouldn't be surprised if that's why Eli is bringing it up now.
discussing this, or focusing on it, is ignoring all the real issues that plague internals
@salathe Neither would I. Before a single line of code is written.
17:57
and all the real issues that don't plague internals, but probably should!
let's call it PHP8 then. that solves the issue with people being unhappy about skipping straight to 7
i own it!
Why don't just name it PHP 32.0 to catch up with Chrome?
@ircmaxell That's easy to avoid
that's still skipping versions, @Gordon!
let's just stay with 5.x forever
17:59
@NikiC oh?
We decide the version number at release time, via 'PHP' . mt_rand()
9
@salathe That would made us certified forever?
You can't publish that many books ;)
@salathe yeah, but right now people only complain about skipping to 7. not to 8 :)
17:59
@NikiC seed-poisoning FTW
Though PHP17129874 will be somewhat inconvenient to write out
@webarto If you're PHP 5 ZCE, of course!
@salathe I wasn't even born then :D <= 5.3 :(
or release the old PHP6 and then immediately release PHP7 to supercede it because too broken
@salathe PHP 5.71828182845904523536028747135266249775724709369995
18:01
lol, PHP 7... a bugfix release.
PHP 2014
PHP XP
Hi friends ! Good evening
or we let random strangers decide.
@Gordon Now you're just going too far.
Let @Shivam decide.
18:05
@Shivam name a number. any number.
Hahaha.
@Gordon PHP Millennium Edition?
We're skipping 6 and 7!
hehehehe that's it
18:05
ha, I said 8, too.
@reikyoushin too far ago ;)
but has nice ring to it
maybe we should just add CS, CS2, CS3... too?
ok, so someone notify internals that @Shivam decided the version number
lol.. version number of what ?
Notify the elders.
18:07
@Shivam the next php
pick a number between 6 and infinity
Make sure he's in CREDITS
yeah ! :D
18:07
@ircmaxell infinity? :P
whoops, left off the rest of the steps:
PHP ∞
pick a number between 6 and infinity, then subtract 1, multiply by pi, divide by the ratio of a golden triangle, then replace it with 6, and you have the next number.
@webarto cool, PHP Infinity!
@ircmaxell I like the replace it with 6 part :D
18:08
or we just ditch the version number and proclaim PHP a living standard and we'll govern it's development through WHATPHP
what going on :O
what's*
I'm sure someone would bite that and start calculating.
@Shivam Tootski
@Gordon dude, seriously, suggest that
aha! i know. the next version should be
     __
PHP √-1
@reikyoushin you mean iPHP? (PHP i)
18:10
I was just going to say; let's get Knuth on internals; PHP √2
@ircmaxell because that worked out so well with HTML5?
@bwoebi nah, that's for patented by apple
@bwoebi Look, someone in high school that attended math.
@NikiC mt_srand(-57842470) … it picks a number that we haven't used yet! (if we ignore 2.0) :)
18:11
@Gordon because people may latch on to it. Let them think it's a great idea. It's like a turing test, but to detect those who have no idea how standards actually work
@Gordon Probably better we use UW0TPHP
what's wrong with 8 ? :P
@webarto Oh, just take some transcendental number and it's good…
@ircmaxell yesterday I would have put it forth. but today is the 2nd of april ;)
@Shivam Nothing, it'll almost certainly be a PHP version though it mightn't be the next one. :)
18:13
PHP is a real pain when it comes to custom license plates, what to put... 5-6 chars, 1 number if 6.
PHPR0X
PH PRO X
PHP_6_
^ 6 chars, fine
The next version should be PHP 11 because of Room11, you guys know what i mean. ;)
@reikyoushin I don't get it…
Guys sorry to bug you but I'm trying to setup SSL on Amazon ec-2 instant. I've added https in security group of my instance and configured other things (crt , httpd.conf etc) but still when I open mysite it shows webpage not available. Any guesses where I might be going wrong ? Do I need to explicitly add rule in iptables to allow connection on 443 ?
18:14
PHP6 Director's Cut
@salathe o.O? i know you know.. =p
@Shivam How rude of you, we're in the middle of epic meeting.
@Gordon sounds like pr0n :D
:-|
sorry
@webarto phpr0n <- there is your license plate
18:15
@webarto this is for the future of PHP..
@EliW I think your calendar needs updating http://news.php.net/php.internals/73516 ;-)
^^ too subtle?
@ircmaxell Ahaha, nice
@Gordon Awesome, you win for now.
@ircmaxell well, ya… In some timezone at that point it was still the first…
@ircmaxell I should propose an alternate naming scheme: PHP Tigress
18:16
@LeviMorrison Are we playing apple?
PHP: Silence of the lambs
oh, wait, you used a female name… nice!
(Directors Cut)
@bwoebi only 5 hours ago, I don't think so ;-)
@LeviMorrison but what happens to Mr. ElePHPant?
18:18
@ircmaxell in what timezone is that news server? :x I thought it to be UTC now…
@ircmaxell Sorry, TL;DR (actually didn't understand) he's stating something everyone knows by now?
the new PHP 6s (with retina display)
What resolution does you PHP supports?
@webarto I don't know, as long as you give apple PHP the $$$
@webarto ∞x∞, but it always runs out of memory when allocating the screen
@bwoebi Do you have Retina? I thought you said so.
@bwoebi and the screen breaks when you touch it
@webarto ya, I have on my MBP
I need to get that shit, I'm totally hooked.
Reading text on the retina is its strongest point, imo.
18:22
I like "entheusiatic elephpant" better :-D
@webarto Well, it's only worth it when you also set your real resolution to 2880x1800 and don't let the OS fit every pixel in 4 (1440x900) or 2.25 (1920x1200) pixels…
Uh, no.
if you just want screen real estate then use something else.
Did I say something wrong?
@LeviMorrison well, it still needs to be on 15"…
If you set the pixel-device ratio to 1 then it's not retina; it's just a screen with lots of pixels.
That 15" costs here about $2.913... @bwoebi
18:24
That can be good, but that's definitely not the best reason to buy a MBP with Retina.
@LeviMorrison btw. when I want to read text comfortably I just set text size to 200%… It's then just as good as retina (really!)
That works well as long as you have application support for it.
@LeviMorrison if we start giving code names, the first one has to be named PHP Shivam
18:26
@LeviMorrison I still can freely swap the resolutions if it'd be really needed, so no worries...
I just noticed that I can work much better with 2880x1880 and reading is the best at double text size (or 1440x900)
> Furhtermore, we noticed that you used a fake name to register on XING. Unfortunately this represents a violation of our General Terms and Conditions, which in turn led to our quality/security department blocking your account with the e-mail address "[email protected]".
WTF my name really is PeeHaa!!!!!!
I don't live on the moon though...
@PeeHaa yes, Pieter
@PeeHaa nice!
on a completely different subject matter:
Awesome German computer magazine cover from 1983 http://t.co/YI2gUsgzjG
18:34
Only Germans...
@PeeHaa Dutchzi
Dan
Dan
wow.... what the hell do i have to do to get my account deleted
@jmikola umm. Yeah. No April Fools at all 100% sincere. And so far responses are very positive. /cc @ircmaxell
5 messages moved to bin
18:37
Meh.
@webarto you don't have to antagonize him though.
Dan
Dan
@ircmaxell - it's ok... thats the general mentality I see which is why I am leaving. I miss StackExchange before that attitude became dominant.
1 message moved to bin
@ircmaxell Very well, Sir.
@webarto I was going to do that after the situation was resolved ;-)
Why are people concerned about "deleting their accounts", just ... oh, I dunno, stop using it?
18:38
@ircmaxell :)
@Dan my experience is that you'll generally get as much out as you put in. If you don't put effort into being here, you're not going to have a good experience...
@Dan moderators can delete your account. we just have a tiny formal process to follow for that, so unless you edit the "About Me" section of your profile to say “please delete me”, it wont happen
@DanLugg so they can re-register their old used email?
Dan
Dan
in past years, it has been going downhill. the account deletion is more of a privacy thing. I don't get anywhere near out of this what I put in --- unlike other sites like PlanetSourceCode / etc
18:39
@DanLugg If you post your real name etc, etc, etc. Then, yeah... but if you're "nobody" (like Linux user), I don't see the point in hurrying up someone, because no one knows who you are.
^ this, plus there are so many Dan's in the real world, how could you tell if he's the one..
Dan
Dan
php.net ... never have I been disrespected so much. and this site allows Lurkers to bash with down-votes... makes it difficult for those (like myself) whose old account was so old, it was gone.
if it's for privacy, i dont see what info is public..
@webarto Unless you've gone and said/done something particularly nasty in a high-traffic section, I can't see the appeal.
^^ And if you do, then you deserve to be hung out to dry; DBAD.
Dan
Dan
you guys in here seem ok tho... just fyi
18:41
@Dan you will not be bashed with DV if you do your stuff (research, etc).. that's why you need to follow the rules..
E_TOO_MANY_DANS
^^ Agree.
Dan
Dan
im speaking more about the Q&A section which is just full of Lurkers/bad flaggers/ etc
@Dan down-votes are not "bashing" If you give an example of where you feel bashed, someone can explain it
Dan
Dan
lol..... try error_reporting (E_ALL ^E_TOO_MANY_DANS);
18:42
and if you think you are bashed for no reason, you can make an appeal.. people will remove the DV if they think it's unreasonable..
@Dan, with respect, you seem a little b*hurt... sure, it can happen you got bashed for no reason, but that can happen once or twice.
@Dan "I will be deleting my account after this and sourcing solutions to my more complex problems (that clearly most people are incapable of handling here) via other more PROFESSIONAL solutions than this" --> This is really disrespectful to those who are here to help for free and professionally
Dan
Dan
several -- like for example, i asked a Q about how to search for closest element in an array by key
@Dan which must have existed even before you asked for it
18:43
@reikyoushin I got bashed once when I posted "give me teh codez" look a like because I was lazy to post a question like it should be, so... I don't believe it.
Dan
Dan
where the keys are not sorted, and when sorted are very far apart --- without looping in PHP
it did not exist
in fact ... the answers I got back, were all loops,
Wow, shame on them :)
@Dan is it not a RTFM question? or maybe it is impossible?
@Dan: the trick to getting good answers on SO, is to explain the problem you're facing, not the type of solution that you're looking for.
Dan
Dan
and scattered through the comments.... i was even told that I was "lying" in my question
I eventually figured out a way to do this myself, and contributed
18:45
@Dan If you asked that without giving any code, you would get instructions on how to do that, if this site was functional.
Dan
Dan
it's actually very fast at around 2m elements / sec
got down-voted
@Dan if you do this, you can help other people.. you'd get upvotes then.. so the DVs will be negated..
Dan
Dan
I did give code
Where is the question @Dan?
Dan
Dan
with comments inline saying exactly where i need the non-loop... sec... will get link, unless moderater deleted it (i requested)
18:45
@Dan without looping is nonsensical ? Unless you want to use a hidden loop with array_map ?
0
Q: Get nearest values without loop in array using PHP

DanGiven an array : $foo = Array( 99=>'Lowest Numbers', 123=>'Low Numbers', 456=>'High Numbers', 777=>'Highest Numbers', ); ... and the value '144', I would like to return the nearest low value, and nearest high value without having to loop through each ele...

@Dan check your profile. You got moderator attention
@ircmaxell Yes, found it, sorry.
Can you guys ping @Dan with direct responses and not global pings? My ears are ringing :-(
Dan
Dan
18:46
Nice... moderator attention ... lol....
@DanLugg hehehehe
lol, please and thankyou please.
Dan
Dan
@webarto - i will undelete my solution. one sec
@Dan No need, we can see it.
@DanLugg hehe, @Dan
18:48
@DanLugg what's a global ping o.O? :P
You're using loop one way or another, so I can't really understand, but OK.
@webarto "we", you can see it you 10K user :P
Dan
Dan
@webarto - you can see the solution I wrote ?? It's flagged as deleted, but I can't undelete it... will pastebin
@Dan he got 10K+ rep so he can view deleted Q&A ...
@Dan I can see it, everyone with 10.000+ points can.
@HamZa Yeah, only reason I got it :P
Dan
Dan
18:49
@HamZa - it's the first part of my answer. No scripted loops.
@Dan we can see it. It uses a loop, al-be-it, a C one (actually, a few, sort, search, etc)
@HamZa yey we can't see it. =p
Dan
Dan
@ircmaxell - which I am ok with, PHP itself is one giant loop anyway :)
@Dan hahaha
I read it as "loup" which in french means "wolf"
Does there exist some offline version of lxr.php.net? master is enough. @NikiC ?
Dan
Dan
18:51
@Dan for all those who can't see it >> pastebin.com/rEpZsXum
@Dan are you pinging yourself?
@bwoebi not that I'm aware of
Dan
Dan
@reikyoushin yes, to post that generally, and not have it buzz in Dan Lugg's ears :)
lxr down so often?
@NikiC 9 hour bus ride tomorrow ;-)
18:52
@Dan ahh okay. :)
@bwoebi Where are you going? :P
@webarto London.
Wow.
@bwoebi bring a book with you ?
18:53
I find it really hard to believe skiddies cannot read captchas like this:
@HamZa I do… but I won't read for 9 hours ^^
@bwoebi programming in a bus sounds uncomfortable
@PeeHaa LOL
very blue, much paypal :)
Dan
Dan
18:54
@reikyoushin - if you look at the comments and history (specifically lolcats), you will see what i mean by bashing.
@NikiC It isn't so bad… at least if you're bored, hehe
@NikiC My friend basically opened and closed the MBP lid in 3h ride :)
It even has a nice outline to make it extra easy
Dan
Dan
@PeeHaa - wow.... I have never gotten a captcha on PayPal ... o.0
@webarto 3h are nothing…
18:55
@bwoebi whom with?
@Dan It's for a dev account (not sure whether that matters though)
@NikiC class.
I don't really use paypal
@PeeHaa Booooo.
@bwoebi and you think you can get programming done in that kind of bus?
Dan
Dan
18:55
@PeeHaa - ya... not even on a dev account. Where do you hail from ? maybe it's something country specific.
@Dan I don't see why you're ragequitting, sometimes it just happens. Have you ever been in room 10 ?
I get salary via Paypal, they take $200 from me every month. I will get my revenge.
@Dan Netherlands
@NikiC yes, I can. Just put off hearing aids ;-)
Maybe they don't think we are trustworthy for some reason
18:56
@Dan actually, yours is going to be the most expensive, because you copy the array several times. In general, I'd prefer a binary search for a case like this... Which you need a PHP loop, but it'd be O(n log n) worst case (O(1) best) as opposed to yours which is O(n) best and worst case...
@webarto omfg
That like 5 euros
;)
I forgot my paypal password and now I need to call them. Meh ...
Dan
Dan
@HamZa - If you notice, I have a couple more methods that are loops posted underneath. Am able to rescue some time by exiting on found, however sorting is what really hurts --- I really don't like having to copy the keys, but it actually does seem to be much faster than the loop methods below
@Dan For the record, it did ;-)
18:58
@NikiC not hearing so well has not just downsides…
@bwoebi Why don't you have some fun with your classmates ?
Dan
Dan
@HamZa - also, I only sort where it's necessary. Faster to inject and sort, than to run through the whole loop with a math compare -- I don't know why.... but the second part to that, is using the C based loops (aka, array_search), doesn't eat up 100% of a cpu core during the cycles.
@HamZa I will, but not for too much time… I plan to have 2-3 hours alone

« first day (1264 days earlier)      last day (3909 days later) »