« first day (2110 days earlier)      last day (2831 days later) » 

10:00 AM
Is there any way you can use Auryn to globally define a class / classname for constructors type hinted with an interface?
 
@NikiC the last additions are RM's for 7.0 ...
I have pinged Ty and Derick ... so if you don't wanna, don't do it ... but it looks like that's supposed to happen
 
As an example, I have a few classes which accept a Transport interface (for emails), and the transport class is defined in my app's settings. It would be nice if I didn't need to add definitions for each class which uses it
 
yet another undocumented thing in the release process ...
I'm not talking over you @Sean, I dunno the answer is all ...
 
@JoeWatkins ^^; It's cool. I've gotta chill on these questions anyhoo, been asking too many recently.
 
10:18 AM
There's a headline every day now.
 
yeah, but it doesnt necessarily mean an increase of such incidents. can just as well mean an increase in coverage reaching us
 
So, uhh, I just learned that my friend's PC crashes unless he's in a Skype call with either himself or someone else. o_O
Can't find anything on Google. Any pros got any ideas?
 
@JoeWatkins in the RM appointing process you mean? :-)
 
@Gordon the wish may be father to the thought ...
 
Hey guys , i have using *imagejpeg* function in php to generate the final image.Any idea as to what the second parameter goes in the function ? I have googled and couldn't get to the conclusion?


I'm doing this in the end , is this fine.


imagejpeg($final_image,'temp/croppedTempImage/hello.jpeg', $jpeg_quality);
 
10:25 AM
please remove the unnecessary whitespace
 
@bwoebi well yeah, but sec bugs aren't even mentioned in the brief for release process ...
 
I've been a vegan for one week...Is this normal? https://t.co/ocpze10SJU
 
@Gordon just for FR
 
@JoeWatkins Media says it's inversely proportional to success in local IS war…
 
10:29 AM
@tereško too expensive, but we'll see
 
@JoeWatkins is that just violence or proven IS attacks?
 
@Gordon proven IS. There has been more, which is not IS...
 
yeah all confirmed terror incidents
 
10:34 AM
@DaveRandom not sure what that message was about, but it errors
 
@bwoebi Oh man, setting a class name in a config, and aliasing the interface to that class, then sharing an instance of that class. It all works! This is amazing.
 
@JoeWatkins I just want to point out that although 1988 was the year of my birth, there is absolutely no correlation between those things
 
I don't think we can wait for the kind of increase you are looking for before we say that something has changed ... while the media report that IS are loosing ground, they are not telling you why they are loosing ground, it looks fiesable to me that they are loosing ground because they are concentrating on dissemination of their ideology and it is working, reporting that IS are loosing the fight only serves to fuel the fire ...
 
Also morning fine room
 
@Jimbo Lockerbie
mohaa
 
10:42 AM
@JoeWatkins what was 04/05?
 
madrid train bomb
 
London terror attacks? Or was that 03?
 
@JoeWatkins that was islamistic? TIL…
 
@Sean just move the dependencies that are per route, to the route method.
Then you're only left with the common ones on the constructor.
 
to be honest, I am much less concerned about any actual attacks, no matter how despicable and horrible, than about the impact they have on society. The rise of populist and autocratic leaders in recent years is a direct consequence.
 
10:46 AM
@bwoebi inspired by but not directed by al-qaeda
 
yea… still
 
Usually I don't mind google and their small updates, but moving the usual "Go back to previous page" from the backspace button is just plain idiotic.
 
@Gordon so, would be better if media would not report much about the incidents and make it as important as the fact that some prominent person (not royal :-P) got a baby?
 
@bwoebi no, would be better if people would learn not to freak out and follow pied pipers.
 
media have a responsibility to report the world as it is
 
10:52 AM
@JoeWatkins You mean instead of skewing reports towards unimportant events, like terrorist attacks?
 
imagine you hadn't seen any news, if someone showed you the data, you would think there is no problem ?
 
Don't need to imagine, I don't watch/read news
And no, I don't see any problem aside from overreaction
 
@JoeWatkins There is a problem. But the problem is massively overscaled.
Terrorist deaths are an only so tiny fraction of unexpected deaths you can experience.
Also, media is part of the problem why islamic motivated acts even happen … they - for some part - do it because of the exposure. To inflict pressure… To watch the world burn?
 
things that were unimaginable when I was a child are now a regular thing ... so much so that you actually seem quite complaisant to me, maybe you don't remember a year going by when you didn't hear about jihad, or terrorism in any form ... I do, rather liked it ...
 
@JoeWatkins Wasn't there a conflict with IRA in your youth?
 
11:00 AM
sure, but it didn't start out violent, it was a political struggle down religious lines, it still exists, it erupted into violence for a while ...
 
@JoeWatkins WP says "Civilians killed: 1,841"
 
 
that's quite a few…
 
yeah politicians and their children were murdered, it was horrible ...
there was always a solution to those political problems ... these aren't political problems ... you don't get the bravery required to kill 100 people and yourself from your politics ...
 
29 mins ago, by Gordon
@JoeWatkins https://ourworldindata.org/terrorism
 
11:03 AM
It wasn't terrorism in the classical sense maybe, but that doesn't make it any better. It's just due to globalization that today the conflicts are exported to other countries.
 
contradicts your chart
 
Mine is non-state based. Unsure if that makes a difference.
 
@Gordon I'm pretty sure that the chart is a function of your political opinion and will support whichever opinion you do hold
 
If there's an node that I'm using throughout docbook, what's the best way to just create a reference to it? And where should it go?
 
Of course there's a level of distrust generally with metrics.
 
11:06 AM
> If you torture the data long enough, it will confess to anything :)
 
heh
 
heh
 
@NikiC nope, I dont know whos behind the site and which political beliefs they hold. I only chose it to express how easy it is to find contradicting numbers. I dont claim they are correct.
 
@NikiC [especially true for benchmarks]
 
@rtheunissen unsure
 
11:07 AM
I'll copy and paste for now, but there must be a better way.
Philosophical question: what should this return? $container->contains(...[]);
 
@rtheunissen a boolean?
 
-__-
But which, dear @Gordon, which boolean.
 
?
 
@rtheunissen boolean boolean :)
 
Right now I'm thinking it should be true, because none of the values were found to not be in the container.
A true of false boolean, yes.
 
11:12 AM
true of false?
 
Oh when actually passing in a empty array
 
Yes.
 
Depending on the use case you might even throw
 
^ Actually not a bad idea, didn't consider that.
 
@rtheunissen is it a contains-any or a contains-all?
 
11:13 AM
@rtheunissen oh, I am sure this is defined in math
 
contains all.
 
> The empty set is a subset of A: ∀ A : ∅ ⊆ A {\displaystyle \forall A:\emptyset \subseteq A} \forall A:\emptyset \subseteq A source: en.wikipedia.org/wiki/Empty_set
 
@rtheunissen Meet of empty set is top
 
@Gordon I'm pretty sure all math people are always drunk
 
@PeeHaa I didnt know you are a math person
 
11:16 AM
:P
I always get utterly confused when faced with even the most simple formulas
I mean just look at it
 
Cool cool.
Python: all([]) is true, Java's List::containsAll also true for empty search.
@Gordon So an empty set is a subset of any set?
 
@PeeHaa fwiw, I probably just suck at pasting math formulars from wikipedia, but I know how you feel. you can segfault my brain and force it into reboot by telling me f(x)
@rtheunissen thats what wikipedia says
 
stackoverflow.com/documentation/proposed/changes/… … why is he urlencoding/urldecoding? looks fishy to me…
 
Therefore it is law.
 
Hi every body, i am having problem with the mail function in my live server it is sending it to spam each time i have done all the possible ways to change the headers and checked but no use. Can any body help me out here is my headers.
$headers = "From:info@moneyswift.com\n";
$headers .= "X-Sender:info@moneyswift.com\n";
$headers .= "Return-Path: -f info@moneyswift.com\n";
$headers .= "Content-Type: text/html; charset=UTF-8 \n";
Am i going some where wrong ?
 
11:21 AM
Staph trying to send mail the stupid way
Use either swiftmailer or phpmailer
Trust me on this
 
+1
 
trust you… haha… hahahahhahaha… NO (although you are right on this one)
 
mail($mailto,$mailsubject,$emailmessage,$headers);
 
Also connect with smtp proper
and maybe dmarc
 
11:22 AM
@Neelesh God, no..............
 
@PeeHaa we dont have the DMark anymore. We have the Euro now
 
Don't use that.
 
@Gordon :P
 
what is alternative which i can use guys please guide me
 
1 min ago, by PeeHaa
Use either swiftmailer or phpmailer
 
11:23 AM

guide you please

2 mins ago, 16 seconds total – 3 messages, 1 user, 0 stars

Bookmarked 5 secs ago by PeeHaa

Also take into account what @Sjon. said and connect to smtp proper
 
can i have the sample code i am new to swiftmailer ?
thanks for ur feed back @sjon
thanks @peehaa
will try on this one
 
hmm, the wife just texted me that she loves me out of the blue. she needs money, right?
 
@Gordon Either that or it didn't work out with the neighbor after all
6
 
@Gordon Or she broke something.
 
@Fabor she insists it's neither of that
speaking of breaking things…
does anyone know why my env vars in /etc/bashrc are not picked up when I do docker run but work perfectly when executing the same script docker run does while logged into the container?
 
Raj
11:40 AM
hey guys
can any one suggest me how prevent specific input controls being submited??
 
21 mins ago, by bwoebi
http://stackoverflow.com/documentation/proposed/changes/55170?draftId=46706 … why is he urlencoding/urldecoding? looks fishy to me…
 
Go/Vault is being a real pain -_-
 
IKR, ooh back on now
Is it just "Go" now? ;)
 
@Raj I assume you mean form inputs. you will need to intercept the onsubmit event and remove them from the payload
 
hello
I have a question
I have an inerface called ItemInterface and a method getItemById lets say
I am implementing this interface for example in a User class
but I want to name this getItemById method using getUserById name.
is it possible to create interfaces with flexible names? for example get{$className}ById.
?
 
Raj
11:47 AM
@Gordon thanks for your valuable suggestion but this textbox is middle of form so how i can remove ..suggest me
 
@MidoriKocak no. and it would be contrary to the intent of interfaces
 
can you explain?
 
@Raj you will need to intercept the onsubmit event and remove them from the payload. that mean in javascript. it doesnt matter where in your html this is located.
 
or maybe can we define an alias for method in implementing class?
 
Raj
11:49 AM
@Gordon thanks i got it.........thanks alot
 
btw is @JoeWatkins here?
 
@MidoriKocak interfaces specify a contract. you specify any Item needs to have a findItemById(). Any object implementing this interface can then be used like an Item. if the method names would be flexible, you couldnt know like what they could be used.
 
@Raj disable them
 
@Gordon thank you so much
 
@MidoriKocak if you want your Entities to be findable by ID, but not write an interface for each Entity, consider making it interface Findable { public function findById($id); }. However, when you do that, you will lose the return type
 
Raj
11:54 AM
@PeeHaa i have rewrited url so i dont want it in url that's via i have completely remove
 
wat?
 
Raj
it
btw issue sloved
guys u r brilliant
 
i love sloving problems
@Raj true
 
Raj
same here but taking long time to slove
ya 100% true
 
@MidoriKocak Joe is around. In and out, shaking it all about.
 
12:01 PM
did someone implement "??=" operator or should I do that?
hence I am not working anymore I have much time
 
What is "??="?
`$a ??= $b` I'm assuming `$a = isset($a) ? $a : $b`
o_O
 
@PeeHaa the ability to untweet things (i.e. delete things @Jeeves has tweeted)
 
Anonymous
eh, as long as the service is enabled - Packagist should re-crawl your repo after every push, right?
 
@rtheunissen it's my rfc and was accepted wiki.php.net/rfc/null_coalesce_equal_operator
 
Oh nice, sorry I've been out of the RFC loop.
 
12:12 PM
I am too lazy to implement :/
 
@MidoriKocak I think too late for 7.1 now. But can go into 7.2 if we have a good implementation covering all cases with well-defined semantics.
 
@bwoebi yep 7.1 out. Do we have typed properties?
 
@MidoriKocak no. they failed in vote.
 
@bwoebi so its not coming in the future?
 
@MidoriKocak nobody said that. We might have another vote for 7.2.
At least I plan to give by-ref typed properties a try.
 
12:16 PM
by-ref properties?
 
@MidoriKocak $foo = &$this->bar; ($bar being a typed property)
 
ah got it
A silly question: Is the php a metalanguage for c?
 
What's a metalanguage?
 
A form of language or set of terms used for the description or analysis of another language.
 
12:21 PM
@kelunik Your request made it into the planned changes for Docs
 
@MidoriKocak "a thin wrapper" so they say
 
@MidoriKocak PHP came from "that time" when C was down and out and looking for love. C still tries to forget those days...
 
@Machavity he should have gotten an inbox notification for that due to the edit
 
@bwoebi For the thread, yes. But he made it into their rollup as well. Double highlighting
 
Gon
the stiens gate movie was such a mindfuck...
 
12:27 PM
@Gon They made a movie?
 
Gon
> Steins;Gate: Fuka Ryouiki no Déjà vu
 
Anonymous
is this topic approved? stackoverflow.com/documentation/proposed/changes/… I can't see in the dashboard
 
Gon
It's the absolute ending type-ish thing...
 
@samayo Yes
 
12:28 PM
> Beauty is in the eye of the beholder, which is a pity, because this week the National Association of Beholders wrote to me to tell me that I have a face like rucksack full of dented bells.
 
Anonymous
@Machavity @littlepootis I think someone hijacked the topic, so it's still not approved
 
So many heavies here
 
Engi is not heavy.
Engi hates sasha
 
@DaveRandom so? screw them and go to the National Association of Beerholders. There beauty is just a question of time and beer
 
12:31 PM
@Gordon ah, beer-time continuum
 
@DejanMarjanovic Ah, the video from Docs launch. Good times...
 
Haha, that GIF should be on intro page.
 
@DejanMarjanovic thats photoshoped
 
It was not photoshopped.
 
@littlepootis first off how do you explain random fire brusting from the ground. Second of all , if you look at that fire up close you can see that it was photoshoped
 
Anonymous
12:36 PM
@littlepootis Yeah, clearly ms paint.
 
@user5600875 It was handcoded in hexadecimal
It's like assembly for GIF renderers
 
@littlepootis makes more sense than random fire brusing out of the ground
 
what? you never heard of spontaneous human combustion?
 
Anonymous
They say, it's getting popular in Europe.
 
12:39 PM
Our country is doing it ATM.
 
Wow. just fire from a random place? Man o man
 
It's totally caused by that subatomic pyrotron particle
 
Anonymous
I hope all this US election drama is being filmed. I can't wait to bing-watch it whenever I get time
 
it's never been proven, but that's only because Pyrotron is a Decepticon and prentends to be a Neutron or something
 
hey!!! @Gordon ramsay!!!
 
12:42 PM
@Machavity I know. Got a notification because of the answer.
 
@Jean-philippeEmond are you a troll? Can I kick you?
 
I am not a cook, you know
 
scuse me to have you offended...
it was just for laugh a little..
 
If anything he is Gordon Freeman
 
Gon
 
It's OK Jean-Philippe Susilovic
 
@Jean-philippeEmond I wasn't sure whether I need to be offended. thats why I asked ;)
 
@DejanMarjanovic a chance I'm not "Ron"... ^^
 
@kelunik Ah, missed he posted an answer
 
12:47 PM
@Gordon, na its just to make some colour in the day..! :P
 
@DaveRandom sure needs colour ... here's a photo of the office view he sent me:
 
lolwut :-P
 
lolll
well.. you can comfort you.. you have a shade...
white to gray
:P
 
@Jean-philippeEmond yeah @DejanMarjanovic is totally into this whole 50 shades of grey thing
 
haha
well.. gray is a colour.. when we said: I don't have any colour.. how we could qualifier the "gray" colour if its not really a colour?
:P
same for white.. and black..
* @jean-philippe Emond as been kicked
loll
 
Gon
12:58 PM
... need to wait ... until my new name comes into action ...
 
Phpstorm + Phpunit = intensive love, 100% CPU :/
 
that why I dont use phpUnit ^^
phpUnit is only for oop/poo?
 
Nope, any PHP.
PHPUnit is good, just don't write bad tests.
 
@Jean-philippeEmond and what do you use for testing your code instead?
 
well.. didn't know really how its works.. and why should we used it..
I know its to know if your function works...
@Gordon.. var_dump();....
LOLLL
 
1:02 PM
and how do you make sure your code still works when you made changes to it?
 
@Gordon Did you use Hashicorp's Vault?
 
@Fabor once. I left the rest to our devops
 
It seems pretty cool
 
yeah
 
@Gordon.. gambling.. I read about unitTest.. but I never saw a real test.. in a real project.. and how I need to do... to switch prod.. etc..
 
1:04 PM
Hi there!
anybody up for solving a php + html problem?
 
@Jean-philippeEmond you should really try it. it gives you lots of confidence when changing your code and it saves quite a lot of time over manually testing whether your app still works. also, it will make you find bugs early.
 
I know I should use it but...
@Gordon, should I configure that in wordpress?
 
Anonymous
@WosleyAlarico ask
 
@Jean-philippeEmond i'd try to use it without wordpress first. to get familiar with the whole idea
 
@samayo. I have a footer.php file that must called in all my html files. How can I do that without having to change the extension of the files?
 
1:08 PM
I've never used phpunit with wordpress. I assume it will be difficult
@WosleyAlarico you can tell your webserver that it should handle html files as php file
 
@Gordon ok
 
@Gordon.How shall I implement that?
 
Where's the unit in WordPress to be tested anyways? @Gordon
 
in the plugin Dejan..
 
@DejanMarjanovic true, but I think you can write unit-testable plugins.
 
1:12 PM
I build many plugin for wordpress
but yes.. If I can make something to avoid using "var_dump".. ^^
 
@WosleyAlarico what webserver do you use?
 
@Jean-philippeEmond install xdebug on your dev machine, step trough the code with PHP Storm?
 
yeah.. another option.. the only help I have its StackOverflow ^^ in my job.. I don't have any dev except me. So.. nobody can give me a trick ^^
 
@Jean-philippeEmond where are you located? you could find a usergroup in your vicinity or go to some conferences.
ah, sherbrooke
 
1:26 PM
When you see it...
 
Must be a very strong token
 
@jhmckimm I too, return strongs.
 
@Gordon.. which version is better for UnitTest? like.. in Python.. some people like python 2.7 rather than 3.5
 
Anonymous
@Okabe You're the worst.
 
It wasn't even intentional. A friend pointed it out after I sent him the code for review.
 
1:28 PM
\o/
The mad-scientist enters!
 
@JayIsTooCommon no, jokes about german sausages are
@Jean-philippeEmond the latest
 
@Gordon /s/worst/wurst
 
Anonymous
@Gordon ;)
 
Anonymous
!!dad
 
"Ill call you later." Don't call me later, call me Dad
 
1:29 PM
 
:P
 
@Jean-philippeEmond there doesnt seem to be a ug in your vicinity: php.ug - consider founding one.
 
Mext Event
Could not retrieve an event.

yeah I could. 1 at montreal.
 
@Jean-philippeEmond maybe check meetup.com too
there is also the true north conf once a year (?), but I think that's about 9 hours from you
 
!!giphy
 
1:36 PM
@Gordon.. I know we have a year conf. here (2hours).. but it for SEO conf.
in phpUnit.. Can I emulate database insertion? like.. removed after?
should I remove manually?
 
1:51 PM
@Jean-philippeEmond you can test database code with phpunit. but its not pretty, if you are just starting out, I'd suggest to go with easier code than that
 
ok its just a question :P
 
Jay
yo yo
why can't I do a search on a query like this: CONCAT(first_name, " ", last_name) AS customer_name
It will not like me use the customer_name in the where clause
 
@Gordon Wanted, but I quit the job in time :D
 
2:01 PM
evenin roomies
 
Jay
yo
 
Two satellites decided to get married The wedding wasn't much, but the reception was incredible
 
Jay
anyone know?
 
@AnmolRaghuvanshiVersion2.0 UGT
 
2:06 PM
^^ yeah Gordon just for change
 
Jay
is it possible guyd?
 
@Gordon "evening" applies to UGT too!
 
@Jay... what is your really search line.. your first_name is a variable? a column sql? a constant?
hm
 
2:36 PM
mornings
 
Any Wordpress Ninja here?
 
yea lots of secret wp ninjas in here, but they wont admit it
Think you could try wordpress.stackexchange instead.. else just ask your question if anybody knows they will probably answer
 
2:58 PM
@RonniSkansing oh, really? :-D
 
Well, answering would unninjafy one.
 
well we can always recommend uninstalling wordpress.org/plugins/uninstall/stats
 

« first day (2110 days earlier)      last day (2831 days later) »