See this picture:  I Saw this picture in wikipedia article:  I following marvel universe since childhood, but never came across this PHASE thing.  actually what does it mean?
Or "Why is Ant-Man the last movie of Phase 2, rather than Avengers 2?"  The Marvel Cinematic Universe is the series of movies involving characters from Marvel comics and produced by Marvel Studio/Disney Studio. The series of movies is decomposed into phases, that are different steps in the studios' production plan.   Phase 1, entitled Avengers Assembled, is composed of all movies from Iron Man (2008) to The Avengers (2012). This phase relates the origins of each Avenger and how these mighty superheroes came to fight as a team.   The narrative purpose of Phase 2 is less clear to me. At first, I thought it was about Thanos' story arc but Thanos doesn't seem to appear in Ant-Man, the last movie of the Phase 2. Actually, Thanos will most likely be the main antagonist of Infinity War, which is a part of Phase 3.   Therefore, what story arc will be concluded at the end of Ant-Man? I believe it can be answered before the movie is released, as the purpose of Phase 1 was clear before the release of The Avengers. Marvel Studio may also have commented about the organization of the movies. In other words, what narrative elements unify the movie of Phase 2?
Normalization of basis vectors with a continuous index? I have an infinite basis which associates with each point, $x$, on the $x$-axis, a basis vector $|x\rangle$ such that the matrix of $|x\rangle$ is full of zeroes and a one by the $x^{\mathrm{th}}$ element. The book on Quantum Mechanics by Shankar says that the inner product between a basis vector and itself is not one, why not? Why can't these basis vectors be normalized to one, only to the ? Trigger a php file on every post or page if a condition is met I was wondering if we can trigger a PHP file on every WordPress post or page if a certain condition is met. Let me detail what I want.   Can we write a simple PHP script that will be automatically loaded on every WP post and page. Once loaded, the script should scan the HTML and if it finds a specific DIV tag with the ID myID it should trigger another PHP file (let's say script.php). Once the target PHP file has been triggered or executed, the target PHP file (script.php) should be able to automatically fetch the URL of the post or page that triggered the file and store it in a variable.   Any ideas?? Is posting a very long quote OK for an answer? I just found  to a question on SO. While it provides a source for the (very long) quote, I do not like the fact that the answerer just posted the quote, without adding anything. Maybe add highlights/emphasis or remove uninteresting passages. Or skip the quote altogether and write a short summary. I feel, in the current form, this should have been a comment that just links to the original article.  Am I too pedantic? Should I flag this as not an answer? Should I downvote it? What do you think about such answers? After reading  and reading the comments on the page, one person was wondering if it would be possible to use the Physical Device Object Names of other hardware such as the microphone to find out the names of processes using that device.  I tried the same approach, but so far it only seems to work for the webcam. Is there any other way I could get this to work in ?      UPDATE:  The Lifehacker post was about finding out which Windows process is currently using your webcam.  is how they went about doing it:        Start Device Manager (WIN+R &rarr; "devmgmt.msc" &rarr; OK)   Find your webcam among the list of devices (check under Imaging Devices)   Open the properties window of the device and switch to the Details tab  (Right click &rarr; Properties &rarr; Details)   In the dropdown menu, select Physical Device Object Name and copy the string(Right click &rarr; Copy)   Download    Make sure you have opened Process Explorer in Administrator Mode(File &rarr; Show Details for All Processes)   Hit CTRL+F and enter the string you copied earlier(it should be something like \Device\000000XX)   Hit the Search button and you should see a list of processes using the webcam(if there are any) How to ask great questions As programmers we are daily faced with having to get requirements, test things out, etc.  It's practically half our job to know what questions to ask, and how to ask them to get the most concise, actionable answer possible, especially from reluctant users/managers/customers/etc.  How do you ask questions that get answers? Can we re-request features that were declined a sufficient while ago? How does a calculator calculate the sine, cosine, tangent using just a number? Sine $\theta$ = opposite/hypotenuse   Cosine $\theta$  = adjacent/hypotenuse   Tangent $\theta$  = opposite/adjacent      In order to calculate the sine or the cosine or the tangent I need to know $3$ sides of a right triangle. $2$ for each corresponding trigonometric function. How does a calculator calculate the sine, cosine, tangent of a number (that is actually an angle ?) without knowing any sides? What is the purpose of the Assemblies node in Web.Config? When creating a new ASP.NET AJAX Web Application in Visual Studio 2005, the default web.config contains the following section (inside the compilation node):  &lt;assemblies&gt;     &lt;add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/&gt; &lt;/assemblies&gt;   Whether or not the assemblies node exists doesn't seem to affect the AJAX functionality.  Update panels, etc work fine regardless of whether or not the reference to System.Web.Extensions is included in Web.Config.  What's the purpose of this section, and can it be safely removed? I have a GTX 660M and Ubuntu 18.04 64-bit.  According to , the latest graphics driver for this card is version 410.66.  The  says  Current long-lived branch release: `nvidia-410` (410.66)   I have nouveau drivers installed at the moment according to lsmod and, apt-get purge 'nvidia*' does nothing.  I have done add-apt-repository ppa:graphics-drivers and apt-get update and a reboot.  Running ubuntu-drivers devices gives this output  == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == modalias : pci:v000010DEd00000FD4sv00001028sd00000551bc03sc00i00 vendor   : NVIDIA Corporation model    : GK107M [GeForce GTX 660M] driver   : nvidia-304 - third-party free driver   : nvidia-driver-390 - third-party free driver   : nvidia-340 - distro non-free driver   : nvidia-driver-396 - third-party free driver   : nvidia-driver-410 - third-party free recommended driver   : xserver-xorg-video-nouveau - distro free builtin   Note this line:  driver   : nvidia-driver-410 - third-party free recommended   It looks like everything is ready to go to install driver version 410, but autocompleting apt-get install nvidia- indicates the highest available version is nvidia-390, and trying apt-get install nvidia-410 directly fails.  Why does apt not list the version 410 that the PPA and ubuntu-drivers both say is there?  And if I can't apt-get install nvidia-410, how can I install this version? Which shell interpreter runs a script with no shebang? Suppose the default shell for my account is zsh but I opened the terminal and fired up bash and executed a script named prac002.sh, which shell interpreter would be used to execute the script, zsh or bash? Consider the following example:  papagolf@Sierra ~/My Files/My Programs/Learning/Shell % sudo cat /etc/passwd | grep papagolf [sudo] password for papagolf:  papagolf:x:1000:1001:Rex,,,:/home/papagolf:/usr/bin/zsh # papagolf's default shell is zsh  papagolf@Sierra ~/My Files/My Programs/Learning/Shell % bash # I fired up bash. (See that '%' prompt in zsh changes to '$' prompt, indicating bash.)  papagolf@Sierra:~/My Files/My Programs/Learning/Shell$ ./prac002.sh  Enter username : Rex Rex # Which interpreter did it just use?   **EDIT : ** Here's the content of the script  papagolf@Sierra ~/My Files/My Programs/Learning/Shell % cat ./prac002.sh  read -p "Enter username : " uname echo $uname I've been having a lot of problems trying to figure out how to use scanf().  It seems to work fine with integers, being fairly straight forward scanf("%d", &amp;i).  Where I am running into issues is using scanf() in loops trying to read input.  For example:  do {   printf("counter: %d: ", counter);   scanf("%c %c%d", &amp;command, &amp;prefix, &amp;input); } while (command != 'q');    When I enter in a validly structured input like c P101, it seems to loop again before prompting me.  This seems to happen even with a single:  scanf("%c", &amp;c)    in a while loop.  It'll do the loop twice before prompting me again.  What is making it loop twice, and how do I stop it? When I enter in less amount of input that programmatically wouldn't have another character or number such as q, pressing enter seems to prompt me to enter more.  How do I get scanf() to process both single and double character entries? I have downloaded Python 3.3 from the official site but no idea how to install it.   I'm using Ubuntu 12.04 Split a string by a delimiter in python Simple animation using C#/Windows Forms I need to knock out a quick animation in C#/Windows Forms for a Halloween display.  Just some 2D shapes moving about on a solid background.  Since this is just a quick one-off project I really don't want to install and learn an entire new set of tools for this.  (DirectX dev kits, Silverlight, Flash, etc..)  I also have to install this on multiple computers so anything beyond the basic .Net framework (2.0) would be a pain in the arse.  For tools I've got VS2k8, 25 years of development experience, a wheelbarrow, holocaust cloak, and about 2 days to knock this out.  I haven't done animation since using assembler on my Atari 130XE (hooray for page flipping and player/missile graphics!)  Advice?  Here's some of the things I'd like to know:   I can draw on any empty widget (like a panel) by fiddling with it's OnPaint handler, right?  That's how I'd draw a custom widget.  Is there a better technique than this? Is there a page-flipping technique for this kind of thing in Windows Forms?  I'm not looking for a high frame rate, just as little flicker/drawing as necessary.   Thanks.  Post Mortem Edit ... "a couple of coding days later"  Well, the project is done.  The links below came in handy although a couple of them were 404.  (I wish SO would allow more than one reply to be marked "correct").  The biggest problem I had to overcome was flickering, and a persistent bug when I tried to draw on the form directly.   Using the OnPaint event for the Form: bad idea.  I never got that to work; lots of mysterious errors (stack overflows, or ArgumentNullExceptions).  I wound up using a panel sized to fill the form and that worked fine. Using the OnPaint method is slow anyway.  Somewhere online I read that building the PaintEventArgs was slow, and they weren't kidding.  Lots of flickering went away when I abandoned this.  Skip the OnPaint/Invalidate() and just paint it yourself.  Setting all of the "double buffering" options on the form still left some flicker that had to be fixed.  (And I found conflicting docs that said "set them on the control" and "set them on the form".  Well controls don't have a .SetStyle() method.)  I haven't tested without them, so they might be doing something (this is the form):      this.SetStyle(ControlStyles.UserPaint, true);     this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);     this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);    So the workhorse of the code wound up looking like (pf is the panel control):      void PaintPlayField()     {         Bitmap bufl = new Bitmap(pf.Width, pf.Height);         using (Graphics g = Graphics.FromImage(bufl))         {             g.FillRectangle(Brushes.Black, new Rectangle(0, 0, pf.Width, pf.Height));             DrawItems(g);             DrawMoreItems(g);             pf.CreateGraphics().DrawImageUnscaled(bufl, 0, 0);         }     }   And I just called PaintPlayField from the inside of my Timer loop.  No flicker at all. Is a current transformer appropriate for a voltage step up flyback converter? I am designing a flyback converter, input 170V output 1200V at 2mA.  I am having trouble finding an appropriate transformer, most do not have a high enough N. Current transformers seem to have ranges in 1:500, so I could work with that.  Is it proper to use a current transformer as a conventional step up voltage transformer? Can I transfer Windows 10 Pro license to another computer? What does \s! do? pgfplots: lines and markers in different colors With pgfplots, I am creating a simple coordinate plot with error bars like this:    \documentclass[crop,10pt]{standalone} \usepackage[english]{babel} \usepackage{pgfplots}      \begin{document}%         \setlength{\linewidth}{246pt}%              \begin{tikzpicture}             \begin{axis}[             width=\linewidth,             ytick pos = left,             xtick pos = left,             clip=false,             axis on top,             tick align = outside,             yticklabel style={%             /pgf/number format/fixed,             /pgf/number format/precision=1,             /pgf/number format/fixed zerofill         },             ytick scale label code/.code={},             xlabel={X},             ylabel={Y},     ]             \addplot[mark=*]             plot[             error bars/.cd,             y dir=both,             y fixed=0.0001     ]             coordinates{(1,0.0005) (1.1,0.0013) (5,0.0015)};             \end{axis}             \end{tikzpicture}     \end{document}   In the original plot I have a lot more points. I would now like the line and the markers (including the error bars) to have different colors to better distinguish the line from the error bars. Is that somehow possible? The only way I found so far is to plot the data just as a line in one color and then plot it again just as markers in another color. This works, but I guess there must be some better solution to this. Thanks for the support, John I don't like having the middle mouse button paste, because I often end up with uncompilable code in Eclipse. How can I turn this off (in all programs)? I'm running Fedora. Create Trigger that updates the same table before (or after ??) the Insert I have just started using triggers and one thing that I would need to do is to create a trigger that updates the same table that's inserting the row.  TABLE:  CREATE TABLE `city` (   `city_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,   `city` varchar(50) NOT NULL,   `country_id` smallint(5) unsigned DEFAULT '0',   `country` varchar(150) DEFAULT NULL,   `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,   PRIMARY KEY (`city_id`),   KEY `idx_fk_country_id` (`country_id`),   CONSTRAINT `city_ibfk_1` FOREIGN KEY (`country_id`) REFERENCES `country` (`country_id`) ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=6009 DEFAULT CHARSET=utf8;   Trigger:  DELIMITER $$ CREATE TRIGGER `populate_country_id` BEFORE INSERT ON `city` FOR EACH ROW BEGIN  IF NEW.country_id = 0  THEN     UPDATE city     INNER JOIN country B ON city.country = B.country     SET NEW.country_id = B.country_id;  END IF;  END $$ DELIMITER ;   MySQL is just returning: Can't update table 'city' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.  Is there any way I can make this work?  Thanks everyone!