I followed a guide to install ubuntu and put 20gb in '/' and the rest (150gb) in '/home'. I realized that everything I install goes to '/'. I am running out of space after installing Matlab, PyCharm, docker and still need to install many other stuffs. I don't know wtf '/home' is used for then. What are the dangers of allocating all my space to '/' ? Eg 200gb to '/' and 1 gb to '/home' for god knows what.  How can I make the Ubuntu installation / partition similar to Windows so I don't have to worry about partitions and shit EG: like a C drive for every effin thing ? I don't care if I lose everything if I do a re-install or upgrade Ubunutu.
i install ubuntu and followed a guide to put 20gb in '/' and the rest (150gb) in '/home'. Now i just found out that a lot of the things installed in ubuntu usually goes to '/' instead of '/home'. I have a lot more things to install.  So what is the point of '/home' ? How do I fix this ? Should I transfer 150gb from '/home' to / ?  Filesystem      Size  Used Avail Use% Mounted on udev            7.8G     0  7.8G   0% /dev tmpfs           1.6G  9.5M  1.6G   1% /run /dev/sda6        19G   16G  1.8G  91% / tmpfs           7.8G  676K  7.8G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup /dev/sda2        96M   29M   68M  31% /boot/efi /dev/sda8       159G  1.1G  150G   1% /home tmpfs           1.6G   56K  1.6G   1% /run/user/1000   what is /boot ? Its not '/' or '/home'
I was wondering if anybody knew a command that would allow me to open a Nautilus (if that's the right name for the Ubuntu graphic/window explorer) window from the command line at the current directory that the user is at.  So, if I open a command line, and type:  cd /home/myUser/some/long/path/to/a/directory   Then, I'd like to be able to issue some command:  nautilus open-sesame   And have a graphic window opened to /home/myUser/some/long/path/to/a/directory. Is this even possible? How do I mount a partition with UFS filesystem (FreeNAS) in Ubuntu 11.10?  I'm a total Ubuntu newbie and just switched from FreeNAS.  There should be ll the info I need I guess, but if anyone would help me get going i'll by glad =) I am trying to find duplicate accounts in the system and trying to merge them based on our filter criteria using apex. The issue is I am hitting the governor limit of 150 DML statements while doing this.  We will have to put the merge statement inside the loop as we need the parent and child as the parameters in the merge statement. I don't think we can bulkify Merge like other DML statements due to the above reason. I am not sure if there is any better way to do it and avoid hitting governor limits.  Any help in this regard would be greatly appreciated.  Code that I have tried is included below  global class LoyaltyAccountBatch implements Database.batchable&lt;sObject&gt;{        global Database.QueryLocator start(Database.batchableContext info){           String query;         query = ('SELECT  Id FROM  LoginHistory LIMIT 1');          return Database.getQueryLocator(query);    }       global void execute(Database.batchableContext info, List&lt;LoginHistory&gt; scope){             // Get those records based on the IDs         List&lt;Account&gt; templst1 = [SELECT Id,UniqID from account where createddate = LAST_N_DAYS:4 and UniqID &lt;&gt; ''];             system.debug('templist is '+templst1);               Set&lt;String&gt; insertedRecords = new Set&lt;String&gt;() ;         for (Account a : templst1)  {         insertedRecords.add(a.UniqID);     }                 List&lt;Account&gt; templst = [SELECT Id,UniqID from account where NewUniqID IN : insertedRecords                                   order by NewUniqID,UniqID asc];         // Process records          for(integer i=0;i+1&lt;templst.size();i++)          {             if(templst[i].UniqID &lt;  templst[i+1].UniqID)                     {                 system.debug('ids are '+templst[i].UniqID+'--&gt;'+templst[i+1].UniqID);                 String str = '1'+templst[i].UniqID.substring(1,templst[i].UniqID.length());                 String str1 = '1'+templst[i+1].UniqID.substring(1,templst[i+1].UniqID.length());                 system.debug('str is'+str);                 system.debug('str1 is'+str1);                 if(str.equals(str1))                 {                     Merge templst[i+1] templst[i];                     system.debug('value of i is'+i);                 }              }         }        }          global void finish(Database.batchableContext info){         }   } I bet the automatic response to my question would be "Bell's theorem" and of course I am not disputing Bell's proof. I am however uncertain of one of his assumptions.  The so called "no conspiracy" assumption states that we somehow posses this magical thing called free will which makes us able to break free from the causal chain of events that make us measure the $y$-axis instead of the $x$-axis and so on in experiments. Obviously this makes little sense once reviewed under the light of logic. What this naturally implies is that, if a theory is fully deterministic, it is instantly super-deterministic.  Simon Kochen and John Conway published a theorem in 2009, , which simply-put states: either everything is deterministic (super-deterministic) or every particle has free will.  Among the few who accept this to the fullest extent is Gerard 't Hooft. He has proposed that what we call sub-atomic particles are really just templates and that there is a realm beneath the quantum where the true fabric of reality is "hidden". By accepting determinism he escapes Bell's theorem (due to not having to accept the "no conspiracy" assumption) and can construct a local, deterministic and realist hypothesis of reality. In Gerard 't Hooft's model there is cellular automata somewhere near the Planck scale which gives rise to the "emergent quantum mechanics".  This means that there exist no superpositions in objective reality, the cat is always either dead or alive, no collapse of wave functions, no branching universes, non-locality or retro-causality.  The big question for me is basically: Why do people have such a hard time accepting determinism? Some will object and say "oh but it's SUPER-determinism", but that makes no sense whatsoever, either everything is determined (determinism) or only somethings are (quasi-determinism). By accepting it we escape Bell's theorem. Bell himself was well aware of this and mentioned it a few times in interviews in the 80's.  I know some are concerned that if we accept complete determinism we can no longer do science because it's all a HUGE CONSPIRACY. Gerard 't Hooft has answered critics who bring up this here: , section 6.  Additionally, another author who has taken a deeper look into the worries of "conspiracies" in QM interpretations is Peter J. Lewis in his paper  (also ).  So to all of you who dismiss local hidden variables I ask: Why? Why is the word 'number' abbreviated to 'No.' in UK English and '#' in American English? Why the disparity? And why use 'No.'? Is it from the French?  And the hash or pound sign seems a weird choice too, is there a history or any reason involved? Restricting T to string and int? I have built myself a generic collection class which is defined like this.   public class StatisticItemHits&lt;T&gt;{...}   This class can be used with int and string values only. However this  public class StatisticItemHits&lt;T&gt; where T : string, int {...}   won't compile. What am I doing wrong? What to do about a 2-year-old who won't sleep without someone else in the room? My 2-year-old son won't fall asleep without having someone in his room with him. He doesn't want to be touched or held. He just wants you to sit in the chair. And after he does go to sleep he wakes up about 4 to 5 hours later, crying and screaming and is out of his bed and by the door. I go to him and give him a hug and put him right back in his bed. If I walk out he screams and won't go back to sleep for the rest of the night. If I stay he goes right back to sleep. But he wakes right back up when I walk out of his room.   I'm at a loss as to what to do. I've tried lots of stuff and nothing seems to work. It's almost as if he is having separation anxiety. I dont know what to do. Please help. Use Unity API from another Thread or call a function in the main Thread Materials for learning TikZ I feel intimidated in learning TikZ. I was wondering if there are some nice materials (or just your replies) at different level:   for providing big picture, which is important to beginners to not lose direction during learning. for comprehensive reference.   Examples are important, but only examples are not always clear for understanding the big picture and organization. Importing only certain rows between spreadsheet documents Document 1 has many rows of data.  How do I import into document 2 only those rows that have a certain value in column C? Why is it so difficult to pull an immersed mug out of the water? How does one change the Attribute table view on QGIS 3? An initial answer says to use the Switch to Table view button but I can't seem to find this button. There was a post this morning asking about how many people disable JavaScript. Then I began to wonder what techniques might be used to determine if the user has it disabled.   Does anyone know of some short/simple ways to detect if JavaScript is disabled? My intention is to give a warning that the site is not able to function properly without the browser having JS enabled.   Eventually I would want to redirect them to content that is able to work in the absence of JS, but I need this detection as a placeholder to start. I'm having trouble writing a regular expression that matches valid IPv6 addresses, including those in their compressed form (with :: or leading zeros omitted from each byte pair).    Can someone suggest a regular expression that would fulfill the requirement?  I'm considering expanding each byte pair and matching the result with a simpler regex. Breaking of diffeomorphism invariance after fixing a background metric I need to create an edit component for an SObject from which I do not know the objectApiName at design time. I only know the Id of the SObject. objectApiName could be any valid SObject-name.  Now I want to use lightning:inputField   This needs to be wrapped by lightning:recordEditForm  In case I hardcode it to "Order", provide a vaild Order Id and let the controller load the order and assign it to the Parent-attribute, this works flawlessly:  &lt;aura:attribute name="recordId" type="String" default="" /&gt; &lt;aura:attribute name="Parent" type="SObject" default="{}" /&gt; &lt;aura:attribute name="ParentType" type="String" default="" /&gt; &lt;b&gt;{!v.ParentType}({!v.recordId})&lt;/b&gt; &lt;br/&gt; &lt;lightning:recordEditForm recordId="{!v.recordId}"  objectApiName="Order"&gt;     &lt;lightning:messages /&gt;     &lt;lightning:inputField fieldName="Name" /&gt;     &lt;lightning:button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update" /&gt; &lt;/lightning:recordEditForm&gt;   It looks like below and even the Update-button works as expected and saves the record:    But what I really want is  &lt;lightning:recordEditForm recordId="{!v.recordId}"  objectApiName="{!v.ParentType}"&gt;   Note the {!v.ParentType} instead of the hardcoded "Order"  As an great unfortunate, this only collapses to that error-popup    In the screenshot you see, that the ParentType is correctly bound to v.ParentType (right above the button) which a I also verify in the console  Suspicion  I set the ParentType-attribute as a result of APEX call (asynchronously). This seems to be too late for the lightning:recordEditForm. It tries to render with objectApiName at a time where it is still blank, hence it crashes during initialization...  Question  Is there a clean way to avoid this and get something to fly with an dynamic objectApiName?  Trying to use $A.createComponents()  As @sfdcfox suggested I jump on the $A.createComponents() which turned indeed out to be tricky, exactly as sfdcfox has predicted. Im following this .  Added a button to the markup    Added a handler to the js-controller:  makeEdit : function(cmp, evt, hlp) {      console.log('ParentId :: ', cmp.get("v.ParentId") );      console.log('ParentType :: ', cmp.get("v.ParentType") );      $A.createComponents([             ["lightning:recordEditForm",{                 "recordId"          : cmp.get("v.ParentId"),                 "objectApiName"     : cmp.get("v.ParentType"),             }],             ["lightning:inputField",{                 "fieldName" : "Name"             }]         ]         ,function(components, status, errorMessage){             if (status === "SUCCESS") {                 var wrapper         = components[0];                 var inner           = components[1];                 wrapper.set("v.body", inner);             }             else if (status === "INCOMPLETE") {                 console.log("No response from server or client is offline.")                 // Show offline error             }             else if (status === "ERROR") {                 console.log("Error: " + errorMessage);                 // Show error message             }         }     ); },   Now I can press the button - but nothing - I repeat: n o t h i n g - gets rendered at all. What is my fault here? Note that the console.log get output and the attribute are holding good values. If $\sum_{n=1}^{\infty} a_n^{2}$ converges, then so does $\sum_{n=1}^{\infty} \frac {a_n}{n}$ Let $a_1,a_2,a_3,\ldots$ be reals. Prove that if $\sum_{n=1}^{\infty} a_n^{2}$ converges, then so does $\sum_{n=1}^{\infty} \frac {a_n}{n}$.   For this I have shown the case for when $ a_n^{2} \le\frac {|a_n|}{n}$ $\Rightarrow$ $ |a_n|\le\frac {1}{n}$ $\Rightarrow$ $\frac {|a_n|}{n} \le \frac{1}{n^{2}}$ and we know that $\sum_{n=1}^{\infty} \frac {1}{n^{2}}$ converges and hence $\sum_{n=1}^{\infty}\frac {a_n}{n}$ converges by the comparison test. Now considering $ a_n^{2} \ge\frac {|a_n|}{n}$ $\Rightarrow$ $\frac {|a_n|}{n} \le a_n^{2}$ $\rightarrow$ combining the two cases for any n we have: $\frac {|a_n|}{n}\le\frac{1}{n^{2}}+a_n^{2}$ Hence using the comparion test again we know that $\sum_{n=1}^{\infty} a_n^{2}$ converges and $\sum_{n=1}^{\infty} \frac {1}{n^{2}}$ converges hence the sum converges so we can conclude that $\sum_{n=1}^{\infty} \frac {a_n}{n}$ is absoluetly convergent $\Rightarrow$ convergent.  Not to sure if this is correct, any help would be much appreciated, many thanks. How to limit execution time of a function call? Is there a route that would allow travel to the US from the UK or Schengen area, given the US travel ban? I'm a European citizen living in the US on a work visa. Due to some unfortunate circumstances, I need to urgently visit my home country. However I would like to get back to the US after my visit is complete. Flying from the US to Europe is not a problem as there are still daily flights between some city pairs. However going back could be tricky, as  anyone who has been in the Schengen area in the past 14 days from re-entering the country.   Is there a flight route that would let me from Europe to some country, stay there for 14 days and then fly to the US? Canada is out, as they've banned international visitors. Mexico seems to keep their border open, but I  any direct European flights from their airports. Almost every other country either suspended flights or doesn't allow foreign nationals to enter. Suppose $ T \subset \mathbb{C} $. Show that the corresponding set $ S \subset \Sigma $ is  a. a circle if $ T $ is a circle. b. a circle minus (0, 0, 1) if $ T $ is a line.  Here we are defining $ \Sigma $ to be the Riemann sphere, given by the set: $$ \Sigma = \left \{(\xi, \eta, \zeta) : \xi^{2} + \eta^{2} + (\zeta - \frac{1}{2})^{2} = \frac{1}{4} \right \} $$  To take a point from $ \mathbb{C} $ to $ \Sigma $ we can use the following:  $$ \xi = \frac{x}{x^{2} + y^{2} + 1}; \eta = \frac{y}{x^{2} + y^{2} + 1}; \zeta = \frac{x^{2} + y^{2}}{x^{2} + y^{2} + 1} $$  We define a circle on $ \Sigma $ to be the intersection of a plane of the form $ A\xi + B\eta + C\zeta = D $ with $ \Sigma $. We also know the converse of this problem is true, that the intersection above yeilds a set in $ \mathbb{C} $ with the following property:  $ (C - D)(x^{2} + y^{2}) + Ax + By = D $. As you can see, when C = D, then an equation for a line is yeilded, otherwise it is a circle.   I really am at a  loss about how to solve this problem. The only thing I can think to do is to pick 3 points on a circle or radius $ r $ with center $ z_{0} $, use these points to find two vectors in $ \Sigma $, take their cross product to get a normal vector, use this normal vector to get a plane. Once I have the plane in form $ A\xi + B\eta + C\zeta = D $ then I could prove that the circle I had chosen corresponds exactly with $ (C - D)(x^{2} + y^{2}) + Ax + By = D $. Is there not an easier, less computation way to do this?