« first day (1781 days earlier)      last day (3161 days later) » 

5:01 PM
E_SPERM_OPERATOR
 
@Trowski we'll get conflicts with ternaries…
 
@Trowski winning?
 
@FlorianMargaine I thought that was -~
 
@Trowski IMHO that should be: callable(int): int
 
because: $a ? ($x): int ~> $x * $x : $b; will be impossible to decide for the parser whether the first colon is part of a short Closure syntax or of the ternary.
 
@bwoebi no it wouldn't, because this would only be in parameter type contexts, where a ternary is illegal anyway
 
@ircmaxell hmm?
 
I guess parser doesn't do lookahead and that's why it would
 
yeah, parser only does one token lookahead
it never reaches the ~> to see how to parse
 
I may be thinking about that incorrectly
 
5:06 PM
@bwoebi The only thing following the colon can be a type, so if the parser finds a type, couldn't it assume it's short closure?
 
@Trowski it could be a constant too… at least as long as the parser doesn't see the ~>. Which it will only see after having decided what way to go.
 
existing closure syntax could still be used if you need to enforce type
 
@bwoebi But if it's a constant, then it would be a ternary.
 
@Trowski right… and parser doesn't know what it is.
 
So... 1) type = short closure; 2) anything else = ternary.
 
5:08 PM
@Trowski parser not smart enough for that ;-)
 
Parser can't tell constant from type
 
Oh, right...
It hasn't gotten that far yet... damn.
 
Yeah, parsers ain't no easy thing^^
 
$func = ((int $x) : int) ~> $x * $x;
Would requiring another set of parenthesis allow it?
 
that'd work ;-P … but then it becomes ugly^^
 
5:11 PM
Yeah, that's not great...
 
also, why the hell do you want to specify return types there?!
it's supposed to be a short form.
 
I really need to finish fixing my old project. I'll be starting a full time job soon and won't really have much time to work on it after.
 
It's probably not necessary with short closures.
 
in JavaScript<ball pit>, yesterday, by Awal Garg
> I once tried to fix that but it just lead to crazy problems, therefore making this a documentation issue. (https://bugs.php.net/bug.php?id=43283)
 
twitter.com/xdebug/status/638759268309708804 … let's be mean and say "Did you add a sigsegv handler which exits with status code 0?!" (j/k)
 
Abe
5:14 PM
@bwoebi consider that people will also use it because of the actually-closure behavior, not just because it's shorter
 
So any help that I get would be much appreciated!
 
@Abe This is a good point @bwoebi. I can certainly see people wanting param/return types.
 
I really only have a few issues left to fix to get it working good enough.
 
@Abe It's not actually-closure. It's copying by value…
@Trowski I see a point of param types (which are allowed here)… but what's the point of return types here?
 
To validate that the variable returned is of the correct type.
 
5:16 PM
@xdebug void s(int n) { return 0; } signal(SIGSEV, s);
 
@bwoebi Same reason as having return types on anything.
 
@bwoebi normal argument rules apply right? ... I'm assuming objects would be by ref?
 
hi im a bit stuck with something very stupid, is it hard to
 
@FlorianMargaine should be exit(0); and SIGSEGV ^^
 
I tried already htaccess but it seems that not doing it
 
5:17 PM
@bwoebi fixing
 
@Duikboot what did you use in your .htaccess?
 
Abe
@bwoebi wait. i thought it would have worked as actual closures
 
@Orangepill object semantics aren't reference semantics…
@Abe I'd have liked that too…
 
5:18 PM
But the Zend VM made it impossible^^
 
Abe
oh dammit
would it be too hard to fix?
 
@bwoebi I'll say it again :D it's composability
 
@FlorianMargaine ;-D … but hehe ^^
 
Can someone just take a few mins. and go into a separate chat with me. I'll tell you everything I have done already to try and solve my problem. I'll even tell you what I think is the problem. I just don't know how to solve it.
 
Non-constrained functions can't be composed in a type-safe fasion
 
5:20 PM
It goes straight to /public
after the domain name when I try that.
 
Well… anyway… if someone thinks he can nicely add that, he should do a follow-up RFC… plenty of time left for 7.1 after vote will have been held on my RFC…
 
8.0
 
@ircmaxell Hence I wrote in my introductory mail: "(assuming PHP 8 isn't going to be the next version ;-))" ;-D
 
@Orangepill can you spend a few mins. I've think I found the issue but I don't know how to get around it.
 
no, refactoring it to be an actual closure (by-scope instead of by-ref) would be MASSIVE and hence require 8.0
 
5:24 PM
@ircmaxell oh, I was talking about return types. … Also, it'd be purely internal, so only require 7.1.
 
Should a .htaccess always been set to the root directory?
 
ah yes
 
@Duikboot see httpd.apache.org/docs/2.2/mod/mod_alias.html#redirectmatch the 3rd argument needs to be a URL not a URI if I'm correct. See if that solves it. If not, then disable other rules in case one of them is conflicting with it.
 
@kelunik do you know how to override a dependency of a dependency in composer config file?
 
Do I always have to set a RewriteRule? If I want to redirect
 
5:30 PM
@PeeHaa I think the way to do it is to require it yourself in your composer.json, and then alias the version to what the other thing wants e.g. "foo/lib": "1.2.1 as 1.0.1"
 
@Duikboot you use Redirect, RedirectMatch, or you can use mod_rewrite. For simple redirections use the first, for path patterns use the 2nd, for more complex criteria like lang, IP, etc use the last.
 
@Danack Yeah I thought so too, but for some reason "it doesn't work". Let me pastie my config and error
 
I just want to redirect my user to the /public folder :)
 
@Duikboot you're mixing them together. You're mixing mod_rewrite with mod_alias
RedirectMatch is not part of mod_rewrite
 
5:33 PM
Damn
 
The first conditons are for mod_rewrite and need a RewriteRule at the end that block is your mod_rewrite rule for redirecting for www. Make a blank line and then put your RedirectMatch as it's something entirely different.
 
AFAIK I should be able to target branches right?
 
Damn confusing
I get the part I am wrong at RedirectMatch but not yet how to get it right, I need to set a rewrite rule instead I guess.
 
@PeeHaa try specifying a commit - "phpunit/phpunit-mock-objects": "dev-fixes-seven#a93cbe2241312312323 as 3.0",
 
LGL
5:37 PM
For some reason when I use . $sort . in query It works, but when I user ? (Bind_param) it doesn't.
 
> Problem 1
- The requested package phpunit/phpunit-mock-objects dev-fixes-seven#fc085b7
c3b147bc03b37cceacb3545bac5bc6b20 as 3.0 could not be found.
Same problem
 
did I miss the RFC to add allowed-classes as an array of options to unserialize? php.net/unserialize
 
@PeeHaa dev-seven-fixes vs dev-fixes-seven
 
@Duikboot try this pastie.org/private/ygxkoqkwz1yn5cxj4mamsg Have not tested, not sure if Apache support negative lookahead. Added it so to prevent redirect loop as (.*) would also match /public
 
5:41 PM
:P Internal Server Error
 
@ircmaxell just another person suffering from dunning-kruger
 
eih
 
php community is filled with such people
 
argh fuck me very much. Let me see whether that solves it :p
 
Oh it's working
Thanks a lot @crypticツ
 
5:43 PM
> Problem 1
- The requested package phpunit/phpunit-mock-objects dev-seven-fixes as 3.0
could not be found.
Any other obvious fuck up somewhere @Danack?
Also tried without the alias. Same thing
 
@Duikboot Do more testing, using anything I post can lead to hair loss. =o)
 
Abe
@ircmaxell i'm unsure if i prefer it implemented as actual closures, or if i prefer having it "shoddy" but asap
 
Yes im testing right now
 
I think by-value is good for the vast majority of use-cases, hence I don't think it's worth implementing actual closures (especially since none of the rest of the language uses them)
 
@PeeHaa your branch name is wrong
 
5:46 PM
WTF? Again? I suck that hard?
 
your github has "dev-seven-fixes" not "dev-fixes-seven"
 
hi all
 
5 mins ago, by PeeHaa
argh fuck me very much. Let me see whether that solves it :p
 
many more failures than successes ... but whatever, that's life ...
 
5:47 PM
And no it didn't solve it :(
 
can some guide me that larvel vs yii
which one is best
 
Both are crap
 
oh, totally missed that
 
Yw
@PaulCrovella :-)
Tnx anyway
 
@JoeWatkins why you do this, why you do things?
 
5:48 PM
then please suggest the best framwork
 
The best one is the one you wrote yourself
 
Hi, is it possible to convert "Tuesday" to actual date ? example the date of the day tuesday in this week is 2015-09-1
 
What makes you think you need a framework?
 
that will be reinventing the wheel
I want to reuse some framwork
 
Yes and musk is reinventing cars
Your point?
 
5:49 PM
@Hikmat but it will be the best wheel ever :|
 
haha, agree
 
;)
 
@PeeHaa this is a random thing - try branching to a branch that doesn't have a hyphen in the name....
 
better then putting a monster truck wheel on my bicycle
 
LGL
5:49 PM
PDO or MySQLi?
 
@Stricted I'm able too, I should, right ?
 
but I want to same time
 
@JoeWatkins sure
 
to save some time
 
Abe
@ircmaxell i don't know. surely no more use() is a big step forward. but i have to admit that i would have preferred them to be actual closures. by ref is not an option? till it gets properly implemented by-scope?
 
5:50 PM
@PeeHaa I think recall there being a github thing being 'special' around certain characters.
 
@Abe can you show me examples of where by-ref is beneficial?
 
@PeeHaa My only other thought is your actual branch shouldn't have the "dev-" prefix
 
> [UnexpectedValueException]
Could not parse version constraint devseven as 3.0: Invalid version string
"devseven" in "devseven as 3.0", the alias source must be an exact version,
if it is a branch name you should prefix it with dev-
@PaulCrovella What actual branch. The root package one?
 
@Stricted enough reason ... I'm mostly being selfish most of the time, I usually enjoy it ... just like everyone else, I think ...
 
5:52 PM
@PeeHaa so that github.com/PeeHaa/phpunit-mock-objects/commits/dev-seven-fixes - make the end of this be "sevenfixes"
 
^ that
 
@PeeHaa dont forget minimum stability
 
@kelunik ` "minimum-stability": "dev",`
ugggh md fail
 
EMERGENCY EasyJet #EZY8845 grounded after the aircraft was damaged mid-flight by a popped champagne cork http://ift.tt/1LRNxIS
 
when did the begin making airplanes from wet toilet paper ?
 
Abe
5:54 PM
returning a bunch of things is ugly. just that. anything can be written several ways, but closures would be prettier
$a = 10; $b = 20; $c = 30;
list($a,$b,$c) = (~>{$a+=10; $b+=10; $c+=10; })();
 
> Problem 1
- The requested package phpunit/phpunit-mock-objects dev-sevenfixes as 3.0 c
ould not be found.
 
@Abe HUH?
 
I have the feeling it isn't actually using my git version but rather sebastian's instead
 
@Hikmat you should ask that question on reddit instead
 
@PeeHaa you don't have a "sevenfixes" branch...
 
5:56 PM
@PeeHaa phpunit-mock-objects doesn't have a branch called seven fixes. Just require dev-master as 3.0.
 
@Abe wtf?
 
@PaulCrovella oooooooohhhh wait. My branch doesn't need to be called dev-foobar just foobar?
 
Abe
@bwoebi oh, i don't even know. :P what's wrong with that?
 
@Trowski I cannot. I need to use my own repo with a fix in a branch
 
Abe
oh sorry lol. i forgot the return
 
5:57 PM
@Abe everything?
 
Abe
$a = 10; $b = 20; $c = 30;
list($a,$b,$c) = (~>{$a+=10; $b+=10; $c+=10; return [$a, $b, $c]; })();
 
lol
 
@PeeHaa correct. and require it in composer as "dev-foobar"
like how "dev-master" grabs the "master" branch
 
reddit is a room @tereško
 
> - Updating phpunit/phpunit-mock-objects (dev-master 644047c => dev-sevenfixes
fc085b7)
Checking out fc085b7c3b147bc03b37cceacb3545bac5bc6b20
 
5:58 PM
huzzah!
 
That was embarrassingly confusing for me
Thanks all! :)
 
Abe
@bwoebi what about by ref? why won't it work?
 
@Abe that example will be the same with by-value as by-ref...
 
Abe
by ref would be:
$a = 10; $b = 20; $c = 30;
(~>{$a+=10; $b+=10; $c+=10;})();
var_dump($a,$b,$c); // 20 30 40
no?
 
6:00 PM
> Time: 2.34 seconds, Memory: 4.00Mb
I'm going to dedicated this commit to all you
 
@Abe yes, but again, why?
 
Abe
@ircmaxell i don't know enough of this kind of programming to properly take a position on this. my opinion is that it's just nicer to read
 
@PeeHaa "I'd like to thank my family, God, our production crew, and a couple assholes in a chat room for making this commit possible. This is your commit. I couldn't have done it without you."
 
no, I mean why practically do you need to do that often enough for it to be the norm?
 
@LGL it depends
 
6:02 PM
Excellent. That totally goes in
 
@PaulCrovella "and a couple assholes in a chat room, who actually did the work"
 
@tereško You're just jelly :P
 
no, I am actually just making waves, since I have no idea what you are all talking about
 
@ircmaxell so is Grovo going to tap your and coderabbi's talents as educators for developing courseware??
 
@tereško :D
 
6:05 PM
@Abe by the way, there are ways to do these things properly… instead of doing an array_walk and manipulate the parent scope by ref, you also can do e.g. array_reduce… It's these things. You obviously always can do that by ref, but there are also nice ways to avoid the by ref.
 
Abe
@ircmaxell practically, i don't think i have any use case that i couldn't achieve otherwise :P it is just more expressive. you can both return an mutate the inherited scope
 
@ircmaxell This is crazy…
> Tourists, who were meant to arrive in Turkey at 10.30pm, say they suffered a seven-hour delay and did not reach their destination until 5.30am the next day.
 
@LeviMorrison Why crazy? Most places have rules about what times large planes are allowed to land, and the earliest is usually 5:30am.
 
Sounds like an aircraft is like an egg… Supports massive pressure differences etc, but breaks easily from the inside…
 
It's probably also not trivial to reset the oxygen mask equipment.....
 
6:11 PM
@Danack They were meant to arrive at 10:30pm, which would indicate that the 7 hour delay is unusual.
 
memes
 
@Abe I think immutable is more expressive... but to each their own
 
Abe
@bwoebi of course... it only depends on what the language offers
 
@PeeHaa read your name here ...was trying to implement xD
 
If they miss their landing slot in the evening and the delay would go into the time when large planes are not allowed to land, they wouldn't be allowed to file a new flight-plan until the morning.....
 
6:13 PM
@Orangepill I'm not sure how the revised gratipay works.
I assume it has overhead now?
 
large planes generally have a bit between the passenger cabin and the roof of the plane though.. like a ceiling
 
@Mr.Alien Stalker! :)
You succeeded in implementation?
 
aahaha I went to examples just to see how I can integrate it and neh, figuring out which files I will need for that.. ;)
 
@bwoebi it supports massive pressure differences when the pressure is applied uniformly, not when it's applied locally...
 
@Mr.Alien Just composering them in is the easiest
Also feel free to ping me if you have any questions or need help implementing :)
 
6:16 PM
yeah, ask ^him for help with composer
 
heheheh :P
I expected a remark ;)
 
@PeeHaa sure bro, thanks... and I just cloned .. I think all I need is common folder, service -> git.php + token and ofcourse exception .. and bootstrap + service factory
 
Yeah IIRC we avoided external dependencies successfully
 
Abe
@ircmaxell why is immutability important? it would inherit just the scope that "surrounds" the closure. of which you would have full control anyway
 
@PeeHaa so am going in the right direction..
@Abe o/
 
Abe
6:21 PM
if you pass the closure around in both cases you will need to validate the return value or the variables, if you believe it's required
 
@Mr.Alien Yeah looks about right
 
let me go ahead with the includes
 
@Mr.Alien /common includes an autoloader
 
i am using spl.. will check that
oh yes it does xD
 
:-)
And bootstrap.php would set it up for you
I think I also use it for feedr if you need a reference implmentation
 
6:25 PM
@ircmaxell "That's every language in the top 10 index except PERL, PHP and VB.NET"
slowclap.gif
 
Or I used @Danack's thing. Let me check
 
wait I will try to include these files first
 
k
 
I don't like the new gratipay page though
only takes up 22.5% of my screen width
 
I deserve ice cream, I'm going for ice cream ... lata ...
 
6:35 PM
@PeeHaa did you try to give to 3v4l? because for me he's just a user that can't receive money, not a team
 
@MarcelBurkhard Nope. I offered to give him a box instead
 
Sup
Demorus here. made a post, maybe you guys have an idea:
0
Q: AJAX :: Getting the data without having to click twice on first intent

AspergerAJAX - Getting the data without having to click twice on first intent My knowledge level: Novice in PHP. I understand some javascript basics. Started 1 month ago. Problem: Ajax somehow forces me to click twice the first time the page loads. Second related problem is that if I click on one b...

 
@PeeHaa aah, pee, all I had to include was bootstrap, it handles the auto loader, rest am using use oauth2, common/ github, session, credentials before I require bootstrap
 
Post is well structured and detailed. Would appreciate if you guys have any idea what the cause could be
 
6:42 PM
@Asperger multi-accounting?
 
@Mr.Alien Yes :)
inserts magic meme
 
@MarcelBurkhard no, demorus got blocked over a year ago due to bad quality questions. That is my other account
 
@Asperger @Demorus was here like yesterday
 
aha... will try to register else will try tomorrow... and haha well am trying it for the first time.. also just realized my oop is much more immature compared to that repo xD cc @Abe
 
So back then when I started html I did what everyone starter did, ask stuff without googling first : )
 
6:43 PM
@Mr.Alien Cool whenever you need me you know where to find me :)
 
@MarcelBurkhard so since then I am used to going in the chat rooms using demorus and posting questions with asperger
 
@PeeHaa sure.. ;) thanks bro..
 
AJAX is really cool by the way. Using it with PHP is simply awesome
 
@Asperger your "PHP" section is javascript, you might have a better shot tagging the question appropriately and asking in the right room
 
oh you are right
I will go there and see what they say! Oh im into since yesterday PDO. Great stuff. You guys were right
 
6:48 PM
hello
i'm working on my site which features user authentication
i wanna add the feature which tells a user that when he logged in last time
how i'm supposed to do this?
 
@HassanZia you have to store the last login time in the database and associate it with the user.
 
man, google's new logo looks like they're marketing to 4-year-olds now
 
this is the confusing part
while i'm storing the time when user got registerd
but how to store the login time
 
@PaulCrovella Those are probably the best paid 4 year olds ever :P
 
@HassanZia When a user logs in take the value in the last logged in field and stick it in the session... then update the value in the user record to the current time.
 
Abe
6:53 PM
 
i don't like that font.
 
Abe
the G has too much white space compared to other letters #designerocd
 
BTW I never knew low bandwidth and first world actually used different fonts
 
it's like the logo of a children's toy manufacturer
 
Abe
i prefer it to the old one. but it looks unbalanced
 
6:55 PM
@Orangepill a little bit description won't hurt at all, i'm novice to php
 
Abe
at least the kerning is correct
 
should've been eggloo so its alphabetic
get it?
 
would someone please help?
sorry for popping my head in your nice conversation
 
Abe
@MarcelBurkhard believe it or not but someone pays me because i'm pedantic with graphics stuff xD
 
6:59 PM
@Abe lol, don't troll us with bad mocks of Google's new logo.
/checks google.com
//WTF mate.
 

« first day (1781 days earlier)      last day (3161 days later) »