Module media – video.js An error message is displayed after installation

I am using Drupal 8 and am trying to set up the video.js module. The readme file needs to be edited, so it is difficult to know where I made a mistake.

What I've done so far:

  1. installed the module with Composer
  2. went to video.js GitHub and downloaded the js and put it in the folder path of Drupal 8 libraries from libraries / video-js / video.js (not what's listed in the readme file since sites / all / libraries , i.e. a d7 location)
  3. The video.js file has been added to the field settings for the content type.

I get the error message Overlay on the video player: "No compatible source was found for this video."

Disable iPhone notification when message displayed on Mac

I have Messages on my MacBook connected to my iPhone, so when my phone gets an SMS message it’s displayed on the Mac. But the iPhone also dings and displays a notification of the message.

What I’d like is that the iPhone doesn’t do a notification if I’m using the Mac. The best criteria would be that the phone should do a notification if I’m away from the Mac or the Mac is sleeping or in the screensaver, but if I’m near the Mac and it’s active, the notifications should just go to the Mac.

Is there a way to set this up?

Multithreading – How can this multithreaded application be displayed?

I'm having trouble trying to run a multithreaded process and would appreciate advice.

Please let me explain this with code. (in C ++ & # 39; ish because I know that, but just consider it as pseudocode – it's easy to understand)

Suppose I have two classes: MainClass.cpp and ElementClass.cpp

the MainClass has an object from ElementClass

class MainClass{

  MainClass:myElement();  // The myElement is constructed when the MainClass is constructed

 method1()
 {
  myElement.method1();
 }

  method2();

  ElementClasss myElement;
}

and

class ElementClass{

   ElementClass():thread_handler(&separateThreadMethod){}

   method1();

   void separateThreadMethod()
   {
     call MainClass method2();
   }
} 

So as you can see if an object from MainClass is built, his MyElement is also created and initiates another thread to run separateThreadMethod.

The MainClass object keeps spinning method1 can be called up at any time. This also calls myElement.method1()

As you can see, there are two Threads. However, both use parts of MainClass and ElementClass.

Now I want to plot this in a diagram and wonder how.

At the beginning I used activity diagrams and inserted different partitions for each thread ElementClass. I also have another partition for MainClass.

But MainClass has methods that both threads call in the partition for MainClass There is no clear process line.

Is there a better way to illustrate this? Maybe eliminate the representation of the classes and only represent the threads?

Any advice is greatly appreciated

Bootloader – Redmi Note 7 is not displayed on Fastboot (Linux / Windows).

So I'm trying to unlock the boot loader on my Xiaomi Redmi Note 7, so I have to have access to ADB and Fastboot.

I'm very frustrated because I haven't found a solution in the past 3 hours. My device is simply not recognized by my computer when it is started quickly.

I've tried so far:

  • Reinstall Google drivers
  • Download Xiaomis drivers
  • Deactivate the driver signature
  • Use a different PC
  • Use of 3 different USB cables (including the original cable)
  • Use different USB ports
  • Using Linux Ubuntu

In all cases, my PCs just don't seem to recognize my phone when it starts up quickly. I have activated USB debugging and an ADB works perfectly. The standard configuration for USB connections is data transfer. But as soon as I put my phone into Fastmode manually or using the ADB restart boot loader, it just stops working.
It doesn't seem to be a driver problem. In "normal" ADB mode it is displayed as a normal Android device without errors (in Device Manager and in "ADB devices"), in Fastmode it is not displayed at all. Windows says the device is not connected and there are no other unknown or faulty devices for which I could try to install drivers. Fastboot devices simply don't give anything back.

I'm desperate right now. What should I do? Thanks for any help …

An error message is displayed when opening a SharePoint 2013 folder via CMIS Workbench

I want to manage a SharePoint 2013 repository using CMIS Workbench.
After creating a folder, I double click on it to open it.

Enter the image description here

Then I get this error:

"CMIS Exception: Connection Unexpected Document! Received: HTML Document"

Enter the image description here

This is the log I can get from CMIS Workbench:

> 09:46:03 DEBUG ent.bindings.spi.http.DefaultHttpInvoker: Session c3acc110-ccfe-4444-9dcf-f295fc479bff: GET http://sharepoint2013/my/personal/usuario1/_vti_bin/cmis/rest/d4ebfef0-c49b-4f18-a9fd-d870a70ee206?getChildren&folderID=673&filter=*&includeAllowableActions=false&includeRelationships=none&renditionFilter=cmis%3Anone&includePathSegment=false&maxItems=10000&skipCount=0
> 09:46:04 TRACE ent.bindings.spi.http.DefaultHttpInvoker: Session c3acc110-ccfe-4444-9dcf-f295fc479bff: GET http://sharepoint2013/my/personal/usuario1/_vti_bin/cmis/rest/d4ebfef0-c49b-4f18-a9fd-d870a70ee206?getChildren&folderID=673&filter=*&includeAllowableActions=false&includeRelationships=none&renditionFilter=cmis%3Anone&includePathSegment=false&maxItems=10000&skipCount=0 > Headers: {null=(HTTP/1.1 200 OK), SharePointError=(0), SPIisLatency=(0), Server=(Microsoft-IIS/7.5), X-Content-Type-Options=(nosniff), request-id=(2945529f-d6a8-7067-192f-fa0e1d54581a), Date=(Thu, 14 May 2020 07:46:03 GMT), X-MS-InvokeApp=(1; RequireReadOnly), SPRequestGuid=(2945529f-d6a8-7067-192f-fa0e1d54581a), Cache-Control=(private), SPRequestDuration=(101), X-AspNet-Version=(4.0.30319), Set-Cookie=(WSS_KeepSessionAuthenticated={961e56fc-79db-4287-870c-1ccddfa2ea22}; path=/), Content-Length=(9247), X-Powered-By=(ASP.NET), X-SharePointHealthScore=(2), Content-Type=(text/html; charset=utf-8)}
> 09:46:04 ERROR hemistry.opencmis.workbench.ClientHelper: CmisConnectionException: Unexpected document! Received: HTML document
org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Unexpected document! Received: HTML document
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:685)
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.NavigationServiceImpl.getChildren(NavigationServiceImpl.java:88)
    at org.apache.chemistry.opencmis.client.runtime.FolderImpl$2.fetchPage(FolderImpl.java:279)
    at org.apache.chemistry.opencmis.client.runtime.util.AbstractIterator.getCurrentPage(AbstractIterator.java:131)
    at org.apache.chemistry.opencmis.client.runtime.util.CollectionIterator.hasNext(CollectionIterator.java:41)
    at org.apache.chemistry.opencmis.workbench.model.ClientModel.loadFolder(ClientModel.java:233)
    at org.apache.chemistry.opencmis.workbench.worker.LoadFolderWorker.doInBackground(LoadFolderWorker.java:134)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)> 09:46:04 ERROR hemistry.opencmis.workbench.ClientHelper: Error code: 0

Powershell – ForEach-Object loop is not displayed to loop through array elements

I am very new to coding and powershell. I try to take data from a CSV input, analyze the groups from each line and perform a function depending on whether there is a group. When there are multiple groups, I search for a priority order and perform the specific function based on that priority.

Import CSV to create $ records. When the content of $ Records is displayed, it looks like this:

$Records
 username1 "groupAll" "groupS"
 username2 "groupAll" "groupS" "groupL"
 username3 "groupAll" "groupS"
 username4 "groupAll" "groupA"
 username5 "groupAll" "groupS" "groupE"
 username6 "groupALL"
 username7 "groupALL" "groupE"
 username8 "groupALL" "groupA" "groupE"
 username9 "groupALL" "groupA" "groupE" "groupS"

You need to analyze each line and have a specific function performed depending on the presence and order of a group.

(i.e.)
username1 "groupAll" "groupS"
- Does the list of groups contain "groupD"? \ (No) //
- Does the list of groups contain "groupL"? \ (No) //
- Does the list of groups contain "groupS"? \(Yes)//
-- Do functionD, stop processing username1, and restart loop with username2

username2 "groupAll" "groupS" "groupL"
- Does the list of groups contain "groupD"?  \ (No) //
- Does the list of groups contain "groupL"?  \(Yes)//
-- Do functionL, Do FunctionS, stop processing username2, and restart loop with username3

username6 "groupALL"
- Does the list of groups contain "groupD"? \ (No) //
- Does the list of groups contain "groupL"? \ (No) //
- Does the list of groups contain "groupS"? \ (No) //
- Does the list of groups contain "groupE"? \ (No) //
- Does the list of groups contain "groupA"? \ (No) //
- Does the list of groups contain "groupNL"? \ (No) //
- Does the list of groups contain "groupALL"? \(Yes)//
-- Do PrintingDisabled, stop processing username6, and restart loop with username7

I've tried a ForEach Object loop, a For Each loop, and a Switch loop, but none seem to get the behavior I want.

For every object

Function Set-Quotas {
    $Records = "Records.csv"
    $Delimiter = "|"
    Write-Log "Importing new user records.";
    Write-Host "Importing new user records.";
    $Roles = @(Import-CSV -Path $Records -Delimiter $Delimiter | Group-Object -Property user_name | Select-Object Name, @{n='Groups';e={$_.group.group_name}})
    $UserN = $($Roles.name)
    :Users $Roles | ForEach-Object {
    if ($Roles.Groups -contains "groupD") {Write-Log "$UserN - D Role"; FunctionD; break Users}
    Elseif ($Roles.Groups -contains "groupL") {Write-Log "$UserN - L Role"; FunctionL; FunctionS; break Users}
    Elseif ($Roles.Groups -contains "groupS") {Write-Log "$UserN - S Role"; FunctionS; break Users}
    Elseif ($Roles.Groups -contains "groupE") {Write-Log "$UserN - E Role"; FunctionE; break Users}
    Elseif ($Roles.Groups -contains "groupA") {Write-Log "$UserN - A Role"; FunctionA; break Users}
    Elseif ($Roles.Groups -contains "groupNL") {Write-Log "$UserN - NL Role"; FunctionNL; break Users}
    Elseif ($Roles.Groups -contains "groupALL") {Write-Log "$UserN - Default Role"; PrintingDisabled; break Users}
    }
    Return $UserN;
}

counter

Function Set-Quotas {
    $Records = "Records.csv"
    $Delimiter = "|"
    Write-Log "Importing new user records.";
    Write-Host "Importing new user records.";
    $Roles = @(Import-CSV -Path $Records -Delimiter $Delimiter | Group-Object -Property user_name | Select-Object Name, @{n='Groups';e={$_.group.group_name}})
    $UserN = $($Roles.name)
    Switch -File $Roles {
        "groupD" {Write-Log "$UserN - D Role"; FunctionD; break}
        "groupL" {Write-Log "$UserN - L Role"; FunctionL; FunctionS; break}
        "groupS" {Write-Log "$UserN - S Role"; FunctionS; break}
        "groupE" {Write-Log "$UserN - E Role"; FunctionE; break}
        "groupA" {Write-Log "$UserN - A Role"; FunctionA; break}
        "groupNL" {Write-Log "$UserN - NL Role"; FunctionNL; break}
        "groupALL" {Write-Log "$UserN - Default Role"; PrintingDisabled; break}
    }
    Return $UserN;
}

The current output does not seem to process every line individually. Instead of the protocol:

\(desired log outcome)//
Importing new user records.
username1 - S Role
username2 - L Role
username3 - S Role
username6 - Default Role

I get something like:

Importing new user records.
username1 username2 username3 ...

Or I get:

Importing new user records.
\ ( no other lines added to log)//

Is it possible to get my desired result? If so, what am I missing or what am I doing wrong, which means that not every line is analyzed as requested? I've spent a lot of time trying different ways of writing this script, and each one of them doesn't do what I want them to. In essence, I want the script to do what I want it to do and not what I seem to be saying.
Many thanks for your help.

Network – No networks displayed Ubuntu 20.04

I googled that for hours and nothing out there did anything to help me.

I am on a clean install of Ubuntu 20.04. My WLAN adapter was recognized, but cannot find any networks. Sometimes a neighbor's random network is briefly displayed, but disappears a moment later.

I tried to restart sudo service network-manager, uninstall drivers, install new drivers, everything I can find and nothing to change.

lshw -C network

  *-network                 
       description: Wireless interface
       product: BCM4360 802.11ac Wireless Network Adapter
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0
       bus info: pci@0000:0a:00.0
       logical name: wlp10s0
       version: 03
       serial: c0:25:e9:cc:06:51
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=wl0 driverversion=6.30.223.271 (r587334) latency=0 multicast=yes wireless=IEEE 802.11
       resources: irq:19 memory:ef400000-ef407fff memory:ef200000-ef3fffff
  *-network
       description: Ethernet interface
       product: Ethernet Connection (2) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 00
       serial: e0:d5:5e:29:b5:12
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.2-4 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:141 memory:ef600000-ef61ffff

rfkill list all

0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
1: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
2: brcmwl-0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

dmesg | grep wl

(   11.894798) wl: loading out-of-tree module taints kernel.
(   11.894801) wl: module license 'MIXED/Proprietary' taints kernel.
(   11.895961) wl: module verification failed: signature and/or required key missing - tainting kernel
(   11.961398) wlan0: Broadcom BCM43a0 802.11 Hybrid Wireless Controller 6.30.223.271 (r587334)
(   12.218254) wl 0000:0a:00.0 wlp10s0: renamed from wlan0
(  271.002236) IPv6: ADDRCONF(NETDEV_CHANGE): wlp10s0: link becomes ready
(  417.453575) ERROR @wl_dev_intvar_get : 
(  417.453583) ERROR @wl_cfg80211_get_tx_power : 

Theming – How are different image styles displayed in the same view?

I am the newcomer and would like to create a simple view with a simple image (in article nodes) that looks like this:

Enter the image description here

And I don't use CSS rules to change the size of the images in the view lines for two reasons:

  1. I'm using a bootstrap grid and don't want to deal with relative heights because images in articles have different sizes. So I prefer this view to change the image size for me.
  2. I want to learn this view trick without passing on CSS tricks.

I tried different tricks like:

  1. Import the image that was dropped twice and create each image in a different image style. Rewrite it (display it conditionally) based on the "Show result counter", but set a condition like {% if counter == 1%} or {% if counter = = & # 39; 1 & # 39;% } doesn't work (I think it's still an open problem).
  2. I've also tried doing some theme preprocessing or theme hook changes to force a different image style for the first iteration, but as I said, I'm the newbie.

I am sooooooooooooo frustrated with such an easy task that I find it so difficult. Please help me and thank you very much.