I have a problem when trying to install Windows on my MacBook Pro 2015 using Bootcamp, I am using MacOS Mojave 10.14. I have replaced the original SSD for a different one, bigger M.2 NVMe PCI-e SSD fitted with adapter. Although everything seems to work just fine, Bootcamp seems to have troubles with the partitioning. When I run Bootcamp assistant and try to install Windows, the support software can not be saved to the disk. This is the error message I get:  Even though I have split my 1TB SSD in half. (512GB for Windows) I have turned Time Machine off, made sure there was only 1 volume on the disk before installation... I even tried to install Windows using USB, which almost worked, but crashed several times right before the installation finished. I have tried several ISO files. Nothing worked. Is the main problem the replaced SSD or can there be a different problem?
When clicking continue on the first Boot Camp screen,  I am presented with a dialog that displays:     The startup disk does not have enough space to be partitioned.   You must have at least 39 GB of free space available.     This is despite "About this Mac" reporting 271GB of free space:    And "Disk Utility" reporting 268GB of free space:    Searching online I found  which suggested it was the result of Time Machine which i recently enabled and suggests to run sudo tmutil thinlocalsnapshots / 999999999999 which I did, it ran sucessfully, and I restarted, yet to no avail.  What is the solution to this instance of Apple's poor engineering?  Running macOS High Sierra 10.13.4 (17E202)
Can Ubuntu 32-bit access 8GB RAM? I need to use a large software package (Xojo) that requires the 32-bit architecture to run. Try as I might, I can't seem to install the 32-bit libraries on my 64-bit installation of 15.04.  I don't have a problem running a 32-bit version of Ubuntu (I'm only using this computer for Xojo) but the computer has 8GB of RAM and I'd like to be able to use it all. Is there a way to utilise all 8GB of RAM with a 32-bit Ubuntu install? Does Ubuntu do this out of the box? I have some HTML menus, which I show completely when a user clicks on the head of these menus. I would like to hide these elements when the user clicks outside the menus' area.  Is something like this possible with jQuery?  $("#menuscontainer").clickOutsideThisElement(function() {     // Hide the menus }); Flagging "look at my answer pls" comments I've started to flag a few of these once I had seen one too many of them, but I'm not sure whether I'm doing the right thing.  This is an example of what I'm talking about (this comment is on the question, but sometimes on their own answers too):    Are they something that should be considered acceptable, and if not, are they bad enough to be "flaggable"? Lately, I've seen many search results in the form of https://stackoverflow.com/q/&lt;id&gt; and /a/&lt;id&gt; on Google. Why do I see these slug-less permalinks instead of the full URL?  For instance, a search for  gives  instead of :        For the record, it seems that Google has indexed  and . URL to create a new Google document What is the current URL to create a new Google Document please? Since Google last updated their Docs the old URL does not work. In the two following snippets, is the first one safe or must you do the second one?  By safe I mean is each thread guaranteed to call the method on the Foo from the same loop iteration in which the thread was created?  Or must you copy the reference to a new variable "local" to each iteration of the loop?  var threads = new List&lt;Thread&gt;(); foreach (Foo f in ListOfFoo) {           Thread thread = new Thread(() =&gt; f.DoSomething());     threads.Add(thread);     thread.Start(); }   -  var threads = new List&lt;Thread&gt;(); foreach (Foo f in ListOfFoo) {           Foo f2 = f;     Thread thread = new Thread(() =&gt; f2.DoSomething());     threads.Add(thread);     thread.Start(); }   Update: As pointed out in Jon Skeet's answer, this doesn't have anything specifically to do with threading. I have a table and I am always getting the data by ordering a column. In my case, I  order by datenum. However, the selection is so slow because of the ordering.  Is it possible to order the table after datenum. This column is defined as unique. If  defined as an index, would the selection will be faster? Removing all fraction symbols like “¼” and “½” from a string Polygon intersection using turf js I have given this code for intersection: function intersectPolyByPolyFC(poly,fcPoly){         var fgp=[];//variable for feature group         var bbPoly=turf.bboxPolygon(turf.bbox(poly));//polygon representation of the bounding box of a reference polygon         for(var i=0;i&lt;fcPoly.features.length;i++){//loop through the feature collection of polygons             var bb=turf.bboxPolygon(turf.bbox(fcPoly.features[i]));//variable bb represents each polygon for feature collection             if(turf.intersect(bbPoly,bb)){//condition to check if the two bounding boxes intersect                 var int= turf.intersect(poly,fcPoly.features[i]);                 if(int){                     int.properties=fcPoly.features[i].properties;                     fgp.push(int);                 }             }         }         return turf.featureCollection(fgp);     }  and the function definition I have given as var bufline=turf.buffer(line,0.05,{units:&quot;kilometers&quot;}); var intBUOWL= intersectPolyByPolyFC(bufline, lyrBUOWL.toGeoJSON()); L.geoJSON(intBUOWL,{style:{color:'red',weight:5}}).addTo(mymap);  When I am drawing a line over a polygon for intersection I am getting this error Uncaught TypeError: Cannot read property 'map' of undefined     at Object.t.collect (turf.min.js:1)     at summarizePointsByLine (buffer.html:440)     at NewClass.&lt;anonymous&gt; (buffer.html:155)     at NewClass.fire (Events.js:190)     at NewClass._fireCreatedEvent (leaflet.draw.js:8)     at NewClass._fireCreatedEvent (leaflet.draw.js:8)     at NewClass.completeShape (leaflet.draw.js:8)     at HTMLAnchorElement.handler (DomEvent.js:92)  How can I resolve this error? Pick a class that has access to the Extra Attack feature. For my example, I'll use my standby, Fighter McFighterson.  Let us say that McFighterson is 20th level, and possesses the Dual Wielder feat. He is currently holding a greatsword, and has two longswords accessible.  As a reminder, two weapon fighting says:     When you take the Attack action and attack with a light melee weapon that you're holding in one hand, you can use a bonus action to attack with a different light melee weapon that you're holding in the other hand...[snip]   And Dual Wielder:     [snip]... You can use two-weapon fighting even when the one handed melee weapons you are wielding aren’t light.   You can draw or stow two one-handed weapons when you would normally be able to draw or stow only one. ...[snip]   Can McFighterson make all of the attacks granted by Extra Attack (3, in this case) with his greatsword, drop the greatsword "for free", draw two longswords (as permitted by Dual Wielder), use his last attack to attack with one longsword, then two-weapon-fight with the second longsword?  Making the attack sequence look something like: Greatsword, Greatsword, Greatsword, Longsword1, Longsword2.    Related: Interpreting spline results Since arrays and hashes can only contain scalars in Perl, why do you have to use the $ to tell the interpreter that the value is a scalar when accessing array or hash elements? In other words, assuming you have an array @myarray and a hash %myhash, why do you need to do:  $x = $myarray[1]; $y = $myhash{'foo'};   instead of just doing :  $x = myarray[1]; $y = myhash{'foo'};   Why are the above ambiguous?   Wouldn't it be illegal Perl code if it was anything but a $ in that place? For example, aren't all of the following illegal in Perl?  @var[0]; @var{'key'}; %var[0]; %var{'key'}; This is a  about capacity planning for web sites. Related:      What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general. Unable to mount /dev/loop0 during install What are those zigzagged folded paper things you see in supernatural anime? In a lot of supernatural anime, like Shin Sekai Yori, or Tokyo Ravens there often appear these large ropes with folded paper things hanging from them:    As far as I can tell, they serve to seal or mark places that are sacred or in some way supernatural, like shinboku, or holy trees:    What are these folded paper things, and what purpose do they really serve? Selenium + FF : How to fix error, Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms? Is sun revolving around certain mass in space with reference to some other galaxy? Every planet and satellite revolves around their mother planet and about their own axis as we know. So they are compacted as a system. Then why not sun? What are Extension Methods? What are extension methods in .NET?    EDIT: I have posted a follow up question at Unsolved mystery - I was given a coworker's Ubuntu 12.04.1 LTS machine and set up my own (sudo/admin) user on there from the command line. I switched to my user (from his sudo/admin user) and confirmed everything was okay using the groups command and the /etc/passwd file looked great. After months of everything working perfectly, a power outage shut down the machine for the first time since I inherited it.  After booting, my new user disappeared. It's not in the /etc/passwd file and there is no entry in the /home directory. I created the user the same as I did before, and there were no errors to indicate that the user still existed.  What happened?  As requested, here is the output of   olduser@machine:~$ ls -lait /home  total 16  3408126 drwxr-xr-x 2 newuser newuser 4096 Nov 20 10:28 newuser  3407873 drwxr-xr-x 4 root root 4096 Nov 20 10:28 .  3407874 drwxr-xr-x 36 coworker coworker 4096 Nov 20 10:00 bvillupu  2 drwxr-xr-x 26 root root 4096 Oct 3 2012 ..  3408259 lrwxrwxrwx 1 root root 44 Aug 9 2012 .directory -&gt; /etc/kubuntu-default-settings/directory-home Orthogonal Projection onto the $ {L}_{\infty} $ Unit Ball What is the Orthogonal Projection onto the $ {\ell}_{\infty} $ Unit Ball?  Namely, given $ x \in {\mathbb{R}}^{n} $ what would be:  $$ {\mathcal{P}}_{ { \left\| \cdot \right\| }_{\infty} \leq 1 } \left( x \right) = \arg \min_{{ \left\| y \right\| }_{\infty} \leq 1} \left\{ {\left\| y - x \right\|}_{2}^{2} \right\} $$  I managed to get an answer using the . Yet I would be happy to see if someone can derive the answer directly.  Thank You.