I am using t as global and assigned t value from the s1,s2 functions but after person1 it is not going to person2. And the error is as below  File "C:\Users\Teja kaipa\Desktop\estimation.py", line 42, in person1 if (t>1):     NameError: name 't' is not defined global t   Code:   def s1():     t=1     return t def s2():     t=2     return t def s3():     t=3  def person1():     output = 0     val1 = int(r1e1.get())     val2 = int(r1w1.get())     if ((val1-val2)==0):         output = 1+2*val1     else:         output = -2*abs(val1-val2)     r1n1m.delete(0, END)     r1n1m.insert(4,str(output))         if (t>1):         person2()  def person2():     val1= int(r1e2.get())     val2= int(r1w2.get())     if ((val1-val2)==0):         output = 1+2*val1     else:         output = -2*abs(val1-val2)     r1n2m.delete(0, END)     r1n2m.insert(4,str(output))         if (t>2):         person3()

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?


In this  there's a solution to select and highlight a whole  row from a table using jQuery. I have a callback (see the bottom of my script) when I click a row on the table.  The problem is that my table gets generated from data, so the callback does not work on the generated cells. The callback works on the headers, which are not generated.   How to attach the existing callback to the newly generated  elements?

       Date	       Number

 <button onclick="generateTable()">generateTable</button>

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.


$X$ is a random variable in ($\Omega,\mathcal{F},\mathbb{P}$),$\mathcal{G,H}$ are two sub $\sigma$-algebra and $X$ is independent of $\mathcal{G}$ . I don't know whether the following equality is true or not.(if not, I can add the condition that $\mathcal{G,H}$ are independent)     $$\mathbb{E}(X|\mathcal{G,H})=\mathbb{E}(X|\mathcal{H})$$   In intuition,it seems to be true since $\mathcal{G}$ doesn't provide any information.Rigorously，it is sufficient to prove that  $\mathbb{E}(X|\mathcal{G,H})$ is $\mathcal{H}$-measurable.I am stuck in this step.Follow the definition of measurable,I want to analyze the structure of $\mathbb{E}(X|\mathcal{G,H})^{-1}(B)$ ($B\in\mathcal{H}$),I don't know what to do next.    The question above comes from Durrett's textbook   page 226:example 5.6.1 using backwards martingales to prove the SLLN. in the fifth line     $$\mathbb{E}(\xi_j|\mathcal{F}_{-n-1})=\mathbb{E}(\xi_k|\mathcal{F}_{-n-1})$$   the author said it's true by symmetry but I want to prove it rigorously. I know how to prove      $$\mathbb{E}(\xi_j|S_{n+1})=\mathbb{E}(\xi_k|S_{n+1})$$   but I don't know how to prove     $$\mathbb{E}(\xi_j|\mathcal{F}_{-n-1})=\mathbb{E}(\xi_j|S_{n+1})$$

I'm facing the following issue. Let $X$ be an integrable random variable on the probability space $(\Omega,\mathcal{F},\mathbb{P})$ and $\mathcal{G},\mathcal{H} \subseteq \mathcal{F}$ be two sigma-algebras. We assume that $X$ is independent of $\mathcal{G}$, i.e. $\sigma(X)$ is independent of $\mathcal{G}$. Can I say (and can I prove) that $$ E(X \mid \sigma(\mathcal{G} \cup \mathcal{H})) = E(X\mid \mathcal{H}) ?$$  Thank you very much for your help!


id_dict = {1 : 'cat', 2 : 'dog', 3 : 'fish', 4 : 'cow' } feature_list = ['cat','cat', 'dog', 'dog','fish', 'calf'] id_list = ['nan','nan','nan','nan','nan', 'nan']  for key, value in id_dict.items():     for item in feature_list:         if item == value:             id_list[feature_list.index(value)] = key  How can I make sure that the id_list is updated with [1,1,2,2,3] when the values match and pass over when a value is not in there ? Currently, only the first value is being updated. Current Output: [1, 'nan', 2, 'nan', 3]

Given a dictionary like so:  my_map = {'a': 1, 'b': 2}   How can one invert this map to get:  inv_map = {1: 'a', 2: 'b'}


Many times I faced proofs using degree theory technique and I am interested in such proofs and I want to know more about powerfulness of  this technique and see more proofs using this technique. I would be appreciate if you show me your experience about this.

I'm preparing a presentation on an overview of algebraic and differential topology, and my introduction includes some motivational material on Degree Theory. I have two fundamental and invaluable mathematical consequences of this theory so far:   Homotopy/Homology of Spheres Brouwer's Fixed Point Theorem   Do any others come to mind?


Just wondering, how exactly different difficulty levels affects to the gameplay?  Does it switches AI into more aggressive mode, gives more starting money to a computer, etc.?

When creating a campaign you get the four difficulty options just like for each mission.  Do they affect anything with respect to game-play (e.g. fewer credits earned in missions, more expensive upgrades, etc), achievements, or the story (e.g. extra or extended cutscenes); or does it simply set the "default" difficulty of each of the missions?


file.txt  1.1.1.1 abc  1.1.1.1 ccc 1.2.2.2 ddd 1.2.2.2 qqq 1.2.2.2 zzz   Expected result:  1.1.1.1 abc 1.2.2.2 ddd   I tried:  sed -i '/1.1.1.1/d' file.txt   sed -i '/2.2.2.2/d' file.txt    But however it remove all instead of leaving 1 result. How to delete all matching pattern but left 1?

I have a file containing two columns and 10 million rows. The first column contains many repeated values, but there is a distinct value in column 2. I want to remove the repeated rows and want to keep only one using awk. Note: the file is sorted with values in column 1. For example:    1.123 -4.0 2.234 -3.5 2.234 -3.1 2.234 -2.0 4.432 0.0 5.123 +0.2 8.654 +0.5 8.654 +0.8 8.654 +0.9 . . . .   Expected output  1.123 -4.0 2.234 -3.5 4.432 0.0 5.123 +0.2 8.654 +0.5 . . . .


Consider the following simple linear regression model involving the $\epsilon_i$ error term,  $$y_i = \alpha + \beta x_i + \epsilon_i$$  such that,  $$\epsilon_i \sim \mathcal N(0,\sigma^2)$$  we know that if $Z_1, Z_2, ..., Z_n$ are independent, standard normal random variables,   $$Z_i \sim \mathcal N(0,1)$$  then the sum of their squares is distributed according to the chi-square distribution with $n$ degrees of freedom,  $$\sum _{i=1}^{n} Z_{i}^{2} \sim \chi^{2}_{n}$$  Now let's prove that $\frac{(n-2)s^2}{\sigma^2}\sim \chi^{2}_{n-2}$ such that,  $$s^2 = \frac{\sum _{i=1}^{n} \hat{\epsilon}_i^2}{n-2}$$  Proof:  $\require{cancel}$  $$\epsilon_i \sim \mathcal N(0,\sigma^2)$$  $$\frac{\epsilon_i - \cancelto{0}{\overline{\epsilon}}}{\sigma} \sim \mathcal N(0, 1)$$  $$\sum _{i=1}^{n} \left(\frac{\epsilon_i}{\sigma}\right)^2 \sim \chi^{2}_{n}$$  $$\sum _{i=1}^{n} \frac{\epsilon_i^2}{\sigma^2} \sim \chi^{2}_{n}$$  How do I now move from this expression $\sum _{i=1}^{n} \frac{\epsilon_i^2}{\sigma^2}$ which uses the error term $\epsilon_i$ to this expression $\sum _{i=1}^{n} \frac{\hat{\epsilon}_i^2}{\sigma^2}$ which uses the residual term $\hat{\epsilon}_i$?

Consider the linear regression model:   $$Y_i=r(x_i)+\varepsilon_i\equiv\sum_{j = 1}^p x_{ij} \beta _j + \varepsilon _i,\quad i=1,\ldots,n.$$  where $x_1,\ldots,x_n\in \mathbb{R}^p$ are fixed, $E(\varepsilon_i)=0$,  $\operatorname{Var}(\varepsilon_i)=\sigma^2$. Denote $Y=(Y_1,\ldots,Y_n)^T$, $\beta=(\beta_1,\ldots,\beta_p)^T$, $X=(x_{ij})_{n\times p}$. As is known, $\hat \beta  = \arg\min\limits_{\beta  \in \mathbb{R}^p} (Y - X\beta)^T (Y - X\beta)=(X^TX)^{-1}X^TY$ if the matrix $X^TX$ is invertible, and so an estimator of $r(x)$ at $x=(x_1,\ldots,x_p)\in\mathbb{R}^p$ is given by $\hat r_n(x)=x^T\hat\beta$.  Let $$\hat{\sigma}^2 = \frac{1}{\sigma^2}\sum_{i = 1}^n (Y_i - {\hat r}_n (x_i))^2.$$ I am stucking the problem: $\hat\sigma^2$ has $\chi^2_{n-p}$ distribution. How to prove the statement?


I have a click event on a checkbox button which I remove in my click event and I append it again with another value. My problem is the click event is not working anymore after the new append.  <input class="year" type="checkbox" value="2015" /> 2015
   $(".year").click(function(){     $(".col-md-12").remove(); //i remove the div which contains the checkbox       $.ajax({         url: "criteria_search",                   type: 'POST',          data: {             criteria: "authors",              value: "test"          },         success: function(data) {              articles = $.parseJSON(data)             $("#AppendToElem").append("

 Search Results <\/h2>
 There are<\/span> 3974<\/strong> results for:<\/span> Computer Animation and Virtual Worlds<\/strong> <\/p>
 <\/a> <\/p>

 Filter List <\/h3>
  Year <\/label>
");                $.each(articles, function(index, jsonObject){                 $("#AppendToElem").append("<input class=\"year\" type=\"checkbox\" value=" + jsonObject.date.date.substring(0, 4) + " /> " + jsonObject.date.date.substring(0, 4) + "
")              });         )     }); });   And after I clicked on my checkbox the second time the click event is not handled. How can I fix this?


I am trying to select the lowest value from an attribute table within model builder. I have used the Sort tool to sort the values in ascending order but when I add the Select tool and go to enter an expression there is no value selectable. From my understanding, the Sort tool assigns an FID to each value with the lowest value being 1 in which I could use the Select tool and enter the expression: "FID = 1" to get my desired output.  I am relatively new to ModelBuilder.   Any suggestions on how to work through this?     Current Model

I am trying to use a SQL expression in order to select values that are >= 25% of its max value in that column. For instance, VALUE >= MAX(VALUE)*0.25, and those will ultimately be the selected points it pulls out.   Is there syntax to make that happen, or am I going to need to create a new column and use field calculator on it?   Biggest issue with that is I will have to do this for about 250 files. I am also trying to create this in ModelBuilder.  When I try it as above it just returns that there is an error with the expression.


I hear that people use the average and the mean of some numbers, interchangeably. As far as I know, the average is the sum of numbers divided by the number of data points but the mean is a weighted average and it is also called the expected value. Can somebody make it clear that when to use the average and when to use the mean?

What is the precise difference between the Mean, Average and Expectation ? Is there any mathematical formaulation to show the difference ? I see that often they are used interchangeably.


From :     Object interfaces allow you to create code which specifies which methods    a class must implement, without having to define how these methods are handled.   Why should I need to do that? Could it be a kind of 'documentation'?  When I'm thinking about a class I have to implement, I know exactly which methods I should code.  What are some situations where interfacing a class is a "best practice"?

allow you to create code which defines the methods of classes that implement it. You cannot however add any code to those methods.    allow you to do the same thing, along with adding code to the method.   Now if you can achieve the same goal with abstract classes, why do we even need the concept of interfaces?   I've been told that it has to do with OO theory from C++ to Java, which is what PHP's OO stuff is based on. Is the concept useful in Java but not in PHP? Is it just a way to keep from having placeholders littered in the abstract class? Am I missing something?


Unable to set default browser to Chrome.  Neither from system side    not from Chrome side.  If I select Chrome in system settings, it just doesn't set. If I select to be default from Chrome, it opens the same system window.

After an update to both Windows 10 and Chrome (51.0.2704.103), my default browser has cleared:    and clicking the "+" button to choose the default only gives me the option of Edge and Firefox:    Does any one know why this is or what I can do to fix it?


Let $\{\alpha_{i}\}_{i=1}^{n}$ be distinct numbers. What is the determinant of the $n$ by $n$ matrix \begin{gather}  \begin{pmatrix}   \alpha_{1}^{n-1} & \alpha_{1}^{n-2} & \cdots & 1 \\   \alpha_{2}^{n-1} & \alpha_{2}^{n-2} & \cdots & 1 \\   \vdots  & \vdots  & \ddots & \vdots  \\   \alpha_{n}^{n-1} & \alpha_{n}^{n-2} & \cdots & 1  \end{pmatrix} \end{gather} ?

$V_n(a_1,a_2\dots, a_n)$ is a $n\times n$ Vandermonde matrix =   $$\left|\begin{array}[cccc]  11&a_1&\cdots&a^{n-1}_1\\ 1&a_2&\cdots&a^{n-1}_2\\ 1&a_3&\cdots&a^{n-1}_3\\ \vdots&\vdots&\ddots&\vdots\\ 1&a_n&\cdots&a_n^{n-1} \end{array}\right|$$  Replace $a_1$ by $x$ so that the first row is $1,x, \dots ,x^{n-1}$  $$V_n(x,a_2\dots, a_n) = \left|\begin{array}[cccc]  11&x&\cdots&x^{n-1}\\ 1&a_2&\cdots&a^{n-1}_2\\ 1&a_3&\cdots&a^{n-1}_3\\ \vdots&\vdots&\ddots&\vdots\\ 1&a_n&\cdots&a_n^{n-1} \end{array}\right|$$  Let $P(x) = V_n(x,a_2\dots, a_n)$.  (a) Show that $P(x)$ is a polynomial in $x$ of degree $\leq n-1$.   $z = 1\det() -x\det() + x^2\det() -\cdots+ (-1)^{n-1}x^{n-1} \cdot \det()$, where each $\det()$ stands for the determinant of a smaller matrix after removing the appropriate columns, rows.   Is this right? But isn't $z$ a polynomial of degree $n$?  (b) Show that $P(x)$ has $n-1$ distinct roots $a_2, \dots a_n$ and therefore has factorization $P(x) = k \prod_{i=2}^n(x-a_i)$ where the constant factor $k$ is the coefficient of $x^{n-1}.$  I'll be honest, I have no clue how to do this. Not even sure where to start. Nor do I know where to start on the rest.  (c) Show that $k = (-1)^{n-1}V_{n-1}(a_2,\dots a_n)$.  (d) Use parts (b) and (c) to deduce the recursion formula $$V_n(a_1, \dots a_n) = \left(\prod_{i=2}^n(a_i-a_1)\right)V_{n-1}(a_2,\dots a_n)$$  (e) Use part (d) to deduce that $V_n(a_1,a_2,\dots a_n) = \prod^n_{1\leq i< j\leq n} (a_j - a_i)$


I have a list of taxonomy terms to make some categories on my website. When I click on one of them, the content appears, but I can't display the taxonomy term name. I can't find the right configuration in my view.        To display the result, I need to alter the page.html.twig template and the views template. I want to display the name of the term in the page--my_name.html.twig template.

I have a custom view where I show a list of nodes by taxonomy term. Since there are many terms in dictionary, I can't describe every view page manually. Is there any way to set the page title as a taxonomy term title?


EDIT: This question was marked as duplicate. While this might be true on a larger scale, the answer provided by Kusalananda gave me a better understanding of my options.  If a syntax error inside a shell script happens, the interpretation of the script isn't necessarily terminated but simply continues at the next line of the script. Is there a way to catch the number of those syntax errors while the script is interpreted?   I would really like to have something like a compiler report, stating the number of errors and warnings after the compiling has finished. Just for linux shell.

Considering that POSIX is the closest thing to a common standard among all unices, I'm interested in knowing if there's a shell that supports it exclusively. While most modern shells provide support for POSIX (and will run POSIX compliant scripts without any problem), they don't do a good job at pointing out non compliant features.  Is there any shell that implements POSIX and POSIX only, in such a way that it'd throw an error for any non compliant feature?  EDIT I want to clarify that I'm not asking for general tips for writing portable shell scripts. The related question mentionned in the comments already covered this. I thought of this question when I found out that bash has a --posix option but only to discover that it only affects some intialization behaviors which is not exactly what I'm looking for.


Is it possible to create a list of all the databases where a specific user can access?  For example,  My user is 'Domain\MarySmith'. This user can access on a single database or can access many databases.    I need a query like this:  SELECT All_Db_Name_I_Can_Acces  FROM ServerSql  WHERE Username = 'Domain\MarySmith'

I'm really looking for this answer for some time. I bet there is a post here but, I really can't find ( even on google ).  I think it's a simple task.  I want to list all databases for a specific user.  Is there a way to do this?   It can be a view or a cursor. I just can't think of anything.


What is the difference between "trans" and "inter" prefixes? For example what how does "trans-disciplinary" differ from "inter-disciplinary"?

In academia the words inter-discipline, multi-discipline, trans-discipline, or cross-discipline are used to describe a type of combination between different disciplines or the uniqueness of a field.  Searching on OED.com for the terms inter, multi, cross and trans shows different uses.     multi has some nouns and adjectives, with one option of "multi-, comb. form"  cross has nouns, verbs, adjectives and prepositions, with "cross-, comb. form" inter has nouns, adjectives, verbs and prepositions, with "inter-, prefix" trans has nouns and adjectives, with "trans-, prefix"   In academia, the difference between multi or inter is not well-defined.  What is the difference between "comb.form" and "prefix"?  Why are there no results for using multi or cross as a prefix, but there are for inter and trans? How did the interchangeability of these come about, or is it improper to use them that way?


I'm writing an article using LaTeX for the first time. I need to use symbols < and > in the body text but they are not displaying, instead they come out as ! and ? (upside down).  Can somebody tell me how to fix this?

When typing < or > in LaTeX and compiling with pdflatex, the less than and greater than symbols appear at upside down exclamation points. I'm not in math mode.


Developing a window-32 bit application by using DelphiXE-7.  I’ve following piece of code-  Procedure TMainForm.Button1Click(Sender: TObject); Var   iNum: Integer;   bExit: Boolean; Begin   ShowMessage(IntToStr(iNum));   repeat     Inc(iNum);     bExit := True;   until Exit; End;   I know that not initializing iNum before using it may cause this problem, but then it should also come at debugging time.   But when I’m debugging or running compiled exe MessageBox is showing as “0” which seems correct, but when we are installing build and running the same procedure then MessageBox is showing some garbage value instead of zero. Something like “1632824”.  Only difference between compiling and Build generation is that later one is not creating dcu.  Please Advise Accordingly.

I'm new to Delphi, and I've been running some tests to see what object variables and stack variables are initialized to by default:  TInstanceVariables = class   fBoolean: boolean; // always starts off as false   fInteger: integer; // always starts off as zero   fObject: TObject; // always starts off as nil end;   This is the behaviour I'm used to from other languages, but I'm wondering if it's safe to rely on it in Delphi?  For example, I'm wondering if it might depend on a compiler setting, or perhaps work differently on different machines.  Is it normal to rely on default initialized values for objects, or do you explicitly set all instance variables in the constructor?  As for stack (procedure-level) variables, my tests are showing that unitialized booleans are true, unitialized integers are 2129993264, and uninialized objects are just invalid pointers (i.e. not nil).  I'm guessing the norm is to always set procedure-level variables before accessing them?


The plural form of physical units are always confusing me. I asked some senior students, some of them said we need to use plural form of units but some said units are always singular.   For example, 1 meter is 1 meter. But it is 3 times, should it be 3 meters? I know that if we use the abbreviation form, no plural form, i.e. 3m. But if we use 'meter', for the case like 0.04 meter, should it be 0.04 meter or 0.04 meters? I think we should use 0.04 meter because it is less than or equal to 1.  The last question I have is about foot and feet, when the magnitude is less than or equal to 1, I should use foot, otherwise, use feet instead, is that right?

I was in a conversation with my senior engineer where he kept on insisting that we can use plural when we write down any unit. I argued that it is not the 'common' practice or even throughout my whole academic career (unfortunately) I haven't found any instance where there was any plural unit used in the text books. He argued that if I said that it was not correct then it should have a good reason for that.  When I searched for this topic I couldn't come to any conclusive decision. Such as  thread and the other links those have been referred there (some leads to English.SE). These answers gave me the impression that it is grammatically acceptable provided the right circumstances.  But I felt that it would be rather ambiguous to accept plurals on scientific and engineering notations.  For example we were talking about output rate of a boiler which is measured in $\mathrm{kg/hr}$. My senior said that it is okay if anyone writes $\mathrm{kgs/hr}$.  To me it looks ambiguous. If anyone writes $\mathrm{s}$ after $\mathrm{kg}$ it may give a plural sense but as well it may refer to second also. Moreover if anyone argues that this is acceptable in some cases (like $\mathrm{kgs/hr}$) then what would be the yard stick to find out accepted cases? For instance can we add $\mathrm{s}$ in $\mathrm{m/s}$ or $\mathrm{km/hr}$ like $\mathrm{ms/s}$ or $\mathrm{kms/hr}$?  There is , which has this .     the length of the laser is $5\ \mathrm{m}$ but not: the length of the laser is five meters   But I want to have more conclusive answer to which one is acceptable i.e. $\mathrm{kg/hr}$ or $\mathrm{kgs/hr}$ (or other similar instances).


How can I remove duplicate values from a multi-dimensional array in PHP?  Example array:  Array (     [0] => Array     (         [0] => abc         [1] => def     )      [1] => Array     (         [0] => ghi         [1] => jkl     )      [2] => Array     (         [0] => mno         [1] => pql     )      [3] => Array     (         [0] => abc         [1] => def     )      [4] => Array     (         [0] => ghi         [1] => jkl     )      [5] => Array     (         [0] => mno         [1] => pql     )  )


I was wondering how long it would take for the Earth and Sun to crash into each other via gravitational force, if the Earth suddenly stopped orbiting around the sun.  Instead of the Earth's forward motion balancing out with the centripetal force from the sun to create a curved orbit, it is instead just pulled towards the sun in a straight line.  This is not as simple as putting the values into the Universal Gravitation Formula, since distance between the Earth and Sun would be constantly changing.  Because of this continual change in distance, I figured calculus is needed.  Since I don't know calculus, I wrote a program that re-evaluates the distance between the Earth and the Sun after every second.  It gives me an answer of roughly 65 days for the Earth to reach the Sun.  My question: can anyone who knows calculus please figure out how long the Earth and Sun would take to reach each other via gravitational force if the Earth stopped orbiting?  I just want to know if the answer my computer program gave me is mostly accurate.

My friend and I have been wracking our heads with this one for the past 3 hours... We have 2 point masses, $m$ and $M$ in a perfect world separated by radius r.  Starting from rest, they both begin to accelerate towards each other. So we have the gravitational force between them as:  $$F_g ~=~ G\frac{Mm}{r^2}$$  How do we find out at what time they will collide?  What we're having trouble with is this function being a function of $r$, but I have suspected it as actually a function of $t$ due to the units of $G$ being $N(m/kg)^2$.  I've tried taking a number of integrals, which haven't really yielded anything useful.  Any guidance?  No, this is not an actual homework problem, we're just 2 math/physics/computer people who are very bored at work :)


Firstly, I wanted to check. Can wavefunctions exist that are not in the form $\psi = \psi_{\mbox{spatial}}\times\psi_{\mbox{spin}}$? I am assuming you can have situations that are dependent on spin and so get a situation where a particle is either 'in position A and spin up' or 'in position down and spin down' so $|\psi\rangle = \frac{1}{\sqrt2}(|A\uparrow\rangle+ |B\downarrow\rangle)$, and thus not able to be separated. Also I wanted to check specifically that once you include spin-orbit coupling, the hydrogen atom eigenstates can no longer be in the form $\psi = \psi_{\mbox{spatial}}\times\psi_{\mbox{spin}}$. Wikipedia says that in this case the good quantum numbers can no longer be $l,j,s, m_l,m_s$ (which makes sense since e.g. $S_z$ does not commute with $L\cdot S$) but must instead be $l,j,s,m_j$. Therefore I would assume there could theoretically exist eigenstates with fixed $m_j$ but varying correlated combinations of $m_s$ and $m_l$ e.g. $|m_l=+1, m_s=0\rangle$ and $|m_l=0, m_s=+1\rangle$ (which indeed have fixed $l,j,s,m_j$, but cannot be separated into spatial and spin parts). Is this correct, or is there a reason why the wavefunction can still be separated into these parts?

The total wavefunction of an electron $\psi(\vec{r},s)$ can always be written as $$\psi(\vec{r},s)=\phi(\vec{r})\zeta_{s,m_s}$$ where $\phi(\vec{r})$ is the space part and $\zeta_{s,m_s}$ is the spin part of the total wavefunction $\psi(\vec{r},s)$. In my notation, $s=1/2, m_s=\pm 1/2$.   Question 1 Is the above statement true? I am asking about any wavefunction here. Not only about energy eigenfunctions.   Now imagine a system of two electrons. Even without any knowledge about the Hamiltonian of the system, the overall wavefunction $\psi(\vec{r}_1,\vec{r}_2;s_1,s_2)$ is antisymmetric. I think (I have this impression) under this general conditions, it is not possible to decompose $\psi(\vec{r}_1,\vec{r}_2;s_1,s_2)$ into a product of a space part and spin part. However, if the Hamiltonian is spin-independent, only then can we do such a decomposition into space part and spin part.   Question 2  Can someone properly argue that how this is so? Please mention about any wavefunction of the system and about energy eigenfunctions.


I have a problem that I don't know how to solve. I am using C++ with GLEW and GLFW, I initialise GLFW, create the window, make the window the current context, then I initialise GLEW. All of this happens on the main function. The problem appears when the code to create the VAO and the VBO is organised in methods, in classes, I see that the VAO is generated, that the VBO is generated, but when the data is sent to the GPU, using glBufferData, it does not work. If I take this piece of code and move it in the main function, everything works just fine, but outside it, it does not work. This code works perfectly on the main function, but if I move it in other functions, just to make things clear, it stops working. So I think the problem is somehow related with that context. I make the window, the current context, on the main function. Any Idea? // MAIN FUNCTION  unsigned int vaoID; glGenVertexArrays(1, &vaoID); glBindVertexArray(vaoID);  // if I move this code in a method of a class and pass the vao, to bind it again //there it does not work // if I leave it here, like this, it works unsigned int vboID; unsigned int attribPointer = 0; glGenBuffers(1, &vboID); glBindBuffer(GL_ARRAY_BUFFER, vboID); glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); glVertexAttribPointer(attribPointer, 3, GL_FLOAT, GL_FALSE, 0, 0); glBindBuffer(GL_ARRAY_BUFFER, 0); glBindVertexArray(0);  // the drawing part, just the idea, it's in a while, of course. glBindVertexArray(vaoID); glEnableVertexAttribArray(attribPointer); glDrawArrays(GL_TRIANGLES, 0, 6);  glDisableVertexAttribArray(attribPointer); glBindVertexArray(0);  //if I move it here, it's dead void storeDataInAttributeList(int attributeNumber, float data[], int vaoID)     {         glBindVertexArray(vaoID);         unsigned int vboID;         glGenBuffers(1, &vboID);         vbos.push_back(vboID);         glBindBuffer(GL_ARRAY_BUFFER, vboID);         glBufferData(GL_ARRAY_BUFFER, sizeof(data), data, GL_STATIC_DRAW);         glVertexAttribPointer(attributeNumber, 3, GL_FLOAT, GL_FALSE, 0, 0);         glBindBuffer(GL_ARRAY_BUFFER, 0);      }

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


'It's the ducks!', Peppa Pig exclaims in one episode, according to a student of mine. I can't for the life of me explain to him why. Research on here has led me to 'dummy it'. Am I right?

I wanted to leave the question title as is so as not to take away from my amusement :).  Anyway,     It's raining.   What is raining? Is it the sky? The clouds? The weather? The rain? What is "it"? Any historical insights on the statement?


I have pom.xml  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">   <modelVersion>4.0.0</modelVersion>   <groupId>com.pac</groupId>   <artifactId>test</artifactId>   <packaging>jar</packaging>   <version>1.0-SNAPSHOT</version>   <name>test</name>   <url>http://maven.apache.org</url>      <dependencies>         <dependency>             <groupId>org.aspectj</groupId>             <artifactId>aspectjrt</artifactId>             <version>1.8.2</version>         </dependency>         <dependency>             <groupId>org.aspectj</groupId>             <artifactId>aspectjweaver</artifactId>             <version>1.8.2</version>         </dependency>         <dependency>             <groupId>org.aspectj</groupId>             <artifactId>aspectjtools</artifactId>             <version>1.8.2</version>         </dependency>     </dependencies>     <!-- ... --> </project>   And class and aspect:  public class Main  {     public int a = 10;      public static void main( String[] args )     {         Main instance = new Main();         System.out.println(instance.test());     }      public int test(){         return a;     } }  public aspect TestAspect {     pointcut publicMethodExecuted(): execution(public !static * *(..));      int around() : publicMethodExecuted() {         System.out.println("Test string");             int original_return_value = proceed();         return original_return_value * 100;     } }   But mvn install produce jar-file without aspectj jars. The jar looks like:  root   |   |--META-INF   |   |--com   |   |   |   |--pac   |       |   |       |--Main.class   |   |--TestAspect.class   |   |--builddef.lst   Why does the maven-jar-plugin got rid of the aspectj jars? How to fix that? I got NoClassDefFoundException at runtime:  Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException         at com.badmitrii.Main.test(Main.java:1)         at com.badmitrii.Main.main(Main.java:11) Caused by: java.lang.ClassNotFoundException: org.aspectj.lang.NoAspectBoundException         at java.net.URLClassLoader.findClass(Unknown Source)         at java.lang.ClassLoader.loadClass(Unknown Source)         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)         at java.lang.ClassLoader.loadClass(Unknown Source)         ... 2 more

I want to package my project in a single executable JAR for distribution.  How can I make a Maven project package all dependency JARs into my output JAR?


Why not simply use right away? Why is an axiom and what is not?   Some of the obvious statements are made into axioms whereas other obvious statements aren't.  For example, the axiom of choice, arbitrary union axiom, etc. Isn't it so obvious?

Thus, axioms are propositions we assume to be true and we use them in an axiomatic theory as premises to infer conclusions, which are called "theorems" of this theory.  For example, we can use the  to prove theorems of arithmetic.  This is one meaning of the word "axiom". But I recognized that the word "axiom" is also used in quite different contexts.  For example, a group is defined to be an algebraic structure consisting of a set $G$, an operation $G\times G\to G: (a, b)\mapsto ab$, an element $1\in G$ and a mapping $G\to G: a\mapsto a^{-1}$ such that the following conditions, the so-called group axioms, are satisfied:   $\forall a, b, c\in G.\ (ab)c=a(bc)$, $\forall a\in G.\ 1a=a=a1$ and $\forall a\in G.\ aa^{-1}=1=a^{-1}a$.      Why are these conditions (that an algebraic structure has to satisfy to be called a group) called axioms? What have these conditions to do with the word "axiom" in the sense specified above? I am really asking about this modern use of the word "axiom" in mathematical jargon. It would be very interesting to see how the modern use of the word "axiom" historically developed from the original meaning.   Now, let me give more details why it appears to me that the word is being used in two different meanings:  As peter.petrov did, one can argue that group theory is about the conclusions one can draw from the group axioms just as arithmetic is about the conclusions one can draw from the Peano axioms. But in my opinion there is a big difference: while arithmetic is really about natural numbers, the successor operation, addition, multiplication and the "less than" relation, group theory is not just about group elements, the group operation, the identity element and the inverse function. Group theory is rather about models of the group axioms. Thus: The axioms of group theory are not the group axioms, the axioms of group theory are the axioms of set theory.  Theorems of arithmetic can be formalized as sentences over the signature (a. k. a. language) $\{0, s, +, \cdot\}$, while theorems of group theory cannot always be formalized as sentences over the signature $\{\cdot, 1, ^{-1}\}$. Let me give an example: A typical theorem of arithmetic is the case $n=4$ of Fermat's last theorem. It can be formalized as follows over the signature $\{0, s, +, \cdot\}$: $$\neg\exists x\exists y\exists z(x\not = 0\land y\not = 0\land z\not = 0\quad\land\quad x\cdot x\cdot x\cdot x + y\cdot y\cdot y\cdot y = z\cdot z\cdot z\cdot z).$$ A typical theorem of group theory is  which states that for any finite group G, the order of every subgroup H of G divides the order of G. I think that one cannot formalize this theorem as a sentence over the "group theoretic" signature $\{\cdot, 1, ^{-1}\}$; or can one?


I saw this on a Facebook page: \begin{align*} 1, \qquad \frac12,\qquad\frac{\frac12}{\frac34}, \qquad\frac{\frac{\frac12}{\frac34}}{\frac{\frac56}{\frac78}},\qquad \dots\to \frac{\sqrt{2}}2. \end{align*} The $n$-th term is the combination of $2^n$ consecutive integers from $1$ to $2^n$.     Question: How to prove this in a both rigorous and easy way?    1st attempt  Let $\{a_n\}$ be the sequence. We try to "simplify" $a_n$ as the form $\dfrac{1\cdot4\cdot6\cdot7\cdots}{2\cdot3\cdot5\cdot8\cdots}$, as simple fraction, to find the pattern in which some integers are numerators and others are denominators.  Let $f: \Bbb N \mapsto \Bbb Z$ such that  \begin{align*} a_n=\prod_{k=1}^{2^{n-1}}k^{(-1)^{f(k)}}.\tag{*} \end{align*} However, it seems hard to find the expression / recurrence formula for $f$ and show it converges to $\dfrac{\sqrt2}2$.   2nd attempt  Again we let $\{a_n\}$ be the sequence. Consider the continued fraction: \begin{align*} \sqrt2=1+\underset{i=1}{\overset{\infty}{\mathrm K}} ~ \frac{1}{2}=1+\cfrac1{2+\cfrac1{2+\cfrac1{2+\cfrac1{\ddots}}}}. \end{align*} Then, we define \begin{align*} b_m=\frac12\left(1+\underset{i=1}{\overset{m}{\mathrm K}} ~ \frac{1}{2}\right)=\frac12+\frac12\cdot\cfrac1{2+\cfrac1{\ddots+\cfrac1{2}}}. \end{align*} Obviously $b_m$ converges to $\dfrac{\sqrt2}2$. Then we just need to show that $a_n$ is between $b_m$ and $b_{m+1}$ for big $m$ and $n$ ( $m$ depends on $n$), which seems complicated.

I was given this problem 30 years ago by a coworker, posted it 15 years ago to rec.puzzles, and got a solution from Barry Wolk, but have never seen it again.  Consider the series:  $$1, \frac{1}{2},\frac{\displaystyle\frac{1}{2}}{\displaystyle\frac{3}{4}},\frac{\displaystyle\frac{\displaystyle\frac{1}{2}}{\displaystyle\frac{3}{4}}}{\displaystyle\frac{\displaystyle\frac{5}{6}}{\displaystyle\frac{7}{8}}},\cdots$$  Each fraction keeps its large bars while being put atop a similar structure. This can also be represented as $$\frac{1\cdot 4 \cdot 6 \cdot 7 \cdot\cdots}{2 \cdot 3 \cdot 5 \cdot 8 \cdot\cdots}$$ terminating at $2^n$ for some $n$, where it is much closer to the limit than elsewhere.  The challenge:   Find the limit, not too hard by experiment In the last expression, find a simple, nonrecursive, expression to say whether $n$ is in the numerator or denominator Prove the limit is correct-this is the hard one.


I dont want to install any 3rd party apps for hiding there images stored on device . How can I hide my images from the gallery app without installing any other app like Hide it Pro or Gallery lock? I use a low-end device and these apps use up my memory which would have otherwise been used for different apps.

How can I hide a jpeg image in Android Gallery? or is there a way to hide a folder of pictures for Gallery only?


With mesh (stairs) following the curve path. Few stairs are in align rest as it goes up the stairs bending. Rotation scale applied. Tilt is also 0. Whats going wrong. Any suggestion or help Thanks.

I have attempting to make a fin tube for two days and it is killing me.  Fin tubes are pipes that have a tight spiral of flat fins sticking out all around them. The spiral wraps around the circumference of the pipe. They are used in heat reclaimers among other places.  I made a spiral using the extra shapes add-on and scales pretty tight. And then I set the scale.  I made the fin shape and set its scale. I added the curve modifier and it jumped around a bit. I set its origin point to one end face and finally got it going the right way off the beginning of the curve.  Then I added the array modifier and moved it to the top  of the stack. It all looked good for the first loop, then the fins started to tip. The outside edge aimed upward steadily as the inside edge seemed to continue to be oriented at the center base of the curve.  How can I keep the darned things at 90 degrees to the z axis? Or should I be using a particle system? I haven't learned that one yet, sigh.


A few months back when I buggered up my netbook and then booted into it to get information from it using a live USB. (Thinking that was 10.10)   When I was copy/pasting this to another USB at no time was I required to enter my user name or password to access this information. Why and how was that possible? Shouldn't that not be possible? This was information from the 'home' including documents, pictures, music, videos and some other locations.  This does not sound secure at all, is there any way that I can ensure this cannot happen again and that user name and password would be required to access information on my installed Ubuntu computer when booting on that computer from a live USB/CD/DVD?

Recently one of my friends came over to my place, within 15 minutes he hacked my account using a Live CD and reset the password in front of me. I was baffled to see such a thing. Please guide me to prevent such a future attempt using a Live CD.


I have designed a GUI which has a jTextArea. I can append text to this very easily in this class. But I would also like to append text to this from methods of other classes.  For this I make the jTextArea public and create an object of that class in the other class. Now I can write to the jTextArea while executing methods in the other classes.  But it turns out that I need a method of the class I created an object in within my GUI class as well. As I do that, StackOverflowError happens. What should I do?

What is a StackOverflowError, what causes it, and how should I deal with them?


When the user is asked to search for a word, I want it to be case-insensitive.  import string usersentence= input("Please type in a sentence without punctuation: ")  usersentence = ''.join(ch for ch in usersentence if ch not in set(string.punctuation)) print (usersentence.upper()) for i in range(1):      # number of words you wont to search     word= input("Please enter a word you want to search for in the sentence: ")     words = usersentence.split(' ')     passed = False      # Something to check if the word is found     for (i, words) in enumerate(words):         if (words == word):              print("your word appears in position(s): ")             print(i+1)             passed = True       # The word has been found      if not passed:         print("Sorry your word does not seem to be here")

How can I do case insensitive string comparison in Python?  I would like to encapsulate comparison of a regular strings to a repository string using in a very simple and Pythonic way. I also would like to have ability to look up values in a dict hashed by strings using regular python strings.


/testfor @p[score_state=1,score_state_min=1]   doesn't work! Why?  It returns this:     The entity UUID provided is in an invalid format   How can I fix this?

Because there are so many questions asking about this, but not closed as duplicates, I decided to make a uniting question here:  There are two three four basic situations here:   Why does the /testfor command (I have) always output an error (not listed below)?   Why does the /testfor command (I have) always output the entity UUID is an invalid format?   Why does the same /testfor command sometimes output the entity UUID is an invalid format instead of found [x] and sometimes not? Why does the /testfor command not output anything?


I can’t seem to access Grub on my HP Stream laptop (model 14-ds0033nr). Laptop came with windows 10, and I’m currently using Ubuntu 20.04 LTS as the sole OS. My main issue is that I forgot my root password, and need access to Grub (I think..?) to change the password. I’ve tried F1-F12, ESC, Shift, E,C following Post and nothing seems to work. I appreciate any help you guys can offer

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


If short is automatically promoted to int in arithmetic operations, then why is:  short thirty = 10 * 3;   A legal assignment to the short variable thirty?  In turn, this:  short ten = 10; short three = 3; short thirty = ten * three; // DOES NOT COMPILE AS EXPECTED   as well as this:  int ten = 10; int three = 3; short thirty = ten * three; // DOES NOT COMPILE AS EXPECTED   does not compile because assigning an int value to a short is not allowed without casting as expected.  Is there something special going on about numerical literals?

I have a question about the primitive type short in Java. I am using JDK 1.6.   If I have the following:   short a = 2; short b = 3; short c = a + b;   the compiler does not want to compile - it says that it "cannot convert from int to short" and suggests that I make a cast to short, so this:  short c = (short) (a + b);   really works. But my question is why do I need to cast? The values of a and b are in the range of short - the range of short values is {-32,768, 32767}. I also need to cast when I want to perform the operations -, *, / (I haven't checked for others).  If I do the same for primitive type int, I do not need to cast aa+bb to int. The following works fine:  int aa = 2; int bb = 3; int cc = aa +bb;   I discovered this while designing a class where I needed to add two variables of type short, and the compiler wanted me to make a cast. If I do this with two variables of type int, I don't need to cast.   A small remark: the same thing also happens with the primitive type byte. So, this works:  byte a = 2; byte b = 3; byte c = (byte) (a + b);   but this not:  byte a = 2; byte b = 3; byte c = a + b;   For long, float, double, and int, there is no need to cast. Only for short and byte values.


A year ago I was running Ubuntu Server 19.04 on rPI4. I needed vcgencmd so I had to install libraspberrypi-bin. I have notes on how to clone the userland repository, edit few files, and compile it from source. I did it last year and it works fine up to this day. I got another rPI4 today and need to install it again, however it looks like the files in repo changed since and my own obscure method doesn't work any more. I googled around and following  guide. I've added ppa:ubuntu-raspi2/ppa repo to my fresh Ubuntu 20.04 however after running apt update I get the following error: root@ubuntu:/tmp# sudo apt update Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease Hit:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease Ign:3 http://ppa.launchpad.net/ubuntu-raspi2/ppa/ubuntu focal InRelease Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease Err:6 http://ppa.launchpad.net/ubuntu-raspi2/ppa/ubuntu focal Release   404  Not Found [IP: 2001:67c:1560:8008::15 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/ubuntu-raspi2/ppa/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  It looks like that repo was last updated over 2 years ago I guess this guide is also out of date. My question in short: how to get libraspberrypi-bin on Ubuntu 20.04 for Raspberry Pi 4?

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


What is the easiest code to cite in PRL format. I was using the citation package apacite. Now i want to change it into PRL format. Is there any edasy way to do it?\ I tried using the rev4 package but it didn't work. I want the journal name in standard abbreviated format. Is there any other way to do it?

I'd like to know if someone ported the bibliography styles used in revtex 4.1 (like apsrev4-1.bst) so they can be used in other classes, like book.  Thanks in advance!


I'm trying to use the following code to insert three pictures horizontally - the code compiles perfectly, but the images are coming out as black boxes/rectangles.  I've made sure that the images are in the same file as the .tex document - what am I doing wrong?  I would really appreciate and help I can get.   \documentclass[english]{article} \usepackage[demo]{graphicx} \usepackage{babel,blindtext}  \begin{document}   \begin{figure}[!htb] \minipage{0.32\textwidth}   \includegraphics[width=\linewidth]{delete_gesture.png}   \caption{A really Awesome Image}\label{fig:awesome_image1} \endminipage\hfill \minipage{0.32\textwidth}   \includegraphics[width=\linewidth]{ok_gesture.png}   \caption{A really Awesome Image}\label{fig:awesome_image2} \endminipage\hfill \minipage{0.32\textwidth}%   \includegraphics[width=\linewidth]{settings_gesture.png}   \caption{A really Awesome Image}\label{fig:awesome_image3} \endminipage \end{figure}   \end{document}

I write some of my network notes in TeX. I wanted to make a table, and inside it insert an image:   .   I wrote a document:  \documentclass{article} \usepackage[demo]{graphicx} \usepackage{booktabs} \usepackage{array}  \begin{document} \begin{tabular}{m{3cm}m{3cm}m{5cm}} \toprule Configuration for ... & Commands & Topology\\ \midrule PPP: CHAP, PAP & \#sh int se 0/0/0  & \includegraphics[width=4cm, height=4cm]{chappap.png}\\  & & \\ \bottomrule \end{tabular} \end{document}   But instead of my network topology image, I see only this: .   I don't know what is wrong, cause my image is 100% in the same dir, as my *.tex file.  EDIT:  Changed my code as @Jubobs suggested, now everything is as I wanted:  \documentclass{article}     \usepackage{graphicx}     \usepackage{booktabs}     \usepackage{array}      \begin{document}     \begin{tabular}{m{3cm}m{3cm}m{5cm}}     \toprule     Configuration for ... & Commands & Topology\\     \midrule     PPP: CHAP, PAP & \#sh int se 0/0/0  & \includegraphics[width=4cm, height=4cm]{chappap.png}\\      & & \\     \bottomrule     \end{tabular}     \end{document}


Is it possible to import an fbx model, so that I can edit models from unity in blender?  I tried and nothing worked, when I open the file I see the default cube when opening blender.

I am trying to import an FBX file from Unity into Blender. Does anybody know how to do that?


I have several IRA mutual fund accounts in Vanguard Funds.  To pay taxes on time, I want to borrow some from the IRA's, but then pay it back within 60 days.  Does the IRS allow this?

In brief, I am projecting out a budget for a personal construction project I am having done, and the numbers are very tight.  I have some buffer built in, but if I exceed the buffer amount and my cash flow is restricted (e.g. my clients pay late, etc.), I will need some sort of short term bridge loan.  This is about six month down the road, but I am trying to understand my options before wading in.  From  it sounds like I can withdraw money ostensibly for the purpose of rolling the money into a new account, but can return the money within 60 days with no penalty.  Am I understanding this correctly?  Note that I would not consider this unless I feel 100% confident that I could pay the money back within the 60 days.  Given all of this, am I understanding the rollover rules correctly?  Any other pitfalls I would need to be concerned about?


Every one i have Lenovo G580 laptop which came without any operating system then i installed windows 8.1 and now trying to install Ubuntu 14.04 along side but the option in the Ubuntu installation does not shows windows 8.1 installed instead it suggests to install erase everything and install ...  please give me suggestions how to install Ubuntu alongside windows 8.1 thank you.. waiting for the suggestion.

Whenever I startup from the LinuxLive USB, and try to install Ubuntu 12.04, it only gives me two options instead of the usual 3 or 4. My options are "Replace Windows 7 with Ubuntu" and "Something Else". Whenever I go into "Something else", it looks extremely confusing. How do I install it side-by-side while using the "Something else" section? These are my partitions.   /dev/sda /dev/sda1 ntfs (104Mb, System Required Partition) /dev/sda2 ntfs (1000097Mb, Windows 7 Partition)   Or should I try reinstalling my installer on a CD rather than USB and maybe then it will have the "Install alongside" function?


I am designing a mobile (iOS/Android) game and I try to save data (such as levels, coins, status) in local files.  In this way, I am concerning a case that someone can just copy these files and give them to a friend, so the friend can have achieve certain levels and all the coins held in the data files right away.  Instead of saving the data in a server, is there any way to prevent this happen?  I am thinking to encrypt the data with a key that is unique for a device. Is this a good idea or it might cause some other problem?

What options are there for saving game data in a secure manner? I'm interested in solutions specifically tailored for C++.   I'm looking for something that is fast and easy to use. I'm only concerned about storing simple information such as   Which levels are and are not unlocked The user's score for each level   I'm curious again to know what's out there to use, any good libraries to use that give me nice, secure game data files that the average player can't mess with.   I just found  here which looks very nice, but it would be great to get some opinions on potential other libraries/options out there.


In a two months I will have a bachelors degree from a German University with an degree average (Notendurchschnitt) of 1.8 or 1.9 . My programme uses ECTS Credit Points. I am in the process of applying to British MSc programmes. They mostly require a Honours degree of "2:1" which, according to one university, is equivalent to "GPA 3.0".   Do I pass these requirements? And is it legit for me to say in my application that I have a GPA of 1.9?  I tried to get my head around these degree specifications but was unable to.

I'm trying to figure out the equivalence between grade schemes in different countries.  According to some Google results:   If you are a U.S. citizen, you need a GPA of 3.2+ (it varies, some say 3.2 and some others say 3.6, etc) to apply for a position in the UK (job or university) where the prerequisite is to have a minimum grade of 2:1. In UK 2:1 is earned if you have a 60-69% of the points. I've read that 2:1 is the same as 67%. In Spain we use a grading scheme of 10 points. So according to (2), for have a UK 2:1 you need to have 6-6.9 points. If you are Spanish and have 6.7, when converting it to GPA the result is 1.5.   However, if you take the above points and treat them as a math equation, the final result will be GPA 1.5 = GPA 3.2, which doesn't make any sense.  GPA 3.2 = UK 2:1 UK 2:1 = Spain 6.7 Spain 6.7 = GPA 1.5   Replacing now...  UK 2:1 = GPA 1.5     GPA 3.2 = GPA 1.5   My question is if someone has a better explanation on converting grades obtained in different countries.


how to glue multiple CPUs together, I mean How openstack achieves it. What do they really mean when they say create CPU cluster using Openstack Nova. Openstack is written in Python, Any example ( Basic one ) would be appreciated.

We are studying implementing some virtualized servers here, but we don't know what will be better suitable for us. Some folks are saying better have two huge servers, and others are saying have like a ten middle-end servers.  We have a legacy Visual Foxpro application, which nowadays run on Dual Xeon E5405 @ 2GHz and 16Gb of RAM. The currently server its getting too slow due the number of active users and process running on it. Virtualizing this server will give us the benefit of an faster disaster recovery.  So the question is, having like ten physical servers running at 1.7GHz and 4Gb of RAM, we could virtualize one server into 4 machines, and have one virtualized server running at 6.8GHz and 16Gb of memory? If yes, there is some how if one machine stops, automatically manage this virtual machine to another one, and execute the appropriate maintenance on it, and later back to it again?


I would like to ask if there any Java API which can fire events, when a specific line on the txt file change and which line is change, modified or delete? If not, I would like to point me the direction to look about it!  Thanks

I'd like to be notified when a file has been changed in the file system. I have found nothing but a thread that polls the lastModified File property and clearly this solution is not optimal.


Is the definition of $p\rightarrow q$ in logic $(\lnot p) \lor q$?

I was looking at an exercise where it asked the following:  $$\begin{array}{ccc} p&q&p\rightarrow q \\ T&T&T \\ &\ldots \end{array}$$  So, for the third column, I just put $T$ which was correct but I didn't understand what $\rightarrow$ meant. I have seen $\implies$ but I haven't the arrow. Are they the same thing?  Thanks a bunch!


UPDATE: I know this has been marked as a duplicate, but none of the following duplicate answers have worked (including restarting):        This works: , but my original post is asking how to get around this specific hack...  My setup: OSX Mountain Lion, Parallels, Windows 7 VM, Visual Studio Ultimate 2013  The problem that I have is that when I open Visual Studio to make a new solution/project, whether or not I add files or work for however long, then close Visual Studio completely, and I want to delete the root solution/project folder that was created by Visual Studio, Windows tells me that I cannot delete that folder and tells me "You'll need to provide administrator permission to delete this folder".  However, if I go into that same root solution/project folder and delete all the files in there first, which it lets me do no problem, then back up, it then allows me to delete the root solution/project folder without issue.  I have no idea how to delete that folder without going in and doing that hack.  I should note that I am also a programming teacher who creates multiple solution/project folders everyday and then deletes them afterwards, so this is really getting annoying at this point.  Is there something I am missing with: Windows permissions, Visual Studio settings, special hidden files, locked files, etc. that is creating this situation?  I have asked people who use Visual Studio 2013 and Windows 7 without VM and they have never seen the issue, so I suspect it has something to do with the VM part of this...   Note: I am an administrator on both systems and installed everything myself.  If I turn on the "Owner" column in Windows Explorer, it shows that I am the owner of all files created in the folder.  Using Visual Studio itself, I've had no problems; only this problem exists.  Screenshots:

There's a folder on my desktop called like 'example' and when I try to delete it it says "You require permission from the computer's admistrator to make changes to this folder" when checking the properties; the Current owner says "Unable to display current owner."  I have tried many solutions found online, including enabling & signing into the adminstrator account, but haven't been able to fix it. My situation is extremely similar .  I can't even open the folder. I am running Windows 7 x64 Home Premium. I can't do anything to the folder because I need permission from my 'computer administrator' It's extremely weird, and I can't fix it. Thanks in advance!  UPDATE: Yes, I'm adminsitrator on my computer.


Once i switched on my television and i noticed that bits of paper and pieces of string stick to it. I decided to conduct my own experiment and bought a headphone jack near the screen and there was a visible spark on the jack . Can anyone explain this phenomenon.

My physics textbook states an activity- "Cut out thin strips of paper and lightly iron them. Take them near a TV screen or computer monitor. The strips get attracted to the screen and may cling to the screen for a while." But this doesn't happen in practice. Is this because I did the activity with an lcd screen. Will a crt/led/plasma screen make it happen? If so, why? Why should the paper strips be ironed?


Find all function $f: \Bbb{N}_0  \rightarrow \Bbb{N}_0 $ satisfying the equation $f(f(n) + f(n) = 2n +3k$ for all $n \in \Bbb{N}_0 $ where $k$ is a fixed natural number.   I have proceeded with solution to a point but I am not able to go further  so lets say $f(0)=m$ $\implies$ $f(m) =3k-m$ $f(3k-m)=f(f(m)=2m+3k-f(m)=3m$ $f(3m)=f(f(3k-m))=2(3k-m)+3k-f(3k-m)=9k-5m $  after this I am not able to proceed through

Find all functions $f:\mathbb{N_{0}} \rightarrow \mathbb{N_{0}}$ satisfying the equation $f(f(n))+f(n)=2n+3k,$ for all & $n\in \mathbb{N_{0}}$, where $k$ is a fixed natural number.  A friend of mine suggested me to use recurrence relation. While it is unfortunate that I have problems understanding recurrence relation. Please refer information to understand difference equation, homogeneous equation & auxillary equation.  Thanks in advance! Kindly don't down vote for not showing my attempt. I am seriously not able to understand the question and the process suggested to use.


I am trying to use the value of a String obtained through JOptionPane. However, there is a problem with reading the String. What am I doing wrong here?   import javax.swing.JOptionPane; public class convertNumber123 {         public static void main(String[] args){             String numsystem1;             numsystem1 = JOptionPane.showInputDialog("Please enter the numeral system that you want to convert from: binary, octal, decimal or hexadecimal.");              if (numsystem1 == "Binary" || numsystem1 == "Octal" || numsystem1 == "Decimal" || numsystem1 == "Hexadecimal")                 System.out.println (numsystem1 + "it is!");             else                  System.out.println ("Please, enter the correct system name.");         } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


When should I not use indefinite articles? I get very confused.

I can’t for the life of me figure out where to use a and where to use the — and where there is no article at all. Is there a simple rule of thumb to memorize?   The standard rule you always hear:     “If a person knows which item you are talking about then use "the"   . . . doesn’t clear things up for me, as I have no idea whether or not they know.


Would using there are instead of there is be acceptable in utterances that talk about quantity? For example,        There are 300,000 dollars in my account.    There are 20 gallons of petrol in my tank.

I read the following sentence on YouTube and initially thought it was grammatically incorrect:     Here are 10 minutes of the movie Black Hawk Down!   I thought "are" should have been "is" but then I realized minutes is plural so the plural form, are, is used correctly. I also thought how most people would naturally say "Here is ten dollars in change" but is the use of the singular form, is, correct since dollars is plural?   Am I misunderstanding a rule?


I have a wrapper function that allows me to achieve the result of sprintf by writing one line of code instead of 3.  void output(const tstring& format, ...) {     va_list args;     va_start(args, format);      const int len = _vsctprintf(format.c_str(), args) + 1;     TCHAR* buf = new TCHAR[len];      _vstprintf(buf, format.c_str(), args);     OutputDebugString(buf);      delete[] buf; }   My problem: The variadic arguments are corrupted.   For example;  output(_T("%d\n"), 1); // outputs: -858993460 output(_T("%d\n"), 2); // outputs: -858993460   Whats the cause of this error and how can I fix it?

I have this piece of code (summarized)...  AnsiString working(AnsiString format,...) {     va_list argptr;     AnsiString buff;      va_start(argptr, format);     buff.vprintf(format.c_str(), argptr);      va_end(argptr);     return buff; }   And, on the basis that pass by reference is preferred where possible, I changed it thusly.  AnsiString broken(const AnsiString &format,...) { ... the rest, totally identical ... }   My calling code is like this:-  AnsiString s1, s2;     s1 = working("Hello %s", "World");     s2 = broken("Hello %s", "World");   But, s1 contains "Hello World", while s2 has "Hello (null)". I think this is due to the way va_start works, but I'm not exactly sure what's going on.


I'm using gdalwarp -dstalpha src.tif dst.tif to add alpha channel to an 8-bit unsigned image with 3 bands. The initial size of the image is 300 mb, but adding an alpha band increases it to 1980 mb, which is far more than expected 1/4 increase.   What is the matter?

After using gdalwarp to project and align-to-grid (via -tap) a number of rasters I noticed that the output rasters were significantly larger than the original rasters. A fairly thorough web search turned up :  Frank Warmerdam explained the reason: "On careful review, the difference in the file in question is because gdal_translate uses the TIFFWriteScanline() interface to write the output file from within GTiffDataset::CreateCopy?(), and this only writes as much of the final 'strip' of the file as is required to complete image area. But gdalwarp goes through the blockio interface which writes the complete final strip, even the portion that falls off the end of the file."  This Trac issue is ~7 years old, however, and I know some changes to the GDAL utilities, including gdalwarp have been made since. I'd like to know if the above reasoning still holds and if the file size inflation I'm seeing is "normal." The word "normal" here might be taken to mean unsurprising or expected but, more importantly: is there anything that can be done to mitigate the effects i.e. reduce the output raster file size? Below is a table of the file size inflation I'm experiencing. Input File Size (bytes)     Output File Size (bytes)    Inflation 1437380431                  1698334217                   18% 1428001178                  1698334433                   19%   41683165                   137036637                  228%  The input TIFF files were created in ArcGIS and thus have external Worldfiles, XML and DBF files but these do not make up the difference in file size. Here is a sample gdalwarp call as I've used it in all of these cases; the actual execution was handled by a Python subprocess (subprocess.Popen): $ gdalwarp -tap -tr 30 30 -t_srs "+proj=aea +lat_1=20 +lat_2=60 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs" -co "COMPRESS=LZW" input_file.tif output_file.tif  I understand that in rare cases compression makes a larger file, but the effect is the same without the LZW compression. The ratios in the table are with LZW compression.


I want to see all the duplicate questions which were asked by other users in webmasters.stackexchange.com. I tried a lot but I don't find any filter option to see only duplicate questions. How can I find those questions alone?

I often search for closed questions and sift through the ones that are not duplicates to see if any of them need to be killed. Technically, closure is the first step towards deletion and the only closed posts that are actually useful are duplicates (unless it's a crappy one).  For the rest, if the community hasn't bothered to reopen it after a while or if the OP has made no effort to edit their question, I delete it if it has no redeeming content. For example, the only closed posts seen on  are exact dupes.  But this does become tedious when there are several results for various close reasons with duplicates interspersed between them. I'd like to be able to search as:  closed:1 duplicate:0   so that it gives a list of questions closed as OT/NaRQ/NC/TL. This will be similar in behaviour to migrated:0|1.   This will also be useful for 10k+ users on all sites (2k+ in beta) in the network, especially SO, so that they can search for questions to spend their delete votes on— especially closed, non-dupe questions in the tag they specialize in. More often than not, I hesitate to vote on questions that are outside my area of interest (unless it is crappy).


When I use Windows I currently use AutoHotKey to re-map keys (I swapped keyboards on my laptop).  Is there any way I can do this in Ubuntu via a script which I can just double-click from the desktop? Or can AutoHotKey/anything similar be used on Ubuntu?  Any example is most welcome- say remap the insert key to the home key?

I want to change the key bindings on some of the keys on my keyboard.  I want some to run commands and others to activate different keys.  What applications can I use to do this?      Index:       (from within System Settings)             I'm still looking for answers using dconf and any other method.


I have an iPhone 6s, released in 2015. I want to know if I can install iOS 5.1.1 on it, and if it is possible.  I don't care if it could brick my iPhone. I'm willing to do it.

I'm trying to downgrade my iPhone from the current iOS to an older one, as per .  But every time I try, I always receive this error:     The iPhone could not be restored. This device isn't eligible for the requested build.     I have tried many times with and without DFU mode. Any ideas regarding this?


A few days ago, I have seen an example of a latex file, that did conditional \defs on subsequent runs but I can't find that one again.  I still remember that it was by looking into the \jobname.aux do get the number of previous builds.  In my current situation, I'd like to not use package minted but define its commands to simply use verbatim-environment during the first two builds and using minted and its built-in macros for syntaxhighlight in the third run.  How exactly can I get the number of previous latex-runs?

I am not that much into TeX/LaTex programming ...   but what I want to do is the following:   How to put a number into my document that increments with every compilation  My ideas so far are:   use a text file as storage of the number read in the number add 1 save the number to the text file put the number into the text   I was able to use something like this :  \documentclass{minimal} \newwrite\tempfile \begin{document} \immediate\openout\tempfile=lists.tex \immediate\write\tempfile{1} \immediate\closeout\tempfile \input{lists} \end{document}   () to write to a file but did not manage to read the number from the file into a variable that than could be iterated by one and saved back to the file. Does anyone has an idea?


I am not talking about event horizons. I am talking about the actual remnant of stellar collapse.  Is it just a point, hence the problem with the singularity? Or does it have a finite volume that we can infer from observable quantities?

Assuming we have a sufficiently small and massive object such that it's escape velocity is greater than the speed of light, isn't this a black hole? It has an event horizon that light cannot escape, time freezes at this event horizon, etc. However this object is not a singularity.  If a large star's mass were compressed to the size of, say, a proton, it would certainly have these properties but it would still not be a singularity as a proton does have volume.  The reason "physics breaks down" at singularities is because we cannot divide by zero, but as long as the proton-sized object has volume, physics won't "break down", yet we still have an event horizon and an object that is invisible (but not undetectable) from the outside.  I have read the answers to  related question. I'm not sure if they don't address my specific question or if I don't understand the answers.


My post on Stack Overflow was automatically turned into a Community Wiki, the rules of which I was not aware of before. This seems to have happened because it was edited more than ten times by me. The edits had a valid reason, and the post was flagged to undo its Community Wiki status, which a moderator indeed did.  After almost one day's heavy work with the OP, it was accepted as the correct answer while in the Community Wiki state. With this state reverted, the relevant reputation, i.e. upvotes and answer selection after becoming CW, seems to be lost. I have tried to wait for several hours to check if this is just a latency issue, but it does not seem to be so.  I was looking for similar threads on Meta, and found these:    There was another one, which I cannot find right now. Sorry about that.   Would it be possible to implement a feature which makes it possible to either not lose or reclaim the reputation?

A per the Community Wiki ,      The original author keeps the reputation gained (or lost) before their   post entered community mode.      The original author can flag the post to moderator attention for   re-convert the C.W to normal post, the moderators will take action on   that.   If the Community Wiki status of a post is reversed, what will happen to the reputation of votes (Up/down) gained by the post at during its time as a Community Wiki?


I wanted to connect to a sql server database and print the results of my query using python. Here is the python script.  import pyodbc  conn = pyodbc.connect('Driver={SQL Server};'                       'Server=.\SQLEXPRESS;'                       'Database=Fun;'                       'Trusted_Connection=yes;')  cursor = conn.cursor() cursor.execute('SELECT * FROM Testing')  for row in cursor:     print(row)   I get the following result:     (u'Hello', )   It should just say 'Hello' without the "u" in there. Do I need to change my database configuration so that I don't get the u? Or is there something wrong with the python code I'm using. This is python 2.7.

This will surely be an easy one but it is really bugging me.   I have a script that reads in a webpage and uses  to parse it. From the soup I extract all the links as my final goal is to print out the link.contents.  All of the text that I am parsing is ASCII. I know that Python treats strings as unicode, and I am sure this is very handy, just of no use in my wee script.   Every time I go to print out a variable that holds 'String' I get [u'String'] printed to the screen. Is there a simple way of getting this back into just ascii or should I write a regex to strip it?


Consider the function $f$ defined by $$f(x)=\int_0^{2\pi}\ln\left(x^2-2x\cos t+1\right) \,dt.$$  I tried calculating values of this function using Wolfram Alpha and I observed that $f(x)=0$ for all $x\in[-1,1]$. How can we prove this fact?

For $a\ge 0$ let's define $$I(a)=\int_{0}^{\pi}\ln\left(1-2a\cos x+a^2\right)dx.$$ Find explicit formula for $I(a)$.   My attempt: Let  $$\begin{align*} f_n(x) &= \frac{\ln\left(1-2 \left(a+\frac{1}{n}\right)\cos x+\left(a+\frac{1}{n}\right)^2\right)-\ln\left(1-2a\cos x+a^2\right)}{\frac{1}{n}}\\ &=\frac{\ln\left(\displaystyle\frac{1-2 \left(a+\frac{1}{n}\right)\cos x+\left(a+\frac{1}{n}\right)^2}{1-2a\cos x+a^2}\right)}{\frac{1}{n}}\\ &=\frac{\ln\left(1+\dfrac{1}{n}\left(\displaystyle\frac{2a-2\cos x+\frac{1}{n}}{1-2a\cos x+a^2}\right)\right)}{\frac{1}{n}}. \end{align*}$$ Now it is easy to see that $f_n(x) \to \frac{2a-2\cos x}{1-2a\cos x+a^2}$ as $n \to \infty$. $|f_n(x)|\le \frac{2a+2}{(1-a)^2}$ RHS is integrable so $\lim_{n\to\infty}\int_0^\pi f_n(x)dx = \int_0^\pi \frac{2a-2\cos x}{1-2a\cos x+a^2} dx=I'(a)$. But  $$\int_0^\pi \frac{2a-2\cos x}{1-2a\cos x+a^2}=\int_0^\pi\left(1-\frac{(1-a)^2}{1-2a\cos x+a^2}\right)dx.$$ Consider $$\int_0^\pi\frac{dx}{1-2a\cos x+a^2}=\int_0^\infty\frac{\frac{dy}{1+t^2}}{1-2a\frac{1-t^2}{1+t^2}+a^2}=\int_0^\infty\frac{dt}{1+t^2-2a(1-t^2)+a^2(1+t^2)}=\int_0^\infty\frac{dt}{(1-a)^2+\left((1+a)t\right)^2}\stackrel{(*)}{=}\frac{1}{(1-a)^2}\int_0^\infty\frac{dt}{1+\left(\frac{1+a}{1-a}t\right)^2}=\frac{1}{(1-a)(1+a)}\int_0^\infty\frac{du}{1+u^2}=\frac{1}{(1-a)(1+a)}\frac{\pi}{2}.$$ So $$I'(a)=\frac{\pi}{2}\left(2-\frac{1-a}{1+a}\right)\Rightarrow I(a)=\frac{\pi}{2}\left(3a-2\ln\left(a+1\right)\right).$$  It looks too easy, is there any crucial lack?  $(*)$ — we have to check $a=1$ here by hand and actually consider $[0,1), (1,\infty)$ but result on these two intervals may differ only by constant - it may be important but in my opinion not crucial for this proof.


So I know that $\sum_{n\in\mathbb{N}}1/n$ diverges and $\sum_{n\in\mathbb{N}}1/n^2$ converges. What about the series $\sum_{n=2}^\infty1/n(\log(n))$? I'm pretty confident that it diverges but is there a quick justification?

Recently, I encountered a problem about infinite series. So my question is how to know whether the infinite series $\sum _{n=2}^{\infty } \frac{1}{n \log (n)}$ is convergent?


Trying to work on a project but keep getting this error.     Error  1   Inconsistent accessibility: parameter type 'GICT_Project.IObjects' is less accessible than method 'GICT_Project.DatabaseService.Insert(GICT_Project.IObjects)'  E:\GICT_Project\GICT_Project\DatabaseService.cs 86  28  GICT_Project   Don't know whats wrong. Have tried to change stuff to public but no dice.  Here's the problematic code:  public static void Insert(IObjects classType) //insert tool data {     string query = "";     string type = (classType.GetType()).ToString();     switch (type) {         case "Tools":             query = "INSERT INTO group2.Tools (ToolID, ToolName, Quantity) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Service":             query = "INSERT INTO group2.Services (ServiceID, ServName, ToolID) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Location":             query = "INSERT INTO group2.Location (LocationID, Location, Features) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Appointments":             query = "INSERT INTO group2.Appointments (AppointmentID, CustomerID, ServiceID, LocationID, EmployeeID) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Employee":             query = "INSERT INTO group2.Employee (EmployeeID, EmpName, EmpBirthday, EmpAddress, LocationID) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Customer":             query = "INSERT INTO group2.Customer (CustomerID, CusName, CusBirthday, CusAddress) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Skills":             query = "INSERT INTO group2.Skills (SkillID, SkillName) VALUES(" + classType.GetSqlInfo() + ")";             break;             //many to many tables need to create rows on connecting tables when initialised     }     InsertQuery(query); }   And this is separate class:  interface IObjects {     string GetSqlInfo();     int GetId();     void InsertData(); }

Whats wrong with the following c# code? Compiler reports this error:  Inconsistent accessibility: parameter type 'ClassLibrary1.Interface1' is less accessible than method 'ClassLibrary1.Class1.Class1(ClassLibrary1.Interface1)'  with the following code:  interface Interface1<T> {     bool IsDataValid();     /* Other interfaces */ }  public class Class1<T> {     public Interface1<T> interface1;      public Class1(Interface1<T> interface1)     {         this.interface1 = interface1;     }  }   I've since designed my code differently using inheritence to but if anyone could tell me what the above is wrong I'd greatly appreciate it.


Getting this error: Error: Compile Error: unexpected token: 'List'   public String SupportTierValue {   get {       List tmpAcct = [SELECT Id, Name, Support_Tier__c     FROM Account     WHERE Id IN      (SELECT AccountId      FROM user      WHERE username=:UserInfo.getUsername()     )     LIMIT 1     ];     if (tmpAcct.size() > 0) {     String SupportTier = tmpAcct[0].Support_Tier__c;     }     else {     String SupportTier = 'SomeDefaultValue';     }    } return SupportTierValue;  } private set;  }

Getting error with this code but I can't figure it out  trigger LeadConvert on Lead (after insert) {     list leadsToConvert = new list();      Database.LeadConvert lc;     string convertedStatus = '';     list convertStatusList = new list();     convertStatusList = [Select Id, MasterLabel                          from LeadStatus where IsConverted=true limit 1];     if(convertStatusList.size() > 0){         convertedStatus = convertStatusList[0].MasterLabel;         }     else{              convertedStatus = 'Closed - Converted';          }      for(Lead l : trigger.New){         if(l.AutoConvert__c == true){             lc = new database.LeadConvert();             lc.setLeadId(l.ID);             lc.setDoNotCreateOpportunity(true);              lc.setConvertedStatus(convertedStatus);             leadsToConvert.add(lc);         }     }      list lcrList = new list();     lcrList = Database.convertLead(leadsToConvert); }


I'm looking for another way to describe the act of forcing yourself through a s*** week

I need a single word which means "keep moving forward". What are my options?  I need word as   persevere Be persistent, refuse to stop  cognizant (sometimes followed by 'of') having or showing knowledge or understanding or realization or perception  [] keep moving forward  I want to make meaningful name for firm  please help me


When revisiting Ohm's Law, I wondered why (I know it's experimentally derived) the voltage change between two points would depend on current. I could understand this dependence with total energy dissipated in moving a current across a resistor but I can not understand why the P.D. (i.e. the work done per unit charge) depends on the current being passed. Essentially, I'm asking why does the amount of energy needed to move a single unit charge depend on how many charge carriers there are with it?

If voltage is a potential difference, describing how much energy will be lost per unit charge as charge carriers pass through the resistor, why would the rate at which charge flows (i.e. current, $=dq/dt$) affect the amount of energy lost per unit charge?  I suppose I am asking why a quasi-"extensive" property of the system (current) would affect a quasi-"intensive" property of the system (voltage drop across the resistor).  Apologies if the answer is obvious; I was having trouble understanding why the rate of charge flow would factor into voltage drop whilst trying to rationalize Ohm's law for myself.


I want to activate CSS using JS. Let's say I have this code, and I want to enlarge a picture at first click and then send it to the right after at the second click, but it's not working. Is the function correct?  How can I use JavaScript to control the CSS of an element?          I want it to activate this CSS:  .mystyle { position: absolute; left: 50%; margin-left: -100px; }  .mystyle2{     float: right; }

I have an element that already has a class: <div class="someclass">     <img ... id="image1" name="image1" /> </div>  Now, I want to create a JavaScript function that will add a class to the div (not replace, but add). How can I do that?


I got LG OPTIMUS G PRO (F240L) and I wanna know , will it get OTA 4.5 updates?

Android 5.0 (Lollipop) was officially announced on October 15th, 2014.  You can review the high-level changes at the  and the announcement on the official .  Of course, not all devices will get this update right away and others won't get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.  When will each device get Android 5.0, either officially or unofficially, if ever?  See also:


I've been experimenting with pointers and written the following code:  #include <iostream>  using std::cout;  struct A {     int a;     char b;     A(){ a = 4; } };  struct B {     int c;     B(){ c = 5; } };  A *a = new A; B *b = new B;  int main() {      a = (A*)b;      cout << a -> a; //5 }   Why B* can be converted to A*? Can any pointer be converted to any other pointer?

What are the proper uses of:   static_cast dynamic_cast const_cast reinterpret_cast C-style cast (type)value Function-style cast type(value)   How does one decide which to use in which specific cases?


If I’m wearing a set of full plate  armor and I replace the gauntlets with gauntlets of ogre strength do I lose the AC provided by the full plate as I’m no longer wearing a full set of full plate armor?

In Adventurers League, can you wear magical boots/gloves/gauntlets while wearing plate armor?


My old name was CreepyDudes (GD account), and I changed it to CreepyDudes2. Now I want to change it again because I didn't choose wisely.  Is there a way to change your username more than once?

I accidentally changed my brother's account name and can't change it back. Is it possible to change it again?


New to Illustrator (cc) and having some issues making the align tool work for me. I am trying to place all pieces 1.5mm apart for a lasercutting file but when I use the align tool it causes them to either overlap or spread much farther than 1.5mm apart. I am too busy to manually measure the distance between hundreds of objects and play puzzle master; so I am really hoping someone can explain why my objects overlap/spread instead of placing themselves 1.5mm apart like I specify.  Thankyou in advance for any help you can give me!

I am creating an animated sprite list in Adobe Illustrator. I finished creating the sprites and used the Horizontal/Vertical Distribute Center commands to distribute the objects equally in some area.  But, if the objects are spread too far apart, the Distribute Center tool leaves, albeit equal, much distance between the objects. The opposite is true: if the objects are too close then distributing them will just overlap them.  My question is, is there any tool that just puts objects side by side?  I imagine that this tool would work if the objects aren't even equal in size.   I have viewed  and answer but it is not what I need.


I used Fermat's Little Theorem to get $x^2 \equiv x\pmod 2$ So $2k = x^2-x$ for some integer $k$ $= 2k = x(x-1)$, note that this is a product of two consecutive numbers, so we can rewrite it as $2l$ for some integer $l$ $ = 2k = 2l$ $= k = l$ I don't think this tells me anything meaningful. I think my wrong step is when I start to toy around with the product of consecutive integers, but I am not sure how else to proceed.

If a prime number $p$ is a divisor of a product $ab$, $p$ has to be a divisor of $b$ or $a$. How can I demonstrate this theorem? I demonstrated this theorem on one way using Bezout's theorem in an  but are there other proofs??


I want to compare Actual table with @TableType_TVP IF Duplicate Row Exist  Create procedure sp_InsertintoTable @TableType_TVP TableType_TVP READONLY AS   IF(Duplicate Row not Exist then)  Begin       INSERT INTO ActualTable      Select * from @TableType_TVP        Select Inserted row count also   END else    Begin          Count Duplicate Row   End

Assume a table structure of MyTable(KEY, datafield1, datafield2...).  Often I want to either update an existing record, or insert a new record if it doesn't exist.  Essentially:  IF (key exists)   run update command ELSE   run insert command   What's the best performing way to write this?


I am currently writing my master thesis and have some specifications with the numbering. My professor wants my numbering as followed:  1. section   1.1 subsection   1.1.1 subsubsection   I need a period after the section, but not after the subsections. I am using scrartcl and already tried: numbers=autoendperiod and numbers=endperiod. There also seems to be a problem with \usepackage{titlesec}, as I am getting some errors when I try to use it.    Thanks a lot

I would like to add a dot between the number of the section and section name. I used   \makeatletter \renewcommand*{\@seccntformat}[1]{% \csname the#1\endcsname .} \makeatother   The problem is that, obviously, it put a dot also among subsection number and subsection name which I do not want. Is it possible to add the dot only between section number and section using low level instructions i.e. without any additional package?


BACKGROUND:  Once upon a time, when I installed Ubuntu 10.x on an older machine, and kept upgrading it until 13.04 or 13.10, there was an easy-to-find option in Settings that allowed to install NVidia's proprietary drivers and keep them up to date (or not, because sometimes they released a new version with a bunch of awful regressions).  Now, when I installed 13.10 on my new laptop, which I then upgraded to 14.04, I haven't ever been able to find that option anywhere.  An attempt to install nvidia drivers with apt-get dont-remember-what resulted in a screwed up system that wouldn't properly start Unity (or even xorg, not sure), roughly equivalent to an unbootable system. But I managed to revert that.  I seem to understand that there are some sort of opensource drivers called "nouveau" that come by default in Ubuntu which kind of provide an alternative to NVidia's proprietary drivers. Is that so?   THE PRACTICAL QUESTIONS:   Is it ok to not install NVidia's drivers, or am I underutilizing the potential of the GPU (i.e. not using all the available hardware acceleration)? Or in other words: is there a test I can run to check whether hardware acceleration of my GPU is being properly used with my current setup (nouveau or whatever it is)? What's the proper recommended way to install NVidia proprietary drivers now on Ubuntu 14.04, without bricking the system?

I just ordered the Nvidia GTX card. I have a dilemma, though. Should I keep using the driver which is available in "additional drivers" in Ubuntu, or should I install the driver from the Nvidia site?  So which driver is the best for me?


I was wondering if it's possible to use my headphones+microphone just as a microphone using a2dp profile.  I have problems using HSP because the quality of sound is very poor so i was thinking of using 2 Bluetooth headsets, one as real earphones and one as a mic.  I know that ad2p is unidirectional but can I choose if use it as input (microphone) or output (earphone)?

I'm trying to use my headphones with my Ubuntu 13.10. My headphones are Nokia BH-905i, which can be connected via Bluetooth or green+pink wires.  If I use bluetooth, voice quality is terrible or microphone doesn't work. If I try to choose "Headset" option from In and Out tabs in Sound Settings, they're disabling each together.  In Out tab, I'm using "High sound quality A2DP", because it betters voice quality.  How could I get my microphone working? Sound out works fine.


I have a Macbook Pro A1278 with a dead hard drive.  I have put a new hard drive in it and now need to figure out how to get my hands on the os.  Does anyone know if it is possible to still download OS X El Capitan?  If so, how?

Sometimes it's hard to search for older versions of macOS & OS X  on the App Store.  This is an attempt to provide the canonical QA for this issue, as per the Meta QA -  I expect it to be modified over time to hopefully become a complete information resource.  How can I get any older version of a Mac OS to be able to run as a VM, or to reinstall on my Mac?


I am applying for a visit visa to the UK to attend a competition, I have an invitation letter for it. A company is willing to sponsor me, but I need info on what documents are needed.  I have an idea of docs needed if its a person: 1. bank statement of last 6 months 2. letter from bank manager 3. Signed affidavit  I need an idea of what is needed for a company.

There seems to be a consistent pattern on TSE, with scores of questions about what documentation best accompanies a visa application, posed not just by those reapplying after a refusal, but by first-time applicants prior to submission (and a few with post-submission anxiety).  What is being overlooked, lost in translation, missed? Why is this question even being asked here, when the UK government publishes its own straightforward information?


I am currently studying a published article as part of an undergraduate research project I am doing. I am having difficulty understanding specific parts as the article is quite dense and makes some leaps in logic that I am having trouble following. The article is of a mathematical/computer science nature and suppresses many details.  I would like to email the article's author to ask a question or two, and I am wondering, is this appropriate? If I were a post-doc or something I would not hesitate. My concern is that as an undergraduate, perhaps my questions will be silly and/or a waste of time for the author. Or worse yet, I am concerned that it is inappropriate for an undergraduate to email at all. Can anyone offer some comments on this? Some relevant info:  - I have studied the problem and am unable to answer the questions thus far.  - My supervisor does not know the answer either and would have to study the paper (my job) to determine the answer.  As noted, this is nearly identical to a question asked by a Masters student, but I feel it justifies its own responses. My concern here is that I may be asking questions that would be obvious to a Master's student.

I am reading a paper and have questions about the details of the procedure described. I have read other papers by the same team but they don't explain too much about that procedure anyway. I think it might be common, but my supervisor doesn't know it too.  I am stuck and I want to get out of it. As a student working on my master thesis, can I email the contact author for the manuscript cold out, or should I ask someone to contact him for me? I would ask my supervisor but I don't want it to imply that I'm avoid taking initiatives when I could do it on my own.


I'm trying to remember then name of an old book I read as a kid, hope someone can help locate it?  Ok the book I read was part two of a trilogy from around the 70s maybe 80s, it starred a hero who was modified by some kind of either advanced tech or alien tech so that he could grow his fingernails and canine teeth when he needed to fight. I think his teeth were poisonous too, and I think he wore a ring that triggered this change somehow. The book was set on some alien planet with spaceships and so on, there was a part where an alien spaceship was found buried underground and the hero went to investigate it, I think there was some link to his power to transform found in this ship.  The cover of the book showed the hero piloting a spaceship with his teeth and "claws" extended and the ring on show on his finger. He wore a seventies looking sci fi helmet.  Um.. Honestly that's about all I can remember of it.. A bit vague I know.. Can anyone help? Does it sound familiar?

I have very vague impressions of a book I must have read as a child/teenager in the 1980s (so probably published in the UK in the 1970s or early 1980s).  It featured a man who had been technologically enhanced with special powers that he could activate only for short periods (probably because they took a lot of energy), possibly by tonguing one of his teeth.  They gave him:   Much faster reactions; everything around him slowed down. Greater strength/speed. Metal fingernails/claws. Possibly some sort of enhanced vision, too.   I think it described him engaging these powers as: He activated. or similar.  He may have been a mercenary type, who had paid a lot for them; they were rare or unique.  I don't recall any plot or other characters; it was probably a techno-action story.  (No magic, armies, warrior races, telepathy, vampires, or mutants, and I don't recall aliens or space travel.)  It may have been part of a short series of 2 or 3 books.  I'm afraid this isn't much to go on!  I'd completely forgotten about this book until recently, and my impressions are very hazy, so any of the above could be wrong.  (I remember enjoying it, though.)  I've not found anything I recognise on this site, or others; nor in lists of adult and young-person's SF for that period (so it probably wasn't a big-name author).  Does it ring any bells for anyone?


I'm using a PHP script to get some data from a MySQL database table. I can see the table has the collation utf8mb4_general_ci  When the text is displayed on the page, I get:  Cust�ias   Instead of:  Custóias   This is what I'm trying:  echo ''.iconv('utf8mb4_general_ci', 'UTF-8', $row['address_city']).'', "
";   And:  echo ''.converter($row['address_city']).'', "
";   With:  function converter($conteudo){     return iconv( 'utf8mb4_general_ci', 'UTF-8', $conteudo ); }   And also:  header('Content-Type: text/html; charset=utf-8');

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Or why do all but one (I think there's only one...)?  All the sites I see end with 'Stack Exchange` on their logo's tooltip, site's welcome bar, etc... but Cross Validated doesn't - why is that? Are there any more sites without the suffix?  Examples:

I've found a strange thing: some Stack Exchange sites have their own domain names instead of https://[site name].stackexchange.com. The websites which have their own domain names are:          Are there any parameters for allocating specific URLs to Stack Exchange sites?


I know that -273.15 degrees celsius, also known as Absolute Zero or 0K is the low temperature limit for objects, but is it possible that there is a 'highest temperature?'  I would have to guess that it's when it allows objects to reach light speed, but I believe there has to be some 'set temperature' that is the limit for anything. Am I wrong or is there an actual answer?

If temperature makes particles vibrate faster, and movement is limited by the speed of light, then I would assume that temperature must be limited as well. Why is there no limit?


Let $p$ be an odd prime. Prove that $$\sum_{j = 0}^p {p \choose j}{p + j \choose j} \equiv 2^p + 1 ~(\text{mod}~p^2)$$  I have tried to write the problem as $$\sum_{j = 0}^p {p \choose j}{p + j \choose j} - 2^p - 1  \equiv 0~(\text{mod}~p^2)$$ Which mean I have to prove that the expression on the left side is divisible by $p^2$, but this doesn't help.  I also know that since $p$ is odd prime, we have $2^{\varphi(p^2)} = 2^{p^2 - p} \equiv 1 ~(\text{mod} ~p^2)$ by Euler's theorem. So the expression before can be rewritten as $$\sum_{j = 0}^p {p \choose j}{p + j \choose j} - 2^p - 2^{p^2 - p} \equiv 0~(\text{mod}~p^2)$$ But this also doesn't seem to help. I think I have to modify the sum somehow, but I gut stuck. The sum looks like a hypergeometric function, but knowing this doesn't help either.  Anyone?

First we know the fact that $p$ divides $\binom {p}{k}$ for $k\in \{1,\ldots,p-1\}$.  Second we have : $\binom {p+k}{k}= \frac{(p+k)\cdots(p+1)}{k!}$ which means : $k!\binom {p+k}{k}=(p+k)\cdots(p+1)$.  Notice that every term of the product is divided by $p$ except the last product $k(k-1)\cdots1=k!$  So $p$ divides $k!(\binom {p+k}{k} - 1)$. By Gauss lemma for $k\in \{1,\ldots,p-1\}$, $p$ divides $(\binom {p+k}{k} - 1)$.  Then $p^2$ divides $\binom{p}{k}(\binom {p+k}{k} - 1)$. We obtain : $\binom{p}{k}(\binom {p+k}{k} \equiv \binom{p}{k} \pmod{p^2}$.  So : $\sum \limits_{k=0}^{p} \binom {p}{k} \binom{p+k}{k}\equiv 1 +\binom{2p}{p} + \sum \limits_{k=1}^{p-1} \binom{p}{k} \equiv 1 +\binom{2p}{p} +2^{p}-2 \pmod{p^2}$  Then I'm stuck...  Maybe it is possible to prove that $\binom{2p}{p} \equiv 2\pmod{p^2}$..  Thanks in advance !