1) log as root.
2) database name = vas_caht
username = user
password = password
host = all host
mysql> grant all privileges on vas_chat.* to 'user'@'%' identified by 'password';
Hi friends. I'm Kumudu Saranath Liyanage. This is my personal blog. I put everything which i think that will important for me on another day. So it is no need to search same thing two times in the internet for any more...
^M is ASCII 13 (Ctrl M), which is the carriage return.
Different operating systems use different symbols to set the end of a line/new line.
Unix uses newline (\n)
Mac uses carriage return (\r)
And Windows/DOS use both (\n\r)
To prevent the ^M from showing up in files, be sure to use the ASCII (text) mode when transfering text files.
Use this command : dos2unix <file name>
How queues are working..
Object a, b, c, d;
Queue q;q.enter(a); //Object a enters the queue. q->a
q.enter(b); //Object b enters the queue. q->a->b
q.enter(c); //Object c enters the queue. q->a->b->c
Object x = q.exit(); //a exits the queue into x. q->b->c
q.enter(d); //Object d enters the queue q->b->c->d
Object y = q.exit(); //b exits the queue into y. q->c->d