portable monitor isn’t detected after sleep

I have a dell xps 13 9380 running 19.04 Ubuntu. I also have a zenscreen mb16ac portable monitor. The portable monitor connects to my laptop via usb c as a display and to get power.

Initially, when I plug the monitor in, my laptop detects it and everything works, but when my laptop goes to sleep or suspends, and i wake it back up, my laptop no longer detects the monitor, but it’s still powering it.

The only way to get it to detect the monitor is if I unplug and plug the usb port back in. I’m not sure why this is happening.

How can I get my laptop to detect my portable monitor when it wakes up? I don’t want to keep unplugging and plugging in the cable every time ubuntu sleeps or suspends.

Isn’t ZKP is a reduction to a hard problem, rather than true zero knowledge?

Take for example “Hamiltonian cycle for a large graph”. The proof works by starting with a graph G that contains a hamiltonian cycle, then constructing an isomorphic graph H, and then either showing the mapping between the graphs G and H or releaving the cycle in H.

It is said that we prove that that we know a hamiltonian cycle in G without revealing it.

But this assumes the verifier does not have unlimited computational power. If he had it, he could ask to reveal the cycle in H, and use his unlimited computational power to work out the isomorphism. I understand that if the verifier had unlimited power, he could find the cycle in G directly. But that’s not my point. What I find strange is that we are relying on “hard problems” in the proof itself.

Are there ZKP protocols that do not rely on hard problems? Hard problems are only hard according to the state of the art. It is not proven that NP is not P, therefore, in my mind, this sounds like security through obscurity in some sense.

Being told my “network” isn’t PCI Complaint. I don’t even have a server! Do I have to comply?

We are a brick and mortar company… literally. We are brick masons. At our office with connect to the internet through our cable modem provided to us by Spectrum Business.

Our Treasurer uses a verifone vx520 card reader to process credit card payments. It connects via ethernet. We don’t store credit card data.

We got a vulnerability report stating that we were not PCI compliant.

They scanned our cable modem.

Part 2b-1. 38173 – SSL Certificate – Signature Verification Failed Vulnerability Part 2b-6. 38628 – SSL/TLS Server supports TLSv1.0 Part 2b-7. 38601 – SSL/TLS use of weak RC4(Arcfour) cipher (CVE-2013-2566, CVE-2015-2808)

I don’t understand what they mean? We don’t have a server or an online store or anything. Was told they scanned our network and this is what they found. Told to get with ISP to fix issue.

How is the ISP supposed to get an SSL certificate installed on a cable modem? I did call our ISP and he didn’t know what to tell me.

We just use the card reader and it connects to our payment processor.

Am I suppose to do something here? Is any of this applicable to us?

How can I deal with someone that wants to kill something that isn’t supposed to be killed?

To clarify: By something that isn’t supposed to be killed I mean things that are out of mortal’s power range. As far as I can tell this isn’t a system specific problem. I experienced the same thing with Call Of Cthulhu as well as World Of Darkness as well as D&D with a variety of people. I always seem to get a player who seems to plot to kill Cthulhu or Cain or Lady Of Pain.

I don’t want to pull the ‘Stop talking about it or I’m kicking you out’ since it is rarely done during the session time but after session I tell them no and the rest of the group tells them it is impossible as well but they start arguing about how it should be possible despite everyone telling them how their plans won’t work and I feel that after each such conversation my players feel less attached to the game.

What I wish to ask is how can I deal with this argument that seems to crop its head up no matter the system and the group without threatening people?

How to force HDMI output on NVIDIA when tit “thinks” there isn’t anything connected?

I have one of those hdmi displays for a raspberry pi, they provide no display information(I think it’s called hetd info). The way it works in the raspberry pi is that you have to force it to enable HDMI in the config file on the sd card. Now I want to connect it to my Ubuntu PC, which has a NVIDIA card and has proprierty NVIDIA drivers. Since it’s not detected(as expected), it outputs nothing, so I’m looking for a way to force it to output a 800*480 image over HDMI, even if it thinks nothing is connected.

How would I do that?


Overriding of the template for the Attachment “thumbnails” in the Media Grid isn’t working

I’m trying to customize the template of the Media Browser (when clicking on “Add Media” button within Edit Post page), by adding a caption with the filename on each thumbnail so I don’t need to select the image to check its filename on the Attachment Details panel.

What I have done so far is a version of the solution described in here: https://stackoverflow.com/a/25948448/8717608

I’m using the “tmpl-attachment” template, from line 506 of media-template.php which is exactly what I need to customize: https://github.com/WordPress/WordPress/blob/master/wp-includes/media-template.php

By clicking the Add Media button I was expecting to see all the thumbs with its filename in a black background on the bottom of the image, but nothing is happening. Looks like I’m missing something and I would appreciate any help to find out what is wrong.

add_action( 'wp_enqueue_media', 'add_media_overrides' ); function add_media_overrides() {     add_action( 'admin_footer-post.php', 'override_media_templates' ); } function override_media_templates(){     ?>      <script type="text/html" id="tmpl-attachment_custom">         <div class="attachment-preview js--select-attachment type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }}">             <div class="thumbnail">                 <# if ( data.uploading ) { #>                     <div class="media-progress-bar"><div style="width: {{ data.percent }}%"></div></div>                 <# } else if ( 'image' === data.type && data.sizes ) { #>                     <div class="centered">                         <img src="{{ data.size.url }}" draggable="false" alt=""  style="height: 90%; transform: translate(-50%,-55%);"/>                         <div style="                             transform: translate(-50%,-100%);                             background-color: black;                             color: white;                             margin-top: 50%;                             font-size: 80%;                             z-index: 9999;                             position: relative;                             vertical-align: middle;                         ">{{ data.filename }}</div>                     </div>                 <# } else { #>                     <div class="centered">                         <# if ( data.image && data.image.src && data.image.src !== data.icon ) { #>                             <img src="{{ data.image.src }}" class="thumbnail" draggable="false" alt="" />                         <# } else if ( data.sizes && data.sizes.medium ) { #>                             <img src="{{ data.sizes.medium.url }}" class="thumbnail" draggable="false" alt="" />                         <# } else { #>                             <img src="{{ data.icon }}" class="icon" draggable="false" alt="" />                         <# } #>                     </div>                     <div class="filename">                         <div>{{ data.filename }}</div>                     </div>                 <# } #>             </div>             <# if ( data.buttons.close ) { #>                 <button type="button" class="button-link attachment-close media-modal-icon"><span class="screen-reader-text"><?php _e( 'Remove' ); ?></span></button>             <# } #>         </div>         <# if ( data.buttons.check ) { #>             <button type="button" class="check" tabindex="-1"><span class="media-modal-icon"></span><span class="screen-reader-text"><?php _e( 'Deselect' ); ?></span></button>         <# } #>         <#         var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly';         if ( data.describe ) {             if ( 'image' === data.type ) { #>                 <input type="text" value="{{ data.caption }}" class="describe" data-setting="caption"                     placeholder="<?php esc_attr_e( 'Caption this image&hellip;' ); ?>" {{ maybeReadOnly }} />             <# } else { #>                 <input type="text" value="{{ data.title }}" class="describe" data-setting="title"                     <# if ( 'video' === data.type ) { #>                         placeholder="<?php esc_attr_e( 'Describe this video&hellip;' ); ?>"                     <# } else if ( 'audio' === data.type ) { #>                         placeholder="<?php esc_attr_e( 'Describe this audio file&hellip;' ); ?>"                     <# } else { #>                         placeholder="<?php esc_attr_e( 'Describe this media file&hellip;' ); ?>"                     <# } #> {{ maybeReadOnly }} />             <# }         } #>     </script>     <script>         jQuery(document).ready( function($  ) {             if( typeof wp.media.view.Attachment != 'undefined' ){                 wp.media.view.Attachment.prototype.template = wp.media.template( 'attachment-custom' );             }         });     </script>     <?php } 

According to the Rules Compendium can I charge through a square that would hamper my movement as long as it isn’t difficult terrain?

Relevant text


If you don’t have line of sight to the opponent you want to charge at the start of your turn, you can’t charge that foe. To charge, you must move at least 10 feet (2 squares) and can move up to double your speed. You must be able to reach the closest space from which you can attack the designated opponent. This movement must occur before your attack. If any line from your starting space to the ending space passes through a square that blocks movement, is difficult terrain, or contains a creature (not a helpless one), you can’t charge. You can’t charge if the ending space is occupied or blocked. Since you move to charge, you can’t take a 5-foot step during the same turn. You provoke attacks of opportunity as normal for your movement.
(Rules Compendium p.27)

It seems that squares that aren’t difficult terrain, that only hamper movement but not block it are legal.

This would include Obstacles, Poor visibility (Any time you can’t see at least 60 feet in the prevailing conditions of visibility), and Squeezing.

Also some spells cause hampered movement that isn’t difficult terrain.

Why isn’t the search space size of TSP $(n-1)!$ instead of $n!$?

I’m just learning about the travelling salesman problem, and I’ve been playing around with it. I’m not sure if what I’ve found is just a special case or not. My professor says the search space size is $ n!$ , where $ n$ is the number of cities.

Suppose we have a table with cities $ A,B,C,D$ on each axis, and the elements represent the distances between cities:

\begin{array}{|c|c|c|c|} \hline & A & B & C & D \ \hline A&0 & 2& 3&4\ \hline B& 2 & 0& 10&5\ \hline C& 3 &10 &0 &15\ \hline D& 4 & 5& 15&0\ \hline \end{array}

From this, I can generate various permutations of possible tours, and their lengths: $ $ A \to B \to C \to D \to A : 31$ $ $ $ A \to B \to D \to C \to A : 25$ $ $ $ A \to C \to B \to D \to A : 22$ $ $ $ A \to C \to D \to B \to A : 25$ $ $ $ A \to D \to B \to C \to A : 22$ $ $ $ A \to D \to C \to B \to A : 31$ $

Now, it seems to me that each of these permutations is cyclical. In this way, $ B \to C \to D \to A \to B : 31 $ and $ A \to B \to C \to D \to A : 31$ are equivalent, for example.

So in fact, it doesn’t matter which city I choose initially, because the resulting shortest tour will be equivalent to one of the tours above.

And clearly, there are $ 3!$ of these tours, or $ (n-1)!$ of them. So why isn’t the search space size $ (n-1)!$ instead of $ n!$ ? Maybe there is a problem with my understanding of what search space size is, I’m not sure.

Why isn’t an edge-map graph implementation used in practice?

Wikipedia states that three different graph implementations that are used in practice:

  • Adjacency Lists
  • Adjacency Matrix
  • Incidence Matrix

While I was learning about these structures, another implementation occurred to me that seems to have better asymptotic properties than Wikipedia’s. My idea is to create a hash map where the keys are (vertex, vertex) pairs and the values are the cost of their edge.

Given that inserting into and querying from a hash map is $ O(1)$ , I believe the time complexity would be the following:

  • Store graph: $ O(E)$
  • Add vertex: $ O(1)$
  • Add edge: $ O(1)$
  • Remove vertex: $ O(V)$
  • Remove edge: $ O(1)$
  • Query cost between vertices: $ O(1)$

Since this implementation has strictly better time and space complexity then all three options listed, I’m confused as to why this option isn’t.

Why isn’t this implementation used in practice?

for some reason this isnt working

Ive been tryna to figure out why this code isnt working, i was following instructions on how to make it online and his worked its suppose to show a title that says broken and a start button that says start

package Main;   import java.awt.Color; import java.awt.Container; import java.awt.Font; import java.util.ArrayList;  import java.util.Collection; import java.util.Scanner;  import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel;  public class Game {   JFrame window; Container con; JPanel titlenamepanel, startbuttonpanel; JLabel titlenamelabel; Font titlefont = new Font("Times New Roman", Font.PLAIN, 118); JButton startbutton; Font normalFont = new Font(" TImes New Roman", Font.PLAIN, 28);   public static void main(String[] args) {      new Game(); }      public Game(){          window = new JFrame();         window.setSize(800,600);         window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         window.getContentPane().setBackground(Color.black);         window.setLayout(null);         window.setVisible(true);         con = window.getContentPane();          titlenamepanel = new JPanel();         titlenamepanel.setBounds(100, 100, 600, 150);         titlenamepanel.setBackground(Color.black);         titlenamelabel = new JLabel("Broken");         titlenamelabel.setForeground(Color.white);         titlenamelabel.setFont(titlefont);          startbuttonpanel = new JPanel();         startbuttonpanel.setBounds(300, 300, 200, 100);         startbuttonpanel.setBackground(Color.blue);          startbutton = new JButton("start");         startbutton.setBackground(Color.black);         startbutton.setForeground(Color.white);         startbutton.setFont(normalFont);               titlenamepanel.add(titlenamelabel);         startbuttonpanel.add(startbutton);          con.add(startbuttonpanel);         con.add(titlenamepanel);     }        }