guy's i have a problem with passing input type file value into ajax url=url,  i hope someone can help me with this. i have code like this    var data; $.ajax({   type: "GET",   url: "js-tutorials.com_sample_file.csv",   dataType: "text",   success: function(response) {     data = $.csv.toArrays(response);     generateHtmlTable(data);   } }); &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/0.71/jquery.csv-0.71.min.js"&gt;&lt;/script&gt; &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"&gt;&lt;/script&gt; &lt;div class="container" style="padding:10px 10px;"&gt;   &lt;h1&gt;Read CSV file using JavaScript&lt;/h1&gt;   &lt;div id="header"&gt;&lt;/div&gt;   &lt;div class="well"&gt;     &lt;div class="row"&gt;       &lt;form class="form-inline"&gt;         &lt;div class="form-group"&gt;           &lt;label for="files"&gt;Upload a CSV formatted file:&lt;/label&gt;           &lt;input type="file" id="files" class="form-control" accept=".csv" required /&gt;         &lt;/div&gt;         &lt;div class="form-group"&gt;           &lt;button type="submit" id="submit-file" class="btn btn-primary"&gt;Upload File&lt;/button&gt;         &lt;/div&gt;       &lt;/form&gt;     &lt;/div&gt;     &lt;div class="row"&gt;       &lt;div class="row" id="parsed_csv_list"&gt;       &lt;/div&gt;     &lt;/div&gt;   &lt;/div&gt;   &lt;div id="footer"&gt;&lt;/div&gt; &lt;/div&gt;     i will explain it from my code. i want to pass the url from file that have choose from input type file from my html into the url: "js-tutorial.com_sample_file.csv";.
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?
Find generator of multiplicative group of $\mathbb{F}_{27}$ I have a finite field $\mathbb{F}_{27}$. I need to find an element of order 13. I know that multiplicative group of this field is cyclic with order 26. So I want to find a generator $g$ of this cyclic group, then $g^2$ will have order 13. Also I know that all elements of this field can be represented by polynomials from $\mathbb{F}_3[t]$, where t is root of irreducible polynom $x^3-x-1$.  Probably we can find generator of $\mathbb{Z}_{26}$ and than build an isomorphism to $\mathbb{F}_{27}\setminus 0$.  Anyway I don't know were to start.  Thanks! How are embedded quotations used? How would embedded quotations be used when quoting from passages/sources within an essay? What would be the difference between normal quotations and embedded quotations? Debian users have a kind of "wayback machine":  , which is really great.  There are regressions sometimes, and if I don't have local deb package with old version, I'm getting sad sometimes. Having a wayback machine like this is very helpful.  I can't find analogue of it for Ubuntu. Have I missed it? Every vector space has a basis Prove that every vector space has a basis. I am going to use Zorn's lemma for this also here is a necessary definition regarding totally ordered subsets: one element will be contained in the other.   proof: A basis for $V$ is a maximally linearly independent set. Let $X$ be equal to all linearly independent subsets of $V$. On, $X$ define $A\leq B$ means $A\subset B$. Let $S$ be a totally ordered subset of $X$, let $T = \bigcup_{A_{s}\in S} A_s$ then $A_s\subset T$ for all $s\in S$. Does $T\in S$? i.e. is $T$ a linearly independent set?. Let $$O = \alpha_1 v_1 + \alpha_2 v_2 + \ldots + \alpha_n v_n \ \ \text{where} \ \ v_i\in T = \bigcup_{A_{s}\in S} A_s$$ Then there exists $S_i$ such that for all $i\in A_{s_{i}}$ all $i$ $A_{s_{1}},A_{s_{2}},\ldots, A_{s_{n}}$ (these will have one contained in the other then we would take the larger). So, there exists $A_{s_{k}}$ such that $A_{s_{k}}\supset A_{s_{i}}$ all $i$ just compare two at a time. Therefore, $V_i \in A_{s_{k}}$ all $i$, but $A_{s_{k}}$ is a linearly independent set. So, $\alpha_i = 0$ all $i$. Hence, $T\in X$ so $T$ is an upper bound for $S$. Hence every totally ordered subset of $X$ has an upper bound, hence by Zorn's lemma, there exists a maximal element and this would be the basis.  I am not sure if my proof is right, I apologize if it is a bit messy. If it is right, any suggestions on cleaning it up would be greatly appreciated. \ifmmode doesn't seem to work correctly inside an array environment I’m struggling with getting \ifmmode to work correctly when used inside an array environment which is inside a displaymath environment.  Here is a minimal example:  \documentclass{article}  \newcommand{\signal}[1]{%   \ifmmode     1#1   \else     2$#1$   \fi }  \begin{document} \begin{displaymath}   \begin{array}{cc}     \signal{a} \signal{b} &amp; \signal{c} \signal{d} \\   \end{array} \end{displaymath} \end{document}   This example generates the following output:        Why doesn’t all invokations of \signal detect math-mode? In the film and book series, Year 4 (Goblet of Fire), how is it Mad-Eye Moody/Barty Crouch could see Harry through his Magical Eye even when he was under the Invisibility Cloak?  As the cloak is a True Invisibility cloak, immune to charms and spells, and according to legend invisible to even Death, how did Mad-Eye detect Harry Potter under the cloak? How Nagini and Mrs. Norris were able to sense Harry were through other senses, such as smell and warmth, but not visually.  I'm referring to the scene/chapter where Snape follows Harry at night. Harry hides under the Invisibility Cloak but his foot is stuck at the broken staircase. Eventually Mad-Eye arrives, sees Harry through his Magical Eye, and talks Snape away. One of the ways I quickly rename files in Windows is   F2 &gt; Rename &gt; Tab (to next file) &gt; Rename ...   But in Ubuntu/Nautilus, I can't tab to next file. But being on Linux, I think there must be a command line alternative.  However, sometimes, I may want more control over how to rename specific files. In that case, perhaps its better to be able to tab to the next file Weighted choice short and simple Configuring, compiling and installing a custom Linux kernel proving that $f(x) = x^s$ is holder continuous with holder exponent s Why does Super User site appear twice in vote-to-close dialog? Super User appears in both the main Off-Topic list and the Migration list of the close dialog. Is this a bug or intentional?  I also don't really understand why Server Fault appears in the main Off-Topic list and not the Migration list, apart from it being new.  Here:    and: I'm trying to find a post I made on my timeline (aka wall) several months (or even years) ago, but can't find a way to search for it. I , but that's very heavy.   Currently, I open the activity log (e.g., https://www.facebook.com/username/allactivity) and start scrolling down to get some info on the page. Then I use my browser to search for the text. But this is slow and, depending on how far back I want to go, tedious. Clicking on the earliest month/year in the filter only loads those periods specifically.    Anyone know of a better way that will find the search words anywhere on your activity log quickly?    Edit: There's a  (not really a bug, but lack of a feature) related to this on Facebook's developers forum. Programming language books explain that value types are created on the stack, and reference types are created on the heap, without explaining what these two things are. I haven't read a clear explanation of this.  I understand what a stack is. But,    Where and what are they (physically in a real computer's memory)? To what extent are they controlled by the OS or language run-time? What is their scope? What determines the size of each of them? What makes one faster? The grammaticality of "that don't impress me much" I'd like to know how the sentence "That don't impress me much" sounds to a native English speaker.  The phrase is the title of a song by Shania Twain, and to my eyes it contains a clear error. It is obviously intended, and I want to know what was the effect that the author wanted to obtain.  Other examples that come to mind:   “She's got a ticket to ride, but she don't care” — The Beatles “My love don't cost a thing” — Jennifer Lopez “It don't matter” — Akon “She don't care about me” — heard in the Lost series “It Don't Mean a Thing” — a jazz album title “The Sun Don't Lie” — another album title PostgreSQL crash when connection failed Error log is:  016-02-21 21:22:34 GET DETAIL:  Connection matched pg_hba.conf line 83: "host    all             all             ::1/128                 md5" .... .... 2016-02-21 21:22:37 GET DETAIL:  Connection matched pg_hba.conf line 83: "host    all             all             ::1/128                 md5" 2016-02-21 21:22:37 GET FATAL:  password authentication failed for user "postgres" 2016-02-21 21:22:37 GET DETAIL:  Connection matched pg_hba.conf line 83: "host    all             all             ::1/128                 md5" 2016-02-21 21:22:37 GET LOG:  CreateProcess call failed: A blocking operation was interrupted by a call to WSACancelBlockingCall.       (error code 299) 2016-02-21 21:22:37 GET LOG:  could not fork new process for connection: No error 2016-02-21 21:22:37 GET LOG:  incomplete startup packet 2016-02-21 21:22:38 GET FATAL:  password authentication failed for user "postgres" 2016-02-21 21:22:38 GET DETAIL:  Connection matched pg_hba.conf line 83: "host    all             all             ::1/128                 md5" 2016-02-21 21:22:42 GET FATAL:  password authentication failed for user "postgres" 2016-02-21 21:22:42 GET DETAIL:  Connection matched pg_hba.conf line 83: "host    all             all             ::1/128                 md5" 2016-02-21 21:24:26 GET LOG:  could not receive data from client: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. 2016-02-21 21:24:26 GET LOG:  incomplete startup packet 2016-02-21 21:24:29 GET FATAL:  password authentication failed for user "postgres" 2016-02-21 21:24:45 GET PANIC:  could not write to log file 000000010000000100000041 at offset 4259840, length 8192: Invalid argument 2016-02-21 21:24:45 GET STATEMENT:  COMMIT 2016-02-21 21:24:53 GET LOG:  server process (PID 470944) was terminated by exception 0xC0000409 2016-02-21 21:24:53 GET DETAIL:  Failed process was running: COMMIT 2016-02-21 21:24:53 GET HINT:  See C include file "ntstatus.h" for a description of the hexadecimal value. 2016-02-21 21:24:53 GET LOG:  terminating any other active server processes   Can anyone help to solve the problem? I spent many hours but didn't find a solution.   Postgres version 9.4 Operating System: Windows  postgresql.conf is:  listen_addresses = '*' port = 5432  max_connections = 100 shared_buffers = 128MB   dynamic_shared_memory_type = windows   pg_hba.conf is:  # IPv4 local connections: host    all             all             127.0.0.1/32            md5 host    all             all             0.0.0.0/0               md5 Clarifying question on meaning of derivative of a linear transformation In my analysis class, my professor (and the textbook) reference the fact that $\mathbf{D}T(\bar{x}) = T$ for any $\bar{x} \in \mathbb{R}^n$ where $T \in \mathcal{L}(\mathbb{R}^n,\mathbb{R}^n) $. I'm wondering about the precise meaning of this statement. Is it that the differential of any linear transformation is also linear? Or is that the differential of any linear transformation is itself (and therefore also linear)? The second seems confusing to me because the derivative of a function is often not itself. For example, $f(x) = 2x$ is a linear transformation but $f'(x) = 2 \ne 2x$ for all $x \in \mathbb{R}$. How to mathematically evaluate a string like "2-1" to produce "1"? Is there a GLM bible? Is there consensus in the field of statistics that one book is the absolute best source and completely covering every aspect of GLM - detailing everything from estimation to inference? I am trying to test the impact of a sale initiative on store revenue. I have created 10 matched pairs of stores and then randomly distributed one store in each pair into a test or control group.  I then ran the sale for 21 days within the test group (keeping control constant) and measured relative lift in revenue compared to baseline.  My questions  1.) Should I be using a paired t-test based on the previous store matching  2.) Should I be measuring across each day of the test such as:          Control Test 1/1/2017    4   3 1/2/2017    3   4 1/3/2017    1   3 1/4/2017    2   3 1/5/2017    2   4 1/6/2017    1   7   Or measuring across my paired markets such as:                 Test Control Market Pair 1   10  5 Market Pair 2   8   3 Market Pair 3   5   1 I am trying to solve this integral $$ \int_{-\pi/2}^{\pi/2} \frac{1}{2007^x+1}\cdot \frac{\sin^{2008}x}{\sin^{2008}x+\cos^{2008}x}dx $$ A closed form does exist despite the looks of the integrand.  This problem is from some old high school IMO training courses.  I am not sure how to solve it. The only information that may be of help is $$ \sin x=\sum_{n=1}^\infty \frac{(-1)^n x^{2n+1}}{(2n+1)!}, \quad \cos x=\sum_{n=1}^\infty \frac{ x^{2n}}{(2n)!} \quad \forall \ x $$ Thanks, I am looking for a complete solution, not a description as of what to do.