Should read-only text appear as plain text or in a read-only textbox?

Should I use labels for read-only information, or should I use read-only text boxes to maintain the look of the fields?

It seems to me that if something is in a textbox it implies there is some way to edit it, whereas plain text is explicitly read-only.

Update: While my question is similar to Locking input form fields, does it make sense?, mine is different in that I’m referring to fields that are never editable by anyone. It’s not based on the user’s rights or role.

mockup

download bmml source – Wireframes created with Balsamiq Mockups

Should read-only text appear as plain text or in a read-only textbox?

Should I use labels for read-only information, or should I use read-only text boxes to maintain the look of the fields?

It seems to me that if something is in a textbox it implies there is some way to edit it, whereas plain text is explicitly read-only.

Update: While my question is similar to Locking input form fields, does it make sense?, mine is different in that I’m referring to fields that are never editable by anyone. It’s not based on the user’s rights or role.

mockup

download bmml source – Wireframes created with Balsamiq Mockups

Making the contents of a Sub Directory appear more prominent

Lets assume that you own a number of zines or small blogs that are all different in theme, and all rest on seperate domains:

http://example-one.com . http://example-two.com . http://example-three.com

Visitors to these sites would assume they are all completely independent of each other, and that none are related (unless you specified it).

But lets assume that you own a single domain and place each blog inside of a dedicated sub-directory:

http://example.com/x/one . http://example.com/x/two . http://example.com/x/three

In this case, /x/ is a really a sort of fake directory, containing an index page that automatically redirects back to example.com.

Now the problem is that visitors to the site will make the assumption that you own more than one blog, and doing a search for example.com/x may result in them finding the contents of your other online blogs.

So, without registering multiple domains, is there a way to make it appear that the blog a visitor is looking at is the only one you own?

Issue Listingpro theme: the pricing plan does not appear when I am not connected

Morning everyone,

I have installed this theme Listingpro if someone has already used this last one tell me how I can make appear the pricing plan when I am not connected. Because actually when I click on the link who is suppose to open the pricing plan page is loaded and display always the homepage.

Any idea?

Encryption key input screen does not appear during boot

I am running Ubuntu 18.04 and enabled device encryption during installation. Previously, there cam up a nice looking screen and asked for the passphrase for decrypting the drive. I tried to uninstall ghostwriter and run sudo apt autoremove, then I rebooted and the screen does not appear anymore.

Instead I get an empty purple screen, after approx. 5 seconds the screen color changes to black. Then nothing happens anymore. I then can switch via Ctrl+Alt+F2 and then Ctrl+Alt+F1 to the tty. Here I get a message to failed to connect lvmetad, but I am able to enter the passphrase here and unlock my drive to boot.

How can I repair or reinstall the required packages for the standard passphrase request screen?

NVIDIA GTX 1050 does not appear as VGA compatible controller


Hardware

  • Dell XPS 15 9560
  • NVIDIA GTX 1050

Software

  • Ubuntu 18.04
  • NVIDIA driver 430.40 (same issue with 390)

Desrciption

NVIDIA GTX 1050 does not appear as VGA compatible controller on my laptop. After installing nvidia-430 on my machine, I expected that NVIDIA GTX 1050 appear as VGA compatible controller, but it only appear as 3D controller.

I am curious whether it is natural not to have NVIDIA on the list, or am I missing something so that NVIDIA GTX 1050 is not appearing as VGA compatible controller although it is supposed to be here, if properly set up.

$  lspci 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 05) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 05) 00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04) 00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 05) 00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31) 00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31) 00:15.0 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #0 (rev 31) 00:15.1 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #1 (rev 31) 00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31) 00:17.0 SATA controller: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] (rev 31) 00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #1 (rev f1) 00:1c.1 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #2 (rev f1) 00:1d.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #9 (rev f1) 00:1d.4 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #13 (rev f1) 00:1d.6 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #15 (rev f1) 00:1f.0 ISA bridge: Intel Corporation HM175 Chipset LPC/eSPI Controller (rev 31) 00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31) 00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31) 00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31) 01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1) 02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32) 03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01) 04:00.0 Non-Volatile memory controller: Toshiba America Info Systems XG4 NVMe SSD Controller (rev 01) 
$  nvidia-smi +-----------------------------------------------------------------------------+ | NVIDIA-SMI 430.40       Driver Version: 430.40       CUDA Version: 10.1     | |-------------------------------+----------------------+----------------------+ | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC | | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. | |===============================+======================+======================| |   0  GeForce GTX 1050    Off  | 00000000:01:00.0 Off |                  N/A | | N/A   39C    P8    N/A /  N/A |    379MiB /  4042MiB |      5%      Default | +-------------------------------+----------------------+----------------------+  +-----------------------------------------------------------------------------+ | Processes:                                                       GPU Memory | |  GPU       PID   Type   Process name                             Usage      | |=============================================================================| |    0      1468      G   /usr/lib/xorg/Xorg                           203MiB | |    0      1622      G   /usr/bin/gnome-shell                          66MiB | |    0      2205      G   ...quest-channel-token=5426997116794375214   108MiB | +-----------------------------------------------------------------------------+ 

How do I make an image appear based on the current state I’m in?

I am following a tutorial called Complete C# Unity Developer 2D: Learn to Code Making Games. In one section we create a text-based game, where we display a canvas with some UI elements to the user. The text changes based on the current state, which is setup through a couple of scripts. Just for future knowledge (it isn’t part of the tutorial), I want to make an image display for each state.

Before I post the scripts, here is what I have tried: 1) I serialized a Sprite field in one of the scripts so that I could assign a .jpg asset sprite to it. At that point I was not sure how to get it to appear based on the state, which is an array of states. 2) I created a UI Image and added it to the canvas, then disabled it. My intent here was to enable it when the state.name == x. Unfortunately, I can’t seem to get that to work either.

I am using two scripts, 1) AdventureGame.cs & 2) State.cs:

1) AdventureGame.cs

using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI;  public class AdventureGame : MonoBehaviour {     [SerializeField]     Text m_textComponent;     [SerializeField]     State startingState;     // I added this Sprite field     [SerializeField]     Sprite m_spriteComponent;      State state;       void Start()     {         state = startingState;         m_textComponent.text = state.GetStateStory();         // This is what I added, a call to a method in the other script         m_spriteComponent = state.GetStateSprite();         Debug.Log(m_spriteComponent);         // The sprite is called HellDoor     }      void Update()     {         ManageState();     }      private void ManageState()     {         var nextStates = state.GetNextStates();         for (int index = 0; index < nextStates.Length; index++)         {             if (Input.GetKeyDown(KeyCode.Alpha1 + index))             {                 state = nextStates[index];             }             m_textComponent.text = state.GetStateStory();          }         // Tested for state name to be sure, Door is one of them          Debug.Log(state.name);         if (state.name == "Door")         {             // Not sure what to put here         }      }  } 

2) State.cs

using System.Collections; using System.Collections.Generic; using UnityEngine;  // Creates a new slot called State in the Create menu! [CreateAssetMenu(menuName = "State")] public class State : ScriptableObject {     // First number determines minimum size of the field, and the second number     // determines the amount of lines before you start to scroll     [TextArea(10, 14)]     [SerializeField]     string m_storyText;     [SerializeField]     State[] nextStates;     // This is the field I added     [SerializeField]     Sprite m_stateSprite;      public string GetStateStory()     {         return m_storyText;     }      public State[] GetNextStates()     {         return nextStates;     }     // This is the method I added     public Sprite GetStateSprite()     {         return m_stateSprite;     } } 

Additionally, this is what I have setup in the editor.

Editor Layout

States

Why does user’s sent messages appear on the right side instead of left? Why doesn’t it appear one below the other?

I did notice in many websites like messenger, WhatsApp, sending SMS on iphone, google hangouts, etc. The user’s sent messages appear on the right side. I’m wondering why don’t place it one below the other just like slack.

Is there any specific reason why do they follow this pattern?

For reference enter image description here