« first day (2859 days earlier)      last day (2105 days later) » 

1:34 AM
how often should an Ajax request be implemented ? what are the down sides to having too many ?
@Tiffany am tempted to use a php goto instead !
 
2:04 AM
i really want to know if at any point it becomes a problem? and is a restructuring the only solution? as reorganizing a code where you where not in the original dev team is....
 
 
2 hours later…
3:53 AM
Night
 
4:27 AM
mornin
 
4:55 AM
hii
Hi all
I am using Ci .... and i am trying to get rid from index.php file. But i can't , its working in both cases
like with index.php or without index.php
 
5:14 AM
posted on August 14, 2018

New Cyanide and Happiness Comic

 
 
2 hours later…
7:27 AM
morns
 
7:44 AM
Good morning.
 
mornings! o/
 
moin
 
@Ocramius Just read this, is there any work being done to change this?to improve zend-db?
I have some projects that are using it, I haven't had any problem specific to this yet with any of those.
 
8:00 AM
riant laughing; smiling; cheerful.
 
@Ocramius And also I believe that Gary Hockin raises some good points, especially with it being a good/easy choice for small projects.
 
@mega6382 I read it as well and am somewhat unhappy about the conclusion to use Doctrine with CQRS because this will add a whole new level of complexity. What I read is essentially: Zend_DB sucks but Doctrine sucks, too unless you go CQRS. That cannot be the solution. /cc @Ocramius
 
Yes, I agree, and that makes sense.
 
Morginsins
 
yo @PeeHaa
 
8:12 AM
@BobbyAxe ? Have fun with your spaghetti then I guess
 
@PeeHaa do you niksen?
 
As in the fake verb? :P
 
I learned this is a thing in dutch
 
there is a function naming method like this: sendActivationCodeTo($user){ .. }. It will be read with along the $user parameter and then it has a understandable meaning (send activation code to user)
What about when that function accepts another parameter? like sendActivationCodeTo($user, $anotherParam){ .. }
It sounds meaningless. in that cause I have to remove the To word which is at the end of function name?
 
@Shafizadeh I dont like having method names like this. I prefer either sendActivationCodeToUser(User $user) or just sendActivitation(User $recipient). In any case, typehints ftw
 
8:20 AM
got it .. thx
 
@Gordon :)
 
@NikiC any input on bugs.php.net/bug.php?id=76599 ?
 
Guys, does Doctrine's persist() hold the entities in memory? Because transactions won't work if I'm trying to persist 40k objects that must either be persisted together, or not at all, because of multiple flushes...
 
8:36 AM
@Jimbo if you got 40k objects you shouldn't be using Doctrine.
Last time I used Doctrine I messed with around 500 to 1000 objects and I was told by Doctrine developers that I am using it wrong if I have so many objects.
but @Ocramius might have more insights into that
 
8:58 AM
He's gonna tell me not to use it :D
It's like asking Joe whether or not to use pthreads
Most of the time NO YOU DONT NEED IT
 
9:15 AM
hii
 
Wes
 
there is replacement of is_null function with ===null .. then what is the replacement of empty() and isset()
 
Why would there be "replacements"?
 
I want to avoid function call for performance
 
That does not answer the question
Also it's a language construct and not a function
 
9:22 AM
Also, what are you doing that this would affect performance in a significant way?
 
Here I mean is that we can have same functionality/checking values using ===null rather than using is_null() (which is php's inbuilt function to check null value). So what can be used in replacement of empty() and isset()
 
Nothing
Why would you?
is_null is to complement the other function to check for types
Also
 
YAGNI
 
1 min ago, by Gordon
Also, what are you doing that this would affect performance in a significant way?
 
2
A: Alternative to isset(user_input) in php

decezeThe equivalent of isset($var) for a function return value is func() === null. isset basically does a !== null comparison, without throwing an error if the tested variable does not exist. This is a non-issue for function return values, since a) functions must exist (or PHP will exit with a fatal ...

 
9:24 AM
...
 
stop obfuscating your code :D
 
With extra errors on top of that
For no gain whatsoever
But you won't answer the questions so I am just going to continue with my work :p
 
now that's a lie. we all know you just go back to niksen.
 
I am actually working today :)
Gonna niks soon again though
 
Comparisons of $x with PHP functions here it is mentioned that isset() is opposite of is_null()
 
9:29 AM
it's very simple. You use isset to check if a variable is set. you use === null to check if a var value is null and you use empty to check if a var value is empty as per the definition of empty. there is nothing arcane or magical or special or whatever about it.
and unless you are doing millions of is_null checks, there shouldnt be a meaningful performance impact between is_null and === null
 
Yes, In my application atleast 0.3 millions of users hit the request at a time.so optimization is the utmost priority
 
No it is not
Or at least not fake optimization
 
@Exception did you actually profile that?
 
profile?
what is the process?
 
lol
 
9:39 AM
I mean how can I check that?
 
You know actually finding out what is a possible bottleneck
Instead of making random changes making your code unreadable and/or just plain wrong
 
Wes
\o
 
As per my reading, avoiding unnecessary function calls will improve performance.So I used ===null instead of is_null() which is legal
 
No it's bullshit
 
tell me more about this.
 
9:41 AM
You reading bullshit articles about how single quotes are faster than double quotes
 
Instead of actually finding out what (if anything) is slow
@Wes hola wesminster
I have something for you
 
Wes
btw someone just crashed a car into westminster
looks like nobody was hurt tho
ah no 7:30 am local time
just woke up so i know nothing
 
@Exception "so optimization is the utmost priority" You totally misspelled "finding what causes bottlenecks"
6
A common typo, the keys are like right next to each other.
 
@Gordon thanks.. reading it.
 
9:44 AM
@Danack I miss bash.org
 
@Danack haha may be
 
@Tiffany bash.org/?5300 nsfw - it lives.
 
I know, but it was way more popular in early '00s
 
@Exception yes, avoiding unnecessary function calls will improve performance. But that's a blanket statement. It will get even faster if you remove ALL the code. There is no point in exchanging an is_null for === null if the total time saved makes 100 nanoseconds difference while your exit calls, like db calls or http are what's really causing slowness
 
@Tiffany oh - I meant it was down for at leas a few weeks.
@Exception I'm not going to get stuck into optimising stuff unless I'm charging you per hour, but I would strongly recommend looking at how many file hits your system has per user request. Getting that to zero is going to be worth optimising about 100000 function calls to nothing.
 
9:46 AM
I remember reading it when I was like 14-15, lol
@Danack what is your going rate? for... reasons...
 
@Gordon thanks mate.. few days back I read this article and Wandered
147
A: is_null($x) vs $x === null in PHP

NikiCThere is absolutely no difference in functionality between is_null and === null. The only difference is that is_null is a function and thus is marginally slower (function call overhead) can be used as a callback, e.g. array_map('is_null', $array). Personally, I use null === whenever I can, a...

@Danack haha
 
@Exception As a rule of thumb: if @NikiC wrote it, it's true.
 
haha then +1 for @NikiC
 
@Wes We didn't know you were also in Turkey imgur.com/a/UmFdQfr
 
Wes
lol
but i am a nice panda
 
9:51 AM
@PeeHaa fucktastic?
 
man I must start following @NikiC and you @Gordon ;)
 
I remember when @Wes used to be a husky
 
Wes
:B
 
@Wes red panda
 
Wes
what's that? are you drinking?
 
9:54 AM
Was last week or something
Think previous weekend
 
Wes
i don't like SPAs
i want to change my avatar now... i think i'm gonna go with a raccoon
 
Same
The entire idea is stupid
 
10:28 AM
mine is soon going to be relevant again...
 
@Wes I want a spa day sometime...
Before I knew what SPA stood for, trying to Google it was sort of a pain in the ass. I'd keep getting results for local spas because I have been to a couple.
Maybe I'll give myself a spa day for Xmas...
 
if you got the choice, pick those
 
Wes
ahaha :D
 
They're so relaxing
 
@Wes I thought, people would be over those by now.
 
10:34 AM
It's only gotten much much worse
 
oooh, I can do a massage and a facial for ~195 USD. (facial = double cleansing, exfoliation, masque, and moisturizer)
 
@Tiffany I don't like facial, I always get pimples afterwards
6
 
@mega6382 tell the person who's doing it that. They should have a non-oily moisturizer.
 
Let me take that out of context right there :D
 
haha
 
10:41 AM
lol
 
the lady who I normally get that stuff done with, I've told her beforehand that my face is prone to acne, and she'll adjust the treatment for it
 
Wes
lol
 
!!blame @PeeHaa
 
hi guys
 
10:48 AM
@Gordon @Exception That answer is somewhat outdated as of PHP 7.something, where \is_null() (fully qualified or in global namespace or explicitly imported) compiled to a TYPE_CHECK opcode. I think it will be faster than === null because of that
 
Wes
why isn't === null compiled to type_check opcode? :B
 
random question: a webpage in my code base loads really fucking slow, and I know that this page interacts heavily with the database. It's in the administrative side of the CMS, so it doesn't affect visitors, only "global administrators," and takes around 20-30 seconds for it to load for me. Would putting the database on a separate VM (but would still be hosted in the same server cluster) improve performance at all?
 
Did you run explain on the queries being run?
 
I have not, is that where I should start?
 
Ooo, that SQL antipattern book arrived tday
 
10:58 AM
it pulls data from two of the bigger tables in the database. I'm not sure if it does a SELECT * (without restrictions) on them or not
@Sean nice
 
@Tiffany Yeah somewhere around there.Find out the slowest queries and analyze them
If they are shitty unindexed queries that's a much easier win than migrating the whole server
 
11:13 AM
Alright, I'll try that out today, thanks
 
Wes
bridge collapsed in italy, over a city
it seems the buildings were not damaged
 
wtf. why did it collapse?
I mean, apart from obvious lack of german engineering
 
Wes
wind, rain, no maintenance
mostly no maintenance... but mostly corrupted assholes
 
@NikiC my main point was that he should be listening to you. on a side note: did you get my email?
 
Wes
11:28 AM
10 cars hit by the bridge :(
 
@Wes :( that blows
But all of that other crap you listed out is "more important" than maintenance and upkeep...
 
Damn, that's awful
 
11:54 AM
hey mates
quick question, I am trying to link to some url, including the current parameters I have in my url like ?countries=germany,france
When I try this: url("/people/search/customer", array_merge(request()->all()))
My url becomes this: /people/search/customer/Germany/France
instead of /people/search/customer/?countries=germany,france
 
@Narendrajadon r u7 there
 
12:07 PM
Hi Everyone,
I am new to server side.
Right now I am developing an android application. For that I need to do ssl pinning. I know the steps for doing ssl pinning but problem is to get the right certificates. So how to get the certificates?
 
Good morning
It's going to be a riant kind of day.
 
12:23 PM
@Wes man, that's sad :(
Any casualties?
 
While you are still there (at null) I don't like this
true == NULL >= 0
I would like to consider null less than (even) zero.
 
Wes
who would write that monstrosity
@mega6382 more than 10 less than 20 they say
 
@Tpojka You are not comparing null with zero there
 
Guys, do you know when exactly should we use Event Listeners? For example for sending a welcoming email after registration. I can simple make a method in the registration class do send that email, why usually people make an Event for that?
 
null >= 0
is true, isn't it?
 
12:26 PM
@Tpojka That's just because you do comparisons wrong
 
Yes
If you do loose comparisons you deserve everything and worse
 
That is what I am telling, without checking I would tell null is less than zero. Even in loose. But I agree with your last sentence.
 
null is not less than zero
It's null
 
12:30 PM
@mega6382 thanks.
 
I posted this, to say that NULL is not greater than 0 but is equal to it when loosely compared. :)
 
I found it here http://sg2.php.net/manual/en/types.comparisons.php#77093
I always use strict comparison methods but just wouldn't expect null that way. For me null is null. Negative void, black hole. :)
 
There is little php won't allow you to compare
 
@PeeHaa Yeah, and loose comparison is a bad idea.
 
I was unclear maybe. I would just like this is true
null < 0
and my internal logic would be satisfied.
 
12:34 PM
@mega6382 yes obviously :)
@Tpojka Yes but your internal logic is flawed :P
 
That is case here. I am aware.
:P
 
There is no reason for null to be < 0
 
Well, < (less than) could be read strictly.
 
No
By definition null doesn't represent any value
 
12:37 PM
please tell me i am stuck on this. How can i call this function in model. public function param($_P){} in controller constructor?
i f try this it gives error $this->view->param = $this->ShowdataModel->param($p);
 
You are stuck on that
yw
 
@PeeHaa And by my internal logic something without value should be less than something that has very good chance to be an integer or even bool. But I stick with language rules, it's better choice.
 
Notice: Undefined variable: p
 
@Vinay compare it to null.
 
@Tpojka No. Why would something without a value be smaller that some value?
 
12:40 PM
By definition of valuable entity?
 
What is said definition?
 
@PeeHaa lol
 
@Tpojka param function returns array that i want to use in view
 
@PeeHaa by definition of term value itself Logic says so.
 
That sentence makes no sense whatsoever to me :P
 
12:46 PM
@Wes You alive?
 
Wes
?
 
Wes
yeah scroll up
 
Was afraid for you ❤️
 
Wes
<3
 
12:47 PM
Do they know what caused it yet?
 
Wes
poor maintenance for sure
 
You say null has no value. I agree.
I say (and you agree) that 0 has value wether int wether bool.

What I am saying that logic (science, not my internal logic :) ) sets up rules for term definitions. And by them I'd say something without value is always (not here in programing tho) less than something with value. Thats's whole my case.
@PeeHaa
 
@Tpojka Where in science is that defined?
Also what "science"?
 
Whole part of logic (logic as part of philosophy) is about term definition and it is like more than 20 years when I leant it.
 
@Tpojka null has a value, it's null.
In most languages, null is either a dummy pointer/reference, or its own type, with one value: null.
It's a value that's specifically defined to mean "no value"
 
12:53 PM
 
@MadaraUchiha I have no much other options than use it how it is already considered. My standing is still that (false == null <= 0) should be true.
 
MOrning
 
@salathe :P
@mega6382 lol
@Tpojka Do you have a link to the scientific paper? :P
 
Nope. What ever you find for reading it will be good. And always stick with Law of excluded middle. ;)
 
1:05 PM
@Tpojka Math is kind of a science right?
> In mathematics, the word null (from German: null meaning "zero", which is from Latin: nullus meaning "none") means of or related to having zero members in a set or a value of zero
 
Sometimes the symbol ∅ is used to distinguish "null" from 0...

In example: Come over and take an action to confirm or excuse your arrival next Friday.

1 who will come, 0 who won't and ∅ for those who don't come to say 1 or 0.
isn't it?
 
Is it allowed to post link to a question here?
 
1:20 PM
Yes
 
@Tpojka My standing is that == should always throw.
And that <= when either operand is not a number of any kind, should always throw.
Maybe allow strings and chars to be compared too, with strcmp or something
I'm on the fence on that.
But null <= 0 should say false or throw.
So should null >= 0 or null < 0 or null > 0 for that matter.
 
This is good. And would probably break 60% websites. :D
null < 0 should be true though. Don't take 1 hour of discussion from me. lol
Actually I was intending to ask @NikiC why fully qualified \is_null() is faster? Does it mean that any native function prefixed with backslash would be faster?
 
@Tpojka Yes if you are in not in a namespace
But don't be one of those people giving the other developers eyecancer because it's somewhat faster
 
Ah. Never thought it.
So basically in any OOP functions are slower.
No, I am not for micro-optimization unless it is for several data centres that uses megawatts of power.
 
@Tpojka namespaces, not OOP
 
1:33 PM
Ok, ok. Getting.
Anytime autoload in composer is used.
 
wat
Is that composer as in the philosophical way? :P
 
In custom namespaces which are introduced through psr1 and psr4 in projects usually.
Btw, like your location on profile. :P
 
@Tpojka PSR1/4 did not invent namespaces no
 
Ok. Anytime when I have namespace at beginning of file. I'll give you that.
:D
 
Or in the middle of a file use block notation :)
Sorry will stahp being pedantic noaw :)
 
1:38 PM
Hahahah.
All good. :D
 
Having problems playing videos through xsendfile on chrome.
502 Proxy Error
Request Headers:
If-Range: "2c74e000-573309476ee80"
Range: bytes=745856819-745857023
Seems to be problem with the If-Range
 
@Wes That is so sad. Life can be over just like that. You usually look to avoid death from expected possibilities such as car accidents, heart disease, cancer... not a bridge falling on you.
Maybe avoid is the wrong word; reduce risk.
 
1:54 PM
Any help appreciated.
 
ay can't enable extension in lampp using debian
any idea?
 
bob
Hi, Hope everyone is well. I've been on the same problem for about 3 weeks now and still not found a solution. I'm building a Laravel project and It will not connect to the database. I'll reinstalled mysql twice, I've tried changing the privileges of the user, I've tried creating a new user, I've tried changing the credentials in the .env and the config/database.php and every single time I get the same message. Access denied for user thank you for your time
 
check .htaccess ?
 
@bob you never specified if you changed the privileges for the user at the IP address level
 
bob
@Tiffany I didn't specify anything, I was giving a general overview of what I've tried.
 
1:58 PM
nevermind
 
@bob I guess the problem lies within the first 5 words of your problem description (:
 

« first day (2859 days earlier)      last day (2105 days later) »