list index not increasing in python if same value appears again
Accessing the index in 'for' loops?
How do I recover the Facebook account password? I have forgotten my Facebook account password and also I have no access to the number which I use to log-in to Facebook account.   On this page (see the image below) they are asking for a government photo-ID to verify my account. The problem is that I don't have a driving license, voter ID card, passport etc. All I have is a school ID card but that hasn't worked for me. Is there any other way to recover my password? Series about proxy space battles via implanted computers in kids The premise of the story is that there are 2-3 main coalitions on Earth and they fight over resources in the edges of the solar system with spaceships that are controlled from Earth by kids with computers in their heads.  If I recall correctly:   The main character's name is Tom, he starts out by conning people at some sort of gambling arcade before he is found and recruited by the "army" The Pentagon in the US has a super tall tower built in the courtyard called The Spire where most of the three books take place. The reason they need kids for this has something to do with brain elasticity and putting computers in adults causes them to go mad. All the cadets are super dismissive about learning how to program their computer aside from one girl who is super good at it. The best fighters from each side of this conflict were something of superstars, but everyone else was kept completely anonymous for their protection. There were at least 3 books last I knew, released circa 2011-2014 The third book ends with Tom being the first astronaut to Mars. The first book had a green cover, the second was yellow, and the third was red. Though I might have the order wrong. Getting the ID of the element that fired an event Is there any way to get the ID of the element that fires an event?  I'm thinking something like:    $(document).ready(function() {   $("a").click(function() {     var test = caller.id;     alert(test.val());   }); }); &lt;script type="text/javascript" src="starterkit/jquery.js"&gt;&lt;/script&gt;  &lt;form class="item" id="aaa"&gt;   &lt;input class="title"&gt;&lt;/input&gt; &lt;/form&gt; &lt;form class="item" id="bbb"&gt;   &lt;input class="title"&gt;&lt;/input&gt; &lt;/form&gt;     Except of course that the var test should contain the id "aaa", if the event is fired from the first form, and "bbb", if the event is fired from the second form. How can I solve the following sequence Let we have the following sequence  $$y_n= \frac{1}{\sqrt{n^2+1}}+\frac{1}{\sqrt{n^2+2}}+\cdots+\frac{1}{\  \sqrt{n^2+n}}$$ find the limit of the sequence $y_n$ decide whether it is increasing or decreasing How to check if this limit exists: $$\lim_{(x,y)\rightarrow (0,0)}{ \frac{x^4y^4}{(x^2 + y^4)^3}}$$  Can I convert it to polar form ? $$\frac{r^8 (\cos^4 (\theta)\sin^4(\theta)}{r^6 (\cos^6 (\theta) + r^6 \sin^{12} (\theta))} = \frac{r^2}{\cos^6(\theta) + 0} = 0$$ Do the druid's uses of the Wild Shape feature recharge while still in Wild Shape?  Say a 10th-level Circle of the Moon Druid spends two uses of Wild Shape to transform into an Air Elemental, whose form she can stay in for the next 5 hours. After 2 hours, she takes a short rest, but does not drop the Wild Shape. She has another couple of hours to keep the Air Elemental form.  My main concern: Does she get her two uses of Wild Shape back with that short rest? Or, does she have to drop the Air Elemental form first before taking the short rest to recharge Wild Shape? I'm trying to do a number checker in imessage. We all know that there is no such api, so I'm trying to use the tools at hand. The main took with past issues on this site on this topic.  I made a loop that inserts a number into a string, and by the color of the number (blue - registered, red - missing), using the standard utility Digital Colors Meter determines the color of the number. Then, depending on the color, it either adds a variable with a number from the initial txt file to the new one, or starts the script from the beginning. At least it should be.  But something is going wrong in loop. It checks the color, inserts numbers, everything is fine, but apparently the wrong condition, apparently the wrong data types. It inserts different numbers into the scatter. Some will insert, some will not, regardless of the initial condition. What could be the reason? Where is the error?      tell application "Digital Color Meter" to activate     tell application "System Events"         tell process "Digital Color Meter"             click menu item 1 of menu 1 of menu bar item 4 of menu bar 1         end tell         do shell script "/usr/bin/python -c \"import objc;bndl = objc.loadBundle('CoreGraphics', globals(), '/System/Library/Frameworks/ApplicationServices.framework');objc.loadBundleFunctions(bndl, globals(), [('CGWarpMouseCursorPosition', 'v{CGPoint=dd}')]);CGWarpMouseCursorPosition((" &amp; 1002 &amp; "," &amp; 222 &amp; "));\""         set rgbColors to words of (the clipboard)     end tell     if rgbColors is equal to {"77", "39", "38"} then         exit repeat     else         do shell script "echo " &amp; quoted form of n &amp; " &gt;&gt; /Users/oneone/Desktop/base2.txt"     end if   Only the color check condition for Digital Color Meter is presented here.  Through the do shell, the color is read at the mouse position and the variable is added to the new file. Is Dyson Sphere a stable construction? Suppose that a star is encompassed by a . Do we need a position control system for the Dyson Sphere to keep its origin always aligned with the center of the star? Will it stay aligned itself and automatically neutralize small perturbational forces? Or will a small perturbation remove it out of the orbit of the star, so that it will be eventually destroyed and swallowed by the star? Is there a way to crack the password on an Excel VBA Project? How do you split a list into evenly sized chunks? I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question: Although Ubuntu 16.04 release notes mention that:  The default VIM package has been built against python3 instead of python2.  Yet after I installed vim with the following command:  sudo apt-get install vim   And checked:  vim --version   It showed:  -python -python3   Is it a bug? How do I get vim with Python support? Are there ways to determine if a wall is load bearing? Other than looking up blue prints, which many homeowners may not have, are there ways to determine if a wall is load bearing?  Methods I can think of might include:   Going up in the attic to check if ceiling trusses run perpendicular to the wall If the wall is an exterior wall   Any others? How to launch Ubuntu in Windows Subsystem for Linux in Windows 10 S? Is this mold? Black? White? How do I turn off some formats in GeoServer's WMS? Reinstall Windows 8 on a Windows 8 based system with embedded key I'm a computer technician and we started selling few Windows 8 machine. We saw the new COA label does not show the key and after reading a little bit online, realized those systems came with the key emmebeded in the eUFI BIOS.   My question is : How do I reinstall Windows 8 if the hard drive is crashed? I kind of get that you can install it with a media and the media should activate the licence embedded. What is the media required? Is a retail DVD is able to do the work or do I need a system builder kit? I understand the manufacturer is reponsible to provide media  or replace the failed drive under the warranty but what will happen when warranty expire? I'll have to sell a full windows 8 licence with a key?  Thanks I keep getting the message MobileMe Service Stopped Working each time I open Outlook 2007. I have to click on the Close Program button in the error message twice each time it shows up while Outlook is trying to load up. Then I am able to use Outlook. I never use my iCloud account and would like to know how I can deactivate iCloud so I do not have issues with my Outlook. Distance between two hyperplanes I have two parallel hyper planes $$a^Tx=b_1,a^Tx=b_2$$ where $a \in \mathbb{R}^n, x \in \mathbb{R}^n ,b \in \mathbb{R}$ and I want to find the distance between the two. I have read that the distance between the two hyperplanes is also the distance between the two points $x_1$ and $x_2$ where the hyperplane intersects the line through the origin and parallel to the normal vector $\vec a$. These points are given by $$x_1=\frac{b_1}{\|a\|^2_2}a$$ and $$x_2=\frac{b_2}{\|a\|^2_2}a$$ Then the distance is $|x_1-x_2|$ but I don't really understand how we got $x_1$ and $x_2$. I can think of three general ways of explaining why the universe contains more matter than antimatter:  (1) Near the Planck time, the universe had zero baryon asymmetry, but at some later time, determined by some GUT energy scale, the  were satisfied, and the baryon asymmetry became nonzero.  (2) Nonconservation of baryon number occurs only at Planckian energies. Near the Planck time, the baryon asymmetry evolved from zero to some nonzero value.  (3) The Sakharov conditions have never been satisfied. The baryon asymmetry has always been nonzero, and has simply scaled as expected. (Apparently one  $\Delta n=n_B-n_\bar{B}\propto s$, where $n$ is number density and $s$ is entropy density).  It seems like most theorists are interested in #1, but is there any reason why 2 and 3 aren't possible?  2 seems pretty reasonable, since for the reasons given in , we have good reasons to think that baryon number is not conserved under Planckian conditions.  3 also seems reasonable to me, since even if baryon number is nonconserved at Planckian energies, that's only one of the three Sakharov conditions. I don't see any obvious fine-tuning objections to #3, since the scaling of baryon asymmetry with cosmological expansion isn't particularly drastic (not an exponential decay or anything). Is there something unphysical about maintaining $\Delta n\propto s$ all the way back to the Planckian era?   Some people might object to #3 on aesthetic grounds, since we "expect" the initial conditions of the universe to be symmetric, but that seems weak to me. After all, we don't object aesthetically to the fact that homogeneity was an imperfect symmetry of the early universe, and we even accept that the early universe was in a thermodynamically unlikely state. I opened Cairo-dock in my terminal with: open cairo-dock and that worked but if I close the terminal it goes with it. How can I keep it open regardless of the terminal?