How do I edit sudoers file in fedora?
How to make Fedora user a sudoer?
I installed Linux Mint in 2 partitions: / and /home  Windows 8 is under UEFI boot mode.  How to hide those linux partitions in Explorer?    When I click on them: How can I customize different nodepart with different textures? My question is how can I customize hatch patterns(grid, vertical line, etc.) for different nodepart in a node?  The following is a failed try.  \documentclass[border=2mm,convert]{standalone} \usepackage{tikz} \usetikzlibrary{shapes.multipart,patterns}  \begin{document} \begin{tikzpicture} \node[rectangle split,rectangle split parts =2,rectangle split part fill={red!30,red!10}, rectangle split part pattern={grid,},draw]{one \nodepart{second}two}; \end{tikzpicture} \end{document} How do I render a Twig template and load a CSS file from a controller? Is this considered a good practice for rendering a Twig template and loading a CSS file from a controller?   DefaultController.php  namespace Drupal\acme\Controller;  use Drupal\Core\Controller\ControllerBase; use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use Drupal\Core\Template\TwigEnvironment;  class DefaultController extends ControllerBase implements ContainerInjectionInterface  {   /**   * @var Drupal\Core\Template\TwigEnvironment   */   protected $twig;    public function __construct(TwigEnvironment $twig)   {     $this-&gt;twig = $twig;   }    public static function create(ContainerInterface $container)   {     return new static(       $container-&gt;get('twig')     );   }    /**    * hello    * @param  string $name    * @return string    */   public function hello($name)    {      $template = $this-&gt;twig-&gt;loadTemplate(       drupal_get_path('module', 'acme') . '/templates/hello.html.twig'     );      $markup = [       '#markup' =&gt; $template-&gt;render([ 'name' =&gt; $name ]),       '#attached' =&gt; [ 'css' =&gt; [           drupal_get_path('module', 'acme') . '/assets/css/acme.css'         ]       ]     ];      return drupal_render($markup);   } }   acme.routing.yml  acme_hello:   path: '/acme/hello/{name}'   defaults:     _content: '\Drupal\acme\Controller\DefaultController::hello'     _title: 'acme Title'   requirements:     _permission: 'access content'   hello.html.twig  &lt;div class="acme-hello-text"&gt;   &lt;h1&gt;Hello {{ name }}!&lt;/h1&gt; &lt;/div&gt; How to return value from an asynchronous callback function? Wifi losing connection, weak signal, Intel 7260 adapter I yesterday upgraded from Windows to Ubuntu 15.04 but I have problem with my wireless adapter Intel Corporation Wireless 7260 (rev 73). It randomly loses internet connection. Restarting adapter always helps. (same it did with Windows, except that sometimes restarting adapter didn't help).   Additionally, I have weaker connection then I had with Windows.  Thank you! When an account is deleted, the username in the user's posts and comments is changed to a generic user&lt;userID&gt;. But the username stays the same on close and delete notifications on posts the user had voted to close / delete1. I think it shouldn't, especially for users who used their real name as their username, if they chose to distance themselves from the site and remove their accounts, it makes sense that they wouldn't really want their name plastered on close and delete notifications.   A perhaps easy way to avoid the actual username remaining visible would be to change it to the generic user&lt;userID&gt; (or anything generic enough, like "anonymous") prior to deletion, and wait a bit for the generic username to propagate all over the site. If I'm not horribly misreading , this was part of the process in the old days.   This could be automated or added as a suggestion to the .  Glaring example can be seen , where the deleted user also posted a comment where their name is properly anonymized:        1 I've seen it on close notifications and self deleted answers. I'm not sure it happens on deleted questions, or deleted answers that aren't self deletions, and I don't have a way to verify it - other than stumbling on them accidentally Is there any matrix $2\times 2$ such that $A\neq I$ but $ A^3=I$? Is there any $2 \times 2$ matrix $A \neq I$ such that $A^3=I$?  In my opinion: no. Thank you very much. Site hosted on EC2 / Amazon held hostage with private key I have a new client whose previous developer has left her high &amp; dry with her site on Amazon/EC2. He holds the private key to the instance, and though she has full access to the Amazon control panel (she's paying $300/mo for a site that has like 3 visitors per week) she doesn't have any way to get her content off and move to a new host.  I'm not familiar with AWS and am not sure how to help her. The site's group/file permissions are screwed up on the server so exporting the content/database via her WordPress control panel isn't working.  Any ideas on how to help her? Thanks! I'm using the 1-25-19 version of 2.8 beta. You have to double tap "a" every time you want to deselect something which is very annoying. Is there a way to make "a" work the old way where "a" selects all if nothing is selected and "a" deselects all if something is selected? ie. no double tap and no alt? I want to install Windows XP on my desktop computer (only XP), but my CD drive is not working.  I've only found installation tutorials on how to install it on the pen drive rather than from the pen drive.  How can I install Windows XP from a USB flash drive? Why $\sqrt[3]{{2 + \sqrt 5 }} + \sqrt[3]{{2 - \sqrt 5 }}$ is a rational number? Covariance of a variable and a linear combination of other variables Let $X,A,B,C,D$ be time-series variables and the covariance between any two pairs of these are known.  Suppose we want to find $\textrm{cov}(X,aA + bB + cC + dD)$, where $a,b,c,d$ are constants.  Is there any way of doing this without expanding out $E[(X-E[X])(aA+......)]$? Capture console exit C# I have a console application that contains quite a lot of threads.  There are threads that monitor certain conditions and terminate the program if they are true.  This termination can happen at any time.  I need an event that can be triggered when the program is closing so that I can cleanup all of the other threads and close all file handles and connections properly.  I'm not sure if there is one already built into the .NET framework, so I'm asking before I write my own.  I was wondering if there was an event along the lines of:  MyConsoleProgram.OnExit += CleanupBeforeExit; How to create a fancy table of contents for Beamer How can I create a fancy-looking table of contents for a Beamer presentation?    \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \begin{document}  \frame{ \tableofcontents }  \section{Foo bar} \frame{} \section{Foo bar} \frame{} \section{Foo bar} \frame{} \section{Foo bar} \frame{} \section{Foo bar} \frame{} \section{Foo bar} \frame{} \section{Foo bar} \frame{}  \end{document} Which spells or abilities are affected by things that care about targeting? Note: this is intended to be a canonical question about whether or not a spell or ability targets so there are multiple sub-questions.   Can Hexproof or Shroud save my creature from ? What about a  that was cast for it's Overload cost? Does shroud prevent me from using the Monstrosity ability of a creature, or from giving it more counters with Proliferate? Can I cast an Aura Enchantment on one of my creatures with Shroud, or an opponent's creature with Hexproof? Or can I use the Equip ability to attach an equipment to one of my creatures with Shroud? Will 's ability trigger when my opponent plays ? And will I have to sacrifice my  if my opponent casts ? Will Shroud or Hexproof prevent an opponent from choosing me with 's ability? Will Hexproof keep one of my creatures from being affected by ? If an Aura or Equipment is attached to a creature with Hexproof, does the Hexproof protect the attached permanent? In order to better understand the SQL Server query processor, I've been thinking about how the ORDER BY clause works, and how SQL Server provides results.  It appears SQL Server will provide results in exactly the same order for any given set of data that remains the same and never, ever changes.  Once you introduce any kind of uncertainty such as developers changing something, the order of results can no longer be expected to be the same.  Simply seeing the results in the same order, each time you press F5 does not guarantee the results you expect.  Try this:  USE TempDB; DROP TABLE TestOrderBy; DROP TABLE TestOrderBy2; CREATE TABLE TestOrderBy (     ID INT NOT NULL CONSTRAINT PK_TestOrderBy PRIMARY KEY CLUSTERED IDENTITY(1,1)     , SomeData varchar(255) ); INSERT INTO TestOrderBy (SomeData) VALUES ('E'); INSERT INTO TestOrderBy (SomeData) VALUES ('D'); INSERT INTO TestOrderBy (SomeData) VALUES ('C'); INSERT INTO TestOrderBy (SomeData) VALUES ('B'); INSERT INTO TestOrderBy (SomeData) VALUES ('A');  CREATE TABLE TestOrderBy2 (     ID INT NOT NULL CONSTRAINT PK_TestOrderBy2 PRIMARY KEY CLUSTERED IDENTITY(1,1)     , SomeData varchar(255) ); INSERT INTO TestOrderBy2 (SomeData) VALUES ('E'); INSERT INTO TestOrderBy2 (SomeData) VALUES ('D'); INSERT INTO TestOrderBy2 (SomeData) VALUES ('C'); INSERT INTO TestOrderBy2 (SomeData) VALUES ('B'); INSERT INTO TestOrderBy2 (SomeData) VALUES ('A');  SELECT SomeData  FROM TestOrderBy UNION ALL SELECT SomeData FROM TestOrderBy2;  CREATE INDEX IX_TestOrderBy_SomeData ON TestOrderBy (SomeData); CREATE INDEX IX_TestOrderBy2_SomeData ON TestOrderBy2 (SomeData);  SELECT SomeData  FROM TestOrderBy UNION ALL SELECT SomeData FROM TestOrderBy2;   The results:    As you see, adding a simple index on the fields selected in the query alters the order of the results.  From here on, I'm adding ORDER BY unless I truly don't care. I swear I read an ingame hint that said Workshops would share my stuff between them, but that doesn't seem to be the case. I have a settlement at Sanctuary and Red Rocket Truck Stop, but I can't access my items I added in Sanctuary at RRTS. Am I mistaken in remembering that you could do this, or is there something I need to do to get that to work? I have a file with a number of lines in a file filename.  I want to count how many lines start with character 'a', with 'b' and so on in one go.  What command i should execute.? Restricting SSH sessions for accounts on ubuntu server May someone please show me how I would restrict accounts/people logging into an ubuntu 10.04 server by SSH to a single active session at a time for each account that logs into the server.  Regards Finding minimum-area-rectangle for given points? As you see in the figure,  the question is:    How to find the minimum-area-rectangle (MAR) fitted on the given points?    and a supporting question is:    Is there any analytical solution for the problem?    (A development of the question will be to fit a box (3D) to a cluster of points in a 3D point cloud.)  As a first stage I propose to find the convex-hull for the points which reforms the problem (by removing those points are not involved in the solution) to: fitting a MAR to a polygon.  The required method will provide X (center of rectangle), D (two dimensions) and A (angle).      My proposal for solution:     Find the centroid of the polygon (see )   [S] Fit a simple fitted rectangle i.e., parallel to the axes X and Y   you may use minmax function for X and Y of the given points (e.g., polygon's vertices)  Store the area of the fitted rectangle Rotate the polygon about the centroid by e.g., 1 degree Repeat from [S] until a full rotation done Report the angle of the minimum area as the result   It looks to me promising, however the following problems exist:   choose of a good resolution for the angle change could be challenging, the computation cost is high, the solution is not analytical but experimental.