Updating php version on mac

Use Homebrew: I would probably recommend installing homebrew to manage such installations for you. With that installed you can just run the following command to install php7.1

What is the difference between localStorage, sessionStorage, session and cookies?

This is an extremely broad scope question, and a lot of the pros/cons will be contextual to the situation. In all cases, these storage mechanisms will be specific to an individual browser on an individual computer/device. Any requirement to store data on an ongoing basis across sessions will need to involve your application server side … Read more

What steps are needed to stream RTSP from FFmpeg?

You can use FFserver to stream a video using RTSP. Just change console syntax to something like this: Create a ffserver.config file (sample) where you declare HTTPPort, RTSPPort and SDP stream. Your config file could look like this (some important stuff might be missing): With such setup you can watch the stream with i.e. VLC … Read more

The difference between cin.ignore and cin.sync

cin.ignore discards characters, up to the number specified, or until the delimiter is reached (if included). If you call it with no arguments, it discards one character from the input buffer. For example, cin.ignore (80, ‘\n’) would ignore either 80 characters, or as many as it finds until it hits a newline. cin.sync discards all … Read more