I currently have the stored procedure shown below working for SQL Server 2017, but I cannot figure out a way to make it work on SQL Server 2014 or find a compatible equivalent.  The current error I get is as follows:     Incorrect syntax near the keyword 'WITH'.      Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.   My code:  CREATE PROCEDURE ProcedureName      @submissionID INT AS     DECLARE @submission_FormDefn AS INT     DECLARE @Defn_json AS NVARCHAR(MAX)     DECLARE @Subm_json AS NVARCHAR(MAX)       SELECT           @Subm_json = [jsonPost],           @submission_FormDefn = [FormDefn_Id]      FROM          form_submissions      WHERE         id = @submissionID       SET @Defn_json = (SELECT [data]                         FROM form_defns                         WHERE id = @submission_FormDefn)       SELECT           dd.name, dd.label, dd.type, V.VALUE       FROM          [dbo].[form_submissions_VALUES] V      INNER JOIN           OPENJSON(@Defn_json) WITH (name varchar(MAX) '$.name',                                     label varchar(MAX) '$.label',                                     type varchar(MAX) '$.type') dd ON V.field = dd.name      WHERE            type IN ('one', 'two', 'three')           AND v.FormSubmission_Id = @submissionID GO

Consider a database table holding names, with three rows:  Peter Paul Mary   Is there an easy way to turn this into a single string of Peter, Paul, Mary?


My task is to convert a data file from big endian to little endian & vice versa using C. I have been looking online for about 3 hours now for other examples and reading my text book, however I am so stuck on how to even start this function.  So far I have the order of events correct (1 through 4) but inside my convert_and_save function do I have to create a char array using → char buffer[4];?  Can someone please help me? even if you just give me clues on what to look up, I would greatly appreciate it.  I need to write a function called:   void convert_and_save(struct record item, FILE * output_handle, int number);   inside this function I do the following series of steps:   Convert the integer into an array of chars using:  int integer_to_characters(int number, char * buffer) {    memcpy(buffer, &number, 4); }  Reverse the order of the chars in that array. Convert the array of chars back to an integer using:  int characters_to_integer(char * buffer) {    int result;    memcpy(&result, buffer, 4);    return result; }  write the converted record on the output file using:  void save_record(FILE * file_handle, struct record a) {    char output_buffer[size_of_record];    integer_to_characters(a.age, &(output_buffer[0]));    memcpy(&(output_buffer[4]), a.name, 12);    integer_to_characters(a.department, &(output_buffer[16]));    fwrite(output_buffer, sizeof(char), size_of_record, file_handle); }

How do I convert between big-endian and little-endian values in C++? For clarity, I have to translate binary data (double-precision floating point values and 32-bit and 64-bit integers) from one CPU architecture to another.  This doesn't involve networking, so ntoh() and similar functions won't work here.  Note: The answer I accepted applies directly to compilers I'm targeting (which is why I chose it).  However, there are other very good, more portable answers here.


I know this is probably a difficult question to answer, since as far as I know Tauriel is a character that was created just for the movies, but if anyone has any quotes from the director or cast or producers or whatever, I would love to know what happens to her. She was one of my favorite characters, and I feel like they kind of just left us hanging with her.

[Yes, The Hobbit movies are nonsense. But how could I call myself a fantasy fan if I didn't demand my nonsense be as logical as possible?]  Tauriel is presented as a highly-skilled fighter and a combatant for the side of good. Despite this, she apparently did nothing during Sauron's war on the free peoples.  Was she somehow     still mourning Killi, after all these decades?   Was she dead? Or is there another reason she didn't participate?


I am travelling to Durban on 21.10.2017. I will be reaching Dubai at 22:00 at Terminal 1 and my next flight to Durban is at 10:45 the next day from Terminal 3. This means I will have to remain at Dubai Airport for 12 hours 45 minutes in total.  As the layover time is quite long, do I need to have a transit visa if I stay within the airport terminals and does not come out?

I am an Indian citizen living in Ukraine. I will be traveling to India but I need to wait in Dubai airport 23 hours for my next flight to India. I will not be leaving Dubai airport.  So in this case do I need a transit visa?


Only step by step hint leading to the final proof.  How should I take it from here?

I've seen the full proof of the Triangle Inequality  \begin{equation*} |x+y|\le|x|+|y|.  \end{equation*} However, I haven't seen the proof of the reverse triangle inequality:  \begin{equation*} ||x|-|y||\le|x-y|. \end{equation*} Would you please prove this using only the Triangle Inequality above?  Thank you very much.


struct segment{     int _gcd;     int _count;     segment(){         _gcd=0;         _count=0;     }     segment(int val)     {         _gcd=val;         _count=1;     }     void mergee(segment left,segment right)     {         _count=0;        _gcd=gcd(left._gcd,right._gcd);        if(_gcd==left._gcd)        {            _count+=left._count;        }        if(_gcd==right._gcd)        {            _count+=right._count;        }     } }seg[4*N];   I sought a solution to Ant Colony problem in CodeForces and stumbled on . The thing that confused me the most was this struct part. Is that a declaration of function inside a struct? I also see that there's function overloading in struct too. I am not quite familiar with a function inside struct, as Google search also shows that it's more common to pass structs to an outer function. How do struct functions work? Can they only modify the variables declared inside the struct? Can I return something? The example above only used the function inside struct to modify its variable values.

This question was .  Now I'd like to learn the differences between a struct and a class in C++. Please discuss the technical differences as well as reasons for choosing one or the other in OO design.  I'll start with an obvious difference:   If you don't specify public: or private:, members of a struct are public by default; members of a class are private by default.   I'm sure there are other differences to be found in the obscure corners of the C++ specification.


I followed the following steps to flag a post as "to move to another stackexchange website":  1) flag   2) it should be closed for another reason   3) off-topic because  4) This question belongs on another site in the Stack Exchange network  And here I was prompted just 5 websites.. the question I'm referring was this:  and it belonged to the  website (at least in my opinion).  Why so few options?

Wouldn't it be a good idea to be able to vote for questions to be moved to any Stack Exchange site? For example, I just voted  as off topic, but that was all I could do. I wish I could've voted it be moved to .  It's OK to have the predefined list of sites that is now when voting to move, but it would be nice to have a more link, where we could pick any Stack Exchange site.  Here's a quick mockup of how I see this implemented:    When the more link is clicked, a list of all the Stack Exchange sites should appear.


I run TeXShop on a MacBook Air. There are some strange problems. When I open a .tex file, TeXShop always typesetting automatically and show me the result .pdf file. The code file doesn't occur. But I just want to edit the source file with extension .tex. Unless I open the .tex file in the menu "open to edit" of TeXShop, I cant see the file I want to edit. Another problem is that I cant set the default size of font displaying in the source window. Thanks for your help.

I have a problem with TeXshop (on Sierra). When I click on a .tex-file it compiles it to PDF but I cannot see (and thus modify) the source window. Any idea why ?


Just got a notice on StackOverflow that I can now "protect questions" .... I've seen diamond moderators do this a few times before, but for the most part I haven't seen it used too often. Therefore I have little body-of-knowledge on when/if questions should be protected.  Any tips on when/if questions should be protected?

Questions can be protected (i.e. marked "highly active").   What does it mean for a question to be protected? Why are some questions protected? Who can protect and unprotect questions? Who can answer a protected question? How are protected questions displayed? When should I protect or unprotect a question? When does the Community user protect a question?


I have a oracle db and in my tables some record names are all lower case and some have upper case in the first letter. example: Logan and logan. I need to be able to return both results.   Here is my query  SELECT DISTINCT uzer.email, uzer.firstname, uzer.lastname,  account.name,  account.brand,account.id FROM UZER, ACCOUNT, UZERACCOUNT where UZER.ID=UZERACCOUNT.UZERID AND ACCOUNT.ID=UZERACCOUNT.ACCOUNTID AND UZER.firstname='Logan'    Is there a way to do this without throwing in an OR? Because this query is going to grow to use last names too, and i need it to be fast

I have a table, users, in an Oracle 9.2.0.6 database.  Two of the fields are varchar - last_name and first_name.  When rows are inserted into this table, the first name and last name fields are supposed to be in all upper case, but somehow some values in these two fields are mixed case.  I want to run a query that will show me all of the rows in the table that have first or last names with lowercase characters in it.  I searched the net and found REGEXP_LIKE, but that must be for newer versions of oracle - it doesn't seem to work for me.  Another thing I tried was to translate "abcde...z" to "$$$$$...$" and then search for a '$' in my field, but there has to be a better way?  Thanks in advance!


What is the difference between Elliptic curves and  curves in terms of security? I am relatively new to cryptography and have heard a great deal more about Elliptic curves than Hyperelliptic curves.  Why are Hyperelliptic curves not so prevalent in use?

There seems to be sources like , this , and some  that discuss elliptic curves in general and how they're used.  But what I'd like to know is why these particular curves are so important in cryptography as opposed to, let's say, any other polynomial degree $\gt$ 2 which you can then mod over some group.  It seems like once a modulus is applied then other function types should be acceptable as well.  It seems even less intuitive when just looking at the bubble vs curve as here:    Since there are other curves (let's say anything from a sin wave to the $x^3 + x$ or even just some unusually shaped contour) that could do the job.  It seems like they would provide much more surface area to get a larger space in $\mathbb{Z}_p$ or really just more possible combinations of connecting lines from some arbitrary $P$ and $Q$ to get $R$ as opposed to something as restrictive (on the graph) as beginning from some bubble (which would seem to unnecessarily reduce the possible combinations) and then use a modulus to implement the discrete logarithm problem.  Sorry if this seems a little naive of a question, I'm trying to write an implementation right now and just to understand it fully even if that means asking something that is taken for granted.  Perhaps just walking through a simple example (most of the ones I've searched are anything but), just a few sentences, would be rather helpful, from "A wants to talk to B" all the way up to "now E can't listen in between A and B".  EDIT:  So it seems like this is the version of elliptic curves over a finite field:    Yes that looks pretty random.  But I'm still not really seeing why they are the only equations that have cryptographic significance.  It's difficult to imagine that if you simply took some other higher degree equation and applied modulus (to place within a group), then it seems like it would make sense that you'd get something that's also comparatively random.


Prove the following:  $ \gcd(a^n,b^n) = 1 \Leftrightarrow \gcd(a,b)=1,\;$ where $ a,b,n \in \mathbb{N}$.  I can show one side by using Fermat's Theorem and breaking them down into unique factorizations and then putting them to the power of $n$ but how do go the other way?

Let $d=(a^n,b^n), d_1=(a,b)^n$; need show $d\mid d_1$ & $d_1\mid d$ to prove.  For the general case of $(a,b)\ne 1, (a,b)= (d_1)^\frac{1}{n}$, else $(a,b)=d_1$.  Let, $d_2= (a,b)=d_1^\frac{1}{n}\implies a=a'd_2, b = b'd_2\implies a^n= (a')^nd_2^n, b^n= (b')^nd_2^n$  Unable to progress further.


\documentclass [12pt]{article} \oddsidemargin=0pt \topmargin=0pt \textwidth=6.5in \textheight=8.5in \begin{document} \begin{center} {\large\bf\LaTeX\ Example 7} \end{center} This example demostrates two methods for typesetting piecewise defined functions. The array structure can be used to typeset function definitions that have multiple cases: \begin{equation} f(x)=\left\{ \begin{array}{r@{\quad\mathrm{if}\quad} r} %% %%% Using r instead of i was the only way i could get the file to compile %% x^2-1 & x\in (-\infty,-1]\vspace{2pt}\\ {\displaystyle \frac{x^2+1}{x^2-1}}&x\in(-1,1) \vspace{6pt}\\ x^2+1 & x\in[1, \infty) \vspace{4pt} \end{array} \right. \end{equation} \begin{quote} \begin{verbatim} \begin{equation}    f(x)=\left\{      \begin{array}{r@{\quad\mathrm{if}\quad} i}        x^2-1 & x\in (-\infty,-1]\vspace{2pt}\\       {\displaystyle \frac{x^2+1}{x^2-1}}&x\in(-1,1)           \vspace{6pt}\\       x^2+1 & x\in[1,\infty) \vspace{4pt}     \end{array}   \right. \end{verbatim} \end{quote} Observations: \begin{itemize} \item The function definition is an array structure with two columns, the first one right justi- fied, and the second one left justified \verb+(+because of the \verb+{+r\verb+@{\+quad\verb+\+textrm\verb+{+if\verb+}\+quad\verb+}+1\verb+})+. \item The \verb+@{\+quad\verb+\+textrm\verb+{+if\verb+}\+quad\verb+}+ is called and \verb+@-+expression.  It causes the word ''if'' \verb+(+in roman font\verb+)+ to be inserted between the first and second columns.  The \verb+\+quad causes one space proportional to the current font size to be inserted. \item The \verb+\+displaystyle increases the font size in the fraction of the second line of the definition.  Without it, the expression in the second line appears disproportionately small. \item The two \verb+\+vspaces insert some vertical spaces between the alternative cases of the  function definition. \item Note that \verb+\+left\verb+\{+ is balanced with \verb+\+right . . \end{itemize} Here is another way to typeset the definition of f: \begin{equation} f(x)= \begin{cases}   x^2-1                                                 & \text{if $x\ in(-\infty,-1]$}\\ {\displaystyle \frac{x^2+1}{x^2-1}} &\text{if $x\in(-1,1)$}\\ x^2+1                                                  &\text{if $x\in[1, \infty)$} \end{cases} \text{\ \ \ .} \end {equation} \begin{quote} \begin{verbatim} \begin{equation} f(x)= \begin{cases} x^2-1                                                   &\text{if $x\in(-\infty,-1]$}\\ {\displaystyle \frac{x^2+1}{x^2-1}} &\text{if $x\in(-1,1)$}\\ x^2+1                                                  &\text{if $x\in[1, \infty)$} \end{cases} \text{\ \ \ .} \end {equation} \end{verbatim} \end{quote} \end{document}

\documentclass [12pt]{article} \oddsidemargin=0pt \topmargin=0pt \textwidth=6.5in \textheight=8.5in \begin{document} \begin{center} {\large\bf\LaTeX\ Example 6} \end{center} We can typeset array structures \begin{equation} \mathbf{A}\times \mathbf{B}=\left| \begin{array}{ccc} \mathbf{i} & \mathbf{j}  & \mathbf{k} \\      a_1  &      a_2        & a_3 \\       b_1  &      b_2        & b_3  \end{array}  \right| \end{equation} \begin{quote} \begin{verbatim} \begin{equation} \mathbf{A}\times \mathbf{B}=\left| \begin{array}{ccc} \mathbf{i} & \mathbf{j}  & \mathbf{k} \\  a_1  &  a_2   & a_3 \\  b_1  &  b_2   & b_3 \end{array} \right| \end{equation} \end{verbatim} \end{quote} Or \begin{equation} \mathbf{A}=\left( \begin{array}{ccc} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots &  a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{n1} & a_{n2} & \cdots & a_{nn} \end{array} \right) \end{equation} \end{document}


The title says it all: Why is the alternating group called alternating? What is being alternated that is not being alternated by any permutation?

The Dihedral group makes sense, "Di" means two, and "hedral" means.. shape I think (I've just realised how much of what I think words mean are guesses based on experience) like a "polygon" is a 2d shape, a "polyhedron" I've always thought is just "any shape" (example 3 dimensions). So "Dihedral" means 2 dimensions, which it is. (Octagon and cube have different ... reflection+rotation groups (I hope))   The symmetric group has nothing to do with symmetries of shapes, it instead is the group of all bijections from one set to another. I suppose this means symmetry as in "abc->acb" has the "symmetric" version "$abc\to bac$".  Now the alternating group... I have no idea.   Now I discovered these in "Algebra" and "Abstract Algebra" but I've peeked at the contents page of the Combinatorics book I am reading and the symmetric is discussed there, this makes a lot of sense really, combinatorics seems to be the study of finite functions and seems to be easier than functions on the reals and stuff (which felt odd as I was sketching $x^3$ before I was considering "discreet" functions, but if anything they're easier)  So I guess that they were named because Combinatorics got there first. How? What (general case) question was being faced that lead to the solution being called "The symmetric group" (or even set, I doubt combinatorics would care that it is a group).  Sometimes how and why are similar, like turning points, "how did we decide to call $\frac{dy}{dx}=0$ a turning point" and "why" are identical. However there may be many "whys" with these groups as they apply in many areas, there can be only one how. Where the term first cropped up would be a good starting point, but I've yet to find anything.  I'll answer this myself if my searching yields anything.


I wanted to install ipython3  I entered  sudo apt-get install ipython3   but I got this error:  E: Unable to locate package ipython3

How do I get to the Universe Repository in supported versions of Ubuntu?


I have a basic table looking like:

             userId	             Firstname	             Lastname

  Javascript code: (data is loaded from database) $('table tbody').append('
'+userId+'	'+firstname+'	'+lastname+'	Details
')  Now when I click on Details, it should be called the click event: $(".details").click(function () {     console.log("test") })  But nothing happen. What can it be? Is it because I am loading it with javascript?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I'm just trying to generate 8 random numbers from 1 to 25. My issue is that I already have a variable and its value is 14, with that being said my question is how to generate random numbers from 1 to 25 and if one them is equal to 14 then replace it with another random number? at the end, I want to have 8 random numbers in my array and I don't want to include 14 in it. Can anyone tell me what I'm missing or how to make this more accurate? and sometimes I only end up with 7 elements in my array, does anyone knows why?  Here's my code:    var arr = []; var currentvar = 14;  for(var i = 0 ; i < 9; i++){   var num = Math.floor(Math.random()*25) + 1;   if(num === currentvar){      num = Math.floor(Math.random()*25) + 1;   }else{     arr.push(num);   }  }   console.log(arr);

I'd like to generate unique random numbers between 0 and 1000 that never repeat (i.e. 6 doesn't show up twice), but that doesn't resort to something like an O(N) search of previous values to do it. Is this possible?


I'm sorry if this question is too metaphysical, but I will give it a try.  My textbook in introductory quantum mechanics is basing a lot of its proof and derivations on the fact that the value of the measurement must be a real value, hence no imaginary part. This is stated as something obvious and in a way taken as an axiom.   Is there any example of a measurement that is in fact a complex or imaginary number, and even if there is not, is it a bit naive to state that there can't be complex measurements? We may indeed measure non-rational values, negative values even though these numbers were not always considered numbers.

Why can't we measure imaginary numbers? I mean, we can take the projection of a complex wave to be the "viewable" part, so why are imaginary numbers given this immeasurable descriptor? Namely with operators in quantum mechanics, why must measurable quantities be Hermitian, and consequently real?


Which textbook of differerntial geometry will have these formulas about conformal transformation? $$\tilde g_{ij} = e^{2\varphi}g_{ij}$$  $$\tilde \Gamma^k{}_{ij} = \Gamma^k{}_{ij}+ \delta^k_i\partial_j\varphi + \delta^k_j\partial_i\varphi-g_{ij}\nabla^k\varphi $$ $$\tilde R_{ijkl} = e^{2\varphi}\left( R_{ijkl} - \left[ g {~\wedge\!\!\!\!\!\!\bigcirc~} \left( \nabla\partial\varphi - \partial\varphi\partial\varphi + \frac{1}{2}\|\nabla\varphi\|^2g    \right)\right]_{ijkl}  \right)$$ $$\tilde R = e^{-2\varphi}\left[R + \frac{4(n-1)}{(n-2)}e^{-(n-2)\varphi/2}\triangle\left( e^{(n-2)\varphi/2} \right) \right] $$  I've read many textbooks about differential geometry, such as Do Carmo, Kobayshi, Novikov and so on. But I never found these formulas. Who can give me a reference about these formulas.

I have a background in QFT, GR and differential geometry at the level of a master student in theoretical physics. I would like to touch the area of CFT. I know the textbook of Philippe Di Francesco. It may be too big for the beginner like me. Are there some good introductory lectures or textbooks adapted to the needs of beginners?


In a long code of 600 lines I have one part of the code that calculates something weird.  idl = 0 print type(dl), dl idl = int(dl*10)+1 print idl   This returns:  <type 'float'> 0.1 1   This calculation is done in a definition in my code. This is obviously not the expected result. The weird thing is, when I copy the code above in a separate python file:  idl = 0 dl = 0.1 print type(dl), dl idl = int(dl*10)+1 print idl   I get:  <type 'float'> 0.1 2   What could be the origin of this problem? I've extracted these parts, to make the problem simple, but if you want I can give more information.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


This is a series of books about an interstellar human civilization. After losing a few colonies to unknown reasons, Humanity comes across these rogue asteroids traveling through space. They are made up of two parts traveling at slightly different speeds. In time when they catch up to each other, there is a huge explosion. By third or fourth book the protagonist figures out this is just some kind of fireworks display setup by aliens.   I remember it having a 70s/80s feel when I read it.

This is a series of novels probably written in the last 15-20 years. I read them about 8 years ago.  The future Earth has many problems but it is not a dystopia. A means of FTL is discovered. It is easy to run (most ships require only a single crew member) but expensive to operate - Earth only builds and finances a very small number of the ships. The explorer corps (not capitalized because I do not think this is its proper name) is a very small group. Over time, it has grown smaller as Earth becomes more self-interested and less interested in paying the steep cost of learning about "what's out there."  The protagonist is a woman (who I think was petite and pretty but not beautiful). She had feelings for her mentor pilot who died before the events of the novels in the series. The novels are about how she personally survives the many pitfalls of exploring the Universe essentially by herself during her missions.  Some of the novels included these events (a line item per novel):   Rescue stranded science team, who was running out of air. Witnessing the collision of a terrestrial and Jovian planet as well as attempting to rescue a portion of the inhabitants they discover there while observing. Investigating a giant alien artifact discovered by the explorer corps. Investigate why stars are exploding for an unexplained reason and why that reason seems to be approaching the Earth (maybe in conjunction with #3).   I can almost visualize the name of the author and/or the book names but it is buried just a bit too far back in my mind.


Find $\sum\limits_{n=1}^{+\infty} \frac{1}{n(2n+1)}$  I couldn't find any pattern of this series, so that it become solvable.   Can this series be changed in any telescoping series form? I just need a hint to start.

$$\frac{1}{1 \times3} + \frac{1}{2\times5}+\frac{1}{3\times7} + \frac{1}{4\times9}+\cdots $$  How to find sum of this series?  I tried this: its $n$th term will be = $\frac{1}{n}-\frac{2}{2n+1}$; after that  I am not able to solve this.


I installed Ubuntu 14.04.1 persistent on a usb flash drive using Linux Live usb creator  and everything went fine. I gave it persistent memory for the flash drive to store changes. Once I booted up from the drive, it took a long time to boot up and after it booted, I clicked live mode so it wouldn't affect my computer. After that, I couldn't access windows files or anything so I then restarted it and went to BIOS settings and let it boot from windows. When it boots, it does NOTHING! Nothing works and not even the HP recovery manager that came with my computer doesn't boot up! I then decided to boot from the usb again to Ubuntu and I went to the hard drive and it says only "1 gig" of space used! I had a bunch of videos and files on windows that I NEED! PLEASE HELP! If there is no way to get windows back or my files, is there at least a way recover my files such as photos, music, and videos because it appears there is nothing on the HHD! Here goes a picture of my  Here is a picture of Gparted

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


$f(x)$ is continuous on $[0,\pi]$.Prove that $$\lim_{n\to\infty}\int_0^\pi |\sin(nx)|f(x)\ dx = \frac 2\pi \int_0^\pi f(x) dx$$ I made the substitution $x=\frac{u}{n} \implies \text{dx}=\frac{1}{n} \text{du}$. So, we have $\lim_{n \rightarrow \infty} \int_{0}^{\frac{\pi}{n}} \sin u f(\frac{u}{n}) du$  Now i have no idea how to proceed.

Let $a,b \in \mathbb{R}$ and $\textit{f} :[a,b] \rightarrow \mathbb{R}$ continuous on $[a,b]$.  Does the sequence $\left (\int_{a}^{b} f(x)\left |\sin(nx) \right |dx \right )$ converge? If it does, what is its limit ?  I know how to solve this for $\left(\int_{a}^{b} f(x)\sin(nx)dx \right )$ with integration by parts when $f$ is a class $C^1$ function.  Here, I don't know how to deal with the absolute value and the non-differentiability of $\textit{f}$.  Any help is appreciated, thanks in advance.


I am using Regex for the first time and I've stumbled upon something quite unpleasing... I'm looking for a format that is sometimes "two digits | four digits" or "three digits | four digits". The problem is that when called only first part of the digit string is displayed. And I'm having this problem because of the | separator between the digits, because if I put / in between instead of | everything is displayed normally. My code at the moment is like this: import re  string = '554 | 8888'  # Three digit number followed by | followed by two digit number  pattern1 = r"(\d{3}) | (\d{4})" pattern2 = r'(\d{2}) | (\d{4})'  # match variable contains a Match object.  match1 = re.search(pattern1, string) match2 = re.search(pattern2, string)  if match1:     print(match1.group())  elif match2:     print(match2.group()) else:     print("pattern not found")  And if i run the program I get: "554" instead of "554 | 8888" Any solutions and improvements are very welcome :)

I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


If $n\in\mathbb{N}$, and X is a compact metric space, show that every continuous injective function $f:X\to\mathbb{R}^n$ is a homeomorphism of X.    $(f\subseteq\mathbb{R}^n)$  So I persumed that I have to show that f is an open map from $X\to\mathbb{R}^n$: Let U be an open set in X. Then $U^c$ is closed in X, which is compact, so $U^c$ is also compact. Since $f$ is continuous $f(U^c)$ is compact in $\mathbb{R}^n$.  Then I got stuck. Does this lead to $f(U^c)$ being closed in $\mathbb{R}^n$? is it sufficient enough?

This problem is bugging me for some time.     $f:(X,\mathcal{T}) \to (Y,\mathcal{T}')$ is a continuous bijection where $(X,\mathcal{T})$ is compact and $(Y,\mathcal{T}')$ is $T_2$ (i.e. Hausdorff and $T_1$). Then show that $f$ must be a homeomorphism.   So far I have failed to understand any relation between the compactness of domain and $T_2$-ness of the range. I tried in vain to prove that $f(U)$ is open in $(Y,\mathcal{T}')$ whenever $U$ is so in $(X,\mathcal{T})$. I know $f$ makes $X$ and $Y$ respectively $T_2$ and compact and hence makes both of them $T_4$ spaces. But that is not coming to any use. I would be glad if someone helps me with a solution. Thank you.


My copy of Windows 10 N Professional recently installed the "Creators Update", and after rebooting, Windows Media Player is missing and no videos will play on my web browser.  How can I restore this functionality?

I own a Windows 10 K or N Edition which doesn't include the media player package. My problem is: I want to have preview thumbnails in the explorer for my MP3s and videos.  I had the issue before when I updated to Win10 but there  saved me. Since the Anniversary update they are gone again.   Now I can install the old update but I still don't get the media player nor the preview images.  I tried most of the things Microsoft offers me but they are either not installable or don't work.  Any ideas what might be the correct update package?  Thx!  Ron


I have three functions a,b and c. function b and c both call function a. is it possible to add some code in function a which will get info on which function is the caller?   function a() {    alert ("Hello"); }  function b() {     a(); }  function c() {     b(); }

function main() {    Hello(); }  function Hello() {   // How do you find out the caller function is 'main'? }   Is there a way to find out the call stack?


For each of the following linear transformations, find the inverse if it exists, or explain why there is no inverse.  (a) T : R 3 → R 3 where T(v) is the reflection of v around the plane x + 2y + 3z = 0  Alright so I know I have to take (1, 2, 3) and see what the reflection of v does to that, but I don't know how to do that.

For each of the following linear transformations, find the inverse if it exists, or explain why there is no inverse.  (a) T : R 3 → R 3 where T(v) is the reflection of v around the plane x + 2y + 3z = 0.  (b) T : R 3 → R 3 where T(v) is the projection of v along the vector (1, 2, 3)  (c) T : R 3 → R 3 where T(v) = Av and  A =  \begin{matrix}         1 & 1 & b \\         0 & 1 & 1 \\         0 & 0 & 1 \\         \end{matrix} where b is a real number.  So for these would I just have to put the plane or vector into matrix form and try to find the inverse? Thanks!


I think I'm on the right track, but I just don't know how to put it all together.   Also $ b\neq 0 $  I have the following:  If $ b|c $ , then $a + c = a + bq, q \in \mathbb Z$   If the $\gcd(a,b)$, say $d$, divides $a$ and $b$  Then $ d|bq $ and hence $ d | a  + bq$  Thus $d | a+c$  The problem is I don't know how to show $d$ is the $\gcd(a +c, b)$ even though I know it divides both of them. Can someone help me with this?

Given: $a = qb + r$. Then it holds that $\gcd(a,b)=\gcd(b,r)$. That doesn't sound logical to me. Why is this so?    Addendum by LePressentiment on 11/29/2013: (in the interest of  and averting a duplicate)  What's the intuition behind this result? I only recognise the proof and examples solely due to algebraic properties and formal definitions; I'd like to apprehend the result naturally.


I have a Minecraft Bukkit server and I want only zombies and friendly mobs to spawn. My version is 1.9.4 Craft Bukkit. I already tried plugins like Selective Spawns or Mob Spawn Settings but they don't work. Can you help me?

I'm making a maze where you have to fight zombies and get to the end, but all these other mobs start showing up and I can't figure out how to spawn only zombies. Also, I can't use dispensers.


I have encountered a serious problem when using tracking markers: I tracked a single point over a range of 3000 frames in small steps e.g. I manually corrected the position every 50 frames. When rewatching the 50 frames, all the tracking seems to be very accurate. However, when I rewatch the whole footage, suddenly in some ranges the accuracy is terrible. But somehow these ranges vary and are at different positions from time to time. Even more surprising is that even those frames at the beginning of the 50 frames, which HAVE to be correct, aren't. To me it seems like there is either some offset in the displaying of the markers, or they get saved wrongly somehow. Has anyone an idea, what could be the reason for this?  EDIT: Just changing the input format from .mp4 to .png solved the problem completely.

First, I'm a newb to tracking.  That said, I tracked my scene with a .3 solve rate. I dropped in a cube and rendered out a short animation... looked great.  I readjusted the position of my cube... nothing more... and now my track is broken.  All tracking points were locked, I did not resolve the scene... just suddenly my object is wobbling all over in the render.  Going back to my LOCKED tracking points, they are no longer staying put.  Anyone else seen this?  Has happened on 2 machines, same reproduction steps. This last one was first time I tried locking the tracking points.  Memory issue?    Thanks...


I am getting the below error when trying to call the HTTP POST using the Apex  Http http = new Http(); HttpRequest request = new HttpRequest(); request.setEndpoint('https://ap5.salesforce.com/services/oauth2/token'); request.setMethod('POST');  request.setHeader('Content-Type', 'application/x-www-form-urlencoded'); request.setHeader('client_id','3MVG9d8..z.hDcPJZPXXXXXXXXXXXXXXXXXXX'); request.setHeader('client_secret','XXXXXXXXXXXXXXXXXX'); request.setHeader('username','XXXXXXXXXXXXXXXXXX'); request.setHeader('password','XXXXXXXXXXXXXXXXXXXXXX'); request.setHeader('grant_type','password'); request.setHeader('callbackURL','https://ap5.salesforce.com/oauthcallback.html');  request.setBody('');  HttpResponse response = http.send(request); System.debug('Response :: '+response.getBody());   And I get the error message.  Response :: {"error":"unsupported_grant_type","error_description":"grant type not supported"}   I am able to call successfully using REST/POSTMAN client and getting the access_token.

I've looked at this question     and many other forums with this same problem.  I'm trying to access restful webservice we created in our salesforce instance with postman.  I'm using this url  and these url params  grant_type=password client_id={my id} client_secret={my secret} username=username@domain.com password={password}{security token}   I'm getting this response  {   "error": "invalid_grant",   "error_description": "authentication failure" }   In the connected app settings, I've added my IP under trusted IPs.  I've set IP Relaxation to "Relax IP restrictions".  I set permitted users to "All users may self-authorize".  I added my IP address under Administer->Security Controls->Network Access.  Is there supposed to be a delimiter between password and security token in the password URL parameter?  I can view my connected app through two views in salesforce.    When I go to Administer->Manage Apps->Connected Apps I see it there but when I hover the mouse over it, it doesn't say "Managed-Installed" and it doesn't have the little blue arrow next to the link.  But when I click on it it says its installed  I also can view it through Develop->Remote Access which then redirects me to a page where I'm able to click on it and see the consumer key and consumer secret.  I tried sending a request from the developer console and I get the same error.  I tried sending with and without the security token appended to the password.  I do have the '@' character in the password, could that be causing a problem?  HttpRequest req = new HttpRequest(); req.setMethod('POST'); req.setEndpoint('https://login.salesforce.com/services/oauth2/token'); req.setBody('grant_type=password' +             '&client_id=' + 'id'+            '&client_secret=' + 'secret' +            '&username=' + 'username@domain.com.currentdev' +            '&password=' + 'password'); Http h = new Http(); HTTPResponse res = h.send(req); System.debug('Body ' + res.getBody()); System.debug('Status ' + res.getStatus()); System.debug('Status code ' + res.getStatusCode());   Thanks @Eric, the problem was I'm in a test environment so I should be using test.salesforce.com not login.salesforce.com


Is it possible to \print(the whole)bibliography of one author and then further in the text to \print(the whole)bibliography of another author, and then a third author, etc. The entries that have at the same time the first and the second author should be printed once for each author. The authors might be cited at any rank in the author list. Different reference types (article, inproceedings, patent, etc.) are present in the bib file. Here is a minimal example borrowed and adapted from  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib}  @Article{a,   date =     2001,   author =   {Kennedy, J. and Clinton, B.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{b,   date =     2003,   author =   {Author, Amy and Kennedy, J. and Kennedy, J.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{c,   date =     2005,   author =   {Kennedy, J.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{d,   date =     2007,   author =   {Clinton, B.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{e,   date =     2009,   author =   {Biden, J.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{f,   date =     2011,   author =   {Clinton, B.},   title =    {Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @Article{g,   date =     2013,   author =   {Biden, J. and Clinton, B.},   title =    {Title},   booktitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @INPROCEEDINGS{h,   date =     2001,   author =   {Kennedy, J. and Clinton, B.},   title =    {Inproc-Title},   booktitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  @INPROCEEDINGS{i,   date =     2003,   author =   {Author, Amy and Kennedy, J. and Kennedy, J.},   title =    {Inproc-Title},   journaltitle = {Journal},   volume =   10,   number =   4,   pages =    {100-141}}  \end{filecontents*}   \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib}  \begin{document} \nocite{*} \end{document}

I would like to create a template for a publication list that can then be used by several people. The idea is that there is one bib-file which contains all of the publications. Peer-reviewed entries are marked with the keyword = pr. Then there is the master-file of the type scriptreport in which everyone can integrate their chapter-file in order to merge the publication lists of everybody into one file. The chapter file is the core of everything and should be reusable. It should filter out the entries for the respective author from the bib file and print them out in two lists (peer-reviewed and non-peer-reviewed). My problem is that I don't really know how to filter by author in this case. Here are the rough codes of the two files: Master: \documentclass[a4paper]{scrreprt}  \usepackage{biblatex}  \title{Publication list}  \addbibresource{sample.bib}  \begin{document}     \maketitle          \tableofcontents     \newpage          \include{Researcher}     \newpage \end{document}  chapter: \chapter*{Researcher} \addcontentsline{toc}{chapter}{Researcher}          \nocite{*}     \printbibliography[keyword={pr}, title={Peer-reviewed}]          \nocite{*}     \printbibliography[notkeyword={pr}, title={Non-peer-reviewed}]


For a project into balloon simulation I'd like to know how the force on a balloon changes with altitude:  I know that the Buoyant force on a balloon is:  $F = (\rho_{air} - \rho_{helium})gV$  Using changing air density from the international standard atmosphere and changes in gravitational acceleration I can calculate the buoyant force and add this to the (negative) force of gravity mg.  However I know that it isn't this simple, the balloon changes volume with altitude as the air pressure outside the balloon changes.  I'd like to know how the balloon inflates - this would be a great help!  I think it may be something to do with ideal gas laws -  I can calculate air temperature and pressure from the international standard atmosphere but do I use pressure as the air pressure? - or air pressure minus balloon pressure?

I'm trying to model the ascent of a helium filled weather balloon from 0km to 25km altitude. The plan is to eventually use a python script to calculate the time taken to reach 25km. However, I don't really know where to start.  I have worked out an expression for acceleration in terms of the balloons volume and the density of surrounding air. I now need to find an way of calculating the volume at a given altitude such that I can model the acceleration throughout the ascent.  So if anyone could help me with this I would greatly appreciate it.


Suppose we have this code  \begin{center}         \begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto]              \node[state,initial, accepting] (q_0)   {$q_0$};              \node[state] [right=of q_0] (q_1) {$q_1$};             \path[->]              (q_0) edge node {$a,b$} (q_1)             (q_1) edge [loop above] node {$a,b$} ();          \end{tikzpicture}          \captionof{figure}{This DFA represents $L_1 = \{\lambda\}$} \end{center}   That produces:   How do I get rid of the spacing between between the L_1 = and { }?  Is this because of the centering?

It seems that math in captions gets stretched out as illustrated in Figures 2, 3 and 4:  The problem shows up with pdflatex on the second run. The solution given in  of adding an additional curly brace ${y = mx + b}$ works but wondering if there is a better solution for captions. A bit of stretch in order to justify text would be ok, but in this case that does not seem to be the issue and the stretching seems quite large. References:     Code: \documentclass{article} \usepackage{showframe} \usepackage{graphicx}  \usepackage{caption}  \DeclareCaptionStyle{mystyle}   {format=plain,%     font=footnotesize,     textformat=period,     justification=RaggedRight,     singlelinecheck=true,   }% all captions are left aligned  \DeclareCaptionStyle{singlelinecentered}   [justification=Centering]% centered if single line and no `singlelinecheck=false`   {style=mystyle}% other captions are left aligned  \DeclareCaptionStyle{singlelineraggedleft}   [justification=RaggedLeft]% right aligned if single line and no `singlelinecheck=false`   {style=mystyle}% other captions are left aligned  \captionsetup{style=singlelineraggedleft}  \begin{document} \noindent \begin{minipage}{0.5\linewidth}     \centering     \includegraphics[width=0.95\linewidth, height=2cm]{example-image}%     \captionsetup{width=0.95\linewidth}%     \captionsetup{singlelinecheck=false}%     \captionof{figure}{$y=mx+b$ on Left}% \end{minipage}% \begin{minipage}{0.5\linewidth}     \centering     \includegraphics[width=0.95\linewidth, height=2cm]{example-image}%     \captionsetup{width=0.95\linewidth}%     \captionof{figure}{$y=mx+b$ on Right}% \end{minipage}%  \medskip\noindent \begin{minipage}[t]{0.5\linewidth}     \centering     \includegraphics[width=0.95\linewidth, height=2cm]{example-image}%     \captionsetup{width=0.95\linewidth,style=singlelinecentered}%     \captionof{figure}{$y=mx+b$}% \end{minipage}% \begin{minipage}[t]{0.5\linewidth}     \centering     \includegraphics[width=0.95\linewidth, height=2cm]{example-image}%     \captionsetup{width=0.95\linewidth}%     \captionof{figure}{$y=mx+b$}% \end{minipage}% \end{document}


I am using the following code to extract raster values over a SpatialPolygonDataFrame.  result<-extract(Stack, polygons)  >Stack class       : RasterStack  dimensions  : 634, 862, 546508, 13  (nrow, ncol, ncell, nlayers) resolution  : 10, 10  (x, y) extent      : 492660, 501280, 4378960, 4385300  (xmin, xmax, ymin, ymax) coord. ref. : +proj=utm +zone=29 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0  names       : L2A_T29SM//21_B02_10m//etc.  min values  :             1.0000000,             1.0000000,             1.0000000,             1.0000000,             1.0000000,             1.0000000,             1.0000000,           119.0000000,            88.0000000,             1.0000000,   -0.9932203,   -0.9959184,    1.0000000  max values  :          1.460000e+04,          1.547100e+04,          1.485900e+04,          1.547600e+04,          1.168700e+04,          1.131400e+04,          1.109100e+04,          1.084500e+04,          1.451000e+04,          1.105000e+04, 9.996238e-01, 9.992918e-01, 4.000000e+00     > polygons class       : SpatialPolygonsDataFrame  features    : 13  extent      : 493428.6, 499603.9, 4379481, 4383781  (xmin, xmax, ymin, ymax) coord. ref. : +proj=utm +zone=29 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0  variables   : 3 names       : id, ID_1,    LC  min values  :  1,    1,  Agri  max values  :  9,    4, Water    Then I want to create a dataframe out of it but I received the following error:  resultdf<-as.data.frame(result) Error: arguments imply differing number of rows: 225, 320, 286, 351, 68, 79, 41, 63, 70, 171, 72, 158, 497.    From what I check in the forum it is a problem with the data structure since the dataframe would not have the same length; how can I solve it?

I have a raster image (Sentinel-2 band 4) and a shapefile covering the same area than the image (same projection and extension). The shapefile has different polygons which are agricultural fields.   I want to create a new file where, for each polygon, the mean value of the pixels that are inside it is calculated.  Could you please help me to find an appropriate R code for that?


Let $R=\mathcal{C}(X,\mathbb{R})$ denote ring of all continuous real valued functions on $X(\subseteq \Bbb{R})$. Let $X=[0,1]$. Then We know for any $\alpha\in X$, $M_{\alpha}=\{f\in R:f(\alpha)=0\}$ is a maximal ideal of $R$ and also, any maximal ideal of $R$ is $M_{\alpha}$ for some $\alpha\in X$. But I got to know that the latter one of above does not hold if we take $X=(0,1)$. That means, there is a maximal ideal of $\mathcal{C}((0,1),\mathbb{R})$ which is not of the form $M_{\alpha}$. Can anyone please give such an example of a maximal ideal of $\mathcal{C}((0,1),\mathbb{R})$. Thank you.

I know $\mathcal C([0, 1])$ has all maximal ideals of the form $M_p=\{f\in \mathcal C([0, 1]) : f(p) =0,\  p\in [0, 1] \}$. My question is little bit different.  If I replace $[0, 1]$ by $(0, 1)$  then how can I show that this ring has infinitely many prime ideals not of the form $M_p$ ?


So I'm practicing Ruby on Codeacademy and to save the work that I'm doing I copied and pasted my code onto my cmd prompt using VIM.  However, I noticed that each line of code was commented with the '#' symbol and I wanted to remove them.   To be productive,  I searched online how to use regex to search for all the hashtags and remove them with this command:  :%s/#//gc   Then this popped up:      replace with  (y/n/a/q/l/^E/^Y)?   I pressed y every time until the message disappeared and now I'm stuck with all hashtags characters being replaced with a yellow rectangle. So instead of having this:  #   I have this:  [] but shaded in yellow for every time I use a hastag.   Any help would be much appreciated!

I search for "nurple" in a file. I found it, great. But now, every occurrence of "nurple" is rendered in sick black on yellow. Forever.  Forever, that is, until I search for something I know won't be found, such as "asdhfalsdflajdflakjdf" simply so it clears the previous search highlighting.  Can't I just hit a magic key to kill the highlights when I'm done searching?


I have a string conditions logic that retrieves values for a Map<String,Boolean> and checks if logic is true or false. For example my logic looks like:  ((1A2)O3)   Being A => AND and O => OR.  And my map has this kind of structure:  new Map<String,Boolean>{'1'=>true,'2'=>false,'3'=>true};  Is it possible to replace characters in logic conditions with boolean values and get a proper result in Apex? Or even in Javascript?

Boolean b1 = true; Boolean b2 = true; String b3 = 'b1 && b2'; Boolean b4 = Boolean.valueOf(b3); system.debug('test Bool '+ b4);   Given a string how can you convert into expression without breaking the sting.


From working on a problem I was lead to consider the function $\frac{T_n(n)}{e^n}$ where $T_n(x)$ is the $n$'th order Taylor polynomial of $e^x$.  Numerical evidence suggest that  $$\lim_{n\to \infty} \frac{T_n(n)}{e^n} \equiv\lim_{n\to \infty} \frac{\sum_{k=0}^n\frac{n^k}{k!}}{\sum_{k=0}^\infty\frac{n^k}{k!}} = \frac{1}{2}$$  Is there a nice proof for this statement? More generally: is there a 'standard' approach for evaluating limits on the form $\lim_{n\to\infty}\frac{f_n(x_n)}{f(x_n)}$ where $f_n$ is a series converging (uniformly) to $f$ and where $x_n$ is an unbounded sequence? I would also apprechiate refs. to similar questions on this site or in the literature (I could only find ).

I'm supposed to calculate: $$\lim_{n\to\infty} e^{-n} \sum_{k=0}^{n} \frac{n^k}{k!}$$ By using WolframAlpha, I might guess that the limit is $\frac{1}{2}$, which is a pretty interesting and nice result. I wonder in which ways we may approach it.


I'm trying to use values from one file and pass them as inputs for variables of another file. Essentially I'm trying to create another file while reusing values from the first file.   When I perform "cat example.txt" I get to see the contents of the example1.txt. Now, from the contents I would like to GREP the lines that I need and pass the values of those lines to a variable. I will then use that variable in subsequent script which will get the values from memory.   contents of example1 file is..  key:value key2:value2 key3:value3 Key4:value4   Now I want to pass key1,key3 to a variable $value1,$value3 and then reuse in example2 like below..  key:"$value1" key2:value2 key3:"$value3" key4:value4   This way the second file can use the values from first commmand output.

I want to pipe the output of a "template" file into MySQL, the file having variables like ${dbName} interspersed. What is the command line utility to replace these instances and dump the output to standard output?


I removed windows 10 and installed ubuntu 16.04.01. While installing I chose 2nd option (can't remember exact name but description was like erases all programs of all operating systems). Now I can't see contents of my C: and D. Can you help me.  Thanks in advance.

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


I am using Texstudio to write my paper and I need to include graphics figures as eps format. I have a problem when I use \includegraphics, as shown in the below image the eps figure, is converted from eps to PDF then the PDF image is added into the resulted PDF. Is it available to import eps image without converting it into PDF?  Thanks in advance     output PDF file    the ABER_VS_SNR.eps was greater after I have run the code.

Everything works perfectly except until the error below. I'm slightly new at LaTeX and perhaps I'm missing a package, but I already have the graphicx package. Any help will be greatly appreciated!  ! LaTeX Error: Unknown graphics extension: .eps.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.24 \includegraphics[width=2.6in]{02_1.eps}  ?


I have recently submitted an article to a tylor & francis journal which uses ScholarOne.  My co-author submitted the article 22 days ago, and since then, the status has remained as "Awaiting Editorial Office Process".  Is it alright that it hasn't been changed for so long? Should I contact the editor?  How long does the process take normally?  NOTE: thank you for suggesting this page "What does the typical workflow of a journal look like?", I have read this topic. Unfortunately in this paper the average time for "Awaiting Editorial Office Process" was considered to be "A FEW WORK DAYS". My problem is I have waited for 22 days. If anyone have had the same experience, I would really appreciated answering me. Thank You.

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


hey I am making small C++ program to calculate the value of sin(x) till 7 decimal points but when I calculate sin(PI/2) using this program it gives me 0.9999997 rather than 1.0000000 how can I solve this error? I know of little bit why I'm getting this value as output, question is what should be my approach to solve this logical error? here is my code for reference #include <iostream> #include <iomanip> #define PI 3.1415926535897932384626433832795 using namespace std;  double sin(double x); int factorial(int n); double Pow(double a, int b);  int main() {     double x = PI / 2;     cout << setprecision(7)<< sin(x);     return 0; }  double sin(double x) {     int n = 1;      //counter for odd powers.     double Sum = 0; // to store every individual expression.     double t = 1;   // temp variable to store individual expression     for ( n = 1; t > 10e-7; Sum += t, n = n + 2)     {         // here i have calculated two terms at a time because addition of two consecutive terms is always less than 1.         t = (Pow(-1.00, n + 1) * Pow(x, (2 * n) - 1) / factorial((2 * n) - 1))             +             (Pow(-1.00, n + 2) * Pow(x, (2 * (n+1)) - 1) / factorial((2 * (n+1)) - 1));     }      return Sum; } int factorial(int n) {     if (n < 2)     {         return 1;     }     else     {         return n * factorial(n - 1);     } } double Pow(double a, int b) {     if (b == 1)     {         return a;     }     else     {         return a * Pow(a, b - 1);     } }

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Let's say we have function $y=\sqrt x$. For natural numbers it has two solutions. For example $\sqrt 4 = \pm2$. Wouldn't it make sense then to graph a sideways parabola with more than one points in vertical lines? Why mathematics say you can't do this when it is very obvious the square root of $x$ is only reflection of $x^2$ along the $y=x$ line?

I know that it is defined such that there is no more than one y-value output for any given x-value input, but I"m wondering WHY it is defined that way? Why can't we apply everything we know about functions to equations that have more than one y-value output for any given x-value input?   In short, what is the benefit or reason to define a function this way?  At the same time, a little historical context would also be appreciated (i.e., when the concept originated and why).  Thanks,  Moshe


I am a new Linux user, so today I decided on trying Ubuntu as my first Linux distribution. After updating and upgrading, I decided to start installing my usual applications, such as VLC, Skype and Zoom, but with the last one I got a problem. I tried to install Zoom from the  I have selected:  Linux Type: Ubuntu OS Architecture: 64 bit (matches my CPU) Version: 16.04+; 12.04 (I put both of them, because I have tried both).  I tried to install them with the Ubuntu Software Install, and neither of them could be installed. The error:  Failed to install file: not supported  I do not know if the names of the versions are versions of Zoom, or past versions of Ubuntu OS. Thanks for reading, I would appreciate any help. Have a great day.

Just installed Ubuntu 20.04. The latest version of zoom (software-install) I found is 14. Can anyone help me how to install zoom? I and my wife need it for online classes.


I'm trying to understand a  that will stop when executed as root:  #!/usr/bin/env bash  if [ x"$(whoami)" = x"root" ]; then     echo "Error: don't run this script as root"     exit 1 fi   I have tested this and it works as intended even if I remove the x in the if statement. My question is why is the x in x"$(whoami)" and x"root" needed?

I see this often in the build scripts of projects that use autotools (autoconf, automake).  When somebody wants to check the value of a shell variable, they frequently use this idiom:  if test "x$SHELL_VAR" = "xyes"; then ...   What is the advantage to this over simply checking the value like this:  if test $SHELL_VAR = "yes"; then ...   I figure there must be some reason that I see this so often, but I can't figure out what it is.


In my table I have a few duplicate records. I want to simply delete them and leave one entry in the table.  Columns which matching is [SourceGradeId] from table A.  Can anyone show me a very simple delete query rather altering the table?

What is the best way to remove duplicate rows from a fairly large SQL Server table (i.e. 300,000+ rows)?  The rows, of course, will not be perfect duplicates because of the existence of the RowID identity field.  MyTable  RowID int not null identity(1,1) primary key, Col1 varchar(20) not null, Col2 varchar(2048) not null, Col3 tinyint not null


I'm looking for a pair of YA science fiction books from the 90's about a rebellion against an evil space empire. I remember reading these books in primary school, in the 90's, but don't remember a lot about them.  As is often the case, I can recall only some details about the book, not the main plot itself.  • The protagonist had a metal coated spine.  • Pretty sure the name Legionnaires was involved.  • The rebellion had a base inside a hollow meteorite.  •It was a two book series, both in hard cover, they were also quite popular for years in the second hand bookstore & library market, but I haven't seen a copy for years.  •They had quite distinctive cover art that covered both the front and back of the book. It was an almost 1980's sci fi comic book look to the cover art, with our hero fighting human soldiers in identical green military uniforms, but not modern military space uniforms, they had that Blake Seven evil empire look to them, but in green.

I remember that the main character is trying to find the group that destroyed his home planet while he was on a mission. His planet was very difficult to live on and the people became expert in martial arts and were the best soldiers in the galaxy. They were mercenaries and often helped against tyrants. There was a very memorable section in at least one book about an initiation task that the main character had to do in that he had to survive in their wilderness for days. He was at some point surrounded in a old building by thousands of poisonous worm/snake creatures that he managed to survive until rescued by the leaders.


I am the datacenter manager at a small ISP and we have been having an issue with mystery scripts sending out SPAM on our server. These PHP scripts will appear mysteriously in /tmp as well as sometimes in website folders. We had the software "Gallery" installed, which required dangerously elevated permissions and allowed these scripts to be injected. I have since limited that site via .htaccess to our office only, and now spam has ceased showing up in the website folders, but still shows up in /tmp as well as other website folders. Our server runs exim with Directadmin on Debian 2.6.26-29.  To find the SPAM scripts I run:      server:/# grep cwd /var/log/exim/mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n         1 /home/xxx/domains/XXX/public_html/cgi-bin/formmail       2 /       2 /home/xxx/domains/xxx.com/public_html/wp       2 /home/xxx/domains/xxx.com/public_html       2 /home/xxx/domains/xxx.com/public_html       4 /usr/local/directadmin      11 /home/admin     303 /home/admin/domains/xxx/public_html/components    2947 /tmp   Does anyone know how to find out where these scripts are coming from? Apache is the owner of the SPAM scripts. Thank you in advance.

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


I am trying to prove that the function $$f(N)=\sum_{n=1}^N \cos(n^2)$$ is unbounded. Admittedly, I don't know for certain that it is, but someone told me, and I would like to see it for myself. First, I thought it might be because the square numbers mod $2\pi$ was not uniformly distributed, but numerics seem to imply that they are. My next thought is then that it has to do with the fact that we might have positive or negative subsequences in the sum of arbitrary length. However, what is a good strategy for proving this kind of statement?

I know $\sum_{k=1}^{n} \sin(k)$ is . How about $\sum_{k=1}^{n} \sin(k^2)$?


Question:            Let f and g be continuous mappings of a metric space X into a metric     space Y and let E be a dense subset of X. Prove that f(E) is dense in     f(X). If $f(p) = g(p)$ for all p $\in$ E prove that  $f(p) = g(p)$ for all     X.         Answer:          Let's show that every point of f(X) is either a point of f(E) or a   limit point of f(E) or both. Suppose that y $\in$ f(X). Then, there   exists a point p $\in$ X such that f(p) = y. Since E is dense in X,   p $\in$ E U E$'$. If p $\in$ E then y $\in$ f(E) and we are done. If   p $\in$ E$'$ and p is not in E, then there exists a sequence p$_n$   $\in$ E such that p$_n$ -> p. We then have f(p$_n$) -> f(p).   That is , f(p) $\in$ f(E).   Now, suppose f(p) = g(p) for all p $\in$ E. Let x $\in$ X\E. Since E is dense in X we have a sequence q$_n$ $\in$ E such that q$_n$ -> x.   So,   f(x) = f(lim q$_n$) = lim f(q$_n$) = lim g(q$_n$) = g(lim q$_n$) = g(x). Thus, f(x) = g(x) for all x $\in$ X      Could you tell me if the bold line is legitimate and explain me why it is legitimate if it is? Thank you so much!

Let f and g be continuous mappings of a metric space $X$ into a metric space $Y$ and let $E$ be a dense subset of $X$. Prove that $f(E)$ is dense in $f(X)$. If $g(p)=f(p)$ for all $p \in E$, prove that $g(p)=f(p)$ for all $p \in X$.


I am using amsmath, and I want to be able to break a mathematical derivation into multiple align environments while maintaining their collective alignment.  In particular, I would like to horizontally align an entire derivation as though it were one align environment for the purposes of visual flow, so that when the derivation continues in the next align, the eye can easily follow from where it left off, despite arbitrary explanatory text at any point in the middle.  As far as I'm aware, aligning align environments in this fashion is not directly possible.  Is there a simple modification that can be made or a straightforward package that can be used to effectively "link" multiple align environments into one?  MWE  \documentclass{article} \usepackage{amsmath}  \begin{document}  This alternate derivation of the quadratic formula proceeds by first multiplying the equation by $4a$, rearranging, and adding $b^2$ to both sides: \begin{align}     ax^2 + bx + c &= 0 \\     4 a^2 x^2 + 4abx + 4ac &= 0 \\     4 a^2 x^2 + 4abx &= -4ac \\     4 a^2 x^2 + 4abx + b^2 &= b^2 - 4ac \end{align}  Then, having completed the square on the left-hand-side, factor it, take the square root, and solve for $x$: \begin{align}     (2ax + b)^2 &= b^2 - 4ac \\     2ax + b &= \pm \sqrt{b^2-4ac} \\     2ax &= -b \pm \sqrt{b^2-4ac} \\     x &= \frac{-b \pm \sqrt{b^2-4ac}}{2a} \end{align}  \end{document}   Output

Some people have asked about how to add multiple paragraphs (when \intertext and \shortintertext no longer work), a fix was proposed by Peter Grill :  He wrote:     My first thought was to hack apart the result of an align and dole   out the lines one-by-one wherever you want them. Alas, align   produces a list of considerable complexity and it is not worth the   effort to unravel it (if that's even possible).      So I made my own alignment environment that, as far as I can tell,   does what you'd want align* to do but produces a very simple list.   My macro \ALineAgain then picks that list apart and drops the lines   one at a time wherever you ask.      Because the lines are not printed where the alignment is actually   given, it makes no sense to have an AlignAgain*; it never prints   equation numbers. Instead, the \ALineAgain macro takes a star that   suppresses the addition of an equation number.   The problem with this code is that the equation numbers seem to be messed up once you try referencing them. Below, I've added only a few lines to Peter's code (notably: \numberwithin{equation}{section}, two section commands, and then a single line at the very end that attempts to reference the two equations).   Rather than printing (1.1) and (1.2), it prints (1.1) and (1.1). There seems to be something wrong with the equations portion of the code. Can anybody spot the problem?   \documentclass{article} % \usepackage{showframe} \usepackage{amsmath}  \numberwithin{equation}{section}  % It's like {align}, but simple! \newenvironment{SimpleAlign} {%  \let\\=\cr  \tabskip 0pt plus 1fil\relax  \halign\bgroup   &\hfil$\displaystyle ##$\tabskip 0pt\relax   &$\displaystyle {}##$\hfil\tabskip 0pt plus 1fil\relax\cr } {%  \crcr\egroup }  % Saves its contents typeset like SimpleAlign.  You can give it a name. \newenvironment{AlignAgain}[1][AlignBox] {%  \expandafter\let\expandafter\AlignAgainBox\csname #1\endcsname  \setbox\AlignAgainBox=\vbox\bgroup\SimpleAlign } {%  \endSimpleAlign\egroup  \ReBox\AlignAgainBox } \newbox\AlignBox  % Prints the lines from {AlignAgain} one-by-one, with or without equation numbers as starred.  If you named the {AlignAgain}, use it here. \makeatletter \newcommand\ALineAgain{%  \@ifstar   {\AlignAgainStartrue\@ALineAgain}   {\AlignAgainStarfalse\@ALineAgain}% } \newcommand\@ALineAgain[1][AlignBox]{%  \expandafter\let\expandafter\AlignAgainBox\csname #1\endcsname  \begin{equation*}   \PutFirstBox\ifAlignAgainStar\AlignAgainBox  \end{equation*} } \makeatother \newif\ifAlignAgainStar  % Reboxes a box in the format: {[1][2]...[n]} -> {[1]{[2]{...}[n]}} % {...} = \hbox \newcommand{\ReBox}[1] {%  % To enter internal vertical mode, where \lastbox is valid  \setbox0=\vbox{%   \unvbox#1\relax   \global\setbox#1=\hbox{\hbox{}}   \loop    \unskip    %\box0 is the box currently at the end of #1    \setbox0=\lastbox   \ifvoid0\relax   \else    \global\setbox#1=\hbox{\box0\box#1}%   \repeat  }% }  % Puts the first box in a nested-box list into the display, saving the rest back in #1 % Optionally places an equation number \newcommand{\PutFirstBox}[2]{%  \hbox to \displaywidth{%   \unhbox#2\relax   \global\setbox#2=\lastbox   \setbox0=\lastbox   \unhbox0%   #1\else\refstepcounter{equation}\llap{(\theequation)}\fi  }% }  \begin{document}  \section{First section} \subsection{A subsection} Hello \begin{AlignAgain}  a &= b & c &= d \label{firsteqn} \\  f(x) &= g(x) & h(x) &= e^{-1/x^2} \label{myeqn} \\ \end{AlignAgain}  This is a paragraph with a lot of redundant words whose only purpose is to extend it onto a new line or two so it's dramatic when I display this equation: \ALineAgain and then follow it with a bunch more text.  And also a new paragraph, just for good measure.  I wonder if the two equations will line up?  I sure hope so! \ALineAgain This is sort of fun.   Can we reference equations by section? Try (\ref{firsteqn}) and (\ref{myeqn}).  \end{document}


I need to create an executable for Windows NT ( yes, Windows NT still exists ). The problem that I have is that VS2005 uses CRT/MFC 8.0, therefore after running the application using the CRT 8.0 libraries I will get an error complaining that GetlongpathnameW doesn't exist on the target environment, which should be fixed by going back to MFC 7.1 CRT libraries.  I have the libraries that I acquired from somewhere else (mfc71.dll, msvcp71.dll, msvcr71.dll....) but how do I get VS to use those instead of the default ones (MFC80.dll....)?  Here is the link of a person with the similar problem:   Thanks!

An MFC application that I'm trying to migrate uses afxext.h, which causes _AFXDLL to get set, which causes this error if I set /MT:     Please use the /MD switch for _AFXDLL builds   My research to date indicates that it is impossible to build an application for execution on Windows NT 4.0 using Visual Studio (C++, in this case) 2005.  Is this really true? Are there any workaround available?


I have a program in Perl that I want to translate into Python. Right now the focus is on rote translation, then I will go through and make it more Pythonic (there are a lot of files and a couple people working on it so I don't want to mess up the logic flow by changing the code too much).  The Perl code creates a hash InputData that it fills with data from an input file. At first it was 1-dimensional, so I just used a dictionary. Then the code added a second dimension, and after looking at  I used defaultdict(dict). Now my Perl code has added a third dimension and looking forward in the code there is a fourth dimension used as well.  I have been testing dicts in Jupyter Notebook, and I get this KeyError when I try to add a third dimension.  my_dict = defaultdict(dict) my_dict['Status'] = 'free' my_dict['Results']['Test1'] = 1 my_dict['Variables']['Coords']['X'] = 2  --------------------------------------------------------------------------- KeyError                                  Traceback (most recent call last) <ipython-input-19-dbbf5ada990b> in <module>       2 my_dict['Status'] = 'free'       3 my_dict['Results']['Test1'] = 1 ----> 4 my_dict['Variables']['Coords']['X'] = 2  KeyError: 'Coords'   Is there some other way to create a multidimensional Python dict? Is this ridiculous? What other data type could I use instead?  Thanks for any help!

A lot of times in Perl, I'll do something like this:  $myhash{foo}{bar}{baz} = 1   How would I translate this to Python? So far I have:  if not 'foo' in myhash:     myhash['foo'] = {} if not 'bar' in myhash['foo']:     myhash['foo']['bar'] = {} myhash['foo']['bar']['baz'] = 1   Is there a better way?


In the book it is given if A and B are two finite sets containing $m$ and $n$ elements, respectively, then the number of onto functions from A to B will be if   $n \leq m$   $$\sum_{r=1}^n (-1)^{(n-r)} {n \choose r}(r)^m $$  well I can't understand it and I am aware with combinations.

What are the number of onto functions from a set $\Bbb A $ containing m elements to a set $\Bbb B$ containing n elements.  I found that if m = 4 and n = 2 the number of onto functions is 14.  But is there a way to generalise this using a formula? If yes, what is this formula and how is it derived?  reference  I referred to this question but my doubt was not cleared:   If not, Then what is the standard way of doing it?   If you explain this to me with an example please explain with the example of m = 5 and n = 3.


I have an eCommerce website and most of the categories have multiple pages.  I have ran an SEO check on seobility which mentioned duplicate content and pages fighting with each other for the same keywords. When  checked, the duplicate content and pages weighting where of the same category just different pages.  ie...    example.com/category/ example.com/category/page2/ example.com/category/page3/   I have the option to noindex extra pages but was wondering if this was worth doing?  My concern is that it may limit exposure of certain products which may appear on deeper pages.

In the WordPress SEO plugin by Yoast, there is an option that could noindex the subpages of archives. From example, it would noindex the following:  http://example.com/page/2/ http://example.com/page/3/ http://example.com/page/4/   … and so on. Is there a good and legitimate reason to do this, in terms of SEO? Would it benefit me in any way?


I know how to compute the unit vector  $$\hat{\textbf{u}} = \left(    \frac{u_1}{||u||} , \dots , \frac{u_n}{||u||}  \right)$$  and I also know how to show that this will have length 1 by using the definition of a norm.   What I do not understand is why dividing each coordinate by a scalar (in this case the norm of u) maintains the direction of the original vector.  Is there some axiom that says that dividing/multiplying each coordinate by a scalar always  maintains direction? Is there a way prove the direction does not change?   It's easy to see how things scale up and down in 2D, but I'm curious if there is a way to show that the direction is always maintained regardless of the dimension.

I've just started studying linear algebra, and I'm having trouble understanding something that apparentely seems obvious to everyone else. My question is, why does multiplying a vector by a positive scalar does not change its direction? I've seen some visual representations of this and it does seem reasonable to me that that should be the case. However, I wonder whether there is a way to actually show it mathematically? In the 2d coordinate plane, for instance, I guess way one of showing that vector $A$ has the same direction of $cA,c>0$ would be to show that the line containing $A$ has the same slope as the one containing $cA$ (I'm not sure if this approach is correct though). However, how to proceed in the case of $n$ dimensions? I think I must be missing out something basic here, but I really can't seem to get my head around it. Any help will be highly appreciated. Thanks very much in advance.


Just happend to me: the achievements box showed me a green +1. I was surprised to see that; wondering how "+1" could come up in the first place.  So I clicked on achievements ... the green +1 goes away ... and I am looking at the very same achievements (and "total sum") that I saw there like 30 minutes ago, when I last checked. No signs whatsoever pointing out what that "+1" was about.  Any idea what could be going on here?

Every so often I appear to have a random reputation gain of 1. It just happened on math.stackexchange and I know that I didn't get downvoted by anyone in between. Any ideas of how that happens?


The displayed reputation on per site meta is the same as on the respective parent site. However, out of curiosity, I'd like to see the actual reputation users would have on a meta if it was counted independently. I toyed around with the data explorer (and fruitlessly used its search), but all the extras like rep-cap, answer-accepts and bonuses were too much for my crappy SQL and I don't think there is much point in re-implementing the rep-computation algorithm since it's already there.  So, is there a way to show the theoretical meta-rep of users?

On per-site metas, users are given a rank based on meta participation, and this ranking is seen on the default tab of the users page on each per-site meta. How is this participation numerically calculated to give a ranking? Is it by votes? Something else? Are community wiki posts included in this?


No matter how many javscript executor lines I use or how many times I change the scrolling positions to different numbers, Selenium WebDriver 3 always takes me to the same place on the list that is doing parallax scrolling.   It scrolls to row 70 of the list but I want to go to row 65. I tried various ways, but it does not work. This same code was working with selenium webdriver 2 before. The element is hidden until you scroll to it through the list so I can't use scroll into view.   Can someone please advise how I can scroll to the element so I can click on it? Thanks.  ((JavascriptExecutor)driver).executeScript("scroll(0,1000)"); ((JavascriptExecutor)driver).executeScript("scroll(1000,2000)"); ((JavascriptExecutor)driver).executeScript("scroll(2000,1500)");   I also tried this and it didn't work either.  javascript.executeScript("window.scrollBy(0,600)", "");

<div id="findingTblBody" class="tablebody" infinite-scroll-distance="2"  infinite-scroll="loadMoreData()" style="width: 819px;">   I want to scroll to the bottom of div mentioned above.     I am trying with this -   do {     driver.findElement(By.xpath("//div[@id='findingTblBody']")).sendKeys(Keys.PAGE_DOWN);     Thread.sleep(6000);     scroll_count++; } while(scroll_count<20);   I am receiving error as - org.openqa.selenium.WebDriverException: unknown error: cannot focus element  How to scroll my web page up to that element & click?


I am trying make a script that will accept 3 inputs first is username as input second and third are bar codes i need to compare, but after the first input of the user I want it to stop asking me for the user and just save and use it and cant seem to do it. I am assigning the user_global to be None at start so can I use an if to run the get_user function but when the script runs it second loop time it gives None as value to the user again and i cant seem to remember how to remove the user from the loop and save it after the first iteration because i am real dumb, as I stated before. Here is the code:  while True:  def get_user():     user=input("Enter User :")     user_global = user     print(user)     print(user_global)  user_global = None   if user_global == None:     get_user()   a = datetime.datetime.now() print(a)  def gun_read():     barcode1=input("Please the first barcode the barcode!?")     print(barcode1)     barcode2=input("Plese read the secdon barcode?!")     print(barcode2)     if barcode1 == barcode2:         print("GREEN LIGHT!!")     else:         print("you fcked up broooo!!")   # if os.cwd() ima csv file add to csv else create csv  gun_read()   Help, please ? Also ignore prints and datetime.

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


The problem with Atheism, is the fact that they can't prove their claims for which god doesn't exist, but where is the evidence for that? In which they shift the burden of proof, to theists that are taking theism by faith. The problem that i see, is that atheists taking Atheism by faith in which they can't proved their claim that there is no god. Are atheism a faith?

I am recently testing an assertion that I have concluded namely that atheism is a faith based position just like theism is a faith based position.  The reason I arrived at this conclusion is that theists have no proof that God actually exists. It's purely a matter of faith. Yes, there maybe strong implicit proof that God exists in their opinion (scriptures, history, etc) but there is no concrete proof of God's existence. In my view, atheists also suffer from the same problem of providing a proof of their position. Specifically that they cannot prove that God is non-existent.  The typical rebuttal I get is that the burden of proof is on the theists. But I view this as a cop out and they hide behind the wall of burden of proof which is just a bias in the debate.  Given the above, I claim that both atheism and theism are positions based on faith. Would it be incorrect to claim that?


I want to install java in an Ubuntu server in the Amazon aws. How Can I find the model number of that server so I can install the right version of java?

How do I install Java, including in my browser, so websites with Java work?


def test_stats(team, *args):      if not args:           [do some stuff]     else:          team_fixtures = (Fixtures.objects.filter(home_team=team_details.id) | Fixtures.objects.filter(away_team=team_details.id))/ .filter(fixture_datetime__lt=datetime.now()).filter(fixture_datetime__year=args[0])   And for reference sake - args is:  date_year = datetime.now().year   for this query to work i need to reference args as   .filter(fixture_datetime__year=args[0])   because if I use  .filter(fixture_datetime__year=args)   I get the error:     int() argument must be a string, a bytes-like object or a number, not   'tuple'   I understand that it thinks it's a tuple even though it's only one value but when I do the following in terminal  type(date_year)   I get class  back.  Why do I have to reference position here when it looks to be just one value returning?

In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):


Why are some pokestop items in different back ground colors?  These are not my first pokestop of the day and they have both yellow and blue background items.

With the latest update, you can now use gyms like stops and get items. So far, every time I have done so there has always been one item that has a red background and number.    Is this a bonus item since I am part of red team? Is there any special meaning to it at all?


I need to get a batch file which is stored on my Windows PC hard drive to automatically run whenever a file in one of my Dropbox folders is changed.  How can I accomplish this?  Note:  The amount of times that files change are very inconsistent.  So running it on a timed schedule will not work efficiently in this case.  Edit:  The answer to the question is this is marked as a duplicate of does not answer how to check when files are changed, it checks for files being created.  I need guidance on what to do to run a batch file when a file in a folder is modified.

I need to set up some sort of a script on my Vista machine, so that whenever a file is added to a particular folder, it automatically triggers a background process that operates on the file.  (The background process is just a command-line utility that takes the file name as an argument, along with some other predefined options.)  I'd like to do this using native Windows features, if possible, for performance and maintenance reasons.  I've looked into using Task Scheduler, but after perusing the trigger system for a while, I haven't been able to make much sense of it, and I'm not even sure if it's capable of doing what I need.  I'd appreciate any suggestions.  Thanks!


As per title, I'm a dual national, and I'd like to travel in Morocco with Moroccan passport and Italy with national ID (or passport in case required).  So basically, as far as dual citizenship is concerned I'm allowed to enter in and exit from Morocco with Moroccan passport and enter and exit from Italy with national ID, by showing Moroccan passport at check-in for flight towards Morocco and national ID at check-in for flight towards Italy. It seems fair enough because by checking Timatic, this procedure seems OK.  I've been told that this doesn't work out in Morocco by a few friends. I don't understand why because many dual citizens travel with 2 passports or mixed documentation every day. Why can't this work out for Morocco? Dual citizenship is not illegal in Morocco.  I'm asking this because I want to leave more space on my EU passport. I don't want the Moroccan government to know things about me like having another citizenship. I don't like an institution knowing my status or my affairs abroad.  Edit: According to Timatic, I can travel this way, but many Moroccans say otherwise. I do not know honestly if Morocco is a very particular case, because even US-Mexicans or US-Italians, US-Brits, Anglo-Australians and so forth may travel this way. I do not understand why I can't. Very simple.

I am a citizen of two different countries, and have two passports.  How should I use my passports when traveling?


Which one is correct      Compared to another countries       Compared with another countries

Please check both sentences and let me know, which one is correct and why?   She compares me with her boyfriend.  She compares me to her boyfriend.


friends i am new to ubuntu forum.  please guide me installing ubuntu alongside win 7(preinstaled). I want to run both operating system for now. Please walk me through all the  steps to be carried out to install. i will be great full to everybody. Thankyou people.

I currently have Windows 7 on my computer and I want to install Ubuntu alongside Windows safely.  Could someone please provide clear instructions?


The second picture are potatoes wired in parallel. I understand that the potato is the medium for a chemical reaction between the copper and zinc. That aside, would wire and in soil potato plant continue to grow replenishing the medium(nutrients and water) regardless of having a current in the potato?     Or   Will the plant react to the physical damage or be depleted of nutrients/water needed to weakening the current or plant?  Maybe the current can be intermittent to allow the plant to recover? Can the current be low enough not inhibit plant growth?  I would ask chemistry if I was interested how a potato clock works, but I am more interested in the plant health and connections.       I have seen many potato experiments online but none where the potato plant was intact in the soil producing power.

Could a potato stay alive and power a clock while growing in the ground?   I know how a potato clock works as a electrochemical cell  and involves chemistry, but I am only interested in a growing plants ability to grow and recover lost compounds, water or otherwise during this process while in the ground.    Side question: How much power could come from one potato?  Source is in the picture.


How can I detect chinese, japanese and korean characters with regex in python. I've tried many things including    Stack Overflow, but nothing has yet worked.  Example word string:  word_string = "direct tv カルバンクライン 評価 カルバンクライン 価格 赤ジャージ アディダス nike エアリフト dg コート dg ネクタイ fresh 香水 フランス fresh 香水 ハワイ 1directtvcom ビームス バンズ コラボ httpwww1directtvcom 厚底コンバース 通販 フルラ バッグ 値段 プーマ専門店 ドクターマーチン ショート フルラ バッグ 新作 2015 スタッズグラディエーターサンダル モード・エ・ジャコモ mode et jacomo parker パーカー 万年筆 デュオフォールド"   Example 1:  >> print re.findall(r'[\p{IsHiragana}\p{IsKatakana}\p{IsHan}]+', word_string) ['ir', 't', 't', 'nik', 'g', 'g', 'r', 's', 'r', 's', 'ir', 'tt', 'ttp', 'ir', 'tt', 't', 'a', 'park', 'st', 'pa', 'r', 'ssa', 'r', 'r', 'a', 'ssa', 's', 'g', 'ssa', 'riting', 'p', 'ssa', 'r', 'sa', 'st', 'ssa', 'ing', 'sit', 'an', 'rit', 'an', 'ssa']   Example2:  >> print re.findall(u'[\u4E00-\u9FFF\u4E00-\u9FFF\uF900-\uFAFF]+', word_string) []   I've even tried using libraries like unicodedata or unicodescript to loop over characters and detect the language of each, but that gets really ugly really quickly.   Does anyone know a reliable way to check for CJK characters? Hopefully with some simple regex?

I need to delete some Unicode symbols from the string 'بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ'  I know they exist here for sure. I tried:  re.sub('([\u064B-\u0652\u06D4\u0670\u0674\u06D5-\u06ED]+)', '', 'بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ')   but it doesn't work. String stays the same. What am I doing wrong?


Well,   In the past, when the client connects to the site I kept it as $_SESSION.  Now, I want to make the possibility of "Remember Me" with a cookie.  For security reasons, what should I put the value of the cookie?  Thanks.

I want my website to have a checkbox that users can click so that they will not have to log in each time they visit my website. I know I will need to store a cookie on their computer to implement this, but what should be contained in that cookie?    Also, are there common mistakes to watch out for to keep this cookie from presenting a security vulnerability, which could be avoided while still giving the 'remember me' functionality?


To refer to the future, can I use "in future" or do I have to use always the phrase "in the future"? Thank you.

Do in future and in the future imply different meanings? If so, using which one is grammatically correct?


What is the best approach in stripping leading and trailing spaces in C?

Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I'd roll my own, but I would think this is a common problem with an equally common solution.


I'm new to electronics and I've been familiarizing myself with some basic formulas, specifically Ohm's law. It seems to imply that if resistance is smaller than 1, let's say 0.00001 Ohm, then I can get 100000 A of current with just 1V of voltage. So is it actually possible (not in just theory) to achieve that kind of current by lowering the resistance, or there's some limitations to how low the resistance can be?

So I have been mulling over Ohm's law for hours today. It makes sense to me that the current gets bigger as voltage rises, since the voltage is supplying more electrons and current is the number of electrons flowing. However, I'm confused by the theory that as resistance drops, current increases, even when voltage stays constant. Such as:  $$V/R = I$$ $$\frac{1V}{0.0001 \Omega} = 10,000,000 mA!!$$  That's a big current from such a small voltage!  My mental picture of a current is more electrons flowing. Electrons are supplied by the voltage, right? If we start off with a small voltage, say 1V, but infinitely decrease the resistance, we'll get a bigger and bigger current. How can this be? Isn't current the number of electrons flowing? With fewer electrons (because of less voltage), how can less resistance infinitely increase the current?