« first day (1407 days earlier)      last day (3541 days later) » 

12:00 AM
@Ja͢ck Is it... Yasuo?
@Ja͢ck Would be about 20 lines of code to write a wrapper script
 
@DaveRandom Yeah, caused by this according to Ferenc.
 
So... what does *(int *)ret = sslsock->s.socket; actually do? The pointer deref is in a weird place an I don't know what that's actually doing? nevermind
(ret is a void **)
 
Arg, wtf ... 8 test cases that were dependent on var_dump() output changes ... sigh
My first Zend push \o/ ... daily milestone reached heh
 
12:20 AM
how to echo all the number except one number? I'm using the following line but the page just keep loading. nothing showing.
<?php
$number=rand(1, 15);
while($number!=15){
echo $number;
}
?>
 
> Warning: date(): It is not safe to rely on the system's tim
MOTHERF****
> Warning: date(): Invalid date.timezone value 'Etc/YourMother', we selected the timezone 'UTC' for now
 
heh
hmm, weird, i can't reproduce that session issue
at least, not with a .phpt
 
@Shobdo The number is random. It is entirely possible 15 will never be generated.
@rdlowrey yeh so fix is like 10 lines or something :-P
 
@Shobdo you're not updating $number inside the loop.
 
12:37 AM
@Ja͢ck Thanks a lot dear. My new code working
<?php
$number=rand(1, 150);
while($number!=15){
echo $number."</br>";
$number=rand(1, 15);
}
?>
 
why aren't you selecting from 1-150 inside the loop?
 
@rdlowrey @Ja͢ck job's a good'un
 
@DaveRandom y u remove the TSRMLS_CC?
 
12:53 AM
@Ja͢ck Because tidiness. All the corresponding PHPAPI funcs in the header have a convenience macro, I figured I may as well use it. You think I should put them back and call the func directly? I personally prefer it like that (after all, that's why the macros exist, right?)
I'm sorry, is someone trolling the transcript and flagging F-words?
 
@DaveRandom ehm .. but PHPAPI void _php_stream_fill_read_buffer(php_stream *stream, size_t size TSRMLS_DC) <---
I'm all for tidiness, but that just seems broken on zts
You do use zts, right?
 
@Ja͢ck #define php_stream_fill_read_buffer(stream, size) _php_stream_fill_read_buffer((stream), (size) TSRMLS_CC)
 
wat
 
Common place throughout php-src
 
hmm
 
12:57 AM
And matches all the other similar PHPAPI funs in that specific header, is why I did it at all
 
i feel a bit uneasy about it, but yeah, it works
 
romans again
It definitely builds on zts, because I just did it
And it definitely fixes the bug as well
Note also that it's based on 5.4, so yeh some of it is an even shitter mess than 5.6
Just trying to figure out now if there is a sane workaround in userland
/me sleeps
 
 
4 hours later…
4:51 AM
morning
 
5:13 AM
Is it possible to find an array inside an array without using is_array or any other php functions?
@Leri Good morning.
 
5:38 AM
@Carnal Yes, if you know the key
 
What if you do not. :o
Hmm hold on.
I'm trying to create a recursive function without loop and php funcs
I can get the first 2 elements of the array, but the problem appears when I try to get the element that is an array
 
wtf are you doing?
 
Trying to create a recursive function
I have nothing to do atm that is why I'm trying to solve problems. haha
 
And what is wrong with is_array?
 
Well.. The rule is no php builtin functions
 
5:45 AM
:D :D :D okay.
 
6:39 AM
sigh again...
Have a nice day everyone, got to go to work
 
Good morning
 
6:53 AM
@Carnal sure, loops can do that for you
 
You can't remove an element from an array in constant time without a "builtin function", correct?
 
http://stackoverflow.com/a/25459311/1723893
 
7:14 AM
This is hilarious.
PHP question with constraint "cannot use builtin functions" -> 6/6 answers use builtin functions.
 
7:29 AM
Not using the built-in tools to determine if it's an array, not counting the length of the array? Without using built-ins? It's an absurd waste of time. cv, too broad.
 
I want to find number of duplicate value in multidimensional array by not using for loop i only want to use some php function and by the help of this how can i do this
 
@akhilesh Is that a question?
 
@Jefffrey yes
 
Where's the exclamation mark? In fact, where's is all the punctuation?
 
morningz
 
7:41 AM
@Jefffrey this is the code that i am using
 
Congratulations.
 
@Jefffrey i am getting error when i am using this code pastebin.com/vmVdMJ8B
 
8:17 AM
mORNING
 
@akhilesh of course you get the error. what is the error saying? that $array1 does not exist? and how can you have these double array keys anyways?
 
@akhilesh I won't gratuitously look at PHP code, are you out of your mind?
4
 
no he just write random stuff and expects no errors
 
@Jefffrey soory for my wrong code but ciukd you please tell me how can i find dublicate value in multidimensional array
 
@akhilesh Why are you not posting this to Stack Overflow, again?
 
8:50 AM
moin
 
Yo Joe
 
9:13 AM
police let me off :)
wtf is wrong with ppl
read:pierre
 
Happy Birthday @ocramius
14
 
@Ocramius happy birthday :)
 
9:48 AM
@Ja͢ck nope, I don't know
 
guys when we send an xhr request, does php wait for the entire script to end before sending the entire response or keeps echoing it while the execution continues?
 
ThW
@AwalGarg php.net/flush
Morning
 
moinz
 
@ThW so after every echo, I add a flush, right?
 
10:09 AM
What?
@Ocragaymius Happy Geburtstag :D
elseif vs. else if ?
 
so how do I stab someone in the face through SO?
 
never else if
always else {}
 
or, to put it more mildly, would someone mind taking an objective look at a thread I answered and tell me if I'm taking crazy pills?
(if that's not a kosher thing to ask, lemme know. still getting a feel for things around here)
 
@JoeWatkins Really, could you elaborate? I vaguely know what you're talking aboot.
 
okay
if ($condition) {
    if ($somethingElse) {

    } else if ($otherThing) {

    }
}
that's not hard to read, however, it is harder and more complex at the vm (or cpu level if in a compiled language) than
if (!$condition) {
    return earlyAndManageYourExceptions;
}

if ($somethingElse) {
    return early;
}

if ($otherThing) {
    return early;
}
nesting conditionals unnecessarily is something you want to avoid, if you can avoid using else at all, I'd do it ...
as usual, I'm always wrong, assume that ...
if you can defend the decision to do it another way logically, then it's just as sound ... but by default, simple > complex ...
 
10:21 AM
I always wrote multiple ifs if checks if they are not costy, it seemed natural...
  function getIn( array $array, $keys, $default = null ) {
    // Return entire array if no keys specified
    if ( !$keys ) {
      return $array;
    // Support dot notation e.g. "config.can_haz_awesome"
    } elseif ( !is_array( $keys ) ) {
      $keys = explode( '.', $keys );
    }
 
@JoeWatkins haha. your profile says, if you are speaking, you are right.
 
There's a balance. Having exit points all over the place isn't fun either.
 
about things I answer on stackoverflow :)
 
@JoeWatkins check this piece of code shit. Would you approve writing without else( if|if) ?
 
@derp it's not really about having exit points everywhere, more about returning as early as possible ...
 
10:23 AM
oh yeah, i'm all for that
 
I'd drop the else yeah, it doesn't seem needed ...
 
I actually always follow what Joe said, but I never knew why we do so. :P
 
Yes, and it's totally not related to the first condition. @joe
I also dislike switch for most use cases.
 
> Object-oriented PHP Frontend Developer Test v2
ROFLCOPTER
 
10:26 AM
I'll switch if it's the only control structure in a function, in php it makes no nevermind, but in compiled languages where a jump table is an optimized assembly instruction things are a bit different ... ofc, a single switch would make no difference but if you make that decision 100 times and that code path is travelled frequently, you might see a difference ...
 
mornings
 
yo @DaveRandom
 
11:07 AM
@tereško - that guy has been active on SO for at least 4 years, and that's the type of question he's asking.
 
@Danack and his lack of any clue is terrifying
 
There should be a "closed as: let me google that for you" that automatically links them to lmgtfy with their title as the query
 
@derp The super mods/people who owned SO said that doing that wasn't friendly and blocked people from doing that.
 
11:23 AM
that's... well that's probably a pretty level-headed decision. there can be quite the temptation to be a bastard around here sometimes
 
summerwherethefuckareyou.com
 
@Danack Other countries. The summer needs a holiday too.
 
It's currently warmer in Sydney, than Bristol, and Sydney is in the end of winter.
And it's night time.
 
11:40 AM
2
Q: Array not acting as expected in jQuery

Hassan AlthafI'm doing jQuery Ajax with PHP, and after jQuery passes some $_POST data to PHP, PHP validates those data, and prepares an array with all the errors, and once all validation is done, the count of error is found, and if it is greater than 0, the array is encoded in json and it is printed on the sc...

 
@Gordon see above message, dupe accounts for chat poster and OP
 
Any help really appreciated webmasters.stackexchange.com/questions/68415/… I have no idea how we ended up in that situation to begin with :S
 
user flagged
 
12:09 PM
@BenjaminGruenbaum have you tried crawling your own site with support.google.com/webmasters/answer/158587?hl=en ?
 
@Danack I did, the problem is it indexes the urls with #!, in the webmaster tools you have to manually feed it the escaped_fragment bit too since it's implemented at a lower level.
@ircmaxell I don't suppose you know anyone from search right?
 
@BenjaminGruenbaum Does the google crawler provide the 'referer' header? Hypothetically if it did you could fine where it was coming from...but you probably would have thought of that so presumably it doesn't.
 
@Danack it is indexing the pages correctly but for the wrong URL
 
12:33 PM
@BenjaminGruenbaum it's crawling ?_escaped_fragment_= pages and replacing that bit with #! in the url in search results? that's exactly what the crawling spec says it'll do
 
user895378
morning
 
Yeah, but I want it to replace it with "" and not "#!" since we don't actually have #! in our URLs, we use the <meta name="fragment"> tag
 
morning pretty :D
 
lol
I was talking to our boyband member :D
 
user895378
12:37 PM
@BenjaminGruenbaum that's an interesting question. I don't have any answers for you, but please keep us posted on your progress.
 
moin @BenjaminGruenbaum :D
 
user895378
@JoeWatkins Hi, Joe :)
 
@rdlowrey Thanks, spreading it to people you know who might be able to help would help if you know any.
 
Something went wrong on my mac. Having a few thousands lsof processes open in stuck state. How to kill them?
 
user895378
That's what you get for using single page javascript all the things :p
 
user895378
12:38 PM
kill -9
 
@rdlowrey no, it's stuck. kill -9 doesn't work.
 
user895378
I blame the NSA.
 
serious answer please :x
 
@rdlowrey mornings - can you just give these a quick read over/test, for some reason I cannot get an SSL client/server to work at all (keeps just failing to enable crypto). I'm sure it's PEBKAC.
 
@bwoebi reboot :D
 
12:40 PM
Running against the 5.5 branch, built from source, unpatched
 
reboot ?
 
apart from that, ideally.
 
user895378
@DaveRandom Do I need to build with your sweet, sweet SSL_pending() patch?
 
ah right ... okay ... try sending sigsegv ?
 
@rdlowrey Unpatched. Trying to create a simple reproducer for the bug
 
user895378
12:41 PM
oh okay.
 
user895378
@DaveRandom What led you to suspect block ciphers as the culprit, BTW? (just curious)
 
Not sure if I can persuade OpenSSL to send payload during the handshake, still not even sure that is the problem. One of the irriating things about debugging SSL problems with servers you don't control is you can't actually see the data being exchanged very readily with wireshark etc
@rdlowrey Not necessarily then being the specific culprit, but the reason the OpenSSL needs to have an internal buffer at all. It can only decrypt the block when it has the whole block, and if the client app requests less data than a whole block, the remainder has to be buffered somewhere
 
user895378
Makes sense.
 
user895378
@DaveRandom Yes, I've had this same frustration. At least we know the encryption works ;)
 
:-)
brb
 
user895378
12:44 PM
@DaveRandom Also, do you want me to run that against 5.5 specifically or does it matter?
 
@rdlowrey Doesn't really matter, although the patch is based on 5.5 so ideally I'd like to get a clean test where the only diff between the builds is the patch
really brb, need to do some cleaning or will get shouted at
 
user895378
k
 
user895378
@bwoebi Is your mac that's gummed up the same thing as the galaxycore box I sometimes connect to?
 
user895378
Because I was going to use it to test some quick php-src things ...
 
I think he's rebooting hehe
 
user895378
12:48 PM
lol
 
user895378
I have got to switch back to a real OS soon. This windows crashes literally every day.
 
+1 for real OS's ...
 
@rdlowrey yes, that one, I'm rebooting it now.
Getting kernel[0]: proc: table is full … :-/
 
@rdlowrey real OS? hm.. you must be a masohist if you're running Windows as a virtual machine while having normal OS instead..
 
never seen that before
 
user895378
12:52 PM
@AlmaDo The problem is that I use photoshop quite frequently. So I need windows. And running photoshop inside a VM is crazy because it's resource intensive.
 
I'm off out ... lata chaps :)
 
user895378
@JoeWatkins later
 
@rdlowrey add more memory :p Well, I thought it works well with latest WineHQ ? No?
bb @JoeWatkins
and good morning room, btw :p
 
@rdlowrey I've heard that photoshop works quite nicely on Macs....
 
@bwoebi congrats. you've overflowed system's max process count :D
 
12:57 PM
function display_array(&$array, $index=0) {
if (count($array)<=$index) return;
if (is_array($array[$index])) {
echo '[ ';
display_array($array[$index]);
echo '] ';
}
else
echo "'" . $array[$index] . "' ";

display_array($array, $index+1);
}

$array = array(
'black',
'green',
array(
'purple',
'orange'
)
);

displayArray($array)`

Why won't this return a value?
 
okay, back to business doing nothing
 
@rdlowrey something was going so badly wrong, even reboot -q failed (ungraceful reboot) … now restarted by holding the hardware power button for a few seconds…
@rdlowrey feel free to login now.
@Danack it does, yeah
 
@crypticツ Wow. Such sub-til-ty. Much amaze. stackoverflow.com/…
 
1:20 PM
Morning all
 
Mornging
 
user895378
@bwoebi that's nuts
 
user895378
@AlmaDo wine is a PITA.
 
user895378
@Danack So the solution to windows is buy a new computer and not install a free OS? ;)
 
user895378
But yeah, I see your point.
 
user895378
1:27 PM
I've just never owned a Mac and I'm unlikely to start now.
 
@rdlowrey the OS is free ;-)
just the required hardware (usually, apart from Hackintosh) is not…
 
user895378
lol, "free MacOS with every new computer purchase!"
 
back @rdlowrey - any clues as to why those server/client pair scripts are failing? Note that's not currently intended to demonstrate the bug, just trying to get a working pair of endpoints
 
@NikiC: Just read the AST RFC, Chapeau!
 
user895378
1:32 PM
@DaveRandom I'm sorry I got sidetracked in IRC trying to explain the problem and how you're awesome (see log). Testing now.
 
user895378
@DaveRandom What problem are you having with the scripts?
 
user895378
Oh wait, I need to create a self-signed cert to test.
 
user895378
We have some of those in ext/openssl/tests, I think.
 
user895378
@DaveRandom Found the problem.
 
@PeeHaa Senior developer.
 
:-)
 
user895378
@DaveRandom It's these lines the first couple calls to enable crypto are going to return "0" because it's non-blocking and there isn't enough data yet. You need to check for expicit === false to fail. Change this:
 
user895378
1:54 PM
if (!$result) {
    exit("Enabling crypto failed!\n");
}
 
user895378
To this:
 
user895378
if ($result) {
    $cryptoStatuses[$id] = $result === true;
} elseif ($result === false) {
    exit("Enabling crypto failed!\n");
}
 
user895378
In your server.php and it works.
 
@webarto Do we have any source of CC licensed douchey hipsters yet?
 
user895378
Well, the connection works, anyway.
 
user895378
1:55 PM
I didn't try convincing it to send the application data and demonstrate the bug.
 
@PeeHaa I'm guessing "Public" on Facebook? :P
 
ow yes. although I doubt that is licensed in a ay it is allowed to use it?
Alternatively I will go out and just find some goddamn hipsters on the streets :P
 
@rdlowrey Oh shit yeh, that's the problem, for some reason I was thinking it returned -1
 
@DaveRandom cough rookie mistake cough ;)
 
user895378
@DaveRandom I'm not sure how to coax it into demonstrating the error, though. Maybe using a CBC cipher and using sleep or something in the client so we know the application data will have been sent?
 
1:59 PM
jsfiddle.net/#&togetherjs=IjArs1bMy4 any idea why this aint working
bootstrap popover not working
js and css loaded in external
ideas?
im new to this m,aybe im doing something wrong entirely
 
@rdlowrey I have a couple of ideas about that, going to try a few things
@PeeHaa :-P
 
@tejas-manohar It's not phpfiddle
 
It's possible that latency plays a part, it may not work on localhost
 
@PeeHae its a php project i moved it out to jsfiddle to diagnose
seems same issue is there
if you can help, please help
 
How is anything hosted on jsfiddle related to php?
 
2:02 PM
ok you know what nevermind, it was a php project im working on but its alright i understna
if you can help, pelase help otherwise dont bother
 
Can somebody tell me why functions do not return strings sometimes?
 
@webarto else will always execute in a function if it doesn't return inside the if, so no need for the else
 
@CSᵠ Yes, figured, bad example, but still I avoid anything nested or chained. Thanks :)
 
Here's my code: http://www.codingforums.com/php/327719-return-value-doesnt-return-anything.html

For some reason, the return method doesn't work!
 
I see at least three paths which don't return anything
 
2:13 PM
Morning.
 
Morning @Leri
 
What do you usually do in situations like this:
- Can X be done?
- Yes.
- Great. Do it!
- Actually, I am busy with other much more important stuff that should be in X time.
- If it's doable than just do it. I don't see any problem.
How the hell can I explain to manager that I am only one person with only one brain and two hands?
 
user895378
Well, it's the manager's job to wring every bit of productivity out of you :)
 
@Leri Just explain that you can either do X or Y and let him/her make the choice
Managers are stupid so you have to explain everything
 
2:20 PM
@rdlowrey Well, those project usually require ~2-6 months and he knows that (i.e. I have already explained). It's mega stupid not to understand that they can't be done asynchronously by single person.
@PeeHaa I am doing my best. Thanks for advice. I only had programmer or ex-programmer bosses until now so they could at least know I can't do heavy projects async.
btw, @rdlowrey Can you implement some async lib so I'll be able to do that? :P
 
@Leri In my experience simply saying: I am more than willing to do it, but nope cannot be done. You have to make a choice
works pretty good
 
@PeeHaa Sounds promising. I'll test one out.
 
@rdlowrey I suggested to mine that we use Atlassian JIRA Agile thingy, it would help, because we're "waterfall" now, not that it doesn't work, but it takes more time...
 
@webarto agile is a myth though
 
I don't care how it's called, Trello would work too, it's just this Todo, Doing, Done columns really.
I too hate those words.
Still better than nothing...
 
Todo listing is awesome and managers kinda do it here... on paper. :D
 
You don't need all that stuff when bunch of folks are in one office, but when you have outsiders (khmmm), it's hard to explain what's going on...
 
-    * Generate a 'good' password.
+   * Generate a fucking good password.
Of course, thanks to @ircmaxell :D
 
@PeeHaa LOL
 
2:38 PM
@NullPoiиteя The amount of WTFs in those two sentences is astonishing
 
I'm looking for a comparison table of games difficulty in terms of AI. Here in chat there was such picture link, but can't find that :(
30 minutes of googling :\
 
@AlmaDo I believe it was in what games human defeats AI and on the contrary.
 
yep like that
 
2:47 PM
cake days
 
Room 3 is open for business!
5
 
Room 11 history lesson cc @ircmaxell :)
ow gratz btw @Ocramius!
 
3:12 PM
@PeeHaa what did I do? D:
 
6 hours ago, by Gordon
Happy Birthday @ocramius
Soooo you better came in here with beers
 
I already drank 'em all <_<
 
user895378
wrong room, dang it.
 
I saw it
 
3:49 PM
Finally back home lol, this Istanbul-Israel flight was my worse flight
 
Why?
 
Well had to wait 6 hours since 6 in the morning, after that we waited an hour and 20 mins inside the air plane due to a problem, landing was pretty bad, my position was at the end of the plane which is the worse for me
Also one drunk russian guy locked himself in the toilet in the landing XD
but turkish airlines are not bad
 
I had 2 flights with them today and yesterday, Sochi - Istanbul - Israel
 
@BenBeri That might have been @AlmaDo? :D
 
4:01 PM
ello =]
 
what u mean lol whos almado
 
Happy weeeeekends =]
 
Hola @RonniSkansing
 
@PeeHaa Well im not going to do transit with turkish anymore anyway (i hope)
 
Pizza in the oven, need to submit a job application today...
 
4:02 PM
:)
 
@webarto doubt since I've never drink a single blob of alcohol
 
4:16 PM
e'nin
 
hey @JoeWatkins
 
How did today go? Fallen of the stairs? Got stuck in something? Broken something?
:-)
 
totally unharmed, which is nice :D
 
\o/
 
4:18 PM
inorite ... 'mazin ...
 
4:42 PM
Am I the only one who is having trouble resolving packagist.org?
 
resolving fine for me
 
resolving for me
 
damnit. What is this 3rd world country of mine :(
 
@PeeHaa there's some weird stuff going on with dns....couldn't resolve imgur.com earlier.
 
Stupid broken dns... :(
What's their ip?
 
4:47 PM
@PeeHaa 87.98.253.214
 
tnx
 
@PeeHaa You mean I guessed it right?
 
Yeap :)
 
oooh an idea
anyone not in the uk ... can you do an ebay search for "NSR right hanger" and gimme link to results ?
(bike looks so sad in garage, I can't bear to let it go ... even though it tried to kill me)
 
@JoeWatkins ebay.com/sch/…
 
4:59 PM
evening
 
thanks @cspray
just as rare where you are I think ... there are 240 left in existence in the uk ... I think I'll be looking for a long long time :(
actually think it forces me to look at uk results ...
 
5:19 PM
I even fixed some bug today :)
 
w00t
 
.. but I kinda agree with that comment
 
lol.. I avoid reddit as much as possible
 
"I advise you do zend cert exam, so that employers know you are committed to your profession"
aaaaand I'm out ... he didn't even start his talk yet ...
 
so I'm not commited ..
 
ok so I left it on to see what other gems he had to share ...
"frameworks fill emotional needs"
that's enough, I closed it...
 
5:42 PM
hm.. hilarious crap
 
I can't sit through talks from people I agree with ... assertion after assertion goes unchallenged, by the end you have such a long list of assertions (mistakes) you want to challenge (correct), there is no logical starting place ...
 
5:57 PM
it's like watching a DHH lecture
 
sound is terrible too, really did have to turn it off ...
 

« first day (1407 days earlier)      last day (3541 days later) »