Reload Icecast2 config without stopping ongoing stream? [closed] - configuration

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm currently working on making an Icecast2 server with multiple users. At some points, I will have to reload the configuration file, but I don't want to disrupt any currently ongoing streams. Is this possible?

Use that command:
/etc/init.d/icecast2 reload
This will not disrupt any currently ongoing streams.
But, in my experience, not all configuration changes will be applied, using that command. For example, I could succesfully update the <mount></mount> list (add new mount points), but in order to update some other settings, like <burst-size> I needed to restart the Icecast server completely using:
/etc/init.d/icecast2 restart

Icecast will reload its configuration on SIGHUP on all Unix/Linux systems. (For Windows reloading it will be possible starting with 2.5 through web interface)
Please note, that you should ensure that the configuration file is valid.
You might also want to have a look at URL authentication and default mountpoints in version 2.4.1
http://icecast.org/docs/icecast-2.4.1/auth.html#url
It allows you to offload many aspects to a back end system.

I know this is old but I've just discovered something that is a bit flawed with regards to reload config files...
/etc/init.d/icecast2 reload
...will indeed reload your config file without breaking the audio stream, and it will also update the mount points, but what it doesn't do is cut off anybody that was connected to a previously existing mount point still using an old password.
I have a situation where I'm generating a different icecast config file for each live dj.
/live is the mount point in the the config and this never changes, but the password does every time I reload the config file.
If a previous dj is connected using password1 on /live and then the new config is loaded changing the password of /live to password2, it won't automatically disconnect the previous dj still using password1.
The only way to do it is by...
/etc/init.d/icecast2 restart
... which as I'm sure you're all aware is horrible as it introduces a 1 -2 second break in the audio stream while it restarts.

I know this is an old thread, but the command "/etc/init.d/icecast2 restart" did not produce a break in the audio for me using icecast 2.4.4. Perhaps this was an improvement made since last year when this discussion was happening. Also, my server has a very light load (only me listening at the moment) so I'm sure your mileage may vary if you have to restart a heavily loaded server.

Related

how do i convert my html document into a website? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 11 months ago.
Improve this question
I have learned HTML CSS js but the problem is that when I code, I code over an HTML document and i can't find my website on google BCS it's an HTML document, therefore, I want help from you to make my own website link like https::/loremimpsum.com (.org .tb, etc.) problem
The "website link" is called a domain and you cannot make one. You can search for your desired domain address on many hosting sites and see if it's taken or not. If it's available, you will need to pay for it to be registered. Domains have to be renewed annually in most cases.
Before you can do anything with your domain though, you need to have a server running which hosts your web services (such as a webiste). Typically, this means a separate device (physical or virtual) which has a static public IP address. For experimenting purposes, you can set this up on your personal computer, but this is not advised for long-term hosting for multiple reasons.
There are many types of web server softwares and the right choice comes down to your personal project and needs. Most well known solutions are: Apache, IIS, Node.js...
When you have a server, you must configure your DNS settings (this happens on the website of your domain host) to point at the server's IP address. After this gets registered, your server can be reached over the internet, through your domain address.
Hosting a simple website can be as simple as dragging your site files (your .html, .css, .js files along with necessary assets) to a specific folder on the server - default generated might be: <path>/www/ or <path>/public_html/. When developing simple .html, .css, .js files, there is absolutely no conversion or compilation process. The website is directly displayed from them.
If you use something like Angular however, then you'll want to build your project and move the generated package instead (which is just a collection of the previously mentioned files).
Web browsers try to access port 80 (for HTTP) or 443 (for HTTPS) to display your website. You want your website service to listen to these ports, but this might be already part of your default config files for the web server software. You might need to do additional firewall configuration to allow traffic to reach your services.
You can rent a web server which is ready to host your content for you. Of course this involves a monthly fee if you want to have anything that's useful.
Websites are not converted or complied.
The html document is on your computer but a website is seen and stored on a server.
so the html file will be present in the server.
Now you can get a server but it will not be hosted meaning no other computer would be connected to it.
Also server and website hosting costs much but there are some free website hosters like 000webhost.com
You can literally get your own url.

Is there a way to restore deleted chrome cache files? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Suppose the cache files have been deleted by pressing shift+ctrl+delete on chrome. the files starting with f_* are removed and the data_* files data_0, data_1... are reduced. So we can not use chrome cache viewer because the files are away. I tried with commercial and free undelete softwares (easeus, recuva, puran, activeundelete) they find the deleted f_ and data_ files but when i recover them and use with nirsoft google chrome cace viewer, i see corrupted results. I need both the urls and the files in the cache before delete operation. Is there any other way? DNS cache is not an option, computer has been reset. google my activity will not help because it only contains the visited urls (history), but the external urls visitied by the first url.
#benchpresser : -"yes you still have an opportunity get your cache files back. i did this before"(As you said chance of getting the files currupted is more but still if you use power data recocvery its the best option to find files with small size..dont use easeUS in this case then..and still you having the chance of getting the uincode of files you lost you can have a try in that way too.)
Requirements
1.Data recovery tool (Power-data recovery, EaseUS Data Recovery etc)
2.OS:- Windows
Step 1. Select the disk storage location where you want to recover from Google Chrome cache files and click "Scan".
Step 2.Data Recovery will start a scan first. After the scan completes, a deep scan will automatically launch in order to find more files.
Step 3. Choose the file(s) you want to recover by file types from the scanning results. Click "Recover" button to recover the selected files. Here you should save all the recovered files on a different drive or memory card in case of data recovery failure.
i hope this will help
You can't restore cleared cache, history or cookies if DNS cache has been cleared. Unfortunately, I believe you are out of luck.

Chrome download mp4: Streaming crdownload file behavior changed [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 12 months ago.
Improve this question
There are some mp4 files (and a few flv ones) on a server that I want to stream (using VLC) while also saving a copy of to my hard drive simultaneously. So I start to download the file using chrome to a known location, creating a video.mp4.crdownload file there. I then use VLC to start playing the partially downloaded file. What used to happen is that the file would continue downloading while I watched it, then when the download got to the end the little Chrome download widget would say "Download failure, system busy" or something to that effect. But! The full file had been downloaded to my hard drive, it just remained an .mp4.crdownload file that I would then manually change to an .mp4 file later. And meanwhile, I could go on watching the crdownload file to completion in VLC.
When I tried to employ the same process more recently, it does not work. If the file gets fully downloaded and is being played by VLC as the download finished, Chrome does not indicate a download failure. Rather, it erases the completed crdownload file, and starts downloading it again from the beginning. So not only do I end up downloading the file twice (exactly what I was trying to avoid), but the VLC playback stops automatically when the download restarts, because the .crdownload file VLC was playing is overwritten by the new download attempt.
What changed? And is there any way to get the old behaviour back? (If there are any other suggestions for simultaneously pseudo-streaming and downloading in one go, that is fine too, just note that it would need to be in a program like VLC that allows playback at different speeds of both flv and mp4 files. And I also am intellectually curious about what changed, not just a solution to my situation.)
As a workaround, you can set the file being downloaded to read-only; the download will still reach its end but Chrome will then be unable to delete and restart the download (insufficient permissions), hence preventing the download restart loop.
As mentioned here, https://productforums.google.com/forum/#!topic/chrome/n8JqBz5Q2_I ,
go to Chrome://flags and disable Download resumption option.
the only work around is after the download starts, right click on the crdownload file and make it read only. Once it hit 100. Chrome will say it failed instead of restarting meaning you can still stream will downloading with out worries it will restart at 100. Sucks but it works

USB Flash Drive Partitioning [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 21 days ago.
Improve this question
I've searched Google for hours, but I can't find the answer anywhere.
I have an 8GB flash drive, and I want to install Chromium OS on it.
However, I would only need about 4GB of storage for Chromium OS. Allocating the other 4GB of space for Chromium OS seems like a waste to me.
I wanted to know if it was possible for me to partition the flash drive into two 4GB partitions, with one partition being the bootable Chromium OS and the other being a normal FAT32 file system.
If this is possible, can any of you kindly point me in the right direction as to how to accomplish this?
I run Ubuntu Linux 11.04 x86_64, but I can boot into my Windows 7 partition if needed.
Any help would be appreciated!
Thanks!
It is indeed possible to re-partition a flash drive. If you are already running Linux, you should be able to delete the existing partition table and create a new one using fdisk. I have done this on several occasions, although I have never tried it on a drive that large.
You can read more about partitioning with fdisk here. Remember that you have to run fdisk on the raw device (not on a partition), and that you must unmount any filesystems on the drive prior to re-partitioning it. For example, you would use fdisk /dev/sdb, not fdisk /dev/sdb1. Once you're created your partitions, you can create a filesystem using mkfs and then mount them with mount.
One warning, though. Windows will treat the flash drive as if it has a single partition (I believe it only sees the first one). Linux will see all partitions. I'm not sure how Chromium would handle this, but be aware that different OSes may not support it.

Open Source Service risky? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Is it risky to have dependency on a open source service?
Unlike a open source dll or componenent the service obviously needs to be constantly running, therefore is it a business risk to rely on it? What happens if the open source service disappears for whatever reason?
The service under question would not be used for a business critical application but if successfull it will obviously gain in importance?
Many Thanks
If it's really "Open Source" (as opposed to merely free), you can download the source and run it yourself it the original provider goes away. Of course, you'd want to download the source ahead of time, because if the service provider goes away, there's not guarantee that there will be a site to download it from. Also, you'd probably want to keep backups of the data for yourself if you can.
But if you're misusing the term "open source" to mean a free service like the Google Maps API, then yeah, if it goes away, you're boned. But if Google Maps goes away, so is half the net.
What exactly is an "open source service"?
Any old website that offers an API? Yup, depending on it is a risk - they could go under or start charging a fee
Or a site that publishes the software it's running under an open source license? Just download a copy and if the site goes away, you always have the option to run it yourself
The better question is this:
What happens if your paid enterprise you rely on goes under, and you're left without any code whatsoever, and no support?
With that in retrospect, Open-source guarantees a future. All you have to do is find somebody to hack it. Proprietary on the other hand, legal hilarity ensues.
IMHO, the same as a closed source service.
Both, usually, have the same chances of being closed, with the usual surprises of course, as also Google and Microsoft close services without any previous notice.
Same as Paul says, you can run that service if it gets very important, if it closes, or you need big things of it.
But most important thing, appart from being open or closed source, is the access to your data... in case the service closes or you need to move away... will you have access to all your raw data for moving?
Probably yes. But if it is not a mission critical application, it might be okay.
I personally would try to avoid it just because of its vague future. But you never really know whether a commercial service will live through next year.
Just don't bind tightly to this service and not design strictly for it. Design so as to facilitate switch to another similar service in the future or even to a very different approach.
Design for the family of similar services. And always think of an escape plan in case this service goes away or even all services of the class.
I've also had similar considerations about this service: http://www.webservicex.net
Seems to be freely accessible but who really runs it and who can guarantee it will be there tomorrow?
As for tomorrow, even Google Mail happens to be down at some days. What do you want then of a free open-source service? :)