I've recently run into an issue where I need to resize a partition on a server, but the issue is, it has no GUI so I cannot use gparted. What should I do in this case?  So I get it that you should use parted. However, how exactly do you use the parted command? What does it mean by start and end?
I only have access to the server via a terminal and I can't use graphical tools such as GParted! I want to create a new partition from a part of the root (about 768mb) for swap.  # df -h Filesystem      Size  Used Avail Use% Mounted on /dev/vda         20G  1.3G   18G   7% / udev             10M     0   10M   0% /dev tmpfs           199M  4.9M  194M   3% /run tmpfs           100M   12K  100M   1% /run/user tmpfs           5.0M  4.0K  5.0M   1% /run/lock
Clear item with custom name? How do you clear 1 item from the inventory that has a custom name? What I'm trying to do is make a torch that when you hold it, it gives you Night Vision effect but after like 400 ticks or so I want the torch to run out of fuel and clear 1 torch away from the inventory, I have the potion effects (giving and taking away) working and the testfor command but how do I clear the item? this is my code I'm trying to use /clear @a torch 1 1 {display:{Name:"Special Torch"}} I am a UI designer and developer and have been designing websites for aound 10 years. I want to get into user experience design. I know how to do a design, but I am lagging the terminologies and the technical things in the user experience field.   So how do I go about getting the skills and mindset necessary for being a User Experience Designer? My question is pretty simple.  Since $n! \gt n!!$, it's clear by the comparison test that $\sum_{n=0}^\infty \frac {1}{n!!}$ converges.      But what value does the sum converge to? How does one go about determining its value (if possible)? When I googled stomach flu, there were many questions and statements like      How do you get the stomach flu?    Or     Difference between a stomach flu and food poisoning    Or      Six facts about stomach flu   When do you use the, a or nothing? And which should I use for a sentence like "I got a stomach flu from someone" ? Replace Line Breaks in a String C# How can I replace Line Breaks within a string in C#? Extra semicolon near answers header On all the SE sites that I checked, the text that normally says something like “1 Answer” now says “1 Answer;” (with a semicolon seemingly in superscript):    The HTML for that part of the page looks like this (the semicolon is on the fourth line from bottom):              &lt;div id="answers"&gt;                  &lt;a name="tab-top"&gt;&lt;/a&gt;                 &lt;div id="answers-header"&gt;                     &lt;div class="subheader answers-subheader"&gt;                         &lt;h2&gt;                                 1 Answer                         &lt;/h2&gt;                         &lt;div&gt;                             &lt;div id="tabs"&gt;         &lt;a href="/questions/18587301/which-is-good-il-editor?answertab=active#tab-top" title="Answers with the latest activity first"&gt;             active         &lt;/a&gt;         &lt;a href="/questions/18587301/which-is-good-il-editor?answertab=oldest#tab-top" title="Answers in the order they were provided"&gt;             oldest         &lt;/a&gt;         &lt;a class="youarehere" href="/questions/18587301/which-is-good-il-editor?answertab=votes#tab-top" title="Answers with the highest score first"&gt;             votes         &lt;/a&gt; &lt;/div&gt; ;                         &lt;/div&gt;                     &lt;/div&gt;                 &lt;/div&gt; What is meant by immutable? This could be the dumbest question ever asked but I think it is quite confusing for a Java newbie.    Can somebody clarify what is meant by immutable?  Why is a String immutable? What are the advantages/disadvantages of the immutable objects? Why should a mutable object such as StringBuilder be preferred over String and vice-verse?   A nice example (in Java) will be really appreciated. Setting proxy for apt from terminal I'm not entirely clear on how Counterspell works, when trying to counter higher-level spells: the CS description only talks about disrupting a creature you can see, within 60 feet, casting a spell.   However, when trying to counter a higher level spell:   Do I know what spell is being cast?  Do I at least know (somehow intuit, based on VSM components) the level of the spell? Or can I tell the spell/level of the spell by sensing a disturbance in The Weave? (I.e., if the spell is being cast using Subtle Spell, can I still tell what's going on?)   The point of the question is to determine how fruitful CS can be in combat--if I know what the other guy/gal is casting (or at least the level), I can decide whether I want to spend my L8 slot to counter his/her L8 slot. But if I have no idea, and I end up using a L8 slot to counter a L3 spell... seems a bit painful.  Hope this made sense! Large 10 kWh 18650 Lithium-ion power pack - What configuration? I need to build a 10 kWh lithium-ion pack, anywhere from 70 V to 200 V.  This is to drive a motor.  Power output will not exceed 15 kW.  The cells will be Panasonic NCR 'B' at 3.4 Ah 18650.  I would like to minimize space and weight and cost. :D  Level of safety would be standard for a hobby application.  Charging will be done in a safe area using two levels of overcharge and overcurrent protection.  Charging is from house current, 110V, and multiple chargers may be employed to double or triple the charge rate.   What is the best configuration for cells?  I would prefer if the pack is broken down into units of 1 to 2 kWh each.  Each unit may be charged separately. In addition to a balancing-protection board and a CCCV charger, what other protection or safety mechanisms are recommended, short of a smart BMS system? I have looked at a cheap Chinese balancing board that offers protection (thermal, overcharge, undercharge, overcurrent, short).  A 20S board will offer up to 84 V and adequate current for the application, for a 1.5 kWh unit.  At 1/3C, I would need a 83 V 6 A CCCV charger.  How do I get one of these? Off-topic question:  Can a balancing-protection board be used for a configuration with a lesser number of cells? Such as using a 10S board to control an 8S configuration.  Or does this depend on the board? I am working on a proof about Dedekind cuts on the positive rational numbers. I have been stuck for a while on the following point and would appreciate any help.  Given $x\in \mathbb{Q}^+$ such that $x^2&lt;2$, how to find $y\in \mathbb{Q}^+$ such $y&gt;x$ and $y^2&lt;2$? Distribution of orbital velocities in a disk galaxy for N-body simulation? I'd like to write an N-body simulation in which I collide two disk galaxies. To give you an idea of the accuracy I'm trying to achieve, I'm aiming to make this my screensaver at 30fps on my work desktop. Think Euler's method, large epsilons in denominators to prevent blow up, all that lazy stuff.   One place I don't want to be lazy, however, is in the initial construction of the galaxies I'm trying to collide. I want to design a galaxy that will at least sort of hold together by its own gravity until it smash it into another one.   How might I go about selecting the orbital velocities for each of the bodies composing the galaxy? In many practical applications, one can consider the Earth-Centered Inertial () reference frame approximately as an inertial reference system, though strictly speaking, it is non-inertial.   Is there any quotable reference, where this claim is supported by a detailed estimation how small the effects are that one neglects if one considers the Earth's frame as inertial? In Drupal 8 you can load an entity with:  $node = \Drupal::entityManager()-&gt;getStorage('node')-&gt;load(123);   This looks for the entity definitions and finds that node is defined by Drupal\node\Entity\Node - so (I guess) Drupal\node\NodeStorage will instantiate a new Drupal\node\Entity\Node instance.  What I'd like to achieve is subclassing Drupal\node\Entity\Node and being able to instantiate this subclass when it's appropriate. For example if I have a node bundle article, there would be a class:  namespace Drupal\my_module\Entity\Article; class Article extends Drupal\node\Entity\Node { }   And I'd call:  $node = \Drupal::entityManager()-&gt;getStorage('node_article')-&gt;load(123);   And the return would be my Article subclass.  I can achieve this by creating a new entity type and wiring it back to another existing entity definitions, for example the node-article example would be this class:  namespace Drupal\my_module\Entity; use Drupal\node\Entity\Node; /**  * @ContentEntityType(  *   id = "node_article",  *   label = @Translation("Content"),  *   bundle_label = @Translation("Content type"),  *   handlers = {  *     "storage" = "Drupal\node\NodeStorage",  *     "storage_schema" = "Drupal\node\NodeStorageSchema",  *     "view_builder" = "Drupal\node\NodeViewBuilder",  *     "access" = "Drupal\node\NodeAccessControlHandler",  *     "views_data" = "Drupal\node\NodeViewsData",  *     "form" = {  *       "default" = "Drupal\node\NodeForm",  *       "delete" = "Drupal\node\Form\NodeDeleteForm",  *       "edit" = "Drupal\node\NodeForm"  *     },  *     "route_provider" = {  *       "html" = "Drupal\node\Entity\NodeRouteProvider",  *     },  *     "list_builder" = "Drupal\node\NodeListBuilder",  *     "translation" = "Drupal\node\NodeTranslationHandler"  *   },  *   base_table = "node",  *   data_table = "node_field_data",  *   revision_table = "node_revision",  *   revision_data_table = "node_field_revision",  *   translatable = TRUE,  *   list_cache_contexts = { "user.node_grants:view" },  *   entity_keys = {  *     "id" = "nid",  *     "revision" = "vid",  *     "bundle" = "type",  *     "label" = "title",  *     "langcode" = "langcode",  *     "uuid" = "uuid",  *     "status" = "status",  *     "uid" = "uid",  *   },  *   bundle_entity_type = "node_type",  *   field_ui_base_route = "entity.node_type.edit_form",  *   common_reference_target = TRUE,  *   permission_granularity = "bundle",  *   links = {  *     "canonical" = "/node/{node}",  *     "delete-form" = "/node/{node}/delete",  *     "edit-form" = "/node/{node}/edit",  *     "version-history" = "/node/{node}/revisions",  *     "revision" = "/node/{node}/revisions/{node_revision}/view",  *   }  * )  */ class Article extends Node { }  // Results my Article sub type. $node = \Drupal::entityManager()-&gt;getStorage('node_article')-&gt;load(123);   This works fine (as much as I can see); however, it smells. It adds a new entity type, which is not true, and might cause other troubles in the future.  How do I define a subclass for an entity bundle so that loading the entity would return an object of that class? "Failed to create user" due to regular expression error I'm running Ubuntu 12.10 desktop 32 bit. Currently I have only a user, type administrator. I'd like to create another administrator user but I keep getting the following error:  Failed to create user GDBus.Error:org.freedesktop.Accounts.Error.Failed: running '/usr/sbin/adduser' failed: /usr/sbin/adduser returned an error (1): adduser: Please enter a username matching the regular expression configured via the NAME_REGEX[_SYSTEM] configuration variable.  Use the `--force-badname' option to relax this check or reconfigure NAME_REGEX.  Any suggestion is appreciated. How can I determine if a used game is pirated? Pathologies in module theory Linear algebra is a very well-behaved part of mathematics. Soon after you have mastered the basics you got a good feeling for what kind of statements should be true -- even if you are not familiar with all major results and counterexamples.  If one replaces the underlying field by a ring, and therefore looks at modules, things become more tricky. Many pathologies occur that one maybe would not expect coming from linear algebra.  I am looking for a list of such pathologies where modules behave differently than vector spaces. This list should not only be a list of statements but all phenomena should be illustrated by an example.  To start the list I will post an answer below with all pathologies that I know from the top of my head. This should also explain better what kind of list I have in mind. Is $R^2$ useful or dangerous? How is $J^{PC}$ value experimentally determined for new types of particles? Japan is a volcanically active country which means it has a plethora of onsen (hot springs) all around the country.  Visiting these onsen is supposed to be a popular vacation destination for the work-weary Japanese.    I've been told that, as with other things in Japan, there is a rather strict etiquette surrounding the use of the onsen.  In particular, the two things I've read about so far are   Swimming Suits are not allowed. It is very important that one bathe immediately before entering the onsen.   Are these true?  Are there any other taboos that a naive American should be aware of?