I need to create a slideshow using just htm css and vanilla javascript. I cant seem to get it to work and I keep getting selectSlide() is undefined when oncick event triggered. Im wondering if this is the correct to try and change the slideshow the way I have by updating the src image tag with the selectSlide function. Ive never seen it implemented like this so im assuming you cant do it this way or ive got the logic wrong ? Any help is appreciated HTML-------------------------- &lt;!DOCTYPE html&gt;  &lt;html lang=&quot;en&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;  &lt;head&gt;  &lt;meta charset=&quot;utf-8&quot; /&gt;  &lt;title&gt;fghdfghf&lt;/title&gt;  &lt;link rel=&quot;stylesheet&quot; href=&quot;SlideshowStyle.css&quot;&gt;  &lt;link href=&quot;Scriptsheet&quot; rel=&quot;SlideShowJs.js&quot; /&gt;  &lt;/head&gt;  &lt;body&gt;  &lt;!-- Slideshow container --&gt;  &lt;div class=&quot;slideshow-container&quot;&gt;  &lt;!-- Full-width images with number and caption text --&gt;  &lt;div class=&quot;mySlides&quot;&gt;  &lt;div class=&quot;numbertext&quot;&gt;1 / 3&lt;/div&gt;  &lt;img id=&quot;imgSlide&quot; src=&quot;Images/ocean\\\_beach\\\_2.jpg&quot; style=&quot;width:100%&quot;&gt;  &lt;div class=&quot;text&quot;&gt;Caption Text&lt;/div&gt;  &lt;/div&gt;  &lt;!-- The dots/circles --&gt;  &lt;div style=&quot;text-align:center&quot;&gt;  &lt;span class=&quot;dot&quot; onclick=&quot;selectSlide(0)&quot;&gt;&lt;/span&gt;  &lt;span class=&quot;dot&quot; onclick=&quot;selectSlide(1)&quot;&gt;&lt;/span&gt;  &lt;span class=&quot;dot&quot; onclick=&quot;selectSlide(2)&quot;&gt;&lt;/span&gt;      &lt;/div&gt;  &lt;/div&gt;    &lt;/body&gt;      &lt;/html&gt;    Js------------------  var image1 = &quot;Images/backbeach.jpg&quot;; var image2 = &quot;Images/beach.jpg&quot;; var image3 = &quot;Images/ocean_beach.jpg&quot;; var images = [image1, image2, image3]; function selectSlide(i) { document.getElementById(&quot;imgSlide&quot;).src = images[i]; document.getElementsByClassName(&quot;numbertext&quot;).innerHTML = i + 1 + &quot;of 3&quot;;}
What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?
What's the best way to season a cast iron skillet? I just purchased a new cast iron skillet. What's the best way to season it?   And if I need to re-season an old pan, is the process any different? "Interested with the course" or "interested in the course"? Interested in/with the course   Which preposition is correct? in or with, or both. Can I install the free Windows 7/8 -> 10 upgrade on a new empty drive? With the new Windows 10 coming out soon as a free upgrade, I'd like to know if and how I can install the upgrade on a new HDD. I assume the files needed for Windows 10 are only for upgrading an installed copy of Windows 7 or 8 and not a standalone installer to use on an empty hard drive. Or is this assumption wrong?  I have some issues booting (an older non-working version appears in the list of OS's to choose from) and I'd like to replace my current SSD, which is too small, with a new larger capacity one, while keeping my other drives intact. The old SSD will then be removed.  If more information is needed, please let me know. How do I assign the output of a command to a variable? Handling multiple regex matches in Ampscript Given this string:  SET @text = "&lt;a href=""https://salesforce.stackexchange.com""target=""_blank""&gt;Salesforce&lt;/a&gt; &lt;a href=""https://stackoverflow.com"" target=""_blank""&gt;Everything else&lt;/a&gt;"   And this function:  SET @matching = '\s+(?:[^&gt;]*?\s+)?href="([^"]*)"' SET @output = RegExMatch(@text, @matching, 1)   How can I manage to find and print an arbitrary number of matches in my string? E.g. in above example, I would like to present e.g. a rowset with each URL in each row. While rendering a mesh with smooth shading on, I get a dark region/shadow on certain faces. The effect is more evident when smooth shading is applied to a mesh containing ngons, with the ngons turning black when rendered.   The blackening effect is visible in the viewport too.  How can I solve this problem? Can Blindsight "See" Through Walls, Floors, And Ceilings? I am currently play-testing an Awakened Mystic character in D&amp;D 5e, using the beta rules . As such, I have an ability that lets me choose between having Blindsight or Tremorsense.  BLINDSIGHT: ...[B]lindsight can perceive its surroundings without relying on sight, within a specific radius.... (Monster Manual p.8) TREMORSENSE: ...[T]remorsense can detect and pinpoint the origin of vibrations within a specific radius, provided that the [observer] and the source of the vibrations are in contact with the same ground or substance. Tremorsense can't be used to detect flying or incorporeal creatures.... (Monster Manual p.9)  I have been wondering what the difference is between these two, aside from the fact that Tremorsense requires contact with the ground and cannot detect flying or incorporeal creatures. Specifically, I want to know whether Blindsight cannot detect creatures through solid matter such as walls, floors, and ceilings, whereas Tremorsense can? Can Blindsight detect creatures on the other side of a dungeon wall, or on another floor of said dungeon? Are there monsters in 5th Edition that possess both Blindsight and Tremorsense, and if so, when and why would they use one as opposed to the other? I am aware of and appreciate  regarding Blingsight's capability to detect invisible creatures, but it doesn't exactly address my issue of whether solid matter effectively &quot;blocks&quot; Blindsight. I will gladly consider either rules-as-written or rules-as-interpreted answers. If there is a published game mechanic or a posted developer ruling I have overlooked, please include and cite them in your answer. Formula for calculating $\sum_{n=0}^{m}nr^n$ I want to know the general formula for $\sum_{n=0}^{m}nr^n$ for some constant r and how it is derived.  For example, when r = 2, the formula is given by: $\sum_{n=0}^{m}n2^n = 2(m2^m - 2^m +1)$ according to   Thanks! Image of concave mirror when object is farther than the focal point I have a set of concave/convex mirrors/lenses, and I have drawn out all of the ray tracing diagrams for each possible combination and type of image each optical element can produce. When I look at the ray tracing diagrams then reproduce the situation in the real world with myself as the &quot;object&quot;, all the scenarios make sense to me except one: when I as the object stand beyond the focal point of a concave mirror.  The image ends up as &quot;real&quot; and appears to be in front of the mirror. Now I understand that in the situation above, I as the object would stand at 6m and this would result in the image appearing at 12m. So if I placed a wall or screen at the 12m mark, the image would form on that surface (just like a movie theater screen).... at least I think I interpreted that correctly. But I still see myself when I look in the mirror?! If the image is supposed to form and come into focus behind me, what in the world am I seeing when looking at the surface of the mirror? I still see myself, just inverted. The surface of the concave mirror still has a reflection on it. It doesn't look quite like a normal flat mirror, in that the image doesn't really look like it's &quot;inside&quot; the mirror, more like it's right on the surface of it. It's really frustrating because every other possible arrangement of optical elements makes total sense to me, except this one. Any suggestions on how to think about it? Thank you for your time! What does static/dynamic BVH do? In the render properties panel, under the performance rollout there is a setting for static vs. dynamic BVH.  I am simply wondering what this setting does.  From the :     The raytracing acceleration structure used is a bounding volume hierarchy... This code includes spatial splits to make it more competitive with kd-trees.   Unfortunately, though I know quite a bit about cycles, this is totally Greek to me.  I couldn't really find much else useful on the web other than it may have some impact on animations only.  Can anybody explain this better (maybe starting with BVH in general)? "Give him a box that everyone knows what it contains."  Is this correct English? It sounds wrong to me. Prove that a limit doesn't exist In my assignment I have to prove that the following function doesn't have a limit:  $$f(x)=\frac{x}{x-\lfloor{\sin x}\rfloor}$$ when $${x \to 0}$$  In other words, I have to prove that for every $\delta$ such that $0&lt;|x-{x_0}|&lt;\delta,$ $|f(x)-L|&gt;\epsilon$.  In fact, I don't even know how to start. Do I choose my $\delta$? I know that the sin function has certain values that's supposed to help me. How do I use it?  I have to prove this by definition, so I can't use limit arithmetic for example  Thanks. Can't run "dpkg --add-architecture i386" on 12.04 64-bit to run eclipse ADT Will Area 51 be supported in the app? I didn't find the difference between them by  googling  Edit: Thx litterally, authenticate, means prove its identity, which is a just a subprocess of global access authorization btw I forgot to mention "Sign In", that's another confusing term for me ;)  Edit 2 other useful answers: Variable Sized Arrays vs calloc in C On the discussion of dynamic memory here:   The author states:     A memory block like this can effectively be used as a more flexible array. This approach is actually much more common in real-world C programs. It's also more predictable and flexible than a "variable size array"   The type of memory block he is talking about is as such:  const int size = 5; int * array = calloc(size, sizeof(int));   and then using another pointer to iterate over the array:  int * index = array; for (i = 0; i &lt; size; i++) {     *index = 1; // or whatever value     index++; }   My question is how is this method better than a standard variable sized array like this?:  int array[variable];   or dynamic:  char name[] = "Nick";   The author doesn't really shed much light as to why I should prefer the former method to the latter. Or more specifically: How is it more "predictable and flexible"? Why do return flight costs vary depending on the country of origin? Is it correct to sometimes capitalize words mid-sentence in computer user interfaces? CMake & CTest : make test doesn't build tests Orthogonality and linear independence [Theorem] Let $V$ be an inner product space, and let $S$ be an orthogonal subset of $V$ consisting of nonzero vectors. Then $S$ is linearly independent.     Also, orthogonal set and linearly independent set both generate the same subspace.  (Is that right?)    Then orthogonal $\rightarrow$ linearly independent but orthogonal $\nleftarrow$ linearly independent is that right?    One more question. For T/F, Every orthogonal set is linearly independent (F) Every orthonormal set is linearly independent (T) Why?