« first day (2027 days earlier)      last day (2921 days later) » 

12:00 PM
Get her to play it, too.
 
:D
 
is that a zx spectrum / c64 game?
 
she doesn't like games....
 
@kodeart :) PC
 
and why whould you play something that looks so ... bad? i guess there is some story here...
 
12:02 PM
@kodeart There is indeed.
 
because that would be the only reason to pay for this :D
 
I am also planning on buying a xbox in month or two.... am so excited :P
 
@PeeHaa modifications to ChatClient pushed, you'll need to composer install again when you pull
 
@DaveRandom and @PeeHaa both using chat for their personal chatting no connection with problem solution, community looks like public chat room...
 
Ekn
@Andrea may I ask why did you ragequitted? :p
 
12:07 PM
@DaveRandom Yes will do
@DaveRandom kk
 
@Ekn it involves Luka
 
Tesuji means "best move" btw.
 
@SagarNaliyapara When you are at a party do you demand that all the guests speak to everybody at once and have conversations that apply to everyone?
 
@DaveRandom I shout to everybody at once on parties
 
Ekn
12:08 PM
:D
 
@SagarNaliyapara That's because it is a public chat room.
 
@PeeHaa lol
 
Goddamnit. Now I'm sooo curious I have to uningore a avatar again
 
@PeeHaa Don't ignore, you have the power, kick.
 
12:11 PM
Do you peeps know how do you configure the nginx config to allow custom header variables to be passed in the request header, like user_id for example?
 
@SagarNaliyapara lol wtf are you about?
I don't solve problems in here?
 
does it count if you caused them first?
4
 
Nobody said anything about that so that's totally fine
 
@PeeHaa I remember. Those nuns were not happy. But at least the chickens survived, it's not like there were criminal charges.
 
then you're good
 
12:12 PM
@PeeHaa you does but you guys talking meaningless right now for others if you want to do personal chatting go and create you personal chat room...
 
See. I solved a problem
 
@SagarNaliyapara All chat rooms on Stack Overflow are public chat rooms, chat does not need to be strictly professional or to your liking. If you don't like it, leave. The main site is much more serious than chat.
 
@MadaraUchiha I do, but if I kick every person I mute it's going to be lonely :P
Also our bullshit / on topic ratio is rather good
 
s/lonely/peaceful
 
@PeeHaa no it's not really ...
 
12:15 PM
@JoeWatkins It really is.
 
@JoeWatkins Believe me, it is
 
we do spend a lot of time talking about crap like php ...
10
 
lol
 
Ekn
lol
 
12:16 PM
lol
 
lol
 
@PaulCrovella i see what you did there
 
what you guys are doing?
 
I'm drinking tea and wishing I had another Snickers
What are you doing?
 
Anonymous
12:18 PM
xD
 
I'm thinking about going out ...
 
@SagarNaliyapara I'm learning Xlib :)
 
ugh, why won't my extension build
 
Ekn
^^
 
main/internal_functions_cli.c:40:2: error: use of undeclared identifier
      'phpext_opcodekit_ptr'
        phpext_opcodekit_ptr,
        ^
any ideas?
 
12:18 PM
@Andrea Why not ping @JoeWatkins?
 
look in module header
 
He's is the php7 ext master
 
#define phpext_opcodekit_ptr is missing I think ...
 
enjoy enjoy everyone
 
@JoeWatkins it was missing it before but it's there now
 
12:19 PM
Remembered to Ctrl+S?
 
in the header ?
 
afk...
 
@JoeWatkins yeah
 
pushed somewhere ?
 
I could
 
12:20 PM
do that, I'll look, if you want ...
 
wait wtf
named repo wrong
 
I already found it, you committed object files btw
 
@JoeWatkins and I already fixed that :)
 
cool
 
... zend_object is a variable length structure?
 
12:25 PM
well, no, but properties are allocated inline with zend_object
 
@Leigh sorta.
 
What's your stance on magic a __toString method for stuff like github.com/Room-11/Jeeves/blob/master/src/Chat/Plugin/… instead of the implode? @DaveRandom others why want to argue about code?
 
yeah sorta
 
I was wondering why when you attach a resource to an object (like this) the resource always comes before the zend_object
 
@Leigh there's a fixed-size portion, but there's also custom data (extensions) and an arbitrary number of property fields
@Leigh because the zend engine wants to stick stuff after the zend_object :D
 
12:26 PM
@PeeHaa A command has more data than just the parameters so (for me) __toString() should return the whole command, if anything
 
so if you put the resource after, it'll get overwritten by property zvals :p
 
@Leigh exactly
 
@DaveRandom k
 
and it's done like this rather than a pointer to a properties table for speed I assume?
 
IIRC in PHP 5 it was fixed-size, but, y'know, tempora mutantur
 
12:27 PM
I'll just have to come up with a method name
 
@Andrea correct, convention used to be the reverse, with zo at start of custom objects, and no inline props
 
@PeeHaa rebecca() always works
 
yes, perf
 
@Oldskool I should make a site that suggests method names based on Friday
 
@PeeHaa what's wrong with the implode()? It's explicit... Any reasonable method name would likely be so long as to make it pointless
 
12:31 PM
@DaveRandom I think the thing I'm actually annoyed about is the fact that I need implode more often than the individual flags
 
@Andrea That would be awesome. Because you know you'll want to $this->gottaGetDownToTheBusStop($rebecca); at some point.
 
I need to think about why I hate it
 
@Andrea not able to reproduce, try clean build I think
you're missing some tsrm junk ...
 
@JoeWatkins hmm, okay
 
you were building static against master, right ?
 
12:32 PM
@PeeHaa If you want to add a convenience method of getParameterString() then go for it
 
@JoeWatkins who needs TSRM? :p
@JoeWatkins yeah, well, PHP-7.0
 
actually I'm on PHP-7.0, I thought I was on master, but built static no problem
krakjoe@fiji:/usr/src/php-src$ sapi/cli/php -m
[PHP Modules]
Core
ctype
curl
date
dom
fileinfo
filter
gd
gmp
hash
intl
json
libxml
mbstring
mcrypt
mongodb
mysqli
mysqlnd
opcodekit
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
whatever
xml
xmlreader
xmlwriter
zip
zlib
krakjoe@fiji:/usr/src/php-src$ sapi/cli/php -v
PHP 7.0.7-dev (cli) (built: May  4 2016 13:28:26) ( ZTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
@Andrea travis default, want me to do it ?
(and windows default too)
 
@JoeWatkins oh, CI? uh, I guess that could be useful…
 
no, TSRM stuff, zts is default on travis and windows
 
@DaveRandom I need to give it some more thought. The longer I look at it the more I start to hate the entire thing.
I'm thinking about having specific parameters things now for commands instead of having to rely on the index. But I may be overthinking it @DaveRandom
brb smoke
 
12:39 PM
@Andrea
diff --git a/config.m4 b/config.m4
index 526567e..ad12166 100644
--- a/config.m4
+++ b/config.m4
@@ -6,5 +6,5 @@ PHP_ARG_ENABLE(opcodekit, whether to enable opcodekit support,

 if test "$PHP_OPCODEKIT" != "no"; then
   AC_DEFINE(HAVE_OPCODEKIT, 1, [ Opcodekit ])
-  PHP_NEW_EXTENSION(opcodekit, opcodekit.c, $ext_shared)
+  PHP_NEW_EXTENSION(opcodekit, opcodekit.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
 fi
diff --git a/opcodekit.c b/opcodekit.c
index 81b60ff..4ff186f 100644
--- a/opcodekit.c
afk
 
@Joe cool
still won't build for me
not sure why
 
@PeeHaa @Saitama Care to explain?
I can't believe that does anything useful/is required?
 
IIRC libxml/domdoc fucks up utf8 somehow
 
Yeh but that is on the string before loaded into DOM, surely that's not going to help anything?
 
I think it does, but now people are pointing at me I'm not sure anymore
Try github !!google peehaa
with and without
 
12:47 PM
@Andrea Tempora mutantur is somewhat weird … as it actually means times are changed and not times change/are changing (tempora mutant)
 
@PeeHaa yeh will do
 
@Andrea what build failures do you get?
… ah
 
@bwoebi interesting
also it's not classical latin apparently, comes from 16th-century Germans
 
@Andrea don't know much about post-classic Latin though…
 
/me sings for the tempora, they are a' mutantur
 
12:51 PM
<?php echo ($hquestion->questiontype == "true_false")?"True-False":($hquestion->questiontype == "single")?"Single Answer":"Multiple Answers"; ?>//prints "Single Answer" even for "true_false" can anyone tell me why ??
 
You deserve every terrible thing you get
 
ThW
@PeeHaa The result from google is ISO-8859-1?
 
Is that a question or a remark?
@PraveenKumar Don't nest ternary stuff
 
@PeeHaa it has a question mark at the end
 
@Andrea is the internal_functions_cli.c including the required header?
 
12:53 PM
What is ternary stuff ??
 
Symfony's auth component has weird method name: denyAccessUnlessGranted .. sounds a little "duh", like dontEatUnlessHungry or dontShoutUnlessDrunk.
 
I think the conditions are right but a bit nested
 
Ekn
that awkward moment when your phone dies after you test push notifs 345829 times...
 
@PraveenKumar dont use ternary stuff if you dont know what ternary stuff is
 
@PraveenKumar actually, they aren't. The condition is the whole ($hquestion->questiontype == "true_false")?"True-False":($hquestion->questiontype == "single")
use the parens around the whole ternary, not the conditions
 
12:55 PM
Even google is showing no results for ternary stuff what is this actually ??
 
@ThW content-type:text/html; charset=UTF-8
 
!!google ternary operator
 
Ternary operation - Wikipedia, the free encyclopedia | Ternary Operators - Wikipedia In computer programming, ?: is a ternary operator that … | Ternary operation - Wikipedia, the free encyclopedia In computer science, a ternary operator is an operator … | Search Url
 
@PraveenKumar ^ that
 
@bwoebi it doesn't seem to include any headers directly
 
12:56 PM
Which is odd I thought the missing <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> would mess up domdoc @ThW but it is actually in the document
 
I should figure out which include is eventually including it
 
ThW
@PeeHaa Then utf8_encode() is wrong. It converts ISO-8859-1 to UTF-8.
 
But but but it works :P
 
@bwoebi you mean <?php echo ($hquestion->questiontype == "true_false"?"True-False":$hquestion->questiontype == "single"?"Single Answer":"Multiple Answers"); ?> this ?
 
@Andrea it should include them directly … if not, then you have some configure failure… or buildconf fail
 
12:57 PM
No idea what messes it up in that case
 
I want my entities to be as decoupled as possible from doctrine, so I don't like the annotations... what are you guys using for the mapping? xml? yaml?
 
@PraveenKumar <?php echo $hquestion->questiontype == "true_false"?"True-False":($hquestion->questiontype == "single"?"Single Answer":"Multiple Answers"); ?>
 
It breaks somehow on ·
 
ThW
@PeeHaa loadHtml() loads html as ISO-8859-1 by default (if here is no encoding specified in the HTML itself).
 
@PraveenKumar Just a tip, if you're ternary is getting complicated, then switch to if clauses instead, it offers a better readability.
 
12:59 PM
@bwoebi Its working but can you tell me some details about my case that where i was wrong
 
@Andrea buildconf is actually looking which header declares the extern ptr … did you re-buildconf&configure after adding it?
 
2 mins ago, by PeeHaa
Which is odd I thought the missing <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> would mess up domdoc @ThW but it is actually in the document
I am confuse
 
@PraveenKumar your code was parsed as <?php echo ($hquestion->questiontype == "true_false")?"True-False":$hquestion->questiontype == "single"?"Single Answer":"Multiple Answers"; ?>
 
@bwoebi I'm redoing buildconf this time I think…
oh
it built
 
@Epodax @bwoebi @PeeHaa @Gordon Thanks to all i have done this with normal if else and it was working but just curious where my line had error
 
1:01 PM
thanks for the help @bwoebi, @Joe
 
@bwoebi just a question that if it satisfied $hquestion->questiontype == "true_false" then why it executed next line(In my case). it should break there naa.
 
ThW
@PeeHaa weird
 
@PraveenKumar woop,s I meant ` <?php echo ($hquestion->questiontype == "true_false"?"True-False":$hquestion->questiontype == "single")?"Single Answer":"Multiple Answers"; ?>`
 
@ThW google does mangle their html so maybe that's the issue. Or more likely we screwed something else up
 
1:04 PM
@bwoebi Ohhkkk got this now thanks :)
 
definitely not a waste of 36 minutes, that was :D
 
google does weird things like not closing their tags because most browsers will handle it just fine. It makes sense considering how many people load google.com each day...
 
@Andrea Where's the "Skip to Monday" button?
 
@bwoebi I'd prefer a "Skip Monday" button.
 
Ekn
^
 
1:07 PM
hah
 
<?php declare(strict_types=1);
namespace RebeccaBlack\Friday;

class Party
{
    /** Gotta have my bowl, gotta have cereal
     */
    public function gottaHaveMyBowlGottaHaveCereal() {
        /* ... */
    }
}
3
it works
 
Ekn
:D
 
@Andrea LOL, deploy nao!
 
if you're curious, the actual code is:
$lines = array_values(array_filter(explode("\n", $lyrics), function (string $s): bool { return strlen(trim($s)) > 0; }));

$line = $lines[mt_rand(0, count($lines) - 1)];

preg_match_all('/\b([a-z\']+)\b/i', $line, $matches);
$matches = $matches[0];
$matches = array_map(function (string $s): string { return str_replace("'", "", $s); }, $matches);

$identifier = strtolower($matches[0]);
for ($i = 1; $i < count($matches); $i++) {
    $identifier .= ucwords(strtolower($matches[$i]));
}
 
@Andrea github.com/Room-11/Jeeves Put it into a !!rebeccanizer plugin ? :D
 
1:14 PM
Now we just need some line-specific stuff.

    public function whichSeatCanITake(SeatCollection $seats) {
        /* ... */
    }
 
@KevinMGranger heh, yes, that would make sense
 
Anonymous
\O/ 45 days left to a new laptop
 
@PeeHaa @DaveRandom I can confirm at least that utf8 encoding windows1251 encoded data makes DOMDocument barf
 
@Leigh The thing is, the input string already is UTF-8. So utf8_encode() will at best do nothing.
 
Hello
 
1:21 PM
Yo dawg, I heard you like hosting your avatar on facebook so I can't see it when I'm at work.
 
Not the best meme caption, I'll grant you
 
Thats the whole idea behind it
 
@DaveRandom Ugh, yeah that one is pretty bad :(
Also, you've got censorship at work? Ouch.
 
I should be working
rn
 
1:25 PM
Just a reminder that "facebook at work" is a thing: work.fb.com
 
@DaveRandom I assume you're not using curl, bad stuff happens when http headers conflicts with html meta data (regarding content encoding)
 
@KevinMGranger cert error
 
!!wotd
 
toponym: a place name.
 
Mixed content error, or does your workplace intercept?
 
1:27 PM
@Leigh Both content type header as well as meta tag say it's giong to give utf8
client is artax
 
@Leigh no, artax. And there's no meta in the doc (surprisingly, it's a google search results page) but the headers declare it to be UTF-8. I guess it's cheaper for them to cache a page with no content-type meta decl and just munge the data encoding if needed and send it in the headers
 
@DaveRandom There isn't?
 
The <?xml encoding trick seems to work though
 
I just got one in my browser
 
(which is what I am working with atm)
 
1:29 PM
@DaveRandom Are you disabling jabbascript?
 
?
I'm looking at the source
Which is obviously what Jeeves is doing...
 
Yes, but with js enabled I think you get different html
 
Oh yeh, there is one in the artax response
well whatever
2 mins ago, by DaveRandom
The <?xml encoding trick seems to work though
 
probably does funky stuff based on user-agent
 
@DaveRandom True
 
1:31 PM
(without the utf8_encode(), which I'm pretty sure would break the data if it's already utf-8?)
 
depends on the data, but yes
 
i told a guy to change his max_upload_filesize in his php.ini file
his reply
"I have already changed the upload_maxfilesize via the WordPress Dashbaord. This is not enough ??"
upload_max_filesize*
 
1:44 PM
Tell him to hire a developer.
 
@Andrea .funky { ... text-shadow: -5px -5px red, -4px -4px red,-3px -3px red, -2px -2px red, -1px -1px red, 1px 1px blue, 2px 2px blue, 3px 3px blue, 4px 4px blue, 5px 5px blue; ... }
bu... but.. why?
 
After noon lads
 
@KevinMGranger mixed content
hmm. no cert errors in chrome though
 
2:02 PM
@Saitama strict_types=1 deserves such splendour
 
:/ okay.
 
2:25 PM
@PeeHaa @Saitama @Joseph @PaulCrovella @anyone testers for new !!google format plz chat.stackoverflow.com/rooms/110670/nothing-to-see-here
errr... I meant @JoeWatkins, sorry Joseph
but feel free to test as well
 
why does it cast to integer?
:30340112 what?
 
@SergeyTelshevsky Nothing sorry
 
do you put mock implementations in the src or the test folder?
 
test
Nobody wants that test stuff on production
 
@SergeyTelshevsky stackoverflow.com/questions/4100488/… this is the answer to your question
 
2:38 PM
@bwoebi @JoeWatkins I had some contact with Dmitry this morning - I can't work on it right now but I think Dmitry and I will have one RFC between the two of us sometime today.
 
@PeeHaa i thought it could make sense to keep all the implementations together, but I guess you are right...
 
@LeviMorrison okay, sounds great; I'd like to see a draft (before submitting) if possible
 
why do I only stumble upon it now..
 
@bwoebi It's going to pretty much be this RFC: wiki.php.net/rfc/nullable_types
 
ok good
 
2:40 PM
He wants me to make a note of the BC break that is bugfix material aside from the BC break.
And use the voting propositions from his RFC.
 
well.. OK if it's interpreted, but explicitly putting quotes.. and strictly checking
 
(split the return types and parameters votes)
Alright, back to work. Just wanted to give you guys that update.
 
thanks :-)
 
2:52 PM
What is the difference between using the keyword "use" and using it combined with as "use some\name\space as something" ?
 
@user297904 use can be used in two cases
As a way to pass variables from the outside into a callable, and as a namespace import.
 
@MadaraUchiha 3
 
@PeeHaa Hmm? What's the third?
 
traits
 
@PeeHaa Right
 
2:54 PM
What do you mean exactly as a trait ?
 
I also forgot about it when I asnwered the exact same question by @user297904 yesterday
 
"PHP, we don't want to be vague, so we use different keywords for everything, only that would make us consistent so now use means 3 different things!"
 
Bobs-MacBook-Pro-2:~ bob$ php-src-X/sapi/cli/php -r 'class A { function foo() { static $a = 1; var_dump($a++); } } (new A)->foo(); if (1) { class B extends A {} } (new B)->foo(); (new A)->foo();'
int(1)
int(2)
int(3)
Bobs-MacBook-Pro-2:~ bob$ php-src-X/sapi/cli/php -r 'class A { function foo() { static $a = 1; var_dump($a++); } } (new A)->foo(); class B extends A {} (new B)->foo(); (new A)->foo();'
int(1)
int(1)
int(2)
@NikiC ^ aaaah, I love our binding rules…
 
@MadaraUchiha Yeah, but introducing new keywords also sucks
 
@PeeHaa Let's be honest here
At least one of those things should have been named import.
 
2:55 PM
True
 
Since I started working with laravel I discovered many php keyword that I never heard of
and never needed also
 
@NikiC In former case, $a is converted to a reference before binding (and thus duplication) - so the reference is shared. In latter case $a is converted to a reference after binding, so the two op_arrays have different reference pointers...
 
(If you do another (new B)->foo(), you get int(4) in former and int(2) in latter)
@NikiC btw. when we're going to use a static zval array, we'll have it always a reference, which IMO is also correct behavior
 
Anonymous
@PeeHaa What repo?
 
2:59 PM
phpoauthlib, but I removed it for now
 

« first day (2027 days earlier)      last day (2921 days later) »