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

user895378
9:00 PM
@bwoebi E_TOO_MUCH_TERNARY
 
user895378
@bwoebi Why are you testing for length? Control frames aren't allowed to exceed 125.
 
@rdlowrey not really. it's readable.
@rdlowrey oh.
 
user895378
Also, your PONG response must specify any body sent by the PING frame as its payload.
 
user895378
And word to the wise: even though the spec doesn't require PING frames to specify a payload, chrome at least will not respond to a PING frame if it doesn't carry a payload.
 
yes, thats why substr($raw, 1, $len /* payload */ + ($mask?4:0) + 1 /* length information byte */)
 
user895378
9:04 PM
Oh I see.
 
@rdlowrey no - browsers which respect all the spec's edge cases don't exist...
 
ooooh. httpbin.org. I didn't know that. useful.
 
user895378
@Gordon It does foobar things with cookies!
 
user895378
(annoys me because it makes my integration test results jump around)
 
user895378
Also, it doesn't correctly handle chunked request bodies, which also foobars some of my testing.
 
9:05 PM
@rdlowrey i well, if the rest is working, it's still useful
 
user895378
It is very useful, just needed to throw out complaints regarding the unaddressed issue reports I filed :)
 
user895378
@bwoebi but it looks right to me.
 
@rdlowrey didn't I forget the fin bit?
 
user895378
@bwoebi I assumed that's why the substr started at 1?
 
@rdlowrey oh btw. When I was a kid I rode Fuchur
 
user895378
9:07 PM
@Gordon Nice!
 
@rdlowrey I mean the fin bit isn't included in "\x0A"
should be "\x7A", right?
 
user895378
@Gordon In 'murrica we call him Falcor, but it's all the same :)
 
You may have SWAG. But you'll never have SWAG like this guy:
 
@rdlowrey oh. didnt know that. Well, I was at the Babelberg studios where they filmed it and they offered that for tourists, particularly for the kids. you climb on his neck (it really just had a neck, nothing else) and then they'd put sky in the back. like in the movie whenever atreyu was riding him
 
Where is @PeeHaa when he should clean up the room from #*%!&%@% gif images? (like this from @MadaraUchiha)
 
user895378
9:09 PM
@bwoebi In all honesty it's been a couple of months since I looked at websocket protocol implementation details, so I'm a little fuzzy on some of the exact bits.
 
@rdlowrey no problem… but didn't know who to ask
 
@Gordon Hello, sir
 
user895378
One thing specifically I remember that you may want to incorporate is ...
 
user895378
@bwoebi @DaveRandom has also implemented this and may be of help.
 
@rdlowrey who isn't here at the moment…
 
9:11 PM
@user4035 Hello, sir, too. You have a doubt?
 
user895378
You may want to limit the number of PING frames you send that aren't responded to by the client before you close the connection. Basically since you're supposed to keep around the PING frame payload to match up against the PONG (and browsers make you send a payload with your PING) you need to avoid storing these payloads and not disconnecting clients that don't answer the PINGs.
 
@Gordon Yes, can you look into my answer: stackoverflow.com/questions/17766505/… On my machine it works like I described, but the PO claims, that my code gives different result on his machine. Can you check it?
 
user895378
Otherwise a malicious client could just not respond with PONGs and you could infinitely store these payload bodies. They're small, but I feel like that could add up.
 
@rdlowrey shouldn't I just disconnect a client if he doesn't react in a certain time interval?
 
user895378
I don't know. That may be too small a hole to really exploit in practice, but I thought it worth mentioning.
 
user895378
9:14 PM
@bwoebi Well, that too. But what if they send you data frames but don't respond to the PINGs?
 
@user4035 uuh. not right now. sorry. maybe try with an online service, like those listed at stackoverflow.com/questions/4616159/…
 
@rdlowrey I'm adressing browsers, not selfwritten incomplete bots?
 
@Gordon ok
 
user895378
@bwoebi Well, I suppose as long as you specify a required allowedOrigin setting then it doesn't matter.
 
And I don't understand why I should support a browser which cannot implement a spec correctly?
@rdlowrey how do you mean?
where should I specify this?
 
user895378
9:16 PM
@bwoebi It's not that browsers don't. It's that I can write a malicious websocket client that ignores your PING frames on purpose.
 
@rdlowrey yep, then it just would be disconnected after a certain time?
 
user895378
@bwoebi That works for most cases but not if you have an application that's constantly sending non-PING information back and forth from either end.
 
user895378
Like I said, it's an extremely small hole and very unlikely to be exploited.
 
user895378
As for the Origin stuff ...
 
btw. @rdlowrey to use this afternoon all your memory up I just opened as many connections as I could…
 
user895378
9:18 PM
@bwoebi Ah -- that probably has to do with what I mentioned -- how I don't currently limit the number of connections once the HTTP server hands off connections to the websocket protocol handler.
 
I think this is much more a problem
 
user895378
@bwoebi Yes, but one I'm aware of and just have ignored to this point with the knowledge that I'm going to fix it :)
 
yes, but how to fix without restricting other users? (prevent others from log in etc.)
 
user895378
@bwoebi Well you'd have to open up a lot of connections to do that.
 
I can make a hard limit, yes, but can I … good… I have an idea. I could restrict the connections per cookie
@rdlowrey yeah, a few thousand
Because I just use websockets when one is logged in.
 
user895378
9:22 PM
@bwoebi Any idea how many you opened up to cause the memory failure on my end today? I've gone up to 20k with http connections (that's the most ab will do) without problems, though the websocket handler may use more memory per client than the http server. Of course, I also only set my php to allow 128M which is far lower than what you'd do in a real production environment where you expect tens of thousands of clients at one time.
 
can you start your server?
will implement a counter and then run it
 
user895378
Yeah, hold on. Let me start it and set allowed memory to 1G and see what happens.
 
user895378
@bwoebi HTTP server only, right? You're not going to send websocket frames, right?
 
@rdlowrey telnet way, yes
 
hello everyone
Im building a social networking site and i want to have a messages notification that alerts the user when they have a new comment. I'm wondering how i should go about doing this, such as how my database should look.
 
user895378
9:26 PM
Same as before, okay. One sec.
 
restart pls
 
user895378
@bwoebi okay, sorry, had to add some config settings to hopefully thwart your efforts :)
 
user895378
Ready now.
 
user895378
Actually, those settings only apply to the http server so they wont help with the telnet DoS.
 
user895378
If you really want to test what you can do you should try to do it only against the http resources because that's representative of the security measures that will actually be in place.
 
user895378
9:31 PM
It's just that I only implemented the telnet stuff on the fly over the last couple of days and there are no security safeguards.
 
@rdlowrey won't write a lot on the telnet, it's mainly opening connection
did you take it down?
 
user895378
@bwoebi Yes, but even that is a major difference -- for example I can't use SO_LINGER = 0 when those are closed.
 
user895378
@bwoebi Nope. Still up for me.
 
@Sparrow I'm sorry, we can help you with specific problems, but what you're asking for is too vague (and asking for too much information without trying to find it out yourself)
 
@rdlowrey oops
had https
 
user895378
9:34 PM
oh :)
 
@Jasper I am searching on google but with no good results
 
user895378
@bwoebi Also, for a real protocol you couldn't just open the connection and not do anything and leave it open. It works against the telnet because it just sits there and accepts anything you give it, but with something else there would be timeouts for inactivity, failure to respond, etc.
 
@Sparrow Well, the idea is that you make sure you know how to design a database, and then you can come up with a database design. We're not going to dot he work for you.
 
user895378
   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  1732 root      20   0  250m  15m 5912 S  7.0  0.4   0:02.03 php
 
@Jasper I finished designing my website with the database I just need to give the user notifications if he has 1 , 2, 3 new messages.
I have four tables on the database one of them is messages
 
user895378
9:38 PM
Another major difference between the server now and the server earlier is that before it was running off of stream_select ... I actually told it to use libevent this time, and that's vastly better at handling high socket load :)
 
@Sparrow I imagine you could have a table for notifications, and whenever a user has commented on someone's post, their comment is added to that table, then do a select count on that table (within that table there's user_id for which notification belongs to which user that is)
 
@rdlowrey uh, shit was reaching my ulimit… setting it to unlimited should help…
 
@bwoebi that's the first issue you generally run into. there's possibly more OS limitations ahead. :)
 
@rdlowrey :)
 
user895378
Someone killed it.
 
9:41 PM
@DaveChen nice you mean like emails when you can see how many messages you have or something like that?
 
@rdlowrey it was @Baba
restart it
 
@Sparrow sorta like an inbox (like SO), yes -- so once it's viewed, it's unset (a column for read/unread). However, it's different, since the reply to your post is only linked by reference, not copied. (ex. id, user_id, parent_post_id, reply_id, etc)
 
user895378
Seriously though, don't bother with the telnet attacks -- that's a waste of time. Let me set up a hardened HTTP server with the appropriate security settings and see if it works then.
 
@bwoebi There is a mod just above you!!!!!!!!
:-)
Evening y'all
 
@PeeHaa then now bin this gif :o
 
9:42 PM
Let me try to read back
 
@rdlowrey but then I have also to copy all these headers from my browser :-(
 
Please bare with me and give me some time to see what has happeneded
 
@rdlowrey am ready for HTTP POST
 
@PeeHaa @Madara has put in there a dumb gif
 
user895378
hold on, I'm going to restart. Back in a moment. I'll ping you guys when I'm ready to get bombed :)
 
9:44 PM
1 message moved to Lounge<C++>
 
@DaveChen look what I have on my database, I have message table which has those columns inside it (
id
auth
recip
pm
time
message
comment
usertype)
how can I customize that on what I need
 
@bwoebi Aaaaaand it's gone
 
@PeeHaa :-)
@PeeHaa It's still starred. Remove it from this list :o
 
@Sparrow what is the column that indicates whether or not it is a reply (and which post it is replying to?)
 
9:48 PM
@DaveChen no I have just messages (sorry about the word comments) the users can send each other messages sorted by date.
 
user895378
Okay -- here are the settings:
 
user895378
HTTP only, but there's no keep-alive timeout and no connection limit.
 
@rdlowrey http or websocket?
 
user895378
So you can just open up as many connections as possible and send as many (well-formed) requests as you can.
 
ok
 
9:49 PM
@Sparrow add a column in this table called seen, you can toggle this flag if the user has read the message, and count the table for this flag for how many messages they have not read.
 
user895378
http only -- but that's as simple as:
GET / HTTP/1.1
Host: 174.107.156.0
 
user895378
There are limits in place for entity body size, though, so don't bother trying to overload that.
 
user895378
There's also no limit on the number of requests you can make per connection.
 
user895378
So in theory, you should be able to keep each connection alive until the server decides it can't handle it any more.
 
@DaveChen and what is the values inside that column( 0 , 1 ) ?
 
user895378
9:52 PM
Oops, hold on, I want to set a recurring event to output the number of connected clients, memory usage, etc.
 
@Sparrow uhh I believe tinyint(1) for booleans, hopefully the PHP room will correct me on this :)
 
@rdlowrey are you ready ?
 
@DaveChen sorry did not get it.
 
user895378
@Baba almost!
 
values are 0 for unread, 1 for read (or whatever you feel is better)
 
9:53 PM
 
user895378
@Baba Okay, ready.
 
@rdlowrey is it down?
 
@DaveChen nice, and how the value is going to be updated to 1?
 
@DaveChen I have not read whatever it is you guys are talking about, but when I see tinyint(1) I think MySQL stupidness and start throwing up a little
 
user895378
@bwoebi No: 713 connnected clients and memory usage of -- 17,039,360
 
9:54 PM
@Sparrow when the user views the message, (ex. checks their inbox for 3 seconds on the page -- ajax)
 
@rdlowrey I'm just receiving operation timed out
 
user895378
Anyone else having trouble loading 174.107.156.0 ???
 
cannot connect anymore
 
Hello world
 
@rdlowrey Hello, World.
 
user895378
9:55 PM
@bwoebi lol, I wonder if my router determined that your IP was bad news :)
 
@rdlowrey working here
 
^^
 
@DaveChen oh , then I should learn ajax more ( I still a beginner).
 
user895378
In any case, if anyone else wants to try to pile on @Baba's current DoS attempt isn't making a dent.
 
user895378
Only around ~800 connections and ~19MB memory usage.
 
9:56 PM
@rdlowrey am not doing DOS just sending basic POST ....
 
@rdlowrey crash 174.107.156.0 ?
 
@rdlowrey this was me
 
@rdlowrey get ready for round 2 ... bigger data
 
user895378
Bring the pain!
 
Okay let me try.
 
9:57 PM
/me brings a world of hurt to @rdlowrey
 
had up to 792 connections open @rdlowrey
 
user895378
Well since there's no keep-alive timeout as long as you don't manually close them they'll stay open.
 
@php-chat repos interested people and license bitches in general (I'm looking at you @hakre owh great room owner :) ): github.com/PHP-Chat/CVBacklogUI/issues/11#issuecomment-21294985
^ thoughts please
 
@DaveChen if you can give me a link to learn that thing on ajax I would be very thankful :)
 
@Baba think I'd done something wrong … 2000 threads open :o
 
9:59 PM
@bwoebi lol
 
fork thread bomb!
 
user895378
hehe
 
@Sparrow if you're using jQuery look up $.GET/$.POST if not, use new XMLHttpRequest();
 
@bwoebi Used a Pool of 100 instead
 
user895378
Well, you guys keep trying to take me offline. I'm going to go eat a sandwich or something. I'm going to be severely disappointed if my keyboard is still responsive when I come back in ten minutes.
 
10:00 PM
@Baba yeah but I had written for ($i = 0; $i < 100; $i--) xD
 
@DaveChen I think I will take some tutorials in w3schools on the ajax
 
@Sparrow or simply set all flags to true if they view the inbox
 
cannot connect anymore… think his router denies all my connections now
 
@DaveChen sorry about this question, but how ?
 
@bwoebi nice ... adding more juice .. brb
 
10:02 PM
Are butthurt people going for c++ or does c++ make people butthurt?
 
user895378
Oh, hint: the more complex your headers are the longer it takes to parse them. For maximum effect try to send as much header data as possible while staying under 8K of header data (if you pass 8k in headers your connection will get the axe). Make sure the headers aren't malformed, though, or you'll get a 400 Bad Request and be closed for that as well.
 
that should be using jquery on ajax @DaveChen
 
@Sparrow if you have jQuery in your project already, you can run $.GET('set_all_read.php'), assuming set_all_read.php is a PHP that reads the client's cookie and sets all the flags within the database (belonging to the user) to false.
 
@rdlowrey still here?
can you restart your server/router? want to try
because I cannot access the site anymore
 
@bwoebi :)
 
10:04 PM
@PeeHaa why are such jokes about C++ ???
 
@bwoebi I can still access it :P -- not cache
 
@bwoebi It still there just slow ... told you i would turn up the juice
BRB
 
@hakre It's an honest question :-)
Or is there an option c?
 
@DaveChen but I did not use cookies on my project
 
works now again
 
10:06 PM
@Sparrow so how are you keeping track of who is logged in?
 
in Lounge<C++>, 7 hours ago, by Bartek Banachewicz
> use PHP
> complain about idiots in the room
 
@DaveChen using session (it was just school project but now I am thinking of developing it for me and my friends)
 
@Sparrow sessions still use cookies (unless you use the get option -- are you?), well regardless, you can still know who is who, and set the flags based on $_SESSION['user_id'], or whatever index.
 
user895378
@bwoebi Lemme see if I can fiddle with router settings so it can't interfere ...
 
user895378
Woah that worked, whatever it was.
 
10:10 PM
@rdlowrey memory ?
 
@rdlowrey this was me just now
 
@DaveChen this is how I create session
session_start();
if (isset($_SESSION['user']))
{
$user = $_SESSION['user'];
$loggedin = TRUE;
}
else $loggedin = FALSE;
 
user895378
@Baba yeah, but only because I forgot to up the limit from 128M. Of course it went from 38M to 130M almost immediately. What was the cause there?
 
Also Even though they say they hate PHP. How come I see 6875 PHP messages in c++, but only 1455 c++ messages in room 11. #MakesYouThink
 
user895378
(back online now)
 
10:11 PM
@Sparrow what is the value of`$_SESSION['user']`? Not bad, but I'd recommend managing your own cookies with cookies and not session.
 
@DaveChen not bad for the second project for me, I just learned php
 
@rdlowrey big headers, lots of connections and big content length
 
@rdlowrey scan you back yet
 
it is taking the username from the database from the members table, the column for the username is called user.
 
@DaveChen How do you think sessions are tracked?
:)
 
10:13 PM
@PeeHaa sessions are with cookies or with the $_GET :P, but I'd make a cookie with a random string, store that with the user and database instead of using $_SESSION.
 
@DaveChen sessions are with cookies PERIOD
 
@DaveChen so it is a good idea to change the sessions to a cookies
 
:)
 
can't reach the server now -.-
 
user895378
10:15 PM
Okay, I'm back online with the following settings that are fairly representative of what you'd do if you expected high volume:
 
user895378
'options' => [
    'keepAliveTimeout'   => 10,
    'socketSoLingerZero' => TRUE,
    'maxConnections'     => -1,
    'maxRequests'        => 1000,
    'maxBodyBytes'       => 1048576,
    'maxHeaderBytes'     => 8192
]
 
@DaveChen Yeah I know that. But everybody who uses the querystring to pass the session id should be shot
 
@DaveChen I took this function from a book to loge out.
function destroySession()
{ $_SESSION=array();
if (session_id() != "" || isset($_COOKIE[session_name()]))
setcookie(session_name(), '', time()-2592000, '/');
session_destroy();

}
 
@PeeHaa that's why I make bake my own cookies :)
 
user895378
Although technically you wouldn't leave maxConnections unlimited and you'd probably set maxRequests to like 100/200 per connection ...
 
10:17 PM
@Sparrow what does $_SESSION['user'] contain?
 
@DaveChen STAPH IT NOWH! I'm getting hungry
 
@PeeHaa this also prevents people from getting those stupid infinite redirect errors, if you misuse $_COOKIE and redirect if it's not set properly...
 
@DaveChen Never had that before I think
 
@DaveChen I told you it is creating a session for every user loges in with his name from the column "user" on members table.
 
@PeeHaa ??????????????? (how insulting) ;)
 
10:18 PM
did you get it ?
 
in your original table schema

id
auth
recip
pm
time
message
comment
usertype

Which column indicates which user is sending the message?
 
Has anyone here used XAMPP?
 
@AshKetchum yes, it has some unspecified issues
 
@AshKetchum always for local testing :) -- but it uses MySQL eww
 
10:22 PM
use WAMP or other
 
WAMP all the way ha
 
Well I have trouble using htaccess on it.
 
@DaveChen I told you on members table not messages table
members(
firstname
lastname
email
user
pass
passconf
usertype)
 
@rdlowrey why do I continuously get broken pipes?
 
@AshKetchum set it directly in httpd.conf
 
10:23 PM
set what?
 
@AshKetchum htaccess, assuming url rewrites
 
user895378
@bwoebi 'maxRequests' => 1000 means the 1,000th response on each connection has a Connection: close header informing you that server has decided you're finished :)
 
user895378
I'll disable that and restart so you don't have to reconnect after every 1,000 requests.
 
user895378
(going down) back up
 
@Sparrow for an individual message, message table, where does it indicate who is sending? (recv is receive)
 
10:24 PM
@rdlowrey this wasn't the problem
 
user895378
@bwoebi What http protocol are you using?
 
user895378
All I can say is that if you're doing something that's not spec-compliant the server is going to send you an error response and close the connection.
 
1.1
 
@DaveChen I am not sure what you mean by setting htaccess in httpd.conf file.
 
user895378
I'll turn on logging so I can see what you're getting back in response.
 
10:26 PM
I'm not getting a bad request
 
Where in the file, what do I change, what do I add?
 
just unable to connect now
 
@AshKetchum what are you setting within your .htaccess? I believe you can copy and paste/append it (maybe need some wrappers) into httpd.conf
 
Never mind forget it.
 
user895378
@bwoebi back up with logging.
 
10:28 PM
@rdlowrey still not able to
 
user895378
@bwoebi hehe, it's running. I looked at my router settings to see if there was anything I could disable there, but it doesn't look like it.
 
@DaveChen when the user views a page for any user the following url shows (members.php?view=sparrow) then using get method it will take the view variable from the url $_GET['view'] then it will be inserted to the receiver culomn.
the sender name is the $user = $_SESSION['user']; and that will be the sender
 
user895378
Somewhere between me and you I think that there's some network infrastructure that decides you're doing something you shouldn't and limits your access.
 
@rdlowrey I am trying echo -n "GET / HTTP 1.1\r\nHost: 174.107.156.0\r\n\r\n" | nc 174.107.156.0 80 on the console to see if I can access it but I don't get any answer…
although this should be a valid HTTP 1.1 request
 
10:31 PM
yes, I know
 
goodafternoon
 
user895378
It's up for everyone else ... maybe it's my Time-Warner Cable ISP that tries to protect it's dear customers :)
 
	function get_user_id()
	{
		$userid = NULL;

		if(isset($_SESSION['id']))
		{
			$userid = $_SESSION['id'];
		}

	return $userid;
}
The code above displays no id is that because of the $userid = NULL; ?
 
@rdlowrey haha^^
 
@Tredged Godaftermonrig
 
10:32 PM
@Tredged or $_SESSION['id'] is NULL...
 
user895378
@bwoebi Are you getting ulimit errors?
 
@rdlowrey no?
 
@DaveChen I checked that already ;)
 
@DaveChen sorry did you see my message :)
 
@DaveChen Otherwise it would work right?
 
10:33 PM
@rdlowrey I set it already to a few hundred thousand
 
this is so stupid!
 
user895378
I was thinking it might be possible that you have a bunch of connections hanging out in the TIME_WAIT state after the connection closes, but I don't think TIME_WAIT sockets count against your file descriptor limit.
 
@Tredged hmm or it is "NULL" -- haha just kidding, yeah the code looks correct
 
ah finally
 
user895378
10:35 PM
Looks like POST / with large entity bodies ...
 
yeah
 
user895378
I got rid of the maxRequests limit so your pipes shouldn't break ...
 
still break
 
@DaveChen Thankyou
 
why not:

    function get_user_id() {
        if (isset($_SESSION['id'])) {
            return $_SESSION['id'];
        }
        return null;
    }
 
10:38 PM
shit, I crashed my server
 
how?!
 
@AshKetchum use java
 
with php… somehow
 
@DaveChen for what?
 
10:41 PM
but I have no idea what was wrong. no memory excess, only 100 threads, only about 450 connections, no i/o excess, no process excess…
 
@MadaraUchiha no, I couldn't get it to work. Wasn't understanding anything much, was noon and still had not slept. Will give it another shot since I'm kinda rested now.
 
user895378
@bwoebi :/ I dunno. It's running if you wanna through more stuff at it. Don't feel obligated.
 
@rdlowrey libev seems to be faster
@rdlowrey got it from libev.schmorp.de/bench.html
 
is it for $_SESSION['id'] var_dump($_SESSION['id']); or var_dump($_SESSION[id]);
or doesnt matter?
 
@crypticツ is there some automation for the cv backlog based on PR's or do you manually sync the site?
 
10:48 PM
@rdlowrey wondering which problems my server is experiencing...
ah. It's back now… will retry :-P
 
@PeeHaa manually, just trying to figure out how to upload my local copy through git. I got as far as using 'git init' =oP
 
@crypticツ :-)
 
okay. Ethernet kernel module had collapsed. Everything was working, just not the ethernet. so I thought it would be down…
 
Is it possible to change the value of $_['DOCUMENT_ROOT']; in PHP for the site globally?
??
 
@AshKetchum you mean $_SERVER?
also, why?
 
@igorw Because I want to leave localhost by default for the xampp page but the true root of the website is $_['DOCUMENT_ROOT'] . "<Project Name>" . "/path-to-file.php"
Unfortunately, DOCUMENT_ROOT doesn't include the project name in its string, which messes up the URL and I don't want to hardcode it in because I want it to be flexible when I upload it to the live server.
 
@PeeHaa what am I doing wrong? pastebin.com/y6VsvFFQ
 
@rdlowrey I hate these broken pipes
 
@crypticツ Why are you creating a new repo instead of cloning the existing on github?
 
11:04 PM
@PeeHaa because it's completey different file structure?
basically want to replace/overwrite whole branch
 
@crypticツ branch or repo?
 
branch (master)
 
I would rather just clone the repo from github and make your changes in the clone
IIRC you would need git@github.com:user/repo.git either way instead of the read only https URL
Although now that I look at the error it looks like the key is missing
ow wait
Now that I have actually read the thing :P
First pull the latest version
After that you should be able to push
 
ok pushed
worked, but old copies that should no longer be there are still there
 
What are the old copies? The stuff in the root?
 
11:11 PM
yeah all the php files in root
and the assets folder in root
 
If they are gone in you local repo and you have commited it they should be gone.
I can delete them for you though
What does git status tell you?
 
anon@anon:/_www/_github/CVBacklogUI$ git status
# On branch master
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: assets/js/main.js
# deleted: assets/less/bootstrap.less
# deleted: assets/less/main.less
# deleted: assets/less/variables.less
# deleted: backlog.php
# deleted: backlog_ui.php
# deleted: json_file_cache.php
#
# Untracked files:
so it looks like it deleted it? But not sure why they show up still
 
@crypticツ It is deleted from the FS, but the deletions aren't commited yet
Do a git commit -a to commit all those deletions
And after that a git push
Then it should be synced
 
:((((((((
 
Looks like it worked? @crypticツ
 
11:18 PM
yay!
 
yay! :)
 
now how do I get it to stop asking me for password? I uploaded my ssh pub key and it doesn't seem to work
 
It just asks me whether to store the key. Maybe store the key in ~/.ssh?
 
@PeeHaa it is stored there, ssh keys work fine with other services
 
@crypticツ is it still setup to use the https URL instead of the ssh URL?
 
11:31 PM
I think so
 
Can you run git remote set-url origin git@github.com:PHP-Chat/CVBacklogUI.git on your repo and try again please
 
I need help connecting to mysql database in pdo with xampp
 
hi!
 
hi!
 
anyone can help me with that? console.log(<?php echo $managePress->ListDirsAndFiles(); ?>); it's returning me: "Uncaught SyntaxError: Invalid regular expression: missing /" any idea?
 
11:43 PM
hi!
 
@acasanovas Check the source to find out what is rendered by <?php echo $managePress->ListDirsAndFiles(); ?>
My guess is that it needs to be wrapped in quotes
 
@PeeHaa humm, the rendered output it's pastebin.com/0MDCtLYb, where I have to put the quotes?
 
Why are you trying to console.log() that.
And around the entire thing
 
@PeeHaa I want to put that content on a textarea, not in a console.log, but If it works on the second one, will work in the first one too,
 
In that case simply wrap that entire thing in single quotes
 
11:50 PM
@PeeHaa I did a class for manage files, and that function returns me some file content, and I want to dislpay that on a textarea
@PeeHaa let me try
@PeeHaa it returns me on the console log: Uncaught SyntaxError: Unexpected identifier
@PeeHaa perhaps should be more easy to do it in ajax.. what do you think?
 
@acasanovas There are single quotes in that string of yours which you will have escape
If it was up to me I would json_encode() the thing. And use it in JS
 
I added the json_encode() to the return, and the single quotes like it console.log('<?php echo $managePress->ListDirsAndFiles(); ?>'); but it doesn't work
 

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