« first day (2193 days earlier)      last day (2760 days later) » 

2:27 AM
/o
 
o\
 
\o
 
\o/
 
/o\
 
|o|
 
2:41 AM
Isn't that from Star Wars?
 
that?
 
>o<
 
<o>
 
|o|
TIE Fighter
 
:D ah right
 
2:46 AM
\ô/
 
_o_
 
Wes
 
_o/
 
\o_o/
 
\o_o/
 
2:52 AM
lol
 
beat me
 
yup
\o^o/
 
Wes
      _
  _O_|
_| |  _
  _|_|
_|
 
nice pairs o'glases
 
Wes
i don't know what that is
 
2:54 AM
some contorsionist
 
heh
 
Wes
Jul 21 at 7:51, by Wes
 \o
(=)===
  |\     guitar windmill
!!should i try to sleep more?
 
Dunno.
 
Wes
you suck jeev
 
3:11 AM
morning
 
when hotfixing the prod server at night while you hope everyone is sleeping
 
3:26 AM
Lol
 
 
2 hours later…
4:58 AM
how to get ajax response into php variable or use javascript variable value into php variable on same page without ajax
 
it's approach based rather than code
 
posted on October 17, 2016

New Cyanide and Happiness Comic

 
<script>
$(document).ready(function(){
$('#search').click(function(){
var drop=[];
var drop1;
drop1= $('.drop').val();

$.ajax({
url: 'test.php',
type: 'post',

data: {drop1:drop1},
success:function(data){


}

});
return false;
});
});
</script>
how to access ajax response i.e data into php variable below defined div
 
5:20 AM
'nin
 
hey Joe o/
 
 
1 hour later…
6:25 AM
I absolutely hate mountain roads. .
I always puke when traveling...
 
user image
4
 
Wes
6:47 AM
that's hillareas
morning phpeeps
 
Joe Watkins I would like to appreciate your effort on pthreads
 
7:06 AM
hey
resource hash_init ( string $algo [, int $options = 0 [, string $key = NULL ]] )
can someone tell me what the mean of [ here
 
They're optional
Or, that's how I read it anyway
 
you are wrong
2
 
To me, you must pass an $algo parameter, but $options is optional, as is $key
Why am I wrong? Looks to me that options defaults to 0
 
$algo is not optional
 
I did not say $algo is optional. I stated you must pass an $algo parameter.
 
7:09 AM
what does [ mean then
 
Everything in between [ and ] is an optional parameter.
 
ok thanks
 
Wes
@Jimbo you are wrong
 
I knew it was either you or @PeeHaa who starred that
:P
 
Wes
7:11 AM
:P
 
Being told I'm wrong by a beginner, even though I'm right. What better way to start the week?
 
@Wes Come on tell me truth
 
@Wes Come on wes.
 
Wes
lol
@beginner @Jimbo is right, anything between [] is optional
 
lol
 
7:12 AM
Thank you so much for backing me up, I need others to state the correctness of my knowledge
 
@Jimbo you are wrong!!1
2
 
what?
 
Wes
new game!
 
@PeeHaa's mom's wrong
2
 
@Jimbo yes, for not dating me
4
 
7:12 AM
Oh bloody hell, Wordpress 2.0
 
what the ????
 
@beginner LOOK WHAT YOU'VE DONE
 
@beginner Jimbo is correct. Square brackets denote optional arguments.
 
1 min ago, by Jimbo
Thank you so much for backing me up, I need others to state the correctness of my knowledge
@Gordon I'm sorry, we don't do correct here.
 
I am anal about these things. If something is wrong, I need to correct it. It's coming right out of my correctum.
8
And I am not shitting you
 
7:18 AM
I can steal your knowledge by strategically stating incorrect things about something I don't know and getting you to correct it ;)
 
In theory yes, in practise you still won't get most of the things I say
Even I often dont get them
-.-
so, how's majorica?
I see you are allowed to use chat at work
and I hope you have occupied the star wars room
or the ball pit
 
Haha, haven't started yet. This morning I'm heading to a social security office for the SSN that I need to start working... I'll probably head there after lunch. Oh, and I'm in Dusseldorf for my on boarding next week
 
@Jimbo we totally should meet then
 
Hell yeah! How far are you from from Dussledorf?
 
about 30 minutes by car… depending on traffic
 
7:24 AM
Noice
I'll let you know the exact dates and times I'm there, but I should have that Friday / weekend free
 
about the same by tram I guess. maybe a tiny bit more
cool. will have to check with wife. weekends are usually family time, but since you are only here ever so often, I am sure we'll make an exception
 
Awwww <3
 
that's not the coming weekend but the one after that, right?
 
Yeah 29th / 30th
 
Anonymous
monring
 
7:31 AM
o/
 
@Jimbo you are lucky then, that week also has a trivago meetup. I've never been there but they are supposedly quite good. see meetup.com/PHP-Usergroup-Duesseldorf/events/234262378
 
Oh wicked, that's on the Thursday too
 
meurning
 
Although:
> Due to a small change in the speaker lineup, one part of this talk is only able to held in german.
I only know how to ask for ten beers in German
 
:D
 
7:35 AM
Morngins
 
morning
 
@Jimbo What did I star?
 
Anonymous
moin ekin, pie
 
@Jimbo I only know bad words / things in german.. and it involves high five-ing people and speaking about a certain group of people, which is not so nice :(
 
morning
 
7:52 AM
can someone help me here : stackoverflow.com/questions/40080426/…
 
@nsdlfefinedieicbe there is already an answer?
 
moin
 
@Naruto i tried other answers, but it didt worked for my case, if you can look att he code and help me that will be really great.....
 
@nsdlfefinedieicbe Why do you have so many sock puppets?
 
@PeeHaa sorry, thats my account only, not two , in chat its displaying this name and in questions and answers its displaying other name
 
7:56 AM
@nsdlfefinedieicbe to put it real simple: $this->conn is not an object... which it should be
 
@nsdlfefinedieicbe No it's not. It's 2 accounts with different ids
 
@PeeHaa the account linked to the chat account was apparently merged into something… or removed
 
@Naruto can you please tell what code i need to replace with that code ?
 
@Gordon I thought it only took a day to be completely merged
Broken merging is broken
 
@nsdlfefinedieicbe can you please try to understand what the error means and fix it yourself?
 
7:58 AM
@nsdlfefinedieicbe no, the code looks fine, your problem is probably inheritance...
 
@PeeHaa for the record: IDK if merged or just removed. I can no longer see the reason why an account isn't there. Ask @MadaraUchiha instead
 
@Gordon thanks fro reply, i already followed this link : stackoverflow.com/questions/5346186/… and other links
 
Morning 11!
 
@Naruto okay i will check it , Thansk for your support.....
 
You get to witness to slow and inevitable breakdown of my mind today as I start discussion coding standards in a team.
 
8:01 AM
Can someone tell me, why this happens?
 print_r($overlapAllowed);   //false
                    if($overlapAllowed == true){
                        //goes into this if, but should be in false
                        $hasOverlap = 1;
                        echo "hi";
                    }else{
                        echo "bla";
                        $hasOverlap = 0;
                    }
 
@nsdlfefinedieicbe if $DB_con->prepare says you are trying to call prepare on a non-object, it means your $DB_con is not a pdo object. so find out why. It's likely a problem in your 'dbconfig.php'
@elsololobo try with === instead of ==. in any case your overlapAllowed is not false'ish
 
moin
 
\o
 
@kelunik dammit
 
@Sean @DaveRandom o/
 
8:02 AM
does anyone comprehend github teams/permissions? (genuine question)
 
@Gordon hm, but I transfer false from js .. ok i will see
 
@DaveRandom what's your issue?
ah
 
oh I figured it out
I think
The whole of the r11 org needs redoing in a way that makes sense though
 
@elsololobo var_dump("false" == false); // bool(false)
 
@Gordon ah you are correct. It is a string -.-
 
8:05 AM
yupp. send 0 or 1 instead. or a proper boolean
 
@DaveRandom I just wanted to look and realized I'm not an org owner :'-D
 
> Code must use 4 spaces for indenting, not tabs. X - Surely spaces use more memory?
 
@Gordon ok i will, thank you very much!
 
9:06 AM.
 
@bwoebi yeh it's pretty out of sync with the current room owner list, fixing that now
 
8:06 AM
@Sean tell them you'll buy them bigger hard drives when that becomes an issue
also, suggest to save everything as tar.gz to save on those extra bytes
 
Anonymous
@Sean haha, you're gonna have a great day
 
lol
 
@Sean also, why are you discussing this at all? the point of a coding standard is to have a uniform looking code base. so just pick psr-1 and psr-2 because there is tools to validate and autoformat it that way… and be done with it. Discussions about individual rules in that are a waste of time.
 
@DaveRandom Okay, now I can verify thanks to audit log that you've done it correctly :>
@DaveRandom but I see no permissions change regarding @kelunik ?
 
@Gordon Because if one or two people of a full team have major disagreements with rules than I'm not keen with isolating them for the sake of a standard.
 
8:13 AM
@bwoebi I think the "friends" team should be able to push to everything, was the original idea. The entire thing needs discussing and possibly re-doing from scratch though.
 
@Sean they are isolating themselves if they need to argue about that. they should suck it up.
 
Mornins!
 
I've just updated the ownership so it's aligned with the current RO list
I don't know if we might be able to get Jeeves to keep it in sync? /cc @PeeHaa
 
Hello Everyone..
1
Q: Error Fetching http headers SOAP Client

Vikas SharmaI am using a SOAP client for placing order in Magento (PHP) and Getting Error Fetching http headers while hitting that webservice. When I restart httpd then the error disappears and I am able to place order again and again What I tried default_socket_timeout : 120 Code Snippet of SOAP CLIEN...

I would appreciate if anybody can please look into it.
 
> The PHP constants for true, false, and null must be in lower case. - Why?
9:18AM
 
8:18 AM
@Sean just install github.com/squizlabs/PHP_CodeSniffer to your CI server and set it to psr-2. Marvel at the violations. Then install cs.sensiolabs.org to fix them all in one go. Marvel at the violations again. Keep them down.
@Sean waste of time
they must be lowercase so it's uniform. that's the frigging point of a coding standard. uniformity. its not about being sensical. its because a uniform codebase is easier to read and maintain.
 
Yeah, I used phpCS with jenkins on our codebase once
it was amusing
 
msoring
"core" was a verb, not a noun. — Christopher Jones 8 hours ago
 
@Gordon There is a good reason for keeping to lower/camel/title though, because they are easier for the brain to process (loads of research into this, a couple of Google's can find it, TL;DR lower case has more of a contrast in shape). Admittedly in the case of single words this probably applies less, but it is nevertheless a reason if someone is insisting that you have one. /cc @Sean
 
@DaveRandom Right, humans tend to see the word when in lowercase letters, but see the separate letters when in caps.
 
apparently I can't English properly :(
 
8:32 AM
@VikasSharma PHP version? a segfault is probably PHP bug - and ext/soap is full of those.
 
@DaveRandom while that is certainly interesting, I still think it's waste of time having to discuss it when there is an existing standard you just need to adhere to.
 
php version : 5.4.45
 
@Gordon agreed, but some people will accept arbitrary decisions more easily if you can give them a justifiable reason
 
@kelunik do you have a "merge" button yet?
 
8:34 AM
@DaveRandom I agree. I am a big fan of convincing over coercion. Being able to explain a rule is always the best option. But if I have to argue with my devs about true or TRUE, the devs have issues.
 
@DaveRandom Oh, yes. Now I have one.
 
cool, then go nuts
 
Merged.
 
@Gordon that's tRUE
 
@DaveRandom I recently switched to this new server..but SOAP creates error for this request only.
 
8:35 AM
@DaveRandom I usually don't merge my own PRs. :P
 
@DaveRandom /kick
 
:-D
 
@DaveRandom That's getenv("TRUE").
 
@kelunik I've only recently started bothering to create PRs to repos I have push access to, but I'm coming around to it
certainly with basically everything under the r11 org, everyone should be able to do stuff. The point of that org is that it's regulars here who are trusted not to fuck things up, Prs are good when you are making a change that affects other people but renaming/cleanup or something like that, no need for discussion really IMO
 
at one of my jobs, the lead dev would make up rules like you have to assign the return of a function to a temp var. always. you were not allowed to nest function calls. and it was a cardinal sin to use a function call in a foreach, e.g. foreach(getStuff() as $stuff) was expressively forbidden. IMO, that's rules one can discuss because they are clearly pointless (and we got rid of them because no one liked them). but true or TRUE or where to put the curly braces? nah.
 
8:39 AM
Makes sense. The first step over here is literally to just get everyone working from the same page
 
ThW
Morning
 
@Gordon well anything that can be dealt with automatically can just be done in a hook - and if people really want to they can put a local hook on their end so that checkouts are formatted according to their own rules. Everyone is happy that way.
 
@DaveRandom Context? :)
 
@PeeHaa github r11 org
 
@JayIsTooCommon It was mainly an offer to people who wouldn't puke on them
 
Anonymous
8:44 AM
@Leigh that completely rules out Peter
 
lol
 
mainly != exclusively
 
@DaveRandom Any more context?
:P
 
The org owner list was way out of sync with the current RO list
Also I generally don't understand github permissions, apparently
 
oh. You want @Jeeves to use github's api to sync it on RO changes in chat?
 
8:47 AM
well just tabling it as an idea for discussion/feasibility study
@VikasSharma I can't find any relevant bugs, how large is the document that the server is responding with?
And how long does it actually take to respond
i.e. if you manually send a request to it
 
Sounds like work for something that doesn't happen often :) Go for it :D
 
4 secs
it takes 4 secs
 
That's not to bad, but it could indicate a very large document
could just be a stack overflow
as I say, ext/soap is basically 1 gigantic bug
 
Okay
 
8:48 AM
as I say, ext/soap is basically 1 gigantic bug
 
@VikasSharma hard to diagnose really, do you have CLI access to the server?
 
yes.
I have all the access.
 
Try making the request from the CLI, then at least can rule out a bug in mod_php
 
after restarting httpd it started working properly..
 
how long for?
i.e. how many times can you make a request before it blows up again?
 
8:50 AM
:) that I need to check it out..
when you are saying that there is some bug in mod_php , does that mean that there is something missing with modules?
 
@VikasSharma that's worth knowing, as is the size of the response XML
@VikasSharma no, it feels to me like probably a caching problem, like there's some pool of pointers and when one gets reused something goes wrong or something like that. Debugging mod_php is hard :-/
(mod_php being the PHP/Apache module)
would be interested to see if you can reproduce on the CLI and in fpm @VikasSharma
 
@DaveRandom Okay. okay ...I am getting it ... I am using varnish which was not on previous server..
 
That shouldn't affect it unless something really weird is going on, when I say "cache" I'm referring to something internal in ext/soap
 
had someone add me to room-owners list?
 
Okay @DaveRandom so First thing I need to do is to reproduce it and then check it at CLI ?
 
8:54 AM
well ... no .. because mail is from github
but still, what the fuck are you guyses doing?
 
@tereško I dunno, I have no issues with you being on the RO list or an org owner on github but I just synced it
 
I have no opinion one way or another (havent actually been contributing)
 
:-P
not compulsory
@VikasSharma well if you can reproduce it on the CLI that would be good
mostly because the CLI is way easier to debug
 
Okay .. thanks for the directional suggestion.. thank you so much..
will try and come back in case of any issues.. have a good day
 
@VikasSharma I suspect you won't be able to repro it with a single request on the CLI, try doing for ($i = 0; $i < 10000; $i++) or something (i.e. make the request many times in the script)
that's if my gut feeling about the likely cause is correct, which it may not be
If you can come up with a repro case I will take a look at it and see if I can repro as well
 
8:59 AM
Okay.. one more question... i have two VM..one is Dev another is PROD..its working fine at Dev.. should i need to check both the PHP.INI and see if there is something wrong with PROD..?
 
@VikasSharma are they both running the same PHP/apache version?
 
Yes.
both are same..
 
@VikasSharma the difference may simply be the volume of traffic, I assume your live server gets a lot more?
or it could be something else entirely
 
ok..
 
You you ask pear to install into php7/ instead of php/ and it goes ahead and installs a bunch of things into php/ anyway. >_>
 
9:01 AM
i will try to reproduce it at DEV.. and check if its coming or not..
@DaveRandom thank you again
 
hi guys
how can i push html elements by its class in a SESSION array?
 
@JohnyNassar I don't know what you are trying to do, but you probably shouldn't do it...
 
> A Vote Leave campaigner is calling on parliament to make supporting EU membership a criminal offence under treason laws. source
 
I'm trying to do so in a loop because I have a couple of elements that are repeated
i want to add elements to a wishlist page when clicking on the button "add to whishlist"
 
9:11 AM
@DaveRandom hehe
 
@JohnyNassar you either need a form with the button as the submit button or write some javascript that uses ajax (or not)
either way, collect the info in the frontend (which element to add) and then send that info to php where you can store it whereever you want
 
@Patrick I'm trying something like that but I don't really know how to add the element to SESSION array: session_start();

if (isset($_POST['whishlist'])) {
$_SESSION['whishlist'] = $_POST['whishlist'];
$_SESSION['whishlist']= array();
array_push($_SESSION['whishlist'],$name);
 
Canadians are so careless with their money https://t.co/HNeDpEF7aD
 
so... the question is how you add an entry to an array?
$foo[] = 'bar'; // adds a new entry to the $foo array
 
Can you set session variables as arrays? Does it serialize them behind the scenes or something?
 
9:17 AM
I want to write it once so I don't want a specific value
 
Hello
 
@Sean yes and yes
You can store anything serialize()able in $_SESSION, although IIRC it uses a slightly different format
 
how can I add all the element that I clicked on their buttons once for all?
I mean in array_push
 
fuck, I should be getting to work about now
@sama @paulg But if Thiel is going to continue to be part of YC partner circle, please stop talking about the unique 1930s-danger Trump is.
 
9:32 AM
morning
 
'nin
 
> "If your corporation does not stop associating with the person, who has different political views, it will be fascism"
is it just me, or someone has failed to see the irony in that statement
 
I'm thinking about namespaces refactor and trying to find problems with them and found out that in PHP there is possible to name exactly the same everything like const, function and class|interface|trait and I'm trying to find out benefits and cautions of this situation. A fev languages I've checked has grlobal symbols table, but in PHP there is function_table, class_table and zend_constants so there may exists duplicate names
 
Anonymous
9:39 AM
!!wotd
 
nudnik: a persistently dull, boring pest.
 
@DaveRandom re part of speech tagging, I generated a complete lexicon file and I have it as a json too. txt file is 818kb and json file is 911kb. I also moved the dictionary setup to PosTagger class (currently still uses that not-json accessor) and within reminder I only set $this->tagger upon enable and um, it works
 
@Ekin Is it in your PR branch?
 
2mins going to link
 
@brzuchal Yes, my recommendation would be to avoid this. It is my hope that one day the tables will be unified.
probably won't happen, but still don't do it in the interests of sanity
 
9:44 AM
I dunno what the fuck is going on with php-src.git
 
@DaveRandom wouldn't it be better to introduce symbol_table and put there in HashTable each symbol so in fact it would be already unique symbol ?
 
yep, it's here now
 
like symbol could be just function or const or class|interface|trait or namespace
and namespaces could have their children from the same set of types
 
@brzuchal yes, yes it would. There are many things that would benefit from this, not least of which is that you would be able to pass method pointers like $this->foo instead of [$this, 'foo']. But it would be a huge BC break and it will probably never happen.
However I still write all code as if that were the case because it keeps code sane.
 
9:49 AM
I hope it'll happen someday, history shows that some features need huge BC to happen
 
is there a way to find out if someone rewrote history in git ?
 
AFAIK no
 
you can compare with your local checkout
if you have one
 
reflog?
 
I need to find out if someone has messed with that ... this cannot be right ...
 
9:51 AM
wait wut?
 
that should be rc3, and should have commits from 7.1, but hasn't been touched in months
that must be wrong
 
^ that
 
No idea how git.php works though or how to check branches
 
no, that's a different branch
 
9:53 AM
that's the tag for RC3
 
but it shouldn't be a branch
 
which was created from the 7.1.0 branch
 
this is messed up, those branches should not exist
 
@JoeWatkins no it shouldn't but people create branches in php-src.git because an hour has passed since the last one, I think
 
they are meant to be tags, there are no branches for 7.0 alpha/rc's
 
9:55 AM
did u read what the Image says ?? they now use ad-aquatics.com. — KikiTheOne 56 mins ago
 
those branches should exist only to prepare for tags then be deleted but no-one ever bothers I think :-/
 
0
Q: HTTPS error - "You don't have permission to access /index.php on this server."

virepoI have an eCommerce WordPress site using woo commerce. Now my hosting company "Heart Internet" provide free SSL certs however the map a subdomain to my domain to achieve this. Real domain http://mywebsite.com/ SSL Version https://web110.secure-secure.co.uk/mywebsite.com/ So this means if I wan...

 
@JoeWatkins right, but you do need to create a branch to prepare for the tag I think? (setting version numbers etc, which is not done directly in the minor/major version branches?)
but once the tag is created, the branches should be deleted
 
no, you tag in the release branch (7.1.0), but I don't see why the release branch hasn't been used for any RC
 
@DaveRandom You can create a tag from random stuff afaik
 
9:57 AM
@DaveRandom speaking of namespaces refactor it would be impossible to put all those symbols into separate tables which exists now. I'm talking about moving namespace name from function|class... names into separate structs, because two classes from different namespaces would be identified by the same short name. Right now it's not a problem because namespaces actually exists only virtually by adding string as prefix of class name.
 
@JoeWatkins don't know; did Davey just forget to push them?
 
@PeeHaa well yeh you can, but you don't want to commit a release version number to a development branch, otherwise dev build would look like release builds
That's my reasoning anyway, may not hold up in practice
 
@bwoebi he's made some tooling, dshafik/php-build, which automates the process, and I think it's just doing it wrong
 
also if you were doing that, there'd be no reason to push the branches to remote, you could do it all locally
 
how do I merge 7.1 into 7.1.0 without messing up NEWS ?
 
9:59 AM
Tell someone else to do it? :-P
(I have nothing useful to say)
 

« first day (2193 days earlier)      last day (2760 days later) »