Is it a security concern to publish the current boot_id?

On linux, a machine comes with a machine_id.

From the man page, it is said to be considered as “confidential” and must not be exposed to unstrusted parties.

Should the boot_id (from /proc/sys/kernel/random/boot_id) also be considered “confidential” ?

I am using the first 6 hex number of the boot_id (so not the whole of it) as a way to know if the webserver has rebooted (or not), and displaying it on the main page. This is not however a public server. You need to log in.

How to get Current Module and Full Action Name in ajax controller

I need Full Action Name in Ajax Controller Magento 2.

protected $  request; public function __construct(     ...     \Magento\Framework\App\Request\Http $  request ) {      $  this->request = $  request; }  $  action = $  this->request->getFullActionName(); 

This always giving me my ajax controller full action name.

I need ,suppose if i m on product page this should give me “catalog_product_view” .

If i m on search this should display “catalogsearch_result_index”.

Please help.

Error dismounting pcie device windows – The current configuration does not allow for OS control of the PCI Express bus

I have all of the virtualization options I know of in my bios enabled. I’m able to do VFIO in linux to a windows guest, but I’d like to do windows with passthrough to a linux guest using hyper-v. I get the following error attempting to dismount the device:

PS C:\Users\Administrator> Dismount-VMHostAssignableDevice -force -LocationPath "PCIROOT(0)#PCI(1B04)#PCI(0000)" Dismount-VMHostAssignableDevice : The operation failed. The current configuration does not allow for OS control of the PCI Express bus. Please check your BIOS or UEFI settings. At line:1 char:1 + Dismount-VMHostAssignableDevice -force -LocationPath "PCIROOT(0)#PCI( ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidArgument: (:) [Dismount-VMHostAssignableDevice], VirtualizationException     + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.DismountVMHostAssignableDevice 

Board info:

Manufacturer           Product                        Version ASUSTeK COMPUTER INC.  ROG MAXIMUS X HERO (WI-FI AC)  Rev 1.xx 

How do I filter the current year?

Initially, I have installed the Token module and created a Views block containing years.

I want to filter out the current year from the block (it should not show the current year).

In filter criteria, I have changed content:year ([current-date:custom:Y]), but it is not filtering the current year, and it is showing as follows:

  • 2013(3)
  • 2014(5)
  • 2015(6)
  • 2016(2)

I am expecting the output to be as follows:

  • 2013(3)
  • 2014(5)
  • 2015(6)

How can I achieve this? Any help is greatly appreciated.

How can I filter SharePoint Search results based on the current user’s department?

We’re on SharePoint online, and user profiles are synced to SharePoint.

I have a number of libraries that I want users to be able to search, but I want to restrict the documents that specific departments (Sales) can see to those that they have modified, created (author), or are identified in People type fields. For any users outside of those specific departments, I want it to be the full search.

I have the user section working properly (current user is associated to the record), but I am having trouble filtering the whole search based on the current user’s department.

Re-creating the library or manually setting permissions aren’t options at this point due to size (<900k documents) and business restrictions (actively being used in production), so I’m limited to constraining via search right now.

Any/all help is welcome! My search results query is below.

{searchTerms} (       ListID:{removed for security} OR ListID:{removed for security} OR ListID:{removed for security}     )  AND (       (         (           {User.Department}="Commercial Sales - Healthcare"             OR {User.Department}="Commercial Sales"             OR {User.Department}="Commercial Sales - Enterprise"             OR {User.Department}="Federal Sales - Healthcare"             OR {User.Department}="Federal Sales - Civilian"             OR {User.Department}="Federal Sales - DOD"             OR {User.Department}="SLED Sales"         ) AND (           Author={User.Name}           OR ModifiedBy={User.Name}           OR ISAM={User.Name}           OR Salesperson={User.Name}         )       ) OR (         (           {User.Department}<>"Commercial Sales - Healthcare"             AND {User.Department}<>"Commercial Sales"             AND {User.Department}<>"Commercial Sales - Enterprise"             AND {User.Department}<>"Federal Sales - Healthcare"             AND {User.Department}<>"Federal Sales - Civilian"             AND {User.Department}<>"Federal Sales - DOD"             AND {User.Department}<>"SLED Sales"         )       )     ) 

Range notation and current row

I wonder how does work the following and is it documented somewhere?

I have the sheet:

A         B ----------------- 1 2 3         =$  A:$  A 4 5         =$  A:$  A 

For column B (row 3 and 5) I see corresponding values from column A. It looks like =$ A:$ A (or even =$ A$ 2:$ A$ 5 etc) works like =$ A$ 3 and =$ A$ 5 in some automagical manner (and no needs to specify different formulas for every cell in B).

I like such behaviour but wish to be sure that it is a reliable solution.

Getting the exception: “Operation is not valid due to the current state of the object” when calling SPUtility.GetPrincipalsInGroup()

When calling the method:

Microsoft.SharePoint.Utilities.SPUtility.GetPrincipalsInGroup(SPWeb web, String input, Int32 maxCount, Boolean& reachedMaxCount) 

I get the following stack trace:

System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Microsoft.SharePoint.Administration.Claims.SPClaimsAuthRoleProvider.GetUsersInRole(SPWeb web, String roleName, Int32 maxCount, Boolean& reachedMaxCount)
at Microsoft.SharePoint.Utilities.SPUtility.GetPrincipalsInGroup(SPWeb web, String input, Int32 maxCount, Boolean& reachedMaxCount)

This particular code is running remotely at a customer site, so I am unable to attach a debugger. This works locally and in staging outside of the customer’s site. The local site, staging and the customer’s production environment all use Claims-Based-Authentication and Windows Authentication.

Any ideas as to what could cause this exception?

Q: Is it Possible If I have a Column that marks a Job’s current Status/Progress to send a Weekly Email?

Rather than sending an email whenever an item is changed/created and the status is added/updated?

I have a list that has a list of jobs and a varying amount of variables that employees check off such as if it requires central notification or if it has a large investment. The Job status is essentially split between three columns one marking it ready for work (Yes/No) one marking it complete (Yes/No) and then a approval of the completion marking it as Approved/Rejected/Requires Review. I’ll outline the overall process below:

  1. Group 2 Reviews the List and determines if a Job is Ready to be Worked.
  2. Group 1 receives a email when the job is marked Ready for Work by Group 2.
  3. Group 1 then completes the work and marks it complete and Group 2 gets an email of the completion mark.
  4. Group 2 is then required to review and mark the completed job as Approved/Rejected/Requires Review.
  5. Once Group 2 marks it appropriately Group 1 is responsible for moving ahead with updating records or meeting with Group 2 on why it was Rejected or what portion of the task requires Review.

Now what I want is that rather than send the emails once every step is completed it sends a weekly “reminder” to both groups of what items (Job and Job ID) need to be done meaning they are somewhere in the steps I outlined above. (Group 1 notified that jobs x y z are workable and group 2 receiving emails that job x y z has been worked and needs approval.