External display not working with MacBook in clamshell mode (laptop lid closed)

I have seen the previous posts about this and have followed them but it didn’t work. Particularly this seemed really promising until it didn’t work :]

I have a 2015 MacBook Pro that I use with an external monitor till last week. All of a sudden the monitor doesn’t work and instead gives me a “Invalid input error” message. It still works when the laptop lid is open though. I was using 10.15.3 when I saw the error, then updated to 10.15.4 and still doesn’t work. Anyone else seeing this error? Its driving me nuts.

I also tried a MacBook Air and it works fine. So at least I know the display is working fine and the issue is with the MacBook Pro.

How to change the display text of a link in Youtube comment?

I want the following link to appear like this: w3schools tutorial

enter image description here

magento2 – Need to display tier price range on recently viewed products widget

I need to display the tier price min and max value in recently viewed products widget instead of regular price. It seems completely UI components involved. I found the file where I can see the component and html template.

<item name="regular_price" xsi:type="array">
   <item name="label" xsi:type="string" translate="true">Regular Price</item>
   <item name="component" xsi:type="string">Magento_Catalog/js/product/list/columns/final-price</item>
   <item name="bodyTmpl" xsi:type="string">Magento_Catalog/product/price/regular_price</item>
   <item name="sortOrder" xsi:type="number">2</item>

in vendormagentomodule-catalogviewfrontendui_componentwidget_recently_viewed.xml

As I checked the model file,

 * @inheritdoc
public function getPriceInfo()
    return $this->getData('price_info');

 * @inheritdoc
public function setPriceInfo(PriceInfoInterface $priceInfo)
    $this->setData('price_info', $priceInfo);

in vendormagentomodule-catalogModelProductRender.php.

As part of price info I need to send and set tier price as well. Because, price info does not render tier price. If it is set then I can able to display them through html file.

How can I display tier price value as range instead of regular price. Like below screenshot.

enter image description here

customization – Display Custom Taxonomy Name As A Shortcode

On my wordpress site I have created a custom taxonomy named “game” which lists different gaming titles. I want to be able to display the names of these titles on my posts using a shortcode.

Prior to creating a custom taxonomy, I was using wordpress’ default categories taxonomy, and had the following code (found on stack exchange) working well:

function shortcode_post_category () {
    $html = '';
    $categories = get_the_category();
    foreach( $categories as $category ){
        $html .= '<h2>' . strtoupper($category->name) . ' KEYBINDS</h2>';
    return $html;
add_shortcode( 'category-keybinds', 'shortcode_post_category' );

From what I understand I need to change the “get_the_categories” to “get_the_term”(?) however with my very limited knowledge of php I cannot seem to get this to work on the new “game” taxonomy.

Any help would be greatly appreciated.

gui design – How to display “Select all” in multi select auto complete pattern?

Existing Design:

enter image description here


In the default state, we don’t show the entire list to the user. Once user starts typing, we show the predictive matches

enter image description here

We don’t use a checkbox pattern for the element. Once user clicks on any suggested items, we use a tooltip to show this.

enter image description here


  1. How to show “Select all” option
  2. Once user selects all, how to communicate all items are selected in dropdown field + in the input area as well?

Basically, this is all about adding “Select all” option to this https://ej2.syncfusion.com/demos/?_ga=2.256054221.719160238.1590220025-1863879226.1587444869#/material/multi-select/default.html


enter image description here

Task List: display View Selector in Calendar view

SP Online, classic view, Oslo.

I’ve added multiple views to this Task list and even customized each view to display more options in View Selector:

View Selector menu

However, the Calendar view hides the View Selector:

Calendar view

Help please? Thanks in advance!

c++ – My code should accomplish appending a node to a linked list and then display the linked list

Hello everyone I am trying to append a node to a linked list and the display it however I am getting a couple of errors when I analyze the code in Xcode. Any help will be much appreciated

These are the errors I am receiving:
1.value stored to ‘head’ is never read
2.Potential leak of memory pointed to by ‘head’

    #include <iostream>
using namespace std;

struct LinkedList

    int value;      // the value in this node
    struct LinkedList *next; // to point to the next node


void appendNode (int, LinkedList *);
void insertNode ();
void deleteNode ();
void displayList(LinkedList *) ;

int main()

    LinkedList *head;

    head = nullptr;
    int num;
    int numOfNodes;

    cout << "Enter the number of initial nodes: ";
    cin >> numOfNodes;

    for(int i = 0; i < numOfNodes; i++)
            cout << "Enter a number: ";
            cin >> num;
            appendNode(num, head);

    cout << "end of entering" << endl;
// function definition for appendnode

void  appendNode(int num, LinkedList *head)
    LinkedList *newNode;
    LinkedList *nodePtr;

    // allocate a new node and store num there
    newNode = new LinkedList;
    newNode->value = num;
    newNode->next = nullptr;

    // if there are no nodes in the list
    // make new node the first node
    // if !head(head is null or 0)
        head = newNode; // error 1. value stored to 'head' is never read


    else // Otherwise, insert newNode at end
        // initialize nodeptr to head of list
        nodePtr = head;

            // find the last node in the list
               nodePtr = nodePtr->next;// keep moving node ptr up until the last node

        nodePtr->next = newNode;


} // error 2. Potential leak of memory pointed to by 'head'

void displayList(LinkedList *head)
    LinkedList *nodePtr;

    nodePtr = head;

    while(nodePtr != nullptr)

        //display the value in this node
        cout << nodePtr->value << endl;

        // move node to the next node
       nodePtr = nodePtr->next;


mount – fdisk does not display any partition on old Windows hard drive

I removed an 80 GB WD hard drive from my father's old IBM desktop computer (90). The only special thing about it is that it was cloned from a smaller hard drive as an upgrade to the 80 GB one (which means nothing special like encryption on the disc should only be expected).

I tried to recover data from computers sitting in our basement (life in quarantine), and this one is causing me problems, not only because we lost some of the hardware to do this desktop startup particular. When i run fdisk /dev/sda from my Linux (Arch) configuration, I see this:

Disk /dev/sda: 74.54 GiB, 80026361856 bytes, 156301488 sectors
Disk model:                 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0d179feb

It doesn't print anything else indicating that it has partitions at all. I found the partprobe tool:

/dev/sda: msdos partitions

I also found the testdisk tool, but playing with it, it didn't find any partitions either (at least when I selected the Intel option). I also tried the Western Digital analysis tool on Windows, but even their "extended test" gave the disc a chance.

Do you need help mounting this disc?

How could a USB wireless adapter, interfere with your video display (causing colorful ‘static’ despite Windows still running)?

I can’t find a similar case anywhere.
I’ve actually solved it (I hope) but I want to understand what caused it.

My friend got a refurb PC, and installed this Wireless USB adapter using the provided CD.

Within about 5-10 seconds of plugging it into any USB port (usb2 or 3), his monitor would flicker, and then display only colorful rapidly-moving static. No other issues. Windows was still running OK because it would make the usual sound if I unplugged and replugged the USB dongle.

If I removed the dongle it would not immediately recover, but if I also unplugged the video connector (VGA) and plugged it back in, it would recover.

The ‘fix’ was to connect to his wireless network during the 10 second window before the screen went nuts, then just wait and do nothing for a while. I saw he had a network driver update pending, in windows update. So I figured if the dongle is working, we can let windows update and see if that solves the issue. It apparently did. It’s been fine for hours.

Still, this is strange and I’d like to know… just a driver problem? Why would a USB device mess with the display? (it’s using onboard intel graphics).

Also, this is probably unrelated but maybe you have a guess… the speed seems terrible for fios. About 3-4 megabits. He’s across the house from the wireless router but his laptop (a few feet from router) gets 11-12 megabit. That’s more like low-end cable than FIOS, right? Also weird: Massive 300+ ping on the laptop but only like 3-5 ping on the more distant PC (the one with the misbehaving wireless adapter).

How to display the frequency spectrum of android audio output for both channels?

I want to stream DLNA audio signal to my android device and display the audio frequency spectrum for both stereo channels.

There are some apps that accept the DLNA stream on android, no problem there.
What I couldn’t find is an app that would also have built-in visualizer with a spectrum analyzer preset.

I could use a separate spectrum analyzer app, there are many to choose from. But most of them only display the spectrum of the sound coming from the microphone, not from what is currently playing on android.

The closest alternative I have found is projectM, but just couldn’t find a preset for it that would simply display the spectrum of both channels, without any other effects.

So, if we could display something like this for currently playing audio on android, it would be perfect. This may look like a single channel audio, but the blue bars represent the left channel, red – right, and purple is the sound that is coming from both channels):

enter image description here