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

14:01
Question, why won't PHP display errors and only display a 500 page?
I'm using nginx on ubuntu, I've checked the php.ini and the error_reporting there is set to E_ALL
@MadaraUchiha what do you mean? who has italics'ized my name?
@hakre @DaveRandom
Or have you not noticed yet?
@hakre whoa @Dave made you room owner .. very nice .now its time for dance
what happening here?
0
Q: Seo URL using .htaccess not working

DhamuMy site URL: http://stackcomplete.com/category.php?id=28 i used seo URl in .htaccess RewriteEngine On Options +FollowSymLinks RewriteRule ^category-([0-9]+)\.php$ category.php?id=$1 but no changes,i i done wrong?? my full .htaccess RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ...

So subtle :)
oh nice! that's cool. sweet.
@Dhamu Stop spamming that question into the room.
We've seen it.
@Dhamu Posting your question here once is plenty. No need for more.
ok
i thought others not noticed
@NullPoiиteя I have the feeling their sing talent equals their dance talent. :D
14:07
@hakre You mean, TOTALLY AWESOME?! :D
So, anyone for my question?
6 mins ago, by Madara Uchiha
Question, why won't PHP display errors and only display a 500 page?
@MadaraUchiha MEGANOLOMANIACTIAISM AWESOMEARASTARFARISM AWE-AWE-AWE-SOOOOOOOOOOME!
I thought that after posting this answer I knew the differences between increment and decrement, but that didn't cover incrementing strings (a la Perl) ;-)
ok, who knows how to commit to git? =o(
14:09
git commit and some will use -f :)
oh wait, git add first.
@crypticツ I do, what's wrong?
user895378
@Baba I'll push the example code up later today because I want to clean it up a bit first, but in the meantime, load up the websocket chat at 174.107.156.0 in your browser. There are instructions there for the protocol needed to use telnet to participate in the same websocket chat.
user895378
I'm not gonna say it's the coolest thing anyone has ever written in PHP ... but it's pretty much the coolest thing anyone has ever written in PHP.
5
@rdlowrey nice .. can't wait to try it out
14:14
@rdlowrey :o
@crypticツ Not that question. Also it was the other way around. It was migrated from SO to SU
user895378
I can't explain how cool it is to enter text in my console and watch it immediately pop up in the browser chat :)
@rdlowrey lol
How do i escape from this .... lol
That was me :D
user895378
ctrl + ]
14:17
@rdlowrey its just awesome :)
user895378
@MadaraUchiha thanks for breaking it -- it's just a proof of concept
@rdlowrey How the hell did I break it?
user895378
@Baba ctr + ] then input q
@rdlowrey ok .... That was the message i got from the server .....
HTTP/1.1 101 Switching Protocols
DATE: Sat, 20 Jul 2013 14:16:09 UTC


How do I escape from this?! :Dh
user895378
@MadaraUchiha Oh I don't know -- i got a js error because I don't know much about js so I just assumed it was you inputting garbage characters :)
14:18
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";
alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--
></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
Who wrote that .. Saw that in telent
@rdlowrey Probably my ESC attempt from telnet
user895378
of course ctrl + c always works
@rdlowrey It didn't
14:18
hmm, my windows telnen skills can benefit some improvements.
but it's too damn hot today!
user895378
@MadaraUchiha lol well I'm not a telnet wizard I don't know!
anyone
@rdlowrey memory usage ?
@PeeHaa yeah that was migrated from SO to SU then from SU to SO both instances the question was showing up as locked
user895378
Okay, shutting down the server so you people don't send me nasty javascripts ;p
user895378
14:20
@Baba uh, really low.
@rdlowrey Sweet
user895378
@Baba Hold on, I'll set up a recurring event to output memory usage every 1 second and then we'll see.
@rdlowrey can't wait to see how easy it is ...
@MadaraUchiha I need to upload my local folder to replace all contents in the repo
@rdlowrey I got switching protocols followed by connection: close =/
user895378
14:21
@Jack probably because I stopped the server :)
user895378
@Jack try again now, I've restarted it
user895378
you'll need to refresh the browser window too
@crypticツ Same working directory as the original one? Or a completely different one?
@rdlowrey nope =( still the same.
of course, my port 80 traffic goes via transparent proxy and telnet goes direct; you think that makes a diff?
user895378
@Jack quite possibly.
user895378
14:23
I could encrypt it and run on 443 then it wouldn't matter :)
user895378
but I don't know how to make telnet negotiate ssl :/
i suppose so ... well, like i said, telnet goes direct anyway.
wait, why is that important in the first place? :)
@rdlowrey This worked :
$fp = fsockopen("174.107.156.0 ", 80, $errno, $errstr, 30);
if (!$fp) {
    echo "$errstr ($errno)\n";
} else {
    $out = "GET /line-feed-chat HTTP/1.1\r\n";
    $out .= "Host: 174.107.156.0\r\n";
    $out .= "Upgrade: line-feed-chat\r\n";
    $out .= "Connection: Upgrade\r\n\r\n";
    fwrite($fp, $out);
    while (!feof($fp)) {
        echo fgets($fp, 128);
    }
    fclose($fp);
}
user895378
nice.
@MadaraUchiha different. Current is all in root, new one has application and web folder
14:25
@Jack type on web i can see it in command line
user895378
@Jack does the in-browser chat work for you?
@crypticツ Only way I can think of is to go to the original repo (located on your PC), remove everything except for the .git folder, and paste in the new content, then commit and push.
@rdlowrey One moment let me see if i can type can see response at the same time on command prompt
@rdlowrey I think so .. just sent tesht
user895378
@Jack hmm ... doesn't look like it. I'm not getting updates from you, anyway.
user895378
14:26
If your http traffic goes through a proxy it's very likely that the proxy strips some of the http headers needed to make the websocket connection work.
@rdlowrey Hmm, no error detection yet huh? :)
user895378
That's the reason why you pretty much have to run websocket endpoints encrypted.
user895378
@Jack What does your browser say the response code is when it loads /echo (the websocket endpoint).
user895378
looks like 101 from my end unless that's someone else who just connected.
Hey, I have a great idea. How about not flagging ridiculously inoffensive chat messages? That'd be awesome. Thanks
user895378
14:29
^^ that
@jalf The user spammed the same question 5 times.
@MadaraUchiha So?
:10733149 CONNECTION:Upgrade
DATE:Sat, 20 Jul 2013 14:28:54 UTC
SEC-WEBSOCKET-ACCEPT:6yC3R0OHfKdQTyA78JGNulb55E8=
UPGRADE:websocket
@rdlowrey for telnet are you principally just reading raw data from socket and push them to chat?
Last I checked, that flag is for *spam*/offensive.
14:29
Consider reporting it to a moderator. Or just tell the user to not do that
we did
@jalf We already told the user not to do that.
And when I last spoke to a moderator, he said to use the flags
user895378
@bwoebi Yep, just reading until it encounters a \n and using each line as a "message" ... it's obviously not a complex protocol :)
Regardless of what the flag is for, what it does is spam every high rep user on the chat. And we do not give a flying fuck that some people repeated their question a couple of times in the PHP room
user895378
Just a PoC -- the cool thing is that the relevent html+js static files, the websocket protocol and the custom line-based socket protocol are all served in the same single-process php server :)
14:30
@jalf So click "Not sure" and get on with your life.
@MadaraUchiha ... so ignore people who spam this room and get on with your life?
@jalf I'd rather one user banned, then 20 users ignoring.
Because that seems to be the gist of your argument: "I reserve the right to spam others to get rid of people spamming me"
If you don't like it, feel free to contact a moderator about this rooms behavior.
@rdlowrey You need to test this
14:31
@MadaraUchiha We can't ban him even if we wanted to
@jalf Of course we can.
	class ShowMessage extends Thread {

		public function __construct() {
			$this->fp = $fp = fsockopen("174.107.156.0 ", 80, $errno, $errstr, 30);
		}

		public function run() {
			if (! $this->fp) {
				echo "$errstr ($errno)\n";
			} else {
				$out = "GET /line-feed-chat HTTP/1.1\r\n";
				$out .= "Host: 174.107.156.0\r\n";
				$out .= "Upgrade: line-feed-chat\r\n";
				$out .= "Connection: Upgrade\r\n\r\n";
				fwrite($this->fp, $out);
				while(! feof($this->fp)) {
					echo fgets($this->fp, 128);
(see full text)
A message or two reaching critical flag mass = auto ban.
@rdlowrey Full Working command line chat using Thread
@Baba Is your pastebin broken? :)
14:32
Hi I'm here for moderation! ;) who needs a spank? C'mon guys let's play to be professionals
@MadaraUchiha And do you think that's likely to happen when you flag a message that, to everyone else in the world, looks utterly harmless and inoffensive?
@Jack pastebin ?
@Baba use while(1) :o this is unnecessary use of goto!
user895378
goto! All of the things!
@jalf Well, I'd expect them to click "not sure", because they have no idea what happens in this room.
14:32
@bwoebi lol
@bwoebi Ok ....
@jalf And seeing as that his one message already got +7 flags, I'd say it's working.
I don't say goto is bad, but there it's shorter and simpler with while^^
@rdlowrey (I took after you :)
user895378
@Jack Sorry I can't offer any more debugging help. I'll continue working on stuff and eventually it'll work for you :)
@MadaraUchiha Why would we do that? If I see someone flag a harmless question, I mark it as invalid, because as far as I'm concerned, it is invalid. If you want a more thorough treatment of it, then use "flag for moderator"
14:33
I got 8 spam notifications, someone is on the trigger today... I can suggest a good caffee
@MadaraUchiha Is it? I'd say it was working if he'd been banned. And I don't think he has
@rdlowrey Yeah, don't mind me ... I blame my ISP ;-)
@jalf It's working since he isn't here spamming anymore. I don't mind if he got banned or not.
@MadaraUchiha yes, I'm sure that it's the flag that he wasn't even aware of that made all the difference
Do you have anything else you wanted to discuss? Because now you are spamming the room.
14:34
Is it me or this app is just absolutely awesome ?
@Baba Which?
@MadaraUchiha Nah, just one thing. Thank you for confirming all my prejudices about PHP users.
@jalf Take care.
user895378
@Jack hey, I'm going to fire up an encrypted websocket-only server on 443 in a minute. You'll have to click through the browser warning because I'll use a certificate I generated myself, but I wanna see if that cures your ws:// connectivity issues. One minute.
@MadaraUchiha Also, I'm not quite sure I see how it is considered "spam" to respond to a flag
What else are we supposed to do?
14:35
@jalf It's considered inappropriate to go inside the room and start being aggressive towards everyone.
@MadaraUchiha oh, I always do. Don't worry
@MadaraUchiha Aggressive... Yeah, that's what I'm doing. Sure
7 mins ago, by jalf
Hey, I have a great idea. How about not flagging ridiculously inoffensive chat messages? That'd be awesome. Thanks
6 mins ago, by jalf
Regardless of what the flag is for, what it does is spam every high rep user on the chat. And we do not give a flying fuck that some people repeated their question a couple of times in the PHP room
@MadaraUchiha 174.107.156.0 powered by Aerys .. Pure PHP server capable of 20K connections
yes, that sure looks like "aggressiveness". Sure...
@Baba Oh yeah, I saw that, it is awesome
14:38
@MadaraUchiha wrote a simple command line client in less than 3mins ... now that is making me crazy
Who is OMB ????
@jalf You know what? I honestly do not give a fuck. You have a problem with how flags are used? Raise it to the Stack Exchange team, and explain why the current flagging reasons suck. You have problems with how flags are handled by users or by the system? Raise it to the Stack Exchange team and explain why the current system sucks. You don't get the privilege to tell others how to use the system, unless it's abusive.
@MadaraUchiha how do I make it ignore a local folder when committing? I have a folder called 'system' in my assets folder and want it ignored
@rdlowrey someone just weaponized my code :)
@crypticツ Add a .gitignore file and add whatever you want in there.
user895378
@Baba lol
14:39
@PeeHaa ping
yo @Baba
@MadaraUchiha in the 'system' folder or in root folder to me uploaded?
@PeeHaa I suspect you or @Jack
@Baba What did I do?
@Baba Say what?
14:39
@MadaraUchiha you know what, I also don't give a fuck. I personally think it is generally more constructive to talk to people when you have a problem with them, than to just call for an adult and ask them to take care of it for you.
@Jack One of you weaponized my code .. now am getting bombed
That might have been me
@crypticツ In the folder with the .git folder. The main repository folder
user895378
@Baba Well, like I said, there's no validation javascript-wise ... it's just to demonstrate the functionality. I don't know anything about attacking things with JS, so your mileage may vary. In summary, don't expect apache to prevent javascript errors. That's basically what's happening with my code.
And I'm pretty sure that doing that does not violate a single StackExchange rule
14:40
;)
@Baba You're delusional ;-)
user895378
I'm concerned with the server. I'm sure the crap 50 lines of js I wrote to see it work are totally vulnerable.
user895378
Not to mention there's no validation on the line-feed protocol.
@MadaraUchiha so use /web/assets/system or web/assets/system does it need trailing slash? or wildcard?
14:41
@Jack Only @PeeHaa and @Jack is capable of chat of mass destruction
@crypticツ It needs a trailing slash for directories, yes.
wildcard is also applicible.
Or who else could be sending bomb
@Baba You're giving us too much credit ;-)
"They set up us the bomb"?
14:42
Oh, and one suggestion: if you don't want people reacting to your flags, have you considered that maybe you should stop flagging?
Could it be @crypticツ .. He has been client ... She would be a spy
Anyway, I'm out. Have fun, kids
@jalf Now we'll just flag to get you back here, just like the batman light.
brb food
So I have a question.
My local PHP server won't display errors it should display (syntax errors are shown as 500 error pages)
14:44
gave up on the web
it crashed when it was bombed
console still works like charm
Then close that tab and watch it decrement back down.
chat all the things.
yeah, i blame PeeHaa.
lol
I agree
Obviously I can't be bothered to fireproof the javascript I wrote in five minute
php.ini is configured fine, what could be the problem?
@PeeHaa your name came up again :)
puh, it's too hot today
and I already was swimming this morning.
time for a cold drink maybe.
@hakre Cold shower + AC always does the trick for me
@hakre Swimming in your own sweat? :)
14:46
@MadaraUchiha I hate AC.
Why's that?
15 Flags?
Really? 15?
@Jack yes, pretty impressive, right?
We're getting good :D
14:47
@MadaraUchiha yap lol
@rdlowrey did the server crash ??
user895378
@Baba I pressed ctrl+c
user895378
Restarted now :)
@NikiC might be of interest to you stackoverflow.com/questions/17762771/…
Why some of the devs use CREATE TABLE IF NOT EXISTS? if he is going to make than why not make 1 at first place?
user895378
14:47
@Baba That time I think you killed it!
user895378
What'd you do?
something to do with temp table?
@rdlowrey am going to run some test now .. get ready
user895378
lol, great. My laptop is going to fry.
@hakre Indeed, that sometimes happens here ... it's almost 11pm and still 28deg =/
14:49
@Mr.Alien it creates a table if it does not exist already so you can safely rerun this query.
@Jack wow. that's hotty hot. but sometimes it's 40 at midnight I guess.
user895378
@Baba Like I said, there's no validation on the line-feed protocol connections, so manually hammering it will probably succeed in bringing it down :)
user895378
Andddddd it's dead. And back up.
@hakre Ah that won't happen :)
No one knows the answer to my question? :(
i nid codez plz
user895378
14:50
@MadaraUchiha About 500 + php errors?
lol, now drinking cold lemonade too fast and having a hick-up :D
@MadaraUchiha To flag or not to flag.
@rdlowrey aye
@rdlowrey I get always some broken pipe when it goes down…
@rdlowrey Just sent Syn flood
14:50
@Gordon Yeah, but if we need that table than why not make one at first place, anyways you don't need to create everytime you run the query unless you drop at certain point
user895378
@Baba It's still running at the moment ... and I'm using the server machine to type this and it hasn't blown up yet.
user895378
But once you get past the HTTP upgrade step there's no validation.
@rdlowrey I think it has .. 174.107.156.0 looks down from here
@hakre try drinking soda that fast and you'll get a big burp
user895378
@Baba working for me?
user895378
14:52
And others.
Up for me
ping 174.107.156.0
PING 174.107.156.0 (174.107.156.0): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
user895378
I wonder if you broke the network infrastructure between you and me on the internet with your syn floods :)
14:54
Works for me ^^^
user895378
lol who's sending HEAD requests?
@rdlowrey lol
user895378
They work just fine, BTW.
user895378
So will TRACE, OPTIONS, etc.
okay… seems ping doesn't work, but port 80 works…
user895378
14:54
My router might be telling you to screw off. The only open port right now is 80.
@rdlowrey imcp is not port based?
user895378
I was including that for informational purposes :)
@rdlowrey I only sent 82,150 ... that is not too much for be to be blocked :)
user895378
I don't know, it's a residential-grade router :)
@bwoebi It is :)
user895378
14:56
woops, accidental ctrl+c trying to copy. sorry.
@rdlowrey haha xD
user895378
Sometimes I forget to shift+ctrl+c in the console.
down again?
user895378
someone killed it (back now).
lol, the joy of public internet.
14:58
@rdlowrey how did the someone kill it?
user895378
@bwoebi I'm not exactly sure at the moment. I didn't get an error message. But it's whatever @Baba is doing.
@rdlowrey which type of error does appear when it's killed? 11?
@Mr.Alien huh? The table is created in the first place. Not everytime the query is run. The IF NOT EXISTS just makes sure that I can safely rerun this query later. After I created it in the first place.
http://stackoverflow.com/questions/17763481/creating-a-simple-mysli-based-login-system
can someone explain where this originates from "As of today, July 20 2013, at 3:06 PM IST, I DO NOT give Facebook or any entities associated with Facebook permission to use my pictures, information, or posts. By this statement, ..." and if this isn't a total hoax?
15:00
@bwoebi just overloaded it with connections thats all
@hakre They'll come crawling back sooner or later =p
user895378
I'm surprised I'm not getting an error in my console when that happens. Need to look into that. Right now the process just exits with no warning.
user895378
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /home/daniel/dev/php/Aerys/src/Aerys/Handlers/Websocket/WebsocketHandler.php on line 599
user895378
^ Saw that one.
@Gordon Of course it wont if it exists but who will keep that big fat query in the source, say like I am using that for creating a table where I maintain the user login records, uname, pwd etc, so its like create if not exists tbl_users .. doesn't make any sense, the table has to be there and I've already made it than I won't be using the query, cuz even if the table is dropped, creating a new one won't make any sense here
user895378
15:02
I assume that's the result of abusing the line-feed protocol?
@rdlowrey I thought memory consumption was minimal? ;-)
lol (ouch)
user895378
@Jack It is, but I'm not limiting what you can send to the line-feed protocol. So if you send a stream of data without a line break it'll just keep adding up.
user895378
Duh.
hehe
Someone uploaded 128M of crap to you in other words? lol
user895378
15:03
Yep :)
user895378
Nothing like having people DoS you to brighten up the weekend.
@Mr.Alien everyone who wants to replicate the query at a later point. Think Migrations.
hello every one
@Gordon yaa now this makes sense.. hmmmm, I will comment :p hehe
can I ask for something
15:06
@Sparrow No.
@MadaraUchiha why :O
@Sparrow Please read the top right description
@MadaraUchiha nice description
user895378
@Jack -- here's an encrypted version. Let's see if that works for you. Just ignore the telnet instructions. It's using the same html file but not actually serving the line-feed protocol alongside the websockets: 174.107.156.0
@Sparrow Don't ask to ask, just ask.
15:07
@MadaraUchiha hahaha
@MadaraUchiha ok :)
@Sparrow come on, ask, what you want to, if anyone knows, he will help you, just don't post big codes here plz
it I have 10000 records and I want to add them to the database . what is the best way to insert them
do not worry about codes guys
@Sparrow Prepared statements and a loop
10k records isn't that much.
How often are you inserting 10k records?
and no overflow would happen ?? @MadaraUchiha
15:10
@MadaraUchiha Loop? no...
hello friends I require 1 upvote for this stackoverflow.com/a/17763512/1679187 I will delete it so I can get badge . :)
@MadaraUchiha actully did not tried this question was asked to my by a friend of mine .. he does not know stackover flow chat :)
@YogeshSuthar shit, I was just going to fire that if I didn't saw your name there..on the posted chat message
@YogeshSuthar I fooled the system, delete and +3, undelete back after you get the badge, job done
btw, did you got your new laptop?
@Mr.Alien now can I delete it?
no
user895378
lol @Baba -- 431 Request Entity Too Large much?
15:12
on tue-wed
y? and yes, you can delete, and undelete back
@Mr.Alien deleted. :)
brb going for lunch
@MadaraUchiha and can I get a link explaining what you said??
@rdlowrey :)
@rdlowrey Hope you are enjoying the show
I'm so hopeless lost about how to use git =o( @MadaraUchiha
user895378
15:14
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
32429 root      20   0  263m  14m 7576 S  1.3  0.4   0:00.61 php
@YogeshSuthar I guess dinner
@crypticツ Too Broad.. close voted
yesterday, by Gordon
@Tredged see https://help.github.com/articles/set-up-git and also http://try.github.io and http://sixrevisions.com/resources/git-tutorials-beginners/
user895378
@Baba All your DoS are belong to aerys (see above usage stats)
@rdlowrey I see . .. Round 2
user895378
here it comes ...
user895378
15:16
I'm watching my top output ...
user895378
Right now I don't have limitations on the number of clients that can be connected to the websocket endpoints at once -- after the http server exports the socket to the external handler aerys stops worrying about it.
@rdlowrey heheheheheh
user895378
So you could conceivably hammer the server by making successful upgrade requests and then never closing those connections.
user895378
Of course, I've run with 20,000 simultaneous connections before, so while you can slow down the server that way it's unlikely you can kill it without a very concerted effort.
user895378
15:20
But limits on the number of allowed connections beyond the HTTP upgrade barrier is something I will integrate.
@rdlowrey I see .... time for round 3
user895378
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
32429 root      20   0  268m  17m 7592 S  0.7  0.4   0:01.82 php
@rdlowrey Just got 100$ packet loss from 23871 packets but only 199 received
@rdlowrey your router must have kicked in again
user895378
@Baba probably :)
user895378
15:23
Because the server is still running. Netgear consumer-grade router FTW!
@rdlowrey i see
user895378
Anyhow, I'm afk for a couple of hours. If you manage to kill the server I won't be able to bring it back up for a little while and you'll just have to DoS yourself. Will cleanup the multi-protocol chat code and push that later.
@rdlowrey Nice one .... well done
@rdlowrey funny enough ... am have been able to connect back
server adding white space breaks the scripts, any idea how to avoid this
do you think it is best to have a service dedicated to loading entities
and have a loadEntity($type, $id); method and other public ones like that?
15:37
@rdlowrey downforeveryoneorjustme.com/174.107.156.0 (Server is down at last)
@Baba what did you try this time?
@bwoebi Combined Mass Message & Syn Flood and it went offline
@Baba I don't expect that the syn flood was causing any problem
@bwoebi Just sent the two at the same time ... i need to see his error log to know what went wrong
a syn flood brings a server down (not the script)
@Baba and the server is still up, just not the port listener
15:46
@bwoebi i see
@bwoebi Why do you think it went off
@Baba mass msg?
@bwoebi lol ok
or what did you expect?
@bwoebi we are testing so anything is possible

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