« first day (2443 days earlier)      last day (2488 days later) » 

12:37 AM
If you want to block access to a certain folder, the most reliable way is obviously to put it outside of the document root. But what if that's not option? Because of shared hosting for example. Would htaccess be the best next solution? Or is there something better?
Never mind. Found a great answer about it :)
 
 
3 hours later…
3:25 AM
did another hour ish of running, 10km/h
 
4:05 AM
ugh. I can't run unless it's when playing cosom hockey or something.
 
Hi guys
 
4:26 AM
i can't run even. i can't keep a constant pace. i mostly alternate actual run and walking :B
also the hills. just a slight degree change makes me die :B
 
4:46 AM
morning
 
o/
 
\o
 
user8193156
5:20 AM
good morning programmers.
 
!!dad
 
What do you call a sketchy Italian neighbour hood? The Spaghetto
 
6:19 AM
@Jimbo eh, that's already my blocklist btw
 
posted on June 24, 2017 by trowski

Initial release on Amp v2.

 
6:35 AM
@Ocramius what happened again?
 
Eh, don't know the details, but the usual laravel folks discussing with Josh Lockhart, who deleted his twitter account
 
sigh
 
Josh said Adam Wathan's code/docs are bad (which they are). Laravel guys took it personal and Taylor Otwell called Josh an asshole.
No week passes without new laravel drama...
 
lol
 
oh well, back to writing slides then
 
7:09 AM
any good laptop preferences budget $800
 
a 19'' with a full blown keyboard :B
 
a 19?
 
yeah, i don't like tiny shits :B or a 17
anyway depends on your needs. do you want a battery that lasts a lot? or you are using it mostly plugged?
 
:P i don't want it for me it's for brother and he is not even a programmer.
so long lasting battery will work
mainly requirement is graphics,autocad and 3d modelling software are to be used ...
 
posted on June 24, 2017 by kelunik

Initial Amp v2 release.

 
8:04 AM
@Linus then you need a proper gpu, not an integrated one
no shared memory...
 
@Ocramius Now run the same benchmark with Aerys on your system. :P
 
It would probably outperform the one I ran - where can I get a "hello world" one?
 
@Ocramius git clone https://github.com/amphp/aerys && cd aerys && composer install && php -d zend.assertions=-1 vendor/bin/aerys -c demo.php
 
@kelunik oh yeah, it's 2 times faster :D
 
If you want to run with 1000 concurrent connections, you'll need an extension.
@Ocramius :D
 
8:11 AM
well done, I'd say :D
 
@WesStark ah you means instead laptop need to assemble pc?
 
@Linus no
 
@kelunik does amp utilize the reactor or proactor pattern?
 
@WesStark then?
 
8:19 AM
@kelunik btw, I'm fairly sure that the OOTB servant doesn't come with any threading or asynchronous processing
 
@Linus also notebook have integrated or dedicated gpu
dedicated could be soldered on the mainboard or be an actual card
 
@Gordon Reactor.
 
you need to look for the nvidia or ati logo
 
@Ocramius So that's just one core and Aerys uses all?
 
@kelunik do you know any framework that uses proactor in php?
 
8:20 AM
but depends, because amd has some ati gpus that suck
 
Hello all, has anyone worked with paypal rest or nvp sdk to transfer payments
I have used it but due to unstability of versions it gives error.Some times creditcards does not work.And process to create an is ?
 
@Gordon I didn't even know the term until 2 minutes ago :D
 
@kelunik not sure at all, but it only gets to a CPU load of 1 on my machine, so I don't think it's threading at all
 
you better ask teresko. i know nothing (jon snow) about notebooks
 
damn I want PHP 7.2 and the object type hint >.<
 
but avoid for sure stuff that has intel graphics, those are ok for office use but certainly not for 3d modeling
 
Ahhh ok :) thank5
 
@Ocramius Yes, if htop only shows one CPU full, it's probably that.
@Ocramius Is that merged yet?
 
not sure, but half of doctrine is is_object() :P
 
@Ocramius what for?
 
8:23 AM
I want to get rid of all that bs
 
ah yeah, so you really want either interfaces or generics :P
 
Unlikely - UoW can't really be typed there :-\
 
@Gordon There's no API for that in PHP currently.
 
@Ocramius you're trying on your mac?
 
@kelunik
Hello all, has anyone worked with paypal rest or nvp sdk to transfer payments
I have used it but due to unstability of versions it gives error.Some times creditcards does not work.And process to create an is ?
 
8:27 AM
@bwoebi no, ubuntu box
 
!!welcome user3826569
 
Welcome @user3826569, please read the Chat Guidelines
 
if I try this stuff on my mac, networking crashes
 
posted on June 24, 2017

New Cyanide and Happiness Comic

 
@Jee
@Jeeves thank you.sure will follow the guidelines
 
8:29 AM
@user3826569 You're welcome!
 
@Ocramius uh, how many vcores does your box have?
 
cat /proc/cpuinfo  | grep processor | wc -l
8
i7-7700HQ
 
@Ocramius … and also only one process is spawned too?
 
ya
 
or are there 7 in idle and 1 working?
 
8:32 AM
well, talking about servant btw
only one process running
 
@Ocramius May I bet that nproc isn't installed on your machine?
 
it's there
 
and returning 8?
 
yarp
 
weird
that function directly determines how many workers to spawn by default…
 
8:37 AM
I'm still talking about servant - didn't check if aerys spawns processes :P
I think there's some miscommunication :D
 
uh?
what do you mean with servant, if not the worker processes?
 
no, haskell-servant
:-)
 
aaaargs
 
that's the thing going only to a load of 1
yet serves 6k req/s
 
yeah, well, then run aerys with -w 1 to just use one core for comparison…
 
8:39 AM
Good morning. Any idea why automatic scroll here in chat doesn't work for me?
 
@bwoebi 4.9k/sec
feels good
 
@Ocramius did you remove visual debt
 
Yes, very much
 
:B
 
and a thousand lines of UnitOfWork
:D
 
8:47 AM
i tried to use that once. christ it was a mess :B
 
Yeah, can't even fix it properly because any attempt to abstract its internals leads to impossibly fucked up performance
 
doctrine?
 
yah
and JIT wouldn't work either btw, because it wouldn't work across multiple files
so abstraction would be useless anyway
That's where HHVM was MUCH faster than PHP btw
 
i don't understand you. i only remember that my only attempt to implement unit of work ended up really bad
 
@WesStark wanna take over github.com/ocramius/changeset ?
 
8:51 AM
right now i either save all the things even if unchanged, or use a dirty flag
 
I'm not working on it - it's all yours if you don't feel enslaved enough
 
i know it's shit, but it works
i should probably think of a better solution...
 
I tried writing down some .feature specs for it
;-)
 
dunno about that. i would probably make a mess of it :B
 
doesn't matter - at least you can experiment
 
8:54 AM
are you sure that detecting changes is not more work than just saving again stuff that is not changed?
 
Yes, I'm pretty sure of that
I/O is much more heavy than changeset computation, if changeset computation is done right
if you use GeneratedHydrator to create the changesets, it becomes trivial to make it super-efficient
 
@kelunik pongish
 
dunno, but could be. i would probably use an observer but that's going to be hard to implement
and i wouldn't care of false positives. like if something gets changed and reverted back (?) i would re-save it anyway
 
@WesStark we tried using an observer with AOP, and it was fast enough
@WesStark that just means trashing the DB-side, which would lead to a lot of deadlock errors
usually, changeset computation takes the same amount of time as executing a single query
 
yeah that sounds right, as the potentially changed data shouldn't be a lot of data, hence fast to compare
 
9:04 AM
Well, it's an ORM, it's supposed to be used for OLTP
so the UnitOfWork generally stays relatively small
 
small transactions
i could pick that up, i've bookmarked it... if you decide to trash it ping me again, maybe you find me in a better moment :B
 
@Ocramius What do you get with all workers?
 
@bwoebi around 16k/sec
 
… that's low … for your processor.
 
@PeeHaa Buy some Ethereum
 
9:11 AM
@bwoebi may also be ab
Mind that I'm running it with a concurrency of 10
 
@Ocramius … try wrk.
@Ocramius ah … still, try wrk
 
@PeeHaa dns tests run fine for you?
 
@bwoebi will do later - currently deep into doctrine stuff :D
 
@Ocramius Shall I rescue you?
 
Nah, we're upgrading everything to PHP 7.1
it's actually decent work :D
 
9:17 AM
hm.hm.
 
9:28 AM
@bwoebi Should I just add RedisCache to amphp/redis? As amphp/dns depends on amphp/cache, it's required there anyway, no need for a separate package then.
@bwoebi Could you adjust amphp/mysql to the latest changes and releases and release a v2 version?
 
@kelunik fine for me
@kelunik eventually, I'll look at it in the next days
 
Hello people I am new to chat is there anybody?
Hello people I am new to chat is there anybody?
 
@bwoebi It will need that long? :P
 
9:52 AM
posted on June 24, 2017 by kelunik

Initial release on Amp v2.

 
@kelunik dunno :) about to go swim right now. Might check later
 
10:11 AM
@kelunik Maybe "TLS credentials"
 
@Danack Simply went for Certificate now, as the methods were called withDefaultCertificate and withCertificates already anyway.
youtrack.jetbrains.com/issue/WI-36950 < Getting the formatting rules right is hard. :-D
 
10:57 AM
morning all
 
posted on June 24, 2017 by kelunik

Initial release based on Amp v2.

 
11:52 AM
Is using PDO's transaction an atomic thing? Also, things are either atomic or what?
 
@Shafizadeh a transaction will either do all the changes or none, so yes, atomic
 
yes exactly, does it mean atomic ?
Ah I see.
also, what's the opposite of atomic ?
 
you can say the opposite of "atomic" is "non deterministic"
dunno if there is a better word
 
In database systems, atomicity (or atomicness; from Greek atomos, undividable) is one of the ACID transaction properties. An atomic transaction is an indivisible and irreducible series of database operations such that either all occur, or nothing occurs. A guarantee of atomicity prevents updates to the database occurring only partially, which can cause greater problems than rejecting the whole series outright. As a consequence, the transaction cannot be observed to be in progress by another database client. At one moment in time, it has not yet happened, and at the next it has already occurred...
 
thx
 
12:06 PM
also @Shafizadeh not all transactions are atomic. it depends on the isolation level
 
what you mean? transactions won't execute any query until see the commit line. And everything will be cancelled when they see rollback line.
 
depends on how you intend it. for example "read uncommitted" is not atomic. means you can read uncommitted data from other transactions
if you don't want to read all that stuff, always use SERIALIZABLE isolation level. that is the safest one
 
where should I set levels? On MySQL configuration?
 
it's a query SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
 
12:47 PM
I see, thx
 
1:12 PM
struggling with the weirdest segfault on travis-ci php 7.1, when make test, then a test for a c-level http wrapper works just fine - when running it with run-tests.php directly it segfaults, not because of the wrapper itself, but the char *path has only = "\006\024" in it instead of the actual path name / http url. anyone have a rough idea what could cause this?
outside travis ci this extension test runs just fine under same environment (php 7.1, zts, no debug, xdebug enabled)
 
@beberlei your amount of reputation is pathetic :D
 
@Gordon i am a consumer
 
I just gave you a pity upvote :)
 
@beberlei valgrind?
 
@NikiC just run run-tests.php with the -m flag again you mean? I am going to check that.
 
1:33 PM
I think we will soon have to rename this room to #php-pecl, just so the people don't get confused
 
:P
 
haii all
i have one doubt in open cart
 
doubt is what you have, when your friends have talked you in trying bungee jumping and you are already standing on the bridge
 
@tereško He said open cart
That sounds like exactly the situation you're describing
Well, that, and he discovered that the bungee cord looks kinda weird and is flaking off
 
he also said "one"
 
1:39 PM
True ^^
 
how to add new module in updated version of open cart?
 
@beberlei yeah. valgrind is usually the cure to problems that don't reproduce
 
@NikiC hope to get it running on travis, it "hangs" for several minutes on the single test now
on local env running with valgrind makes the test fail, suddenly fopen returning false not doing the http request anymore, so there is something fishy
 
is exorcism a valid option?
 
@tereško Well, when was the last time you witnessed a working exorcism?
 
1:45 PM
I love undocumented PHP functions and error messages I have no idea what to do with…
 
well .. there was this one printer at work, couple years ago ...
@NikiC but, yeah, it's kinda tricky to assess that - the claim is that after exorcism there is not evil spirit inhabiting the thing .. so you could claim that all exorcisms actually work as advertised (or course there is this small caveat, that there was no evil spirit to begin with)
^ I have been working with people in marketing lately
 
2:06 PM
weird, "valgrind: failed to start tool 'memleak' for platform 'amd64-linux': No such file or directory" - i couldn't find any sane reason why this happens, ru-tests -m works however, on local it has th ephp code fail, but doesnt show any MEMLEAK related output, on travis it just hangs there and does nothing.
 
2:17 PM
posted on June 24, 2017 by kelunik

- Fixed issues in `BasicSocketPool` returning raw resources

 
ah ok i can reproduce it with php 7.0 and also without zts, so it seems to be a general issue. Its funny that whenever I run the tests with "make test" they work, and even simple calls like "php tests/file.php" will fail, though they will not segfault like php 7.1 on zts
 
Anonymous
@WesStark did you see the question that the deputy team principal of force India got on live tv?
 
which one
no i didn't. what happened? :B
 
Anonymous
Eddie Jordan said "now we know last race that you got a text from Mercedes mid-race, asking you to pit, how do you feel about teams doing that?" He replied "I don't know what you're talking about" - "come on, we all know it happened" - "I know nothing about that, we don't reply to such things"
 
eddie jordan is a crazy fuck tho
 
Anonymous
2:28 PM
He is, but I imagine there's something there for him to question it
 
Anonymous
And the guys reaction was so obvious
 
not really, eddie jordan is known for making things up. he likes to provoke people like that
 
Anonymous
Ah, I didn't know that. I just know he's a prick
 
but could be. these things happen for sure in formula 1
the guy that is now at sky uk, pat symonds... know him?
he made a car crash on purpose so that the other car could win
they try to steal projects. there is a lot of competition, even unfair competition
mclaren was caught copying from ferrari few years ago
so i wouldn't surprise me if that is the truth, even if eddie jordan said it :D
 
Anonymous
Yeah it was more cross-team collab that I never thought would be a thing
 
Anonymous
2:33 PM
But it makes sense that it is, I bet the corruption levels are crazy
 
right now the engines are so complex that only a few manufacturers produce them
those manufacturers sell the engines to other teams and also race themselves... it's a clear conflict of interests... because leads to things like that
force india buys engines from mercedes, and force india has barely enough money to survive, so they would do anything to save money
anyway that's unlikely because force india helped ferrari more than they've helped mercedes
indirectly :P
 
Anonymous
Heh, interesting
 
3:32 PM
@bwoebi Please respond if you really want this, otherwise I'll close it. github.com/amphp/artax/issues/114
^ /cc @JayIsTooCommon @PeeHaa and all other Artax users.
 
@tereško "$this->target should not be aware of what it is permitted to do. You should not pass it along just to later extract some permissions" (link) but isn't that what you do in the fifth code example?
 
3:56 PM
@MadaraUchiha it would obstruct a ??-> syntax, but not a ?-> syntax. the latter has already been rejected once, though.
 
@Andrea Huh? How do you mean?
 
4:18 PM
@NikiC Hah its like the neverending story, i have narrowed it down to happen only if opening the stream fails (connection refused), say to localhost:8934 which doesnt exist. then the stack frame looks like this _php_stream_open_wrapper_ex (path=0x7fffe5342690 "\006\024", mode=0x7fffe53426f0 "rb", options=8, opened_path=0x0, context=0x7fffee060ce0) - see the path showing broken chars. This is even before my own stream opener is called that then delegates to the internal one.
 
@MadaraUchiha oh, sorry, I misunderstood the question. Nested objects behave however they do with ?? and isset() right now.
 
Could someone take a look into stackoverflow.com/questions/44738431/…
Dont have the time for it but seems to be easy question
 
@jeremy yeah, that shouldn't be there (the example is fucked)
and those are not separate example
just lines taken from the first code snippet
...you might notice how they dont match
 
yeah, i understood that
i'd be really interested in what you would write now about it (saw ancile on github)
 
4:30 PM
@NikiC ok stepping through my wrapper with next and print filename interleaving I found the line that breaks the variable, if (option = zend_compat_hash_find_const(Z_ARRVAL_P(context_options), "content", sizeof("content") - 1)) { - entirely unrelated :-) now checking out what how that can destroy my othe rmemory
i think i will find this :-)
 
4:45 PM
Evenin room 11
 
@DaveRandom lxr.room11.org appears to be down D:
 
hahahhaha ok my stupid mistake, if you char[64] foo = ""; then sprintf(foo, 64, .. is wrong...
 
@tereško and the acl seems more fit for the model layer, no?
 
@bwoebi Added github.com/amphp/artax/commit/…, I think streaming responses and that were the to mainly used progress things.
 
5:12 PM
!!dad
 
What do you call cheese that isn't yours? Nacho Cheese
 
5:36 PM
who killed my lxr? :-( @DaveRandom
 
6:08 PM
@jeremy no. You apparently did not understood what I wrote.
 
@Andrea And how do those work?
 
6:30 PM
@jeremy the authorization check should actually exist outside of the MVC triad entirely
 
7:22 PM
Hi @all , just read ""SOAP and REST can't be compared directly, since the first is a protocol (or at least tries to be) and the second is an architectural style". Can any one tell with which should I compare (except xmlrpc)
 
7:45 PM
If somebody got time, could you read amphp.org/getting-started/tcp-chat and give feedback?
^ /cc @Jimbo @PeeHaa
 
 
2 hours later…
9:17 PM
Code highlighting is fubared
 
Yes, it gets highlighted as Perl...
@MadaraUchiha Fixed, thanks.
 
9:42 PM
Something odd about ordering of func_get_args() result in 7.2 – #74810
 
@bwoebi @LeviMorrison can you access opengrok01?
I can't SSH into it
 
Note for later: investigate crash when trying to set a context option on a unix stream… (WorkerProcess@$socket)
 
@bwoebi yay more crashes
@DaveRandom lol
Looks like dmitry "optimized" that code, but did not check it actually gives the correct result :D
 
9:57 PM
@NikiC Also: investigate crash within aerys worker when returning \Amp\Deferred within IpcLogger::disableSending() instead of Success() [there is no watcher left then, causing it to quit the loop and enter shutdown sequence, ending up with a nullptr deref in generator->get_gc]
Yeah, only two crashes today. :-D
 
Anonymous
What's happening to #php community? #dunningkrugereffect
 
Anonymous
What have I missed?
 
probably the continues fallout of "visual debt"
 
10:14 PM
github.com/amphp/aerys/commit/… - I love using undocumented features in PHP.
@kelunik @Trowski ^ now we can have similar performance on Mac and on Linux regarding multiprocessing :-D
instead of having a bunch of spares, they're now active workers
 
@NikiC I thought I was going crazy for a good few minutes, in the "I'm sure this used to work, did I forget how array_slice works?" sort of way
 
10:36 PM
Also: why did nobody tell me, that you have to add sizeof(int) to socket_cmsg_space(SOL_SOCKET, SCM_RIGHTS) in order to receive any fd …
 
10:47 PM
@Andrea btw, how does the copy-on-write work, when I change an array, which is contained in another array?
 
@tereško a value in an array is just like a property or a variable. if that value is an array and you change that array, it's replaced by a copy if another value held the same array.
 
functiion example($foo) {
    $foo[0][0] = 1;
    return $foo;
}
$test = [ [2, 3], [8, 9] ];
$bar = example($test);
when this is executed, will there be two array-of-arrays in the memory
 
@tereško $foo[0] is replaced by a copy where the first element is replaced with 1
@tereško yep, though that second array-of-arrays only has one array in it ;)
 
ok, thanks
I just got confused by the second sentence in your post
 
one of the stranger parts of PHP is that arrays and objects behave differently
in PHP 4 they didn't, from what I hear
 
10:53 PM
I was still writing Pascal, when PHP4 was in the wild (at least, as a major player ... there probably is some critical credit card processing code running on php4 in some basement still)
 
@Andrea I think it's quite great to have a by-value structure in PHP…
 
@bwoebi oh sure, and objects being by-ref isn't necessarily bad, but…
 
@Andrea Don't say but that often^^
 
@PeeHaa how is paradise?
 
11:49 PM
Hurl.it — Make HTTP Requests
 

« first day (2443 days earlier)      last day (2488 days later) »