« first day (2356 days earlier)      last day (2585 days later) » 

12:29 AM
I succeded on getting interoperabillity between AES-256 from Crypt_AES() and OPEN_SSL AES-256.
But i do not get the same results from one to another, is it possible to achieve it ?
 
12:59 AM
"same results"?
 
@ircmaxell Same binary output, or either same base64 encoded string. They differ, but they both translate correctly
 
they are supposed to differ
if you encrypt the same thing multiple times you should be getting different results each time
 
1:17 AM
No, i should not, with -nosalt, and set keys and iv
they always output the same result,
but php result is different from openssl
 
wait
what?
why?
 
Wich part did i explain poorly ?
 
you're defeating the point of an IV, which means your encryption is moot and insecure
 
thats beyond what i need
 
why?
 
Wes
1:24 AM
\o
 
just md5 it
3
 
Wes
1:57 AM
speaking of imposing random rules... cc @PaulCrovella The magic method __call() must have public visibility guess what, i need it to be protected, in fact i'm pretty sure it's possible it has uses for private, although limited ones...
same for other magic methods...
 
@Wes what uses would it have as private?
 
Wes
2:17 AM
my point is, all these special cases only make everything more complicated. if one wants to have that as private just because they want to avoid doing $this->call("method", $arguments) and do instead $this->method(...$arguments) why denying it...
 
2:55 AM
@Wes I wasn't questioning your point, just genuinely curious how a private __call could be useful
 
Wes
3:26 AM
as it's private, usefulness is limited to a class, so not very useful. my point was the special-casing everything almost compulsively gives gain to no one
 
@Wes but it's only called when the method is not accessible from the calling scope.. so if it's private then anything that could invoke it would also be able to invoke the method directly
 
Wes
invisible or undefined, there's also that. i don't really have uses for private, but i suppose someone could prefer doing $this->foo() rather than $this->catchAll("foo")
 
ah, gotcha
 
Wes
protected does have more uses though, it is like public but only for inheritors
call works perfectly if used within the class and descendants scope only... except that for some reason you are forced to make it public, even if you don't need it...
anyway, i don't really care anymore :B
 
3:55 AM
yeah, magic methods in general can die in a fire
 
4:16 AM
public function __sad(): void { /* empty */ }
 
Wes
var_dump( $wes->:( ); // NULL
speaking of which @Sara have you considered e.g. interface Augend{ function add($addend); } for your op overloading ext? :B
 
I have
Well, I dunno about "Augend", whatever that means
 
Wes
augend is the lhs operand of a + b
 
what's the right one called?
 
Wes
addend
 
4:20 AM
Oh, nvm, I'm stupid.
 
Wes
9
Q: What are the formal names of operands and results for basic operations?

trwI'm trying to mentally summarize the names of the operands for basic operations. I've got this so far: Addition: Augend + Addend = Sum. Subtraction: Minuend - Subtrahend = Difference. Multiplication: Multiplicand × Multiplier = Product. Generally, operands are called factors. Division: Dividen...

 
huh, TIL
 
Wes
could you solve that issue that required a change in the core for some of the magic methods? i'm referring to something it wasn't possible in 5.x
 
The thing with is_greater not existing? No, that's still a thing.
But the patch to support it is now MUCH smaller.
 
Wes
i tried to build that ext too, failed as i found out that e.g. $a++ couldn't be overloaded singularly but that would be just converted to $a = $a + 1; iirc
or -$foo is $foo * -1
 
4:27 AM
unary minus doesn't exist, but post inc certainly does
 
Wes
i don't remember exactly, but operations like that were simplified. i think i've used do_operation or something
you mean unary plus?
 
Oh, you're talking about the core object overloading that gmp usess
Yeah, my operator ext doesn't use that API, it's way too limited
I just replace opcodes in the VM.
 
Wes
yeah, that was the only thing i could hope to use :B and yeah it's not very flexible
 
Is the following code allowed in PHP? define('foo', isset($_GET['foo']) ? $_GET['foo'] : 'bar');
 
Wes
anyway, looking forward to try your extension. thank you very much for that
planning to replace bcmath functions with a proper bigdecimal class with op overloading
if you've ever did stuff with bcmath & co you probably know how annoying is writing math operations with infinitely nested bc*() functions... drives me insane
@JennaSloan yes
but you don't wanna use constants like that. constants are globals. actual uses for globals are very limited
 
4:41 AM
@Wes unary plus exists
 
Wes
@PaulCrovella you are lying
unary plus is a scam
 
@Wes var_dump(+"42", +"42.0");
 
Wes
damn php...
 
What does the unary plus even do?
 
!!eval var_dump(+"42", +"42.0");
 
Wes
type casting :B
 
morning
 
@Wes If only we had an operator... for piping expressions. A sort of... pipe operator...
 
then we could smoke bcmath
 
Wes
@Sara if only :P
 
4:49 AM
@Sara I would forever be grateful to someone who could write an push through an RFC… know anyone like that?
 
levi?
 
I think arrow functions has broken his spirit.
 
Wes
haha poor levi
 
morgen
 
@Trowski yasuo isn't deterred by any amount of failure, maybe ask him
3
 
Wes
4:55 AM
ahaha
 
Mornings o/
 
good morning
 
@PaulCrovella He seems to specialize only in solutions to non-existent problems.
 
@Orangepill o/
 
@Orangepill Morning
 
5:05 AM
@Trowski @linux \o
 
Yo yo
 
0
Q: jquery - .split is not a function

Ram SinghI am using the same code in some other place, which is working fine. but now i am using it, but is throwing me error i.e. .split is not a function Below is code i am using: var classList = $(this).attr('class').split(/\s+/); I have checked in Console, class name is coming like Cls_abc-XYZ and...

please help
 
morning @all o/
 
5:24 AM
o/
 
PSA: Installing docker on Win10 Home is a hot mess
 
5:52 AM
posted on March 29, 2017

New Cyanide and Happiness Comic

3
 
Wes
ok that made me laugh :B
 
hahha
 
6:47 AM
If the 0 requires repository 1, and repository 1 requires 2 and 3: Will the 0 recursively "autoload"/install 2 and 3 if it's not a packagist/composer repository but vcs?
Currently in 0's composer.json I need to specify name/url of the 2 and 3, otherwise it fails to find them.
Random ping @DaveRandom @Ocramius :-D
 
@DejanMarjanovic I would expect that 1's composer.json would have this information
That's how the tree walking works, each composer.json points to a bunch of other composer.jsons
 
```
Problem 1
- Installation request for xxx dev-楽天 -> satisfiable by xxx[dev-楽天].
- xxx dev-楽天 requires yyy dev-master -> no matching package found.
```
@MadaraUchiha I know it works like that for packagist/composer repositories, but this is git repository specified in repositories, it looks like it's not resolving deeper.
Or I am doing it wrong, but I've tried shitload of times.
 
@DejanMarjanovic If the repo hasn't that information, why would it be able to resolve the dependencies?
 
@MadaraUchiha 0 shouldn't contain 2 and 3 repo info?
0 requires 1, 1 requires 2 and 3
 
@DejanMarjanovic Again, 1 should have this info.
 
6:55 AM
and that works great if I just point 2 and 3 in 0
 
2 and 3 are implementation details.
 
I had other expectations :-)
Thanks
 
7:08 AM
i am trying to get all tracks posted by all users with all comments(along with user details) of every track and a boolean value for if the currently authenticated user has liked a track.I am doing this in eloquent.
$tracks=Track::with('user','comments','comments.user')
->join('likes',function($join){
$join->on('tracks.id','=','likes.track_id');
$join->on('likes.user_id','=',$this->uid);
})
->orderBy('tracks.created_at','desc')->get();
problem is the orm is unable to recognize likes.user_id
and also how do i do something like select likes.user_id IS NOT NULL as liked in the likes join
 
7:23 AM
moenings
 
\o
mornin
 
@tereško
what am i doing wrong?
 
you are using activerecord
 
yes
eloquent
 
that was my answer, not a question
 
7:27 AM
 
should i do this in a raw query
 
Is that what you are talking about?
also moin
 
Eloquent is based on ActiveRecord? In 2017? Srsly?
 
30 mins ago, by Paul Crovella
@DejanMarjanovic https://getcomposer.org/doc/faqs/why-can't-composer-load-repositories-recursivel‌​y.md
 
@Gordon did you think that "facades" was only antipattern in laravel?
 
7:28 AM
@PaulCrovella oh :-P
also markdown wtf
 
srsly
 
also bare ' in URL wtf
 
meurning
 
@tereško I tried writing a raw query and got it to work but the left join gives duplicates...for every comment track details get repeated
 
@DaveRandom Well my google fu sucks, thank you :-) So private packagist or something like that is a solution?
 
7:35 AM
'SELECT t.id as trackId,t.artistName,blah blah...,l.user_id IS NOT NULL as liked FROM tracks t INNER JOIN(SELECT id,name,image FROM users)usr ON usr.id=t.user_id LEFT JOIN (SELECT track_id,user_id,comment,created_at FROM comments ORDER BY created_at DESC)c ON c.track_id=t.id LEFT JOIN(SELECT id,name,image FROM users)u ON u.id=c.user_id LEFT JOIN(SELECT user_id,track_id FROM likes)l ON l.track_id=t.id AND l.user_id=:user_id'),array('user_id'=>$this->uid)
 
@DejanMarjanovic well it depends what you are doing, is the issue specifically that you have closed-source dependencies?
If so, then yes probably private packagist is what you want, but if not then you might look at restructuring the dependency layout?
 
@DaveRandom Yeah, pretty much closed source, nothing special, but would make things easier to include in bunch of projects.
 
@PaulCrovella oh I always forget that exists
 
Thanks guys, still, composer rulz.
 
7:38 AM
just use maven. it will download the whole internet
 
@DejanMarjanovic Tijuana, spring break \o/
 
\o\ /o/
 
> flag this message as spam, inappropriate, or offensive
 
@Gordon I use gradle :p
 
@Gordon the sad part is that I probably will, as soon as I write the first line of Java :-D
 
7:39 AM
Good morning
 
Mornigninins bitches
 
Anonymous
Mornin
 
@PeeHaa Y U NO ANSWER MY wordpress question?
 
indeed, such an @-hole
 
7:43 AM
it'd make things a lot easier if @PeeHaa would go ahead and change his name to sshole
 
o/ mon-ring Jimbo
 
Anonymous
Trumps environment approach is scary.
 
7:47 AM
@Bonzo you probably should learn how to write SQL
or a leas, how to write SQL JOINs
 
@JayIsTooCommon s/environment/presidential
 
yeah, SQL is a very social thing, it likes joins
 
and everyone gets around tables
 
oh, funny
 
@PeeHaa's mom frequently gets on the tables
and then we have a catastrophic accident
 
Anonymous
7:55 AM
not another catastrophic accident..
 
Cat trailed crap everywhere and someone spilled water on my desk this morning
today is going to be great
!!caniuse custom elements
 
Afternoons o/
 
!!version
 
8:03 AM
@Sean fix it please <3
 
!!issue !!caniuse should encode spaces as %20 rather than +
 
Anonymous
tell you what.. that issue plugin is spectacular.
 
o/
 
Anonymous
8:05 AM
yo joseph
 
It's a modern day beacon which all other plugins should strive to follow in the footsteps of
 
Anonymous
^ spot on.
 
Syntax error in PHP CLI – #74328
 
!!jeeves make coffee
 
will strip --strip-all --discard-all also remove any debug symbols from extensions provided by --enable-debug?
 
8:09 AM
@PeeHaa are you there
 
Anonymous
@PeeHaa are you here
 
@Jeeves Didn't know you could pipe commands into php -a
Is that a thing?
 
i just wanted to ask you, how bad is it to disable a CSRF token protection on a register form
 
@Sean Haha.
 
Wes
just found out that braavos' citizens in GoT have an italian accent. i'm shocked
 
8:10 AM
mornings
 
Wes
\o
 
o/
@Wes GoT is shit
 
@Sean You are running win7? Works fine on 10
 
votes are looking good @Wes
 
Yeah, work we use 7
 
Anonymous
8:11 AM
@Saitama get out.
 
Wes
@Saitama get him guys
 
Got 10 at home.
 
@Sean Does it work on 7?
 
Anonymous
if it wasn't for the mod notif.. I'd kick.
 
@PeeHaa how bad is it to disable a CSRF token protection on a register form
 
Wes
8:12 AM
@pmmaga yep, noice :D
 
@Gordon kohana all over again :-D
 
Nope
 
Anonymous
@lewis4u don't ping randoms or spam question please.
 
@Wes @Jay Animes are superior in every possible way
 
@Sean As in you get the same error as op?
 
8:12 AM
C:\Users\sean>echo "echo time();" | START "Console" /B php.exe -a

C:\Users\sean>Interactive shell

PHP Parse error:  syntax error, unexpected end of file in php shell code on line 2

Parse error: syntax error, unexpected end of file in php shell code on line 2
 
That's a windows issue right not a php issue?
 
Wes
@Saitama sure, if you are five :B
 
Lemee fire up my vm
Either way windows users aren't supposed to touch interactive mode anyway, it doesn't work :V
 
Anonymous
@Saitama you have devil worshipping traits.
 
inorite
 
8:15 AM
@Sean can you close bugs ?
think he meant php -r
 
Hi guys
 
-r doesn't work either, but no, I don't have a php.net account
 
Anonymous
@JoeWatkins already been done
 
Inconsistency in operators precedence example – #74329
 
8:17 AM
This bug report thing Jeeves can show is awesome :)
Good work guys
 
I wish it showed the Package as well. :P I sometimes get really interested in a bug as it sounds interesting but then it's just something missing in the docs :P
 
Anonymous
@kelunik ^^ ^:)
 
Oops mistaked
 
@pmmaga Agreed
 
Wes
@Jeeves that must be about some very old php versions
 
8:20 AM
@Wes Which is the biggest sea on the World?
 
Anonymous
@Mike use a pastebin :)
 
OKay 2 sec
 
@Wes Nope. It's just undefined behavior
 
@Jeeves tell me the answer hurry?
 
Anonymous
is it me or are cb responses slower?
 
8:21 AM
@Linus I don't know.
 
I have a view , where i have a form with:
https://pastebin.com/c5eaNQPw
But:
Im getting a error with ""Undefined index: onderwerp" , does somebody know why?
Ofcoure i closed the form
 
because "Undefined index: onderwerp"
 
Wes
@PeeHaa output is the same since 5.1
 
Joe, Smart , Didnt think of that before :p
 
Hey all :)
 
Wes
8:22 AM
and it is also correct... what i'd expect it to output
 
@Wes It may be the same, but it's still undefined behavior
 
a quick question! is there any ways to recognize the user defined index in array?
 
Wes
why that?
 
@PeeHaa undefined behavior of course being some of the most consistent behavior php has held across versions
5
 
Anonymous
@Mike line 22, you don't check if the value isset
 
Wes
8:23 AM
@PaulCrovella ahahaha
 
like : array(77 => 12)
 
@Wes Same reason $i++ + ++$i; is undefined
 
@JayIsTooCommonYes Lel how could i be so blind
Thanks anyways
 
I'd like to find out the if index is defined by developer or system :)
 
Anonymous
@Ehsan wat?
 
8:25 AM
W-what#
 
like : array(77 => 12)
 
You mean if it was a natural incremental index vs an associative one?
 
@Wes what horrible thing are you doing ?
 
@PeeHaa why is that undefined?
 
@sean: exactly
 
8:26 AM
@FlorianMargaine Stuff like that is undefined in many languages
I expect also in php
 
Wes
left to right, if $i is 5 before that, it will be 5 + 6 @PeeHaa imo
 
@Wes Yes in your opinion
Doesn't really matter at all :P
 
Wes
@JoeWatkins why people keep asking me that
 
you're probably a bad person
 
@Wes why do you keep doing horrible things
 
8:27 AM
@PeeHaa it's undefined in many languages?
 
You can have an opinion about what undefined behavior should do. Also it can look consistent even
 
@Jimbo Happy you like it. :)
 
Wes
can i do that?
 
it sounds like something perfectly defined in every language I've used.
 
No it is not
 
8:28 AM
I'm not sure if there's a foolproof way of checking that, sorry o.o
 
!!? c undefined behavior increment
 
Search for "c undefined behavior increment" (https://www.google.com/search?q=c+undefined+behavior+increment&lr=lang_en)
• c - Why are these constructs (using ++) undefined… - 4 jun. 2009 - C has the concept of undefined behavior, i.e. some language constructs are …… looking… (http://stackoverflow.com/questions/949433/why-are-these-constructs-using-undefined-behavior)
• Undefined Behavior of Postfix or Prefix Increment… - 29 apr. 2014 - That is undefined behaviour and as such it is entirely up to the implementation of t… (http://stackoverflow.com/questions/23368530/undefined-behavior-of-post
 
@FlorianMargaine Sooooo?
 
Anonymous
@Ehsan sounds like an xy - why would you want to do that?
 
8:29 AM
@kelunik It must be polling server-side, right?
 
in JS for example, it's the opposite of undefined: it's in the spec
 
@Jimbo Doesn't have to, but currently does.
 
Yes
In JS
 
Wes
problem is, it's undefined. shouldn't be either defined or an error?
 
PHP doesn't have the concept of "undefined behavior" given that it has no spec.
 
8:29 AM
@FlorianMargaine We have a langspec
 
if "it works in all php versions", then it's not undefined
@PeeHaa I mean something that is used.
 
sigh
Fine you are right @FlorianMargaine
/me goes to do work
...
 
come on, the langspec is only updated after half of the RFC, if that much
 
I was more hinting and the fact that I don't see any use in keep repeating what I said before
 
Wes
i have no problem with denying potentially ambiguous expressions, but something like that should either not work (ie, be an error) or be well defined
 
8:31 AM
@Wes time for your next rfc
 
Wes
if i wanted to rfc all these tiny things i would need a couple of spare lives at least
 
you'll need an rfc for each of those too
 
Wes
lol
angosso!!!!!!1
back to work :B
 
phpwtf.org/instanceof-smart < This one is perfectly fine the way it is.
@Wes I guess your next RFC will be 3v4l.org/XGONZ?
 
Wes
@kelunik AAARGHHHH
 
8:37 AM
@kelunik the error message could be better
 
@PaulCrovella The error message shouldn't be there.
 
Wes
^ that
 
wut
a class isn't an instance of anything
 
Wes
#php-depression-hits-hard
 
a string can only be the name of a class ... the first statement should error
 
8:39 AM
@PaulCrovella Oh, that one, yes.
@JoeWatkins No, it should return false as it does. Otherwise you have to introduce is_object(...) && ... instanceof ... checks everywhere.
 
can someone confirm that php-fpm -t -t -R -y foo.conf dumps every line twice
 
can someone confirm that php-fpm -t -t -R -y foo.conf dumps every line twice
 
@JayIsTooCommon: hopefully the issue is solved :)
 
@kelunik Serious question, how would it not poll when the service is either a REST api or static page (I'm guessing that's what it is - a static page)
 
@Jimbo It's a dynamic page. But theoretically there's a bug mailing list which could be used to provide it.
 
8:42 AM
@kelunik Ah, and the mailing list itself is a streaming source?
 
using a non-object as lval to instanceof is wrong, should throw exception ... it's wrong ...
 
This is something I'd love to get my head around eventually, make the source of the data actually stream it, which involves probably threads and stuff I presume
 
@JoeWatkins It has always worked that way and makes life way easier.
I will vote against any such suggestion.
 
consistency would be acceptable whatever
@kelunik I didn't say I was going to propose that it changes ... but if you have code that is checking if a non-object is an instance of anything, your code is wrong
 
@Jimbo Well, the mailserver somewhen contacts the receiver mail server and that one could theoretically kick-off a script to dispatch a webhook to jeeves or something like that.
@JoeWatkins No, it's not.
 
8:44 AM
it definitely is
 
piping email directly to a script is how request tracker's email ingest works, and it works fairly well
 
@kelunik that just shows me you are using it ... doesn't mean it's correct :)
 
Tell me why it's wrong there.
 
becuase it doesnt use laravel
 
8:50 AM
tell me why it would break if the engine threw an exception for non-objects, as I suggested was correct ?
it would just throw the exception earlier, right ?
which is always desirable, isn't it ?
 
@JoeWatkins No, it doesn't throw an exception if it's an array for example.
 
I just read it, it has is_array guard
an array doesn't get used as lval to instanceof
 
we should rename all lvals to laravals
 
what about rvals? ralavars?
 
Anonymous
!!wotd
 
8:55 AM
vulpine: of or resembling a fox.
 
!!scorpio
 
> ♏ Scorpio | Oct. 23 to Nov. 21
The ancient martial art of karate should only be employed for self-defense, or in your case, any time you drink too much and decide to ruin everyone else’s night.
http://www.theonion.com/features/horoscope
 
score
 
!!aries
 
> ♈ Aries | March 21 to April 19
Like a Phoenix rising out of the ashes, so too will you frighten a number of small children playing inside that ball pit.
http://www.theonion.com/features/horoscope
 
8:56 AM
@PaulCrovella drop them
 
\o/
 
yii class/object related – #74330
 
Anonymous
!!cancer
 
> ♋ Cancer | June 21 to July 22
Your creativity will skyrocket this week, moments after purchasing a number of colorful and hilariously incongruent wigs.
http://www.theonion.com/features/horoscope
 
!!ophiucus
-.-
 
8:57 AM
@Jeeves the segfault is trying to protect you from yii
 
Anonymous
@Gordon you're such a weirdo
 
@JoeWatkins And there are enough other cases where a variable might be an instance of ... but not always an object.
 
@PaulCrovella What are you protecting me from?
 
Anonymous
@Jeeves @PeeHaa's shoddy code
 
@kelunik nope, instance implies object, requires it ... there are no instances except objects
 
8:59 AM
@JayIsTooCommon Jeeves has no power here.
 
!!alias ophiuchus horoscope ophiuchus
 
Command '!!ophiuchus' aliased to '!!horoscope ophiuchus'
 
@JoeWatkins Yes, instance implies object, that's why it returns false if it's not an object.
 
@Gordon there you go ^^
 
That will break it though
 
Anonymous
8:59 AM
@Jeeves @PeeHaa @DaveRandom O.o
 
@JayIsTooCommon I am just going with time. And NASA said there is 13 zodiac signs. And NASA knows e v e r y t h i n g about astrology
 

« first day (2356 days earlier)      last day (2585 days later) »