Pixelated ubuntu virtualbox on windows host I recently installed virtualbox Ubuntu on host Windows. I am new to Ubuntu and virtualbox. I made two changes and I would like help to understand which one (and why) it messed up Ubuntu.   I had downloaded an email attachment file 5MB large. I kept getting an error that the disk space was running low. I allocated storage 8GB at start (dont know where it has gone!) The screen resolution was like 640X480, so I adjusted the virtualbox-guest-dkms option, and it got fixed.   I restarted the guest session to effect the changes of the sizing. Now I am getting a pixelated screen for the login.     When I enter the password, I am able to get into the machine. I know this because the screen pixels change to what the desktop must be looking like.
Graphics horribly corrupted on Ubuntu 16.04 in VirtualBox, showing random strips of pixelated colors Inside a VirtualBox VM, I have installed myself an Ubuntu 16.04.1 LTS Server installation. However, when I installed the ubuntu-desktop package and rebooted, this happened:    Exact command I used: sudo apt-get update; sudo apt-get install ubuntu-desktop ..and then a reboot command.  This just seems like a corrupted top-left portion of the screen, as my cursor can appear in view (but corrupted):    This is a purely graphical issue because I can use the keyboard to successfully progress to a desktop:    Note: On startup it shows correct graphics for a split-second then reverts to glitch.    Any help on this?
How to loop through all the properties of a class? I have a class.  Public Class Foo     Private _Name As String     Public Property Name() As String         Get             Return _Name         End Get         Set(ByVal value As String)             _Name = value         End Set     End Property      Private _Age As String     Public Property Age() As String         Get             Return _Age         End Get         Set(ByVal value As String)             _Age = value         End Set     End Property      Private _ContactNumber As String     Public Property ContactNumber() As String         Get             Return _ContactNumber         End Get         Set(ByVal value As String)             _ContactNumber = value         End Set     End Property   End Class   I want to loop through the properties of the above class. eg;  Public Sub DisplayAll(ByVal Someobject As Foo)     For Each _Property As something In Someobject.Properties         Console.WriteLine(_Property.Name &amp; "=" &amp; _Property.value)     Next End Sub This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  This canonical question is intended to address several classes of common questions by providing a quick summary and links to comprehensive resources:   How is code coverage obtained and calculated? How do I increase my coverage?  Why can't I cover these lines? Why isn't the body of my loop or conditional statement covered? How do you use GRASS's v.kernel? I am flummoxed on how to use GRASS's v.kernel.  I have a vector layer of around 2.5 million points. I want to make a heat map using v.kernel to show concentrations, since I have variable instances with overlapping points, sometimes huge overlaps.  I've already gotten this vector layer in GRASS, and it displays just fine.  I've tried using GRASS's v.kernel command based on what I've seen here and on other forums, and I can't get it to do anything besides output a raster that's just a pink square.  Here's the command I'm using:  v.kernel --verbose input=master_grass7 output=master_grass7a_heatmap stddeviation=.0001   I've varied the stddeviation to all sorts of values from 1000000 to .000001, and it had no effect.  I've read the  repeatedly and don't really understand what it's getting at. At least, the instructions are on esoteric concepts, nothing practical. I've also checked the , and I'm not really understanding it, either. Yes, I can read C. The problem is it depends on a lot of stuff defined elsewhere in GRASS GIS.  I've also done a lot of Google searching, and I can't find a comprehensive guide. All that I'm getting are scattered copies of the v.kernel doc/man page or people who apparently got it to work without a fuss.  I've also checked up on the concept of kernel density estimation (KDE), and even then I don't see how to use the v.kernel command. That command appears to be a specific interpretation of KDE; its switches don't appear to correspond well to generic KDE concepts.  So back to the main question here: how can someone who is not intimate with GRASS product development use the v.kernel command? Is there a plain language translation available? Command line option to check which filesystem I am using? Is there a command that will show which file system (ext3, ext4, FAT32, ...) the various partitions and disks are using?   Similar to how sudo fdisk -l lists information about disks and partitions? What is the reasoning behind limiting "recidivists" to post one question per week? currently restricts recreated accounts to "posting only one question per week..."  I would like to understand why this rate was picked, and not, say, once a day or once a month?  The reason why I ask is that some users limited or banned at Stack Overflow . I expect that learning more about the limitation would help me better understand its impact on Programmers. When you attempt to modify a file without having write permissions on it, you get an error:  &gt; touch /tmp/foo &amp;&amp; sudo chown root /tmp/foo &gt; echo test &gt; /tmp/foo zsh: permission denied: /tmp/foo   Sudoing doesn't help, because it runs the command as root, but the shell handles redirecting stdout and opens the file as you anyway:  &gt; sudo echo test &gt; /tmp/foo zsh: permission denied: /tmp/foo   Is there an easy way to redirect stdout to a file you don't have permission to write to, besides opening a shell as root and manipulating the file that way?  &gt; sudo su # echo test &gt; /tmp/foo Looking for Scifi Short Story in a Jerry Pournelle edited Anthology I'm looking for the title of the short story, and any of the volumes of anthology it may have appeared in. I know for SURE it's in one of Jerry Pournelle's anthologies, either Star Empires and There will be War, but as I have all the eBook version of THere will be war, I'm almost certain it wasn't there.   Anyway, the book is about a Commodore who went back to the academy to visit. I'm not sure what his name was, but I'm pretty sure he lived at "Mercer Hall". He had 2 roommates, and a butler to take care of all their needs, like putting away their stuff. (He even tried to argue with the hall monitor) The butler once took away their bottle of booze UNTIL they study for mid-term, and only gave it back AFTER they wrote to their mother AFTER the exam.   The book also goes heavily into "Bless you!" or the translated version, "May the great cosmic magnificence be benevolent toward you" or something like that. Basically, it's about as inoffensive as possible, and if you say it enough, and the aliens are reasonable, they will give up and things will resolve peacefully.   My Google-fu is weak and I can't find this particular story, or which volume of anthology was it in.   Little help? Uninstall, Activate, Deactivate a plugin: typical features & how-to I'm making a WordPress plugin. What are typical things I should include in the uninstall feature?  For example, should I delete any tables I created in the install function?  Do I clean up my option entries?  Anything else? Generalization of Hölder inequality A similar task for changing the desktop background, can be achieved using the following script:   FILE="/backgrounds/background.png" gsettings set org.gnome.desktop.background picture-uri "$FILE"   How would I achieve the same result, but with the user's avatar/profile picture? If just a single photon hit a single slit interferometer, what would happen? Would you just see a dot on the screen, or would there be a diffraction pattern? Furthermore, if you had a double slit interferometer but also had which-path information would there still be a diffraction pattern even though there is no interference? Rotation of braces How can I rotate a brace to make it appear ?  I'm currently using this code:  \documentclass[french]{beamer} \usepackage{tikz} \usetikzlibrary{fit,calc,positioning,decorations.pathreplacing,matrix} \begin{document} \begin{frame} \begin{tikzpicture}[decoration={brace}][scale=2]  \node [rotate=270] (A) {\fontsize{8}{8}\selectfont A};  \node [fit=(A)] (fit) {};               \draw [decorate,line width=1pt]    ([yshift=7pt]fit.south west) -- ([yshift=-7pt]fit.north west); \end{tikzpicture} \end{frame} \end{document}   Thanks in advance! What kind of noun is 'picture'? I'm not sure of the right place to ask this, but I got confused trying to understand how the computer will interpret the sentence:     This is my picture.   In actual sense, the real owner of the picture should be the photographer not the person who was photographed... or am I getting something wrong? So, it seems the confusing thing about 'picture' is determining who the real owner of the picture is. So is there a special category for these kind of nouns or an official clarification somewhere?  Thanks Active Directory: Is it required that the "A" record for a domain point to a Domain Controller? When Dirac found his equation for the electron $(-i\gamma^\mu\partial_\mu+m)\psi=0$ he famously discovered that it had negative energy solutions. In order to solve the problem of the stability of the ground state of the electron he invoked Pauli's exclusion principle and postulated that negative energy states well already filled by a "sea" of electrons. This allowed him to predict the positron, viewed as a hole in the sea.  This interpretation was ultimately discarded owing to its inapplicability to bosons and difficulties with explaining the invisibility of the infinite charge of the sea.  According to my understanding, the modern argument goes something like this. There is a discrete symmetry of the lagrangian called charge conjugation $\psi \rightarrow \psi^c$ which allows the negative energy solutions to be interpreted as positive energy solutions for a second mode of excitation of the electron field with opposite charge, called positrons. The decay of electrons to positrons is then suppressed by the $U(1)$ gauge symmetry of the lagrangian forcing conservation of electrical charge.  According to this interpretation What Dirac would have missed was the lagrangian formalism. Is this historically and physically correct? A continuous, injective function $f: \mathbb{R} \to \mathbb{R}$ is either strictly increasing or strictly decreasing. Most Common Aspect Ratio? I'm building a web site that will allow users to upload photos. For design and layout purposes, I need to know the most common aspect ratios users will upload. What is the most common aspect ratio of photos (e.g from dSLR, smart phones, etc.)? Please use UK pre-uni methods only (at least at first). Thank you. Ordeal of Heliod and changing creature control Here is the situation that came up:  Player 1 controls a creature enchanted with  and two +1/+1 counters. On Player 2's turn, they cast  to take control of the creature, and then attack with it. The attack triggers the Ordeal, putting another +1/+1 counter on it. Now that it has three counters, it is sacrificed and a player gains 10 life.  Which player sacrifices the enchantment and gains 10 life? The controller of the creature (Player 2) or the player who cast the enchantment (Player 1)? How can I calculate the angle and proper turn direction between two 2D vectors? I am working on some movement AI where there are no obstacles and movement is restricted to the XY plane. I am calculating two vectors, v, the facing direction of ship 1, and w, the vector pointing from the position of ship 1 to ship 2.  I am then calculating the angle between these two vectors using the formula  arccos((v · w) / (|v| · |w|))   The problem I'm having is that arccos only returns values between 0° and 180°.  This makes it impossible to determine whether I should turn left or right to face the other ship.  Is there a better way to do this?