I have checked far and wide for a fix for this. But to no avail. Nothing seems to work. I am trying to locate a Username and Password box to enter in the information. But it comes up with the error   selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="userName"]"}   I have tried to find using id but still no luck.Any ideas?  username_box = bot.driver.find_element_by_xpath('//*[@id="userName"]')   This is the inspect element  &lt;input class="userNameField" maxlength="255" id="userName" name="userName" type="text"&gt;
When you are writing Selenium/WebDriver automation scripts you will probably run into the exception NoSuchElementException. You think your selector is working, but somehow the element cannot be found.  What strategy should I take to analyse different reasons that this might be the case?   What should I research and how? Good answers would contain example situations and how to resolve them. (e.g. verify selectors, frames, waiting, etc)
How Do Dementors Communicate with Wizards? I'm having this Error when I try to compile my .tex file with xelatex:  ! Package hyperref Error: Wrong DVI mode driver option `dvips', (hyperref)                because XeTeX is running.  See the hyperref package documentation for explanation.   This is my LaTeX header  \documentclass[10pt, a4paper, dvips,]{moderncv}  \moderncvtheme[grey, roman]{classic}  \usepackage{ifxetex} \ifxetex % only for xelatex \usepackage{xltxtra} % this should load both fontspec &amp; xunicode \usepackage{fontspec} \setromanfont{Helvetica Neue} \else % \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \fi % \ifxetex   Any ideas?  EDIT:  I removed the 'dvips', now I get:  ! Package hyperref Error: Wrong driver option `pdftex', (hyperref)                because pdfTeX in PDF mode is not detected.  See the hyperref package documentation for explanation.   Now my first latex line  \documentclass[10pt, a4paper]{moderncv}   Any clues ? Short story set in the near future where all wars are settled on the moon using automated machines? Plot Details/Summary  Another one where I have only sketchy memories of the tale, I fear.   The setting for this one is the near future (from the writer's perspective, which I think was the 1970s).  Man's reached a point where bloodshed and loss of life are no longer necessary to settle conflicts.  Instead, all disputes are settled through an annual combat held on the surface of the moon, using the best combat machines each nation can come up with.  The protagonist, as I recall, is an engineer for the Americans.  He recollects past conflicts, and the circumstances for this years fracas.  Much of the combat is told from his observers' perspective.  The actual conflict is a rather clever affair, with a description of each team's designs and all the tricks and gee-whiz things they built into them.  The protagonist's team manages to prevail, when they managed to use an attack as a feint, with the real attack being a swarm of microscopic machines (they did not use the term nanites) that destroyed the opposing machine from the inside.  Timeframe/Other Details  I think this one dates from the 1970s.  I don't think it more recent, given my recollections of when I read it, and also the technology descriptions they used in it.  There is an outside chance that the combat is not between rival nations, but rival corporations.  That would change the premise of "man evolving beyond bloodshed", of course.  I think it's nations fighting, though.  I am almost 100% certain this was in a sci-fi magazine, not an anthology. Is there a word for someone with the same name? If a person shares my name, in Dutch there is the word &quot;naamgenoot&quot;, meaning roughly 'member of the same name'.  John A: Hi, my name is &quot;John&quot;  John B: O, then we're insert solution word here!  Similarly,  'classmate' is 'klasgenoot' in Dutch 'roommate' is 'kamergenoot' in Dutch  I'm pretty sure I cannot call someone with the same name as mine a 'namemate' :)  Edit Because sceptics appear to be frustrated mightily by an apparent lack of research, there was  in chat, with no satisfactory conclusion. /Merriam Webster namesake appears to be linked to intentional name correspondance (being named after someone). There may be a US/UK English divide there.  &quot;I was named after my grandfather. I am his namesake.&quot; -   Also, the introduction seems to hint at much broader meaning:  &quot;Namesake is a term used to characterize a person, place, thing, quality, action, state, or idea that has the same, or a similar, name to another&quot;   Do you know of a better word/phrase to describe this succinctly? If $x\sqrt{1+y}+y\sqrt{1+x}=0$ find $y'$ Find $\frac{dy}{dx}$ if $x\sqrt{1+y}+y\sqrt{1+x}=0$ for $-1\leq x\leq 1$   My Attempt $$ x\sqrt{1+y}=-y\sqrt{1+x}\implies x^2(1+y)=y^2(1+x)\implies x^2+x^2y=y^2+xy^2\\ 2x+2xy+x^2\frac{dy}{dx}=2y\frac{dy}{dx}+y^2+2xy\frac{dy}{dx}\\ \frac{dy}{dx}\Big[ x^2-2y-2xy \Big]=y^2-2x-2xy\\ \frac{dy}{dx}=\frac{y^2-2x-2xy}{x^2-2y-2xy} $$ How do I proceed further and find the derivative ? A good title helps your question get the attention it deserves.  What goes into a good title? Prove that $\operatorname{rank}(A) + \operatorname{rank}(B) \ge \operatorname{rank}(A + B)$ Let $A,B$ be matrices $m\times n$ $(A, B \in M_{m\times n}(R))$. How can we prove that $$\operatorname{rank}(A+ B) \le \operatorname{rank}(A) + \operatorname{rank}(B)\ ?$$ How to filter by messages, not by conversation? I have been emailing my Gmail account error messages from a project I am working on.   I am trying to use Gmail filters/labels to sort out the class of errors.  But because the subject line is basically always the same even if I have a specific filter for 3 known error cases, the label is applied to the conversation, instead of the specific message.  Therefore, all the errors get all the filters.  I do not yet want to delete the errors, but would rather file them separately.   I have not yet used the NOT contains string yet, but that looks to be non-scalable as I get to the fourth or fifth error case I am done with handling.  Is there any option other than turning off Conversations for all my email?  (I guess I could use one of my spare accounts to turn off conversations and do the work there but would be nice to have such an option). In a question on "along" vs "alongside", I have seen this question and the correct answer on the web site makes me confused.      The question is: I enjoyed my walk _________________ the river.  a) along b) alongside  I selected "...along the river" as the correct answer, but on the web site it is shown as wrong and the correct answer is "alongside".  How can that be? I still do not agree, because I have studied the difference between the two. "along" is just the right preposition for thin and long places like road, path, street, beach etc".   So, why would the correct answer be "alongside" which simply means "next to"? Do you not think "along" seems to be better fitting?  Regards,  Note: I would be more than gratefull, if somebody show it to me in a video, like "a walk along the river" and "a walk alongside the river". Maybe I can understand the how "a walk along the river" and "a walk alongside the river" would take place. I have previously saved a copy of /var/lib/mysql/ddms directory ("ddms" is the schema name). Now I installed a new MySQL on a freshly installed Ubuntu 10.04.3 LTS by running apt-get install mysql-server, I believe version 5.1 was installed. After I copy the ddms directory under /var/lib/mysql, some of its tables work fine, these are the tables with an associated set of three files: a .frm file, a .MYD file and a .MYI file.  However, there are two tables with a different set of files: a .frm file and a .ibd file. These two tables didn't show up in the table list in phpMyAdmin. When I look at the error log, it says:  [ERROR] Cannot find or open table ddms/dictionary_item from the internal data dictionary of InnoDB though the .frm file for the table exists. Maybe you have deleted and recreated InnoDB data files but have forgotten to delete the corresponding .frm files of InnoDB tables, or you have moved .frm files to another database? or, the table contains indexes that this version of the engine doesn't support.   Please help with restoring these two tables. Thanks. Get last result in interactive Python shell Understanding psql prompts Do I have to pay taxes in the US if my online store sells to US customers even though I don't live in the US? I  own a website and I sell digital content. I'm a nonresident alien with the US. Most of my customers are US based so I was wondering will I have to pay any taxes to the US?  I have read that      For nonresidents, taxable income is separated into two categories:         Income that is effectively connected with a U.S. trade or business, after the deductions that are allowed, is subject to U.S. income tax   at graduated rates - the same rates that apply to U.S. citizens and   residents - or lower rates if the provisions of a tax treaty apply.   Income that is subject to U.S. income tax, for being U.S. source income, but that is not effectively connected with a U.S. trade or   business, is subject to a flat 30% tax      Is this true and do I belong to any of these categories?  If I form an LLC or C corp am I liable for this withholding tax?  My customers are based in the US and I believe all income is considered FDAP income according to the IRS:     Fixed, Determinable, Annual, or Periodical (FDAP) income is all   income, except:         Gains derived from the sale of real or personal property (including market discount and option premiums, but not including original issue   discount)   Items of income excluded from gross income, without regard to the U.S. or foreign status of the owner of the income, such as tax-exempt   municipal bond interest and qualified scholarship income      The thing is the IRS also says:     Effectively Connected Income, after allowable deductions, is taxed at   graduated rates. These are the same rates that apply to U.S. citizens   and residents. FDAP income generally consists of passive investment   income; however, in theory, it could consist of almost any sort of   income. FDAP income is taxed at a flat 30 percent (or lower treaty   rate) and no deductions are allowed against such income. Effectively   Connected Income should be reported on page one of Form 1040NR. FDAP   income should be reported on page four of Form 1040NR.   In the last quote, it’s like they say it only applies to passive income but if they feel like it, they can apply this to all income?? replace often used Tex-Literals ($ and $$) for math regions into \( or \) and \[ or \] Is there an editor or IDE (or a script) for substituting the TeX-Commands $ and $$ for opening and closing math regions into the corresponding LaTeX-Commands \(,\) and \[,\]? I'm sure there is a tool - and I'm searching for. I think, this will result in better readable code. A simple search and replace wont do that - but with regular expressions, that should not be problem. I simply do not want to invent the wheel a second time. I'm using post thumbnails to link to a page.  Is it possible to add a class name to the post thumbnail image.  &lt;li&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" &gt;&lt;?php the_post_thumbnail(); ?&gt;&lt;/a&gt;&lt;/li&gt; I've switched from Drupal 7.14 to 7.15 three weeks ago and therefore, I'm encountering a series of very sophisticated (for me) memory limit errors.  Those errors occur any time I'm trying to clear cache in performance or to run update scripts.  My hosting company has increased my memory limit in php.ini up to 126 M, 256 M, 512 M, and even 1024 M. But the errors still occur. I've migrated my site from shared to VPS, But the error incredibly still occurs. I have no way and no idea how to move forward.   Here are the errors:   Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 30 bytes) in /home/example/public_html/sites/all/modules/views/views.module on line 416 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 108 bytes) in /home/example/public_html/includes/menu.inc on line 2736 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 71 bytes) in /home/example/public_html/sites/all/modules/chain_menu_access/chain_menu_access.module on line 59 allocate 64 bytes) in /home/example/public_html/sites/all/modules/views/includes/base.inc on line 93 Convergent or divergent $\sum_{n=1}^{\infty} \frac{e^nn!}{n^n}$? Where does the "apply bonuses and penalties in the most beneficial order" rule come from, if it exists? I have seen quoted several places on the internet a rule that one can apply bonuses and penalties in the most beneficial order.  An example I come across frequently (as a druid) is the combination of Natural Bond and . Natural Bond increases your effective druid level for determining the stats of animal companions but cannot increase it beyond your character level. Choosing an alternative animal companion lowers your effective druid level for determining the same stats. The "most beneficial order" rule is used to justify applying the level penalty before the natural bond bonus in order to get around the character level cap on natural bond.  Does this rule actually exist? If so, where does this rule originate? I would like to be able to cite a reliable source for my GM. Implement ```-style (fenced) Markdown code blocks Currently, Stack Exchange’s Markdown parser only allows four-space indents to represent code blocks:      // some code     // another line of code    and other Markdown implementations allow for an alternative syntax, that doesn’t require indenting each code line:  ``` // some code // another line of code ```   This is much more convenient to type out. It would be super useful if Stack Exchange could support this syntax.    By extension, this syntax also allow you to specify the source language right after the opening ```:  ```js // some code // another line of code ```   …which would then enable syntax highlighting for that specific language. Although it’s interesting metadata, I don’t think this feature is needed on Stack Overflow, as the syntax highlighting library works pretty well for various languages.  So, even if you would allow this syntax but ignore the ```language, this would greatly improve my productivity on Stack Exchange.  What do you think?  The moderators are currently collecting feedback regarding this feature, so please post a comment with your thoughts. Good idea? Bad idea? Don’t really care? What do you think are the benefits/drawbacks? Experiences? Let them know! Thanks! I'm trying to understand the derivation of the equations for the logistic regression. I'm following the cs229 notes:    At some point in the derivation, in the notes we need to maximize the log-likelihood of the parameters:  ℓ(θ) = log L(θ) = y log h(x) + (1 - y) log(1-h(x))  In the notes, after the derivation we get:  $\frac{\partial}{\partial \theta_j}$ = (y $\frac 1 {h(x)}$ - (1 - y) $\frac 1 {1 - h(x)}$) $\frac{\partial}{\partial \theta_j}$h(x)  Shouldn't this be:  $\frac{\partial}{\partial \theta_j}$ = (y $\frac 1 {h(x)}$ + (1 - y) $\frac 1 {1 - h(x)}$) $\frac{\partial}{\partial \theta_j}$h(x)  I've been looking at this for a while and I can't see where this minus sign is coming from...  Thanks for your help!