A document library with custom content type displays the different icon while creating new document

I have created a document library declaratively with document based content type. But when I click on new document the icon is displayed of item instead of word.

Below is the example:

enter image description here

List tempalte is:

<ListTemplate         Name="Documents"         Type="11108"         BaseType="1"         OnQuickLaunch="TRUE"         SecurityBits="11"         DisallowContentTypes="false"         Sequence="110"               DisplayName="QMSDocuments"                   Image="/_layouts/15/images/itdl.png"         DocumentTemplate="121"/>  <!-- Parent ContentType: Document (0x0101) --> <ContentType ID="0x0101001EF0C163152340AE96F20234E13DC89B"            Name="Docs"                         Inherits="TRUE" Version="0"> <FieldRefs>   <FieldRef ID="{44802E47-FE3F-4AB2-92BB-523A99E24B1D}" Name="DocTYpe"/>   <FieldRef ID="{41F5A41B-BCC9-45B0-9CA5-48BB023713B8}" Name="Approver1"/>   <FieldRef ID="{374F0F87-AFEB-4E88-A039-A3CADD24A5B1}" Name="Approver2"/>   <FieldRef ID="{5DD956B5-65DD-4861-811F-42BE0C07B118}" Name="Author"/>   <FieldRef ID="{257F1CC5-0DF4-420A-ACF1-8511FCD5240C}" Name="Chapter"/>   <FieldRef ID="{2631BE05-A16D-4E41-948B-73F42D536705}" Name="ChapterNumber"/>   <FieldRef ID="{7B08A524-E877-43C9-B8D5-A8143993B3B1}" Name="oiplbQmsDocumentSubject"/> </FieldRefs> </ContentType> 

What should I do to dispaly the Word icon?

cd autocomplete displays tons of info

I use a lot of folders to organize my classes in school and often I simply have a folder inside another one all by itself as I know in the future I’ll add more. For example Folder0 -> Folder1 by itself -> multiples files.

My question is when I do cdthen try to autocomplete with Tab in my shells with nothing behind it, it shows me a lot more than expected and as such doesn’t directly work, as shown in this screenshot.

enter image description here

Is this normal ? If yes how can I disable it so I can autocomplete directly into my unique folder ?

Thanks already

Error: Unexpected response data from server – user Profile properties displays

I get the mentioned error message when i try to display the User Profile properties by using JSOM(Java Script Object Model) Error: Unexpected response data from server. The error occurs for around 1 min or 5-6 refresh , after that it works as expected . What could be the reason ? Please find the code below:

<script type="text/javascript">     var personProperties;      // Ensure that the SP.UserProfiles.js file is loaded before the custom code runs.     SP.SOD.executeOrDelayUntilScriptLoaded(getUserProperties, 'SP.UserProfiles.js');      function getUserProperties() {          // Replace the placeholder value with the target user's credentials.         var targetUser = "VMDEV\XXXX";          // Get the current client context and PeopleManager instance.         var clientContext = new SP.ClientContext.get_current();         var peopleManager = new SP.UserProfiles.PeopleManager(clientContext);          // Get user properties for the target user.         // To get the PersonProperties object for the current user, use the         // getMyProperties method.         personProperties = peopleManager.getPropertiesFor(targetUser);          // Load the PersonProperties object and send the request.         clientContext.load(personProperties);         clientContext.executeQueryAsync(onRequestSuccess, onRequestFail);     }      // This function runs if the executeQueryAsync call succeeds.     function onRequestSuccess() {          // Get a property directly from the PersonProperties object.         var messageText = " \"DisplayName\" property is "             + personProperties.get_displayName();          // Get a property from the UserProfileProperties property.         if (personProperties.get_userProfileProperties()['FirstName'] != "")         {             messageText += "<br />\"FirstName\" property is "                 + personProperties.get_userProfileProperties()['FirstName'];         }         // Get a property from the UserProfileProperties property.         if (personProperties.get_userProfileProperties()['Department'] != "") {             messageText += "<br />\"Department\" property is "                 + personProperties.get_userProfileProperties()['Department'];         }          // Get a property from the UserProfileProperties property.         if (personProperties.get_userProfileProperties()['WorkPhone'] != "") {             messageText += "<br />\"WorkPhone\" property is "                 + personProperties.get_userProfileProperties()['WorkPhone'];         }          // Get a property from the UserProfileProperties property.         if (personProperties.get_userProfileProperties()['SPS-Department'] != "") {             messageText += "<br />\"SPS-Department\" property is "                 + personProperties.get_userProfileProperties()['SPS-Department'];         }           // Get a property from the UserProfileProperties property.         if (personProperties.get_userProfileProperties()['Fax'] != "") {             messageText += "<br />\"Fax\" property is "                 + personProperties.get_userProfileProperties()['Fax'];         }          // Get a property from the UserProfileProperties property.         if (personProperties.get_userProfileProperties()['HomePhone'] != "") {             messageText += "<br />\"HomePhone\" property is "                 + personProperties.get_userProfileProperties()['HomePhone'];         }          // Get a property from the UserProfileProperties property.         if (personProperties.get_userProfileProperties()['CUS-CSIFS'] != "") {             messageText += "<br />\"WXY-CSXYZ\" property is "                 + personProperties.get_userProfileProperties()['CUS-CSIFS'];         }          $  get("results").innerHTML = messageText;     }      // This function runs if the executeQueryAsync call fails.     function onRequestFail(sender, args) {         $  get("results").innerHTML = "Error: " + args.get_message();     } </script> 

All text in Gnome system monitor displays as squares

I just installed Ubuntu 18.04. I decided I didn’t like gnome and installed XFCE. I was experimenting with some system settings in gsettings and installing/removing some software; I don’t remember exactly what I did. But now gnome-system-monitor displays all its text as squares. How do I fix this?

Screenshot of gnome system monitor with all text as squares

grub displays “error:directory is encrypted” on boot

Today (15 Aug 2019), on my Lubuntu 18.04 I installed the updates offered by the update manager. The installation completed without apparent issues and then it said that the computer has to be restarted. After I restarted the laptop, it immediately entered grub rescue mode saying:

error: directory is encrypted. Entering rescue mode ... 

I never encrypted anything on my laptop and I also don’t want to encrypt anything, just want it to start normally. How can I troubleshoot this problem?

How to keep the website intact when it displays on mobile?

This is the desktop version of an e-commerce website called flipkart.

enter image description here

But when I open the developer tools in chrome for this website and choose the device to Nexus 7 the website doesn’t adjust its components but it simply zooms out in a way.

enter image description here

How can I achieve this? I don’t want to rewrite my whole website for mobile as flipkart does.

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?