« first day (1008 days earlier)      last day (4165 days later) » 

16:17
@Levim err… is it intentional that on your mirror only the main page is in beta-style?
16:41
What does cv stand for?
Anonymous
@user2576961 close vote
Anonymous
If you see a question with low quality, you can share it here so others can vote to close it
@Simon_eQ Thank you. I don't have enough rep yet to vote to close I believe.
Otherwise I would.
user895378
@bwoebi What URI specifically is not giving you the beta design?
16:46
@bwoebi Uhm . . . I don't see this behavior.
Anonymous
@user2576961 That does not mean, you can't share it here. If we think the question will should close, we can vote on it.
user895378
Like the exact URI. Because I don't see that behavior either.
I have having issues of my own I'm trying to sort out with netbeans and my localhost.
Anonymous
@PeeHaa nice, gold on the php tag. I'am thinking, how long it will take me to get that... maybe a year :/
Does anyone in here use netbeans?
Anonymous
16:48
@user2576961 read the room description before asking it, otherwise you can ask on the main site
user895378
@Baba When it went down it was due to Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262129 bytes) ... please make note of the code you used to cause it so I can plug that hole specifically (unless it was done after upgrading to the line-feed socket protocol -- that's not a problem because I'm specifically not limiting its memory usage in the demo).
I have asked on the main site however the one answer I got was great but I'm afraid the person who responded didn't catch my last comment.
@LeviMorrison this is how it looks to me
user895378
That's an error page ...
look at the uri
Anonymous
16:50
@user2576961 Well, ask it and if anyone knows, they will respond
@bwoebi Even then, it loads in beta for me.
user895378
It's because of the de language
0
Q: Loading Correct Index File

user2576961I'm trying to figure out how to tell Netbeans to load the index file that is inside of my public_html folder when the project is ran and I'm not sure how to. http://screencast.com/t/kWMCRKOWoo Run Configuration http://screencast.com/t/SqZTN7Pu EDIT : Can anybody expand on the answer below?

@rdlowrey manual/index.php
@rdlowrey cool .. i still have the code
user895378
16:50
The auto-cookie only catches english
Oh, lol.
@rdlowrey bah… think this is because I'm in Lux…
I'm here and more than willing to try and answer any additional questions that someone might need clarification on for from my question.
Is beta enabled?
user895378
@LeviMorrison I could add an auto-redirect for anything that isn't english :)
16:52
@LeviMorrison yes; just had to set it manually to en
works now
user895378
FWIW:
user895378
user895378
Works for me even on /manual/de/ ...
yeah, now it works too there for me… don't ask why :o
@LeviMorrison If you look at the description here: leviathon.homenet.org/manual/en/function.assert.php I think the parameters names are emphasized too much.
Well I have to get. I wanted to thank whomever it was that opened up my question to view it.
Goodbye for now.
16:59
This is disturbing me a bit when just wanting to read
is their any library or tool to generate html area codes for this SVG image ? upload.wikimedia.org/wikipedia/commons/thumb/3/30/…
@LeviMorrison I would set (from actually font-size: 0.75em and line-height: 2) .docs .layout-menu ul.child-menu-list a { font-size: 0.85em; line-height: 1.75; /* other properties */ } (doc.css:372). Font-size in the function list is a bit too small
if i initialize an array like $array_name = array(); and then i run a for loop assigining a value to each iteration like $array_name[i] = $value;
sizeof($array_name) returns 1 i only have the last value i put into the array
do i have to push values into it or how does that work?
@rdlowrey Did you change anything ?
@rdlowrey Don't get message on the console until its sent twice
@rdlowrey there is a delay somewhere ... but when i send it from the console ... it displays on the web
17:10
@bwoebi is that you sending data ?
@Baba I didn't write these nulls there?
@bwoebi ok
I just wrote Works etc. but this was just one msg
17:26
Just looking at tools.ietf.org/html/draft-ietf-httpbis-http2-04 … will http 2.0 be something like a mix of http 1.1 and websockets?
17:46
erm...is it me, or is this "http 2.0" nothing like 1.1?
i mean, it's talking about multiplexing and all that...and you don't just say GET / HTTP/2.0; you say 1.1 and add an Upgrade header
it's not just you. about 50% change…
what I don't understand is that frames must be smaller than 2^14 + 7 (payload incl.) bytes?
weren't these people around for the death of xhtml 2? don't they realize you can't make a near-totally incompatible spec, slap a common name on it, and sell it? :P
@cHao seems http 2.0 should be a replacement of http 1.1 on top of http 1.1
but really, aren't LocalStorage (for caching) plus websocket not as good as this http 2.0?!?
why would we need http 2.0?!
18:04
@crypticツ did you manage with the git?
what i dont get about http 2.0 is that its a binary protocol.. but, almost everything it delivers will be text based...
If I'm not wrong, the following should be correct to respond to a websocket ping frame: $this->emit($user, "\x0A".substr($raw, 1, $len + ($mask?4:0) + ($len<126?1:($len<65536?3:5))));
18:25
Question.
When I want to use Google to log in into my application.
Is that OAuth, or OpenID, or what?
(I'm trying to get into it now, so if anyone has some high quality article about it, I'd love the help)
18:41
this steam summer sale is giving my wallet a raping
Anonymous
18:55
@bizzehdee I could only afford a t-shirt :(
@Simon_eQ: spent about £60 really... but got about 15 good - brilliant games
Anonymous
@bizzehdee Oh games,.. I was not even thinking about that. Lucky you, to spare that much only. Its explainable how expensive things are really.
user895378
@cHao and @bwoebi I think where they're headed with HTTP/2.0 currently is a big mistake.
Finally I'm done working for today throws mac out of the window
user895378
19:07
@Baba Hadn't changed anything, but the server died again from memory exhaustion.
user895378
Honestly testing against the line-feed socket app isn't going to do much good because it's just a proof of concept.
user895378
There's no validation, no protection from excessive or malicious data, etc.
@rdlowrey Not getting the message mealtime like before
@rdlowrey ok
user895378
But I'm getting real-time data between console and browser now that I've restarted it after the last memory crash.
@rdlowrey type a message on the web
user895378
19:11
@Baba Just did. Did you receive it?
@rdlowrey you don't get that message on the console until another message is sent eg
@rdlowrey The last message in the console is web message 2. while on the web is web message 3.
user895378
Not sure ... it arrives immediately in my console. How reliable is windows CMD?
@rdlowrey lol am not sure about that :)
user895378
Though it's possible I have a logic error that doesn't enable the socket write subscription if the initial write doesn't finish.
@rdlowrey Most likely
@rdlowrey but the web is web message 8
user895378
19:15
It's quite possible I've got a simple logic error. I'll double-check the code and do that cleanup I promised so I can push it up for your viewing pleasure.
@rdlowrey Yeah .. It must be something very simple
user895378
@Baba Just made some edits and restarted. Try now.
@rdlowrey this memory issue .. is it as a result of the large message ??? Are you saving it in a array or object ?
@rdlowrey Quick question ... you restarted the server but i did not notice any disconnect on the console .. why ?
@rdlowrey But no new message are coming in
user895378
@Baba Strange. Not sure. I'll look into that. For now if you exit the telnet session and reconnect it should work itself out.
user895378
Seems to be working as expected on this end.
19:21
@rdlowrey One moment
user895378
I'm at "C" in both the browser and console right now.
@rdlowrey did the sever get X Y Z ??
user895378
@Baba Nope. Only A B C.
@bwoebi Didn't quite use the same settings, but it's bigger than before.
@rdlowrey Ok One moment
19:24
user895378
@Baba CMD:X
user895378
9:25:03baba:X x y x
user895378
web 1, 2, 3
user895378
Hooray for hijacking chat with debugging jibberish :)
@rdlowrey ok let me just use telnet directly .....
user895378
19:30
@Baba test
@rdlowrey works perfectly on centOS using telnet
user895378
I actually did find and fix a flaw in my logic that possibly could have caused your previous issue.
@rdlowrey instead of
GET /line-feed-chat HTTP/1.1
Host: 174.107.156.0
Connection: Upgrade
Upgrade: line-feed-chat
@rdlowrey can you use auto config like a short version USE line-feed-chat
@rdlowrey something line that
user895378
I'm working on a way to support that behavior. It is possible, but not right now. The issue is ...
user895378
You're connecting to an HTTP server first and foremost. So the initial upgrade request is necessary. However ...
19:36
@rdlowrey Oh ok
user895378
(explanation coming)
@rdlowrey ok ....
user895378
What you could do is register a BeforeResponseMod that catches 400 Bad Request responses before they're sent out. If the corresponding request matches e.g. /line-feed-protocol then you can ask the server for the raw request message it received that failed the parse requirements for a valid HTTP message in your mod via $this->server->getTrace($requestId) and parse it yourself. If it matches your validation criteria for an upgrade then you'd call $this->server->export($requestId).
user895378
@Bab ^^
@rdlowrey Oh i see ....
user895378
19:40
Currently the Server::export function doesn't exist, but that's what I'm planning. In that way you could avoid bothering with the HTTP upgrade request altogether and host any socket protocol you wanted simultaneously with your HTTP server over the same port.
user895378
It'll be a really great way to tell overzealous system admins who won't open ports to shove it :)
user895378
Best part? You can use Aerys to do the SSL negotiation up-front for you and have encryption built-in free for any protocol you use.
@rdlowrey Nice .... Nice
@rdlowrey I see the initial error was from my PHP code .... most likely looking for eol
			while(! feof($this->fp)) {
				echo fgets($this->fp, 1024);
			}
@rdlowrey ^^ must be from that loop
user895378
Okay, cool. I'm going to shut down the server now and make the necessary changes so I can push this up. Then you can play with it and won't need me.
user895378
I've tried to comment everything very thoroughly so it's easy to see what's happening. Reading and writing to/from non-blocking sockets is slightly different from what you're used to, but once you understand what's happening it makes a lot of sense.
user895378
19:45
I've purposefully not implemented abstractions to make it easier because they're too slow.
@rdlowrey sweet .....
@rdlowrey any chance you will be releasing it? would love to have a decent HTTP server in this space, and I've been struggling with it myself tbh.
@rdlowrey Good Idea ... Speed is key
user895378
@igorw I totally am ... Just working out kinks. I'm really leary of putting something out there before it's ultra-secure, which is the reason it's taking so long.
user895378
@igorw Can your streams abstractions accept the raw socket stream after it's already connected?
19:47
@rdlowrey not sure what you mean by this, elaborate/example?
also, don't use it, it's slow. :)
user895378
Well I was saying that I've implemented everything directly with the fopen/fread/etc functions to keep it as close to the C layer as possible for maximum performance. But some people may want/need to wrap that in something that will emit events to make it easier to work with the sockets manually if they want. So I was wondering if you could do something like this with your react code:
first of all, the streams abstraction is based on interfaces. you can make any implementations you want to, it doesn't even have to use PHP streams.
user895378
Oh okay.
user895378
What I was envisioning was something like this:
but generally, you can muck with the raw stream at first and then create a react stream with that "fd" later, that works just fine.
user895378
19:50
$socketStream = $this->serverExport($stream);
$myUserFriendlyEmitterStream = new SocketEventEmitter($socketStream);
what I'd be more interested in is integrating with the event loop. that's the most solid part of the library, and it allows switching between stream_select/libevent/libev.
@rdlowrey yeah, maybe http 2.0 should be built on spdy, but http should remain stateless
user895378
@bwoebi +1
user895378
Pretty much everyone I've talked to thinks the same thing.
@rdlowrey I figure you've done your own event loop interface based on libevent, right?
19:55
Alright guys, let me ask my question again, hopefully the third time I'll get something :D
I've configured nginx to run php (fpm), when I hit a syntax error, it shows me a 500 page instead of the error itself
php.ini is configured correctly (I've checked with phpinfo()). What could be wrong?
user895378
@igorw Yes -- I'm really pleased with it, but of course my opinion is biased. I don't know if it's something you're interested in but if you take a look at it and like what you see it may be worth looking at either (1) working to make the interfaces between mine and yours compatible or (2) possibly look at working together on a react2.0 version ... but of course, that's only if you think it's worthwhile :)
@LeviMorrison better now. eventually in the function description make the background of the box holding the type func_name ( mixed $param ) informations white.
@bwoebi No. Not white, my friend.
It looks funky when it's white >.<
change just the background-color, not the border etc.
user895378
@igorw The event reactor is here. There's a stream_select and a libevent version, but no libev. It's combined with tools for actually dispatching calls asynchronously from the non-blocking event loop to other processes where you can do work synchronously.
Anonymous
19:58
@MadaraUchiha I have seen you ask that question for the third time:) Why not ask it on the main site. Or ask DavaRandom. He know a lot about nginx
Good idea, @DaveRandom to the rescue?
user895378
Basically it makes what phpdaemon is doing irrelevant. I think it's pointless to try to implement everything with non-blocking semantics when you can instead offload synchronous work to other threads or processes.
@rdlowrey Good idea on the collaboration ...
which one looks better?
user895378
@bwoebi I prefer the first one. Old eyes need higher contrast.
20:00
@rdlowrey I think I've said it before, but I'll say it again. I've always wanted react to be the loop. I'll happily give up all of the protocol implementations to anyone determined to write something more decent.
@bwoebi I actually don't see the difference
@MadaraUchiha look exactly at the background color of the bool assert ( mixed $assertion [, string $description ] ) box
I'll gladly work out loop-related issues to have a common base. that provides interop between evented libs.
user895378
@igorw Well the main sticking point is that all my protocol stuff relies heavily on being able to pause/resume stream IO "subscriptions." So for example, say a client connects to the server. When this happens I do something like this:
I did try to make some higher-level abstractions work, but it looks like streams are not happening performance-wise. however, I do think promises could work, and might have a huge impact on usability when combined with php 5.5 generators.
20:03
@bwoebi Aha
I like option 2 better
user895378
function acceptClient($socket) {
    $client = new Client;
    $client->socket = $socket;
    $client->readSubscription = $this->reactor->onReadable($socket, function() use ($client) {
        $this->readDataFromClient($client);
    });
    $this->clients->attach($client);
}
@rdlowrey yea, I've run into limitations myself. and in fact so has node, they changed it quite a bit at some point.
the streams, that is.
user895378
And I can call $client->readSubscription->disable() at any time and later $client->readSubscription->enable() after that.
you looked into generator scheduling stuff at all?
user895378
I honestly haven't, I've been so into the protocol work for the last few months.
user895378
20:07
Similar to the above, since I deal directly with the socket to do IO, I need to be able to easily do $client->writeSubscription->enable()/disable() at any point to finish writing data that may not have completed (because it would have blocked) on the initial write.
user895378
Since it's too slow to have an event emitted like Socket::DRAIN, the above is by far the most performant solution I've found.
@igorw lol PHP community is a community of pirates ....
how do i report someone for vandalising answers, and the vandalisation has gotten through the queue
Alright, I'm an idiot
error_reporting was on, display_errors was off.
@rdlowrey it allows you to make callback-stuff look as if it were blocking. think erlang processes, but without the error handling, implicit scheduling, and insane syntax.
function foo($socket) {
    $data = yield async\read($socket, 1024);
    do_something_with($data);
}
schedule(foo())
looks like a blocking call, but async\read() actually returns a promise under the hood. the scheduler reads that promise, resolves it, and resumes the foo() generator with the return value.
user895378
20:14
I'd be interested to see the performance benchmarks with that. I bet it's pretty good.
yes, probably is. and it allows writing protocol implementations which work both blocking and non-blocking.
user895378
BTW, from what I've seen of it your promises implementation looks nice.
yes, it's rock-solid.
@jsor did an amazing job on that.
user895378
At this point I've got the protocol stuff really well locked down. For people who can wrap their heads around writing non-blocking code the server will be light-years better than running php behind a web SAPI. And even then, most people should be able to function if they can understand how to wrap calls to things inside a good promises implementation.
user895378
20:19
As it is you could easily use your event loop to run an application whose server was running off of mine, though.
@rdlowrey (or we just profit from pthreads and put the blocking reading in its own thread… and then run the events in another thread(s))
user895378
@bwoebi I've given some thought to that too. One thing that's important to me is that it work transparently for people who don't have any extensions installed. But there are definitely places where pthreads could make a big difference for people who have it.
@rdlowrey the main reason I started my own event loop was because I didn't like the way phpdaemon did things.
@igorw what is phpdaemon?
user895378
@igorw I think yours is way better than what phpdaemon is doing and I disagree with what they're trying to do there with making non-blocking functions for everything.
20:22
or maybe let me rephrase. that was the main reason I continued after I found out about phpdaemon.
he definitely knows his protocols, even if most of the implementations are kind of minimal, and don't handle any edge cases. at all.
user895378
@igorw lol that too.
user895378
IMO you're really not doing anyone any favors if an implementation isn't fully robust.
user895378
20:24
Hey, here's an HTTP server!
user895378
(but it only does GET/POST)
user895378
WTF. That kind of half-assed situation isn't helping anyone.
@rdlowrey If we / our application just needs GET & POST, why should I build in more?
user895378
@bwoebi Well, for one, even HTTP/1.0 requires that you support HEAD.
user895378
@bwoebi Why would I use something like that when I could get a real server?
20:26
well, I've never seen my browser doing head requests
@rdlowrey less functionality == less code to maintain
== less problems
user895378
If it works how it's supposed to and I'm not the one doing the maintenance then F that.
@rdlowrey and I'm not the one doing the maintenance … ;-)
user895378
I'm just saying, I've written one that does everything, and if you only support GET/POST then that's as half-assed as it gets.
@rdlowrey I admire your sense of craftmanship. my approach of ship fast, gauge interest and let others help fix it did not quite work out as I hoped. I still think it's a good approach though. I'm not afraid to publish something and label it as heavily unstable.
user895378
Thanks :)
user895378
20:29
Anyway, I feel like if some of us can put our respective egos in the passenger seat for a minute we can create something that's really awesome.
user895378
That's my way of saying, instead of all these smart people duplicating effort trying to make a name for themselves we should do a better job of working together.
2
@rdlowrey not shipping also gives you some safety. with every bad bug that has shipped, and irresponsible people actually using it in production, I get completely paranoid.
4
Btw. I'm just using the http server in PHP for one single page where I serve polls. There's no need for more than POST & HEAD. Everything else just returns a 500 error.
user895378
@igorw It's true. Because if I use something and it's buggy my first-impression is generally cemented there forever.
user895378
I'm likely to never come back to it.
20:32
@rdlowrey when there are lots of alternatives and the nobody fixes issues in a reasonable time.
@rdlowrey I definitely agree that if everyone doing evented stuff in PHP, all 3 of us, put our heads together, we could produce more solid things.
user895378
@igorw Yeah. I want to work towards that too. As I start finish this protocol stuff I want to look at ways to try to stop overlapping work. I just see how much I churn out and think how ridiculous it would be if there were two or three other people working on similar things and how much awesome stuff could be done if the work was complementary instead of overlapping.
user895378
lol I probably need to stop making belligerent statements about how "all frameworks are stupid," among other things, though :)
@igorw wait? you mean yolo and react are real projects? and stable? <seriousQuestion/>
Awesome :D
20:45
@Gordon have you heard of the man who loved trolling so much, he trolled himself?
@igorw no?
@igorw so you want to say both projects are real and stable trolling efforts?
user895378
lol
@Gordon they both started with good intentions but became trolling opportunities. so at this point I'm no longer sure anymore.
@igorw ah ok
@rdlowrey can we handle 0x1 and 0x2 frames in the same way (in PHP)?
user895378
20:50
text/binary?
yeah
user895378
(I forget the hex codes)
user895378
Technically you're supposed to validate that text frames only contain UTF-8
user895378
I'm not doing that at the moment and I plan to make it optional. That's a lot of additional overhead to process every text frame.
talking about trolling … github.com/rdlowrey/php-date-prefix
user895378
20:51
hehe :)
I've posted it before, but now it's relevant:
user895378
But the binary data frames can just be whatever.
@rdlowrey But Derick is a really a nice guy so I won't admit I lol'ed
user895378
That stupid date.timezone bugs me every single day.
user895378
At least two or three times a day I type in $ php server.php and get the stupid warning.
user895378
20:53
@bwoebi The UTF-8 restriction is just a fancy way of saying, "we created this protocol to run off of JSON, so make sure your text works for JSON."
@rdlowrey exactly. technically. But effectively it hasn't any advantage to differentiate both. As, when the client needs it, he should be able to verify this himself. Why should I verify it when he could also use binary frames and so circumvent any verification?
user895378
See JSON comment above.
user895378
It just makes sense to serialize your data as JSON anyway, and for PHP use-cases as long as you do that you can skip manually validating for UTF-8 because the json_* functions will bork and you'll know if the data is bad anyway.
@rdlowrey I was just writing the same while you wrote this^^
@Jasper I actually announced YOLO certified engineer at symfony live. I don't think they liked that.
user895378
lol wait ... reclusive?
@rdlowrey yes :)
user895378
My directories have anti-social tendencies. Help needed. Pls give me the kodez.
@igorw yolo certified engineer? lol
@rdlowrey I closed it with a dupe using the iterator approach. see the comments. he eventually figured it out in the end, so I guess we don't need the question anymore
user895378
20:58
Burninate!
@rdlowrey chat.stackoverflow.com/transcript/message/10734843#10734843 can you check if this is correct?

« first day (1008 days earlier)      last day (4165 days later) »