Traversing a "list" tree and get the type(item) list with same structure in python?
Iterating through list of list in Python
Do newer laptop batteries still need to be drained before recharging? 10 years ago when I was doing hardware support it was best practice to fully drain a laptop battery prior to recharging in order to maximize its life.  Is this still the case or can a battery now be recharged at any point without worrying about shortening the lifespan? For my MAC laptop, I only have 250GB and out of this 250GB MAC is taking up 129GB in the other section. I looked everywhere to the best of my knowledge. Please note my home directories is only 45GB. Can you somehow please help me? Windows 10 default programs keep changing Since the fall update last month, Windows 10 automatically keeps changing the default apps for certain types (mostly browser,pdf,mp3,jpg). I have tried changing them back from the Settings app as well as the Control Panel.  I have observed that this happens mostly while unzipping files using WinZip. Windows changes the default programs back to Microsoft recommended programs such as Edge, Photos, Groove etc.  Is there a way to restrict this from happening? Has anybody else encountered a similar situation? I couldn't find similar question anywhere so I'm asking this here. Keyboard language keeps changing in Windows 10 So I recently did a clean install of Windows 10 English. I configured it to have English UI language but Norwegian keyboard. I have several problems with that setup:   The keyboard language keeps switching to English constantly I can't see the language bar nor the language toggle popup when I swap:     I have bound the Norwegian keyboard layout to Shift+Alt+0 and that works, but it's annoying to have to do that every 5 minutes. Also I find it weird that I can't see the language bar neither on the desktop nor on the toolbar.  Anyone have any idea of what might be wrong?  Here are some screenshots of my settings:          P.S. The only time I see the language toggle popup is actually when I'm logged out in the lock screen and press Win+Space. Nothing happens if I do that after being logged in. This question is similar to      and    except that I am concerned with smooth manifolds. If $M$ is a smooth manifold and $V$ and $W$ are (smooth, real) vector bundles on $M$, are there reasonable conditions that ensure that the map $\Gamma(M,V)\otimes_{\mathscr{O}_M(M)}\Gamma(M,W)\rightarrow\Gamma(M,V\otimes W)$ is an isomorphism? Equivalently, are there any reasonable conditions under which taking global sections of finite locally free $\mathscr{O}_M$-modules commutes with tensor product?  I don't really know much smooth manifold theory, and my intuition is mostly derived from algebraic geometry, where the analogous question, as is indicated in the questions I linked to, is not a simple one, even for invertible sheaves. I'd always assumed the situation for smooth manifolds would be the same, but I was just looking at the Wikipedia page on vector-valued differential forms, and it seems (unless I'm misunderstanding which is certainly possible) to claim there that for $V$ an arbitrary vector bundle and $W$ the $p$-th exterior power of the cotangent bundle, $p\geq 1$, the answer to my question is "yes," with the justification being that "$\Gamma(M,-)$ is a monoidal functor." Looking at the definition of a monoidal functor, it seems to me that all this implies is that there is a map from the tensor product of the global sections to the global sections of the tensor product (which is clear from the definitions) and not that this map is an isomorphism. Dynamic Server Name in SQL Statements (from clause) Update: Failed to lock /var/cache/apt/archives/lock I am running the upgrade(12.10 to 13.04) through terminal and it keeps getting stuck at this:  Failed to lock /var/cache/apt/archives/lock   What do I do? I have root access. I have no idea what else to try other than a clean install.  Checking package manager Reading package lists... Done     Building dependency tree           Reading state information... Done Building data structures... Done   Calculating the changes Calculating the changes  Do you want to start the upgrade?   3 packages are going to be removed. 155 new packages are going to be  installed. 1204 packages are going to be upgraded.   You have to download a total of 595 M. This download will take about  1 hour 15 minutes with a 1Mbit DSL connection and about 23 hours with  a 56k modem.   Fetching and installing the upgrade can take several hours. Once the  download has finished, the process cannot be canceled.    Continue [yN]  Details [d]y  Fetching  Could not download the upgrades   The upgrade has aborted. Please check your Internet connection or  installation media and try again. All files downloaded so far have  been kept.   Failed to lock /var/cache/apt/archives/lock    Restoring original system state  Aborting Reading package lists... Done     Building dependency tree           Reading state information... Done Building data structures... Done  root@chaitanya-XPS-Ubuntu:~# For some reason I can't unhide my objects anymore in this file. Is it a bug? Prove that $ S=\{0\}\cup\left(\bigcup_{n=0}^{\infty} \{\frac{1}{n}\}\right)$ is a compact set in $\mathbb{R}$, but $\bigcup_{n=0}^{\infty} \{\frac{1}{n}\}$ is not a compact set.   (Can we use definition of compact set for this problem? ) setting up subdomain on ubuntu server How can I delete a (null) app in usage? In my usage list(settings>general>storage &amp; iCloud usage>manage storage), there is an app that registers as (null) with no icon, a version number that doesn't match anything I've previously downloaded, and it's taking up storage space. I first noticed it about a week or two ago. And no, I can't download recent apps to find the one that it is, because I downloaded multiple apps recently, and didn't notice the (null) app until my storage was critically low and I was looking to delete something. I am running iOS 9.2.1 on an iPhone 5C. In a question related to introductory Galois theory, I was asked to given an example of a tower of fields $F \subset K \subset E$ such that $E$ is a splitting field for some polynomial $f(x) \in F[x]$, but that $K$ need not be a splitting field. The example that comes to mind for me is $\mathbb Q \subset \mathbb Q(\sqrt[3]{2}) \subset \mathbb Q(\omega_3, \sqrt[3]{2})$.  So I know that the minimal polynomial for $\mathbb Q(\omega_3, \sqrt[3]{2})$ over $\mathbb Q$ is $x^3-2$. This polynomial does not split in the intermediate field $\mathbb Q(\sqrt[3]{2})$.  I wanted to make sure that I'm justifying that this intermediate field is not a splitting field correctly. Now I may be confused about the books terminology. When we say something is not a splitting field, we always have to refer to a specific polynomial correct? I've read a term called a normal extension which I think refers to one in which every polynomial splits, but my book doesn't mention these.   If splitting field means with respect to the polynomial $x^3-2$, then I've already demonstrated that $\mathbb Q(\sqrt[3]{2})$ is not a splitting field. Also, it couldn't be a normal extension either because that polynomial doesn't split.  Does it sound like I'm understanding this correctly or are there some subtleties I might be missing? Topic models and word co-occurrence methods Does anyone know any example that invalidates the following affirmation:     If a morphism $f:A\to A$ induces the identity $\hat f:\operatorname{Spec} \left( A \right) \to \operatorname{Spec} \left( A \right)$ then $f = \operatorname{id} _A $. Suppose $f,g$: $\Bbb R$ → $\Bbb R$ are continuous functions such that $f(r) = g(r)$ for all $r$ in $\Bbb Q$. That is to say, $f$ and $g$ are equal on the rational numbers.   Prove that  $f(x) = g(x)$  for all $x$ in $\Bbb R$ Profile avatar lost on several sites after profile edit (Gravatar replaced with Identicon) I have had the same network-wide profile avatar for many years; it's a custom image which I installed nework-wide soon after I registered for Stack Overflow back in 2011. I still see that image e.g. on  and  but not, for instance, on this site, or e.g. on   (The example originally linked to my Unix &amp; Linux profile instead of Super User but I experimentally changed my profile back to the gravatar one there.)  I routinely update my profile presentation text every few months, and did so again a few days ago. Comments below seem to indicate that others who recently edited their profile are experiencing the same problem.  My preferred avatar is a Gravatar which is connected to my email address, which has always been the same (MD5 091f411d57db5be8298e057a32e5ad72). The replacement seems to be a generic identicon with a different MD5. I don't recall seeing this identicon as an option in my profile before:    You'll notice that the gravatar is still visible as an option, but I can find no way to replace it on all sites in one go. I switched back to the gravatar one on Unix &amp; Linux and noticed that the help next to the "Save" button says     Your profile will be updated on all public communities.   but alas, that did not in fact happen. Do I really have to go over 170+ member sites and manually select my gravatar on each? Adding dynamic text to layout from attribute table with Data Driven Pages I was trying to figure out how to use dynamic text from an attribute table in a collection of Data Driven Pages in ArcGIS 10.   I've looked in the help files, but can't find anything on dynamic text from attribute tables. An explanation of Hawking Radiation Could someone please provide an explanation for the origin of ? (Ideally someone who I have been speaking with on the h-bar)  Any advanced maths beyond basic calculus will most probably leave me at a loss, though I do not mind a challenge! Please assume little prior knowledge, as over the past few days I have discovered that much of my understanding surrounding the process as virtual particle pairs is completely wrong. Using Xpath With Default Namespace in C# I've got an XML document with a default namespace. I'm using a XPathNavigator to select a set of nodes using Xpath as follows:     XmlElement myXML = ...;   XPathNavigator navigator = myXML.CreateNavigator(); XPathNodeIterator result = navigator.Select("/outerelement/innerelement");   I am not getting any results back: I'm assuming this is because I am not specifying the namespace. How can I include the namespace in my select? When should I use GET or POST method? What's the difference between them?