I need more space on my root partition running Ubuntu 17 (using Xfce session). I do have a lot of unallocated space BEFORE. However, when I try to resize root partition - /dev/sdb2 , I can't add/remove a MiB...  Is this even possible?   If so, can it somehow be done from the live system or do I have to use live CD/USB?    There is really just Ubuntu and Xcfe session, LUBUNTU_SYSTEM is just an old label :)
Till today I was using ubuntu 13.04 in my windows7/ubuntu dual boot. Just now I have upgraded to ubuntu 14.04. My software updater showed an updates available message. I proceeded with  Install Now . Soon I got the following window.    Then I tried sudo apt-get clean as recommended. Nothing happened! Not even a window opened. Teach me deleting the temporary packages.   Deleting temporary files may not be highly helpful in case of further updates and installs for I don't have too much space left in my /. I wanna extend my / partition with the help of the unallocated space in my HD. The following is my Gparted window.       I got an answer . But it wasn't useful for me. I had two choices. But the answer wasn't working for both my chioces.  Choice 1: I may use the 4.25 GiB unallocated space to extend my /dev/sda10. To do so, I must need to move my linux-swap partition. But my Resize/Move option is disabled for the linux-swap partition. Choice 1 failed!   Choice 2: I may use the 14.35 GiB unallocated space instead. In this case I must move more than one partition. /dev/sda4  partition is the first on the list. Even that partition has the same problem. Resize/Move option is disabled. Choice 2 failed!  I am out of choices now.  What shall I do? Help me to extend my / with Gparted.
Hi there! I'm looking for a help drawing this diagram. Any ideas? Let $R$ be a commutative ring with 1 then why does $a\in N(R) \Rightarrow 1+a\in U(R)$? Use template_include with custom post types I want to check for an appropriate template in the theme folder before falling back to the file in my plugin directory. Here’s my code:  add_filter('template_include', 'sermon_template_include'); function sermon_template_include($template) {     if(get_query_var('post_type') == 'wpfc_sermon') {         if ( is_archive() || is_search() ) :            if(file_exists(TEMPLATEDIR . '/archive-wpfc_sermon.php'))               return TEMPLATEDIR . '/archive-wpfc_sermon.php';            return dirname(__FILE__) . '/views/archive-wpfc_sermon.php';         else :            if(file_exists(TEMPLATEDIR . '/single-wpfc_sermon.php'))               return TEMPLATEDIR . '/single-wpfc_sermon.php';            return dirname(__FILE__) . '/views/single-wpfc_sermon.php';         endif;     }     return $template; }   Problem is, it doesn’t work! :-) It always picks the file in my plugin folder. Any idea what to do? I’ve tried alot of variations but I can’t seem to get anything to work! Thanks in advance! Jack  EDIT  I'm expecting the archive-wpfc_sermon.php to be returned from the theme folder if it exists. However, the file from my plugin always gets returned. Thanks for your help! This is from my Sermon Manager plugin available in the repository. Prove that $f$ has finite number of roots Let $f:[0,1]\to \mathbb{R}$ be a differentiable function. If there do not exist any $x\in[0,1]$ such that $f(x)=f'(x)=0$, prove that $f$ has only finite number of zeros in $[0,1]$.   I'm not getting any idea how to proceed. Being an early adopter and using 11.04 daily builds I sometimes meet a situation when some packages require earlier versions of other packages than those I have installed. Usually newer (but refused) versions of needed packages provide all the functionality of their older versions.  If I use dpkg -i --force-depends-version to install dependent packages everything works fine, I've never seen a problem.  Instead of manually downloading and installing every package, can I just make the system pretend there is a specific package version installed when there is a newer? Or is there a --force-depends-version key equivalent for apt-get? "What was best" vs "what was the best"? Do both have the same meaning? Or they are subtly different? Example sentence:  What was (the) best? To go left or right, up or down?   it says that both are exactly the same. But I wonder if that's really the case. How many ways to arrange people on a bench so that no woman sits next to another woman? Escaping HTML strings with jQuery Does anyone know of an easy way to escape HTML from strings in ?  I need to be able to pass an arbitrary string and have it properly escaped for display in an HTML page (preventing JavaScript/HTML injection attacks).  I'm sure it's possible to extend jQuery to do this, but I don't know enough about the framework at the moment to accomplish this. Pass PHP variables to Javascript/jquery How can I prove the formula for calculating successive entries in a given row of Pascal's triangle? I've found in Wikipedia the formula for calculating an individual row in Pascal's Triangle: $$v_c = v_{c-1}\left(\frac{r-c}{c}\right).$$ where $r = \mathrm{row}+1$, $c$ is the column starting from $0$ on left and $v_0 = 1$.  Now, I've tried to do by hand and it works,  but I don't understand how to find this magic formula when I don't have access to Wikipedia...:) Can I visit Schengen countries on a Type-D Schengen Visa? Prove that if $n$ is a composite, then $2^n-1$ is composite. Not sure if I'm doing this correctly but this is what I've done:  Assume that $n$ is composite and suppose $2^n-1$ is a prime for $n \gt 2$. Then, $2^n-1 = 2k$ for some $k \in \Bbb Z $, $\forall n$.  But this would be a contradiction since $n \gt 2$.  I'm not sure if this a correct proof.  EDIT: I realized that it's to prove $2^n - 1$ NOT $2^{n-1}$ so my attempt above is completely wrong. Let $A$ and $B$ be two sets of real numbers. Define the distance from $A$ to $B$ by $$\rho (A,B) = \inf \{ |a-b| : a \in A, b \in B\} \;.$$ Give an example to show that the distance between two closed sets can be $0$ even if the two sets are disjoint. I am using pdflatex on a fresh (and current) MikTex 2.9 install with the following MWE:  \documentclass{article} \usepackage{animate} \begin{document}  Test \end{document}   Pdflatex throws the error:  Package: pdfbase 2017/03/23 v0.14 driver independent access to low-level PDF fe atures \g_pbs_page_int=\count175  ! Undefined control sequence. &lt;argument&gt; \luatexversion                            &lt;95 l.924 }   I have read the other posts containing the offending control sequence, especially  but the solutions offered there didn't help in my case.  This problem might have arisen with a recent MikTex update. I have now completely uninstalled, redownloaded, reinstalled and updates MikTex -- with no success. Relation between power and energy If I have an expression for the 'rated generator power' of a wind turbine, call it $P(t)$ how is the energy, that the wind turbine generator generate, related to the power $P(t)$?  So: $$E(t)=\dots$$ It is always told as a fact without explaining the reason. Why do two objects get charged by rubbing? Why one object get negative charge and other get positive ? Can 'home' be an adjective as well as an adverb or a noun? All the dictionaries I've consulted say that 'home' is an adverb and a noun, depending on context. For example:  (1) He went home. [adverb] (2) He is at home. [noun]  Also, there's  that seemingly resolves the issue of why 'home' sometimes should be analyzed as an adverb. But what about this example?  (3) I can find my way home.  Can you also say that home in (3) is an adverb? It seems to me that home in (3) cannot be an adverb, because I think it functions as a complement of the noun way and that my way home as a whole is a noun phrase. Even if we accept John Lawler's analysis in the above quoted answer of considering home &quot;one of those idiomatic locative nouns that are allowed to drop determiners and occasionally even prepositions,&quot; we cannot say home in (3) is an example of &quot;how a noun can be used as an adverb&quot;, because (3) can be analyzed as John Lawler suggests:  (3') I can find my way (to my) home.  Here, to my home is not an adverbial prepositional phrase but an adjectival prepositional phrase that acts as a complement of the noun way. So, to take what John Lawler said and adapt it to (3), &quot;what it is is an [adjectival] prepositional phrase that has been stripped of its prepositions and determiners, leaving only a naked noun to stand for the whole phrase. That's how a noun can be used as an [adjective].&quot; Now, does this mean we should call home a noun, an adverb, or an adjective, depending on context? Why do we make a distinction between derivatives and partial derivatives? Does driving an microcontroller's GPIO when it is powered off weaken the chip? We are using the  in a project. The way our design is now, the IC's GPIO pins will sometimes be driven high (to 3.3V) or low when it is powered-off. Will this weaken the chip? The absolute maximum ratings state the voltage on any digital I/O pin is -0.3V to VSupply+0.3V. If the answer is no, could the IC be weakened during power up?  The LTC5800-IPM does not have the most detailed datasheet. If it is not clear for that device in particular, I'd be interested to know for CMOS microcontroller GPIOs in general. how to copy or backup files ignoring dot files