« first day (2616 days earlier)      last day (2348 days later) » 

12:03 AM
@Wes I don't know - probably. However the fastest speed up for projects that I work on would probably be to just dump a serialized (into plain PHP arrays) version of the injector, after it's had the basic setup done, but before any objects are instantiated.
Nov 20 at 16:20, by Jeeves
In traditional Japanese aesthetics, Wabi-sabi (侘寂) is a world view centered on the acceptance of transience and imperfection. The aesthetic is sometimes described as one of beauty that is "imperfect, impermanent, and incomplete". It is a concept derived from the Buddhist teaching of the three marks of existence (三法印, sanbōin), specifically impermanence (無常, mujō), suffering (苦, ku) and emptiness or absence of self-nature (空, kū). Characteristics of the wabi-sabi aesthetic include asymmetry, roughness, simplicity, economy, austerity, modesty, intimacy, and appreciation of the ingenuous integrity...
 
Wes
@Danack that would be an interesting thing for me to experiment with
i have this problem with code heavily based on reflection. but if i could cache the injector i would have no problem with auryn :P
i know i know, it's microoptimization
 
@Wes I think white listing the few elements that are meant to overflow/have scrollbars will work for us. I'm reasonably certain that list would be zero elements long currently, but would in any case be a manageable list going forward, and still easily give reports where stuff is broken accidentally.
 
Wes
@Danack that last one i did is fairly simple and it will probably work
 
@Wes a significant chunk of the people using Auryn use aerys as well....or other long running PHP tasks. So the cost of setting it up and maintaining the info is trivial once it's started up. For me - I just don't care. I got my own 'framework' using Auryn down to below 10ms time for full configuration, but not touching the DB. Anything after that is just not a worthwhile pursuit for me.
I'm reasonably certain that if I ever give a shit about making particular routes faster than 10ms, the way I'd go about it is either moving to Aerys, or to have a lot of info (including routing info) dumped into nginx config, so that each route has a specific php file to serve it.
that would just directly create the objects that are needed, without even going through Auryn.
(or at least not the full version that's aware of every dependency in the project).
 
Wes
12:10 AM
looks like i am going to need to have a look at aerys
 
@Wes cool, thanks will check it when I can face JS again...
 
Wes
in about 8 months then? :P
 
Wes
1:07 AM
aehm, how do i skip a test from a dataProvider ?
 
@Wes you mean a single one?
 
Wes
yeah
it's probably not possible.
function dataFoo(){
    yield [....];
    if(....){ $this->skip(1); }else{
          yield [....];
    }
    yield [....];
}
 
probably not.....you could just add another column of 'is_this_test_meant_to_be_working'.
 
Wes
seems the only way
 
 
2 hours later…
2:52 AM
On Windows, While script(PDO) executing... by SIGINT(ctrl+c). – #75680
Warning: Narrowing occurred during type inference (specific case) – #75681
 
 
1 hour later…
4:11 AM
room
 
Wes
4:21 AM
so yeah
i should be sleeping :B
morning
 
4:34 AM
:B
 
4:50 AM
!!should @Wes go to bed or drink more coffee and stay up all night?
 
@‌Wes should drink more coffee and stay up all night.
 
Wes
i am afraid "night" is already over, i can see the sun already :B
damn i wish phpdbg worked in phpstorm
sometimes it takes more time than running a single method test in xdebug, than the whole test suite in phpdbg :B
 
5:05 AM
Yeah, same.
 
Wes
it's ridiculous that is not possible to integrate it. the output is the same
 
5:24 AM
\o
 
\o
 
how to hide a date if already booked in calender picker using php..i want to hide calender based on db values using php.please help me how to do this? i searched a lot but i founded so many event calender but i dont want like that i want to show hide date within calender picker itself
 
Undocumented PHP 7.2 BC break – #75682
 
@Wes and I wish developers didn't need an IDE to be productive, and that I was a golden unicorn, and that when I fart gold dust comes out ...
note that, my wishes are more likely to be granted than yours ...
 
5:41 AM
morning everybody.
!!wotd
 
tidings news, information, or intelligence: sad tidings.
Memory leak in zend_register_functions() in ZTS mode – #75683
 
@JoeWatkins What's your beef with IDEs?
 
Mornin all, are EU GDPR officers in high demand?
 
hey
is anyone good with unity?
 
Which unity? be specific.
 
5:52 AM
unity 3d?
2.0f3
 
Morning
o/
 
o/
 
@Fabor is "o/" php
?
 
It's a man waving
 
6:01 AM
lul
 
what does "through" mean in this sentence?
> You have to fight through some bad days to earn the best days of your life.
 
Ok, got something kinda fun, I'm trying to generate a sentence based on the data of a user. So I just created a bunch of if/else statements and if the condition is true, I append a sting onto a display variable $value and then echo it out at the end. pastebin.com/z7KAtiSR So my question is, is there any better way of doing this, that's more efficient or more accurate?
 
@Shafizadeh for the duration of
 
One of the main reasons salami is so unhealthy for me in particular is that my algorithm for determining if I have had enough salami is the same as my algorithm for determining if I am out of salami.
 
6:11 AM
@Dereleased people keep complaining that phpdbg doesn't work with IDE's ...
 
6:24 AM
@BradleyWilliamElko thx
Guys, why the email I sent from my server detects as spam? Whey they don't go into inbox?
 
Which server are you using?
 
what you mean by "which server"? Do you want my ip ?
 
No, I mean what kind of hosting provider. Is it shared, managed or dedicated?
 
it is a VPS
 
6:40 AM
Well it doesn't matter anyway. The problem is that usually many servers are blacklisted based solely on suspicion by spam filters. That is why it is a good idea to use some email campaign system.
 
HI!
Want to ask one question please.
Is there a way to wrap content in to a dummy object.
E.g:
 
@mega6382 do you know any example for a "campaign system" ?
 
Mailchimp is a good one.
 
mailchimp is for sending email?
 
Yes, You can use their API with php to send emails, from your server.
 
6:43 AM
I thought it is a marketing system
 
It is mainly, but it can still be used for this purpose.
 
@mega6382 I see, also no need to I install a SMTP service on my server anymore, right?
 
yes
 
using it with php is hard or simple?
 
I believe it to be simple.
You can use some api wrapper for their api to make it simpler.
 
6:47 AM
ah, any tutorial do you suggest? is this good? a2hosting.com/kb/developer-corner/php/…
 
You can use the following wrapper:
https://github.com/drewm/mailchimp-api
 
@mega6382 thx. also what's your opinion about phpmailer?
did you work with it?
 
$fields = array(
'to' => $token,
'notification' => $notification,
'priority' => 'high',
'data' => $return_details
);

Now I have the $return_details define :

$return_details = array();
$return_details[‘order’] = $this->order;


Now ( $this->order ) is an Object of Php Class: Order.
I want to wrap the content of this object in the encripted form, that will then be decripted by java or swift in Android and IOS.
 
@Shafizadeh I have worked with phpmailer, I believe it is a good solution. It can make dealing with some complex components a bit easier.
 
@mega6382 and phpmailer requires SMTP installed on the server, right?
 
6:52 AM
Yes, it is just an extension on PHP's own mail() function.
 
ok thx
 
how to send data by post ?
 
What's $list_id in mail chimp?
 
you can store lists of email addresses on mailchimp, and you can send email to all of those at once.
 
ah, so $list_id should be an array contains some emails name?
 
6:57 AM
No, $list_id wil be an id of the list that contains some email addresses.
 
"an id of the list", where is that list?
 
When you'll create an account on mailchimp, you can see and create those lists.
 
got it
where are you from and how old are you? @mega6382
 
I am from Pakistan, your neighbor country.
And I am 19 years old.
 
it is a honor for me
@mega6382 and it makes me sad (getting an answer from a younger person) .. just kidding ;-)
 
7:02 AM
@Shafizadeh It is for me too.
I have been to Iran once, my aunt lives there, in Tehran.
 
Really? Great .. I live in Tehran too :-)
 
It is a beautiful country. It was years ago, but I still remember, I had fun there.
 
good .. let me know if you came here again ...
 
Surely.
How old are you?
 
25
there is a PHP community (will be held every month) that we can Participation in if you came here
 
7:06 AM
OK, good.
I might come next year to visit my aunt.
 
7:21 AM
great ... waiting for you :-)
 
@JoeWatkins Most important points a thing I develop with needs is autocomplete and jump to definition, the inspections are a really nice bonus.
@JoeWatkins I keep complaining that it segfaults. :P
 
is "call back" the same as "function"?
 
Callback is a certain type of function.
 
3 messages moved to Trash
 
They are also called closures.
 
In computer programming, a callback is any executable code that is passed as an argument to other code, which is expected to call back (execute) the argument at a given time. This execution may be immediate as in a synchronous callback, or it might happen at a later time as in an asynchronous callback. In all cases, the intention is to specify a function or subroutine as an entity that is, depending on the language, more or less similar to a variable (see first-class functions). Programming languages support callbacks in different ways, often implementing them with subroutines, lambda expressions...
always a good idea to do your reading first.
you seem to be mostly asking first
 
8:00 AM
Ah I see, thank you guys
 
@Shafizadeh
Brother I'm not getting answer. Where should I give my question.
 
Yeah : But here you people discussing. I thought, may I also get some help.
 
yes, you can ask your question here too .. but there is no guarantee to get an answer
 
8:11 AM
@Shafizadeh @Sankar @Sara @SaitamaSama @Stephen @samayo @mega6382 @MadaraUchiha @mickadoo
Please have a look on this query.

$fields = array(
'to' => $token,
'notification' => $notification,
'priority' => 'high',
'data' => $return_details
);

Now I have the $return_details define :

$return_details = array();
$return_details[‘order’] = $this->order;


Now ( $this->order ) is an Object of Php Class: Order.
I want to wrap the content of this object in the encripted form, that will then be decripted by java or swift in Android and IOS.
 
dem pings
 
@SaitamaSama What do you mean?
 
@AasimKhan don't ping random people
 
@AasimKhan don't ping random people
 
@AasimKhan Don't do this, don't spam the thread with your question. Don't ping everyone individually. If someone is interested in answering your question they will.
 
8:14 AM
Alright : Actually I'm not a php developer, that's why trying such things. I'm developing an API for Mobile. See what happens.
 
8:26 AM
is that an excuse for pinging random people with some nonsense?
if you want someone to write you code, then hire a fucking developer
 
Anonymous
Who disturbs my slumber
 
Anonymous
That's one monster ping. I guess you can call it Ping Pong
 
@tereško The worst thing is what you said for a person in @AasimKhan's situation. Naturally he feels confused now and needs some clue or help. "hire a developer" is really bullshit. If you cannot help it, ok, at least don't blame him for just a ping
 
For pinging 10 people at random? Or for telling us what he wants instead of asking a question.
 
...just a ping?
 
8:32 AM
@tereško yes, he is new in here and not familiar with the rules in here
 
in which chat is it OK to ping people at random and tell them that you want something ?
 
nowhere .. but apparently he's not a PHP developer and needs an emergency help. The only idea he has is pinging people in random. I'm not saying that's a great job, but I cannot blame him (from the perspective of understanding people)
 
he did not ask for help
he told us that he wants something
 
He didn't ask us what he wanted, he told us what he wanted. And that is rude.
 
@Shafizadeh If you'd allow this kind of behaviour in 'emergencies' (which this is not) - you will get this from all newbies expected immediate help. Meaning people will leave this room to avoid getting pinged all the time
 
8:37 AM
@Sjon s/help/free work
 
I understand what you're saying .. but all I'm trying to convey is just take people's behavior more easy ;-)
 
Anonymous
@AasimKhan Ask it in the main site and share the link here
 
@samayo That's exactly what I've suggested him :-)
 
@samayo He has already asked on the mainsite and it wasn't well received.
 
probably because he adopted the same tone
 
8:44 AM
anda munde punda
 
in SO Close Vote Reviewers, Dec 7 at 21:08, by Ron
New Terminator movie - Null Terminator. Fights Undefined Behavior.
Meanwhile this is happening on Meta:
20
Q: Advertisement targeted only for males

Shadow WizardI just noticed this advertisement on SO: The two words in circles make this ad target males only, since in Hebrew there are different forms of verbs for males and females. While technically correct and "legal", this is unprofessional* in my opinion, and can be easily fixed by changing the verb...

 
Anonymous
I see no issue with ads targeting a specific gender tbh.
 
Anonymous
race is another matter though
 
8:59 AM
mornes o/
 
\o
 
9:16 AM
Is this right? Record can't inserted successfully (English perspective) in case of failure
 
Anonymous
can't be
 
@samayo okay thanks :D
 
Record wasn't inserted successfully. Is better.
@Akshay Or Record could not be inserted successfully
 
In mysqlnd_ext_plugin.h the plugin methods family has no external visibility – #75684
 
@mega6382 Thanks buddy will go with first one :)
 
9:35 AM
Guys, what does "resampling" mean in this ?
 
resizing.
 
resize means it doesn't crop the image, right?
 
yes
 
thx
 
They will change to the height and width, you define, check the resample() method:
public function resample($width, $height, $constrainProportions = true)
 
9:43 AM
thx
 
If someone got time: twitter.com/Mark_Baker/status/940923399932727296 /cc @Wes @bwoebi @Danack
3
 
9:58 AM
wait, what? they already validate json with .. karate? .. so if you punch and it stays - then it's valid or if it breaks then "not quite so" ? Oo..
 
To all the **ZCE**, who hangs around here, I just want to know:
1. Why did you take the exam?
2. Did it help you with what you thought it would or anything else?
 
DatePeriod returns incorrect iterator count when DST ends – #75685
 
it's fun working on UK time
 
is it fun working?
 
it will if this vendor will start working with me to get this SSO shit done
 
10:12 AM
Mornin
 
@mega6382 Most people think it looks good when they're looking for jobs. Most seasoned developers know people take it to try and look more attractive for a job, and ignore it and judge them on things that matter
@Tiffany Why are you on UK time?
 
@Leigh working with a vendor from the UK on a project that I need to complete by tomorrow
@tereško you use Atom, yes?
 
yes
questions?
 
Ah, that project, good luck!
 
10:18 AM
how good is it for a general text editor? npp is being a shit
 
Anonymous
@mega6382 I took the exam ~6 months ago because someone paid it for me. I think it's good to have specially if you don't have any diploma on IT
 
@Leigh need to configure SSO to three other services via SAML :/
 
@Tiffany good enough, though you might prefer Subliime for that, because it will be faster to launch
 
yep, SAML is evil. I believe in you.
 
you should try out all three major options, @Tiffany: atom, sublime and vs code
 
10:19 AM
^ disappears (;
 
alright, I'll try sublime
I've used VS Code a bit, it's okay... I dunno, I'll see if I can get used to sublime, if not, I'll hop back to VS Code
 
Anonymous
VS is like a superset of sublime. It makes no sense to go back
 
10:39 AM
@mega6382 I do the intakes for new developers and personally I'd say that you might have a bit of a better chance on getting an invite for a meeting with certifications, but for me it is much less interesting than your "portfolio", work experience, passion etc.
 
@Leigh So, you don't think it matters?
 
I personally don't
I'd rather see evidence of real work
 
Anonymous
I passed it, that should tell you how useless it is.
 
@samayo lol
@DamienOvereem I took the exam a couple of years ago, it was mostly with the intention of testing myself, to see if I am any good, and not for help with getting job.
@Leigh So, at least can it be a good resource to test yourself?
 
If you want to test yourself, sure do whatever you want
 
10:44 AM
@samayo so, you dont have any actual degree?
 
Anonymous
Sadly yes.
 
Would you recommend PHP OR PYTHON for web application?
 
Anonymous
I will be hillbilly one day
 
imho: Your ability to learn is so very much more important then what you have learned...
 
@Sankar which do you like more: elephants or snakes?
 
10:45 AM
@Sankar neither, and nor will I recommend any else.
 
!!wotd
 
tidings news, information, or intelligence: sad tidings.
 
@AlmaDo lol
 
lol
@AlmaDo I like cafe
Java
 
@Sankar write it in coffeescript then
 
10:53 AM
@AlmaDo That's arguably worse than java
 
@PeeHaa everything is worse than java
 
@AlmaDo Not so sure about that one :P
 
I have one doubt open
about
 
@PeeHaa because you're worse than java
@Sankar your
enter
key?
 
@AlmaDo :)
 
Recently I have been watching that there are alot of questions in about bitcoin and stuff. The world is going crazy.
 
If a question gets negative points and is closed, does it still permanently affect the user?
 
yes. if you cross a certain threshold on closed / dv-d questions you'll get banned from asking new ones
 
It is not always permanent, some accounts are only temporarily suspended.
 
but I'm not sure about efficiency of this method when applied to "do that for me guys" user types with 1 rep point (aka fresh ones)
because they just register a new one and spam same thing
 
11:08 AM
Got a colleague who signed up to ask one of those kinds of questions (write this code for me pls), got downvoted to not be able to post any more and now holds a grudge against SO, I just laugh
 
you have that kind of colleagues? hm..
 
What an idoit. There many like those, who thinks that SO is a freelancing site where people work for free.
 
Eh, in his eyes he couldn't figure out a problem and asked for help, so I get why he's not too keen
 
don't worry.. if you have high rep then 1-2 trolling questions wouldn't get you banned :p
 
But on the other side of the coin, should have read the rules.
 
11:12 AM
though I wouldn't recommend doing that just for nothing
 
@Sean indeed, it is a problem with the system
In reality very few people read the rules for anything before they start with it
this is especially true of sw devs, who in many cases have been conditioned to "just mess about with it" rather than reading the entire manual first
compounded by the fact that SO is full of questions where people have asked for free codez and immediately received them
anyone who has been a passive SO reader for a long time but not been actively participating could be forgiven for deriving that this is acceptable behaviour
on the flip side though @Sean... there's nothing stopping him from just creating another account, building up a little bit of rep with a couple of good Q/As, then merging the accounts
 
Aye, though I wasn't aware about the merging accounts bit
I bet there's been plenty of meta discussion about it though
 
There's a way to do it through the UI somewhere, I had to do it once
you don't need to get mods involved
as long as you have access to both accounts
 
hoho, so you also were banned for stupid questions, @DaveRandom ? :p
 
No I just accidentally signed in with Google once to answer, and then realised I'd accidentally created a new account :-P
 
11:19 AM
now-now, try to make excuses :p
 
I'm old-school, my account was created when you could only use SE IDs
 
lol
Burn!!
 
yeah those times I couldn't be on SO because I didn't speak English at all
 
@Sean the fundamental problem is that as a long-time user (especially one from before the start of SO's Eternal September) it's easy to get jaded and forget that sometimes people ask bad questions non-maliciously
If anyone here claims they have never asked a poorly thought out/researched question, they are lying
 
it depends on how much efforts are needed for calling a "research" "not poor"
 
11:22 AM
I'm talking about opening your mouth before applying your brain to a problem. Everyone does it occasionally.
 
ok, so, what have I missed?
 
Like when my misses asked me, while on the phone to me, where her phone was
It's not because she's stupid, it's because sometimes even the most intelligent people do really fucking dumb shit
 
@DaveRandom I hope you realized, that your statement carries the implication, that "she is stupid" ... really bad wording there, mate :P
 
@DaveRandom so here's your real fucking dumb shit ? :p
 
@tereško literally nothing I can say to make it better so meh :-P
 
11:27 AM
:D
 
@AlmaDo that's not that bad
 
@DaveRandom okay (:
 
I should go clean up some old posts actually, I wrote some terrible answers back in the day
 
not helping .. we see your shit man :p
 
s/your/you're/ I think
 
11:31 AM
so ... what he have learned today
 
:-P
 
never start a sentence with "it's not because you're stupid, ..."
 
* unless talking to @PeeHaa
 
In which case you would be stupid for not starting your sentences with that
 
I don't understand, why does everyone talk like that to @PeeHaa?
 
11:41 AM
Me neither. I have no idea what I ever did to deserve such an abuse
 
@PeeHaa Well, it's not because you're stupid, it must be something else.
 
mornings
 
Why not both?
Hey ronni o/
 
yo Pieter
 
Code Coverage Report:
2017-12-14 11:46:45

Summary:
Classes: 12.38% (40/323)
Methods: 15.10% (201/1331)
Lines: 6.54% (820/12543)
woo......creeping up slowly....
 
11:52 AM
Up from? 0?
 
-1
Q: Firebase notification payload data formatting / de-formatting (encrypting/encoding etc.) in php?

Aasim KhanCode $fields = array( 'to' => $token, 'notification' => $notification, 'priority' => 'high', 'data' => $return_details ); Now I have the $return_details define : $return_details = array(); $return_details[‘order’] = $this->order; Now $this->order is an Object of Php Class: OrderWith...

 
Oct 20 at 13:59, by Danack
Code Coverage Report:
  2017-10-20 13:59:26
  Lines:    5.44% (421/7740)
 
@PeeHaa you know what you did
 
@Danack Ah the best way to get better coverage. Removing code instead of adding tests \o/
 
@AasimKhan "Therefore as a php-developer I presume to ask you guys about any encrypted/encoded (I don't know what other terms people use for such terminology), where could we format here, and de-format in IOS - swift."
 
11:54 AM
He seems to have added ~5000 LoC
 
oh
...
 
@AasimKhan "put on hold as unclear what you're asking" - no one knows what you are asking.
 
lol
Imma go for that coffee now
 
@DaveRandom and crept the coverage up.
 
tbh @Danack if you just make sure that all new code has tests you will get a faster rate of coverage increasing :-P
/me strolls off, whistling, pretending that's what I do
 
11:59 AM
@Danack : I more talk as an IOS oriented, so I don't know how to make people understand my query. But I guess, people who have worked in Firebase notifications through Web API written in php, could definitely understand, what I want to say.
 

« first day (2616 days earlier)      last day (2348 days later) »