Partial Differentiation without chain rule in Euler Lagrange Equations

The Euler-Lagrange equations for a bob attached to a spring are $$ \frac{\mathrm{d}}{\mathrm{d}t}\frac{\partial L}{\partial v} = \frac{\partial L}{\partial x} $$  But $v$ is a function of $x$. Is it or is it not. Because normal thinking says that $x$ is a function of $t$ and $v$ is a function of $t$ but it is not necessary that $v$ be a function of $x$. But mathematically \begin{align} x&=f(t) \\ t&=f^{-1}(x) \\  v &= g(t) \\ &=g(f^{-1} (x)).\end{align}  So  chain rule should be applied in the Euler Lagrange equations. Then why is it not? Is it because on applying the chain rule on $f^{-1}$ and on applying the chain rule on both the sides of the equation we will get the same result. If not then what is the reason for not applying the chain rule? Or is it that $v$ is not a function of $x$ but then $v$ is related to $x$. Where am I going wrong in a such a basic thing is puzzling me a lot.


Personal history of recently viewed questions?

Is there a way to view the list of questions I have recently viewed?  When just browsing the site, I will often look at new questions that I can't answer but am interesting in knowing what the answer is. If there isn't an good answer yet, I'll then browse on to other questions. The problem I run into is that sometimes it is hard to go back and find question after a few minutes or hours. I can also think of other use-cases where I would find this useful.  I know I can tag questions as favorites and locate them in my profile. At the risk of sounding  lazy, I find this to be too much work unless it is a question that I am really, really interested in.  It would be really handy if there was a way quickly see a list of last X (maybe 10) questions that I have viewed. For ease of access, it would be nice if this list was displayed in the side bar.   I don't see this functionality available, so I'm tagging this a feature request. If it already exists, I could use a nudge in the right direction on how to find it.


He is arguably the best actor of his generation   In the above sentence the adverb is placed just after "be" Can we use adverb after "be"? If we can use then please explain properly because I have studied that adverb can be used before adjective and adverb .


Probability of visiting all but one state

Suppose I have a circular markov chain. At each state, you are equiprobable to transition to the state immediately to your left or right.   I'm interested in the probability of visiting the jth state last?  That is to say, what is the probability of reaching all the other states at least once before the jth state?


What is the best way to store fresh herbs like parsley or cilantro?  I find I have about the same luck with them whether they are left in a plastic bag or I put them in a cup of water.


Why can't it work? Perpetual motion machine

Lets assume that the red ball is more dense than the white fluid and less dense than the blue fluid. The fluids are of very low viscosity and the machine can be of any height. The flaps open when pushed from the bottom and after the ball goes through then they close hermetically(some magnets perhaps).  My understanding is as follows:  The ball needs a finite velocity to open the flaps. Since H1, H2, can be of any height that is not a problem.  The ball needs a finite velocity to jump off the water high enough. That is not a problem since H3 can be of any height.  The ball needs a finite velocity to get into the water. That is not a problem since H1+H2+H3 can be of any height.  If it worked it would be a perpetuum mobile. Please help me find out why it won't work.


Sometimes the VLQ flag is not an option. Why?

This in particular:     Why is "Low Quality" not an option here, but it does appear on other questions?


How are vacant, unreserved Premium Tatkal seats alloted among passengers in the waiting list?

Does anyone know what happens to unreserved seats of Premium Tatkal. Like for a train in evening tomorrow, still 05 seats are left in 3AC against Premium Tatkal and Tatkal 3AC current status is 03 W/L while general quota waiting list is 12 W/L.  I want to ask, that after chart preparation, how will these 05 vacant seats be allotted among tatkal and waiting list/RAC?  Does anyone has any idea?


I have no hard drive am running UBUNTU 14.1 live from the USB thumb drive

If I download any Ubuntu add ons  such as ubuntu-restricted-extras package  where will they be stored? I am just using ubuntu to go online and view some windows Excel programs that I download ,alter and upload again to the cloud Ubuntu  works great for all of this I shut down the computer, no hard drive to infect I am often prompted to install addins for enclosed videos I am worried that they will be installed on and damage the Ubuntu Boot USB flash drive Do I need to Partition the Flash Drive? Add another flash drive? How will it know to install them there? Or is the computer's Ram enough to store them If so How? Thank You


C++11 Using Iterators for Vectors of Template Parameter Types

I have a template class which contains a vector of pointers of a type given as a template parameter. I want to be able to use range-based iteration to iterate over a limited portion of the vector. My class contains the following functions:  template< typename ObjectType > class ObjectList {      ...  public:      //! Begin iteration over a list of objects     std::vector<ObjectType*>::iterator begin();      //! Iterator to one past the end of the list of objects     std::vector<ObjectType*>::iterator end();  private:      std::vector<ObjectType*> object_ptrs; };   This fails to compile with the description Error C2061 syntax error: identifier 'iterator'. I can't think of any reason why std::vector<ObjectType>::iterator should ever not be found, unless ObjectType itself cannot be found, but the rest of the class instantiates successfully if I remove the lines which reference iterator.  Anyone have an idea what is going on? I'm sure it's possible I'm missing something obvious. Thanks in advance!


How to sum up values of each two rows across their line in linux


I recently looked at  and found some very useful information as to how to backup android without rooting your device. However, I can't seem to find out much information on how to restore your device without rooting once you've backed it up. The answers that do tell how to restore all assume that your device can successfully boot into Android, and not all of the answers refer to backing up Android OS itself, instead focusing on apps. I want to find a way to restore my OS because I'm going to be rooting my phone, and installing a lot of custom roms, and I want to make sure I can restore my phone before risking breaking it. Also, stop trying to mark this question as a duplicate, as I am trying to delete my duplicate question.


Count an integral with parameter $\int_0^1 \frac{\arctan(ax)}{x\sqrt{1-x^2}}$

Let $a>0$. Count $\int_0^1 \frac{\arctan(ax)}{x\sqrt{1-x^2}}$.   Can you show me how to prove it correctly that I can integrate the derivative of this function?


Is it possible to get into neuroscience PhD program without any research experience?

A little bit of background. I did my undergraduate degree in medicine i.e. MBBS. I was always inclined towards academia and research, so I went for masters in human anatomy from UK (it was a taught program). My thesis was on the neural pathways of fear and anxiety as a result I ended up reading so much besides neuroanatomy, which turned out to be in the realms of neuroscience.   Edited  Now I want to pursue PhD in neuroscience either in Canada or EU and most if not all of the PhD programs that I've looked into ask for some sort of research experience and knowledge about Matlab or Python. But the problem is I don't have any research experience and there is no research taking place in this field in my country let alone my city. As far as programming languages are concerned, I have just started learning Matlab on my own.   Here are my questions: What are the chances of getting into a neuroscience PhD program (specifically) without any research experience or should I go for MRes in neuroscience, gain some research experience and then apply for a PhD.


Interpretation of Mass Continuity Equation in MHD

I'm writing up my final-year dissertation and I'm required to give, as part of the introduction, an analysis of all the equations (and their terms) of which I use. Embarrassingly, whilst of course understanding  the principle of mass continuity, I'm not quite sure about the physical interpretation of each of the terms, $A$ and $B$.  $$\underbrace{\frac{\partial \rho}{\partial t}}_{\text{A}} + \underbrace{\nabla \cdot (\rho \textbf{v})}_{\text{B}} = 0$$  I mean, I know $A$ is the change in density w\r\t time and $B$ is the  divergence (flux density) of the density $\times$ the velocity, but I don't think that's quite enough, if you follow. Any help/guidance or reading resources would be greatly appreciated.


Continuity in Slices + Mapping Compact Sets to Compact Sets = Continuous

The following is a problem from Berkeley's Grad Prelims:  Let  $f:\mathbb R^2 \to \mathbb R$ satisfy   (i) Given any $x_0,y_0 \in \mathbb R$, $y \mapsto f(x_0,y)$ and $x \mapsto f(x,y_0)$ are continuous.  (ii) For each compact $K$, $f(K)$ is compact.    Prove $f$ is continuous.  Attempt:  Let $(x_n,y_n) \to (x,y)$. We wish to show $f((x_n,y_n)) \to f((x,y))$.  Sequential compactness gives us a subsequence $$f((x_{n_k},y_{n_k})) \to f((\tilde x, \tilde y)) \in f(K).$$  I'm un sure how to proceed to show (i) $f((\tilde x, \tilde y)) = f((x,y))$, and (ii) how the existence of such a subsequence and the slice continuity give convergence of the entire sequence.   Originally I had hoped that the slice continuity would make $\{f((x_n,y_n))\}$ cauchy, but that doesn't seem to be the case.    I'm looking for a small hint as to how to proceed. Please, no answers.


Guys, can someone give me a brief run through of how to change the background colour of a CEdit control at runtime? I want to be able to change the background to red if the field is zero length and the normal white otherwise.


The files on my PC's 2 drives have been altered by a virus; all files on both drives now have an extra extension of ".mbed"  Here you have a screenshot to get my point:   So what is the shortcut way for me to correct all these file extensions?


In the song "Planetes" by EGOIST, what is the Wabun code?

I think it is ,"Shu, I love you." Because Chelly is in the persona of Inori. But I realized there was more code not only in the beginning but in other parts of the song. I don't know if it's just me, so correct me if I'm wrong.


A number of years ago, I read a novel of a colony on a world that was covered by dense forest. The native people were human-like but had prehensile toes and lived in the forest canopy layer in villages that were a single tree that recognised them and would allow entry.  The natives bond with a semi-sentient "pet" that in a twist at the end turns out to actually be stage of a plant's lifecycle.  The humans are destroying forest for commercial gain and one of their ships crashs and is discovered by the natives who have a special bond with their "Home Tree" (no its not Avatar).    One other detail I remember is the fact that the planet's surface is extremely "hostile" and dangerous.   I am trying to find it again but can't remember the book or the author (I seem to recall he/she wrote some Star Trek stories as well)


How to prevent standard users from accessing other file directory in ubuntu -12-04 desktop?

I need to prevent/restrict  standard users from accessing directory like bin,boot,dev,etc,lib,media?


Is there a way to change the name of individual tabs in the default gnome terminal? ie one tab is "tab1", the next tab is "another_tab"  To be clear, I don't want to change the prompt, just the name of each tab. I thought of going with tmux but wanted to see if I can get away with something simpler since renaming is really all I need.


I am new to Ubuntu. I installed a Ubuntu a few days back. I downloaded a deb files. But i don't know how to install it. Can anyone tell me how to install a downloaded deb file?


I want to re-style the subscription center that exact target puts in every email. Are there ways to do this? I don't want to have to recode an entire sub center if the logic is the same as the one provided.  Thanks!


Environment variables when run with 'sudo'

As example to my question, my ~/.bashrc file contains this lines:  export LD_LIBRARY_PATH=/opt/intel/mkl/lib/ia32:$LD_LIBRARY_PATH export LD_PRELOAD=/opt/intel/mkl/lib/ia32/libmkl_core.so   so that Numpy (Python) could find libraries that it needs to run, as it's build with MKL and Intel compilers. This workflow isn't the best, but that's another story.  My question is how can I pass arbitrary variables (like those in ~/.bashrc) when I run program with 'sudo' (but not root)?  Currently, if I run:  sudo python -c "import numpy"   I get an error:  ImportError: libimf.so: cannot open shared object file: No such file or directory*   Some suggestions as sudo -i or sudo -E does not change anything here.    Edit:  I can't answer my question (not enough points :D ) but I'll comment here, in a hope that there are other Linux newbies wondering about sudo traps.  [Only temporarily!] This works for me (~/.bashrc):  alias sudo='sudo env PATH=$PATH VAR1=SOME_VALUE VAR2=SOME_VALUE...'


Auto add anchor text for links to Stack Overflow/Exchange sites

I think it would be useful if links to other Stack Overflow (and possibly Exchange network) questions and answers automatically had anchor text added to them, if the user doesn't add any themselves, in both posts and comments.  To illustrate, :    Wouldn't it be better, both for user experience as well as SEO, if the anchor text for that link was automatically set to this?:     See also    For posts, another benefit would be that there would be less need to revise them to add anchor text to links that have no anchor text.


If an edit that only adds or removes a tag should be closed as "Too Minor," why do we allow them?


Emails about non-Stack Overflow sites come from Stack Overflow

I get some emails from Stack Overflow that are about specific non-Stack Overflow sites, such as one. This was all checked on the email talked about : the email address is do-not-reply@stackoverflow.email, the name that shows in Gmail is "Stack Overflow", and the icon is the .  This is kind of weird. It should probably be changed some time either so that emails about non-Stack Overflow sites on the Stack Exchange Network are from either specific emails for the individual sites with their logos and names or they come from a general email for Stack Exchange with the .    This could be good to avoid confusing new users; if someone never used Stack Overflow and only used other Stack Exchange sites they could likely be quite confused due maybe not having any idea what Stack Overflow is and/or not knowing that it is part of the same company.  If they came from different emails for each Stack Exchange site, then it might make it easier to keep track of them, such as marking some sites' emails as important and others as not important.


Georeferencing scanned map using ArcMap?

Using ArcMap 9.3, I want to georeference a scanned map of Sudan (Africa) as .jpg file format,coordinate points are marked on scanned map in 4 degree intervals. I am not familiar to georeferencing in ArcMap.   So looking for a detail guide line for georeferencing in ArcMap (using 4 control points) and also looking for a guide line to edit the spatial reference in base map with the suitable PCS information for the AOI.


"Any' or 'every': Which one should I use in the following sentences?  1- I am against everyone/anyone who hates people based on their skin colour and religion.  2- He loves me more than anyone else/everyone else does.


In The Empire Strikes Back Yoda uses the Force to lift Luke's X-Wing out of the water and put it on land.  In Attack of the Clones and in many instances in the second series of The Clone Wars, Anakin (and others) use the Force to jump higher than they could otherwise, or to jump from very high locations, but I don't think I've ever seen the Force used for outright self-levitation.  But if Yoda could lift the X-Wing, shouldn't a strong Jedi be able to lift himself and, essentially, fly with the help of the Force?


Null Pointer Exception even after a check conditon

Here is the code: File tempFile = new File("myTempFile.txt"); tempFile.createNewFile(); File inputFile = new File("Friend_list.txt");  BufferedReader reader = new BufferedReader(new FileReader(inputFile));     String currentLine;  while((currentLine = reader.readLine()) != null) {     String trimmedLine;     trimmedLine = currentLine.trim(); }             In this part of the code, there is a NullPointerException. The exact exception is mentioned below: Exception in thread "main" java.lang.NullPointerException: Cannot invoke  "String.trim()" because "currentLine" is null at com.company.Main.delete(Main.java:167) at com.company.Main.main(Main.java:48)  The question is if the string is null then how could it enter the while loop? I cross checked the file, data is there in the file then how could it be null?


$(5n)!$ has $2014$ trailing zeros. What is $n$?


I'm making a randomizer that randomly clones 1 of the 9 units to all armorstands called "chunk". Inside every unit is an armor_stand called "Unit" and this is the command I used:  execute @e[type=armor_stand,name=chunk] ~ ~ ~ execute @r[type=armor_stand,name=Unit] ~ ~ ~ clone ~-3 ~-1 ~-3 ~3 ~5 ~3 ~ ~15 ~  What this does is, it clones a unit 15 blocks above itself but I want it to clone ~-3 ~15 ~-3 above every armor_stand called "chunk"  You can see a random unit is clone ~ ~15 ~ above the armor_stand calling unit. The armor_stand you can see is called "chunk".


Ubuntu Touch - which device HW? (OTG USB, CAMERA, WiFi, Call, SMS)

(just wanted to confirm)As of today, are these the only devices that are supported with Ubuntu Touch?   (1.1)   (1.2)    I am mainly looking for a hardware/ubuntu touch device which supports the below:  2.1 Supports Camera, Call, SMS, WiFi  2.2 Supports Skype and/or WhatsApp: Either of them  2.3 Supports OTG USB + Charging at the same time:the reason for this, I am planning to use this for running a zwave application via USB dongle, and at the same time, to be able to charge the phone.   Please let me know.  Many thanks.


How Can I Merge Multiple Directories into One

I have multiple files in multiple folders under one directory that need to be in one folder. Is there a command line that can help me accomplish this?


Definite article before name of languages

Should I use the definite article before name of languages?   (the?) Persian language (the?) German language (the?) Arabic language (the?) Russian language (the?) English language   Some language name may also refer to other things, so you need language word after their name.


I do recall a few instances throughout the series/books where they describe the armies of the White Walkers, but as far as I can recall I was under the impression that the vast majority would be comprised of wights, rather than White Walkers themselves.  Are there descriptions or discussions that take place that give any insight to how many actual WW there are?  We do see how one is made in the tv series, but with the age at which that occurs I am lead to believe there is either an age acceleration process that infants also undertake (they have all looked ancient as shown in the tv show) or they are taken somewhere to grow up and don't get enlisted in the army until they are 'of age', or something similar.


Present and future of bots on Stack Exchange

There are discussions on Meta already for some time now about the potential usage of bots on Stack Exchange (SE). The earliest I could find goes back to  , but there have been others , .  Here’s an  about having a bot that tries to answer “easy” questions. The scenario is that (almost) duplicate, simple questions are asked time after time, despite SE’s efforts to prevent this by listing related questions at posting time. This is where the bot could be of service: it could quickly retrieve and post an answer from a previous duplicate (or with smarter Artificial Intelligence - AI)  even from elsewhere on the web, like a user manual or a mailing list discussion). I imagine this might save some review time for moderators, and perhaps users would also enjoy not having to answer over and over again to the same question. Besides, answers would be very fast, which should make everyone happy if they are also of good quality.  This idea of “janitor” bots can have more use cases besides answering “easy” questions (see also discussion ), like suggesting missing tags and re-formatting what should have been code blocks, to name a few.  Yet, despite a long time since these discussions, better Machine Learning Classifiers (ML) and AI over the years, and   , it doesn’t seem that any such bots are among us (except maybe ). As part of a research project at the university, I am trying to understand why this is the case.  For this reason I’d like your opinion on the following:   Do you consider a bot “harmful” for the SE communities?   If yes, would you consider the bot harmful even if   it operates in an automatic manner only in limited scenarios (e.g. specific tags) it operates in a semi-automatic manner (namely with the supervision of a moderator who decides for posting or not the answer).  it operates only for a limited amount of time in a small community (e.g. here).   Would you consider it too risky to give a bot a try? Would you accept an answer provided by a bot?   If not, why ? (e.g. you don’t trust replies from machines)  Would you consider useless a “sloppy” answer by a bot, even if it is provided in just a few seconds? Answers may be not perfect, but they may link to other relevant threads that can help the asker to fix the problem without waiting extra time for a human response.


How to apply patch and require a module both at the same time through composer?

I am trying to install a module  on Drupal 9 site. CookiePro has no Drupal 9 release. But this  can make it work on  D9. Now confusion is that how do i install this module and patch both together. I tried lando composer require drupal/cookiepro and added the patch to extras --> patch section in composer.json. With both ways i am getting compatibility issue drupal/cookiepro 1.0.0 requires drupal/core ~8.0


Is it possible to force a query to ignore the server option "remote proc transaction promotion" so it doesn't promote remote proc transaction?

I have a specific query that executes a stored procedure on a remote linked server and inserts the results into a local temp table.  I don't want it to promote a remote procedure transaction but I can't re-configure the server.  Is there a query hint or some way to force it to not promote a remote procedure transactions?  Edit: The reason I ask is because I'm getting the following error when trying to execute my remote procedure call:     OLE DB provider "SQLNCLI11" for linked server "MyRemotelyLinkedServer" returned   message "The transaction manager has disabled its support for   remote/network transactions.". Msg 7391, Level 16, State 2, Procedure   spMyRemoteProcedure, Line 64 [Batch   Start Line 15] The operation could not be performed because OLE DB   provider "SQLNCLI11" for linked server "MyRemotelyLinkedServer" was unable to   begin a distributed transaction.   I know I can set "Enable Promotion of Distributed Transactions" to false on the Linked Server options to fix this, but I'm not allowed to make server option changes in this context, so I'm looking for a workaround.


About halfway through The Force Awakens, the First Order destroys a planet with the Starkiller base, and General Hux says something to the effect of it being the seat of the Republic. In the brief shot we got of people on the planet, the buildings kind of looked like those found on Coruscant in the prequel trilogies. Naturally, I assumed it was Coruscant, but my friend thought it was some planet that we'd never seen before.  I know that in Legends Continuity, the Republic had their seat of power on Coruscant (same as the pre-Empire Republic), but it's not clear if that carried over into Disney continuity or not. So did the First Order destroy Coruscant? Or was it some other planet?


How does formatting work in Windows?  Does it erase all the data on the drive to 0? What's the difference between fast format and normal format? If it doesn't set all the data in the drive to 0, how can I do that?


Should one merge training and testing sets when predicting a class of a new sample?

I have a binary dataset and I want to build a classifier. I understand that to monitor performance I need to split to training/test set and report accuracy or any other metrics that interest me on the test set. Now, I have a new example for which I do not know the label and I want to predict it using my classifier.  My question is: should I use the classifier that I built using the training set only or merge both training and test set, build a classifier based on all available data and then predict my new example while still reporting the accuracy based only on a the test set?


How do I allow placement of minecarts on powered rails in adventure mode?

I'm running Minecraft 1.15.2 on an Aternos server (free server website) and I'm trying to figure out how to allow players to place minecarts on rails while in adventure mode.    Does anyone happen to know the full command for that? Especially one that works on Aternos.


What's the natural lifespan of a Borg drone?

A Borg drone does use biological brain which can't be replaced, I think. Every machine including brain has a finite age.  For how long can a Borg drone live before dying naturally (death in battle is not natural). Does it depend upon the base species' lifespan? If yes, how long do human based Borg drones live? Or, are Borg drones immortals due to some kind of Borg tech?


Let $R$ be a commutative unital ring and let $M$ be an $R$-module and let $S$ be a multiplicative subset of $R$.  Today I proved both of the following: $$ S^{-1} R\otimes_R S^{-1}M \cong S^{-1} M$$ and $$ S^{-1} R \otimes M \cong S^{-1} M$$  Now I'm slightly confused.      Either my proofs are wrong or $C \otimes A \cong C \otimes B$ does not imply $A \cong B$. But I can't come up with an example. Can someone give me an example? (Or tell me that my proofs are wrong.)


Let $0 \to M' \xrightarrow{\alpha} M \xrightarrow{\beta} M'' \to 0$ be an exact sequence of $A$-modules. Then $M$ is Noetherian is equivalent to $M'$ and $M''$ are Noetherian.  For the ''$\Leftarrow$'' case:  I guess if we let $(L_n)_{n\geq 1}$ be an ascending chain of submodules of $M$, then $(\alpha ^{-1}(L_n))_{n\geq 1}$ is a chain in $M'$, and $(\beta(L_n))_{n\geq 1}$ is a chain in  $M''$. For large $n$ both these chains are stationary. Then why we know the chain $(L_n)$ is stationary?   Thanks!


How did Stack Overflow come to know about dummy upvotes?

I and my friend are both members of Stack Overflow.  I told my friend to vote me up.  He upvoted almost all of my questions and answers.  I got almost 150 upvotes.  On the next day, when I visited Stack Overflow, I found my reputation as it had been before the upvotes.  How does Stack Overflow identify, differentiate, and track dummy/unnecessary upvotes?


Is it legal to use has in the following question?     Would you tell me please whether either my friend Joey or me has to visit the manager tomorrow?   Or, instead, should I use have rather than has?


Test of equality of means if the data is from poisson distribution

Suppose I have a data from Center A and Center B. I record the number of arrivals per hour(0,1,2,3,4,5) for center A and center B. I need to test whether the means from two centers are equal. My data has three columns. First column is Number of arrivals per hour, second column is center A frequency and last column is center B frequency. I also assume that the distribution of arrivals at both centers are Poisson.  Can I use a z test in this case?


i have been running around in circles with this situation, i already tried all the answers that i found in stackoverflow and tried to use linkify aswell but with no success, can't make it work and i would rather NOT have to use any Javascript libraries, jquery, mootools etc...  So here is what i am trying to achieve;  I have a comment section for each of my posts and i want that each time a user posts a url in his comment:
 Nice, here is the respective link that you were asking for: www.linkforanywebsite.com
   turns into this:
 Nice, here is the respective link that you were asking for: www.linkforanywebsite.com
   Any guide/jsfiddle working example are very appreciated  Thank you for your time and help!


Prove homotopic attaching maps give homotopy equivalent spaces by attaching a cell

Prove: If $f,g:S^{n-1} \to X$ are homotopic maps, then $X\sqcup_fD^n$ and $X\sqcup_gD^n$ are homotopy equivalent.   I think it can be proved by showing they are both deformation retracts of $X\sqcup_H(D^n\times I)$ where $H$ is the homotopy between $f$ and $g$.  However, I have difficult in proving that the deformation retracts are continuous map. In fact, I have difficulty in representing a map in quotient spaces like $X\sqcup_fD^n$. I think a map from $X\sqcup_fD^n$ to $W$ can be represented by two maps: $m_1: X\to W$, $m_2: D^n\to W$, where for $x\in S^{n-1}$, $m_1\circ f(x)=m_2\circ i(x)$.  Then I construct the deformation retract this way: $m_1: X\to X$. For $x\in H(S^{n-1},t)$, $m_1(x)=H(S^{n-1},0)$, otherwise $m_1(x)=x$.  $m_2: D^n\times I\to D^n\times {0}$: $m_2((D^n,t))=(D^n,0)$.  It is easy to verify that $m_1$ and $m_2$ define a map from $X\sqcup_H(D^n\times I)$ to $X\sqcup_fD^n$. As long as this is a continous map, obvioulsy then we find a deformation retract. But it seems such a map is not continous?


Android Quality Assurance Tool for Android

As a part of my class project I need to implement UI testing and QA testing on my sample android app which I have developed in Eclipse a while ago.  I am thinking to run the Robotium as part of UI automation test. And I am implementing the JUnit for unit test cases.  I am stuck up with tools for QA testing. Can some one suggest me the tools for QA testing in Android.  Thanks.


Responsively replacing ' in strings with sql

I am making a simple thing to use my php knowledge and learn it and its working so far but i run into a problem when ever the string has ' in it. I get why it's doing it and i know there are ways to do it but i can't find a specific answer to this question.   <?php if (isset($_POST['submit'])){     $title = $_POST['title'];     $text = $_POST['text'];     $connection = mysqli_connect('localhost','root','','blog');     if (strpos($text,"\'") !== false){         str_replace("\'","\'",$text);     }     $query = "INSERT INTO `posts`(`title`, `text`) VALUES ('".$title."', '".$text."')";     $result = mysqli_query($connection,$query);     if (!$result){         die("error" . mysqli_error($connection));     } else {         header("Location:http://localhost/blog-testing/");         die();     } }   How can i make it automatically find ' and fix it so it doesn't mess up the string?


I'm trying to write a document that will contain characters in many different scripts (for which I am using fontspec and rendering with xelatex) and IPA symbols (for which I am using TIPA). Ordinarily, this works fine, however, I want to use slshape for my IPA symbols. If I take the manual's advice and use  \textipa{\slshape f@"nEtIks}   Or  \textipa{\textsl{f@"nEtIks}}   It fails with fontspec loaded. The document renders properly, but the IPA symbols appear upright. If I remove fontspec, then this works correctly, with the IPA symbols slanted. I tried getting fontspec to use tipasl12, but I could not find a way of allowing fontspec to use the font. However I named it, fontspec could not find the font.  This is the LaTeX I have which produces the correct IPA symbols, but they appear upright:  \documentclass[12pt,openany]{book} \pagestyle{plain} \usepackage[margin=1.8cm]{geometry} \geometry{a4paper} \usepackage[parfill]{parskip} \usepackage{amsmath} \usepackage{amssymb} \usepackage{fontspec,xltxtra,xunicode} \newfontfamily{\AR}[Script=Arabic]{Scheherazade} \usepackage{tipa}  \begin{document}    \textipa{\slshape f@"nEtIks}  \end{document}   The following, however, works perfectly, but - obviously - would not allow me to use Arabic characters:  \documentclass[12pt,openany]{book} \pagestyle{plain} \usepackage[margin=1.8cm]{geometry} \geometry{a4paper} \usepackage[parfill]{parskip} \usepackage{amsmath} \usepackage{amssymb} %\usepackage{fontspec,xltxtra,xunicode} %\newfontfamily{\AR}[Script=Arabic]{Scheherazade} \usepackage{tipa}  \begin{document}    \textipa{\slshape f@"nEtIks}  \end{document}


Is there a reason why, Tony didn't think of using this in "Avengers: Endgame"?

In Spider-Man: Far From Home, we see that Tony Stark      has left behind an augmented reality security, defense and artificial tactical intelligence system for Peter, called E.D.I.T.H (Even Dead, I'm The Hero).   And as we see further in the movie, quoting from ,      [E.D.I.T.H] allows the user full access to the entire Stark satellite network, which comes with several hundred tactical drones.   Following , it can be assumed that E.D.I.T.H was probably       developed by Stark during the five years time after the snap. The drone network could have been also put in place during the same time as well (otherwise, when could he?).   Considering this, is there a reason why, in Avengers: Endgame Tony didn't think of using      the drone network during the final battle at the Avengers HQ against Thanos and his army?


What's the name of the fallacy for using "localised" examples to suggest a "systemic" problem?

For e.g   "All Muslims are terrorists, that muslim guy knifed that girl in London last month"  "All white men have privilege, just look at any senior level boardroom"  (not the same as the fallacy for associating a group with the actions of a few)


Adding intermediate contour values automatically in QGIS?

We have 100's of elevation contour shapefiles. In each file, only the 10th contour line has values (200, 450, 700, etc..). We have to attribute values for all the intermediate contour lines (2nd line to 9th, 11th to 19th, etc..). While searching for a solution, happened to see this (link below). ArcGIS CalcContour script(as mentioned in the link) will only work in ArcGIS 9.3. So I couldn't even test the script. Please check the "Limitations script CalcContour" note in this link    The script will work like (from what I can see from the YouTube video - link below) we have to snap a point on a contour line and have to draw a line. Finish the editing and enter the increment values. The intermediate lines between the starting and ending point will get the respective values. I've attached a screenshot of that video      Is it possible to do the same or any plugin available for this kind of work in QGIS ?  This is not duplicate of   Our intermediate contour doesn't have any values. And we don't have to interpolate any new contour. We have to just assign the respective values for the contours which are plotted. We know the values for, eg: 200m & 450m contour which will be 1st and 10th line.


Can I ask to be assigned to another project, if the ones I'm on seem unsuccessful?

I'm doing my MSc. in Computational Mathematics in Central Europe. Right after finishing my Bachelor's degree I began to work in our National Supercomputing Center, a research institute that is associated with the university where I'm studying. It is considered quite a prestigious position in my country. Because of this offer I quit my job in the industry.  At first, I was enthusiastic about the research topic and after several months I was assigned to the second project (completely different from the first one).  This job began to consume almost all my time, so I gave up all my free-time activities and devoted myself just to this research. Because of the amount of work here I got into some serious problems with school projects and exams, but, so far, I managed to pass them.  In the first project my job is the implementation of some direct solvers, but some time ago we found out, that the technology used in the implementation is not suitable to our problem at all, so this solver will be useful just in some special cases, or possibly, it'll be unusable at all.  The second project appeared well - we managed to write some papers and tried to publish them. This week I found out that all of them were rejected.  Now I feel terribly disappointed and inferior to the others. All my colleagues have some publications, because, their other projects are usually successful. I'm working on two projects, where both of them are now just a waste of time for me, because I'm not going to have even one publication from them.  Normally I would try to discuss this with our team leader, but, to be honest, I'm scared to do that. He's not very sympathetic to the fact I'm still studying nor to the fact I'm there just for part-time job, so I shouldn't be working this much. I'm afraid he'll simply tell me, that in my position I should be glad to be working there at all, or something like that.  I'm not asking about some "improvement" of my personal feelings, as in  - I'd rather like to know, if it's a common situation and if I can ask to be assigned to another research topic (I have no prior experience with research, so I don't know if it's considered impolite etc.).


win10 some sort of weather msn app starting up, not showing in taskmanager or installed apps

I'd appreciate any help you can give.  I'm running Win 10 Home build 19041.1052. Recently a new app has mysteriously appeared.  It looks like the MSN taskbar app, which I don't have installed on my system. See attached jpg of weather and task manager.  Notice there's no "MSN" app listed in the task manager.  2 questions:  how do I find this app? how do I permanently uninstall it?  Malwarebytes and AVG say nothing's wrong, but I still don't trust the widget/app/whatever, especially since it doesn't show as any type of installed application.


Javascript appended data not working function

Sorry my bad English ı append new data using ajax like this  Comment..   and javascript is   $(function(){     $(".commentbuton").click(function() { ...   but its not working on new appended data please help thanks.


The quotient of a free group, of rank $n$, and its commutator subgroup is isomorphic to $\mathbb{Z}^n$

Let $F$ be a free group of rank $n$. Let $G$ be the commutator subgroup of $F$. I need prove that $F/G\cong\mathbb{Z}^n$.  I have tried with the isomorphism theorem: With $\varphi$, I send the $x_i$ element in the basis of $F$ to the vector with $1$ in the i-th entree and $0$ in the others, in $\mathbb{Z}^n$. But I can't prove that $ker\varphi\subseteq G$. Any help.


Express $x^8-x$ as a product of irreducibles in $\Bbb Z_2[x]$.  Work so far:  $$x^8 - x = x(x^7 - 1) = x(x - 1)(x^6+x^5+x^4+x^3+x^2+x+1)$$  From here, I think the Zeros of an Irreducible over a splitting field Theorem would be the method. I am unsure how to proceed


Greedy algorithm not working properly and will print numbers incorrectly

I am trying to learn how to code and I have been stuck on my greedy algorithm for hours. My greedy algorithm is not outputting numbers correctly for example .41 will output 3 instead of 4. #include <stdio.h> #include <math.h> int main(void) {     float cents;     int coinsused=0;     do{         cents=get_float("Change Owed: " );     }     while (cents<0.00);          for(float quarter=0.25; cents>=quarter; cents-=quarter){         coinsused++;     }     for(float dime=0.10; cents>=dime; cents-=dime){         coinsused++;     }     for(float nickle=0.05; cents>=nickle; cents-=nickle){         coinsused++;     }     for (float penny=0.01; cents>=penny; cents-=penny){         coinsused++;     }     printf("%i\n",coinsused); }


How to change `ibus` keyboard layout in XFCE?

I'm running Lubuntu 16.04, but I've installed xubuntu-desktop and I mostly use that desktop environment.   I needed a phonetic Tamil keyboard layout,  so for that I had to install something called ibus. Ibus works, but now that I've set it as the manager of keyboard layouts, I can no longer figure out how to switch between layouts when in XFCE.  The keyboard layout switcher in the panel worked before,  but it does nothing now that I've activated ibus.  The only way I've found to switch is to log out., log into Lubuntu desktop,  change the layout,  log out again,  and then log into XFCE again.  That's quite inconvenient,  though,  when I'm alternating between typing in different languages.   How can I switch in a more convenient way while staying in XFCE?


Reduce Resale Value to Avoid Theft? (Uglify)

"Uglify your bike" was mentioned  as a theft deterrent.  I have a 20102009 Canondale F3 and I'm thinking about locking it up in Manhattan from time to time. I think that Uglifying will help.    How should one best uglify a bike? How would you do this without disassembling the bike? Would spray paint stick to the current paintjob, or would I need to use paint remover or to sand the current paint off? What about the components? I don't want to ruin the bike in the process of trying to keep it, but I would prefer not to remove all components and cables, etc.  Note: I know that having another beater bike  are great, but I'm trying to figure out how to ride my bike and keep it from being stolen (or even looked at).  Edit: I've removed a part on "Does anyone have any evidence that uglyfying does or does not work..."  It's now .


I want to get from Germany to the US, what country can I quarantine in?

I'm in Germany and I need to get to the US. Since I'm not a US citizen or permanent resident, I can't travel directly because of the covid-19 travel ban. I want to find a country that  Isn't covered by the US travel ban, i.e. isn't listed at  Allows travel from Germany Has active air travel from Germany and to the US right now.  Does anyone know if such a country exists? Is there a list of different countries' travel restrictions that could help me find out? Alternatively, is there a way to spend 14 days at sea and then enter the US?


Why didn't Dumbledore modify the Dursleys' memories so that they wouldn't hurt Harry so much?

In the books it is mentioned many times that Harry has to live at the Dursleys' because of the protection charm but was all the hardship he went through during his years of living with them necessary as well? In the HBP, Dumbledore clearly criticizes the Dursleys for how they treated Harry but why didn't he try to modify their memories to really forget about Harry's true identity and maybe love him as a nephew?


Traveling to China transfer in Hong Kong. Do I need a HK transit visa?

I'm an Iranian citizen planning to go to China from Europe. I already have the visa for China. I will go through HK to Hangzhou and then will return from Tokyo again through HK to Europe. Do I need a transit visa for Hong Kong?


I generated a grid with 300m spacing but the ids generated from top to bottom in sequential oder. How could I get in horizontal from left to right sequence.


How to give select privileges to database in postgreSQL

How can we give select access at database level in postgreSQL.   At present I had created new user with select access on all tables in a schema using below syntax.   grant select on all tables in schema public to readonly;   But again if any new table gets created, the user readonly is not able to access the newly created table. I need to again execute the same syntax for giving access.  Is there any generic way, where we can give select privilege at database level just like MySQL. So that if any new table is created, the new table will be accessed by user automatically.


Number of possible keys in a Play fair cipher

So for the play fair case, the number of possible keys is : 26x26 = 676 possible keys  But if we consider the repeated letters, how many unique keys will the play fair have? I mean how will considering the redundant letters affect the number of possible keys?


What would the Doctor be if he wasn't a Time Lord?

In the episode Listen, when the TARDIS lands on Gallifrey, Clara overhears a conversation between two people and one says:     well he's not going to the academy , is he, that boy. He'll never make a time lord.    So I was wondering what would the Doctor be if he didn't become a Time Lord. I confess I'm not the most avid Doctor Who viewer and I haven't seen the earlier seasons so if this is a stupid question then I apologise. However, I would still like to know what a person from Gallifrey is called who isn't a Time Lord.


When does the SQLite engine actually release memory buffer returned by sqlite3_column_blob()?

I am wondering what is the lifetime of the buffer returned by sqlite3_column_blob(). The SQLite document says: "The memory space used to hold strings and BLOBs is freed automatically". When does it occur, what is the trigger? If I have only one row table - can I assume that the buffer returned will be alive till closing the DB, in the case I am not performing any other reading/writing to this table?


\bibstring{in} changes case in a strange way, is this a bug?

I've found some odd behavior of \bibstring{in}.  In this example, the first "in" ("in: Procedia Computer Science") is lower case, and the second is upper case ("In: Houston J. Math").  This behavior is not desired, and I have found a way to turn it off.  However, the MWE reveals what seems to my mind to be a bug in \bibstring{in}.  My guess is that the case changes because the last word in the first title is all-caps ("STEM").  But I could be wrong and am not sure where to find the defined behavior of \bibstring{in}.  I have pointedo out a workaround (insist on using capitalized verision all the time). % arara: xelatex % arara: biber % arara: xelatex % arara: xelatex \documentclass[preview]{standalone} \usepackage{biblatex} % \renewbibmacro{in:}{\printtext{In\intitlepunct}}  %% Uncomment this line to fix % \renewbibmacro{in:}{\printtext{\bibstring{in}\intitlepunct}}  %% this line doesn't work \usepackage{filecontents} \begin{filecontents}{example.bib} @article{Kohlhase2011598, title={The {P}lanetary {S}ystem: {W}eb 3.0 \& {A}ctive {D}ocuments for {S}{T}{E}{M}}, journal={Procedia Computer Science}, volume={4}, pages={598--607}, year={2011}, note={Proceedings of the International Conference on Computational Science, ICCS 2011}, issn={1877-0509}, url={http://www.sciencedirect.com/science/article/pii/S1877050911001219}, author={Kohlhase, M. and Corneli, J. and David, C. and Ginev, D. and Jucovschi, C. and Kohlhase, A. and Lange, C. and Matican, B. and Mirea, S. and Zholudev, V.}, addendum = {{\textbf{CORE: A}}; {\textbf{Google Scholar citations: 46}}}, }  @article{corneli2008double, title={Double bubbles in Gauss space and spheres}, author={Corneli, Joe and Corwin, Ivan and Hurder, Stephanie and Sesum, Vojislav and Xu, Ya and Adams, Elizabeth and Davis, Diana and Lee, Michelle and Visocchi, R and Hoffman, Neil}, journal={Houston J. Math}, volume={34}, number={1}, pages={181--204}, year={2008}, url={http://www.math.brown.edu/~diana/math/DoubleBubbles.pdf}, addendum = {{\textbf{Google Scholar citations: 16}}}, } \end{filecontents} \addbibresource{example.bib} \begin{document} \begin{itemize} \item \fullcite{Kohlhase2011598} \item \fullcite{corneli2008double} \end{itemize} \end{document}  To sum up I'm surprised that \bibstring{in} would change case depending on surrounding context.  Is this a bug?


What's the motivation for Runge-Kutta methods?

Recently, I have been taking a course on ODEs and learning Runge-Kutta methods. To be specific, the 4th order Runge-Kutta method on solving initial value problems. My instructor and the textbook told me the formula but didn't say anything about the thoughts behind the method. I wrote some code and found that the Runge-Kutta method does perform better than the Euler method, but I can't understand why. Is anyone willing to give me a hand on how to get the formula of Runge-Kutta? Thanks!


I am very new to Illustrator. I've created a text only logo and exported it as a png. When I try to insert it as my email signature it becomes pixelated. How can I export it so it will not lose quality regardless of how small or large i need it to be. (I will also use it for letterhead, business cards and website).  Any help anyone could provide would be much appreciated!! thanks in advance.


Prove that the polynomial $X^q-2$ is irreducible in the ring $\Bbb Q(\sqrt[p]{2})[X]$  What method i can use for proving, that this polynomial is irreducible in this specific ring?


It is known that a semigroup with left identity element and left invertibility is a group.  I noticed that I can make an unnamed group-like structure with some tweaks. I call a semigroup $\langle G,*\rangle$ a demimonoid iff:   There exists a unique right identity element.   Furthermore, I call a demimonoid a demigroup iff:   For every element in $G$, there exists a unique left inverse.   The key motivation is from that the "one-sided definition" of groups derive that the left identity is also the right identity by using left invertibility.  Note that uniqueness matters. A notable non-example of a demimonoid is the left zero semigroup:  $$ \begin{array}{l|ll} * & x & y \\ \hline x & x & x \\ y & y & y \end{array} $$  Every two-element demimonoid is a group. An example of a three-element demimonoid which is not a monoid (nor a demigroup) is:  $$ \begin{array}{l|ll} * & x & y & z \\ \hline x & x & x & x \\ y & y & y & y \\ z & x & x & z \end{array} $$ where $z$ is the unique right identity element.  I see no example of a demigroup that is not a group. All three-element demigroup is a group, namely, the cyclic group. Is every demigroup a group? If not, what is the smallest demigroup which is not a group?


thmbox splits theorems in two pages and the option "nocut" produces many empty spaces in pages.

this is a follow up to the problem described .  I have the same problem and the proposed solution does not completely solve the problem. I mean, it does solve the problem but also creates another one. The new problem is that the theorems, lemmas and the rest are placed in such as way that they are not cut (of course), but this leaves then big empty spaces in many pages. So the problem is that, the problem described  does not seem to be fully resolved using the nocut option.   Do you any of you have a good idea on how to solve this?  Thanks!


android jsonObject Null Pointer Exception

I am new to JSON. I need help. My android studio keeps on telling me that my jsonobject is NULL. I can parse and display my jsonarray into a listview. But when i click the page where i displayed it, my app crashes.  Parser  class BgTask extends AsyncTask<Void, Void, String> {     String json_url;      @Override     protected void onPreExecute() {         json_url = "http://10.0.2.2/result/hehe.php";     }      @Override     protected String doInBackground(Void... params) {         try {             URL url = new URL(json_url);             HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();             InputStream inputstream = httpURLConnection.getInputStream();             BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputstream));             StringBuilder stringBuilder = new StringBuilder();             while ((JSON_STRING = bufferedReader.readLine()) != null) {                 stringBuilder.append(JSON_STRING + "\n");             }              bufferedReader.close();             inputstream.close();             httpURLConnection.disconnect();             return stringBuilder.toString().trim();          } catch (MalformedURLException e) {             e.printStackTrace();         } catch (IOException e) {             e.printStackTrace();         }          return null;     }      @Override     protected void onProgressUpdate(Void... values) {         super.onProgressUpdate(values);     }      @Override     protected void onPostExecute(String result) {         json_string = result;     } }  public void publishGame(View view) {     if(json_string == null)     {         Toast.makeText(getApplicationContext(), "Get Data First",Toast.LENGTH_SHORT).show();     }     else     {         Intent intent = new Intent(this, Games.class);         intent.putExtra("json_data", json_string);         startActivity(intent);     } }   } code that posts  Bundle intent=getIntent().getExtras();     if(intent !=null) {         json_string = intent.getString("json_data");          json_string = getIntent().getExtras().getString("json_data");     }   try {             jsonObject = new JSONObject(json_string);             jsonArray = jsonObject.getJSONArray("server_response");             int count = 0;             String team1, score1, team2, score2, Type;              while (count < jsonArray.length()) {                 JSONObject JO = jsonArray.getJSONObject(count);                 team1 = JO.getString("team1");                 score1 = JO.getString("score1");                 team2 = JO.getString("team2");                 score2 = JO.getString("score2");                 Type = JO.getString("Type");                 Downloader downloader = new Downloader(team1, score1, team2, score2, Type);                 gamesAdapter.add(downloader);                  count++;             }       } catch (JSONException e) {         e.printStackTrace();     }  }   The error pointing is here  try { jsonObject = new JSONObject(json_string);


I have about 600 images i need to resize. They are currently all different sizes and i need them to end up 2000x2000 pixels. I tried creating an action to resize them all, but i'm noticing they come out distorted. Images smaller than 2000px stretch to fit the page. Is there a way to keep the proportions of the image?


Travelling to the USA with a laptop that won't hold charge

I'm doing a round trip between the US and the UK with Delta, and intend to take my laptop. Unfortunately, the battery recently began to stop holding charge: when I plug in the charger and turn on my laptop, it works fine, but as soon as I remove or turn off the charger my laptop shuts down.   Will I still be able to take my laptop onto the plane in hand luggage and/or hold luggage?  The reason I ask is because I've been on domestic flights where they've required smartphones/tablets/laptops to be at least 20% charged when boarding.  is a somewhat old link regarding minimum charge of electronics on flights to the US.


Since  have already been earned by the time I'm writing this, and I think I found the perfect hat for my avatar already, why don't we start showing them off like ?  Post hats, hats, and more hats! Those that you're especially proud of, or that you simply look good in - all are welcome ;)


Can I salvage a project from a compromised server?

Our server was compromised last week.  The developer team I was working on hadn't been backing up our work or using GIT Hub, so everything that we've been working on is on the server.  I know that we need to rebuild the server.  I was wondering if there is anyway to salvage the project, or if we should delete our changes and start over.


How to change math function after closing "Add function surface"

When I choose to add Z or X, Y, Z function, "Add function surface" menu appears in the bottom-left corner. But once I click outside the object it disappears and I can no longer change the function. So how do I open that menu again to change the function or where can I find menu to redefine the function without adding new object whenever I want?


In a recent game the verbal component of 'Suggestion' came up. I had assumed that the verbal component was just me saying the words and was added to mechanically stop me from casting it in magical silence. This came up because I tried casting it on a PC while a another party member was near-by.  My questions are:   Did my character actually perform a chant before giving the suggestion? Would the victim's character notice on a successful saving throw? Would a bystander notice that a spell was being cast?


It is possible to do this:  alias tm=cd /opt/tomcat alias tmbin=tm/bin  $ tmbin $pwd    /opt/tomcat/bin   ??  I know that I can do:  alias tmbin=tm;cd bin


Entering Schengen state on single entry visa

I am from Pakistan and I have a single-entry Schengen visa issued by the Italian Embassy. My purpose of visit is tourism and I have purchased Euro train tickets to travel in the Schengen states for about 41 days, staying at different places.   Can I enter the Schengen area first in Berlin, Germany? My girlfriend's visa was issued visa by German Embassy and we want to travel together.


What's the general rule for when applying f(x) = x^2 introduces a "extraneous solution" to a equation?

For example consider the equation  $x = 3$  $\implies x^2 = 9  $  $\implies x = 3 \;or\; x = -3$  In this case an extraneous solution is introduced i.e. $ x = -3$  Now for this equation  $\sqrt x = 3 $  $\implies x = 9$  In this case, squaring both sides of the equation doesn't introduce an extraneous solution. I want to ask whats the difference between the first case and the second case and why sometimes squaring both sides can lead to an extraneous solution and why somtimes it doesn't.


PHP export û (u with circumflex) from MySQL utf8_general_ci: not working

I have a mysql table with a character stored as "û" (u with a circumflex). I am exporting this via php to csv. I have tried everyhting but just cant get û in the export file. I do see things like "?" or "È" and "Ã»".   Question: how can I properly export the data from mysql to a CSV file using PHP so I see "û" in the DB as "û" in the exported file?  Our php drill  mb_internal_encoding("UTF-8"); $list = $readConnection->fetchAll($query); $fp = fopen($file, 'w'); setlocale(LC_MONETARY, 'nl_NL');  # Loop over lines here $line = utf8_encode($db_row); fputcsv($fp, $line);   I have also tried adding a BOM fprintf($fp, chr(0xEF).chr(0xBB).chr(0xBF)); // set UTF 8 header, not working


Is there another way of saying "I lost my train of thought"?

I am an ESL learning and I use the idiom "I lost my train of thought" quite often. Recently, I think that it is sort of redundant to use it several times when I talk to my friends.  I am curious that is there any similar idiom or phrase that mean like "I lost my train of thought"?


Why does the projection matrix transform object points into a unit cube in computer graphics?

This semester I both took a computer vision and a computer graphics seminar. But only now before the exams I realize that there seems to be a fundamental difference between projection in both topics.   In computer vision we learned the math to map an object point from 3D to a plane using a 4x3 matrix, which seems logical to me:  |u|   |p_11 p_12 p_13 p_14|   |X| |v| = |p_21 p_22 p_23 p_24| x |Y| |w|   |p_31 p_32 p_33 p_34|   |Z|                               |1|   However in computer graphics one usually uses a 4x4-matrix. The very nice explanation on  has a picture depicting the outcome of said transformation: it depicts a unit-cube containing the transformed objects (distorted according to the projection).   But a unit-cube certainly isn't what is rendered on to the flat 2D screen. Is there something going on internally that just isn't mentioned? Why is this done?


Which is the Best and more reliable Free Vector Graphics Site?

Free Vectors graphics are really popular these days... the thing is that there are a bunch of site with lot of graphics which you don't know if you can trust. I've seen a lot of stolen and pirate stuff from paid microstock in those free sites. My question is which are the most trusted/reliable sites out there.  Thanks a lot!


Program to compare two files line by line

Is there a GUI-based program on Ubuntu that compares two files line by line and indicates where two lines do not match? If not, any console app that does the same thing?


justify-content: center is not working with grid

I am learning CSS grid. While practicing I got an issue. justify-content: center is not centering  section-3-nav div. Here is my code:   * {     margin: 0;     padding: 0;     box-sizing: border-box;     text-decoration: none;     list-style: none;     font-family: 'Roboto', sans-serif; } .container {     width: 85%;     margin: auto;     padding: 3rem 0; } .container > .constant {     display: grid;     justify-items: center; } .box-top-title > h1 {     font-weight: bold;     margin-top: 2rem; } .box-top-subtitle > p {     text-transform: uppercase;     color: #a8b9c0;     margin: 0.5rem 0;     font-size: 15px; } .box-top-hr > hr {     width: 250px;     background-color: #00c6bf;     border-width: 0;     height: 1.5px; } .section-3 {     background: #eff7fa;     width: 100%; } .section-3 > .container > .section-3-nav {     display: grid;     grid-template-columns: repeat(5, 1fr);     justify-content: center;     margin: 3rem 0;     width: 50%;     border: 1px solid black; } .section-3 > .container > .section-3-nav a {     transition: 0.5s; } .section-3 > .container > .section-3-nav a:hover {     background: #ff3150;     padding: 10px 20px;     border-radius: 15px;     color: white; }

We Make This

Prepare to be amazed

All

Design

Code

Photography

Apps

    Where is the problem with the code? Where to fix and what to fix? It will be very helpful for me if you help to solve the problem. Thank you.


invisible rectangles blocking upper left of screen

Since upgrading to Catalina (2016 Macbook Pro) a few weeks ago, every now and then I find there are "invisible rectangles" on on the screen where I can’t move my mouse. They're always [edit months later: not 100% always, actually] anchored to the top left, and could be on the primary or secondary monitor. They're varying widths and heights that don’t seem to correspond to any specific application windows. They don’t go away if you quit or hide applications. The usual width is anywhere from about 100 to 400px, and the height is anywhere from 200px to the full height of the screen. Theses things do disappear on their own sometimes, but disconnecting the external monitor doesn’t get rid of them — it just moves them the laptop screen, but usually with different proportions. They're always gone after a restart. I can’t seem to connect these to any specific app; like I said, they persist even if I quit all apps including utils that just run in the menu bar. Here’s a screen recording of me trying to move the mouse to the upper left corner, via regular moving and dragging a selection area:  I've tried looking in Activity Monitor when this is happening, but even with all the regular apps quit, there are still tons of system processes going on so it's hard to spot anything unusual. This look/sound like anything any of you have seen before?


C++ Variadic Template "multiple definitions"/"already defined" Issue

Having recently discovered templates, I've been trying to get a good grasp on them and came across a usage for them that I'd really like to implement; but having tried multiple things, I keep getting errors.  I'm trying to create a function that can take multiple types of parameters at once in any order.  (I'm using VS 2013.)  What I have right now is an "already defined" error (only when including tem.h in more than one file):  the exact first error (the rest are basically the same just for each test.. overload?):  Error  1   error LNK2005: "void __cdecl test<struct A>(struct A *)" (??$test@UA@@$$$V@@YAXPAUA@@@Z) already defined in main.obj    c:\Users\User\documents\visual studio 2013\Projects\TemplateTest\TemplateTest\foo.obj   TemplateTest   foo is just a .cpp file containing only: #include "tem.h"  tem.h:  #ifndef TEM_H #define TEM_H  struct A {};  struct B {};  #include <iostream>  template<typename First, typename... Rest> void test(First *t, Rest&&... args){     test(t);     test(std::forward<Rest>(args)...); }  template<> void test<A>(A *val){     std::cout << "Handled A" << std::endl; } template<> void test<B>(B *val){     std::cout << "Handled B" << std::endl; }  #endif   main.cpp:  #include <iostream> #include "tem.h"  int main(int argc, char *argv[]){     std::cout << "running test..." << std::endl;     A a;     B b;     test(&a, &b);     return 0; }   What am I missing that is causing this error?  Edit: Making each instance of test inline prevents the error, but I don't think that's really the best solution


I am  attempting to create following rule:     if Utiltiy (look up field) =  abc  then ONLY allow certain users to edit these date fields  date field1 and date field2. Following rule doesnt work..... ***i logged in as user NOT specified in the following rule i was able to edit the date  fields. The rule should only allow users specified below should be able to edit the date fields.  AND(     Utility__c = 'PREPA - PR',     OR(         ISCHANGED(Net_Meter_Agreement_Date__c),         ISCHANGED(Received_Date__c)     ),     $User.Id  <> "005E00000050ir2",     $User.Id  <> "005E0000006kdYD" )


Misplaced navigation bar and question title

It appears that on Server Fault and Super User, the navigation bar and question title have suddenly become misplaced. The same does not occur on SO and mSO, nor on any of the other SE sites I spot-checked.  This is being seen in both Chrome and Firefox and just began occurring within the last few minutes.      What it should look like:      While this was fixed for a few hours, it has returned as of 22:05.


What's the meaning of version numbering of Ubuntu?

What's the meaning of the numbering for different versions? Do they signify something?


Is there a faster way to level Speech in Skyrim?

There used to be a way to level Speech quick by talking to Ungrien in Riften and using the Persuade option many times, but it was patched. Is there any faster way of boosting Speech? I'm at 67 on Speech now.


Approximating a $\sigma$-algebra by a generating algebra

Theorem. Let $(X,\mathcal B,\mu)$ a finite measure space, where $\mu$ is a positive measure. Let $\mathcal A\subset \mathcal B$ an algebra generating $\cal B$. Then for all $B\in\cal B$ and $\varepsilon>0$, we can find $A\in\cal A$ such that $$\mu(A\Delta B)=\mu(A\cup B)-\mu(A\cap B)<\varepsilon.$$  I don't think there is a proof in this site. It's a useful result for several reasons:  We know what the algebra generated by a collection of sets is, but not what the generated $\sigma$-algebra is. The map $\rho\colon \cal B\times\cal B\to \Bbb R_+$, $\rho(A,A')=\mu(A\Delta A')$ gives a pseudo-metric on $\cal B$. This makes a link between generating for an algebra and dense for the pseudo-metric. We say that a $\sigma$-algebra is separable if it's generated by a countable class of sets. In this case, the algebra generated by this class is countable. An with the mentioned result, we can show that $L^p(\mu)$ is separable for $1\leq p<\infty$, which makes a link between the two notions. In ergodic theory, we have to test mixing conditions only an a generating algebra, not on all the $\sigma$-algebra.


I would really like some help to make a dodecahedron! That means i would like to make a "ball" form made entirely of pentagons.


I'm developing a web application which is quite information heavy. This means that every pixel available in the screen for display helps a lot, to avoid the UI looking too cluttered and to display relevant data.  I was wondering: which is the "common" screen resolution? Years ago it was something like 1024×768, but nowadays it must be something much higher. I can't rely on what I use as I'm a developer and I probably have bigger screens and resolution than the average Joe user.  So, where can I find the currently recommended resolution for webapps?


the question i have is more if a request for clarification from another question,  "can my employer track my home network usage on another computer if i connect using vpn?".   I work on a company owned desktop that uses a vpn to connect to work from my home, using my private internet connection.   My wife is off one day a week while i work. she plays on her own private laptop through out the day (not on vpn)... facebook, email, netflix; girly stuff, right.   My concern is that my employer can see what she is doing when she's enjoying her day off. thus causing a topic of conversation for me and my employer.   What i gather from the other q&a topic above is that; in layman's terms, the desktop work computer opens a rabbit hole (vpn) and the only things that fall down the rabbit hole are direct actions performed by the desktop on the vpn (such as browsing history/keystrokes), thus my wife can enjoy her day off to her hearts content and my employer cannot see what she is doing. Thus releasing my concerns that my employer will be asking me why i am watching Netflix all day and not working.   Is my assessment of the nature of vpn's correct? Sorry for breaking this down so ridiculously, not everyone provides a layman's answer unless they know they are working with a layman. Thanks in advance.  Add on: I do know the vpn is Cisco AnyConnect VPN Client version 2.5.2018. i sign to the VPN via the desktop. Not really sure if that makes a difference. I would assume that a router VPN would either be a new specialized router provided by the company (didn't get one) or something that would have to be installed via firmware.   I did look at the router settings and there are no entries within the "NAT -- Virtual Servers". i am not jumping to conclusions but there doesn't seem to be any other settings in the router that would lead me to believe that it would have firmware to support a VPN.


Google Analytics: How can I track between http:// and https:// profiles for a domain?

I'm trying to set up tracking on a project that I'm working on.   The main site is at http://www.example.com/  The order page is at https://www.example.com/index.php   Currently they have two different profiles under separate domains:     Main Site:   UA-aaaaaaaa-1   Order Site  UA-aaaaaaaa-2   This isn't giving me the results I want. When on the order page, I would like to see where on the main page users came from. Also, when on the main page I'd like to see when they navigate away to the order page, right now I can't tell the difference between an exit and order page click.  I'm not even getting the main site as a referrer to the order page.  What am I doing wrong? Should they be under one profile? Or two like I have them. Should I be setting the domain name (_setDomainName)? Should I be using _link() when linking to the order page. I can't find the right resource for what I need.


How to convert an special hex character from an html page in bash?

I have a script which process some information coming from a web page. I guess that because of the encoding of the page, some special characters are encoded in hexadecimal. For example, I have the the string "%2f" that should be translated to "/".  How can I, in bash, translate those special characters in hex to ASCII? Any ideas?


Is there a way to apply Apa 7th references and citation style in latex?

I was doing a research using apacite:   \usepackage[natbibapa]{apacite} \bibliographystyle{apacite}    The outcomes were good, but the APA manual is now at the 7th edition, and I need to know how can I do my references and citations with the APA 7th edition guidelines.


Is this an instance of 'deep copy' for a JavaScript object?

I have the following set up: fetch some documents from Mongo. If there is a 'gap' in the dates then compute dates and insert missing rows. An additional requirement is that if the most recent user entry is "Yes", then I should copy the object into each of the inserted rows, i.e. pre-fill some data. Here's a simple example of the object:  {   "section1": {},   "section2": {},   "section3": {},   "section4": {     "question1": "Y",     "question2": "N",     "question3": "true",     "question4": "false",     "question5": "05/15/2017"   },   "section5": {} }   So, if I understand things correctly, I can't simply do something like:  if(oldObj.section4.question1==="Y"){     newObj.section4 = oldObj.section4; //copy the enter sub object  }   JS copies 'by reference'. I need to deep copy oldObj.section4 entirely. It doesn't look like there is an simple way to do this. NPM has a  that I might take a look at. Any advice would be appreciated. Is this the correct approach?


$R$ is a ring. $\forall 0\ne a\in R \exists ! b\in R; aba=a$. Can I conclude that $R$ is a ring with identity? How?

$R$ is a ring, containing more than one element, such that   $\forall 0\ne a\in R \exists ! b\in R; aba=a$.  Here's what I did in the very first place: $(aba)a^{-1}=aa^-1 \text{ and } a^{-1}(aba)=a^{-1}a\Longrightarrow \left\{ \begin{array}{rl} ab=1 & \forall0\ne a\in R \exists !b\in R \\ ba=1 & \forall0\ne a\in R \exists !b\in R \end{array} \right.$ Therefore, since $ab\in R\Longrightarrow 1\in R$. So $R$ is a ring with identity.   But then I realized, how one can say $aa^{-1}=1$ when one doesn't know whether $R$ is a ring with identity.


Interrupting Skooma trade after previously clearing the cave

I have a big problem in Skyrim. I have a quest from Riften to interrupt the Skooma trade, but I already cleared the cave before accepting quest. Now when I go inside to interrupt trade, everything is already dead and I can't complete the quest.  How can I complete this quest if I have already killed the NPCs prior to accepting the quest?


How to Access ext3/ext4 (Ubuntu 14.04) Partition from Windows 10

I have recently installed Windows (10) on my Ubuntu (14.04) alongside after shrinking the root partition ( /dev/ubuntu-vg/root ) using GParted live (terminal) and rearranging the partitions using GParetd Partition Editor (GUI).  But now I cannot access root partition from Windows using Ext2Fsd. Here is my partition list.    /dev/ubuntu-vg/root is not in the Partition list and I think it is some where inside the /dev/sda5. Ext2Fsd identifies the file-system of this partition as RAW.  Please let me know if there is a way to access this Partition from Windows 10.


Remove Backup and Factory reset option from Settings app

I want to remove some features from my settings app (device is rooted)  I used adb shell pm disable 'com.android.settings/.Settings\$SecuritySettingsActivity' to disable security settings and it worked. However, I am unable to find the activity name to disable backup and factory reset option.   (I'm using LineageOS)  So far I have tried     adb shell pm disable 'com.android.settings/.BackupSettingsActivity'   and     adb shell pm disable 'com.android.settings/.Settings\$PrivacySettingsActivity'   Both of which did absolutely nothing. I am still able to open backup and reset option from settings.   When I try to launch the said activities     adb shell am start -n com.android.settings/.BackupSettingsActivity   It errors out at saying BAD COMPONENT  while these two commands open the back and reset activity that I want to disable     adb shell am start -a android.settings.BACKUP_AND_RESET_SETTINGS      adb shell am start -S 'com.android.settings/.Settings\$PrivacySettingsActivity'


I am playing through Omega Ruby and have recently found Nameless Cavern. I went in and encountered Mesprit. A few hours later I encountered Uxie. I captured both and encountered Azelf. I then dropped my 3ds and the game came out. Me, being forgetful, had not saved since halfway through the Delta Episode, which I had recently completed. I went back through and recovered most of my progress. However, upon entering Nameless Cavern, I discovered no response at the times Uxie and Azelf should appear. I reencountered and recaptured Mesprit, but I can't reencounter Uxie or Azelf for some reason. I have met all the friendship requirements, so why can't I fight them? Please respond as soon as you find this.


At what age is the Force detectable in children?

Training of  ranged between the ages of 4 and 8 but at what age was a Jedi able to feel a Force sensitive child? Is it from birth or at around 4 years?


I've upgraded my PC and now I cant see anything in material preview window.  PC Specs:  Processor: AMD FX(tm)-8320 Eight-Core 3.50 GHz Videocard: AMD Radeon R9 200 16GB RAM


How can I make the texture look like this?

I have to make texture like this and have no idea how to make it. I tried voronoi + brick and nothing makes it look like this.


I had a COC Account on my iPad Mini. It was on level 40 with TH 7. It was connected to one Game Center email address (for iOS Device)  On my hubby's android phone he decided to create a new Account of COC attached to one Google account also. He was on level 6 I think, TH 2.  After that we decided to link the COC account to my iPad to his Android phone so he can still play it. Linked is successful, but the problem is we cannot open the latest COC account anymore (Level 6,TH2) through his Android phone, everytime we tried to open the COC the TH 7 with level 40 is being prompted, even though we signed into the Google account.  How can we retrieve that?? I believe we cannot unlink it anymore,but how can we retrieve the latest COC account?


"The closure of the unit ball of $C^1[0, 1]$ in $C[0, 1]$" and its compactness

[I really want to apologize if this problem looks a little too long.]  The problem :  This is taken from  and it says...     Prove or disprove the comapctness of the closure of the unit ball of $C^1[0, 1]$ in $C[0, 1]$.   What have I tried?  I think it's pretty clear that the unit ball in $C^1[0,1]$ is $B= \{f \in C^{1}[0,1]: \lVert f \rVert \leq 1\}$. Let us denote $K= \operatorname{cl}_{C[0,1]}(B)$, the closure of $B$ in $C[0,1]$.  I really didn't have much clue how to start working on this problem but finally thought about using the sequential approach. If $a$ and $b$ are two points such that $0<a<b<1$ then I think there can be functions $f_a$ and $f_b$ having the property that $\lVert f_a-f_b \rVert = 1$ which are sufficiently smooth to be in $C^1$.  Now as it is quite tedious to construct these functions explicitly, I scanned a hand-drawn picture of what I think they might look like.     Here $f_a$ and $f_b$ take zero values in almost all of the interval $[0,1]$ and jumps up at $a$ and $b$ respectively. Also, as is clear from the figure, they don't assume non-zero values simultaneously. Now, my argument is clear: however close the two points $a$ and $b$ come to each other (remaining distinct) there will always be functions like $f_a$ and $f_b$. They may get steeper and steeper but will never lose their $C^1$-ness.   So if I consider the sequence $(\frac{1}{n})$ in $[0,1]$, I will get a sequence $(f_{\frac{1}{n}})$ in $B (\subseteq K)$ where for $m \neq n$ we will have $\lVert f_{\frac{1}{m}} - f_{\frac{1}{n}}\rVert = 1$. Hence the sequence $(f_{\frac{1}{n}})$ cannot have a convergent subsequence, thereby proving that $K$ is not sequentally compact and hence not compact.  But I'm not very sure about all these. A friend of mine told me that this same problem has a positive answer and that made me sufficiently confused.  So, here comes my question...     In the above argument, where have I gone wrong?   What is the real answer? And how to prove it?   Thanks a million for reading my extra-long question. And thanks a zillion for any help that you can offer.


I have a Gun Mettle campaign coin and have currently done 3 contracts. Two right when it came out then a third yesterday. I think I read something stating two contracts will be available per week, but when (i.e. what day(s) of the week) do they refresh?


What regulations should a European driver know when driving in the US?

There are the obvious ones. The US has the keep-your-lane system, where as in Europe you are expected to keep to the right (left for UK) as long as possible.  On my latest travel to the US, I was confronted with the possibility to go through a red light if you turn right, unless it is explicitly not allowed.  What should a european driver know when driving in the US? What are the do's and don'ts compared to driving in Europe.


essentially the same question as this thread:   I intend to travel on a New Zealand passport from Auckland to Taiwan first, then to China, then back to Auckland. I'm aware the thread above was created in 2012 and I am wondering if the "it will be fine" view is still true for 2019.


Dividing each edge of a polygon into one-thirds

Begin with an equilateral triangle. Divide each edge into $3$ equal parts and cut off the corners. Continue this procedure indefinitely. Does this create a regular polygon at each stage?  I don't think that it creates that.


My sound used to work as expected but after some small update all I find now is "Dummy output" as my output device. Below is the output of lspci -v | grep -A7 -i "audio"  00:1f.3 Multimedia audio controller: Intel Corporation Cannon Lake PCH cAVS (rev 10)     Subsystem: Dell Device 0949     Flags: bus master, fast devsel, latency 32, IRQ 16     Memory at a5518000 (64-bit, non-prefetchable) [size=16K]     Memory at a5200000 (64-bit, non-prefetchable) [size=1M]     Capabilities: <access denied>     Kernel driver in use: snd_soc_skl     Kernel modules: snd_hda_intel, snd_soc_skl, sof_pci_dev -- 01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)     Subsystem: Dell Device 0949     Flags: bus master, fast devsel, latency 0, IRQ 17     Memory at a3080000 (32-bit, non-prefetchable) [size=16K]     Capabilities: <access denied>     Kernel driver in use: snd_hda_intel     Kernel modules: snd_hda_intel   but when running alsamixer I can only see the second one there  also running lspci -knn | grep Audio -A3 doesn't show the first intel driver.  output:   01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10fa] (rev a1)     Subsystem: Dell Device [1028:0949]     Kernel driver in use: snd_hda_intel     Kernel modules: snd_hda_intel   sorry if my post isn't organized it's my first


When I try to render, the camera renders from the wrong position

So I am totally new to Blender and I work on blendergurus beginner series, as probably many who start with Blender. I tried to solve this now for a long time by myself but everything I read and tried did not work. Maybe you can help me :)  Somehow my camera is stuck at a weird position, if I want to render. I captured the behavior in the GIF below:   (Tried to embed the GIF,but imgur is rejecting the request ¯\_(シ)_/¯)  Here are some additional screenshots of my properties, render and camera:


Remove (XX.. rows affected) from SQLCMD output to file

Using SQLCMD with -o to file.  How to get rid of the (XX... rows affected) message at the end for a clean output?


Incorrect orientation of thumbnails in Nautilus ("Files") using 14.04

In Files 3.10.1 (formerly Nautilus) I display thumbnails when viewing a folder of images. If the orientation of some images is wrong (i.e. landscape format displaying as portrait, or vice versa) I rotate the image to correct the orientation, and save the file when I close it. Sometimes the corrected orientation is represented by the thumbnail, but sometimes the thumbnail remains incorrect.  I have deleted ~/.thumbnails/fail  I have run rm -r  ~/.thumbnails  I have refreshed using F5  There is another odd symptom, which may help explain the problem to someone. Suppose I have an image that appears as a thumbnail wrongly oriented, rotated 90 degrees clockwise. So I open and rotate the image 90 degree counter-clockwise to correct the orientation. The thumbnail still displays with the wrong orientation, but when I open the image using Files it is correctly oriented. If I open it in GIMP, however, it has the wrong orientation. It seems as if Files has not really rotated the image file, but knows that it should display it rotated when it opens the image. (But GIMP does not know that it should display it this way).


Search with Auto-Complete (like Gmail / Intellisense)

Hi,  Can we have a auto-complete feature for our search box, similar to Gmail's?  The Problem:   It's not easy to remember all the available search operators in the . There's no obvious direct link to go to the Search Options page. Newbie One only knows about it after reading the  page.   The Idea:  Example:   When we start typing click in the search box, a dropdown appears with list of operators stated in the . After we select/type an operator with colon (:), there should be a hint/list of possible values for that operator. When we start typing open square bracket ([) with a few letters, there should be a list of tags for us to choose from.   Sample mockup:     You can also think of it like Intellisense in Visual Studio / code-completion in some IDEs.   With this feature in place, I think the search functionality will be better than the major general search engines out there, as .  Note: The idea is not to make you type in your query faster. The idea is to let the (new) users know/remember such operators in a convenient way without the need to go to the Search Options page.  UPDATE: I included more info / idea here in response to Grace Notes's answer.


Safety when drilling walls in the house?

I'm currently fitting CCTV around my house which requires lots of drilling with a rather large bit (25mm).  My question is regarding safety when drilling as i don't want to hit any wiring and or water pipes. I know you can buy detectors, but from what I've read they seem pretty unreliable and pointless as they only work about an inch deep, especially with my house being old and the interior walls being brick rather than board.  How can i best stay safe in this situation? I need to drill several holes through the cavity and several on interior walls. So how best to do this and not hit wires/pipes?  Thanks in advance.


How to play videos in HD on youtube.com in Safari on iPhone 6

I just got my first iPhone. There’s an issue with connecting to the App Store, so I’m watching videos on youtube.com in Safari. I’ve noticed that the videos are low-res. I don’t see the setting to turn on HD video sources. (I’m connected to my WLAN.)  Is it not possible to view HD videos on YouTube in Safari?


How can I unhook this action that was added via $this?

This is in regards to the plugin , although the question may relate to any plugin. The author says he no longer uses the support forum, so I've come here.  I'm trying to unhook the following action, found in /modules/custom-passwords/custom-passwords.php on line 38.  class Theme_My_Login_Custom_Passwords extends Theme_My_Login_Abstract {    protected function load() {       add_action( 'register_form', array( &$this, 'password_fields' ) ); // Unhook This!       ...   Now I've tried a bunch of versions of the remove_action function, but none seem to work. Every time I have used remove_action before it has been with a variable, but TML is using the class directly.  I have tried the following in directly before the do_action('register_form') function call. None seem to work.  remove_action('register_form', array( Theme_My_Login, 'password_fields' ) );  remove_action('register_form', array( Theme_My_Login_Custom_Passwords, 'password_fields' ) );  // get_object() is a method of the original class, and returns the  // object which can be var_dump'd remove_action('register_form', array( Theme_My_Login::get_object(), 'password_fields' ) );   I know this is the action I need to remove, as I can comment it out within the plugin file and it solves the issue. But I don't want to edit the plugin file, obviously, because I want to keep the plugin updated.


Quickest way to let Google know a site no longer has SSL?

I've removed SSL from a website, permanently.   I would like Google (and other search engines) to pick this up ASAP as of course people will be seeing a warning/error in their browser when they click on the search engine result which still thinks my site is https://  Is there a way to tell Google and Bing that my site is no longer https://, other than simply submitting it for crawling again? Maybe some tool within their respective webmaster tools areas?  Thanks


How to prove triangle inequality for the metric $d(x,y)=\frac{2|x-y|}{\sqrt{\left(1+|x|^2\right)}+\sqrt{\left(1+|y|^2\right)}}$

How to prove triangle inequality for the metric $$d(x,y)=\frac{2|x-y|}{\sqrt{1+|x|^2}+\sqrt{1+|y|^2}},$$ for all $x,y\in \mathbb{C}?$


What allows tail recursion to work with one stack?

function tailrecsum(x, running_total=0) {     if (x===0) {         return running_total;     } else {         return tailrecsum(x-1, running_total+x);     } }   In this example, we see that the result will yield:  tailrecsum(5, 0) tailrecsum(4, 5) tailrecsum(3, 9) tailrecsum(2, 12) tailrecsum(1, 14) tailrecsum(0, 15) 15   In such a case, isn't there a new stack every time tailrecsum is called? And isn't tailrecsum(5, 0) waiting for the next tailrecsum to finish, hence not closing that stack yet?


I'm new here - computers are my thing, but I could use some electrics help. I have travelled to a small island where I will be for several months.  I managed to bring everything except one power adapter.  I do have something "similar" and want to ask if this will work before blowing myself up.  The power requirement on the device is 12V 1.5A positive center.  I have an adapter that works on local current. It's output is 12V 1A. (12VA). Any chance this will work?  And, just in case, which way is the diagram for positive center?  Many thanks


Question about baggage claim on international flight

I am traveling from Toronto to Ahmedabad via Chicago and Doha and same way back. I am traveling from Toronto to Chicago in Air Canada and in Qatar from Chicago to Doha to Ahmedabad. Same way back. How will the baggage claim, customs and immigration work? While coming back, do I have to get my luggage at Chicago airport, undergo customs, and take all the baggage with me on the train, change terminals, and re-check my luggage at the Air Canada counter, or do I not have to worry about my luggage and it gets automatically transferred?


I was wondering What is the different between Method and Function in JAVA?


Python-3 socket returns IP address as 127.0.1.1 instead of my local IP address

I used this piece of code to find my IP address using python: import socket ip = socket.gethostbyname(socket.gethostname()) print(ip)  But when it prints "127.0.1.1" instead of something like this "192.168.x.x" Why does the python-3 module socket return the IP address of my machine as "127.0.1.1" instead of the local IP address even if it is connected to the internet?


If  a battery has 100mA-hour rating will two batteries connected in series have also 100mA-hour rating but at double the voltage?


How do I determine which version of Python I'm using?

I'm using the MySQL Workbench to run MySQL 5.7 and I have Python installed.


Can I get the opposite of `diff -q` -- matching identical files without printing their contents

I have a number of files in a directory, and I want to check that they are all unique. For simplicity, let's say I have three files: foo.txt, bar.txt and baz.txt. If I run this loop, I will check them all against each other:  $ for f in ./*; do for i in ./*; do diff -q "$f" "$i"; done; done Files bar.txt and baz.txt differ Files bar.txt and foo.txt differ Files baz.txt and bar.txt differ Files baz.txt and foo.txt differ Files foo.txt and bar.txt differ Files foo.txt and baz.txt differ   For the hundreds of files I want to deal with, this would become pretty unreadable; it would be better to list the files that do match, and then I can look over the list quickly and make sure that files are only matching themselves. From the manpage, I would have thought that the -s option would accomplish this:  $ for f in ./*; do for i in ./*; do diff -s "$f" "$i"; done; done Files bar.txt and bar.txt are identical Files baz.txt and baz.txt are identical Files foo.txt and foo.txt are identical   ...however, in fact it also prints out the whole contents of any files that differ. Is there any way to suppress this behaviour, so I only get the behaviour above?  Alternatively, is there ?


Why is it that black holes emit Hawking radiation?

Black holes are basically neutron stars with such a gravitational force that even light cannot escape from it. But what causes it to emit ?


I have an NSDictionary (stored in a plist) that I'm basically using as an associative array (strings as keys and values).  I want to use the array of keys as part of my application, but I'd like them to be in a specific order (not really an order that I can write an algorithm to sort them into).  I could always store a separate array of the keys, but that seems kind of kludgey because I'd always have to update the keys of the dictionary as well as the values of the array, and make sure they always correspond.  Currently I just use [myDictionary allKeys], but obviously this returns them in an arbitrary, non-guaranteed order.  Is there a data structure in Objective-C that I'm missing?  Does anyone have any suggestions on how to more elegantly do this?


I've dual booted Windows 7 and Ubuntu on my computer and I'm having trouble uninstalling Ubuntu.  I don't remember how I installed it but I've ruled some things out.  Most tutorials tell me to delete the disk partition through disk management in Windows, but when I check there, there's only the Windows partition.  This makes me think that I installed using Wubi, but when I go to uninstall Ubuntu as a program, its not listed in the programs list.  Anyone have any ideas how to uninstall ubuntu from windows?


Problem with latest Nvidia drivers 375.39 and 378.13

My system updated the long lived branch Nvidia drivers to 375.39 yesterday. The problem is that now, when the computer goes to sleep, then wakes up, some windows are buggy:    The same happens with terminal windows. I tried the short lived branch latest drivers, the 378.13, it is the same problem. What can I do ?  Update: Now the drivers 375.39 are the official Nvidia drivers available from the Ubuntu repository, yet the bug evoked above is still there.


How do I display list of items horizontally on a list View, using WPF?

I tried replacing the StackPanel inside with a Wrap Panel, Nothing Worked. Even tried Wrapping everything with a wrap-panel, still no difference.  This is my code.    <ListView Grid.Row="1" x:Name="MyListView" ItemsSource="{Binding Games}">             <ListView.ItemTemplate>                 <DataTemplate>                             <StackPanel Orientation="Horizontal">                                 <ContentControl >                                     <i:Interaction.Triggers>                                         <i:EventTrigger EventName="MouseDoubleClick">                                             <prism:InvokeCommandAction Command="{Binding DataContext.OpenGameCommand, RelativeSource={RelativeSource AncestorType=UserControl}}" CommandParameter="{Binding Id}" />                                         </i:EventTrigger>                                     </i:Interaction.Triggers>                                      <StackPanel>                                         <Image MaxHeight="150" IsEnabled="False" Source="{Binding Image}"/>                                         <TextBlock  Text="{Binding Name}" Margin="5,0,0,0" />                                     </StackPanel>                                 </ContentControl>                             </StackPanel>                         </DataTemplate>             </ListView.ItemTemplate>         </ListView>   This is the output


Prove that if $A,B$ are  similar matrices then they have same minimal polynomial.   My try:  We have $B=PAP^{-1}$ for some $P$.  Let the minimal polynomial of $A$ be $m_A(x)=a_0+a_1x+\ldots +a_nx^n$  and the minimal polynomial of $B$ be $m_B(x)=b_0+b_1x+\ldots +b_mx^m$.  Now, $m_B(B)=0\implies b_0I+b_1(PAP^{-1})+\ldots +b_m(PA^mP^{-1})=0\implies P(b_0I+b_1A+b_2A^2+\ldots b_mA^m)P^{-1}=0\implies b_0I+b_1A+b_2A^2+\ldots b_mA^m=0\implies m_B(A)=0$.  Hence $m_A(x)|m_B(x)$.  Also charcteristic polynomials of $A,B$ say $C_A(x),C_B(x)$are same.  Now $m_B(x)|C_B(x)=C_A(x)$.Also $m_A(x)$ is the smallest degree monic polynomial which divides $C_A(x)$.Also $m_B(x)|C_A(x)$.  Hence $m_B(x)=m_A(x)$  Please check whether the proof is correct or not.Really need some help.


Graphics issue - large white borders in Ubuntu 16.04

For a few weeks I have been seeing these strange white borders around some windows:    Here a browser window is in the front and the weird frame is not there.    What could be the cause and how can I fix it?


Assume A is a set and define $\alpha$ to be the set of ordinals dominated by A. Show that (iii) $\alpha$ is the least cardinal greater than card A.

I said: We know that a cardinal is the least ordinal equinumerous to A. We know $\alpha$ is equinumerous to $\bigcup$A, and so $\alpha$ is the least upper bound of A. Thus $\alpha$ is the least ordinal equinumerous to $\bigcup$A and thus $\alpha$ is the least cardinal greater than card(A). Is my reasoning correct? If not, could you give me a hint for approaching this question?


Is there TeX/LaTeX command that outputs no text?

I'm looking for something like \nothing, which will output no text. I need to put it between an apostrophe and closing quotes:  He said: ``I found `peace.'''   I have to do something like:  He said: ``I found `peace.'\nothing{}''


Hi i have recently moved my forum from Mybb to Vanilla, so the index pages such as showthread.php now do not exist. This is a big problem for SEO, what do I do to redirect this to the home page?


Analysis: Show that there exists an $x$ so that $f'(x)=0$. (Derivative at point is equal to$ 0$)

Question: Look at already answered question.  Same.