I did   fdisk -l   and found that I have 15 different ramdisks which are all called /dev/ram* (where * is a number between 1 and 15.)  This seems weird, but I'm not a hardware specialist so I don't really know if they are all needed or if I should just change/delete some of them. So, is this normal and should I leave it alone, or should I change something here?
Ever since I upgraded to 15.10, fdisk -l reports 16 ram disks (/dev/ram0 ... /dev/ram15). I'm a bit unsure what those are needed for. Is it safe to delete them? If not, how can I get rid of that fdisk output?
I tried to make a crouch system. In my script I changed .height and .center properties of collider in CharacterController component. But there are some problems. First, once I press "crouch button" collider is changing its height and center position but when I release the key the collider isn't returning to its previous state. Secondly, if I change its height and position by hand when collider is under a block, it's just stuck. How can I fix this problem?   Here's my script:  using System.Collections; using System.Collections.Generic; using UnityEngine;  [RequireComponent(typeof(CharacterController))] public class PlayerController : MonoBehaviour {      public float moveSpeed;     public float jumpForce;     public CharacterController controller;     public GameObject myCamera;      private Vector3 moveDirection = Vector3.zero;     public float gravityScale;      public Animator anim;      // Use this for initialization     void Start () {         transform.tag = "Player";         controller = GetComponent&lt;CharacterController&gt;();            }      // Update is called once per frame     void Update () {         Vector3 forwardDirection = new Vector3 (myCamera.transform.forward.x, 0, myCamera.transform.forward.z);         Vector3 sideDirection = new Vector3(myCamera.transform.right.x, 0, myCamera.transform.right.z);         forwardDirection.Normalize ();         sideDirection.Normalize ();         forwardDirection = forwardDirection * Input.GetAxis("Vertical");         sideDirection = sideDirection * Input.GetAxis("Horizontal");         Vector3 directFinal = forwardDirection + sideDirection;          if (directFinal.sqrMagnitude &gt; 1)         {             directFinal.Normalize ();         }          if (controller.isGrounded)         {             moveDirection = new Vector3(directFinal.x, 0, directFinal.z);             moveDirection *= moveSpeed;             if (Input.GetButtonDown("Jump"))             {                 moveDirection.y = jumpForce;             }              if(Input.GetButtonDown("Crouch"))             {                 controller.height = 1f;                 controller.center = new Vector3(0f, -0.5f, 0f);                 moveSpeed = 3f;             }         }         moveDirection.y = moveDirection.y + (Physics.gravity.y * gravityScale * Time.deltaTime);         controller.Move(moveDirection * Time.deltaTime);          anim.SetBool("isGrounded", controller.isGrounded);         anim.SetFloat("Speed", (Mathf.Abs(Input.GetAxis("Vertical")) + Mathf.Abs(Input.GetAxis("Horizontal"))));     } }   Thanks for any help! I'm getting an error - didnt understand relationship when running this query in dev console. I have set the child relationship the lookup field to IncEvents. The lookup field is on the MyRule object -   select Id, Name, (select Id from IncEvents_r) from Namespace_MyRule__c  I noticed that the editor is displaying a single underscore between the namespace and the object name but I did enter a double underscore. Unit testing void methods? What is the best way to unit test a method that doesn't return anything? Specifically in c#.  What I am really trying to test is a method that takes a log file and parses it for specific strings. The strings are then inserted into a database. Nothing that hasn't been done before but being VERY new to TDD I am wondering if it is possible to test this or is it something that doesn't really get tested. I've a set of regions within a city. I'd like to split each region into five subregions and then get the centroid of each one of them.  I know how to make a vector grid, but the problem I have is that the generated points are not taking into account the regions, they're only related to the general map.  I have this:    And I want to split each region in five equal size areas. Something like this:    I'd like to build a visualization similar to this one: . In order to accomplish that, I need to split each region, because the original ones are pretty big. Calculating extent of custom tiles? Problem  The picture is just an example of my case, but I am left with blank space on the left when I load all the tiles and I get error message in the console:   Failed to load resource: the server responded with a status of 404 (Not Found) http://path/to/the/tile//base/8/6/53.png  etc.     I could guess and limit the extent of the layer, but I would really like to know is there any way to calculate it and also be able to get rid of the error message.  What I know about the tiles?   Originally they are served as TMS They represent png images 256*256 They are in projection: EPSG:3857 In OpenLayers2 they were called like TMS layer In OpenLayers3 (v.3.8.2) they are called like XYZ layer (that includes -y):     var baseLayer = new ol.layer.Tile({   source: new ol.source.XYZ({     url: 'http://path/to/the/tiles/base/{z}/{x}/{-y}.png'   }) });   Thoughts and questions   How can I calculate extent of the tiles? Or in another words how can I find out zmin zmax xmin ymin xmax ymax or whole range of x/y?  What does x/y really represent? Are they coordinates of the left bottom corner or center of the tile? In which direction does x/y increase? How can I figure out x/y of at least one of the tile, for example left bottom one?    (I have modified the question for better understanding of the problem) Lisp Executable I've just started learning Lisp and I can't figure out how to compile and link lisp code to an executable.  I'm using clisp and clisp -c produces two files:   .fas .lib   What do I do next to get an executable? JavaScript open in a new window, not tab I have a select box that calls window.open(url) when an item is selected.  Firefox will open the page in a new tab by default.  However, I would like the page to open in a new window, not a new tab.    How can I accomplish this? New York is a great place to live. New York is a great place to live in.  I've seen the former usage a lot and I've started wondering what the grammar aspects of it are. The main question I'm asking involves the grammar when the preposition in the end of the sentence is deleted. Is it equally formal or correct to omit it? What are the grammar properties of this? Some more examples of similar usage:  This organisation is a great place to work. This is a great place to stay/sit/study/travel/go.  Just to show that 'live' isn't special in this case. Note: I'd posted the same question  before, but the answers were not satisfying enough (the answers there did not seem to provide the precise grammar aspects of this, those that could be in a serious grammar book), so I'm posting this here to get some more views on the question. I hope it is acceptable. When using wish to replicate a spell, what school of magic does it count as? Can massive damage knock out rather than causing instant death? Suppose, as happened last night, a character intends to subdue rather than kill an opponent. She made a melee attack, hit, declared her intent to knock out. The damage roll was enough to reduce the opponent to zero and the remaining damage exceeded the opponent's maximum HP. Now we would seem to have two rules invoked:  Instant Death. Massive damage can kill you instantly. When damage reduces you to 0 hit points and there is damage remaining, you die if the remaining damage equals or exceeds your hit point maximum. (PHB p.197) Knocking a Creature Out. When an attacker reduces a creature to 0 hit points with a melee attack, the attacker can knock the creature out. The attacker can make this choice the instant the damage is dealt. The creature falls unconscious and is stable. (PHB p.198)  So which rule takes precedence? Or is it neither? How do you retrieve items from a dictionary in the order that they're inserted? Is it possible to retrieve items from a Python dictionary in the order that they were inserted? My online friend is asking for money in order to visit my home country. Is this a legit request or a scam? On Travel.SE we often see questions about a person (usually a love interest) asking for money to pay for airfare, visas, permits and other expenses. For example        What general advice can be given in such situations to the person asking the question? Is it all a scam or can there be legitimate situations in which an online friend could be asking for money? Hat duplicates when info is expanded It seems like there is a bug that is causing a duplicate hat to appear when I expand info, like pressing &quot;(more)&quot; on a suggested edit. This bug does not seem to be specific to the suggested edits review queue though, as others have reported seeing this bug in other places, like code snippet expansion. Steps to repro:  Put on a hat. Navigate to one of your own suggested edits. (You can just also open the Suggested Edits review queue and go to a random suggestion, but there is no guarantee any of those users will be wearing a hat.) Click the &quot;(more)&quot; button to expand the top box.  What should happen: Hat should shift down with the rest of the content. What happens: All the content shifts down, but a duplicate hat remains in the initial place. Before expansion:  After expansion with duplicate hat: Following on from this question:   It seems all feats carry over to your new form if your new form is capable of using them (so Mounted Combatant and Inspiring leader would usually be ruled as unusable in most circumstances). But what about Tough?     Your hit point maximum increases by an amount equal to twice your   level when you gain this feat. Whenever you gain a level thereafter,   your hit point maximum increases by an additional 2 hit points.   Would this increase your maximum HP by the same amount when in the form of a rat, or brown bear? How to Send Html Emails in Google Spreadsheet Here's an example of a Google Docs Spreadsheet script that sends emails using Google spreadsheets. I want the email Sent in HTML not plain text. Can someone help me out?  function sendEmails() {   var sheet = SpreadsheetApp.getActiveSheet();   var startRow = 2;  // First row of data to process   var numRows = 2;   // Number of rows to process   // Fetch the range of cells A2:B3   var dataRange = sheet.getRange(startRow, 1, numRows, 2)   // Fetch values for each row in the Range.   var data = dataRange.getValues();   for (i in data) {     var row = data[i];     var emailAddress = row[0];  // First column     var message = row[1];       // Second column     var subject = "Sending emails from a Spreadsheet";     MailApp.sendEmail(emailAddress, subject, message);   } } (already output) in Debug logs I am trying to add a list into an another nested list before adding values of a list to nested list it is getting the correct value but after adding i am getting (already output) in debug log when i checked.    public List&lt;String&gt; fieldName {get;set;}  public List&lt;List&lt;String&gt;&gt; fileValuesXML; // To get the field values of xml  for(Dom.XMLNode child : SalesforceObjecet.getChildElements()) {                        objecetName = child.getText();             system.debug('Object Name in XML field  ' + objecetName );              for(Dom.XMLNode subchild : child.getChildElements())              {                 system.debug('Sub child ' + subchild.getText() );                 for(Dom.XMLNode subchildfield : subchild.getChildElements())                 {                     system.debug('Sub child Field ' + subchildfield );                     fName  = subchildfield.getText();                     fieldName.add(fName);                     //fileValuesXML.add(fieldName);                     //system.debug('Filed Name in XML field  ' + fieldName);                 }                  system.debug('Filed Name before affing to filevalueXML  ' + fieldName);                                     fileValuesXML.add(fieldName);                 fieldName.clear();                 system.debug('Filed Name after affing to filevalueXML  ' + fileValuesXML);             }    }    I am getting values in debug log as:     Filed Name before affing to filevalueXML  (AccountSource, field3)   Filed Name after affing to filevalueXML  ((), (already output),   (already output)) Ubuntu server: Cannot setup dummy driver alsa (LXC container) // modprobe issue How can I stop iPhone prompting me to setup Apple Pay in Settings? What is the best way to repeatedly execute a function every x seconds? I want to repeatedly execute a function in Python every 60 seconds forever (just like an  in Objective C). This code will run as a daemon and is effectively like calling the python script every minute using a cron, but without requiring that to be set up by the user.  In , the solution appears to effectively just  for x seconds. I don't need such advanced functionality so perhaps something like this would work  while True:     # Code executed here     time.sleep(60)   Are there any foreseeable problems with this code? How do I use reflection to call a generic method? What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime?  Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod&lt;T&gt;() using the Type stored in the myType variable?  public class Sample {     public void Example(string typeName)     {         Type myType = FindType(typeName);          // What goes here to call GenericMethod&lt;T&gt;()?         GenericMethod&lt;myType&gt;(); // This doesn't work          // What changes to call StaticMethod&lt;T&gt;()?         Sample.StaticMethod&lt;myType&gt;(); // This also doesn't work     }      public void GenericMethod&lt;T&gt;()     {         // ...     }      public static void StaticMethod&lt;T&gt;()     {         //...     } }