I have windows 7 as primary OS. In past year I installed Ubuntu 14.04 from live USB. I don't use Wubi. Now I have to increase the partition /dev/sda6 size of Ubuntu.  user:~$ df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda6        16G   15G  275M  99% / none            4,0K     0  4,0K   0% /sys/fs/cgroup udev            3,9G  4,0K  3,9G   1% /dev tmpfs           785M  1,2M  784M   1% /run none            5,0M     0  5,0M   0% /run/lock none            3,9G  372K  3,9G   1% /run/shm none            100M   44K  100M   1% /run/user /dev/sdb1       279G  215G   64G  78% /media/user/035F3F68B14AD251   Update.  denis@denis:~$ sudo parted -l Model: ATA Samsung SSD 840 (scsi) Disk /dev/sda: 256GB Sector size (logical/physical): 512B/512B Partition Table: msdos  Number  Start   End    Size    Type      File system     Flags  1      1049kB  230GB  230GB   primary   ntfs            boot  2      230GB   256GB  25,6GB  extended  6      230GB   248GB  17,2GB  logical   ext4  5      248GB   256GB  8445MB  logical   linux-swap(v1)   Model: ATA Hitachi HTS54503 (scsi) Disk /dev/sdb: 320GB Sector size (logical/physical): 512B/512B Partition Table: msdos  Number  Start   End     Size    Type     File system  Flags  2      32,3kB  21,6GB  21,6GB  primary  ntfs  1      21,6GB  320GB   299GB   primary  ntfs         boot   And:  denis@denis:~$ lsblk NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sda      8:0    0 238,5G  0 disk  ├─sda1   8:1    0 214,6G  0 part  ├─sda2   8:2    0     1K  0 part  ├─sda5   8:5    0   7,9G  0 part [SWAP] └─sda6   8:6    0    16G  0 part / sdb      8:16   0 298,1G  0 disk  ├─sdb1   8:17   0   278G  0 part /media/denis/035F3F68B14AD251 └─sdb2   8:18   0  20,1G  0 part
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?
How old should you be when you begin Jedi training? Anakin Skywalker was about nine years old (see script link, below) during "The Phantom Menace". Yet according to various people, he was too old (or even "far too old") to begin training as a Jedi:   QUI-GON: "I'm afraid not. Had he been born in the Republic, we would have identified him early, and he would have become Jedi, no doubt...he has the way. But it's too late for him now, he's too old." OBI-WAN: "The boy will not pass the Council's tests, Master, and you know it. He is far too old." MACE WINDU: "He is too old. There is already too much anger in him." and even ANAKIN himself: "I'm with Qui-Gon...but...they're not going to let me be a Jedi. I'm too old."   All quotes above from .  However, during "The Empire Strikes Back" Yoda gives Luke's age (18 in chapter IV according to the ) as the reason to deny him training only after first saying that Luke is:   too impatient too angry not ready is unfocused ("Never his mind on where he was") and reckless   All from .  I would have thought that, if at 9 Anakin was too old, Yoda would have seen Luke at 18+ and started off by saying, "No chance, he has".  So, what is the age to begin Jedi training? @track vs @api (Lightning Web Components) Let's say we have this code for a LWC:  &lt;!-- helloExpressions.html --&gt; &lt;template&gt;     &lt;div class="slds-m-around_medium"&gt;         &lt;lightning-input name='firstName' label="First Name" onchange={handleChange}&gt;&lt;/lightning-input&gt;         &lt;lightning-input name='lastName' label="Last Name" onchange={handleChange}&gt;&lt;/lightning-input&gt;         &lt;p class="slds-m-top_medium"&gt;Uppercased Full Name: {uppercasedFullName}&lt;/p&gt;     &lt;/div&gt; &lt;/template&gt;   and this is the JS file:  // helloExpressions.js import { LightningElement, track } from 'lwc';  export default class HelloExpressions extends LightningElement {     @track firstName = '';     @track lastName = '';      handleChange(event) {         const field = event.target.name;         if (field === 'firstName') {             this.firstName = event.target.value;         } else if (field === 'lastName') {             this.lastName = event.target.value;         }     }      get uppercasedFullName() {         return `${this.firstName} ${this.lastName}`.toUpperCase();     } }   firstName and lastName have been decorated with @track. Now as per the documentation, decorating a property with @track makes it private and reactive, while to mark a property public and reactive, use @api.  So if I just change the decorator to @api for both these variables, it should work. I am referring these from the same component only. But it's not working.  UPDATE: 27th Feb -------------------- Somehow it's working today. I just changed the decorator of the variables to api.  import { LightningElement, api } from 'lwc';  export default class HelloExpressions extends LightningElement {     @api firstName = '';     @api lastName = '';      handleChange(event) {         const field = event.target.name;         if (field === 'firstName') {             this.firstName = event.target.value;         } else if (field === 'lastName') {             this.lastName = event.target.value;         }     }      get uppercasedFullName() {         return `${this.firstName} ${this.lastName}`.toUpperCase();     } }   So it's working. Selling customized versions of Ubuntu My question is next: "Can I modify some version of Ubuntu Linux, add some software related to electrical engineering, modify look and some functions of Ubuntu, basically customize the entire system so it suits the needs of electrical engineers working on the field or in the office, and then that customized system sell in order to make profit?"   I'm not sure am I allowed to do that (is it legal?), so I would appreciate answer. MariaDB won't start on Ubuntu: Can't lock aria control file Limit of $n$th root of $n$! Analog voltage level conversion (level shift) I have a joystick that puts out analog voltage somewhere between 1.5V and 3.5V.  I want to transform this range of voltage to control a motor controller that takes analog voltage between 0V and 5V.  How do I level shift and amplify properly? How to let PHP to create subdomain automatically for each user? How do I create subdomain like  ? Do i have to access htaccess somehow? Is it actually simply possible to create it via pure php code or I need to use some external script-server side language?  To those who answered: Well, then, should i ask my hosting if they provide some sort of DNS access?? Game about placing pennies on table This problem is from The Art and Craft of problem solving book:  Consider the following two player game. Each player takes turns placing a penny on the surface of a rectangular table. No penny can touch a penny which is already on the table. The table starts out with no pennies. The last player who makes a legal move wins. Does the first player have a winning strategy?  Now its not hard to see that the first player will always win if you place the coin in the center. But I have been thinking about what would happen If I also allow Quarter, Loonie and Twoonies. Does the first player have a strategy to always win? Could someone provide an explanation? How to set system-wide environment variables on OS X Mavericks When training a neural network using the back-propagation algorithm, the gradient descent method is used to determine the weight updates. My question is: Rather than using gradient descent method to slowly locate the minimum point with respect to a certain weight, why don't we just set the derivative $\frac{d(\text{Error})}{dw}=0$, and find the value of weight $w$ which minimizes the error? Also, why are we sure that the error function in back-propagation will be a minimum? Can't it turn out the error function is a maximum instead? Is there a specific property of the squashing functions that guarantees that a network with any number of hidden nodes with arbitrary weights and input vectors will always give an error function that has some minima? Is it possible to train a neural network without backpropagation? Many neural network books and tutorials spend a lot of time on the backpropagation algorithm, which is essentially a tool to compute the gradient.  Let's assume we are building a model with ~10K parameters / weights. Is it possible to run the optimization using some gradient free optimization algorithms?   I think computing the numerical gradient would be too slow, but how about other methods such as Nelder-Mead, Simulated Annealing or a Genetic Algorithm?  All the algorithms would suffer from local minima, why obsessed with gradient? Can I travel to Kuwait on a visa with old passport number? I have a Kuwait visa, obtained from a hotel in Kuwait, with my old passport number. But as the validity of the present passport is expiring within 6 months, I got a new passport with a new passport number. Can I travel with the same visa or do I have to obtain a new visa with my new passport number? My regex is matching too much. How do I make it stop? I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}? I wanted to left align a set of equations. I've tried the solution provided in  . It worked. But, I wanted to have a single equation number for the entire flalign in order to refer to it later. Like in case of equation+split. While using equation+align, I am able to get it. But, if I use equation+flalign the equations are still being centered. Is there a way to do it?  Example using equation+align,  \begin{equation}      \begin{align}       \mbox{Minimize } &amp; x_1+x_2+x_3 \\       \mbox{Subject to} &amp; \\        &amp; x_1+x_2 \leq 10 \\        &amp; x_2+x_3 \leq 8 \\        &amp; x_1+x_3 \leq 5       \end{align} \end{equation}   I would like to do this while the equations are left aligned.  It will be even better if the equations can be spaced a little (for example, 1 cm) from the left margin instead  of starting from the left margin.  Thanks in advance Principle of Reflection on atomic level This well-observed phenomenon has, besides several others, always been a fascination to me. We are well aware of several theories, experiments, and practical applications of this well-known phenomenon, but is it established what goes on at the grassroots of reflection?  My high school teacher once told me that whenever light is incident on any reflecting surface, its electrons absorb the energy of the photon and release back the same energy. If this is actually true, then I have plenty of questions to continue, but if it is not, then what is reflection, and how and why does it take place? How to convert an "object" into a function in JavaScript? JavaScript allows functions to be treated as objects--if you first define a variable as a function, you can subsequently add properties to that function.  How do you do the reverse, and add a function to an "object"?  This works:  var foo = function() { return 1; }; foo.baz = "qqqq";   At this point, foo() calls the function, and foo.baz has the value "qqqq".  However, if you do the property assignment part first, how do you subsequently assign a function to the variable?  var bar = { baz: "qqqq" };   What can I do now to arrange for bar.baz to have the value "qqqq" and bar() to call the function? "Unable to locate package sudo" when i try to install sudo on new Debian This is more of a panic question after reading reviews on Istanbul Atatürk Airport. They said it's messy and hard to navigate, therefore I'm asking questions here in name of my girlfriend who will need to transit through this airport.  My girlfriend (Canadian national) traveling from Toronto (YYZ) to Istanbul (IST) for a couple hours (~4 hrs, so transiting) in order to come to Pristina (PRN). I would like a quick guideline on how to pass through this airport seamlessly without facing any trouble or delay.  Her tickets are both with Turkish Airlines. She purchased it via a third party (Flighthub.ca). It's only one booking and it includes both flights in it.   Once my girlfriend departs, she's obviously required to follow the signs and go to the transit area. Once she's there, will she be required to present a ticket? Where does she get that ticket? Does she get it in YYZ or does she need to visit a counter in IST and get it? After she's got the proper ticket, what does she need to do exactly? Wait in line to have her passport checked? Will they also control her carryon?  After this step, does she simply go to the PRN flight gate and that's it?   We're simply worried about Istanbul Atatürk Airport because of the recent things that happened in Turkey (coup attempt and ISIS attack) and she doesn't wanna somehow end up locked up there. I've read that the airport is a mess lately and a lot of people will be there waiting in line. So, another question: Are 4 hours enough?  I would appreciate a step by step guideline on how she needs to navigate and what she needs to do in that airport to have a smooth experience without facing any delays. Also some misc information on Istanbul Atatürk Airport would be appreciated. I have a document divided into \part \chapter \section and \subsection. I have 3 parts and in each part I reset all the counters.  I want that, when I do a crossref to something that is in the 1st part, chapter 3 and section 5, that LaTeX prints something like I-3.5, but  I don't want that in the tableofcontents part that LaTeX prints the part number. For example, what I want is:     Part I      chapter 1 section 1.1 section 1.2      chapter 2   AND NOT     chapter I-1 section I-1.1 section I-1.2      chapter I-2   The command that I've tried   \renewcommand{\thechapter}{\thepart-\arabic{chapter}} \renewcommand{\thesection}{\thechapter.\arabic{section}}   does exactly what I've said  Can anyone help me? In the following sentence:     The city is populated by many people.   "many" can be replaced by something like "a great number of" (let us leave the perceived differences between the meanings of these two modifiers out of discussion):     The city is populated by a great number of people.   I understand that this replacement does not change the object "populating the city" from the original "people" to a "number", but rather shows the ability of expressions in the form "[numeral] of" to provide information about the quantity of nouns they modify.  Is this ability due to some special qualities of nouns such as "number", "quantity", "fraction", &amp;c., or is it just one usage of the preposition "of"?