I'm trying to expand dev/sda7/ space using unlocated memory[587GB]. I'm not able to expand dev/sda7/ to unlocated memory resize option won't show the memory of unlocated. Is there a way to push unlocated memory into extended partition and resize dev/sda7 memory from there?
Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?
Find joint density function of X and X+Y (exponential distribution) I tried finding the following density function:     Let $X$ and $Y$ be independent random variables, each having the exponential distribution with parameter $\lambda$. Find the joint density function of $X$ and $Z=X+Y$.   $\begin{aligned}f_{X,X+Y}=&amp;\frac{\partial}{\partial x\partial z}\mathbb P (X\leq x,Y\leq z-x)\\=&amp;\int_{-\infty}^x\int_{-\infty}^{z-x}f(u,v)\,\mathrm dv=\frac{\partial}{\partial z}\left[\frac{\partial}{\partial x}\int_0^x\int_0^{z-x}\lambda^2e^{-\lambda u-\lambda v}\,\mathrm dv\,\mathrm d u\right]\\ =&amp;\frac{\partial}{\partial z}\int_0^{z-x}\lambda^2e^{-\lambda x-\lambda v}\,\mathrm dv=\frac{\partial}{\partial z}\int_x^{z}\lambda^2e^{-\lambda x-\lambda(v-x)}\,\mathrm dv\\ =&amp;\lambda^2e^{-\lambda x-\lambda(z-x)}=\lambda^2e^{-\lambda z} \end{aligned}$  But I don't think this is correct, because $\mathbb P(X\leq x,X+Y\leq z)$ isn't equal to $\mathbb P(X\leq x,Y\leq z-x)$. But I can't think of anything else.  Could someone help me a little bit with this exercise?  I'm going to try the following:  $\mathbb P(X\leq x,Z\leq z)=\int_{-\infty}^x\int_{-\infty}^zf_X(u)f_Z(v)\,\mathrm du\,\mathrm dv$,  where I use the convolution formula. If I made no mistake, this gives  $f_{X+Y}(z)=z\lambda^2e^{-\lambda z}$, if $z&gt;0$.  Then calculating the joint density function:  $\begin{aligned}f_{X,X+Y}(x,z)=\frac{\partial}{\partial z}\left[\int_{-\infty}^z\lambda^3ve^{-\lambda x-\lambda v}\,\mathrm dv\right]. \end{aligned}$  Oh wait, this is also incorrect, because $X$ and $X+Y$ are dependent.  I really don't know how to proceed; could someone help?  I've also looked at this , but they mention the Jacobian, and my teacher has chosen to skip the paragraph about the Jacobian, so it wouldn't make sense if I had to use that. Does anyone have an intuitive explanation (no formulas, just words! :D) about the "$n-1$" instead of "$n$" in the unbiased variance estimator $$S_n^2 = \dfrac{\sum\limits_{i = 1}^n \left(X_i-\bar{X}\right)^2}{n-1}?$$ .NET - What's the best way to implement a "catch all exceptions handler" I'm wondering what the best way is to have a "if all else fails catch it".  I mean, you're handling as much exceptions as possible in your application, but still there are bound to be bugs, so I need to have something that catches all unhandled exceptions so I can collect information and store them in a database or submit them to a web service.  Does the AppDomain.CurrentDomain.UnhandledException event capture everything? Even if the application is multithreaded?  Side note: Windows Vista exposes native API functions that allow any application to recover itself after a crash... can't think of the name now... but I'd rather not use it, as many of our users are still using Windows XP. How do I SOSL across objects, matching all records with FIND clause? Can we escape Earth's gravity slowly? I had a recent conversation with my girlfriend, who is a physics grad student. She was kind enough to listen to me rant about an idea concerning escape velocity. Unfortunately, I am still thinking about this question, but don't want to bother her with it.  My thought is that we shouldn't actually need to reach 11km/sec to leave the earth's gravity. Instead of this, can we simply apply enough force to overcome earth's gravity without reaching that speed? How we would do this is not a part of my question.  Orbital altitude is $99$ miles. Travelling $60$ mph straight up should get you there in $1.65$ hours, granted you have enough force to push. I know some of the simpler math like $F=ma$, but that didn't help me understand.  I browsed some articles about space elevators and couldn't find my answer.  Then I thought about a regular elevator and the fact that it has enough force to move it away from the earth successfully. Even if the elevator moved at $1$ nanometer/sec, it would still move away from the Earth, overcoming the minute pull of gravity at that altitude.  If you missed it, my question was:  can we simply apply enough force to overcome Earth's gravity without reaching that speed?  Edit: In another example, let's say we could drive a car from here to low Earth orbit. As long as we had enough torque, we should be able to overcome gravity, much like a pickup truck pulling a bunch of lumber. Is that correct? How is ** implemented in Python? I'm wondering where I find the source to show how the operator ** is implemented in Python.  Can someone point me in the right direction? I have a collection that contains linked assets. I would like to override their materials and give them a unique material. Is it possible to assign a material to a whole collection, and how ?  Thanks ! How do I save a file with managed_file in a theme? I'm developing a theme that it requires to have a header image on the front page, so I have this.  casper.theme  function casper_form_system_theme_settings_alter(&amp;$form, &amp;$form_state) {  $form['theme_extra']['front_page_background_image'] = array(     '#type' =&gt; 'managed_file',     '#title' =&gt; 'Front Page Background Image',     '#description' =&gt; 'Add background image for the front page',     '#required' =&gt; FALSE,     '#weight' =&gt; -4,     '#upload_location' =&gt; file_default_scheme() . '://theme/backgrounds/',     '#default_value' =&gt; theme_get_setting('front_page_background_image' , 'casper'),     '#upload_validators' =&gt; array(         'file_validate_extensions' =&gt; array('gif png jpg jpeg'),     ),  ); }   However, after it, while the file been missing and after some reading, I find out that is because managed_file does not save your image permanent.   There are similar questions:    is specified to Drupal 7.  is using "file" type instead of managed_file. I already tried something similar to what the Mayo theme is doing, but I was not able to successfully figure it out.   How can I save my image permanently? What are the options for managing multiple Ubuntu installations together and keeping them in same state Your communities list is not visible in mobile web on site where you don’t have an account If you don’t have an account for some site, you can still see a list of your communities via top bar menu of this site, e.g. on 3D Printing:        But this works only for full web, in mobile web «sign up or log in» is shown:        When you have an account then the list of your communities is shown even for mobile web: Which is correct, "neither is" or "neither are"? Driver for Validity Sensors Fingerprint scanner prakhar@pr3d4tOr:~$ lsusb -s 001:003 -v  Bus 001 Device 003: ID 138a:0018 Validity Sensors, Inc. Fingerprint scanner Couldn't open device, some information will be missing Device Descriptor:   bLength                18   bDescriptorType         1   bcdUSB               1.10   bDeviceClass          255 Vendor Specific Class   bDeviceSubClass        17    bDeviceProtocol       255    bMaxPacketSize0         8   idVendor           0x138a Validity Sensors, Inc.   idProduct          0x0018 Fingerprint scanner   bcdDevice            0.78   iManufacturer           0    iProduct                0    iSerial                 1    bNumConfigurations      1   Configuration Descriptor:     bLength                 9     bDescriptorType         2     wTotalLength           46     bNumInterfaces          1     bConfigurationValue     1     iConfiguration          0      bmAttributes         0xa0       (Bus Powered)       Remote Wakeup     MaxPower              100mA     Interface Descriptor:       bLength                 9       bDescriptorType         4       bInterfaceNumber        0       bAlternateSetting       0       bNumEndpoints           4       bInterfaceClass       255 Vendor Specific Class       bInterfaceSubClass      0        bInterfaceProtocol      0        iInterface              0        Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x01  EP 1 OUT         bmAttributes            2           Transfer Type            Bulk           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0040  1x 64 bytes         bInterval               0       Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x81  EP 1 IN         bmAttributes            2           Transfer Type            Bulk           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0040  1x 64 bytes         bInterval               0       Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x82  EP 2 IN         bmAttributes            2           Transfer Type            Bulk           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0040  1x 64 bytes         bInterval               0       Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x83  EP 3 IN         bmAttributes            3           Transfer Type            Interrupt           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0008  1x 8 bytes         bInterval               4   I have searched high and low but I cannot get this to work. All questions related to 138a:0018 are either unanswered or old. Any help guys? Why use foreign keys if cascade action is not need? Trying to keep track of the updates to all the great, user-developed add-ons is fairly frustrating (at least for me). Is there currently a centralized resource where all these amazing add-ons are kept and updated in one location?  If there isn't such a resource, would it be possible to have blender query the collection of installed add-ins and then iterate through on-line references looking at version #'s for add-ins?  Since, as far as I know, it hasn't been done...I have to ask if there are any major flaws in the concept. Of course, in my dream scenario, there would be a "voting" front-end that would allow users to see what the most popular and useful add-ons are and where you don't have to read pages (and pages) of threads. Is the total variation function uniform continuous or continuous? Reading ODBC connection using QGIS? I have a co-worker who manages a large MS Access database that contains X &amp; Y fields for various locations he tracks.  We have previously exported the data to CSV and used the QGIS Delimited Text Plugin to plot the locations.  We would now like to be plot this data directly in QGIS by connecting to the MS Access db via an ODBC connection (as opposed to export to CSV).   Can QGIS consume the data from the ODBC connection to plot the X-Y locations? Can it be "live linked" to the ODBC connection so that when a project is re-opened, the layer "replots" all old and newly added locations dynamically (as opposed to exporting to shapefile, which would create a snapshot in time)? Can you create tabular ODBC connections that can be joined to spatial tables within QGIS?   You can do all of this in ArcGIS ("Add XY Data" tool), so it would be great if this capability existed in QGIS. I just cannot find anywhere that mentions its existence.  I am not planning to move to a spatial database.  As a GIS person myself, yes I know that it makes sense to move to a spatial database, and yes I have used PostGIS to manage this kind of data.  But these are not options right now.  The user is not a GIS person nor wants to be, and he manages his own database in MS Access and that will not change.  I am and am pulling him kicking and screaming into the GIS world and want to make it easy as possible.  He can live with exporting to CSV, I was just hoping there is a better solution USING ODBC FOR MS ACCESS and displaying the XY data in QGIS. Inspired by a StackOverflow question ().  Is there a DBMS that actually supports the = NULL syntax? Can we decrypt in this order when the message is encrypted twice? I was writing some Unit tests last week for a piece of code that generated some SQL statements.  I was trying to figure out a regex to match SELECT, INSERT and UPDATE syntax so I could verify that my methods were generating valid SQL, and after 3-4 hours of searching and messing around with various regex editors I gave up.  I managed to get partial matches but because a section in quotes can contain any characters it quickly expands to match the whole statement.  Any help would be appreciated, I'm not very good with regular expressions but I'd like to learn more about them.  By the way it's C# RegEx that I'm after.  Clarification  I don't want to need access to a database as this is part of a Unit test and I don't wan't to have to maintain a database to test my code. which may live longer than the project. The ship flying away from Rey in her flashback of being left on Jakku looks like one of the ships in the group that takes her away when she is captured.  If so, and it is a First Order ship that dropped her off, this is an interesting Easter egg.