I Need to ssh to a server then switch user and change the directory and then run a command. Now am doing ssh -t username@hostname "sudo su - otheruser && cd /path/to/directory && command". But this is not changing the directory it just switched the user and ran the command.

I have the following commands that I want to have them all in one shell file:  su – s3 lizinfo.sh –b   when the first linex executes, it prompts and the command prompt become like as below:   -bash-3.1$ (here I cant type second command >> lizinfo.sh –b)   I want to have my shell file run all of these command at once. But when I run my shell file it only runs the first line and for does not run the second line, and waits until I enter it manually.  Would you help me please ?


Some time ago I protected the Excel 2010 file from the path File > Protect workbook > Encrypt with password and gave it a password. Now that I removed that password via below method:  Open the workbook and use Save As In the lower right of the file window will be "Tools" Choose "General Options" Clear the password. Save over your old file.  the file is openable without wanting a password. But the problem is when I open it and close it immediately, even without moving the active cell, the message "Do you want to save the changes you made to 'test.lsx'?" appears. While there hasn't occurred any changes to that file so why I face this message any time I want to close the file?  Hasn't the file been corrupted?

A client sent me some Excel .xlsx documents, and every time I open one of them and then close it, Excel asks if I would like to save changes, even if I didn't make any.  This doesn't happen with any of my other Excel files.  What is going on?  The files have no macros. I use Excel 2007.


I'm trying to delete some duplicated rows of my table. I'm starting by select all the duplicated rows by executing this query :  SELECT a.id as id FROM table A join table B on A.site = B.site  where A.nb_affichages = B.nb_affichages and A.nb_clics = A.nb_clics   Then i try to delete all the selected ids from the first query :  DELETE FROM table WHERE id IN ( SELECT * FROM ( SELECT a.id as id FROM table A join table B on A.site = B.site  where A.nb_affichages = B.nb_affichages and A.nb_clics = A.nb_clics) AS p )   This second query deletes all the rows selected in the first, instead I want to let one row and delete the others.  So anyone can help me to optimize this query.

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


We are a medium sized company which has VPNs to more than 20 locations.  We sometimes get complaints regarding access to the terminal server, and I would like to diagnose this as either a server issue or Internet connection issue.  What I am looking for is a utility that I can give an IP address to, and have it monitor/record whether or not that address is live.  I am aware of munin, but I am looking for a more dedicated tool for this task, something that does not take a lot of time to get up and running.  EDIT: Using W2k3 terminal server.  But I want to just monitor the VPN link between corp offices and the facility in question.  Just something that pings on a determined schedule and records the result.

For a more comprehensive list of monitoring tools and their features, check out .   As the question states, what are the most commonly used tools used for this task and what are their strengths and weaknesses?


I have a script I run on erach new machine I own, that installs somethings I need.  For some reason, on a dell Inspiron 3542 with Ubuntu 14.04, the following fails:  $ sudo apt-get install libamd2.2.0 libumfpack5.4.0  libatlas-sse2-dev    with the errors:  Reading package lists... Done Building dependency tree        Reading state information... Done Package libatlas-sse2-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Unable to locate package libamd2.2.0 E: Couldn't find any package by regex 'libamd2.2.0' E: Unable to locate package libumfpack5.4.0 E: Couldn't find any package by regex 'libumfpack5.4.0' E: Package 'libatlas-sse2-dev' has no installation candidate   BTW,I did try sudo apt-get update first.  With other computers this always worked for me before. How can I fix that?

What does the above Error mean? What is an installation candidate?  I was trying to do  sudo apt-get install munin-memcached     and I get this message:  Reading package lists... Done Building dependency tree        Reading state information... Done Package munin-memcached is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package munin-memcached has no installation candidate   I googled for the problem and someone said to do a apt-get upgrade but it still did not solve my problem.


I have many times heard James Rolfe and Mike Matei (the video content producers), who I believe both grew up in New Jersey or in the city Pennsylvania, say things such as:     Blablabla. This is different than before. Blablabla.   Every time, it seems to me, a non-native English speaker, as if they should be saying "from" instead of "than". I'm pretty sure it's not valid formal British English at least, but I don't know about US English.  Maybe it's not even valid formal US English, but valid "talk speech"? Maybe it's even local slang in New Jersey or "Philly"?

As someone who learned English later on in life, I was taught that different from is the correct grammar to use: this is different from that. However, it seems these days everyone uses different than instead. I know it's incorrect usage, but does the language evolve if the majority wins?  Edit: Some commented different than is American English and different from is British English, both are OK. IMO, this isn't like color versus colour, though.   Than is used after a comparative adjective, e.g. taller than, whiter than. The word different isn't a comparative adjective, unless used in more different than. Logically, it makes no sense to say different than.


I need to show that there aren't any $m$ and $n$ such that $m^2+n^2$ and $m^2-n^2$ are both squares.  First of all, assume without loss of generality that $m$ and $n$ are co-prime, since otherwise we can divide through by the gcd and get a new pair. Since mod 4 all squares are 0 or 1, the only common solution to both $m^2+n^2$ and $m^2-n^2$ being squares is $m^2\equiv 1$ and $n^2\equiv 0$, so $m$ is odd and $n$ is even.   It also follows easily that $m+n$ and $m-n$ are co-prime: (EDIT: if $p$ divides both of them, then it divides their sum and difference, $2m$ and $2n$, but $p$ is not 2 since $m+n$ is odd, so $p$ divides $m$ and $n$, a contradiction.) Since $m^2-n^2=(m+n)(m-n)$ is a square, both $m+n$ and $m-n$ must be co-prime odd squares.  It seems like I have managed to draw a lot of very strong conclusions from this, but I still can't find any contradictions. Any ideas?

I have the following task:     Prove that the sum and the difference of two squares (not equal to zero) can't both be squares.   For the sum, I thought about Pythagorean triples: $x^2+y^2=z^2$ works for an infinite amount of numbers, but why can't it occur for the sum and the difference as well?  I tried to write down this:  Assume that $a^2>b^2$. Then $a^2+b^2=c^2$ and $a^2-b^2=d^2$. Summing the left and the right equation, we get $2a^2=c^2+d^2$. I am just stuck proving why this can't occur. Any ideas? Thanks for your help!


I was recently given to review a journal paper that significantly overlaps with a work that we recently submitted to a conference (about half of the contributions are the same).  Any advice on what to do in this case?  (even if I tell the editor now that I'm unable to review the paper, I've already read it).

I did some research with some collaborators, and we have been writing an article ("paper A") describing the work.  A few days ago I received a request to review an article ("paper B") that covers most of our work. The authors of paper B have clearly worked independently on the same topic and beaten us to submission. (And fair play to them.)  This leads me to a number of related dilemmas:  The first, and I think easiest to resolve, is whether I have a conflict of interest in reviewing paper B. I think I can write a fair review, but I intend to tell the editor and allow them to decide whether I should proceed.  The other dilemmas arise mainly because I am bound by peer-review confidentiality. I should note that paper B is not available as a preprint.  Can tell my co-authors about paper B? I am convinced that confidentiality forbids me from showing paper B to them, but can I tell them that it exists and what it covers? My feeling is that the answer is 'no'.  But then, if I cannot tell my co-authors about paper B, then it seems I have to allow our paper A to proceed to submission even although I know of the overlap with paper B.  I am extremely uncomfortable with this, although one can take the view that since our work was independent, our paper A could still be published.  Furthermore, my first impression is that paper B is not suitable for the general journal to which it was submitted, but that I would recommend acceptance to a high-quality specialist journal, such as the one to which we intended to submit our paper A. This raises an unpleasant prospect: if our paper A proceeds to submission and publication, the authors of paper B might believe that I had rejected their paper and plagarized their work (a situation discussed in ). This situation could arise even if I turn down the review request. Naturally, I want to avoid this.  How should I proceed? Could I ask the editor for permission to inform my co-authors about paper B?


Let's say I have two tenants who share my apartment with me. It is agreed that utilities shall be divided equally amongst us. However, one tenant has, as part of his lease, a stipulation that all utilities are provided free with his rent.  My question is this, how do I calculate the utility charge for me and the other tenant? Do I divide by 2, or 3?

This is an extension of my question asked .  Four roommates are living together. Two are co-tenants, who hold the lease, and the other two sublet from the co-tenants and pay rent and utilities to one of the co-tenants. Subtenant A has an agreement that utilities are included in his rent and do not need to be paid separately. Subtenant B is responsible for utilities as normal.  Does subtenant B pay 1/3 of the utilities, or 1/4?


I installed Windows 8 Pro edition Spanish version and I'd like to have English as the display language for Windows.  I follow the steps detailed in the solution but the option "Windows display language: Available for download" doesn't appear next to the English language as it does with Spanish.  I guess that English language is pre-installed with Windows 8 Pro.  It happens the same with the rest of the languages. You only can add the language as an input method and can't download it.  Maybe I can't set English language as the Display Language due to the license type of my Windows 8 SKU?

I had Windows 7 Ultimate before I upgraded to Windows 8 Pro and before, in Windows Update, there were updates that allowed me to install more language packs for Windows. After installing the updates I would have more languages for the interface.  Now I don't see any language updates, is it not possible to have various languages in Windows 8? Or maybe they are not ready yet?


Let $(R, +, ·)$ be a ring and $x^2-x ∈ Z(R)$ for any $x ∈ R$. Prove that the ring is commutative. Here is my attempt: $x^2-x ∈ Z(R)$ then for any $y ∈ R$: $$(x^2-x)y=y(x^2-x)$$ $$x^2y-xy=yx^2-yx$$ $$x^2y-xy=x^2y-yx$$ (Pretty sure I can't change those elements like that, but I can't think of anything else) $$-xy=-yx$$ $$xy=yx$$ which means the ring is commutative. What is the correct way to solve this?

Let $R$ be a ring such that for every $x\in R$ we have $x^2-x \in Z(G)$. Show that $R$ is a commutative ring.    My thoughts  What should I do? I could show that every $y \in R$ could be written in the shape $x^2-x$ but I don't know if that is true. We know that  $y \cdot(x^2-x) \ = \ (x^2-x)\cdot y$ for any $x,y \in R$, but that doesn't mean that $xy = yx$. Please give me a hint


I am trying to draw the red arrow between the two blocks     However, I have no idea how to do it. Could please someone draw it and show me code?

Say I have a code to draw a flow chart, I want now a arrow from node 3 to node 1, how can I do that?  1<--| |   | 2   | |   | 3----   MWE  \documentclass[class=article,border=0pt]{standalone}  \usepackage{tikz} \usetikzlibrary{shapes,arrows}  % Define block styles \tikzset{     block/.style={rectangle, draw, line width=0.5mm, black, text width=5em, text centered,                   rounded corners, minimum height=2em},     line/.style={draw, -latex} }% <- if you insist in using this in the document add this % here. \begin{document} \begin{tikzpicture}[node distance = 1cm, auto]     % Place nodes     \node [block] (BLOCK1) {a};     \node [block, below of=BLOCK1] (BLOCK2) {b};     \node [block, below of=BLOCK2, node distance=1cm] (BLOCK3) {c};     % Draw edges     \path [line] (BLOCK1) -- (BLOCK2);     \path [line] (BLOCK2) -- (BLOCK3); \end{tikzpicture} \end{document}


\documentclass[a4paper,12pt,twoside]{report} \usepackage{pgf,tikz} \begin{document}  \begin{figure}[hbt!]     \begin{center}          \begin{tikzpicture}[scale=0.95,             thick,             acteur/.style={                 circle,                 fill=black,                 thick,                 inner sep=2pt,                 minimum size=0.2cm,scale=0.65             }             ]              \node (a1) at (0,0) [acteur,label=left:\footnotesize{}]{};                           \node (a2) at (1.5,0)  [acteur,label=left:\footnotesize{}]{};                                     \node (a3) at (1.5,1.5) [acteur,label=left:\footnotesize{}]{};                               \node (a4) at (0,1.5) [acteur,label=left:\footnotesize{}]{};                                       \node (a5) at (.75,3) [acteur,label=left:\footnotesize{}]{};                                                \draw [green]  (a1) -- (a2);              \draw  [blue](a2) -- (a3);              \draw [green]  (a3) -- (a4);             \draw  [red](a4) -- (a1);             \draw [blue] (a4) -- (a5);             \draw [red]  (a5) -- (a3);         \end{tikzpicture}     %   \caption{ Candidate for maximizing algebraic connectivity in $\mathcal{B}_4$}\label{F2}     \end{center} \end{figure}  \end{document}  In this graph, I want to place arrows in the green edges, that is, I want to replace the green edges with directed edges with green color. How to do that.


Let $R$ be a principal ideal domain, and $a, b \in R$ with $a^m = b^m$ and $a^n = b^n$ for $m, n \in \mathbb{N}$, and $\gcd(m, n) = 1$. I now want to show that we then already have $a = b$.   I think the statement is easily seen to be true if $a = 0$ (or $b = 0$), since if $a = 0$ and $a^m = b^m$, then $a = b$ since $R$ doesn't contain any nontrivial zero divisors, so $b ≠ 0$ already implicates $b^m = b \cdot b^{m-1} ≠ 0$.  I don't really know how to prove the statement for the general case, where I can't directly apply the fact that $R$ doesn't have any zero divisors except $0$. I most likely have to use the fact at some point that $gcd(a, b) = 1$, but I'm not sure how.

Let $D$ be an integral domain and let $a^m=b^m$ and $a^n=b^n$ where $m$ and $n$ are relatively prime integers, $a,b \in D$.   How do I show $a=b$?


i trying to install kubuntu in mu ubuntu 16.04.  when i type sudo add-apt-repository ppa:kubuntu-ppa/backports  the terminal does't show anything. after few seconds when i press CTRL+C the terminal dumps the following error       falcon@falcon:~$ sudo add-apt-repository ppa:kubuntu-ppa/backports ^CTraceback (most recent call last):   File "/usr/bin/add-apt-repository", line 122, in <module>     shortcut = shortcut_handler(line)   File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 864, in shortcut_handler     ret = factory(shortcut)   File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 407, in shortcut_handler     return PPAShortcutHandler(shortcut)   File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 364, in __init__     info = get_ppa_info(self.shortcut)   File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 335, in get_ppa_info     ret = get_ppa_info_from_lp(user, ppa)   File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 92, in get_ppa_info_from_lp     return get_info_from_lp(lp_url)   File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 88, in get_info_from_lp     return _get_https_content_py3(lp_url)   File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 110, in _get_https_content_py3     lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)   File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen     return opener.open(url, data, timeout)   File "/usr/lib/python3.5/urllib/request.py", line 466, in open     response = self._open(req, data)   File "/usr/lib/python3.5/urllib/request.py", line 484, in _open     '_open', req)   File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain     result = func(*args)   File "/usr/lib/python3.5/urllib/request.py", line 1297, in https_open     context=self._context, check_hostname=self._check_hostname)   File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open     h.request(req.get_method(), req.selector, req.data, headers)   File "/usr/lib/python3.5/http/client.py", line 1106, in request     self._send_request(method, url, body, headers)   File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request     self.endheaders(body)   File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders     self._send_output(message_body)   File "/usr/lib/python3.5/http/client.py", line 934, in _send_output     self.send(msg)   File "/usr/lib/python3.5/http/client.py", line 877, in send     self.connect()   File "/usr/lib/python3.5/http/client.py", line 1252, in connect     super().connect()   File "/usr/lib/python3.5/http/client.py", line 849, in connect     (self.host,self.port), self.timeout, self.source_address)   File "/usr/lib/python3.5/socket.py", line 702, in create_connection     sock.connect(sa)   EDIT :      I'm Getting same error on other PPA seems it related to PPA manager    PS : I have tried multiple threads question related to this,but it did not solve my problem hence started a new tread.  ANY FIX Please. Thanks in advance

I'm running ubuntu 14.10 on VMware player at my office.   Whenever I try to add a repository, I get this exception.  root@ubuntu:~# sudo add-apt-repository ppa:rvm/smplayer Traceback (most recent call last):   File "/usr/lib/python3.4/urllib/request.py", line 1174, in do_open     h.request(req.get_method(), req.selector, req.data, headers)   File "/usr/lib/python3.4/http/client.py", line 1090, in request     self._send_request(method, url, body, headers)   File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request     self.endheaders(body)   File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders     self._send_output(message_body)   File "/usr/lib/python3.4/http/client.py", line 924, in _send_output     self.send(msg)   File "/usr/lib/python3.4/http/client.py", line 859, in send     self.connect()   File "/usr/lib/python3.4/http/client.py", line 1221, in connect     super().connect()   File "/usr/lib/python3.4/http/client.py", line 836, in connect     self.timeout, self.source_address)   File "/usr/lib/python3.4/socket.py", line 509, in create_connection     raise err   File "/usr/lib/python3.4/socket.py", line 500, in create_connection     sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused   I picked smplayer just to test app-get.  I was able to set up the browser so I can connect to the internet and ping something like yahoo.com, but I don't know if there are other network settings I'm missing.


(Leningrad 1990) Let a and b be natural numbers that $b ^ 2 + ba + 1$ divides $a ^ 2 + ab +1$. Prove that $a = b$  I thought of the limitation property $b ^ 2 + ba + 1 ≤ a ^ 2 + ab + 1$ and hence $b ≤ a$, but I don't know how to process. How can I prove it differently?

The natural numbers $a$ and $b$ are such $a^2+ab+1$ is divisible by $b^2+ba+1$. Prove that $a = b$.   I tried to algebraically manipulate it as follows:  $(b^2 + ba + 1)k = a^2 + ab + 1$  $[b(a + b) + 1]k = a(a + b) + 1$  $kb(a + b) + k = a(a + b) + 1$  $k - 1 = (a - kb)(a + b)$  I'm stuck here. What should I do next? A case-by-case analysis of possible congruencies would be too tedious and inelegant.


You can say of a person that they are single/married/divorced/widowed, even that that person is a parent (father or mother). But is there a single word to refer to someone who is not a parent?  I can only think of some compounds such as childless or kidless, but I'm not sure if they convey the meaning proposed. I have read somewhere that there is an acronym but I don't know if it's widely used: DINK, but it refers to couples without kids (Double Income No Kids), not to a single person.

I'm writing a bullet list of traits for people to review so that they can self-select whether they fit into a certain group.  What I have right now looks like this:   Male  35-39 years old  Highly-educated  In a committed relationship  Childless  Athletic, fit   But "Childless" feels problematic. It may have a provocative feel to it, and it focuses on the absence of children almost as if I (or society) expects men to have children. I'd rather describe a trait in positive terms.  Is there a word (or phrase of 4 words or less) that can serve as an adjective meaning simply (and without negative connotation or judgment) that he hasn't fathered any kids?    When I search thesauruses (e.g. ), the suggestions are even worse than "childless". They include words such as: sterile, barren, infertile, unproductive, impotent, arid, bereaved. None of those are appropriate.  If I'm being overly cautious, and enough answerers say that "childless" meets my requirements, then that will be interesting for me to hear, too.  P.S. I've used the "single-word-requests" tag because I'm looking for suggestions of one word (or small phrase), and I've researched several thesauruses, and I've provided context.


I'm trying to center the below HTML vertically and horizontally but it's not working vertically, only horizontally. Please could someone help explain why it's not working?                         Learn

             <input type="text" id="userGuess">             <button class="answer-button" id="checkAnswer">Answer</button>
    My CSS using flexbox trying to center the quiz horizontally and vertically  .quiz-container {     display: flex;     flex-direction: column;     justify-content: center;     align-items: center; }  .word-to-conjugate {     font-size: 2rem;     font-family: 'Source Sans Pro', sans-serif;     text-align: center; }  input {     font-family: 'Roboto', sans-serif;     font-weight: bold;     padding: 10px;     font-size: 1.5rem;     border: 1px solid #333;     border-radius: 5px;     margin-bottom: 20px; }  .answer-button {     background-color: #505FDF;     font-size: 1.5rem;     text-align: center;     color: #FFFFFF;     padding: 10px;     border-radius: 5px;     border: none;     font-family: 'Roboto', sans-serif;     margin-bottom: 3%; }

I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
Div to be aligned vertically
   How can I center a div vertically in all major browsers, including Internet Explorer 6?


I have downloaded a .img file to use on my Android device.  I have to edit a file in the image in order to use it.  How can I mount the file so I can edit the text file and then re-pack the .img?

I'm a Windows/Mac/Ubuntu and Android user, so I know what I'm talking about, when I say: How do I open binary image files? (.img) They just won't open, on any OS…  I'm an Android dev… I'm currently working on a ROM, (I also program, using Windows) but I need to extract files, from .img files. I've converted them to .ext4.img but they just aren't recognized by Linux (Definitly not by Android), by Mac OS or Windows. In other words, I can't open, extract or mount them.  Can anyone help me? I'm kinda confused…


Let $\{x_n\}$ be a given series such that it satisfies the following conditions for all sequence  $\{y_n\}$ in real numbers converging to $0$. It is given that the sequence $\{y_n\}$ converges to $0$ and the series $\sum_{n=0}^{\infty} x_ny_n$ is convergent. Then show that the series $\sum_{n=0}^{\infty} |x_n|$ is convergent$,$ that is the series $\sum_{n=0}^{\infty} x_n$ is absolutely convergent.  My attempt: Since $\{y_n\}$ is converges to $0$ then for each $ε>0$ there exist a natural number $k_1$ such that $|y_n|< ε$ for all $n>k_1$. Since the series $\sum_{n=0}^{\infty} x_ny_n$ is convergent then the tail of the series goes to zero that is $x_ny_n$ tends to $0$ as $n$ tends to $\infty$. But can not proceed further to complete the proof. Please help me to solve this. Thanks in advance.

A friend of mine gave me the following problem recently:     Let $(a_n)$ be a sequence of real numbers. Suppose that $\sum_{n=1}^\infty a_nb_n$ converges for any sequence $(b_n)$ such that $\lim\limits_{n\to\infty} b_n=0$. Show that $\sum |a_n|<\infty$.   Hint he gave me was to use  (a.k.a. uniform boundedness principle).   I would like to know whether there are different solutions to this, in particular, whether there is an elementary solution. (Using just calculus, without resorting to more advanced results from functional analysis or other areas.)     The argument using Banach-Steinhaus theorem goes as follows:  Let $a=(a_n)$ be a given (fixed) sequence such that $\sum a_nb_n$ converges for each $b=(b_n)\in c_0$.  For every $n$ we can define $f_n\colon c_0\to{\mathbb R}$ as $\sum_{k=1}^n a_nb_n$. We consider $c_0$ with the usual sup-norm, which makes $c_0$ into a Banach space.  Each function $f_n$ is obviously linear.  For any $b\in c_0$ such that $\|b\|=\sup\limits_{n\in\mathbb N} |b_n| \le 1$ we have $$|f_n(b)| \le \sum_{k=0}^n |a_k|.$$ This shows that all functions $f_n$ are bounded linear functionals.   Now if we fix some $b=(b_k)\in c_0$ we have $$\left|\sum_{k=0}^n a_kb_k\right| \le \sum_{k=0}^\infty |a_k|\cdot |b_k|.$$ The sum on the RHS is finite, since it can be expressed as $\sum a_kc_k$, where $c_k=\pm b_k$. (The choice of sign here depends on the signs of $b_k$ and $a_k$.) So we have shown that at each point $b\in c_0$ the values $f_n(b)$ are bounded by the same constant (depending only on $b$).  By Banach-Steinhaus theorem we have that there exists a constant $M$ such that $\|f_n\|<M$ for each $n\in\mathbb N$.  Now it only remains to show that $\|f_n\|=\sum_{k=0}^n |a_k|$. We already know that $\|f_n\|\le\sum_{k=0}^n |a_k|$. The other inequality can be obtained by choosing $b$ in unit ball, such that $b_k$ is either $1$ or $-1$, depending on the sign of $a_k$ for $k=1,2,\dots,n$; and $b_k=0$ for $k>n$.  Now we have that $\sum_{k=0}^n |a_k|<M$ for each $n$, which implies $\sum_{k=0}^n |a_k|\le M$.


I would like to call the QGIS interpolation plugin function (TIN method)  (Raster->Interpolate)  from  python console.    I can't find the corresponding function within QGIS API or within the processing algorithm list.  I found the SAGA Triangulation algorithm, which works fine but is 5-10 x slower and speed is important in my case.  Any idea how to execute it?


Yesterday I finished the normal game by killing Jack.  Today I started borderlands 2 and selected my character. I was given three choices: "Normal," "True Vault Hunter" and "Cancel."  I selected "Normal," assuming I'd resume my game where I left off yesterday. Instead, I was dumped into a second playthrough. Our friend clap trap was digging around and guided me to his home. NOTE: I did not inadvertently select "True Vault Hunter." I selected "Normal" and was PLACED into a True Vault Hunter game.  I quit the game as soon as I was able, and was forced to save it. Resuming that "Normal" game placed me into the "True Vault Hunter" game. (They are one and the same.)  My local save data is the same data steam has on its cloud.  Is there any way I can revert my saved game back to the point where it was previously?  I'm playing a Steam copy of Borderlands 2 for PC if that matters.

I have started playing through vault hunter mode (up to Sanctuary) in Borderlands 2, but I cannot access play-through 1. Whenever I press Continue from the main menu it just goes straight to play-through 2. Is there anyway to access play-through 1?


I have this index page with an iframe on it. In the iframe I have some links like:  Who we are   When I click on this link I would like to perform a jQuery action like sliding a div on the index page with this code.  $(window).load(function () { $(".link_in_Iframe").click(function(){ $('.sliding_div_on_index_page').animate({'top': '-190px'}, 1000); });    I know it is not possible to add/bind a click function to an iframe itself but could this be made possible with a link inside the iframe?  I managed the get the script working by replacing the click function by a hover function so basicly it works fine but I need to do this with a click function.

I would like to manipulate the HTML inside an iframe using jQuery.  I thought I'd be able to do this by setting the context of the jQuery function to be the document of the iframe, something like:  $(function(){ //document ready     $('some selector', frames['nameOfMyIframe'].document).doStuff() });   However this doesn't seem to work. A bit of inspection shows me that the variables in frames['nameOfMyIframe'] are undefined unless I wait a while for the iframe to load. However, when the iframe loads the variables are not accessible (I get permission denied-type errors).  Does anyone know of a work-around to this?


I came across this Question where I have to find $$f^{(10)}$$ for the following function at $x = 0$  $$f(x) = e^x\sin x$$  I tried differentiating a few times to get a pattern but didn’t get one, can someone provide the solution.

Can someone check this for me, please? The exercise is just to find a expression to the nth derivative of $f(x) = e^x \cdot \sin x$. I have done the following:  Write $\sin x = \dfrac{e^{ix} - e^{-ix}}{2i}$, then we have $f(x) = \dfrac{1}{2i} \cdot (e^{(1+i)x} - e^{(1-i)x})$.   Taking the derivatives: $f^{(n)}(x) = \dfrac{1}{2i} \cdot ((1+i)^n e^{(1+i)x} - (1-i)^n e^{(1-i)x})$  Now, I use that: $$ (1+i)^n = {\sqrt{2}}^n \cdot \left(\cos\dfrac{n \pi}{4} + i \sin\dfrac{n \pi}{4}\right) \\(1 - i)^n = \sqrt{2}^n \cdot \left( \cos \dfrac{-n \pi}{4} + i \sin \dfrac{-n \pi}{4} \right)$$  Plugging that mess, I get: $$f^{(n)}(x) = \dfrac{e^x}{2i} \sqrt{2}^n \cdot \left(\left(\cos \dfrac{n \pi}{4} + i \sin \dfrac{n \pi}{4}\right) e^{ix} - \left(\cos \dfrac{-n \pi}{4} + i \sin \dfrac{- n \pi}{4}\right) e^{-ix} \right)$$  But, $e^{ix} = \cos x + i \sin x$, and using Moivre's theorem, that makes: $$f^{(n)}(x) = \dfrac{e^x}{2i} \sqrt{2}^n \cdot \left(\cos \left( x + \frac{n \pi}{4}\right) + i \sin \left( x + \frac{n \pi}{4}\right) - \left(\cos \left( - x  - \frac{n \pi}{4}\right) + i \sin \left( -x -\frac{ n \pi}{4}\right)\right)\right)$$  and since $\cos$ is an even function, and $\sin$ is odd, we get: $$f^{(n)}(x) = \dfrac{e^x}{2i} \sqrt{2}^n \cdot 2i \sin \left(x + \dfrac{n \pi}{4}\right)$$  Simplifying, the answer would be $f^{(n)}(x) = e^x \cdot \sqrt{2}^n \cdot \sin\left(x + \dfrac{n \pi}{4}\right)$. I'm almost positive that this is it, but I just want to be sure. Thank you in advance!


i got this error when trying to add property id, name ,email , phone number and spinner data (from owner). Here is my database......  public Owner getOwnerById(long id) {     Cursor cursor = sqLiteDatabase.query(DataBaseHelper.TABLE_NAME, mAllKey,             DataBaseHelper.KEY_ID + " = ?",             new String[] { String.valueOf(id) }, null, null, null);     if (cursor != null) {         cursor.moveToFirst();     }      Owner owner = cursorToOwner(cursor);     return owner; }  public Property addProperty (int id,String name, String email, String  phoneNumber, long ownerId) {     SQLiteDatabase db = this.getWritableDatabase();     ContentValues values = new ContentValues();      values.put(DataBaseHelper.PROPERTY_ID, id);     values.put(DataBaseHelper.PROPERTY_NAME, name);     values.put(DataBaseHelper.PROPERTY_EMAIL, email);     values.put(DataBaseHelper.PROPERTY_PHONENUMBER, phoneNumber);     values.put(DataBaseHelper.PROPERTY_OWNER_ID, ownerId);     long insertId = db             .insert(DataBaseHelper.TABLE_PROPERTY, null, values);     Cursor cursor = db.query(DataBaseHelper.TABLE_PROPERTY, mAllColumns,             DataBaseHelper.PROPERTY_ID + " = " + insertId, null, null,             null, null);     cursor.moveToFirst();      Property newProperty = cursorToProperty(cursor);     cursor.close();     return newProperty;   }    private Property cursorToProperty(Cursor cursor) {     Property property = new Property();     property.setId(cursor.getInt(0));     property.setName(cursor.getString(1));     property.setEmail(cursor.getString(2));     property.setPhoneNumber(cursor.getString(3));      // get The company by id     long ownerId = cursor.getLong(4);      DataBaseHelper db = new DataBaseHelper(mContext);     Owner owner = db.getOwnerById(ownerId);     if (owner != null)         property.setOwner(owner);      return property;    }   logcat    java.lang.NullPointerException: Attempt to invoke virtual method   'android.database.Cursor  android.database.sqlite.SQLiteDatabase.query(java.lang.String, j  java.lang.String[], java.lang.String, java.lang.String[], java.lang.String,  java.lang.String, java.lang.String)' on a null object reference at getOwnerById(DataBaseHelper.java:165) cursorToProperty(DataBaseHelper.java:307) addProperty(DataBaseHelper.java:223) onClick(PropertyActivity.java:112)   My idea is add an Owner details then it will pass to Property activity spinner.After that spinner data(Owner) and property data will add into database.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


When I cast my elements from the other layout I got this error.  final  Spinner mainIng = (Spinner) findViewById(R.id.spinner); final  EditText sub1 = (EditText) findViewById(R.id.sub1); final  EditText sub2 = (EditText) findViewById(R.id.sub2); final  EditText sub3 = (EditText) findViewById(R.id.sub3); final  EditText sub4 = (EditText) findViewById(R.id.sub4); final  EditText sub5 = (EditText) findViewById(R.id.sub5); final  EditText sub6 = (EditText) findViewById(R.id.sub6);   heres my error     Caused by: java.lang.NullPointerException: Attempt to invoke virtual   method 'android.view.View android.view.Window.findViewById(int)' on a   null object reference


I'm changing planes in late March in Schiphol with a five hour layover. I've never been to Amsterdam.  Is there anything I can do to see a little bit of Amsterdam and not miss my flight?

I am flying to Montreal from Prague and have a 6-hour layover in Amsterdam from 8:40AM to 3:20PM. Is it possible to go outside the airport in 6 hours? What could I possible do and see in 6 hours (considering time for passport control and getting to the city and back to the airport)?


If $f$ is positive and decreasing and continuous on $[0, \infty)$ I want to show that $$\sum_{n=m+1}^{\infty} f(n) \leq \int_m^{\infty} f(t) \, dt \leq \sum_{n=m}^{\infty} f(n)$$ for all nonnegative integers $m$. Would we induct on $m$?

The following is a thought on the proof of the integral test. I am looking forward to knowing if it provides a correct understanding.     For $n>N$ we can write, $\sum_{n=N}^{\infty} a_n = \sum_{k=N}^{\infty} f(k)$.   We can observe, $\sum_{k=N}^{b-1} f(k) \Delta x > \int_{N}^{b}f(x)dx$, where the L.H.S of the inequality is the upper Riemann sum, $b-1>N$ and $\Delta x$ is a constant.   1) $\lim_{b\rightarrow \infty} \int_{N} ^{b}f(x)dx$ diverges.   It is clear that $\sum_{k=N}^{\infty} f(k) \Delta x$ diverges. Since $\Delta x$ is a constant, we can write,  $ \Delta x \sum_{k=N}^{\infty} f(k)$. This tells us that the series diverges.   We can observe that the lower sum is less than the finite integral. The series corresponding to the lower sum is $\sum_{k=N+1}^{b} f(k)$. As $b\rightarrow \infty$, the series can be written as, $\sum_{k=N}^{\infty} f(k) - f(N)$. This diverges because the infinite sum diverges.   2) $\lim_{b\rightarrow \infty} \int_{N}^{b}f(x) dx$ converges.   Here, the lower sum converges because it is less than the finite integral. We can say, $\Delta x\sum_{k=N+1}^{b} f(k)$ converges and so does the series.   The series corresponding to the upper sum is $\sum_{N}^{\infty} f(k)$. This can be written as $\sum_{N+1}^{\infty} f(k)+f(N)$. This converges because the series converges.   This ends the proof.


I'm getting this error and I honestly have no idea what to do to fix it, I've tried everything I can think of.  The code is to check the player's boot slot to see if he has diamond boots on, and if they do, to set it as air as it is a banned item.  The error:  Too big to paste in here so here it is:   The code:      @EventHandler public void onInventoryClickBoots(InventoryClickEvent event) {     Player player = (Player) event.getWhoClicked();      if(player.getInventory().getBoots().getType().equals(Material.DIAMOND_BOOTS)){         player.getInventory().setBoots(new ItemStack(Material.AIR));     }        else {     }     }   I'm also getting this repeated error for the helmet, chestplate and leggings slot too.  Thanks in advance for anyone that is able to help me out! An explanation of what's going on would also be greatly appreciated!


I will add a new HDD to my computer (identical to the old HDD).  I'm wondering if it's a good idea to do a raid 0 vs using the two drive separately.  How much it impact the latency and the performance.  Specially for small random read and write.

I'm building a new computer over the summer. I'm fairly competent in computer hardware, and am thus building the computer from scratch. I have everything planned out, but I was wondering about RAID.  I  earlier, but now that it's pretty clear that RAID 1 isn't really that great, I think I'll go with cloud-backup instead of disk-redundancy. However, I still face a choice: use two 1 TB drives as two 1 TB drives, or combine them into a RAID 0 striped array.  Is there any performance gain at all? I know that if one drive dies, everything is gone, so is the performance gain worth it? I'm building a pretty advanced computer, with SLI video cards and a fast CPU, so I'm thinking RAID 0 would give me some good hard drive performance. From your experience, is RAID 0 viable?


Be $G$ a group with subgroups $U$ and $V$ and be $UV := \left\{uv \mid u \in U, v \in V \right\}$  I want to prove the following:      $UV$ is in general no subgroup of $G$.   Proof. Be $U \nsubseteq V$ and $V \nsubseteq U$. Be $x \in U \setminus V$ and $y \in V \setminus U$.  Hence $xy \in UV$ but $xy \notin U \cup V$. This implies $\left(xy \right)\left(xy\right) \notin UV$ per definition of $UV$, hence $UV$ is no subgroup of $G \quad \square$  But I also want to give an explicit counterexample beside this proof. Could you give me a hint in which group I should look for the easiest counterexample?

Question:  Give an example of a group $G$ having a subset $H$ such that $HH=H$, where $HH = \left\{h_1h_2\mid h_1,h_2\in H \right\}$, but $H$ is not a subgroup of $G$.   Attempted Solution:  I haven't gotten far with this problem. In a previous exercise, I was able to prove that $HH=H$ if $H$ is a subgroup of $G$. I am having a hard time thinking of a scenario where $h_1h_2\in H$ and $H$ is not a group. I've played around with making $h_1h_2$ not closed under its operation, but I haven't gotten anywhere yet.


What is the origin of the term "the whole nine yards"? I have read many explanations, including one that nine yards refers to the length of the belt of wing-mounted machine guns in US fighter aircraft. Thus to "give him the whole nine yards" meant that the pilot fired off a long burst.

What is the origin of the phrase "the whole nine yards"? Is it a reference to some game of sports I am not familiar with (as a continental European)?


I need a way to kill all the processes used in the script below. I removed all the unnecessary code and made it as simple as I can, without ruining the structure.  I made the kill_other function for that, which when called (after CTRL + C is pressed) is suppose to kill everything.  Right now if I kill the script, functionOne and adb logcat continue running.  How can I kill them?  Also, since I'm fairly new to the trap function I have to ask have I positioned it correctly in the code?  EDIT : I am running this script on Ubuntu 19.04 and my target is an Android phone, if someone needs the info.  #!/bin/sh  kill_other(){     ## Insert code here to kill all other functions     exit }  trap 'kill_other' SIGINT  main(){      functionOne &      adb logcat > log_test.log &      while true         do             echo "==================================================================="             memPrint             sleep 10         done }  functionOne(){     while true         do             sleep 20             echo "==================================================================="             echo "Starting app 1"             echo "==================================================================="             functionTwo              sleep 20             echo "==================================================================="             echo "Starting app 2"             echo "==================================================================="             functionThree         done }  functionTwo(){     adb shell monkey -p com.google.android.youtube -c android.intent.category.LAUNCHER 1 }  functionThree(){     adb shell monkey -p tv.twitch.android.app -c android.intent.category.LAUNCHER 1 }  memPrint(){     adb shell dumpsys meminfo | grep -A 10 "Total PSS by process\|Foreground\|Perceptible\|Total RAM\|Home" }  ## Start main

I am looking for a way to clean up the mess when my top-level script exits.  Especially if I want to use set -e, I wish the background process would die when the script exits.


I'm coding a program that asks whether or not the user wants to give his name. If the user responds 'yes', the question is asked; on 'no' the program quits. If the users enter anything else, they are reminded to say either 'yes' or 'no'.  My code so far:  puts "Would you like to give us your name? (type yes or no)" answer = gets.chomp  if answer == "yes"   print "What's your name?"   name = gets.chomp   puts "Nice to meet you, #{name}" elsif answer == "no"   puts "Oh, ok. Good bye" else   puts "You need to answer yes or no" end   I need start over, if the user does not enter 'yes' or 'no' for the initial question.

I'm using this code to let the user enter in names while the program stores them in an array until they enter an empty string (they must press enter after each name):  people = [] info = 'a' # must fill variable with something, otherwise loop won't execute  while not info.empty?     info = gets.chomp     people += [Person.new(info)] if not info.empty? end   This code would look much nicer in a do ... while loop:  people = []  do     info = gets.chomp     people += [Person.new(info)] if not info.empty? while not info.empty?   In this code I don't have to assign info to some random string.  Unfortunately this type of loop doesn't seem to exist in Ruby. Can anybody suggest a better way of doing this?


Brazil looks like being changing its DST rules again (next transition date was initially oct'20th, changed to nov'4th and now to nov'18th ).  Looking at  the last update is 2018e, which doesn't include this last change.   Any clue on how to handle this for both linux tzdata and openjdk tzdata-java ?  thanks.

The Brazilian Government has just issued a law that shifts the beginning of the Brazilian DST (Daylight Saving Time) locally called as Summer Time.   This new DST date will come into force in the next month, to be more precise on 18th of November of 2018. So, we won't have enough time to wait for a new Olson update through the operation system updates, neither downloading a new Olson database package might be enough.  I have downloaded the file tzdb-2018e.tar.tz from . Inside that package I found the file southamerica and I have located the following entry:  ... # From Steffen Thorsen (2017-12-18): # According to many media sources, next year's DST start in Brazil will move to # the first Sunday of November, and it will stay like that for the years after. # ... https://www.timeanddate.com/news/time/brazil-delays-dst-2018.html # From Steffen Thorsen (2017-12-20): # http://www.planalto.gov.br/ccivil_03/_ato2015-2018/2017/decreto/D9242.htm Rule    Brazil  2018    max -   Nov Sun>=1  0:00    1:00    - Rule    Brazil  2023    only    -   Feb Sun>=22 0:00    0   - ...   The comments preceding the entry rule for 2018 matches the old law from the end of 2017, but there's a new law that shifts it to the 3rd Sunday of November of 2018.  How to fix that Olson entry shifting it to the 3rd Sunday of November? I have tried Sun>=3 yet, and it didn't work.


I noticed whenever I want to delete a folder containing a lot of data using a command line (sudo rm -r folder_name), the Terminal hangs on for the operation to terminate. But at the same time, when I manually delete a folder of similar size, the deletion is performed instantly without waiting.  Any explanation as to why this difference happens

I witnessed that deleting directories (with the size of a couple of gigabytes) which contain many files is very slow when using rm. It takes up to several minutes! When deleting the same folder via the File Manager, the job is done within a second. (It takes another second to empty the trash afterwards.)  What is the reason for this?


Use-case: After FB leads insert into DE, i have to do a encryption on the email address and update the DE to one of the field, I have to use base64encode, HMACSHA256. i am able to retiever records(SSJS) and generate encrypted string using (JS), but not having handle to update this to DE. I loaded external crypto libraries in cloud page and able to do. but how to update this to DE. knew that ssjs is on server side and js on client side. but still any way to do it?. i saw some encrytion methods in AMPSCRIPT but HMASHA256 is not one among. seems like have to write a service and do

I am trying to find SSJS function in marketing cloud. is there any way to generate hmac sha256 in server side javascript in marketing cloud ? does SSJS has any equivalent to CryptoJS.HmacSHA256(, ) ?  Thanks


For school we were given a creative response for an assignment so I decided to use my amateur c++ knowledge to make a Win32 console application which was a "choose your own adventure" game. I finished it (in Visual Studio 2015) and submitted it since it worked fine on my computer I figured nothing could go wrong since my computer and the school's use Windows. But when it is run on the school's computer's It turns out it can't run because it is missing a .dll. Turns out this is because the school's computer don't run Visual Studio and mine does.  So what I am asking is what can I do to make it so my code can run on any windows computer regardless if they have Visual Studio installed? My bad if this is a noob or impossible question.

My current preferred C++ environment is the free and largely excellent Microsoft Visual Studio 2005 Express edition. From time to time I have sent release .exe files to other people with pleasing results. However recently I made the disturbing discovery that the pleasing results were based on more luck that I would like. Attempting to run one of these programs on an old (2001 vintage, not scrupulously updated) XP box gave me nothing but a nasty "System cannot run x.exe" (or similar) message.  Some googling revealed that with this toolset, even specifying static linking results in a simple hello-world.exe actually relying on extra .dll files (msvcm80.dll etc.). An incredibly elaborate version scheming system (manifest files anyone?) then will not let the .exe run without exactly the right .dll versions. I don't want or need this stuff, I just want an old fashioned self contained .exe that does nothing but lowest common denominator Win32 operations and runs on any old win32 OS.  Does anyone know if its possible to do what I want to do with my existing toolset ?  Thank you.


Not much about the underlying math, but how can an electromagnetic field exist when the electric and magnetic field is zero?

Here is an interesting paper for the Physics SE community:      On the role of potentials in the Aharonov-Bohm effect. Lev Vaidman. .  [quant-ph].   You should check it out because it's an amusing read, but I will summarise the argument to whet your appetite, assuming you have basic familiarity with the . In the traditional AB setup, one considers an electron in a superposition of paths, taking it in two opposite directions around a solenoid treated as a classical source of the electromagnetic field. The observable relative phase acquired between the electron's paths is attributed to the influence of the magnetic vector potential on the electron, which cannot be globally gauged away - despite the absence of a physical field anywhere along the electron's path(s) - due to a topological obstruction.  Instead, Vaidman considers the effect of the electron on the sources of the field, treating the latter as quantum particles. He shows that the relative phase between the two branches of the wavefunction can be considered as arising from the action of the physical field of the electron, which is not zero at the position of the sources. However, Vaidman uses highly contrived gedankenexperiments and completely semi-classical arguments, which begs a pair of concrete and related questions.  1) Can Vaidman's first, electric AB effect gedankenexperiment be described in a fully quantum manner, by solving (at least approximately) the three-particle Schroedinger equation? If not, why not?  2) Is it possible to explain within this formalism the experiments of Tonomura et al. (), who used a superconductor to completely shield the magnetic field of the source?


I have been configuring my new fresh Arch installation. I just finished with my PS1 in Bash and realized about an error I do not know how to solve. This is the code: PS1='\n\[\e[30;44m \u@\h \]\[\e[34;45m\]\[\e[30;45m \w \]\[\e[35;46m\]\[\e[30;46m $(__git_ps1 "(%s)") \]\[\e[0;36m\]\[\e[0m\]\n\[\e[0;42m \# \]\[\e[32;41m\]\[\e[0;41m \$ \]\[\e[0;31m\]\[\e[0m\] '  And I get this:  Then I continued with my config time and realized that if I use any of the upwards arrow key or downwards arrow key (to browse through history) twice, I get this:  Also this happens when doing recursive search:

I have made some modification to my prompt with use of colors via tput.  It looks like now when I try to do an arrow up lookup after few moves up, the prompt is being cut into half, what I mean by this is:  From this:  PROD mysuer@server1.domain.com:~$ vim .bashrc   To this:  PROD mysuer@servegit rebase origin/add_pool   ctrl + c brings everything back to normal.  I have found some posts indicating that this may be due to the issue with missing escapes for [ however I don't see an issue here:  My code:  #red for prod, green for lab  COLOUR_RESET=$(tput sgr0) COLOUR_GREEN=$(tput setaf 2) COLOUR_BLUE=$(tput setaf 6) COLOUR_YELLOW=$(tput setaf 3) COLOUR_RED=$(tput setaf 1) BOLD=$(tput bold)  if [[ $HOSTNAME =~ .*\.domain.com$ ]]; then   COLOUR=$COLOUR_RED   PROMPT_TEXT="PROD" fi  if [[ $HOSTNAME =~ .*\.lab$ ]]; then   COLOUR=$COLOUR_BLUE   PROMPT_TEXT="LAB" fi   MYPROMPT="$COLOUR$BOLD$PROMPT_TEXT$COLOUR_RESET \[\u@$COLOUR$BOLD$(hostname -f)$COLOUR_RESET:\w\]\$ "  PS1=$MYPROMPT   UPDATE: @KamilMaciorowski has pointed out a similar question although it was not relating to a tput colors.


In Ubuntu 18, this error is caused by Chrome Remote Desktop. The solution is:  Stop the Chrome Remote Desktop Service: (use terminal)  /opt/google/chrome-remote-desktop/chrome-remote-desktop --stop Open all external disks, that logo appears  Start again the Chrome remote desktop service:  /opt/google/chrome-remote-desktop/chrome-remote-desktop --start  I think you have to do this after each reboot.

I'm using Ubuntu 18.04 with nemo as the file manager, and out of nowhere I can no longer mount disks or partitions which show up just by double-clicking them, when just a few weeks ago this worked perfectly fine! Any idea what changed? Perhaps an update messed it up?  The error is:      Unable to mount NAME_OF_DISK. Not authorized to perform operation.   Screenshot from nemo file manager:    This answer doesn't seem to help me either, as I just booted up and have nothing open really. Repeated reboots don't solve the problem. How would I find out which application might be holding the lock? .  Note that the work-around is to manually do it with sudo, but I really don't like having to use sudo! Ex:  sudo mkdir /media/mydisk sudo mount /dev/sdb1 /media/mydisk   Or this works too:  sudo gnome-disks   Then use the gnome "Disks" utility to mount via the GUI.  If I do this though I cannot view the mounted partition unless I also run my file manager as root. Ex:   sudo nemo   Then navigate around in a GUI file manage window with elevated permissions.    Update:    possibly related to Polkit?? -    Related    to Polkit and plugdev group?


I have 550+ fonts installed in my Windows 7, which is annoying, because they all are appear in Adobe Illustrator font's menue. Its really difficult to find appropriate fonts when it needed, also i am scared to add new fonts. Is there any safe way to delete redundant fonts and group new fonts (may be as folders)? Thank you.

Is there a better way to manage fonts in Illustrator instead of the default drop-down? I am on CS6 and Windows7  I have several hundred fonts and I wish there was a more intuitive way to browse through my fonts.   Any suggested add-ons or extensions ?


Hi all I have a commercially made mini fridge which displays it power requirements of 12v DC 6ah power supply. I have a 12v DC 10ah smp power supply. Can I use it with the Peltier fridge without harming anything or do I need to put resistor in line to limit the Ah output.

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


Amazon details how use a public + private subnet approach in VPC ().  But, bearing in mind that    Instances don't have to have a public IP address You can configure security groups per EC2 instance if you want to   Aren't private subnets redundant?  What I mean is, let's say I create one public subnet. I install my webserves and databases on that subnet.   I then give my webservers external IP addresses (and obviously don't give the DBs EIPs).  Finally, I setup the security group of the databases to only allow incoming connections from the internal subnet, and reject all outgoing traffic.  Isn't this just as good as having the databases in a private subnet?  The whole argument about instances being "private" when they're in a private subnet seems bogus to me. Nothing in VPC subnets are really "on the internet" anyway, due to the virtualised nature of the AWS architecture. It's just whether or not you've configured it so that Amazons public gateways forward packets or not. Right?  I wonder if this is just a psychological thing to give companies a pattern they're familiar with?  Can anyone explain why the private+public model is better?  Thanks!  UPDATE: Yes, I saw the other answer before I posted this. I don't believe the person provided enough information to really get a proper answer. For example, the answers don't explain why this is any better than just using security groups.

In Amazon VPC, the VPC creation wizard allows one to create a single "public subnet" or have the wizard create a "public subnet" and a "private subnet".  Initially, the public and private subnet option seemed good for security reasons, allowing webservers to be put in the public subnet and database servers to go in the private subnet.  But I've since learned that EC2 instances in the public subnet are not reachable from the Internet unless you associate an Amazon ElasticIP with the EC2 instance.  So it seems with just a single public subnet configuration, one could just opt to not associate an ElasticIP with the database servers and end up with the same sort of security.  Can anyone explain the advantages of a public + private subnet configuration?  Are the advantages of this config more to do with auto-scaling, or is it actually less secure to have a single public subnet?


IndexOf cannot find my object. Here is the        let a = [{}] console.log(a.indexOf({}))

A strict equality operator will tell you if two object types are equal. However, is there a way to tell if two objects are equal, much like the hash code value in Java?  Stack Overflow question  is similar to this question, but requires a more academic answer. The scenario above demonstrates why it would be necessary to have one, and I'm wondering if there is any equivalent solution.


I have one file in which we have data like this:  CC,1234,Piyush,0.0,   Whenever 0.0 comes in file it should replace by 0 only. How do I replace without using sed command to replace all in file.

There is a file I have which look  555.92 569.472 582.389 648.078 999.702 1040.75 1386.24 1418.47 1998.26 2182.13 2384.3   I would need to round every number like this   556 569 582    Ideally i don't need to create a tmp file. How to do that ?


I am trying to connect PC and mobile together. But mobile won't show on my PC. Is it really possible?

I have a Mac only, so I am not able to get Terraria through Steam. I was wondering if I can play Terraria on my iPad Mini with a friend who has it on his PC. I was wondering this, because I saw that Deepworld on iOS is compatible with the Mac version.


I'm using the excellent Codestyling Localization plugin to translate themes and plugins.  But there's a problem when translating plugins, namely that the translated strings are saved to wp-content/plugins/gravityforms/languages/gravityforms-LANG-CODE.* for example.  This resulting in overwritten translations for subsequent plugin upgrades.  Is it possible to move the language files to another location? For example wp-content/languages or something else?

Hi I was translating one of my plugins in "CodeStyling Localization". when I update my plugin my translation erased. Is there anyway to find it ? And How can I backup my translation (I don't want to waste my time next time :))


Let $R$ be the ring of all functions $f:\mathbb{R}\rightarrow \mathbb{R}$ with the operations $$(f + g)(x) = f(x) + g(x)$$ $$(fg)(x) = f(x)g(x)$$ Let $c ∈ \mathbb{R}$. Show that $J = \{f ∈ R | f(c) = 0\}$ is a maximal ideal.Can you give me some hints ?

Let $R$ be a ring of the real functions with "+" and "x" and let $I_1:=\{f(x)\in R\mid f(1)=0\}$, $I_1$ is a maximal ideal?   I think yes, but don't know how to prove it.


Why did the architect build the matrix?  Also, why did the people in the real world agree to be the part of the matrix?

Agent Smith, in the first Matrix movie (The Matrix) talks about how the machines originally created a paradise setting and humans didn't accept it, so it went back and created a more realistic one that humans would accept.  The human bodies, as we've seen, are kept in tanks and the body is kept asleep.  But why did the Matrix need to provide any kind of simulation for the brain to experience?  Why couldn't it have just kept all humans in a medically induced coma?  Or performed something equivalent to a lobotomy on every human?  Why did the Matrix need to spend the resources to keep the humans in good mental shape?


I have to do an application that should be launched from the iPhone native applications like calendar, contacts and mail box etc... is it possible to launch 3rd party application from the native app, whether apple allows the developer to do this.

Is it possible to launch any arbitrary iPhone application from within another app?, For example in my application if I want the user to push a button and launch right into the Phone app (close the current app, open the Phone app).  would this be possible? I know this can be done for making phone calls with the tel URL link, but I want to instead just have the Phone app launch without dialing any specific number.


I have two python lists, namely, num = ['0', '1'] and salpha = ['a', 'b', 'c', 'd', 'e'] and\ I want the result to be,\  0a 0b 0c 0d 0e 0@ 0# 1a 1b 1c 1d 1e 1@ 1#\ How can I do that..??

How can I get the Cartesian product (every possible combination of values) from a group of lists?  Input:   somelists = [    [1, 2, 3],    ['a', 'b'],    [4, 5] ]   Desired output:  [(1, 'a', 4), (1, 'a', 5), (1, 'b', 4), (1, 'b', 5), (2, 'a', 4), (2, 'a', 5) ...]


There should be some system to send small gifts to users on some criteria. Gift should include stickers and other things. Stack over flow should email user and ask them to provide address to send a gift.  Criteria can be    User who pass some reputation like 700 or 500. Who opens the site etc   Even on badges etc. Also it should not be that hard to get the gift specially stickers :) so it can be done.  Its a suggestion as I love Stack Over Flow <3

I realize we did receive some stickers before, but I believe more stickers would be tolerated. Of course, you should deserve them first. Are there any possible sticker competitions?


Prove that when $a,b,r \in \mathbb{R}, a,b \ge 0, r \ge 1$ that $(a + b)^r \ge a^r + b^r$   My first idea for this proof was to use the generalized binomial theorem:  \begin{align*}   (a+b)^r &= \sum\limits_{k=0}^\infty \binom{r}{k} a^{r-k} b^k \\   \binom{r}{k} &= \frac{r \cdot (r - 1) \cdots (r - k + 1)}{k!} \\ \end{align*}  But I'm unable to get that to work. Any suggestions? Thank you!

For $\alpha\in\mathbb{N}$ we can use the Binomial and get: $$\left(a+b\right)^{n}=\sum_{k=0}^{n}{n \choose k}a^{k}b^{n-k}=\sum_{k=1}^{n-1}{n \choose k}a^{k}b^{n-k}+a^{n}+b^{n}>a^{n}+b^{n} $$  But what about rational and irrational powers?  Respectively, can we also say that $\left(a+b\right)^{\alpha}<a^{\alpha}+b^{\alpha}$ for all $\alpha<1$?


why is the adminbox floating although there is no command?  ** the fixed div center not working properly  .adminbox {         width: 200px;             height: 17px;         margin-top: 20px;           padding: 20px;          font-size: 12px;            color: white;         background-color: black;         font-size: 12px;                    font-family:"Gears of Peace"; }

I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
Div to be aligned vertically
   How can I center a div vertically in all major browsers, including Internet Explorer 6?


.searchbar { display: block; border: 1px solid red }  .searchbar input[type=text] { float: left; width: 80%; box-sizing: border-box; border-radius: 30px; display: inline-block; outline: none; border: 3px solid black; padding: 16px; margin: 6px; vertical-align: middle; }  .searchbar button { width: 16%; box-sizing: border-box; display: inline-block; padding: 16px; margin: 6px; border:none; vertical-align: middle; } <div class = 'searchbar'> <form> <input type = 'text' placeholder = 'Click here'> <button type = 'button'>Search</button> </form> </div>    In order to align both elements vertically, I used vertical-align: middle and, according to , it works with inline-level elements. Despite setting their display values to inline-block, it doesn't seem to work . As you may have already noticed, <input> isn't aligned to the center as if it had not effect. In fact, if I were to delete vertical-align: middle, it would look the same. Also, it seems that <input> bottom margin isn't working. However, it should since it's a block-level element.

I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers?

testing...


Wonder how to make  instead of ? I want everything intact without changes. Searched for an answer on Google, but there seems to not be one.

Maybe I'm making this way more complicated than I need to, but I want to serve my Drupal site that I've installed at example.com/drupal from example.com.  This particular site is an add-on site on my shared host, so the actual file structure is public_html/example.com/drupal.  What do I need to modify: .htaccess or add a redirect in cPanel?  I can't imagine I'm doing anything radical here, but there's no clear-cut answer in all my searching.


I have a water storage tank attached to my oil fired furnace. I also have an electric water heater that I use at the same time. Is it ok to turn off the water heater to save money in the winter and only use the furnace and storage tank?

I'm a little OCD when it comes to traveling. I have learned from experience that when I am away, I constantly have visions that a pipe in the wall had burst and that the water is slowly filling the house. Having been through this enough times, I am tempted to put my worries to rest by simply turning off the main water line (in the garage) before we leave. My new fear with doing this, of course, is that I will cause something else bad to happen.  So I am curious, is it bad to turn off the water and drain the pipes prior to leaving for a week? In addition, what other precautions should I take aside from turning down the water heater? A few details - our house is two story, copper pipes, and we would be traveling in the spring time so temperatures in the house would stay at around 70 F.


Is there a simple way to automate calls to QGIS plugins from a QGIS Python script? Either from console or a plugin?   I am ideally looking for a way to specify input/output parameters and bypass GUI.  Specifically, I'm trying to use the SimpleSVG plugin in a script that generates a whole bunch of maps.

Is there a way to access QGIS plugins in Python?   I'd like to write a script to do some geoprocessing, and I'd like to use the clip, regular points and convex hull tools in fTools, as well as the Road graph plugin. The latter is probably a different can of worms because it is a C++ rather than Python plugin.


I am trying to use the minted package but get the error ! Package minted Error: You must invoke LaTeX with the -shell-escape flag.  I am using MikTex and have tried going into Edit/Preferences and clicking on PdfLatex+MakeIndex+BibTex and adding -shell-escape (and also trying --shell-escape) to the arguments but then the compiler does not run at all and I get ERROR: MiKTeX encountered an internal error. ERROR: Info:  ERROR: Source: Libraries\MiKTeX\Core\Session/SessionImpl.h ERROR: Line: 640  Sorry, but "MiKTeX Compiler Driver" did not succeed.

I need to enable shell escape for a package that I want to use. What is shell escape exactly, and how do I enable it in my editor or compiling toolchain? Links to answers for different editors/toolchains, in alphabetical order:   AUCTeX (Emacs) ,         Note: this is a FAQ post. Related Meta question: . Please add an answer for your own editor/toolchain if it is missing. Thank you! When adding an answer, please indicate if the setting is permanent or per-document, and/or describe how you can add a button, shortcut, menu item, etc. to make it easy to switch between shell-escape and regular compilation.


This is a very informative guide to get help about Schengen visa enquiries :)   Me and my husband, we are planning for the below itinerary, for a Europe trip covering 5 countries. Please let me know while applying for Schengen visa, which consulate I have to apply from?  Here my longest stay would be in Hungary, but it's not my entry port. So here I am confused !! Please help.  Please Note: I have already booked my hotels and my air tickets.  Warsaw,Poland 1 day      Gdansk,Poland 2 days Krakow,Poland 3 Days Prague, Czeck Republic 4 Days Vienna,Austria 4 Days Bratislava,Slovakia 1 Day Budapest,Hungary 7 Days

I'm planning to travel to the Netherlands, Spain and Bulgaria. My longest stay will probably be in Bulgaria. Now, Bulgaria doesn't issue a Schengen visa but allows people with a Schengen visa to visit. Which visa should I be applying for? Bulgarian Visa AND Schengen visa or just the Schengen visa for Netherlands or Spain?


For this example I will use shipstation's , but this question applies to any api using oAuth tokens.     The ShipStation API uses Basic HTTP authentication. The Authorization header is constructed as follows:         Username (API_KEY) and password (API_SECRET) are combined into a string "username:password"   The resulting string is then encoded using the RFC2045-MIME variant of Base64, except not limited to 76 char/line   The authorization method and a space i.e. "Basic " is then put before the encoded string.         For example, if the API_KEY given is 'ShipStation' and the API_SECRET is 'Rocks' then the header is formed as follows:      Authorization: Basic U2hpcFN0YXRpb246Um9ja3M=   Easy right?  My first attempt:  import base64 KEY = 'ShipStation' SECRET = 'Rocks'  AUTH = bytes(str(KEY) + ':' + str(SECRET), encoding='utf-8') TOKEN = base64.b64encode(AUTH)  AUTH_TOKEN = 'Basic ' + str(TOKEN) print(AUTH_TOKEN) # Basic b'U2hpcFN0YXRpb246Um9ja3M='   As you can see, the AUTH_TOKEN I made has an additional b' at the beginning and ' at the end, which causes a 401 when you send the request.  Here is my fix to this:  import base64 KEY = 'ShipStation' SECRET = 'Rocks'  AUTH = bytes(str(KEY) + ':' + str(SECRET), encoding='utf-8') TOKEN = str(base64.b64encode(AUTH))  AUTH_TOKEN = 'Basic ' + TOKEN[2:len(TOKEN)-1] print(AUTH_TOKEN) # Basic U2hpcFN0YXRpb246Um9ja3M=   While the above code works, this is clearly not the way it was intended to be done. (I assume?)  TLDR;  What is the pythonic way of turning the TOKEN in the example above into the proper format?

I'm using this code to get standard output from an external program:  >>> from subprocess import * >>> command_stdout = Popen(['ls', '-l'], stdout=PIPE).communicate()[0]   The communicate() method returns an array of bytes:  >>> command_stdout b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   However, I'd like to work with the output as a normal Python string. So that I could print it like this:  >>> print(command_stdout) -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1 -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2   I thought that's what the  method is for, but when I tried it, I got the same byte array again:  >>> binascii.b2a_qp(command_stdout) b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   How do I convert the bytes value back to string? I mean, using the "batteries" instead of doing it manually. And I'd like it to be OK with Python 3.


Im making a Runescape private server, but im having slight problems with compiling. The code i use for my source is:      @echo off "C:\Program Files\Java\jdk1.8.0_131\bin\javac.exe"   -classpath deps/log4j-1.2.15.jar;deps/jython.jar;deps/xstream.jar;deps/mina.jar;deps/mysql.jar;deps/poi.jar;deps/slf4j.jar;deps/slf4j-nop.jar   -d bin src\server\event*.java src\server\model\items*.java src\server\model\minigames*.java src\server\model\npcs*.java   src\server\model\objects*.java src\server\model\players*.java   src\server\model\players\skills*.java   src\server\model\players\packets*.java src\server\model\shops*.java   src\server\net*.java src\server\task*.java src\server\util*.java   src\server\world*.java src\server\util\log*.java src\server*.java   src\server\world\map*.java src/server/gui/*.java   and for my client/auto cache i use:     @echo off Title Compiler "C:\Program   Files\Java\jdk1.8.0_131\bin\javac.exe" -d ./Class/ Java/.java   Java/sign/.java pause   So, i get the same error on both of the codes, and i have no clue how to fix it... The error is: Note: Java\client.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.  Hope that someone knows how to fix this :)

For example:  javac Foo.java Note: Foo.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.


Do you have information to confirm that flight TOM672 from Manchester to Dalaman departing at 15.15 did happen. I was booked on that flight and was told it had been cancelled and was placed on a much later flight.  I was notified by somebody who travelled on that day that they did fly on that flight and it wasn't cancelled. I need confirmation of this then I can challenge TUI about it

The question  only deals with flights in the US sourced from the  . Is there some similar source for EU, Asia etc?


Here was my take on the proof.  We already know that since $(a,b)=1$, there exist integers $x,y$ such that $ax+by=1$.  Let $d=(a+b,a-b)$.  Then $d|(a+b)$ and $d|(a-b)$.  In particular, there exist integers $k_1, k_2$ such that  $$a+b=dk_1$$ $$a-b=dk_2$$ Thus depending whether we add or subtract the two equation we get both $$2a=d(k_1+k_2)$$ $$2b=d(k_1-k_2)$$ Thus, $d|2a$ and $d|2b$.  But then also  $$d|(2ax+2by)\Rightarrow d|2(ax+by)$$ Thus, $d|2$ and thus $d=1$ or $2$.  I don't know why, but I feel like there is a problem with my argument.  Perhaps something I haven't said...I feel like it's almost there, but missing some sort of justification, but it's late and I can't figure it out....

Prove that if $a$ and $b$ are relatively prime, then $\gcd(a+b, a-b) = 1$ or $2$.  I started off by putting $\gcd(a+b, a-b) = d$. This implies that there are two relatively prime integers $x_1, x_2$, such that   $dx_1 = a+b$   $dx_2 = a -b$  Adding the first equation to the second gives us: $d(x_1 + x_2) = 2a$, and subtracting the second from the first gives us $d(x_1 - x_2) = 2b$. This implies that $d\mid2a, d\mid2b \implies \gcd(2a, 2b) = d \implies d = 2\cdot \gcd(a,b) \implies d = 2$.   This is based on the fact that $\gcd(x_1 + x_2, x_1 - x_2) = 1$, which is in fact the statement of the problem. How do I prove this? Can I somehow use the Euclidean Algorithm for this.


Is there a term for when a noun is used as an adjective, as in:   Click the button to open the configuration dialog. I need to stop at the car wash. The train station is right next to the bus station. Do you have documentation for the setup process? I'm throwing a party, and the entire ELU community is invited. Hopefully, the party won't get busted by the grammar police again.   Is there a word to describe that?  Also, are those even adjectives? Or are they adverbs or something?  (I feel like this must be a duplicate (?) but I could only find questions about when adjectives are used as nouns, not the other way around...)

My students were asked, in an exercise in their published workbook (in which there are sometimes mistakes), to identify the noun or nouns in a sentence within a passage about carrier pigeons being used for scientific research. The book said that "Each bird carried a GPS satellite tracking receiver on its back."(Punctuation as written: i.e. no commas.) The answer book identified 'GPS', 'satellite' and 'receiver' as separate nouns within the sentence.  I am confused. To me, 'GPS', 'satellite' and 'tracking' could be regarded as adjectives describing the only noun in the sentence, being 'receiver'. Either that or all four words could be forming a compound noun: the name of the object in question is a 'GPS satellite tracking receiver', rather like a 'bedside table' being one physical object but with two words to describe it.    I am sure that the answer book is wrong and that these are not separate nouns, but I am unclear whether there are three adjectives and a single word noun in this sentence, or whether there is a four-word compound noun and no adjectives.


I have made base model for transfer learning and it is showing good accuracy, and even good confusion matrix is also showing good results Here is accuracy and losses for base model loss: 0.0566 - accuracy: 0.9767 - val_loss: 0.3767 - val_accuracy: 0.9613 For transfer learning model I am not able to show good accuracy but confusion matrix is excellent Here is accuracy and loss for transfer learning loss: 0.2698 - accuracy: 0.1914 My question is that, for transfer learning model should always less accuracy or should be more, do you think is there any problem ?

I have built a forecasting model for a company. Since it is dedicated to practical usage, I prefer to use the relative error parameter (like MAPE, SMAPE, & MASE) as a measurement for my model performance and display it on the dashboard (the percentage error is easier to understand by user). I found an interesting reference about the criteria of a good forecast result based on MAPE from Lewis (1982):  ...but in my case, I can't use MAPE for some dataset because there is some zero actual demand so it can't be used as denominator in MAPE. So, I use SMAPE & MASE instead, but I can't find any good references about good forecast result criteria based on SMAPE & MASE, nothing like above. So, I'd really appreciate any help/suggestion about it :), Thank You! Reference: Lewis, C. D., 1982. Industrial and Business Forecasting Methods. London: Butterworths.


I am trying to get 3 parameters on my servlet,i split my code into 3 classes for code readability but on the query_a1 method of my DatabaseQuery class i always get false and i cant understand why! Here it is my servlets classes :  DatabaseQuery     public class DatabaseQuery {      //Query i aktivitetit 1 public static boolean query_a1(String user,String pass) {     if (user== "andi" & pass=="andi")         return true;     else         return  false;  } //ky do te jete query i aktivitetit 2 public static void  query_a2() {  } }   Servlet    import java.io.IOException;     import java.io.PrintWriter;     import javax.servlet.ServletException;     import javax.servlet.annotation.WebServlet;     import javax.servlet.http.HttpServlet;     import javax.servlet.http.HttpServletRequest;     import javax.servlet.http.HttpServletResponse;     @WebServlet("/web2")     public class Servlet extends HttpServlet {         private static final long serialVersionUID = 1L;         @Override         public void doGet(HttpServletRequest req, HttpServletResponse resp)                 throws ServletException, IOException {              //merr aktivitetitn nga i cili vijne parametrat             int activiteti=Integer.parseInt(req.getParameter("activitetiNR").toString());              //krijo nje switch per cdo parameter            switch (activiteti){           case 1:{               //marrim te dhenat qe i perkasin aktivitetit               String user = req.getParameter("user").toString();               System.out.println(user);               String pass = req.getParameter("pass").toString();             System.out.println(pass);                //i kalojme ne metoden e klases Aktiviteti1 dhe marrim pergjigje dhe me pas japim response             response(resp,Aktiviteti1.kontrolloDhenat(user,pass));           }           break;           }         }         private void response(HttpServletResponse resp, String msg)                 throws IOException {             PrintWriter out = resp.getWriter();             out.println(msg);         }     }   Aktiviteti  public class Aktiviteti1 {     //ketu vendosen kontrollet llogjike te aktivitetit  public static String kontrolloDhenat(String user,String pass){     //ndersa ketu therrasim queryn nga klasa database if (DatabaseQuery.query_a1(user,pass)==true){      return "Succes!";                }else{         System.out.println(DatabaseQuery.query_a1(user,pass));     return "Failure!";      } } }   Do you have any idea?

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?


Package hyperref Warning : Token allowed in a PDF string (PDFDocEncoding):  (hyperref) removing 'math shift' on input line 26.

When compiling a beamer presentation and using the following \author command  \author{Name \\ \texttt{my.email@domain.com}}   I get the following hyperref warning in my logfile  Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `\\' on input line 15.   Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `\new@ifnextchar' on input line 15.   I understand that this has to do with hyperref setting the PDF metadata, where the linebreak does’t make much sense and should be removed.  Trying to set  \hypersetup{pdfauthor={Name}}   does’t change the situation, seems like hyperref is still looking at the author command.  How do I get the desired display of author name with email and still keep hyperref happy?


I want to obtain a prediction model using support vector regression on a time series data set. In literature, I have read that the break up ratio for training/testing/validation of data should be around 60/20/20 percent. But the length of my data set is very large, so if I use 60% of it for training, it takes a lot of time.   Instead of taking the ratio as said above, is there a minimum length of training sequence that if used is less time consuming and still ensures statistical reliability of the proposed model?

Provided a sample size "N" that I plan on using to forecast data. What are some of the ways to subdivide the data so that I use some of it to establish a model, and the remainder data to validate the model?  I know there is no black and white answer to this, but it would be interesting to know  some "rules of thumb" or usually used ratios. I know back at university, one of our professors used to say model on 60% and validate on 40%.


I wish to show that $B:=k[x_1,\ldots,x_n]/\langle x_1^2+\ldots+x_m^2\rangle$ is a normal domain -- that is to say, it is integrally closed in its ring of fractions. Unfortunately, I don't know of any theorems about quotients of normal domains being normal. The best I can say so is that $B$ is an integral domain, that is to say, $x_1^2+\ldots+x_m^2$ is irreducible.

One of the exercises in Ravi Vakil's algebraic geometry notes, Ex. $5.4.$I(b), is to show that    $$ \operatorname{Spec}\left(k[x_1, \ldots, x_n]/(x_1^2 + \cdots + x_m^2)\right) $$   is normal, where $k$ is any field of $\operatorname{char}(k)\neq 2$, and $n \geq m \geq 3$.    I have absolutely no idea how to get started on this. Is there anyone that could give a hint as to how one would approach this problem?


Im trying to insert a tensor product symbol (a circle with a cross through it) into my document. Anyone know how i might achieve this?   Thanks

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


I'm making a Java program that greets people. Two people, Alice and Bob, are very special, so they get their own, special greetings. Because this will, in the future, get lots of inputs, I wanted to create a convenience function that takes a prompt as its argument, prints the prompt to STDOUT, and then returns the input the user added. (This works like input() in some other languages.) Here is my code:  package test;  import java.util.Scanner;  public class Application {      static Scanner scanner = new Scanner(System.in);     public static String userInput(String prompt) {         System.out.printf(prompt);         String caught_string = scanner.nextLine();         return caught_string;     }     public static void main(String[] args) {         System.out.println("Printing test");         String name = userInput("Can I have your name, please? ");         if (name == "Bob") {             System.out.println("You're Bob! Hello, there!");         } else if (name == "Alice") {             System.out.println("Alice! Good to see you!");         } else {             System.out.println("You must be new here. Hello!");         }     }  }   But when I enter Bob, all I get is the else message, You must be new here.. Can someone help me, and tell me where I went wrong?


Given a triangle, denote by $A$ the radius of the circumscribed circle and denote by $a$ the radius of the inscribed circle. The distance between the centers of those circles is $b$. Prove that $A^2 - b^2 = 2Aa$.   I found this in a prelim paper. I really dont know where to start. (Sadly, I can only use tangent properties, arc properties and trignometry)

Consider an isosceles triangle. Let r be the radius of the circumscribed circle and p be the radius of the inscribed circle. Prove that the distance d between the centers of these two circles is $$d = \sqrt{r(2p-r)}$$


Let $G$ be the group of all isometries of $\mathbb{C}$ consisting of all real translations, and all glide reflections with axis $\mathbb R$. Show that $G$ is isomorphic to $\{1,-1\} \times \mathbb R$.    This question has been asked  but it hasn't had any answers yet and I wanted to add what I'd tried without taking over the other question. It seems that it's intuitively true since you can let the $−1$ or $1$ indicate whether it's a glide reflection or not (respectively) and then the real number defines the amount it's translated. I just can't turn that it into something rigorous.  It seems that we'd need to define $\theta:G\rightarrow \{-1,1\}\times \mathbb{R}$ and then we'd need to show that $$\forall a,b\in G \;\;\; \theta(a\circ b)=\theta(a)*\theta(b) \;\;\;\;\;\;\;\; [1]$$ where from intuition it seems we could then define $*$ by:  $$ (a_1,b_1)*(a_2,b_2)=(a_1a_2,b_1+b_2) $$ since, for example, if we compose two glide reflections (both across the same line) then it's clear that both reflections cancel out which corresponds to $(-1,b_1)*(-1,b_2)=(1,b_1+b_2)$. Then we can just add the translations.   So with that defined it seems that $[1]$ should be true since we have $a\circ b$,  which is just another element of $G$ (since it's a group), and so there must exist an element of $\{-1,1\}\times\mathbb{R}$ that it's mapped to by $\theta$. The R.H.S composes the two outside of $G$ but (hopefully) with the same effect.   The problem I have is I'm not sure if this is correct, and even if it is I'm not sure how to put this is a more compact and rigorous way (like, if it's correct, I'm not sure how you'd show that $\theta$ is a bijection between the two groups). Any pointers would be great! Thanks    EDIT - added further to comments: since all $a$ will be either $z\mapsto z+b$ or $z\mapsto \bar{z}+b$ then: $$\forall a\in G \;\;\; \theta(a) = \begin{cases} (1,b) &\mbox{translation }\\  (-1,b) & \mbox{glide reflection}\end{cases} $$

Let $G$ be the group of all isometries of $C$ consisting of all real translations, and all glide reflections with axis $\mathbb R$. Show that $G$ is isomorphic to $\{1,-1\} \times \mathbb R$.   I feel it difficult, first of all, to write down the group $G$. I think all real translations can be represented as $z \to z+b, \forall b \in \mathbb R$, but what is all glide reflections with axis $\mathbb R$?  Moreover, how can I show the two groups are isomorphic?


In ArcMap, is it possible to use data driven pages to display certain data based on an attribute. I want the extent to remain unchanged across pages, and just have certain data be symbolized differently so it stands out.   I would like to have my first page highlight points where DEPTH is 0-5, 2nd page 5-10, etc...  I know how to use data driven pages to move the extent based on a layer, but this is different.

I'm using data driven pages where each page is representing a series of points for a particular year.  The problem I have is that I want to not only show the points for a particular year, I want to show each point before said year as well.  So as I go through the pages, points are only being added to the map, not removed. I want to do a page definition query so that it would say:  "year" <= DataDrivenPageYear    The problem is that the Page Definition query only offers "Match" and "Don't Match."  Is there something I can type in the regular query builder to tell it that I want the year less than or equal to the Data Driven Page year?


Im experimenting with random theme and "new technology" and Im trying to convert whole front-end to pure JS single page application (no page refreshes - like Facebook, Twitter etc) using ,  and  and few other helpers.  How to handle logged-in users? How do I keep track of that? I know that this information is normally handled with cookies. How would one check it via JS?  I could just make an ajax call every time route/url changes and use is_user_logged_in() in server-side but it seems primative. Could I access directly to cookie via JS and check it in browser?     I gave it a long thought if that's off-topic here but it really seems like a very WP specific question Im just experimenting and trying to push it to a new level, please no "this is a bad idea" comments

I want to execute custom jquery code which shows login dialog to user if he clicks a button and he is not logged in. How could I do that?


Here is a basic, and probably a bad, question. A fundamental rule of derivatives.  Why is $f'_{xy}=f'_{yx}$ true?

When is $f_{xy}(x,y)\neq f_{yx}(x,y)?$, where $f_{xy}$ and $f_{yx}$ denote the mixed (second) partial derivatives of a multivariable function $z=f(x,y)$.


Can I create a new keyboard layout or add Unicode characters to my current keyboard layout in Ubuntu? I have found something called  (Keyboard Mapping for Linux), however, I could not install it because I could not find the package ibus-kmfl.  Is there maybe an easier way create a new keyboard layout? Something as easy as the ?

The keyboard I am trying to create has a lot of Unicode and looks like this:   Being unsuccessful with the following tutorial:    (There are a few errors in the tutorial, and it uses imprecise language such as "Cutting" things instead of "Deleting" them, and it is formatted strangely)   I was wondering if anybody would be so kind to provide a better tutorial with step by step instructions?


An observer on Earth watches two spaceships (also with observers) fly by, one coming from the left, one coming from the right. (The space ships are on parallel paths and will pass each other closely but won't collide.) Each spaceship is going 75% the speed of light with respect to the Earth observer.  What does each observer see, regarding the other two?

Let's say I fire a bus through space at (almost) the speed of light in vacuum. If I'm inside the bus (sitting on the back seat) and I run up the aisle of the bus toward the front, does that mean I'm traveling faster than the speed of light? (Relative to Earth that I just took off from.)


I use Ctrl+Shift to change keyboard layout and Ctrl+Shift+v in terminal. It never was a problem with Unity but now Ctrl+Shift immediately changes language so that I can't use it for other shortcuts. Is there a way to solve this for GNOME without changing those shortcuts?

Can I use Ctrl+Shift for changing languages? I can't set this hotkey for changing keyboard languages.  At this moment Alt+Shift switch languages, but I can't see this hotkey in keyboard hotkeys list or in   gsettings list-recursively  org.gnome.desktop.wm.keybindings | sort | more   output.


We're migrating the DB to a new DataCenter. As a result we need to create a new master and slave on the new DC. I have the dump from the Old Datacenter master DB (still in production use). I need to use this dump to create two databases. Both will be initially slaves but one of them will become the master and then the other slave needs to replicate from new master.  DB_old_dc     - Master DB DB_new_dc_001 - Slave replicating from DB_old_dc - Later this will become master. DB_new_dc_002 - Slave replicating from DB_old_dc but later needs to replicate from DB_new_dc_001.  Can I just change the master IP on DB_new_dc_002 to point to DB_new_dc_001 and will it start working? Or Do I have to wait till DB_new_dc_001  becomes master, then take a backup and create DB_new_dc_002   slave?

I have a master slave setup both mysql 5.5, the setup is fine except that the slave won't Binary log to the standard mysql-binlog only to the relay logs. I fear this may be due to my lack of understanding on the matter but my ultimate goal is to setup another slave feeding off the current slave to then point the two together for a master-master relationship.   My problem is that although on the slave I can insert a record and the master replication position (on the slave) will change, it will not change as a result of slave activity on the same database. Will the slave not dump activity into both logs? If i point the secondary slave to relay logs what are my options down the line?  Hope that makes sense.  my my.ini setup on the slave is as such, a unique server id and hostname are also set:  binlog-do-db=our_database   binlog-ignore-db=mysql   binlog-ignore-db=test   replicate-do-db=our_database


Question pretty much stands for itself. To just right click always on top and have window in focus all the time. (on top of other windows no metter if you click somewhere else, on desktop, taskbar, explorer, etc..) Some useful tool, or some other suggestion.

In Ubuntu when you right click on a window, you get the option to keep it 'Always on Top'. This is incredibly useful sometimes when I want a window to take up the whole desktop (e.g. Internet Browser) but still want to see the information from another smaller window (e.g. A video/film). Using the Windows 7 snap to edge feature is very useful and I use it a lot but its not always what you want.  I find it annoying how some programs in Windows such as Media Player and Task Manager for example have Always on Top options and everything else doesnt. There must be some software to fix this.  An example of the feature in Ubuntu:


I want to expand my lens collection with something more suited for portraiture.  Currently, my longest lens is SEL55F18Z, which is just great, but some level of distortion kicks in when I shoot close-ups.  I have researched the topic a little bit and I'm thinking about two options (both used, and possible to get in reasonable price):   Zeiss Planar 85 1.4, Zeiss Makro Planar 100 2.0.   My questions are:    will Makro Planar be well suited for portraits? I want to shoot full-body and close-ups as well.  will Makro Planar produce Zeiss 3D pop like 85 1.4 does? I'm asking because it's pretty easy to find portraits taken with 85 - but you cannot say that about 100.     Sidenote  I'm fine with manual lenses and 100 is more appealing to me because it could allow me to enter macro world with one piece of gear.

What focal length or range of focal lengths are usually used for portraits?   What is used by professionals? Why would one select a certain focal length? What are the advantages and disadvantages of different choices, and are there certain situations where an unusual choice might be better?


I was reading the "Oxford Word Skills" book when I got a question:  Since "roast" itself can act as an adjective (and of course as a verb), is it correct to say either "roasted chicken" or "roast chicken"? Or, the first option is not correct? The book has offered the second phrase, so which one is a more proper word to use? As a general question, if a word has a verb and an adjective form (like what we see here), and since P.P of verbs can also act as an adjective, is there any rule to use one over the other? Or is it optional? Thanks in advance...

We can say ‘fried fish’, ‘baked potato’ or ‘minced pork’ using past participles for modifiers.  However, ‘roast’ is different - either ‘roast duck’ or ‘roasted duck’ works, it seems to me.  How should we analyze this?  Is ‘roast’ a noun modifying a noun here, or is it a different form of the past participle?  (According to freedictionary.com, in Middle English the past participle was ‘roste’ – does that mean that this was once a strong verb?)