I have been using Uploadify for several years to upload files onto our Intranet web site.  It is no longer actively being supported and even their so called HTML5 version uses a Flash SWF file.  Needless to say, Flash is dead.  I found several really nice Bootstrap / HTML5 uploaders.  I am having trouble picking one I can easily swap with Uploadify.  My site is still running Bootstrap 2 and I want to stay away from CSS3 for this site.  I am not only uploading a file but posting data back to a .NET ASHX handler to create a record in the database.  Can anyone recommend a good, basic replacement?  NOTE:  Dumping me to a question for 6 years ago is not helpful!  I already said I read all of this unhelpful information.
I would like to upload a file asynchronously with jQuery.     $(document).ready(function () {     $("#uploadbutton").click(function () {         var filename = $("#file").val();          $.ajax({             type: "POST",             url: "addFile.do",             enctype: 'multipart/form-data',             data: {                 file: filename             },             success: function () {                 alert("Data Uploaded: ");             }         });     }); }); &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"&gt;&lt;/script&gt; &lt;span&gt;File&lt;/span&gt; &lt;input type="file" id="file" name="file" size="10"/&gt; &lt;input id="uploadbutton" type="button" value="Upload"/&gt;     Instead of the file being uploaded, I am only getting the filename. What can I do to fix this problem?
How can I take screenshots of YouTube videos in full screen? I am trying to take a screenshot of a YouTube video in fullscreen.  When I pause the video and wait a moment, only the bottom UI bar (play/pause/seek) disappears. The top UI bar (Like/Share/More Info) stays there.  So when I press PrintScreen on the keyboard, the screenshot is polluted by this top UI bar. Is there any way to remove it while the video is on pause? What is the relationship between symmetry and degeneracy in quantum mechanics? Let me remind you about the following classical  examples in quantum mechanics.     Example 1. Bound states in 1-dim potential V(x).   Let $V(x)$ be a symmetric potential i.e.   $$V(x) = V(-x)$$   Let us introduce the parity operator $\hat\Pi$ in the following way:   $$\hat\Pi f(x) = f(-x).$$   It is obvious that    $$[\hat H,\hat\Pi] = 0.$$   Therefore, for any eigenfunction of $\hat H$ we have:   $$\hat H|\psi_E(x)\rangle = E|\psi_E(x)\rangle = E\hat\Pi|\psi_E(x)\rangle,$$   i.e. state $\hat\Pi|\psi_E(x)\rangle$ is eigenfunction with the same eigenvalue. Is $E$ a degenerate level? No, because of linear dependence of $|\psi\rangle$ and $\hat\Pi|\psi\rangle.$   Consider the second example.     Example 2. Bound states in 3-dim a potential $V(r)$. Where $V(r)$ possesses central symmetry, i.e. depends only on distance to center.   In that potential we can choose eigenfunction of     angular momentum $\hat L^2$ for basis    $$|l,m\rangle,$$   where $l$ is total angular momentum and $m$ - its projection on chosen axis (usually $z$). Because of isotropy eigenfunction with different $m$ but the same $l$ correspond to one energy level and linearly independent. Therefore, $E_l$ is a degenerate level.      My question is if there is some connection between symmetries and degeneracy of energy levels. Two cases are possible at the first sight:   Existence of symmetry $\Rightarrow$ Existence of degeneracy Existence of degeneracy $\Rightarrow$ Existence of symmetry     It seems like the first case is not always fulfilled as shown in the first example. I think case 1 may be fulfilled if there is continuous symmetry. I think the second case is always true. Why is my crontab not working, and how can I troubleshoot it? This is a  about using cron &amp; crontab.   You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question.  The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below.  This addresses the cron system with the crontab highlighted. CPT Template Not Showing - Getting 404 I'm developing a Custom Post Type plugin, which works fine in dev. Now that I've moved it to production, I'm getting a 404 when I try to display the template for the CPT.   So, two questions:  1- Is there some mechanism to determine the path WP took to get through the hierarchy?  2- Why wouldn't it just give me the single or index page?  I've dumped $wp_query and a stacktrace at the end of the 404. Here's part of what I found:  [query] =&gt; Array     (         [page] =&gt;          [pagename] =&gt; refletters/proximity     )  [request] =&gt; SELECT   wp_posts.* FROM wp_posts  WHERE 1=1  AND (wp_posts.ID = '0') AND wp_posts.post_type = 'page'  ORDER BY wp_posts.post_date DESC  [posts] =&gt; Array     (     )  [queried_object] =&gt;  [queried_object_id] =&gt; 0   And the stack trace:  2013-04-27 22:16:41 - 24.52.197.40 - TRACE - index.php - 404.php[39] -      wordpress/wp-content/themes/notoriousconsultant/404.php[39] - aaLog-&gt;logtrace     wordpress/wp-includes/template-loader.php[50] - include     wordpress/wp-blog-header.php[16] - require_once     wordpress/index.php[17] - require   Thanks for your help. It seems that $\{e\}, \{e,s\}, \{e,rs\}, \{e,r^2s\},...,\{e,r^{n-1}s\}, \{e,r,r^2,...,r^{n-1}\}, D_n$ are always subgroups of $D_n$. Especially when $n$ is odd, these seem to be the only subgroups. But when n is even, say $n=4$, then there are also $\{e,s,r^2,r^2s\}$ and $\{e,rs,r^2,r^3s\}$. It makes me wonder, is there a general formula/algorithm for finding all subgroups of $D_n$ when $n$ is even? Get files in a directory sorted by last modified? How to install ns2 on Ubuntu How to create live autofill search? I am currently trying to create a wordpress search function that shows live results underneath the search bar. There is an example on the  website (screens below). I'm not looking for an autofill like you would find on Google.com which completes words you type, rather I want it to find actual posts on the site.   I tried doing a scrub through Wordpress Answers and other similar resources but have only run into implementing a Google type search which is not what I am looking for. Any help or points in the right direction would be greatly appreciated. How can I resize an LVM partition? (i.e: physical volume) I want to shrink my second (LVM) partition, in order to create a new partition in the newly freed space. I am using the Live CD to do so, because I know I can't resize/move this partition while it is in use. When I opened GParted in the Live CD, I realized that I could not resize the partition, because when I right-click it, the option "resize/move" is disabled.  I tried to unmount it, to "lazy" unmount it (umount -l /dev/sda2) but it didn't work.  A screenshot from GParted: Should I use a canonical link which refers to the current URL with pagination? Divisor function asymptotics Define $\tau_{r}(n) = \sum_{d_1...d_r = n}1$.   One exercise in a book on sieve theory asked for an elementary proof by induction of the fact that   $$\sum_{n\le x}\tau_r(n) = \frac{1}{(r - 1)!}x(\ln x)^{r - 1} + O\left(x(\ln x)^{r - 2}\right)$$  The base case $r = 2$ is easy with reversing the order of summation.  The only other progress that I made was the fact that $\sum_{n\le x}\tau_{r}(n) = \sum_{d\le x}\left\lfloor\frac{x}{d}\right\rfloor\tau_{r- 1}(d)$, but I don't know how to proceed. What software can join videos? What's the best &amp; easiest GUI software that can join a video that I have downloaded in several parts? Where to get school zone shapefiles? Census.gov usually makes available the shapefiles containing school zone boundaries. Due to the US government shutdown, census.gov is down. Does anyone know where to download a recently archived copy? If $\sin(a)\sin(b)\sin(c)+\cos(a)\cos(b)=1$ then find the value of $\sin(c)$ In low-cost mass-produced items I often run into black blobs of what looks like resin applied directly on top of something on the PCB. What are these things exactly? I suspect this is some kind of custom IC that is layed out directly on the PCB to save on the plastic  housing/connector pins. Is this correct? If so, what is this technique called?    This is a photograph of the inside of a cheap digital multimeter. The black blob is the only non-basic piece of circuitry present, along with an op-amp (top) and a single bipolar junction transistor. $\displaystyle\int_0^0\frac 1x\:dx$ This integral is defined ? If it define, what is the value ?  Please,step by step Every natural number $n$ can be written as $n=s-t$ with $\omega(s)=\omega(t)$ Can we prove the following statement ?  Let $\omega(m)$ denote the number of all distinct prime factors of a positive integer $m$. Prove that every  natural  number $n$ can  be  written  as $n=s-t$, where $s$ and $t$ are positive integers with $\omega(s)=\omega(t)$, in other words, as the difference of two positive integers with the same number of distinct prime factors.   If $n=1$ , we can choose $\ s=3\ $ and $\ t=2$.  If $n$ is even , we can choose $\ s=2n\ $ and $\ t=n$. I'm having trouble understanding what I'm doing wrong here: I'm trying to set up two network Locations, one for my home network via my cable modem and a second for Wi-Fi tethering via my mobile phone. What I'd like to be able to do is change the Location (under the Apple menu &gt; Location) and have my Mac automatically connect to the proper Wi-Fi network: either my home network SSID or my WiFi tethering SSID. I defined two locations, switched between them, and set the preferred network list for each location. But when I change the preferred network list for one Location, it changes the list for the other Location as well! Am I doing something wrong or is it really not possible to maintain a separate list of Preferred Networks for each network Location? It seems doubtful it's not possible since just about every other netrok setting depends on the location... I am using OS X 10.7.2. How does a half-life work? Carbon-14 has a half-life of 5,730 years.  That means that after 5,730 years, half of that sample decays.  After another 5,730 years, a quarter of the original sample decays (and the cycle goes on and on, and one could use virtually any radioactive isotope).  Why is this so?  Logically, shouldn't it take 2,865 years for the quarter to decay, rather than 5,730? How many solutions are there to $x_1 + x_2 + ... + x_5 = 21$? How many solutions are there to the equation      $x_1 + x_2 + x_3 + x_4 + x_5 = 21$    where $x_1, i = 1,2,3,4,5$ is a nonnegative integer such that $0 ≤ x_1 ≤ 3, 1 ≤ x_2 &lt; 4$, and $x_3 ≥ 15$?  I have correctly completed the previous parts of the question but am having trouble with this particular restriction.  The total number of solutions to the equation is $C(25,21) = 12650$.  I have tried to do each restriction individually:  For $0 ≤ x_1 ≤ 3$, I solved this by subtracting the number of solutions when $x_1 ≥ 4$ from the total number of solutions. This is $C(25,21) - C(21,17) = 5985$.  For $1 ≤ x_2 &lt; 4$, I have $C(24,20) - C(21,17) = 5985$.  For $x_3 ≥ 15$, I have $C(10,6) = 210$.  However, the restriction is when these are all together. I am not sure how to proceed. The answer is $106$.