« first day (2145 days earlier)      last day (2788 days later) » 

12:00 AM
the array itself is passed by-val to cuf() but the array values are each separate references
 
Then why does it break? This is so weird.
 
@Sherif no idea, it should work.
 
I think I just confused myself then. Because that's what I thought at first and then somehow I went down a rabbit hole here with PHP 7.
@bwoebi thanks
 
no problem :-)
 
 
2 hours later…
2:18 AM
hello
anyone any idea in codeigniter?
i have question regarding in this link stackoverflow.com/questions/39217707/…
 
 
1 hour later…
3:26 AM
@bwoebi CallableFromMethod seems like it could be named better… maybe CallableMaker or CallableFactory
 
4:10 AM
 
4:20 AM
is there some criteria which has to be full filled for good programming language?
 
@Linus It should work.
 
@Sherif ;p i am serious
 
@Linus It should work well.
Honestly, I don't understand the question. Good is a relative term. So what are you relating to?
 
you say hate scala and other functional PL why?
 
I say I hate all programming languages, but I'm pretty sure that's irrelevant to your question.
 
4:29 AM
you all are internal developers and while contributing to php there is voting system for new feature to be added some vote against and some in favour
on what basis this done how you all decide that this feature will be good for php or not?
 
Well, that depends. Not every RFC is necessarily a language feature. But if you're specifically talking about language features my primary reasoning is based on added utility and performance factors primarily.
 
@Linus It's just a wheel. The spokes on the wheel go round and round, but they almost never change.
 
morning
 
morning indeed
I must have forgotten to sleep like a mortal again.
 
4:39 AM
thanks @Sherif :) will come with more questions gn
 
@Linus I wasn't really sure what's the driver for the first question. Are you asking how to rank programming languages?
 
@Sherif not exactly but about language design
what are features of good programming language ?
 
I have seen comparison about language characteristics: imperative/declarative/etc. but none about language design, IMHO it could be quite interesting to compare language designs
 
Morning.
 
@Linus Again, good is a relative term. I like to think of it in terms of useful vs safe instead. For example, C++ is a very useful language, because it allows you to do a lot of low-level crazy stuff, but that also makes it unsafe. Whereas, a language like Haskell, is very safe and side effect free, but isn't very useful in practice because of these safeties it employs.
Trying to look at it in terms of which language has the best features or what features make up the best language is an exercise in futility.
 
4:51 AM
Ah what bliss, pman for reading php man pages, sad isn't it; when ones life pleasures amount to easy access to a language's doc ... from an ancient text editor.
:) oh well, so be it ...
 
hello all,can any one tell me what are the softwares i need to install
i am beginner
in php
 
@Sherif ok thanks,maybe i am more unclear sorry for that :)
 
@FélixGagnon-Grenier I am fairly sure, it is not a joke
 
@AdityaVyas-Lakhan Hello, what os are you using?
 
mornin tereško
 
4:54 AM
i have windows 7 64bit
@iain
 
@AdityaVyas-Lakhan first you will need to install Steam client
 
whats that sir
right now i am following this things w3schools.com/php/php_install.asp
 
There are a few apps that you will need ...
 
ok can you tell me
 
Do you understand that php when running on a server is using another program to function?
 
4:57 AM
i am just beginner
its first day for me
sir
 
you need this concept. php does nothing without its operating environment. It is a script that needs to be read to be processed.
So first you need that environment.
 
To do that you have two options. either store your files on a server that already has that environment, or secondly, recreate that environment on your local macine; we will do the latter.
 
Is it possible to sum all the values of a column in sql ?
 
5:01 AM
You are lucky that this is very easy today, all you need to fo is install wamp tis will simulate the correct environment for you.
 
@AdityaVyas-Lakhan Wamp install a kind of virtual machine that will run apache server on your windows machine.
http://www.wampserver.com/en/
 
@Linus Maybe this might make it a little clearer imgur.com/ryNrxez
 
where's php :P
 
thanks @iain
 
5:04 AM
Granted, that's fairly arbitrary and based on no scientific evidence whatsoever, but I figure that might demonstrate the point more clearly.
 
posted on August 30, 2016

New Cyanide and Happiness Comic

 
after installing wampp which other softwares i need to install @iain
 
@tereško Thank you
http://www.w3schools.com/sql/sql_func_sum.asp
 
@Linus Sorry, I didn't include the negative axis.
 
The best to start with in my opinion, is notepad ...
 
5:05 AM
@AbrarAhmed please stop using w3schools for ANYTHING. That site is filled with bad information.
 
ok
thanks for your time
let me start that way
 
And you need to understand that the files MUST be in a folder that is being scanned by the wamp server.
 
The apache server will read your php and turn it into html. You do know what html is I presume?
 
yeah i have bit idea about html
 
5:07 AM
@iain that's bullshit
 
@Sherif ah no problem that some how helped
 
:) it is a starting point.
 
no, telling some that apache turns php code into html is idiotic
 
Please feel free to interject, I will readily admit to the level of my ignorance ...
 
also, telling someone to use notepad is also idiotic
 
5:08 AM
@tereško Be nice man. We weren't all born knowing everything.
 
I didn't tell any one to use notepad, I said that in my opinion it was a good place to start.
You are right though, I actually meant notepad++.
 
@Sherif @tereško should i use dreamweaver?
 
why?
 
@AdityaVyas-Lakhan Have fun with it, I am a beginner myself :), I gather from you name that you are Indian, Love your culture and its traditions :).
 
i heard that it is good tool
 
5:12 AM
then you have been lied to
 
@iain glad to hear that sir
@tereško sir can you suggest any other tool
 
me too from India :)
 
Have a nice day all, I am going to be late if I dont run ...
namaste ...
 
@AdityaVyas-Lakhan Sublime Text sublimetext.com/3, Atom atom.io, Notepad++ notepad-plus-plus.org
 
@ashith bazinga
@tereško thanks sir
 
5:13 AM
hehe
 
@AdityaVyas-Lakhan I wouldn't. If you want to pay for a good IDE for PHP I'd suggest phpstorm. If you want a free IDE for Windows I'd suggest VS Code.
 
also, please for fuck sake, stop with the "sir"
I know you have been told that it's the way to be polite, but that's a lie
 
@tereško Why are you always so agitated all the time? Even by things that normally shouldn't agitate people.
 
hell ... it sounds like you are mocking people
 
5:16 AM
They're clearly just trying to be polite. Nothing wrong with that.
@AdityaVyas-Lakhan don't let @tereško get to you. You be who you are and focus on taking the good that people have to offer and leave the bad.
Sometimes certain people just want to take the good away with the bad. Always a bad idea.
 
@Sherif yeah its ok :)
 
He just state his ideas and thought in different way
 
lets enjoy coding
 
:)
 
Ekn
mornin
 
5:24 AM
mornin Ekn
 
6:04 AM
@PeeHaa The whole repin thing has always been unreliable for some reason :-/
moin
 
Wes
\o
 
@DaveRandom I have that same bra!
I mean...
/me twiddles thumbs
 
hello
 
That thing was so uncomfortable. Crocheted wool. I mean really.
 
6:12 AM
i have a question about codeigniter
 
@user3793272 The answer is always "stop using codeigniter".
Sorry.
 
it's true
 
After 476,198 CI questions, the data doesn't lie.
All answers point to stop.
 
although that said, often "i have a question about codeigniter" is followed by a question that has nothing to do with CI so...
 
It's one of those anomalies like all wikipedia articles are somehow linked back to philosophy
 
6:15 AM
not even the article about philosophy
they are actually linked via some kind of meta-physical teather
I believe it's turquoise
/me goes to work
 
@DaveRandom This is also true. 99.999% of all questions that start with "I have a question about framework X" often have nothing to do with framework X. This data is 100% accurately derived from 99.9999% accurate statistical models that are correct 50% of the time.
...so you know that information has gotta be solid
 
@Sherif Of course, there's a 5% error margin in any data set like that
 
so i cant ask about codeigniter?
 
@DaveRandom The margin of error is actually closer to 0.5% with a 10% margin of error
Although that margin may have a margin of error. Not sure.
 
good morning
 
6:19 AM
@user3793272 yes, you can, but you may not get a sensible answer. You might though so... worth I punt I guess...
/me actually goes to work
ttyl
 
@Epodax prove it!
 
@Sherif Okay, I'm not dead yet, therefor it's a good morning
 
All evidence points to the contrary. My coffee is stale, my inbox still has ~1K unread emails, and my tests are still failing.
@Epodax Oh, you mean good for you.
OK.
Be more specific next time :p
 
@Sherif Brew a new cup of coffee, Do a CTRL + A and press delete
No idea how to solve the last one
 
Well, I could just turn off the jenkins box. That might fix it.
Outta sight outta mind.
Works for all those other brogrammers. Why not me?
 
6:23 AM
Well there you go! now you're also having a good morning
 
lies!
bold dirty lies I tell ya!
Sorry, I've been up all night. This is still Monday for me.
 
Well there's your issue
 
This is what happens when someone says we must launch on Tuesday and some idiot decides to add two new untested classes on Monday evening. You get me being very groggy after pulling an all nighter to get back to 100% test coverage before launch.
 
well i have done a chat application were i saved it in db
 
o/ Morning
 
6:47 AM
for small values of "it"
 
what is the difference of == and ===
 
@user3793272 One is strict type comparison the other is not
Now to find out which is which you'll have to google it.
 
@user3793272 is that the codeigniter question you needed to ask?
37 mins ago, by DaveRandom
although that said, often "i have a question about codeigniter" is followed by a question that has nothing to do with CI so...
 
!!docs ===
 
Comparison operators allow you to compare two values.
 
6:58 AM
all the information you need is right there
oh
no it isn't :-P
 
!!canon operators
 
2571
Q: Reference - What do <various symbols> mean in PHP?

GordonWhat is this? This is a collection of questions that come up every now and then about syntax in PHP. This is also a Community Wiki, so everyone is invited to participate in maintaining this list. Why is this? It used to be hard to find questions about operators and other syntax tokens.¹ The m...

 
Wes
@DaveRandom that was pretty much the first link i clicked this morning except a fast look at the news
i have mixed sensations about it
 
@user3793272 see question above and bookmark for reference
 
@tereško nope
 
7:00 AM
@Wes what, this?
 
Wes
yes that
 
good good
 
Wes
not sure about that
 
@LeviMorrison not a bug
 
7:09 AM
4 messages moved to bin
 
@gord
@Gordon @Epodax thank you
 
!!dad
 
Why did the scarecrow win an award? Because he was outstanding in his field
 
meurning
 
7:34 AM
hey guys what to do when casting int to float.. It gives unexpected some time
(int) round(123456789.22 * 100) output -539222966
 
why are you using a 32-bit PHP?
!!> echo (int) round(123456789.22 * 100)
 
@DaveRandom I've 32 bit system what could I do else?
 
OK well you should read about floating point rounding errors to understand why something like that would happen... although that result does look pretty odd, what OS/CPU are you using?
 
either upgrade to 64bit or use ext/GMP
 
7:40 AM
If looks like the result of a C cast from double to int, which is not what PHP does
or maybe it does and I forgot
 
@LeviMorrison Not sure if you're still looking for examples, but here's a few more I've come across
 
@DaveRandom thanks, I threw up in my mouth a bit
 
yw :-D
@LeviMorrison $collection->select(^$o => $o->prop); $collection->where(^$o => $o->isActive); - tbh just look at linq examples and rewrite them in PHP. I do stuff like both of those ^ all the time
 
because what we really need is another query builder
 
7:57 AM
linq is great, it's roughly 1trn times more useful than SQL query builders
well, it's great when you have the use case (as I do) of having a buttload of cached, rarely changing entities in memory
 
8:23 AM
\o
 
Ekn
o/
 
o/ \o\o\o\o
 
@Trowski You can give it a fancier name, but will that name be more descriptive too?
 
9:12 AM
 
Moorgreen
 
@BasheerAhmed spend £25 and get a 64 bit system
 
Question: is there a "standarized" method available for string translations with context support? Seems the gettext implementation does not support pgettext which would usually do that.
 
@LeviMorrison return array_map(^$ad => $ad->getId(), $result->unwrap()); if we really end up with _ being reserved it could be even simpler (like in scala) return array_map(_->getId(), $result->unwrap());
 
9:31 AM
@DaveRandom linq style is nice, as long as you have relatively small sets of data
But I'm not going to apply a callback to each of the 900k entries in the dataset (for example)
 
10:02 AM
Does anyone actually understand namespace handling in SimpleXML?
 
@NikiC /cc @ThW might :-)
 
10:18 AM
I see here a lot of use of arrow functions, with ^ and !, where does it comes from? I seem to not be able to find anything about that
 
hey everyone...could someone give me a tip here?. i have this on my .php file: echo "{\"parceiros\":" .json_encode($haParceiros). "}";
i want to access this on my success ajax function...i´m trying this: console.log("dois:"+data[0].parceiros); but it´s saying undefinied
what am i missing here?
 
Why don't you just do... json_encode(["parceiros" => $haParceiros]); ?
You don't need to manually interpolate brackets
 
humm ok thanks...but, on the client side, is my code ok?
 
@dievardump it's an in discussion RFC
 
@Jimbo ?
 
10:24 AM
@Japa Have you tried debugging it? As in... see what's in data?
 
console.log(data) <- what does that dump?
 
@Japa For starters:
echo json_encode(["parceiros" => $haPerceiros]);
 
i have been trying a lot of this, but yes, i have done that..but let me try your suggestion
 
Don't build strings on your own if you can help it.
Second, as Saitama said, console.log(data) on the client side will tell you what your data actually looks like.
 
ok..got it!. sometimes i complicate a lot and in the end it´s simplier than i thought...
 
10:30 AM
@Saitama I guess it is the one in discussion : wiki.php.net/rfc/arrow_functions ? I see several "arrow function / short_closure" rfc propositions closed
 
yep that's the one
 
when i do the console.log(data), this is what appears: {"parceiros:"2}
 
Thanks
 
=)
@Japa ah got it. which webserver are you using? apache?
 
so...is it correct to say this: console.log(data[0].parceiros)? ... i´m just trying to understand the process...
 
10:34 AM
are you sure that the result is {"parceiros:"2} and not {"parceiros":2} ?
 
anyways... just put a header("Content-Type: application/json"); at the top of your php file you are using...
 
@dievardump you are right...it´s the second one
 
i installed xmpp and start apache
but it is not staring
 
@AdityaVyas-Lakhan nuke skype
and then start apache
:)
 
10:35 AM
@Saitama sorry i am beginner
 
@AdityaVyas-Lakhan go to task manager and kill the skype process... that should solve the issue
 
wow that works
thanks
 
yw :)
 
@Saitama thanks
 
the error message is self-explanatory as-is
 
10:37 AM
yeah
 
=)
 
@dievardump with that difference, why is it wrong to do this: console.log(data[0].parceiros)?
 
@Japa The difference is that the first one was not valid JSON. Do what Saitama told you by adding headers declaring the content type of your content. Also the data will be an object, not an array, so you have to access parceiros like that : data.parceiros without [0]
 
@dievardump thanks you ...
 
10:59 AM
@dievardump i forgot something...
the answer of my data is this: {"parceiros":2}{"multicast_id":7290382531538498365,"success":1,"failure":0,"cano‌​nical_ids":0,"results":[{"message_id":"0:1472554612537808%d7f777def9fd7ecd"}]}
i have put the headers as saitama said
and do this: data.parceiros ...but now my console.log doesn´t show anything
i mean this: console.log(data.parceiros)
 
@bwoebi sure, in much the same way as you don't do a full table scan on that many rows, you have indexes. But in any case, the considerations are a little different in a desktop app - I don't mind burning CPU cycles and a few milliseconds for the sake of simple code there, I wouldn't do that on a server though
@NikiC vaguely. Are you actually trying to do something or just lamenting the stupid API?
 
@DaveRandom … I really appreciate fans not being heard…
If it's one program taking 10ms of 1 second in CPU time… fine… if it's each thread of a program doing that and half of the other open apps too… ugh.
 
The particular case I'm thinking of is something that iterates ~10K objects once every 5 mins or so - the vast majority of the time I make cleverer code, but in this case the cleverer code is just not worth the time expenditure to write
 
ah then, sure
 
which framework provide fast development life cycle?
 
11:17 AM
@DaveRandom I'm wondering if I just fixed a bug or broke a "feature"
In particular I'm wondering how a write to children('ns')->foo is supposed to work in case neither foo nor ns:foo exist
I would expect that to create ns:foo, but right now it seems to inherit the namespace from ... somewhere
 
Horree srit - I'm in a meeting and someone who claims to know about PHP doesn't know what composer is.
 
11:32 AM
> ezXML is a C library for parsing XML documents inspired by simpleXML for PHP.
 
fuck, it's spreading.. it's zikaXML now
 
:P
 
@km8295 Rails
 
any PHP framework... because i don't know Ruby for rails framework
 
hi
 
11:42 AM
hi @nyamsprod
 
I have a question why is SplFileObject not an acceptable argument for stream_get_meta_data ? I believe currently there's no way to determine the mode when a function is given a SplFileObject and it sucks
 
stackoverflow.com/questions/37724860/… - author does not seem to understand what QA means
 
> I have a question why is SplFileObject not an acceptable argument for stream_get_meta_data ? I believe currently there's no way to determine the mode when a function is given a SplFileObject and it sucks
@nyamsprod bugs.php.net/bug.php?id=44392 is related right?
 
yes I think so
 
Anonymous
> 5 answers
 
11:49 AM
from 2008 :'(
 
Anonymous
Facepalm
 
@JayIsTooCommon actually there are only 3 answers
 
Anonymous
lol
 
I am feeling so sleepy, I think I am gonna sleep in the desk now.....fsegsssssssssssssssssssssss
 

« first day (2145 days earlier)      last day (2788 days later) »