« first day (1841 days earlier)      last day (3113 days later) » 

4:08 PM
@Trowski Which OS? Does the kernel support it?
 
OS X. Kernel should support it.
 
/cc @bwoebi
I think that's an OS X issue.
 
Yeah, I think @bwoebi uses OS X so he might know why.
 
@Trowski no, I don't have an idea why. I have observed the same issue.
 
I know that we had this issue, I don't know if it still exists. I think it's always the last process binding on OS X.
 
4:10 PM
@bwoebi Any idea how to avoid that issue?
 
Only thing helping is forking process holding the socket.
 
Yep, seems to always be the last process.
@bwoebi So rather than use so_reuseport, you just make the socket and then fork?
 
yup
 
That didn't seem to help... I must be doing something wrong.
 
4:17 PM
@Trowski you mean forking? might be wrong though.
 
@bwoebi Yeah, I made the socket first, then forked, and it still wants to always pick a single process.
 
@Abe is that a goatsy pop culture reference?
 
Abe
i hope not.
 
@Trowski hmm
would need to try it at C level to see where the issue really is
 
I know I've made it work before, so I'll have to go back to basics (working with just the socket resources rather than the class wrappers) and see where I'm going wrong.
 
Abe
4:22 PM
@hakre you ruined the fun. can't unsee now :( damn you internet!!!!1!
 
@Abe o_O. sorry, yes, your parent warned you (hopefully) that the internet is a brutal place.
 
There's only local_cert and no option for a separate path for certificate and private key, right?
 
Abe
@hakre :(
 
@kelunik yup.
 
That sucks. :-(
 
4:28 PM
Yeah, kinda silly that you need to put them into one file.
 
How to set absolute url for the image in ckeditor?
 
Abe
was much better when it was called fckeditor. at least you knew what you were going to deal with
 
Nope its not FCKEditor..its CKeditor its handeled using javascript...I wanna know how to set absolute path lot of forum suggest to set basepath but i couldnt able to find in it....
 
@Trowski How about splitting it in 7.1 and deprecating local_cert?
 
@kelunik Sounds good to me. I'd be fine with leaving local_cert if people opposed it's removal. Doesn't really hurt anything.
 
4:41 PM
Well, the name is somehow misleading as well. And I've never seen that anywhere aside from PHP that everything including the private key must be in one single file.
 
5:54 PM
lol!
 
In a unit test should you always check what parameter were used when calling a method? And if so should it be its own separate test just for checking that?
 
btw survivethederpend.com is also registered....but not availble.
 
And if you verify the arguments in one test surely that would mean you don't need to verify them again?
 
6:20 PM
facebook is the most useless site in the world. Some idiots waste their valuable time in facebook.
Where google is trying to improve the world and facebook is trying to destroy the world
 
No, Facebook is extremely valuable. It takes a large portion of the stupid on the Internet and concentrates it in one place.
8
 
Oh ya
 
> "Where google is trying to improve the world"
You misspelt 'reduce humanity to a set of algorithms that can be monetised'. A common typo.
 
We use google because of its all helpful services and idiots use facebook because of its illusion.
 
6:57 PM
@NeelIon I think you are being abit overdramatic =)
 
@tibanez I dont understand that question. can you give a brief example?
 
@Gordon Example: ClassA::hello() internally calls ClassB::something($args...). When I need something() to be a stub and return a predefined value should I also specify the arguments it must be called with? If so doesn't that sort of make it more of a mock than a stub now since I'm setting a expectation on it
Or is it okay to have one test which mocks the method ensuring it gets called with the correct parameters and then every time I need it to act as a stub I do not need to specify the parameters because I already know it gets called with the correct ones
If I specify the parameters every time when it is acting as a stub and then I need to change the method signature I have more refactoring to do in my tests. That's how I see it anyway
 
@tibanez depends on what you want to test. if you want to test correct interaction from ClassA with it collaborator ClassB, then also verify that it got called with the correct parameters. If you only want to make sure something useful is returned, leave it out
@tibanez yes, you can do that like this
 
@bwoebi sure. But it's not a coincidence that anyone vulnerable to any form of sql injection is probably not doing password protection or database ACL right.
 
@Gordon Okay thanks. Unit testing is definitely a skill that takes a lot of practice to get right. Knowing what to test can be rather difficult
 
7:10 PM
@tibanez most of the time you only want to test the public api of your code. and only that which has business critical logic in it.
but I agree, it takes time to learn what not to test
 
hello
every one
i need help regarding UTF-8 data store in phpmyadmin
i want to store "gujrati" language like : હાર્દીક in phpmyadmin database
please help me for this
 
7:30 PM
utf8mb4 and utf8mb4_unicode_ci are your friends.
 
sorry but it is not work
@Danack its stored data like "હાર્દીક"
and also i want to store data from csv to database
 
8:03 PM
@MagentoLearningPhase Do you have a specific question?
 
@Trowski @bwoebi @rdlowrey Another issue is that certificates are always loaded from disk again, additionally have to restrict the certificates to the server user now instead of root, because otherwise they can't be read once the server is running...
 
@kelunik are they? Thought Daniel fixed that.
or did he only want to fix it?
 
@bwoebi Same here as for OCSP Stapling probably.
When we introduce split options we can directly change it from paths to file contents.
 
9:01 PM
hello anybody there?
 
9:23 PM
yes
 
 
1 hour later…
10:25 PM
0
Q: Menu not appear in custom Theme

Sajjad KhanI'm very new to wordpress. I make a custom Theme. But the menu is not appear in appearance section.. I create a separate function file name function.php and the code is <?php add_theme_support( 'menus' ); function register_my_menu() { register_nav_menu('new-menu',__( 'New Menu' )); } add_actio...

 
10:41 PM
@NeelIon Google are awful and I trust them even less than Facebook
My least favourite part of PHP is the syntax for static class variables. It's inconsistent with everything. They were a huge mistake.
(favourite, retweet and star if u agree)
 
Abe
why that?
 
$foo->bar; // property by name
$foo->$bar; // property by variable name
$foo->bar(); // method by name
$foo->$bar(); // method by variable name
Foo::bar; // constant by name
Foo::$bar; // static property by name
Foo::bar(); // static method by name
Foo::$bar(); // I'm honestly unsure which this is
it's nonsensical
 
@tpunt The problem is zend_hash_update instead of zend_hash_update_ind. If you want to set a local var you can use zend_set_local_var
 
worse, we can't ever fix static class variables' and constants' syntax
 
Well… unifying symbol tables would let us fix it if we agreed to it.
 
10:52 PM
no, it wouldn't quite fix it
Foo::$bar should be a by-variable static property lookup
it's not, and never will be
 
@Andrea the latter should be (Foo::$bar)() due to ltr parsing with uniform variable syntax
 
@bwoebi I was aiming for Foo::{$bar}()
 
@Andrea you mean Foo::{$bar()} ?
 
@bwoebi no
 
@Andrea I am fairly certain if we agreed to unifying the symbol tables we'd agree to changing this behavior at a later date.
 
10:55 PM
@LeviMorrison serious BC issue though, but I guess we could have warnings about it
maybe remove in one major version, and then eventually re-use the syntax in another
 
I think it would be a huge step for PHP, honestly.
It paves the way for directly referencing methods as closures and whatnot.
 
@LeviMorrison I think a step we need to make to be able to merge would be instance-local constants
though the declaration syntax for this would be weird
an alternative is finals
and then const would just be equivalent to static final
 
it already is
 
if PHP had final, sure
 
why not just remove static keyword? (and global, while we are at it)
 
10:59 PM
we don't have a way to specify that a constant isn't static
and adding one would be weirdly inconsistent
better to deprecate constants and replace them with finals, which wouldn't be static by default, much like the other things a class can have (properties, methods)
 
this call for someone who has actually studied "language design"
 
?
 
unless you have, in which case - I apologize
 
adding final is something people might actually want for immutable stuff
 
No. Keep constants.
 
11:02 PM
@LeviMorrison why? what advantage do they have over static final variables?
 
They are always initialized.
 
not being tied to a class
 
@tereško we're talking about class constants
@LeviMorrison that's true
 
Static variables should be largely unused. Constants should be used freely.
 
we could require the same of static finals maybe, hm
 
11:03 PM
In my opinion methods should literally be const closures that are bound.
 
I wonder if merging the namespaces is doomed because it ultimately means killing off $
or we could avoid merging variables with the other namespaces, but then you'd have inconsistency if we merged class properties
 
What's the best way to deal with database transactions when different components/subsystems are talking to each other
 
@tibanez shared DB instance (via factory or DIC) or isolated Unit of Work
 
Example: Some sort of Account or Signup service needs to talk to SubsystemA and SubsystemB during the signup process and each of those subsystems also persists and then commits to the database. Problem: SubsystemA commits to the database because it does not know SubsystemB is yet to be called by the Account service.
@tereško I'm using Doctrine and you know the persist() and flush(), well I don't want the subsystems to flush() because not everything will have been persist()-ed yet
 
@Andrea I doubt it.
I don't think we'd kill off $.
 
11:15 PM
@Andrea I already wondered why we don't have $obj->$prop as default property accessor syntax (analogous to static vars)… would be consistent and not have issues like clashes on methods/fcall on property.
 
@tibanez I am not too familiar with Doctrine. I tend to use PDO natively.
 
@bwoebi yeah
 
@tereško Isn't the concept similar though? You do not want to commit() until all entities have been registered. SystemA talks to SystemB and then SystemC, each system registers new entities. I want SystemA to be in control of when the commit() happens but I also want SystemB and SystemC to be able to commit() as well when used alone, without another system calling them or used directly
 
that's the other way it could have been done and avoids merging properties and constants
 
@Andrea but it is just as unfixable as with statics.
 
11:18 PM
it should have been $foo->bar/Foo::bar or $foo->$bar/Foo::$bar, but not $foo->bar/Foo::$bar
@bwoebi yep :<
 
It'd be such a gigantic BC break through all the code that we'd end up with a Py 2/3 issue maybe.
 
worse.
 
worse?
 
Py2/Py3's changes were minor for the most part, especially syntactically
this is huge, though
 
it's huge but a find&replace change. every simple tokenizer can trivially fix it.
and the difference is that it precisely isn't many tiny nasty changes.
with all these tiny changes, no chance.
With just one single huge change… possible it goes well.
tools like composer could have an automatic conversion to a 7.x version inside it for example.
The hardest part IMO would be actually persuading internals…
 
11:29 PM
No way this is going to happen ;)
 
^ see, it'll be the hardest part. (lol)
 

« first day (1841 days earlier)      last day (3113 days later) »