« first day (1168 days earlier)      last day (3780 days later) » 

8:01 AM
Odd. I think I'll quit worrying about it for now and reconfigure a server to work.
 
@MikeBrant E_ALL in production environment tends to make REALLY BIG logs. Ofc it depends of the website. But most CMS are really notice & warnings verbose. — OlivierH Nov 12 at 19:32
 
@LeviMorrison probably a good idea ...
 
@LeviMorrison dunno if you saw this yet, mentioned it a few times ... github.com/krakjoe/ponion this could be interesting ... I'm still trying to squeeze support from the authors before I can finish complete implementation ...
 
I'm not familiar with onion at all.
What's the motivation for it over established servers?
 
8:10 AM
keep seeing it in trending list on github and thought I'd give it a look, pretty cool little library actually ...
 
ah well, we don't have any good thread safe servers right now ... apache is rubbish with the worker mpm, it doesn't make sense to use 50 fpm processes creating threads, there's no way to keep control of that ...
this is one process, thread safe php and is faster than non thread safe apache ...
 
@Jack @JoeWatkins I couldn't let my curiosity rest; but I have progress! When I launch under sudo it fails.
o.0
My guess is it's using a different PHP executable under root or something. I'm going to guess that I use the full path to PHP it will work.
 
ah you got /usr/local/bin/php and /usr/bin/php or something ?
 
ohh
 
8:13 AM
And it worked under root.
Hahahahahaha at some point I installed "5.7.0-dev" to /usr/local/bin/php
I'm not supposed to have any PHP executable loaded by default.
 
there ya go ...
 
I wonder what exactly I have to remove to completely remove it.
We don't offer make uninstall do we?
 
nope
 
Sucks.
 
it does actually
 
8:16 AM
> make: *** No rule to make target `uninstall'. Stop.
How sad :(
 
you don't want anything left of php in /usr/local ?
 
I guess I'll do make install and remove everything it tells me.
 
make ruby will probably uninstall php ;-)
 
@JoeWatkins Not quite; I put all my php installs into /usr/local/php/<version>.
I don't want it in system defaults at all.
 
oh bugger
yeah watch what make install does ...
 
8:17 AM
ah, that's what i have too, with /usr/local/php/current as a symlink ;-)
 
I keep them all well out of the way in /opt
 
In retrospect I should put it in opt, yeah
Funny how you said that as I was saying it ^^
 
0
A: Multi-threading in Symfony2

Joe WatkinsPHP does do multithreading, the documentation for pthreads can be found: http://php.net/pthreads Many examples of usage: https://github.com/krakjoe/pthreads/tree/master/examples It is not as simple as simple create a thread and allow it to execute in the background while you finish servicing th...

hmm ... I have a new follower on twitter ...
wonder what they want ...
 
they want your soul, probably.
 
8:22 AM
Phil wants me to do a talk for phptownhall about phpdbg ...
 
did he threaten you to do it?
 
I have a feeling I'll be terrible at that ...
 
like, do a talk or say no to your knee caps?
 
hehe, the talking bit ...
I don't relish the thought of loosing my knee caps either ... equally comfortable I'd say ...
 
Guess you just need a few good scenarios and work those out in detail.
People like stories, so go with that :)
 
@Leri Isn't it the other way around?
It seems that RStar copied from Akhil.
With attribution, though.
 
@Jack Yeah. wrong profile link.
 
well .. bottom line here is: @Leri, you failed
 
lol
 
@tereško Well, yes. :D
 
8:59 AM
Damn you jQuery, why do you do this? Now I'm trying to find a condition for which that would matter.
 
@Jack look 1 line above
 
@zerkms I did.
 
@Jack so, that's it
 
But why does it have to do that? It gets called in a loop.
What does the next value have to do with the current?
Or rather, what does the previous value have to do with the current.
 
9:11 AM
jquery is made of magic
 
Ohhh
 
@tereško huh? you've said it's armenian word..
 
I get it now ... stupid.
 
@Jack it's not about next/prev value
it's assigned on #162
oh I see, not I feel stupid
why do they do it?
 
@zerkms It is, because it may not get set due to boolean short circuit.
 
9:13 AM
that was obvious but I don't see the logic behind that
so it's not set
and it's falsy
 
If the previous value was an array, it would be true.
 
it's jquery .. stop hurting yourselves
 
But if the next is an object, it would still be true.
So they set it to false ... wow
 
why wouldn't they swap the conditions
then they don't need that flag reset
 
Probably because "benchmarks" say that more people want to merge objects rather than arrays.
Which .. kinda makes sense.
 
9:15 AM
@Jack I will make some more magic
look here:
var copyIsPlainObject
;-)
ta-dah?
 
Ehm.
 
? :-D
 
Too many variables.
 
You don't need copyIsArray then
you just assign jQuery.isPlainObject(copy) to some var and use it
that way you avoid that short circuit issue and flag reset
 
Yeah, that could work :)
 
9:21 AM
@Jack you have a chance to send your first (?) contribution there
 
Yeah :D There's some conditions at the beginning that could be turned into if elseif chain instead of separate conditions as well.
This gonna be epic contribution!! =p
 
@tereško stackoverflow.com/q/20797929/251311 - what do you think about testing code contracts?
From my perspective it looks like a weird idea
 
groupName != string.Empty ... rolls eyes
 
Hi, I doubt to writing my wiki. Can I say "4 templates were rendered" ? or I must to say "4 templates rendered" ?
 
@Subject What's the context?
 
9:28 AM
@Subject what is the context for that?
hehe
 
:)
 
@zerkms The function gives a list of template, call in a page.
 
I understand every word, and completely miss the meaning of the phrase overall
 
It's title of my example (table)
 
@Subject You have function that lists template paths that are rendered in loaded page. Have I rephrased it correct?
 
9:35 AM
@Leri yes, it correct
 
:-S
 
@Subject And why do you want that?
 
@Leri people like showing useless info to the users
such as: number of sql queries performed, rendering time, current time, etc
 
sigh
 
oh, also your IP address and some "fancy" globe with real time IPs who request the same at this very moment
 
9:38 AM
Know if my conjugation is correct
I doubt on my translation x)
 
@Subject I doubt you'll find any linguist here.
 
No interesting questions on main atm, so it's time to get some hand made apple cake
@Jack have you found that REST book?
 
@Leri Ok Thank, I just wanted to know if can I say that.
 
mornings
 
Morning, @DaveRandom
 
9:51 AM
hi, @DaveRandom
 
hi
 
10:06 AM
Mornings and woot! - atoptics.co.uk/fz964.htm
 
OMG, dat 'Argument Unpacking' stuff. I don't know PHP anymore. Wait, is that PHP still?
 
Well, not yet.
 
BTW, will type-hinting work with Argument Unpacking? (sorry if I missed discussion about that).
 
I'd written 'Is PHP still PHP?'
 
@Leri I haven't looked to be sure, but yes - the arguments are unpacked before the function is called, and then typehints are done against the things that are actually passed.
 
10:13 AM
@Alexander what's the issue? PHP evolves like all we are evolving. It shouldn't be surprise since PHP is maintained and developed by people
 
@AlmaDo I won't start a religious discussion.
I just have always found PHP syntactically speaking awful that's all.
 
so do I
 
@Danack great.
 
No mentions for semantics. There's no room for that in most programming languages tho.
 
10:26 AM
@Jack no, but I'm not fine with your RFC too. At least the usual $a = "A"; $a++/--; should work, the alphanumeric mix you can remove. completely and then we don't eed str_inc/dec()
 
hi, is "professional WordPress Plugin Development" book published in 2011 still up to date, is it still good way to learn plugin development
 
professional and wordpress in the same sentence?
 
I'd ask: is WordPress up to date? :)
 
10:33 AM
@aurel why single out plugin development? I assume you don't know how to code yet otherwise you probably wouldn't ask that question, so why not learn proper coding first?
 
@patrick I know how to code (not amazingly). I havent learned a lot of wordpress so I thought I'd learn more of ti
 
user1607528
Is any short way to check if function exists, other than using function_exists() function
 
@aurel I would recommend spending that time on learning OOP instead. Wordpress code is really bad and your "skills" won't be useful anywhere else
 
@Muhammet: isn't that short? ;)
 
@Muhammet why do you need to check if a function exists and why is function_exists not suitable?
 
10:41 AM
@Muhammet Yes. Design your code so that you don't need to check if funcuntion exists.
 
The only time you need function_exists is for cross php-version compatibility
 
@NikiC no, for that we have version_compare()
 
Also, morning!
 
@zerkms honestly, it looks to c-shap'ish (I am not too sure about the scopes there), but it looks to me like Contract.Requires() is a static call. What he would need to test that class would be to mock the Requires() method (if possible). Then write several tests for few of the combinations in which Requires() fails the validation.
Anyway ... seems like a lot of global-ish state to me
 
@bwoebi "Don't check the version, check the feature" ;)
 
10:42 AM
@NikiC Or when you use function as callback, but since php has closures that's odd.
 
@Patrick thanks for the advice, that is my primary focus, Im just scanning through this book and finding that I am not struggling with any of the code in it, that' why I wanted to know whether a wordpress book published on 2011 is still up to date
 
@NikiC I'd consider to add in php-src a #define for each signature change/function or macro addition or deletion. (haha)
 
@bwoebi Sounds like massive overkill ;)
 
@NikiC yup^^
 
also, the problem is more that distros totally fuck up php versioning, not anything about the core distribution
 
10:45 AM
It will be up to date until its published day.
 
@NikiC No idea what distros do here… I compile my PHP myself…
 
@AlmaDo looks like some type of attack
 
hi
everybody
 
@bwoebi debian uses something like php 5.3.3, with a large bunch of patches from newer versions...
 
10:47 AM
@tereško attack? May be one strange guy made dv and then all crowd repeated?
 
is there anyone who is familiar with paypal
?
 
@AlmaDo within 20 seconds ?
 
@NikiC lol… then why don't they just upgrade PHP?
 
bc
 
@tereško hm.. I don't care about dv. I care about answer quality. So am I really incorrect in that context?
 
10:48 AM
where's the big bc break between today's php 5.3 and php 5.3.3?
 
@AlmaDo you will have to ask @NikiC about that
 
@AlmaDo I don't think you're wrong, but it looks like a rather bad approach
 
@NikiC here we go :) sorry if I'm disturbing you.
@NikiC bad approach .. in what sense?
 
Is mentioning ini_set taboo or so?
 
If you have specific requirements for number display, you should implement those explicitly
 
10:50 AM
@NikiC exactly so. Just wrong type, may be, that OP wants/used
 
@AlmaDo It looks to me like you're working around "the problem" by increasing the precision, rather than answering the question. But that's just me... *shrug*
 
And not through PHP's weird magic (especially given how all of PHPs magic is global, either via ini or locale)
 
@salathe me too. I'll mention this
 
@NikiC locales are also weird in C……… that's not PHP specific… PHP just amplifies the prolem by using locales implicitely…
 
Disclaimer: I was one of those dirty, dirty down-voters.
 
10:51 AM
@bwoebi Tell me something new
 
good mornings
 
I'm pretty sure that they guy/gal who invented locales had programmer-torture in mind
 
@NikiC You don't know anything I don't? :-P
 
dirty talk in the morning. ... .
 
is the unpacking and related RFC still open or have it already been approved? if anybody knows :)
 
10:52 AM
@NikiC dunno ... it has more of that "permanent temporary solution" vibe going
 
@HenrikBjørnskov unpacking RFC is still in vote
 
@bwoebi thanks :D
 
@salathe I don;t care :D just first time I saw my post in gray (because -3 dv) and thought I made something weird. Now I'm "happy" :p Thanks to you I've improved that answer
 
@tereško Yeah. Back then unicode didn't exist and multi-threading wasn't invented... (at least I hope so, otherwise it must be intentionally malicious)
 
10:54 AM
@bwoebi yes
 
@AlmaDo: you have some edit war going on with 웃웃웃웃웃 ? ;)
 
ehm...
 
what he's doing ? :\ I've just added my note about - solving that problem isn't good at all
what to do now? first time faced that :p
 
hi ... somebody in here who can tell me, if named params are still planned for 5.6?
 
10:56 AM
@AlmaDo: click rollback on revision 3 > stackoverflow.com/posts/20799221/revisions
 
@harald they're (as always) "under discussion"...
 
@Glavić thank you
 
np
 
@harald not planned for 5.6 as far as I can tell… it seems…
 
Hey amal.
 
10:58 AM
Hey @ShankarDamodaran
 
ok ... thanks ...
 
@AlmaDo: lol what's up with that guy?
 
@salathe btw very nice hat (:
@AmalMurali which guy?
 
@AlmaDo hehe, archaeologist hat for an archaeologist :)
 
Named Params and Automatic Property Initialization will reduce quite big number of key strokes. :)
 
10:59 AM
@AmalMurali, Editwars like @Glavić mentioned :)
 
@AlmaDo: Don't ask me his name, I don't read Chinese
 
heh
 
:P (or was that Japanese?)
 
feels like decades i am waiting for "named params" coming to php ... ;)
 
Hey, @Glavić :)
 
11:01 AM
Guys, does anyone knows how this site is getting this star Maps sky-map.org
 
Unicode ? O.o
 
@AmalMurali: hi ;)
 
if i have to build such a site what needs to be done
 
And it appeared to be Korean. :D
 
@harald sure you can do it now with $result = test(['foo'=>1, 'bar'=>2]); :p
 
11:02 AM
@AlmaDo yes, but it's not the same ... ;)
 
hehe, but look at it - how "similar" it's to desired case. Only 2 symbols difference :p
 
@AlmaDo Very javascriptish.
 
@Leri in fact, I'll never want to work with such code :p
 
@Zack By reading the FAQ I found this: server3.sky-map.org/astrophoto
 
@AlmaDo function (array $args = []) { //defining expected arguments. extract($args); // other code... } is quite clean though.
 
11:05 AM
@Leri shoot me :D
 
:p
 
@Alexander Yeah, they are providing APIs as well however one of my client wants to develop his own website rather using any APIs, he can get Lattitude, Longitude data as well
 
@NikiC I wonder - how agrument unpacking will handle arrays, which keys are not strings (only integers) - but not in consecutive order. Will that be ok?
 
@AlmaDo keys will be ignored
order of arguments will be order of array elements
 
@NikiC so order will be equal to array_values($args) ?
 
11:09 AM
just like cufa
@AlmaDo you could say so
 
ok, got this, thank you
 
Hmm, how does php.net identify a commenter (for voting purposes)? Based on the IP address?
 
@NikiC I asked this before but did not get exact answer. Will type-hinting work with Argument Unpacking? and if it will, will it have some overhead?
 
@Leri huh? How could it work.. well, because array can contain anything. So.. I'm lost
 
@AlmaDo extract passed args and check for types(?)
 
11:12 AM
@Leri but how will you define that in prototype like function test(...$args) ?
you even don't know how many args will be passed
 
@AlmaDo That's a variadic, not the argument unpacking.
 
function foo(Bar ...$params) {}
 
@Leri so Bar instanceof for every parameter in array?
 
@Leri sure, why would it not work?
 
11:15 AM
@AlmaDo Yes, every parameter is instance of Bar.
 
I though about more complex case when unpacked arguments have different types. Ah, well - may be I'm missing something
 
@NikiC I found no example of that in rfc, that's why I asked. And what about additional overhead? Can it become noticable?
 
@Leri I'm still not sure what you're asking about
Nothing about type hint checking changes
typehints are a feature of the callee, not the caller (for user code, at least ;)
 
@NikiC This is what I wanted to know.
thanks. ;)
 
@AlmaDo: Have you actually tried the straight forward aproach in your question? Regardless of the index problem you raise, the database might solve this by storing values ordered internally. E.g. for the from column and therefore a lookup could be much faster then expected.
 
@AlmaDo What scenario was in your mind?
 
@Leri each array element belongs to different class, for example
@hakre doubt. data is intended to be updated quite often
@hakre in my case - I'm thinking - does it worth efforts. There are other options (I mean in project context sense - up to declining feature or give it to other team :p )
 
@AlmaDo oh, the data is updated quite often. reminds me of the problem to create hashes for (large) files which you want to compare partially.
 
did this little MapReduce library, it might be of interest to some bernardphp.com/projects/chute :)
 
@AlmaDo That's not complex, if they are derived either from the same base class or interface, which is used in type-hint.
 
11:29 AM
@tereško: Just wondering, why should that question be deleted?
 
@AmalMurali how about "duplicate of a duplicate" ?
 
@tereško you're underestimating. I think duplicate of duplicated duplicate
 
Morning
 
hi, @PeeHaa
 
@tereško: It has some good answers (better ones than the linked duplicates anyway), so I personally don't think it should be deleted.
 
11:35 AM
@PeeHaa Y U VOTE NO ON pow() OPERATOR????
 
@DaveRandom suspense
also, he probably forgot
 
No he didn't not vote, he voted no
 
 
@DaveRandom As I already said when voting started to @jack. I don't see the huge usefulness in it
 
@hakre wait .. WAHT ?
 
11:39 AM
@tereško Also known as HORSE. :)
 
@tereško obviously, you didn't see my morning example :)
 
And the advantages didn't convince me @DaveRandom
The only thing that is really gained is overloading
TL;DR felt like a change just because change.
 
@tereško var_dump(o_O ^_^ O_o) :p
 
@AlmaDo: This is an interesting read: algs4.cs.princeton.edu/34hash
 
11:43 AM
Hi everyone. I've a query regarding running a script in background
 
@hakre I'll check. thank you. For now all I can is to uv your answer (not accepted it yet, because may be there will be other answers - but we'll see)
 
BTW if this ever gets in voting it would probably have the same outcome for me ;) @DaveRandom
 
@PeeHaa I think readability++, and also I think it sticks out as missing. pow() is a pretty fundamental and commonly used operation in computing, having to call a function for it bugs me a bit
 
@AlmaDo The answer is more a practical approach than a well thought algo or something that actually solves the problem. Are there duplicates with the from-to ranges or are they unique?
 
@PeeHaa Yeh I'm with you on that one
 
11:45 AM
> Positive integers. The most commonly used method for hashing integers is called modular hashing: we choose the array size M to be prime, and, for any positive integer key k, compute the remainder when dividing k by M. This function is very easy to compute (k % M, in Java), and is effective in dispersing the keys evenly between 0 and M-1.
 
I'm using `ignore_user_abort(true)` and `set_time_limit(0)` on a page so that even if a user stops or redirects elsewhere, the script continues to run till all the code is executed.

I'd like to know if there are consequences of using the above two in tandem, i.e. taxing the server resources or slowing down etc
 
@hakre unfortunately, not. Well - not quite. I mean - there may be intersections. Sure I can filter duplicate pairs <from, till> - but there still may be duplicates across from or till
 
I'd say doing so with the modular hashing is better then my division suggest by 1000.
 
hm.. you may be right
 
@AlmaDo I meant the full pairs. like from and to is paired the same more than once.
 
11:47 AM
@hakre Implementing HTs in Java ... urgh
 
@hakre no, they will not be duplicated across pairs (and, more, that mean fatal error for whole set)
 
@DaveRandom btw where have you been the last weeks man? Busy on the job or aren't you allowed to spend time with us because of her? :D
 
@AlmaDo perhaps there is also some benefit in storing from and size (not to)
 
@PeeHaa Busy on the job and laptop is now basically unusable so I've been doing very little computing at home. Hoping to get a new laptop in the next week or two though
 
yeah, we're free to do anything. I've mentioned that I've tried to use function to transform pairs into unique number values. But that not helped me. I'll try your suggestion
 
11:49 AM
@DaveRandom How is it on the job. Used to the rockstar life of being a developer yet :P
 
That was one idea that came into my mind as well. I once had an interesting article about that, I think it's with something called parity, but I didn't find it.
 
well at least I know now what I should google :D
 
@PeeHaa Well in the last couple of weeks I've actually done something useful, which is good. I want to get back to doing some of my own stuff though, it's all well and good coding at work but I'd rather do something off my own back. There's an android app that I would like to write but it's just not happening at the moment :-(
I never realised how little work I did at my previous job...
 
:-)
Working on your own projects is always more fun no matter how nice the job
What kind of stuff have you done on the job?
 
idk, I've never developed for android before, that UI shit looks kinda crappy. Same problem I have with the web, I hate making shit look nice I just want to make it do shit.
 
11:55 AM
hi
is there someone who has already work with paypal
please
 
@DaveRandom If you don't want to anything fancy you could give Titanium a try. Warning: once you are trying to do something extra with it you will have to drop it and rerwite everything to got native.
 
N2P
hello everyone, has anyone worked with mqtt server ?
 
@PeeHaa I once gave it a try and forgot its existence forever within 24 hours. :)
 
@PeeHaa Yeh I specifically don't want to use anything like that. I think it would be a "can I use Javascript with jQuery?" type situation, learning a platform through a framework never worked for anyone ever in the long run.
 
@Leri I once gave it a try and had to rewrite everything ;)
 
11:59 AM
That C#-based cross platform thing looks tempting but I will at least make a simple android-only app before I start pissing about with it
 
Still useful for prototyping though
 

« first day (1168 days earlier)      last day (3780 days later) »