« first day (2450 days earlier)      last day (2723 days later) » 

00:15
How's everyone doing today?
 
2 hours later…
01:53
Detected a cyclic dependency while provisioning
 
2 hours later…
04:05
morning
hodor (English perspective)
morrrrrninng
o/
Morning
@bwoebi For some reason Aerys tests are crashing on travis: travis-ci.org/amphp/aerys/jobs/249022910#L439
04:41
Morning
05:01
posted on July 01, 2017

New Cyanide and Happiness Comic

@shadowhand packagist.org/packages/dto/dto not sure see if this can help :)
@Trowski dunno what's causing this SIGBUS… … but while debugging this I've managed to crash my OS a few times :-P
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE  63 / 293 ( 21%)
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 126 / 293 ( 43%)
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 189 / 293 ( 64%)
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 252 / 293 ( 86%)
EEE.......EEE..E...EEEEEEEEEEE..........E                       293 / 293 (100%)
making progresses!
yesterday, by Wes Stark
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE  63 / 293 ( 21%)
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 126 / 293 ( 43%)
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 189 / 293 ( 64%)
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 252 / 293 ( 86%)
FFFEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE                       293 / 293 (100%)
:B
@Trowski oh, it's just SIGPIPE within phpdbg, not SIGBUS. oops.
morning bob
05:15
@Trowski php CLI catches sigpipes, but phpdbg doesn't. If I add a dummy Loop::onSignal(SIGPIPE, function() {}); it works
@bwoebi That makes more sense than SIGBUS.
morning Wes,bwoebi.Trowski
\o all
o/
@Trowski (yeah, SIGBUS is 139, not 141)
05:15
@Linus o/
moin you both
\o
@bwoebi So that test must be writing to a closed pipe then?
@Trowski yes.
uuuuh
… it's trying to write to a closed pipe within SSL shutdown of the resource…
Odd that it doesn't happen locally.
05:19
@Trowski with phpdbg?
Oh, duh… forgot the phpdbg part. Yes, it fails with phpdbg.
With NativeDriver.
yeah, backend doesn't matter
did you ever try to get a backtrace of something executed in phpunit?
~50mb and i'm even using limit = 3
@WesStark print new \Exception; gives you a nice trace…
goes like this forever
and i wish i know why there is no [file] and [line] property
    [2] => Array
        (
            [function] => testWhatever
            [class] => Foo
            [type] => ->
            [args] => Array
                (
                    [0] => lol
                )

        )
Undefined index: file
any clue bwoebi?
05:35
@Trowski probably happening due to our use of stream_socket_shutdown(), which, apparently, when combined with a SSL connection creates some problems…
This needs a fix in php-src I guess
@WesStark It probably was called from within internal code. Check the next frame.
@bwoebi Ah, that makes sense.
ah, could be
@Trowski It needs to be handled properly within php_openssl_sockop_set_option()
Was apppying for a job here in japan as a new grad and one of the questions says, in japanese, "how many lines of code have you written in your life?" How does one even answer that?
05:44
Thought it was a thing of the past lol. I dont know even approximately how many lines i ve written. And it is a mandatory field
i'd answer: 0, i don't write code, i write fantastic legendary tales in the form of novels and poems, made up of monospace characters
05:50
oh, you're all still bitches ...
@Trowski Am I seeing this correctly, that it's essentially just needed to call SSL_shutdown() when SHUT_WR is passed?
@bwoebi Might be more complicated than that: stackoverflow.com/a/25063353/2439754
Considering you probably don't want to deal with catching a SIGPIPE, yes I think you just call SSL_shutdown() before shutdown().
morning Joe
DateTime::createFromFormat in PHP 7.0 creates wrong object – #74839
06:10
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
index c56e67f365..4c9aad352a 100644
--- a/ext/openssl/xp_ssl.c
+++ b/ext/openssl/xp_ssl.c
@@ -2406,6 +2406,14 @@ static int php_openssl_sockop_set_option(php_stream *stream, int option, int val
                                        /* fall through */
                                        break;
                        }
+
+               case STREAM_XPORT_OP_SHUTDOWN:
+                       if (sslsock->ssl_active && (xparam->how == STREAM_SHUT_WR || xparam->how == STREAM_SHUT_RDWR)) {
@Trowski ^ with this patch I don't trigger the sigpipe anymore
but I'm no expert there … I don't feel safe committing that straight ahead
I'm going to PR that and ping people…
Seems fine, but good idea.
moin
o/
06:49
@bwoebi You like debugging OPCache bugs, right? :P
07:01
split vertically in phpstorm actually splits horizontally
and also horizontally splits vertically
just because
luckily there is the icon that helps
@kelunik no. Though I've already started looking.
@WesStark well… what's a vertical split? A split that has two vertical sides or a split having two sides within one vertical?
-------------------|----------------->
that's "split horizontally" for me
Splits vertically for me.
@WesStark But the split line is a vertical there.
however you can say it's a "vertical split" with split being a noun
split is used as verb though
07:15
Anyway, just trust the icons. :P
splitting horizontally to me means i'm dividing on the x axis
@kelunik no, i'm gonna make a mess on the bug tracker
:B
@Wes …
07:56
@WesStark amphp logo
already on it
i'm doing the forehead for the 23922039th time
Does @Jeeves output that periodically now? :D
@kelunik Because you're not. You're a computer, I am a human.
every hour till i either die or finish it
:B
Morning
08:04
there are some snaps in rhino that are great @kelunik, like a million more than illustrator
however it lacks some of the most basic ones :B if i draw a curve that ends in a point, i can't easily draw a tangent line from that point
I'm pretty sure for some weird reason I lost my wireless driver last night aaand again for some weird reason it's now back ...
morning
morning Ekin
08:20
\o
o/
\o
@Ekin Did you find the cause for the wrong symlink of /etc/resolv.conf?
So far, nope
I've had no chance to take a look again after I restarted ubuntu and lost the wireless driver though. That was so weird...
Ugh it's 38°C here ...
user924016
08:32
morn
o/
user924016
\o
Good weather
3 messages moved to Trash
morning
o/
@bwoebi @NikiC Assigning the result to a variable first before returning it makes the OPCache issue go away. github.com/amphp/dns/commit/…
huh
@WesStark are you doing the logo?
08:57
i am i am
09:11
@kelunik what's your last pick, should the head face right or left?
Right.
because we ain't communists :B
(i have no preference obviously :B)
right is ok
@kelunik so, the value returned is identical to the retval of $this->queue (in finally) instead of the yield, right?
@bwoebi No, array_shift doesn't return arrays there, $this->queue contains instances of Deferred.
@kelunik I meant the property, not the function call, sorry
09:24
That might be the case, yes, but array_shift is actually never called there.
yeah, but the if() condition is executed. if the if() is entered, it will be the retval of array_shift()
Because of temporary reindexing
Yes, but the if() isn't entered.
The queue should always be empty there in our tests.
right, that's why you get an empty array
The queue is only filled when there are quite a few pending requests. github.com/amphp/dns/blob/…
Yeah, found it, will fix.
09:28
Which cases are affected?
Basically all returns of temporary values (i.e. everything not a constant value or a variable) within finally inside generators are prone to the error (whether you actually see the error depends on the concretely attributed numbers of the temporary values within the finally and the return value temporary).
I don't think we have many cases with return yield and finally.
Bobs-MacBook-Pro-2:php-src-X bob$ ~/php-src-X/sapi/cli/php -dzend_extension=`pwd`/modules/opcache.so -dopcache.enable_cli=1 bug74840.php
int(3)
int(3)
Bobs-MacBook-Pro-2:php-src-X bob$ cat bug74840.php
<?php

$g = (function($a) {
	try {
		return $a + 1;
	} finally {
		$b = $a + 2;
		var_dump($b);
	}
	yield; // Generator
})(1);
$g->next();
var_dump($g->getReturn());
Is this correct?
It's not valid to use a relative URL in a Location header, you should form an absolute URL like mysite.com/some/path.php
09:44
Opcache overwrites argument of GENERATOR_RETURN within finally – #74840
@bwoebi 7.0 is also affected.
@kelunik yeah
every version since GENERATOR_RETURN has been introduced
fixed…
@bwoebi Did you verify github.com/php/php-src/commit/… runs with OPCache enabled?
10:00
@JoeWatkins @WesStark isn't doing the logo :(
i ammm
i am living a geometric nightmare
and i blame @JayIsTooCommon for it
lines, lines everywhere
@kelunik huh? how should I test opcache without running opcache?!
@bwoebi The test will just work fine with OPCache disabled, are tests always run with opcache?
@kelunik on travis, yes (there are always two runs… one normal and one debug with opcache). Also I for sure did run it manually locally ;-)
 L160  #85    YIELD                   @1                                        @5
 L160  #86    FAST_CALL               J103                 @5                   ~0
 L160  #87    GENERATOR_RETURN        @5
@kelunik ^ it's also using an extra temporary (@5) instead of @1 as before (the dns code)
Anyway… that was quite the simplest finally bug I've ever seen :-P @NikiC
10:20
Going to tag a new release for amphp/dns then.
@kelunik yeah, feel free to reference the bug report
ah, you already did :-)
i think i'm ready to try out a render
Mornigins
@WesStark \o/
10:31
with the legs i've decuplicated the complexity. but still simpler than the eventual spiral
@PeeHaa morning
posted on July 01, 2017 by kelunik

- Added work around OPCache issue (https://bugs.php.net/bug.php?id=74840)

FFFFFFFFFFFUUUUUUUUUUUUUUU
made a mistake
@kelunik this is my level of discomfort i.imgur.com/QL31qvj.png
@WesStark Why did you add the foot?
in amphp/design, Jun 22 at 14:53, by Trowski
I can get circles for a good price. Custom die stickers, no way.
i'll pay for them. leg's good
i just had to try it
then i'll do the spiral too
in the worst case you'll have another elephant that you can use somewhere else in the site, like in the homepage, perhaps with all the body
ok?
anime ^
@WesStark nope. fail
ITS ACTUALLY A LEGENDARY SONG
mornes 11 o/
i don't trust you
\o all
@pmmaga o/
11:04
\o
i've fucked up again
@Danack google.nl/maps/place/Gollem+Beer+Caf%C3%A9/… @ 21h30? cc/ anyone else in (or willing to come to) Amsterdam :P
11:24
@WesStark Do you have a render yet?
sorry fucked up colors, had to redo them -__-
do you guys use xdebug?
kinda
my xdebug is catching an exception whenever i open phpmyadmin
have you ever encountered that?
well .. we dont use phpmyadmin
11:26
well, there goes my luck
what that exception actually says?
i'mma recreate, a moment
Exception has occurred.
Exception: Specified context ("\PhpMyAdmin\SqlParser\Contexts\ContextMySql100124") does not exist.
C:\xampp\phpMyAdmin\vendor\phpmyadmin\sql-parser\src\Context.php
i was planning on switching to postegreSQL some time ago but i haven't finished on going projects yet so i'm stuck with phpmyadmin
sounds like you might have a broken phpmyadmin version
have you tried using MySQL Workbench ?
i'mma try that, thanks
is it free?
yes, there is "communit edition"
11:37
thx, what is your environment setup for php?
Anonymous
@tereško s/MySQL Workbench/SQLYog
Anonymous
MySQL Workbench is ghastly
@MikoChu atom + workbench + php + servers in a VM
@samayo is that so? do you preffer SQLYog?
then again, I have switched to Arch as my primary OS (for both work and home PC)
11:39
@tereško i've tried setting a headless VM too for my environment but I'm having difficulty, do you have any resource that I can watch or read to guide me build my VM environment for php development?
not really
anyway, I'm AFK: shopping
@samayo dude, that dbms is not free, not cool :c
Anonymous
yeah SQLYog is superior in every way
yeah but expensive in every way
@PeeHaa When will you rewrite async-twitter to Amp v2?
11:42
freelancing kinda pays super duper small, so i kinda stray away with commercial stuff
@kelunik Yes working on it now
Anonymous
@MikoChu It's free if you can borrow it :)
@samayo like a free trial? or does it involve a friend?
Well not exactly now, but close enough. Current status is fixing the last gitamp stuff. Also making gitamp ready for supporting different providers (i.e. twitter) after that (tonight probably) I will start the work on twitter
@samayo do you use VM too for development? if so do you know any source material that i can read or watch to help me setup mine?
11:44
The actual amp rewrite part of twitter is easy, but I need to rethink my initial design of the project because I am stupid
Either way expect it finished (/ pre-release) tomorrow
Anonymous
Yeah. I have centopia in my github page check it out if you want to install VM and install all the tools from scratch @MikoChu
where can i find ur git?
Anonymous
you are ghastly, can you check my profile
i tell that everyday to myself in front of the mirror
Anonymous
Sidenote: I have decided to use the word "ghastly" quite extensively from now on everywhere
11:49
@PeeHaa You can replace github.com/Room-11/Jeeves/blob/master/src/Plugins/… with streaming then :D
@kelunik I can't (just yet) :P twitter is easy to rewrite to v2. Jeeves is a whole other game :D
What makes Jeeves hard?
More dependencies (think e.g. async-cleverbot) and more code and tests
async bitly
etc
Bascially I have a lot of libs to convert to v2 :P
Anonymous
!!wotd
exurb: a small, usually prosperous, community situated beyond the suburbs of a city.
11:53
If twitter is fine we can tag v3 of artax I guess.
kk
Will ping you once I migrated libs and ran the tests
should i avoid using array-intersect-key() ?
Weird question of the day
Are you having a specific problem with it?
But yes, I'd say avoid all the diff and intersect functions
is he bullying you?
12:01
naah im just wondering if its something one should avoid
If you use your own hash based implementation at least you know what's going on
@WesStark I think I might need your advice
i wouldn't trust what i say, but go ahead :B
Bit hard to explain but here it goes
My backend (giggity) pushes events to the frontend (giggity). Events should be styled.
I want to use classes for this
Currently I am only supporting github events so I can have classnames like pr-event, issue-event etc
But I want to make it generic
Is there any better class naming scheme to come up with besides event-1 event-n etc?
what kind of events are them? doesn't xml rpc have something you can copy?
12:09
@PeeHaa github-pr-event, github-issue-event, twitter-tweet-event
@WesStark Could be all kind of events. From all kinds of source. I meant css class names
@kelunik But that means I cannot use generic classes for all sources
http://schema.org/InteractionCounter
http://schema.org/Event
i use these
@PeeHaa What do you use the classes for?
afternoon, bitches
Basically just the coloring of the event circles
@JoeWatkins Morning biatch o/
Waaaait
Hmmm nope
12:11
@PeeHaa Then just hash the event name and use % number_of_colors.
ha, as mentioned ... bitch ...
@kelunik hmmmm
Gonna think about it for a moment while making coffee
meh … can we just greet normally instead of calling ourselves bitches @Joe @Pee …
You're just not street enough
12:45
@kelunik @bwoebi @PeeHaa
i fucked up something but you get the idea
also i forgot to shade the upper part of the ear
-__-
@JayIsTooCommon ^
These feet just do not fit there
@WesStark nooooo
i like it :(
you have to know when to stop...
@WesStark please, it shall be round…
12:56
is it hopeless?
i know this can look good, however i don't know if it's gonna be better than the other one
you hate it
/me cries a bit. then does the other one
yeah don't like this one wesley
Sorry
Anonymous
...
Anonymous
yesterday, by JayIsTooCommon
@WesStark https://chat.stackoverflow.com/transcript/11?m=37733000#37733000 just ship it
Anonymous
@WesStark sorry :(
Anonymous
Hey bitch @bwoebi o/
13:08
...
@JayIsTooCommon that's horrible
why is mysql workbench not responding whenever i connect to a connection?
probably because something's fucky
god i hate my environment
is the mysql server up? and is it reachable from your machine?
13:14
yeah
we meet again, spirals
i go database>connect to database

then hit ok with default values in it, then later provide my password, then when I enter it loads and then quits
@MikoChu can you connect to your server using CLI client?
wonderful ... somethings fucked
I guess you can safely remove the workbench
13:17
C:\xampp\mysql\bin\mysql.exe -u root etc etc
no, i like the ui of workbench, i'mma try the VM i've been configuration for sometime now
@bwoebi github.com/amphp/dns/compare/v0.9.2...v0.9.3 helps for the DNS tests, but I still hit that bug when running inside mellon.
@NikiC What's the status of the Generator GC bug fix?
@kelunik I'm surprised this helps at all
It probably helps only in rare cases.
@bwoebi The strange thing is this happens on the server, but the server doesn't even have OPCache installed.
Wait...wrong binary...
@bwoebi I guess it should just return the value after the try block?
13:33
@kelunik yes, that definitely should work.
0
A: Using MSSQL CONVERT in Eloquent/Query Builder Laravel

xmhafizuse DB::raw() for your select statement. $results = DB::connection('RF_USER')->select( DB::raw( "SELECT username = CAST(id as varchar(255)), password = CAST(password as varchar(255)) FROM tbl_rfaccount...

Anyone who can help me out? XD
@bwoebi I'll try that and commit it if it works.
@HassanAlthaf You already got the answer
@PeeHaa It doesn't wokr.
I get two exceptions.
Well fix them
13:36
I have no idea why they come up.
Apparently the syntax is incorrect.
Have you looked at the generated query?
Yes
But it was quite useless. It gives the before-binding quer.y
Aaaaand?
It does not give the final query.
What does the final query mean?
13:37
which is actually executed after binding.
Of course it doesn't
It's a prepared statement
I get the same thing I wrote, along with an array that contains the var i want to bind
And what happends when you run that in your sql client
It works, of course but without a prepared statement.
Even on PHP, when I just write a string instead of the parameter placeholder,
@kelunik I was btw. wrong and thought that directly returned variables would be direct args to the GENERATOR_RETURN op, but no, the value is written to a temporary in order to avoid manipulations of the variable in finally affecting the actual returned value…
13:39
It works fine.
The problem is on binding.
Shitty binding isn't working.
This is one of the errors I get.
Second error.
$foo = 1;
try {
    return $foo; // must return 1, thus $foo is backed up into a temporary before calling finally...
} finally {
    $foo = 2;
}
Is it a bug or something?
Well drop using eloqunt
I'm not even using Eloquent
It's the query builder
I guess I'll have to use PDO directly.
Whcih is part of eloquent
13:42
I believe DB is an abstract API for PDO.
And Eloquent uses DB?
By DB, I mean Query Builder, or the DB Object
Guess I'll have to use plain PDO.
@pmmaga yes, but also could have a beer first at the bar just outside the conference first - by the water.
Suspect there will be quite a few people heading somewhere - do you know if the place you linked is the consensus destination?
@DamienOvereem sorry - haven't bumped into yet. If you want to say hello I'll stand by the front info desk for a bit after ocramius shuts his mouth.
spirals are such a mystery
Oh.
PDO is broken.
BindParam on PDO is not working.
there are like several millions users that disagree with you
ofc they are all wrong
posted on July 01, 2017 by kelunik

- Implement proper fix for the OPCache issue. The previous fix was incomplete and only worked for some situations.

13:58
@HassanAlthaf or .. maybe .. just maybe .. either Laravel is fucking something up .. or you

« first day (2450 days earlier)      last day (2723 days later) »