Displays a list of installed audio players

It is necessary to display a list of installed music players with the help of bash. Then, based on the list, select one of them to play music. If there is no player in the system, then you need to install it from the user.How do I implement this script?

dpkg -l | grep "music player\|audio player"

This command produces a lot of garbage. Yes, and not all packages should have a correct description.

apt search package-name

Too much trash.

GNU GRUB – Displays and won’t load Ubuntu Server for 30 seconds

So I built a new server with 18.04.2 LTS Alternative. Installed with full disk encryption and then realized I had to enter my encryption key on every reboot. It’s a media server, I don’t need full disk encryption. Never has the GNU GRUB window appeared when I did the initial install.

Now, after I did a fresh install without encryption, it appears every time waiting 30 seconds before booting into Ubuntu. I don’t understand why, I only have one OS and I set GRUB_HIDDEN_TIMEOUT to 0.

Did I officially break my server or is this normal for non-encrypted Ubuntu? Any advice would be greatly appreciated.

how do i prevent error message that displays confidential data in laravel

my laravel is showing the following error message when i uploaded to live server

enter image description here

so if there is some error, all the confidential data is displayed in live server. i just want to stop this. i know there is some custom messages like

$  messages = array(     'required' => 'The :attribute field is required.', );  $  validator = Validator::make($  input, $  rules, $  messages);

thats fine, i just want to know if i can stop all error messages like that in the photo and whenever error occurs in live whatever it is just show something like 404 error or something or blank… is there any way

App that displays a static image, updates 1x per day

I am working on a trivial problem that doesn’t seem to have an obvious solution. I have a screen in one part of my office that I want to display an image on with certain stats. The screen is running and Android TV box. This image should be updated daily. In the past I have manually used a USB and opened the updated image each day. I want to automate this process and make it scalable so that I can have multiple different images regularly updating on multiple different screens.

I have engineered one solution but it isn’t perfect, it is this: I am using a combination of OBS Studio and Yawcam to broadcast images to a URL that I view on a browser in the destination screen. On my own desktop, I open the image on my desktop, capture it as a separate desktop with OBS, load that desktop as a virtual webcam with Yawcam, and use Yawcam to upload it to an in-network IP camera viewer that refreshes on a set interval. I have the Android TV box opened in chrome just viewing that IP camera feed. This is not an ideal fix and I am trying to find other solutions.

In a perfect world, I’d be able to send a the .jpg from my computer to an app on the TV box on a daily basis. There have to be countless solutions for something this small, does anyone know any software or out of the box solutions built for this kind of thing?

Why does resolution not fit within display’s screen

A 2013 Samsung TV features 1920X1020 resolution. It is driven by a NVIDIA Nano, outfitted with 18.04. Why does said resolution not fit the TV?

The highest resolution that seems to properly fit the display is 1680X1050: the launch bar is ‘pushed off’ the left edge of the screen and the upper control indicator is pushed above the top of the display.

How do I show menu bar on both displays in MacOS Mojave?

I’ve searched for it and not found a good solution. Some people recommend to apply System Preferences -> Mission Control -> Displays have separate Spaces. This doesnt work for me. Still I can only see the menu bar on one screen.

I’m running the latest (at time of writing) MacOS 10.14.5 on a Macbook Pro 15″. Connecting my external monitor through a 60 FPS capable USB-C cable.


  • https://discussions.apple.com/thread/809875
  • https://slatemt.zendesk.com/hc/en-us/articles/115012022007-Mac-OSX-Spaces-Desktops-Using-Multiple-Monitors-with-the-Raven

youtube-dl in a crontab displays “[Errno 13] Permission denied”

I try to make a cron job for youtube-dl. It consists of a daily script, starting at midnight. When I execute the script manually, everything is working perfectly. However, when I use the cron job, I have got an error like this :

ERROR: unable to open for writing: [Errno 13] Permission denied: '/media/Video/...

The cron is the following :

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin @daily /usr/local/bin/youtube-dl-script.sh >> /var/mail/nextcloud 2>&1 

I understand, there is a permission issue somewhere, but I don’t know how to solve it.

For your information :

  • owner/group of the target folder (/media/Video/) is : www-data (owner), wwww-data (group)
  • owner/group of the script is : nextcloud (owner), root (group)
  • nextcloud and root belong to the group www-data
  • and the target folder (/media/Video/) permission is 770 (owner/group group can read/write/execute, others can’t do anything).

Please, could you help me ? I have seen a similar topic but the solution was not successful as the problem was not exactly the same. Thank you very much.

Can’t override phtml template, displays blank page

I have override


and placed the replaced file in:


but I see blank page in the respective page.

can anyone let me know what I am doing wrong here ?

AngularJS 1.8 – templateUrl displays url in view instead of the template


I’m trying to convert my angularjs components/directives over to TypeScript. Unfortunately, the templateUrl property doesn’t display the template that’s passed to it. Instead, it literally displays a partial path the template.


class JumpPagerController { ...     } }  JumpPagerController.$  inject = ['$  timeout']; export const jumpPagerComponent = {     templateUrl: './jump-pager.component.html',     controller: JumpPagerController,     bindings: {         pagerPlaceholder: '@?',         pagerCurrentPage: '=',         pagerItemsPerPage: '=',         pagerTotalItems: '=',         pagerChange: '&'     } }; 


enter image description here


enter image description here

What I’ve Tried

  • Passing in the baseUrl (didn’t have high hopes here:
    • templateUrl: `$ {baseUrl}/jump-pager.component.html`
    • templateUrl: localhost:8080/jump-pager.component.html
  • template: require('...') works, but would require me to reconfigure webpack and then modify all other cases of templateUrl in .js files. This isn’t an option
  • I’ve reviewed similar questions but no one else seems to be having quite the same issue. They’re all either using JavaScript instead of TypeScript, or they’re only having an issue with the template not rendering and don’t seem to be getting the weird problem with the template path being displayed.


So you can see that I’m at a loss. What is the correct way to use templateUrl on an angularjs component using typescript and webpack?