I cannot update Ubuntu 16.04 due to the following error:   Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/   How should I proceed in trying to update?
Version: Ubuntu 16.04  I have used it some weeks, but now it gives me this message when I'm trying to install software and update or upgrade:  Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) /var/lib/apt/lists/ locked   followed by this:    .  and another error:  ** (appstreamcli:4560): WARNING **: Exception: Unable to get write lock on /var/cache/app-info/xapian/default: already locked   What should I do?
How does the Eco-Cooler air conditioner really work? describes a device for developing countries which apparently cools the air by 5 °C without electricity. According to , it works by lowering the pressure to drag in the ambient air. Wouldn't the ambient air be at the same temperature?  Does the constriction compress the air and temporarily increase the pressure and so temperature, which then dissipates heat because it is hotter than surroundings; then after passing the constriction, the pressure returns to almost ambient but the temperature drops to below ambient?  How does the Eco-Cooler air conditioner actually work, if at all? 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){         }   } To put it simple, there's a simple java swing app that consists of JFrame with some components in it. One of the components is a JPanel that is meant to be replaced by another JPanel on user action.  So, what's the correct way of doing such a thing? I've tried  panel = new CustomJPanelWithComponentsOnIt(); parentFrameJPanelBelongsTo.pack();   but this won't work. What would you suggest? Where should I put my bash scripts What is the "?" symbol in URL used for in php? Strange GET requests in logs I'm getting the following GET requests in my apache logs:  109.230.251.14 - - [29/Mar/2011:16:28:18 +0100] "GET http://209.191.92.114/config/pwtoken_get?login=jackmcphee232&amp;src=ygodgw&amp;passwd=e59e2240415e6f1aba3da72b8f189f4e&amp;challenge=9TbU_9yfZhKmzlHtK9X4OkQlesTH&amp;md5=1 HTTP/1.0" 404 1226 "-" "-"   Any idea what it could be and how is that possibly a get request? That IP address seems to point to Yahoo! I'm very confused. Notation: Why write the differential first? From reading answers here, I've noticed that some people write integrals as $\int dx \; f(x)$, while other people write them as $\int f(x)\;dx$.  I realize that there is no mathematical difference between the two notation forms, but was wondering why some people choose the first method over the second.  Is there some place in higher maths that it becomes beneficial to write the differential first?  (I, personally, have always used the second method, just because I was taught that way...) Let $p,q$ be primes, $p≠q$, then I have to show that $\mathbb{Q}(\sqrt{p},\sqrt[3]{q})= \mathbb{Q}(\sqrt{p}\cdot \sqrt[3]{q})$  So far I've tried a lot of things with minimal polynomials and bases, but I'm far from any argument that I find sufficient.  This is an example from my algebra course, first chapter about field extension. So far we know about basic definitions, minimal polynomials and their properties, algebraic elements and algebraic fields.  Could someone maybe give me a hint about how to proceed? Thanks a lot!!! How does Lockable Suspension work? I recently asked a question about . There  told me about the “blow off” feature. Now, I am curious about how the whole system works.   So, can anyone tell me about how a lockable front suspension works, together with features like “remote-lock” and “blow-off”. Why is the Earth so fat? I made a naive calculation of the height of Earth's equatorial bulge and found that it should be about 10km.  The true height is about 20km.  My question is: why is there this discrepancy?  The calculation I did was to imagine placing a ball down on the spinning Earth.  Wherever I place it, it shouldn't move.  The gravitational potential per unit mass of the ball is $hg$, with $h$ the height above the pole-to-center distance of the Earth (call that $R$) and $g$ gravitational acceleration.  Gravity wants to pull the ball towards the poles, away from the bulge.  It is balanced by the centrifugal force, which has a potential $-\omega^2R^2\sin^2\theta/2$ per unit mass, with $\omega$ Earth's angular velocity and $\theta$ the angle from the north pole.  This comes taking what in an inertial frame would be the ball's kinetic energy and making it a potential in the accelerating frame.  If the ball doesn't move, this potential must be constant, so  $$U = hg - \frac{(\omega R \sin\theta)^2}{2} = \textrm{const}$$  we might as well let the constant be zero and write  $$h = \frac{(\omega R \sin\theta)^2}{2g}$$  For the Earth,   $$R = 6.4*10^6m$$  $$\omega = \frac{2\pi}{24\ \textrm{hours}}$$  $$g = 9.8\ m/s^2$$  This gives 10.8 km when $\theta = \pi/2$, so the equatorial bulge should be roughly that large.    , the Earth is 42.72 km wider in diameter at the equator than pole-to-pole, meaning the bulge is about twice as large as I expected.  (Wikipedia cites diameter; I estimated radius.)  Where is the extra bulge coming from?  My simple calculation uses $g$ and $R$ as constants, but neither varies more than a percent or so.  It's true the Earth does not have uniform density, but it's not clear to me how this should affect the calculation, so long as the density distribution is still spherically-symmetric (or nearly so).  (Wikipedia also includes , without derivation, that agrees with mine.) 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. Memory Usage of SQL Server SQL Server instance on my server is using almost full memory available in my Physical Server. Say if i am having 8GB of RAM than SQL Server is using 7.8 GB of RAM from system. I also have read articles and also read many similar questions regarding same on this forum and i understand that memory is reserved and it is using memory.  But i have 2 same servers and 2 SQL Servers, why this is happening on a single SQL Instance not on other. Also when i run DBCC MemoryStatus than it is showing up...  VM Reserved 8282008 VM Committed 537936   so from this we know that SQL reserved whole 8GB memory, but why this VM Committed keeps increasing. What i understand is VM Committed is:      VM Committed: This value shows the overall amount of VAS that SQL Server has committed. VAS that is committed has been associated with physical memory.   So this is the memory SQL Server has committed (from this i understand that physical memory actually SQL Server is using at instance).  So like to know the reason behind this ever increasing VM Committed memory on my server and not on another. Thanks in Advance. Should I normalize word2vec's word vectors before using them? After training word vectors with word2vec, is it better to normalize them before using them for some downstream applications? I.e what are the pros/cons of normalizing them? Do users get notifications when @ was edited in I always wondered if users get notified about comments were their name was edited in afterwards.  Example:  I write a comment     See this link here   then I edit it to     @someuser: See this link here   Does the user get notified now? Output of Logistic Regression Prediction How to use early stopping properly for training deep neural network? How do we prove that this set is not manifold? Is there any Windows installer (wubi) for Ubuntu 14.04 LTS?  When I mount the .iso file with Daemon Tools and run wubi.exe, it just asks me if I want to reboot (I think that's useful only when the .iso  is burned on CD), so is there no "real" installation? As we know, whenever school ends, Harry is sent back to live with the Dursleys, where he suffers from abuse. He would much prefer to live with the Weasleys, and often visits there before returning to school. It stands to reason that they probably don't live that far from each other, since:   Both Harry and the Weasleys use Platform 9&frac34; to get to school Ron was able to take Harry to the Burrow in a flying car within a reasonable amount of time   It's heavily hinted at that the Weasleys are poor. However, it's not like Harry would live there permanently. Three months isn't that bad, not to mention he's pretty well-off from his parents' money. There would be little to no extra expense on the Weasleys.  The only explanation is that Dumbledore goes out of his way to ensure Harry lives with the Dursleys. If so, why is this? tikz declare function and babel french option