How to disable print option for particular user

I have a folder in the Document library.

It has been shared with two group of users(after breaking inherit permissions).

I wanted first group to able to print the documents but not the second group. I understand that, I can disable print option using IRM.

But it disabling at complete folder level.

So, when the first group member login, they are unable to print as IRM disabled it. How to achieve it for selective group members?

Please help.

How to determine if a particular PC parts list is compatible with Ubuntu or other Linux distro

I am planning to build an inexpensive PC running Ubuntu Linux. How can I determine what Ubuntu or other Linux distro is compatible with the parts I’ve selected and what necessary BIOS settings may be necessary to run Linux rather than Windows?

My preference would be to download unto a USB drive a complete and compatible Linux distro and install it without having to hunt down drivers of various kinds.

My goal is to have an inexpensive Ubuntu server to be used for experiments with database, web server, and IoT server applications.

Thus far every search I have done provides lots of links to material that does not seem to have much bearing on my actual question.

I did find this posted question, Choosing a motherboard for a ubuntu build which contained a couple of links, some of which are no longer working.

And this question Where can I find a list of computers guaranteed to work with Ubuntu? , which is not really the same question as it is about a purchased PC and not a built PC, mentions the Ubuntu hardware compatibility list which isn’t really much help.

However I did find mentioned from this page,

Looking on I found this listing for the motherboard, which has a table indicating that Ubuntu 1804 works with the motherboard. I am not sure what the red box beside the Linux distro means though typically red indicates a problem.

And the devices list for a particular entry in the table has some items with “Works” along with a caution symbol and others have “Detected”. Does this mean it will operate fine or not?

When I click on one of the entries

Since there are several table entries indicating that Ubuntu 18.04 works with the Gigabyte B450M DS3H then the parts I’ve selected should work fine?

The parts I’ve selected to put into a small micro-ATX case are:

  • AMD Ryzen 3 2200G Quad-Core processor

  • GIGABYTE B450M DS3H AM4 micro-ATX motherboard

  • CORSAIR CX-M Series CX450M 450W 80 PLUS BRONZE Haswell Ready power supply

  • CORSAIR Vengeance LPX 16GB (2 x 8GB) 288-Pin SDRAM DDR4 3000 RAM CMK16GX4M2B3000C15

  • Western Digital WD Blue SN500 NVMe M.2 2280 250GB PCI-Express 3.0 x2 3D NAND Internal Solid State Drive (SSD)

What if there is specific logic for one particular value of an enumeration class?

Background: I have seem some argument for using enumeration classes instead of enum in C#, in particular, this section from a book available at MSDN. On the references there is this “Enums are Evil” article which in turn makes quite a good point on the matter.

One of the reasons quoted is particularly convincing:

Imagine the following phone call between Frank, a customer, and Darren the developer:

Frank: Hi Darren; I need a new value for the person status about his financial standings. We have currently Low, Medium and High, but we need ‘undefined’ as a new value.

Darren: I see.

Frank: When can you implement that?

Darren: Uups Frank. We just finished our sprint this week. The earliest we can plan this is for the sprint after the current one. That takes about 5 weeks.

Frank: What? It’s just another value not a whole new functionality!

Darren: Calm down Frank; we have these cool enum’s in place that saved us a lot of development time. To extend them I have to add it in the code and create a new build. We have to plan it for the next sprint.

Frank: Are you nuts? I don’t know what you talking about. I’m an ordinary user and just want to have another value on the user interface.

Darren: Sorry for that. I can’t do it earlier.

I’ve been through that already and it really feels like it is much more natural to allow the user to persist to the database the values he uses, like CardTypes as shown in the first MSDN link I provided:

public class CardType : Enumeration {     public static CardType Amex = new CardType(1, "Amex");     public static CardType Visa = new CardType(2, "Visa");     public static CardType MasterCard = new CardType(3, "MasterCard");      public CardType(int id, string name)     : base(id, name)     {     } } 

The problem: All of this is fine, and using these “enumeration classes” instead of enum has a lot of advantage. But now suppose the user comes and says that there is some specific rule for a specific item on the enumeration (for example, there is a very specific rule just for the Visa card).

With enums this is fairly easy. We would just perform a very natural check if (cardType == CardType.Visa). The point is: the values are all there on code to be checked.

But with enumerations the values are dynamical and added by the user. So the best I could consider would be to check for a string, querying the database’s table containing the enumeration values for the specific item.

But I think this is too error prone – say the user alters the string for that enumeration, the query wouldn’t work anymore. Further if the user made any typo when writing, it also wouldn’t work.

Is there some better method?

In summary: if we use enumration classes instead of enum and if there is a business rule for a specific item that the user is adding dynamically, how can we verify and address that in a more reliable way than “checking a string”?

How to Delete particular folder from sharepoint Library using powershell script?

I want to delete particular folders from SharePoint Document library.

I have done this using C#, Its working fine. But I want to modify the same code to powershell.

i tried below code with powershell. I want to modify this C# to Powershell Code I am having doubt in this line:

string documentLibraryFolderurl= SPContext.Current.Web.Url + "/" + oList + "/" + str + "/" + "Test" + "/" + CategoryName; if (oWeb.GetFolder(documentLibraryFolderurlAward).Exists == true) SPFolder folder = oWeb.GetFolder(documentLibraryFolderurlAward); folder.Delete(); 

can anyone help me on this?

How to add block html content display in particular div or any particular place by xml file?

HI I created customer_account_login.xml to add block.

<?xml version="1.0"?> <page layout="1column" xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">     <body>         <referenceContainer name="content">             <block class="Magento\Framework\View\Element\Template" name="sociallogin" before="-" template="Lucent_SocialLogin::form/sociallogin.phtml" />             </referenceContainer>     </body> </page> 

So,This sociallogin.phtml file load top of the login form.But i need to display that in particular div which have class or id.

So please let me know.


wget command is not working on one particular internal web-site

I’m working on a server with Ubuntu 18.04 OS.

I’ve double checked every network configuration.

The “wget” works fine with practically every website I’m trying to download from. Although there’s one internal web-site that I’m trying to download from it a certain app and it’s no working. I have the same server with the same configuration of network as well as hardware but it runs on Ubuntu 16.04 and there it works fine also on the internal web-site.

Messages I’m getting(a lot of the info on the pic is restricted)

Please advice on how to continue from this point. I’m pretty lost here.