Indian passport threads coming off, India travel in 2 weeks

I live in US, and have a F1 Visa and an Indian passport. I am traveling to India in couple of weeks, and my passport got some wear and tear. The stitching which hold the inner pages and the cover is coming off, and only 2-3 threads are left.  Will the Indian Embassy fix that stitching problem? Can they do that?  Also, I plan on issuing a new passport. But my appearance has changed a bit, my indian address is different and my father’s name is different (only the surname). Can I apply for a tatkaal passport? I don’t care if they retain the same info and photo, but when the embassy sees my other supporting docs, they might be able to see a clear change in address, photo and father’s name.   Also, if I have a new passport, I will still have to retain my damaged passport since it has my visa stamping in it.  Immigration and customs can still stop me saying my damaged passport is severely damaged and have me reissue the damaged passport, right? Is there an easy way to get all my stamps and student visa on my new passport, without going to the embassy?  Also, I think my paasport has been marked as ‘damaged’ by the immigration last time I traveled


Forbidden indicator appears after upgrading Ubuntu from 16.04 to 16.10

After upgrading Ubuntu release to 16.10 one indicator appears in after login:  This problem appears in my system and my friend after upgrading Ubuntu


ETTL with YN-568 and YN-560. Plus, manual with other flash unit

I have a YN-560 iii, Vivitar series i, RF-600Tx, RF-602RX and a YN-568 on the way. Ideally, I would like to use YN-568 and YN-560 iii in ETTL and the Vivitar in manual.  Does anyone know if the following will work/have I put this together correctly? Purchase a YN-622N-TX and YN-622N. Use the YN-622N-TX on camera to control both YN flash units. YN-622N-TX controls YN-560 iii in ETTL and YN-622N as shoe for YN 568 again in ETTL. Lastly, will the YN-622N-TX fire the RF-602RX/Vivitar in manual or is another YN-622N required?


I want to know if we can mark an answer as accepted answer if the question gets down voted?


How was the Doctor able to reach into the 'crack in time' without being erased?

I just watched Cold Blood. Poor Rory was erased. But how was the Doctor able to reach into the light, into the crack, without himself getting unwritten? Because in the Flesh and Stone, he mentioned that he would be an excellent thing to feed to the Crack.  I've only watched up to Cold Blood, so no spoilers, please.


How can I install packages to a specific date or point in time?

Running Ubuntu 20.04 and I think I've hit a regression with some third party software.  I need to roll back my installation to a specific point in time, e.g. 3 months ago.  I'd prefer to re-deploy the image with exactly the package versions that were available on a certain date, but I can't see how to specify that. The manifest files are useful (e.g. ) but they only seem to cover packages that are part of the installer, not the additional package selections that might be downloaded from XX.archive.ubuntu.com. Does anyone perhaps maintain a package list indexed by date? Thanks!


Cleaning unwanted overlapping duplicate meshes

I have a model with hundreds of mesh objects. Unfortunately I clicked shift+D to duplicate many and did not notice. Later after working a while, I was rendering, and noticed there are double meshes overlapping each other.   How can I find all duplicate meshes and delete them. I could do it manually,  just clicking,  but it would take a long time and if I miss something i will not notice.   Is there any option,  or can anybody suggest to me,  how can I find all duplicate mesh and delete them.  Model with all double (duplicate) mesh  Final Result


Ony the objects that are close appear in the rendered image

I would like my render result to encompass all of the objects that I have created... I cant seem to get it to render anything at all! Also, I have UV unwrapped my shirt, and the texture shows up in texture mode, but not in render. Also, the physics for the cloth material do not work.  I am new to blender and am very excited, but cant seem to get this working. Here is my blend file, any help is appreciated.


I want to know what the following code means and what each of a, b, and c become:  def addit(a,b,*c):      return a+b+sum(c)      addit(3,5,15,21,5)


Having problems with listings and UTF-8. Can it be fixed?

I'm having some problems with listings and UTF-8 in my document. Maybe someone can help me? Some characters work, like é and ó, but á and others appear at the beginning of words...  \documentclass[12pt,a4paper]{scrbook} \KOMAoptions{twoside=false,open=any,chapterprefix=on,parskip=full,fontsize=14pt}  \usepackage[portuguese]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{listingsutf8}  \usepackage{inconsolata} \lstset{     language=bash, %% Troque para PHP, C, Java, etc... bash é o padrão     basicstyle=\ttfamily\small,     numberstyle=\footnotesize,     numbers=left,     backgroundcolor=\color{gray!10},     frame=single,     tabsize=2,     rulecolor=\color{black!30},     title=\lstname,     escapeinside={\%*}{*)},     breaklines=true,     breakatwhitespace=true,     framextopmargin=2pt,     framexbottommargin=2pt,     extendedchars=false,     inputencoding=utf8 }  \begin{document} \begin{lstlisting} <?php  echo 'Olá mundo!'; print 'Olá mundo!'; \end{lstlisting}  \end{document} \end{lstlisting}


Can $2^n$ and $2^{n+1}$ have the same digit sum?

For $n\in\mathbb{N}^*$ we note $s(n)$ the sum of the digits of $2^n$. For example $s(4)=7$ because $2^4=16$. Is it possible to find an integer $n$ such that $s(n)=s(n+1)$?


$\lim_{x\to0^{+}} x \ln x$ without l'Hopital's rule

I have a midterm coming up and on the past exams the hard question(s) usually involve some form of $\lim_{x\to0^{+}} x \ln x$. However, we're not allowed to use l'Hopital's rule, on this year's exam anyways.  So how can I evaluate said limit without l'Hopital's rule? I got somewhere with another approach, don't know if it's useful:   $\lim_{x\to0^{+}} x \ln x = \lim_{x\to0^{+}} x^2 \ln (x^2) = L$ $= (\lim_{x\to0^{+}} 2x)(\lim_{x\to0^{+}} x \ln x)$ $= 0 * L$   Then I just need to prove that L is finite/exists (which means it must be 0)


The following simple expression produces a sum operator as in (1). But I want it to be bigger like in (2), of course, without altering the size of inner braces. Any suggestion?  \documentclass[a4,12pt]{article} \begin{document}    $$\sum_{i=1}^{N_P}\biggl(X^{(i)}-Y^{(i)}\biggr)^2$$ \end{document}


If you read the question entirely, it is not a duplicate. The first time I asked the question, I already gave the link to the similar question and explained why the answer is not satisfying. If you read well the answer, it starts by stating that it is a well known fact that the product of CW complexes is a CW complex, exactly what I don't want.  In a few references I have been looking at (even ), everytime the proof of:  Let $X,Y$ be CW-complexes and let $f:X\rightarrow Y$ be a cellular map, then the mapping cylinder $M_f$ has a natural CW-complex structure,  comes up, there is a hidden argument such as the pushout of two CW-complexes is a CW-complex or other technical arguments which are not clear. Does someone know/can find a neat proof of this, without using implicitly any other major results about CW-complexes?  Thanks a lot,   N.   What I have done:  We want to show that $M_f$ is a CW-complex:  $$\require{AMScd} \begin{CD} X @>{f}>> Y\\ @Vi_0VV @V\hat{\iota}VV \\ X\times I @>\widehat f>>M_f, \end{CD} $$ with $M_f=Y\sqcup_f(X\times I)$.  I started by constructing a CW-decomposition of $X\times I$ by using the CW-decomposition $\partial I\subset I$ of $I$. That is, given a CW-decomposition $X_0\subset X_1 \subset \cdots $ of $X$: $$\partial I \cup X_0\subset \partial I \times X_1 \cup I\times X_0\subset\ldots \subset \partial I \times X_n \cup I\times X_{n-1}\subset \ldots,$$ unfortunately, I get stuck very soon. Hope someone will be able to help me from there on.


Example of Noetherian ring over which the Euclidean algorithm is not valid.

As stated in the question, I am looking for a Noetherian ring over which the Euclidean algorithm is not valid.  I am trying to construct non-trivial examples of Noetherian rings.  Thank you.


Apostrophe (') in BibTeX not visible after compilation?

I have a BibTeX item as follows.  @inproceedings{Orsdemir2008,     Author = {Orsdemir, A. and Altun, H. and Sharma, G. and Bocko, M.},     Booktitle = {Proc. IEEE MILCOM’ 08},     Month = {Nov},     Pages = {1-7},     Title = {On the security and robustness of encryption via compressed sensing},     Year = {2008}}   I am under \documentclass[conference]{IEEEtran} and invoke the reference part by  {\footnotesize \bibliographystyle{IEEEtran} \bibliography{myBibFile}}   I then get this as the result.     [10] A. Orsdemir, H. Altun, G. Sharma, and M. Bocko, “On the security   and robustness of encryption via compressed sensing,” in Proc. IEEE   MILCOM 08, Nov 2008, pp. 1–7.   As you may have found out, the ' just after MILCOM is missing. How may I fix this?


How to create polygons with straight lines and right angles in QGIS?

When creating a polygon, how do I do it so that the lines are straight (90, 0 degrees, etc.) and when I create corners they can be right angles? For instance, how do I create a perfect square or rectangle?


I would like to know if there is a solid state device I can use to back up my digital files without a computer when I am traveling.


How to transfer all the data/memory of a dead Alienware computer into another computer?

I have an old Alienware M18x, with Windows 8, but it died two weeks ago.  If I buy a new one, will I be able to transfer/download all the data that was inside the memory of the old Alienware into the new one?  What I would like to transfer is mostly:   Many softwares (mostly chess softwares) Many Excel and Word documents Many chess games Many C# programs And also if possible all my things on Firefox (add-ons, favorites, etc) and my desktop wallpapers


My cursor seems too small to me (due to 4k screen), i want to make it bigger, i've tried using  dconf-editor(org.gnome.desktop.interface-cursor size) and  unity-tweak-tool(larger option) none of them worked. By the way i know that i must restart (or log out) my computer to activate the new size.  My ubuntu is 14.04, i've also tried downloading 3 custom cursor theme (krakin, pure-glass and ecliz) all of them are small and i can't make them bigger,  I'm kind of new to ubuntu Any help appreciated ^^


ArrayAdapter NullPointerException Attempt to invoke virtual method on a null object reference

I can't figure out why it doesn't work.     java.lang.IllegalStateException: Could not execute method of the activity   Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ArrayAdapter.add(java.lang.Object)' on a null object reference at com.example.buddy.test.TestDatabaseActivity.addButton(TestDatabaseActivity.java:31)   When Add button was clicking the app crashed but comment is in database.   TestDatabaseActivity.java  public class TestDatabaseActivity extends ListActivity { private CommentsDataSource datasource; private ArrayAdapter<Comment> adapter = (ArrayAdapter<Comment>) getListAdapter();  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_test_database);      datasource = new CommentsDataSource(this);     datasource.open();      List<Comment> values = datasource.getAllComments();      ArrayAdapter<Comment> adapter = new ArrayAdapter<Comment>(this, android.R.layout.simple_list_item_1, values);     setListAdapter(adapter); }  public void addButton(View view){     Comment comment;     comment = datasource.createComment("My comment");     adapter.add(comment);     adapter.notifyDataSetChanged(); }  public void deleteButton(View view){     Comment comment;     if (getListAdapter().getCount() > 0) {         comment = (Comment) getListAdapter().getItem(0);         datasource.deleteComment(comment);         adapter.remove(comment);     }     adapter.notifyDataSetChanged(); }  @Override protected void onResume() {     datasource.open();     super.onResume(); }  @Override protected void onPause() {     datasource.close();     super.onPause(); } }   CommentsDataSource.java  public class CommentsDataSource { private SQLiteDatabase database; private MySQLiteHelper dbHelper; private String[] allColumns = { MySQLiteHelper.COLUMN_ID, MySQLiteHelper.COLUMN_COMMENT };  public CommentsDataSource(Context context) {     dbHelper = new MySQLiteHelper(context); }  public void open() throws SQLException {     database = dbHelper.getWritableDatabase(); }  public void close() {     dbHelper.close(); }  public Comment createComment(String comment) {     ContentValues values = new ContentValues();     values.put(MySQLiteHelper.COLUMN_COMMENT, comment);     long insertId = database.insert(MySQLiteHelper.TABLE_COMMENTS, null, values);     Cursor cursor = database.query(MySQLiteHelper.TABLE_COMMENTS, allColumns, MySQLiteHelper.COLUMN_ID + " = " + insertId, null, null, null, null);     cursor.moveToFirst();     Comment newComment = cursorToComment(cursor);     cursor.close();     return newComment; }  public void deleteComment(Comment comment) {     long id = comment.getId();     System.out.println("Comment deleted with id: " + id);     database.delete(MySQLiteHelper.TABLE_COMMENTS, MySQLiteHelper.COLUMN_ID + " = " + id, null); }  public List<Comment> getAllComments() {     List<Comment> comments = new ArrayList<Comment>();      Cursor cursor = database.query(MySQLiteHelper.TABLE_COMMENTS, allColumns, null, null, null, null, null);      cursor.moveToFirst();     while (!cursor.isAfterLast()) {         Comment comment = cursorToComment(cursor);         comments.add(comment);         cursor.moveToNext();     }     cursor.close();     return comments; }  private Comment cursorToComment(Cursor cursor) {     Comment comment = new Comment();     comment.setId(cursor.getLong(0));     comment.setComment(cursor.getString(1));     return comment; } }   Comment.java  public class Comment { private long id; private String comment;  public long getId() {     return id; }  public void setId(long id) {     this.id = id; }  public String getComment() {     return comment; }  public void setComment(String comment) {     this.comment = comment; }  @Override public String toString() {     return comment; } }


On the regular site, there's an [On Hold] indicator after the title when a question has been closed. It would be nice to have something similar for the iPhone app. It's a bit frustrating to waste time clicking on a question only to realize that it's off topic after it loads.


End of Stream encountered before parsing was completed unexcpected exception

I have this piece of code to deserialize a serialized list of Animals. However i get the End of Stream encountered before parsing was completed, error. Do any of you have a solution to this? I cant seem to figure it out by myself. public void Load(String fileName) { if (fileName == null) {     throw new ArgumentNullException("fileName"); } String path = @"C:" + fileName; if (fileName.Contains(@"\")) {     path = fileName; } using (FileStream fileStream = File.OpenRead(path)) {     BinaryFormatter format = new BinaryFormatter();          object obj = format.Deserialize(fileStream);     if (obj.GetType() == typeof(List<Animal>))     {         List<Animal> Animals = (List<Animal>)format.Deserialize(fileStream);     }                } }   public void Save(String fileName)     {         if (fileName == null)         {             throw new ArgumentNullException("fileName");         }         String path = @"C:" + fileName;         if (fileName.Contains(@"\"))         {             path = fileName;         }         using (FileStream fileStream = File.Open(path, FileMode.Create))         {             BinaryFormatter format = new BinaryFormatter();             format.Serialize(fileStream, Animals);         }     }


Any way to remap the touchpad's center-click button?

I'm running Windows 10 Professional on the Dell Precision 7530 laptop, and I'm looking for some sort of registry-hack or similar to allow me to remap the mouse buttons on the built-in touchpad.  This is the first laptop I've ever used which includes a center-click button beneath the touchpad, and I'm constantly hitting this button rather than left-click which leads to some unintended behavior such as opening a new instance of Outlook rather than just pulling up the already-running instance.  I've spent a couple of hours researching this issue, but the only tools I can find for remapping mouse buttons are built for external mice rather than the built-in touchpad.  I have explored the Dell Precision Touchpad software (which doesn't even show a center-click button) with no success.  I was informed by Dell Support that there is no way to accomplish this, but it seems to me that the task should be no different from tweaking the registry to disable NumLock and CapsLock (which I've done on a many different laptops using KeyTweak or SharpKeys).    Note that I'm asking about the buttons beneath the trackpad, not those beneath the space bar.  Any advice would be greatly appreciated!


Find the value of $\sum_{n=1}^{\infty} \frac{2}{n}-\frac{4}{2n+1}$


Today in maths class something occurred to me. How can this be:     $\sqrt{(-5)^2} = ((-5)^2)^{1/2} = (-5)^{2(1/2)} = (-5)^1 = -5$   $\sqrt{(-5)^2} = ((-5)^2)^{1/2} = 25^{1/2} = 5$   This could theoretically prove that $5$ equals $-5$.  Is there any logical reason to explain this?


How do websites that aren't very different from their peers do SEO?

I'm new to SEO (but I know the basics). I've looked up several videos on youtube so far and the common factor among all of them is good content. The videos I've watched or the SEO tips I've read mostly focus on the strategy of creating good content by writing articles, getting others to contribute and link to them, and so on. With superior content, they can capture the attention of domain experts, or brands, or related websites, etc. and get backlinks/social shares from them.  However, aren't there some keywords for which one doesn't necessarily need good content? For example, something like "mechanic jobs" or "delivery boy jobs", and so on. Another example would be something like, "join pdf" or "compress pdf". The top results for such searches don't have any content at all, rather, just webpages that list the jobs or webpages that provide the joining/compression service. For example, please refer to these:  (searched for "delivery boy jobs")      (It's clear that the top results given above are customized according to my location, even though I didn't include any location in my search term)  What do sites as given in the above examples do to be so high in the rankings?   Of course, one obvious reason could be that they've been around for a long time and have the first mover advantage, but I can't understand how sites can "growth hack" their way to good page rankings without having any scope to create quality content, and therefore, without any means to distinguish themselves significantly from their peers. Do none of the SEO "growth hacking" techniques apply to sites like these?


After changing my minecraft username I can't play on any of my servers?

When I changed my Minecraft name I logged out of my launcher and relogged.  When I tried to connect to a server, it said : "Not authenticated with Minecraft.net"  Any help ?


My new phone isn't listed as a device in the Android Device Manager, how can I register it?

I broke my phone a couple weeks ago, thankfully I was paying the $7/mo for insurance and was able to get a replacement in the mail a few days later.  This new phone isn't registered with my Google Play account ( doesn't list it) and I can't remotely install apps through .  Everything else is working fine, it's sync'd with my gmail/chrome just fine and I'm able to install already-paid for applications on it without a problem.  The only thing it seems I can't do is install apps remotely through the play.google.com/store website, which makes sense given it's not registered as one of my devices.  Am I missing something obvious?  In the past my devices have always been registered automatically, as best I could tell anyways.


As opposed to the generic polynomial form for utilizing the Eisenstein Criterion ($a_nx^n+a_{n-1}x^{n-1}+\dots+a_0\in\mathbb{Z}[x]$ is irreducible in $\mathbb{Q}$) how do we prove that if $p$ is a prime, $x^{p-1}+x^{p-2}+\dots+x+1$ is irreducible over $\mathbb{Q}$?


How can I run two instance of, e.g. GNOME, on my computer at once?  I know how to change the virtual terminal, but I can't work out how to start a second instance of gnome - it just exits telling me that the X session is locked.  EDIT: The other thing that I would really like to know is how to run two different desktops at once - e.g. XFCE and GNOME.  I know that I can change the default desktop in .xinitrc or something like that, but then I would have to do so every time - is there any way to select the desktop type when creating the new XSession?


I read somewhere that I need to install 'build essential packager' & so I tried:  sudo apt-get install build-essential  Reading package lists... Done Building dependency tree        Reading state information... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   But the file still wont compile or run...  gcc -Wall -W -Werror factorial.cpp -o factorial.   gives me:   gcc -Wall -W -Werror factorial.cpp -o factorial. factorial.cpp:3:22: fatal error: iostream.h: No such file or directory compilation terminated   This is my piece of code: //WAP to demonstrate static member for calculating factorial      #include<iostream.h>         #include<conio.h> class fact { int i;     static int count;     public :      void calculate()     {         long int fact1=1;         count++;         for(i=0;i<=count;i++)         {             fact1=fact1*i;         }         cout<<"\nFactorial of"<<count<<"="<<fact1<<"\n";     } }; int fact :: count; void main() {     int i;     clrscr();     fact f;     for(i=1;i<=15;i++)     {         f.calculate();     }     getch(); }   What shoud I do..???


Apt update fails at chrome stable main: "File has unexpected size (1103 != 1104). Mirror sync in progress?"

I'm getting an error that I've never seen before when running sudo apt update. The error happens after reaching http://dl.google.com/linux/chrome/deb stable/main amd64 Packages. I haven't done anything recently that I know of that could have suddenly caused this error to happen.  Here is the full output of sudo apt update:  ➜  ~ sudo apt update                                     Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://packages.ros.org/ros/ubuntu bionic InRelease                                                                                Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease                                                                                Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease                                                                                Get:6 http://dl.google.com/linux/chrome/deb stable Release [943 B]                                                                            Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                                                         Get:8 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                                                Get:9 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]                                                                                Get:10 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,104 B]                                                                                Err:10 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages            File has unexpected size (1103 != 1104). Mirror sync in progress? [IP: 172.217.11.78 80]   Hashes of expected file:    - Filesize:1104 [weak]    - SHA256:77ca2eefc7975f403bc1c9fb2dd97ed4a010d9c0b3f7932f07dd7995fc7c67a1    - SHA1:9c0534b7034652963231d629283e83833f706121 [weak]    - MD5Sum:14dd8b71c35111b40f1f06c565349097 [weak]   Release file created at: Wed, 29 May 2019 17:35:47 +0000 Hit:4 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease    Fetched 178 kB in 1s (219 kB/s)                     Reading package lists... Done E: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages.gz  File has unexpected size (1103 != 1104). Mirror sync in progress? [IP: 172.217.11.78 80]    Hashes of expected file:     - Filesize:1104 [weak]     - SHA256:77ca2eefc7975f403bc1c9fb2dd97ed4a010d9c0b3f7932f07dd7995fc7c67a1     - SHA1:9c0534b7034652963231d629283e83833f706121 [weak]     - MD5Sum:14dd8b71c35111b40f1f06c565349097 [weak]    Release file created at: Wed, 29 May 2019 17:35:47 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead.   I've read in other places that removing the entry from my software update sources will get rid of the error. But wouldn't that mean I would no longer get updates for Google Chrome? I would think there must be a better solution than that.  Searching for this error through Google, I couldn't find this exact error happening with google chrome stable main for anyone else. I'm curious to know if this is a temporary issue with the server?   I am running Ubuntu 18.04.2 on a desktop machine.


Show that for a gradient system $\bf\dot x= f(x)$, $\frac{\partial f_i}{\partial x_j}-\frac{\partial f_j}{\partial x_i}=0$ for $1 \leq i, j \leq d$

The dynamical system ${\bf \dot x} = {\bf f}({\bf x})$ is called a gradient system if there exists a function $V({\bf x})$ such that   $$ {\bf f}({\bf x}) = - \nabla V({\bf x}) $$   Show that if ${\bf \dot x} = {\bf f}({\bf x})$ is a gradient system, then   $$ \frac{\partial f_i}{\partial x_j} - \frac{\partial f_j}{\partial x_i} = 0 $$   for $1 \leq i, j \leq d$   So let ${\bf f}({\bf x}) = (f_1({\bf x}), f_2({\bf x}), \dots , f_n({\bf x}))$ and from the definition of a gradient system, we have $$ (f_1({\bf x}), f_2({\bf x}), \dots , f_n({\bf x})) = - \left ( \frac{\partial V({\bf x})}{\partial x_1}, \frac{\partial V({\bf x})}{\partial x_2}, \dots, \frac{\partial V({\bf x})}{\partial x_n} \right ) $$ but then I don't see how to follow this to produce the required equation.


I got stuck on the following question. Suppose that $H$ is a Hilbert space and $V$ is a nonempty convex closed subset of $H$. Prove that there exists a unique $u\in V$ such that $\|u\|\leq\|v\|$ for all $v\in V$. I know that by proposition, there is a unique $u\in V$ such that for $h$ in $H$ but not in $V$, $\|h-u\|=\inf \{\|h-v\|:v\in V\}$. But how could I use this to prove this problem? Thanks.


What is the difference between interesting to you and for you

I want to know what is the difference between these two examples:  .1 Read a lot of books that are interesting to you.  .2 Read a lot of books that are interesting for you.


Area of intersection between two circles

Suppose you have 2 circles that intersect each other in such a way that each circle passes through the other's center. What is the area between the circle(or common area) i.e. area between the centres of the circles?


The Beatles were an English rock band, formed in Liverpool in 1960.     The Beatles were? Aren't/isn't The Beatles a proper noun and it refers to one group? I don't understand why WikiPedia and other sources use The Beatles were instead of The Beatles was. Is it because of the s? Somebody please explain me about this, it goes against all the rules I've learnt and it is not even in my grammar books.


I would like to concentrate all my login config in my ~/.bash_profile.  There was a ~/.bashrc there by default but I replaced it with a ~/.bash_profile.  However, when I log in, something before my ~/.bash_profile gets sourced and displays the following:  Linux ubnt10-dev1 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 x86_64 GNU/Linux Ubuntu 10.04.4 LTS  Welcome to the Ubuntu Server!  * Documentation:  http://www.ubuntu.com/server/doc    System information as of Fri May  9 12:17:39 EDT 2014    System load:  0.01              Processes:           74   Usage of /:   5.5% of 18.58GB   Users logged in:     0   Memory usage: 4%                IP address for eth0: 123.x.x.x   Swap usage:   0%    Graph this data and manage this system at https://landscape.canonical.com/  New release 'precise' available. Run 'do-release-upgrade' to upgrade to it.  Last login: Fri May  9 12:11:52 2014 from 123.x.x.x   I would like to remove that so that only my own splash greeting defined in my ~/.bash_profile gets displays but I am not sure about the logic/sequence of scripts sourced/executed when a user logs in.  Can you enlighten me?  As a bonus, I would also like to know the sequence of automated sourcings/execs when the system starts, not just when a user starts a session by logging in, albeit this is a concern of lesser importance to me right now.


how many solution can be found of the form $A \pmod{X} = B$

$A$ and $B$ are given, How many $X$ can be found to make the following equation true?  $$         A \pmod{X} = B $$ Is there any formula?


How do I traverse and search a python dictionary?

I have nested dictionaries:  {'key0': {'attrs': {'entity': 'p', 'hash': '34nj3h43b4n3', 'id': '4130'},           u'key1': {'attrs': {'entity': 'r',                               'hash': '34njasd3h43b4n3',                               'id': '4130-1'},                     u'key2': {'attrs': {'entity': 'c',                                         'hash': '34njasd3h43bdsfsd4n3',                                         'id': '4130-1-1'}}},           u'key3': {'attrs': {'entity': 'r',                               'hash': '34njasasasd3h43b4n3',                               'id': '4130-2'},                     u'key4': {'attrs': {'entity': 'c',                                         'hash': '34njawersd3h43bdsfsd4n3',                                         'id': '4130-2-1'}},                     u'key5': {'attrs': {'entity': 'c',                                         'hash': '34njawersd3h43bdsfsd4n3',                                         'id': '4130-2-2'}}}},  'someohterthing': 'someothervalue',  'something': 'somevalue'}   given an id  - one of all the ids like 4130 to 4130-2-2.                       whats the easiest way to navigate to the correct dictionary?  Like if the given id is 4130-2-1 then it should reach the dictionary with key=key5  non xml approaches please.  Edit(1): The nesting is between 1 to 4 levels, but I know the nesting before I parse.  Edit(2): Fixed the code.  **Edit(3):**Fixed code again for string values of ids. Please excuse for the confusion created. This is final I hope :)


How to broadly assess the state of research for a topic?

This is coming from a non-PhD, please help me out: If I have a broad interest in a topic, and I want to assess what are the current (in the last 5 years I guess) high-impact research done in said topic, where are the places I should look, and some general tips on how to search? Eg: say I'm interested in application of AI/ML in education, or what are the key factors impacting engagement in MOOCs, for instance. What search engines should I try, and any tips on how to search? I'm specifically asking about scientific research searching and overview, not general articles. If this can't be answered in general I can also try to provide some specific fields of interest. Many thanks.


Internal speaker (Audio) is not working in Ubuntu 20.04 LTS after upgrading from Ubuntu 18.04 LTS

I recently upgraded to Ubuntu 20.04 lts from 18.04 lts. After reboot audio is not working. I tried to reinstall pulseaudio and alsa but still not working. sudo apt-get install --reinstall alsa-base pulseaudio sudo alsa force-reload still not working. output  └─▶ inxi -SMA System:    Host: Wizard Kernel: 5.4.0-26-generic x86_64 bits: 64 Desktop: Gnome 3.36.1 Distro: Ubuntu 20.04 LTS (Focal Fossa)  Machine:   Type: Portable System: Dell product: Vostro 2520 v: N/A serial: <superuser/root required>             Mobo: Dell model: 0V1NDP v: A11 serial: <superuser/root required> BIOS: Dell v: A11 date: 02/24/2014  Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio driver: snd_hda_intel             Sound Server: ALSA v: k5.4.0-26-generic     output └─▶ lspci  00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4) 00:1c.3 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4 (rev c4) 00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 6 (rev c4) 00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation HM75 Express Chipset LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04) 07:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01) 09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)


I have 29er mountain bike. I just use it for commute within the city. I wanted to change the tires to slick ones. So I recently purchased Continental contact speed reflex tire having the dimension of 622-32. But my wheel rim width is 622-21 I'm just wondering whether it is safe enough to install them or should I go for wider tires?  Based on this chart I'm one place off the minimum limit.   In case it is safe to install 32-622 ones, should I take any precautions?  Thank you guys in advance for your advice.  Oh yes one more thing, currently I have 622-35 tires installed.


How do I prevent Apache from answering requests for domains I don't host?

Someone has pointed their domain (www.bomberball.net) to the same IP as my domain (www.kapparate.com) , and Google is now showing the former when searching for Kapparate, rather than the latter. What's the best way to block requests coming from www.bomberball.net ?


External links are opened as blank tabs in new browser window in Chrome

Since I installed Ubuntu (fresh install on a new machine), and set Google Chrome as default browser, whenever I open links from external apps these are open as blank tabs in new browser window (no actual redirection to site, just a blank tab).  I switched to Firefox and this behavior doesn't persist. If I switch back to Chrome as default browser (via default apps) it happens again.  I noticed that both in Unity Launcher and from the default app settings, Chrome isn't called just 'Google Chome' but 'New Tab - Google Chrome'. Not sure if this is related or how to fix it. I made some searches that suggest to look for mimeapps.list or check that the google-chrome-stable.desktop contains a %U value, but none of these helped.  This is an extract of the .desktop entry by the way:  [Desktop Entry] Version=1.0 Name=Google Chrome Exec=/usr/bin/google-chrome-stable %U Terminal=false Icon=google-chrome Type=Application Categories=Network;WebBrowser; MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp; X-Ayatana-Desktop-Shortcuts=NewWindow;NewIncognito   this is mimeapps.list  [Default Applications] text/html=google-chrome.desktop x-scheme-handler/http=google-chrome.desktop x-scheme-handler/https=google-chrome.desktop x-scheme-handler/about=google-chrome.desktop x-scheme-handler/unknown=google-chrome.desktop


Shall we have a drop down list to select communities while saving profile details?

Currently, in the edit profile section, we have two buttons: Save changes just for this community and Save and copy changes to all stack exchange communities.  Instead a drop down check box list will be helpful to select the communities in which I want my changes to appear. Scenario I want the same details for sites Stack Overflow, Software Engineering, CS Educators, Code Review, and Computer Science. Another set of information for Software recs and Hardware recs. Another set of information for Travel and Expats. Currently I have to edit on one community. Then copy the details and update each communities manually. For the first case, edit five communities manually. Proposal Add a dropdown checkbox list to select the target communities in which the information should be updated.  Advantage  Whenever I update some details in my profile, I am able to update the same for selected set of communities. No need to copy and paste it on each communities one by one.   We're able to set different details for different communities. So Stack Overflow stores the profile information of each community differently and hence no need to alter the database for this.


how many incarnations of the master have there been and the confirmed only faces

In Doctor Who they have said the Master has used up regenerations and started stealing bodies but the only Masters we see on screen are       How many Masters have we not seen? Are theses the only and true Masters in a regenerative cycle and are these the confirmed incarnations of the master?


If $a_n \geq b_n$ and $b_n$ converges to $b$ then $\liminf a_n\geq b$

Suppose $\{a_n\}$, $\{b_n\}$ are sequences in $\mathbb R$. Suppose $a_n\geq b_n$ and $\{b_n\}$ converges to $b$. Can we conclude that $\liminf a_n\geq b$. What if we further assume $\{a_n\}$ is bounded below?


He outshined the competition. He outshone the competition.  Is ‘outshined’ or ‘outshone’ correct here?


Strikethrough different color than the text

Using the cancel package, you can cross expressions in various ways.  However, what I can do to cross a symbol, with the strikethrough a different color, say red.


LaunchPad totally disorganised after reboot OS X Yosemite

Running Yosemite 10.0 with a clean erase and install, when I reboot, all my launchpad apps are totally disorganised, folders and un-official apps disappears...  After reorganizing the layout twice, I don't want to keep sorting my launchpad every time I restart my Mac.


How do I get more information about Windows Spotlight images?

Windows Spotlight is a new Windows 10 feature which displays random images on your lock screen.  Now every now and then the picture happens to be a particularly nice one, and I'd like to know more about it. (What does it show? Where was it taken?)  I was able to (kind of) solve this problem with the following steps:   Go to the lock screen settings. A preview of the current lock screen image is shown there. Take a screenshot of the preview and upload it to Google Reverse Image Search.   Is there an easier way?


I don't understand how sets can be closed, yet disjoint?

What are some closed, disjoint subsets $A, B$ in $R^2$ where $inf\{d(A, B) = 0 \forall a \in A \forall b \in B\}$?


In a bash shell script, writing a for loop that iterates over string values

In bash, I know that it is possible to write a for loop in which some loop control variable i iterates over specified integers.  For example, I can write a bash shell script that prints the integers between 1 and 10: #!/bin/bash  for i in {1..10} do  echo $i done  Is it possible to instead iterate over a loop control variable that is a string, if I provide a list of strings?  For example, suppose that I have a string fname that represents a file name.  I want to call a set of commands for each file name.  For example, I might want to print the contents of fname using a command like this: #!/bin/bash  for fname in {"a.txt", "b.txt", "c.txt"} do  echo $fname done  In other words, on the first iteration, fname should have the value fname="a.txt", while on the second iteration, fname should have the value fname="b.txt", and so on.  Unfortunately, it seems that the above syntax is not quite correct.  I would like to obtain the output:  a.txt b.txt c.txt  but when I try the above code, I obtain this output:  {a.txt, b.txt, c.txt}  Can you please help me determine the correct syntax, so that I can iteratively change the value/contents of the variable fname?  Thank you for your time.


How to remove pre-installed ubuntu and and install another OS?

I bought a new PC with ubuntu11.10 pre-installed but now I want to use Windows 7.


Unable to connect to ssh using public DSA key

I have a UTM that I have configured to send daily logs to a Ubuntu Server through ssh authenticating with a Public DSA key that has been generated by the UTM. (I know DSA is considered less secure than RSA, unfortunately my UTM only offers DSA). I have added the DSA Public Key to /home/user/.ssh/authorized_keys. I have setup r/w permissions for the owner user explicitly. I have uncommented AuthorizedKeysFile %h/.ssh/authorized_keys in /etc/ssh/sshd_config. My UTM host not been able to connect, after checking var/log/auth.log I found the following message:   userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]  How do I add ssh-dss to PubkeyAcceptedKeyTypes?


How do I set a user's default .bashrc file?

On Ubuntu 10.4 I have edited the /etc/bash.bashrc file to set some variables like the command history size (HISTSIZE=5000), however if I create a new users Ubuntu by default gives them a .bashrc file in their home directory with this set as HISTSIZE=1000 which is overriding mine. How can I change the default .bashrc file that is created?


I'm using Xubuntu 13.04 from live usb.  I know that in order to be able to keep files/settings/etc after restart, USB live disk should be created with some storage reserved. However since I got this USB from a friend who created installation, I don't know if he reserved any space, and so my questions are:   How can I find out amount of space reserved (if any)? If no space is reserved, can I manually chose USB/HDD location to store my settings in order to be able to boot into them the next time I log on?   I'm currently running a very long session and it would help me if I could somehow be able to store my settings (firefox, apt-gets, xrandr screen conf. ... ) to not have to do it again after I reboot.  Thanks,  IR


Error when downloading application from the play store: RPC: S-3

I just got an Android tablet and when I try to install an app on the Play store it says:      error retrieving information from server [RPC:S-3].   I've tried clearing the data for the Play Store app & turning it off & back on but it didn't work.


What can I do if I can no longer access my unregistered question?

About an hour ago I posted  under an unregistered account from my desktop. I then opened up the password email from my phone, logged in from that link, and was unable to access the question (didn't know that it would be using a cookie to keep track of everything). I panicked, figured merging with my main account could help, so I did so, and now I fear I'm forever cut off from properly editing/commenting on that question. It doesn't help that I only have 1 rep on that site.   I tried following the advice in , but this only ended up in me logging into my main account (this one).  What can I do to obtain ownership of this question?


Can the Wish spell overcome a rakshasa's limited magic immunity when used to duplicate the effect of a lower-level spell?

Can the  spell overcome a 's limited magic immunity when used to duplicate the effect of a lower-level spell?  I always wondered how the two interacted. What if I cast wish, duplicating the spell  (normally a 5th-level spell), at a rakshasa? The creature is immune to spells of 6th level or under, but does my spell count as a 9th-level spell because I used wish, or a 5th-level spell because the effect is that of contagion? Perhaps it counts as 9th for counterspell purposes, but 5th-level for immunity purposes?  If anyone has an answer, I would love to hear it.


iOS: Waze exits app when user declines license agreement - how?

My client found that Waze app is showing License agreement to user with two buttons Decline and Accept. I am trying to tell him that best way is to have just one button and let users leave app if they don't agree with terms and conditions. But he wants to do this this way. I know that there are several ways how to quit app but I think no one will be approved by Apple in review process. So how Waze do it? When I click on Decline button app goes dark and then quits. How can this be approve in review process? Screenshot from Waze:


Follow up to  question. Is $0$ a positive number?


Why has my solid view shading gone really dark?

I just noticed that the shading in my solid view is really dark. I can't find how to change it back.


Centos - List all install packages order by name

I have two questions-   List all packages order by name  Search for a specific package that is intalled or not?


Cannot turn on Bluetooth - Exhausted all options

Firstly I would like to say that I have never used a Mac in my life before today so apologies if i am a little slow on the uptake. I recently purchased the iMac (27-inch, Mid 2011) which i believe is running a Yosemite v10.10 OS.  The iMac was second hand and there was no install discs in the box. It did come with the Apple mouse and keyboard, however i cannot pair them with the Mac as the Bluetooth won't turn on ('Turn Bluetooth On' button is greyed out in System Preferences>Network>Set Up Bluetooth Device...). The Bluetooth icon in the top left is also greyed out with a line through it and says 'Bluetooth: Not Available' on it.  So far i have Deep Breath:   Checked the technical specs to ensure this model has Bluetooth. Repaired Disk Permissions in Applicatiopns>Utilities>Disk Utilities + Restarted. Deleted 'com.apple.Bluetooth.plist' in Library>Preferences + Restarted Reset the SMC + Restarted Completed a PRAM reset + Rebooted Installed the 'Bluetooth Switch' widget (Which appears to do nothing) Some people have suggested that if you shut down and log in a few times it eventually sorts itself out, well i have done that about 10 times now and it has definitely not fixed itself.   ... and none of it has made a single bit of difference.  Not such a good start so far from Apple, I am starting to wonder why i switched from PC's. Can anyone help to restore my faith?


I have a layover in Stockholm from the US on my way to the Czech Republic. I have both Czech and US passports. I need to pick up and recheck my bags. Will I need a transit visa?


What does "The" emphasize in the phrase "The UK has approved a COVID vaccine"? It seems to mean that "UK has approved a COVID vaccine" is itself OK. I am not very sure.  The UK has approved a COVID vaccine — here’s what scientists now want to know The Pfizer–BioNTech vaccine has passed safety and efficacy tests — but scientists still have many questions about how this and other vaccines will perform as they’re rolled out to millions of people. Source:    Dec.3, 2020


I need to filter an OpenLayers layer using a CQL filter to an specific Bounding Box. Is it possible?  Something like this isn't working:  igh > 5000 AND bbox(igh,20786691,22051867,-305577260,-306370356)


I have a problem with adding text into a LaTeX document. I have a LaTeX document about LaTeX and I need to insert some code snippets. I need to add "\usepackage{musixtex}" as a text, which should be displayed as a text. Do you know how?


How can I save a file to a new location from inside Vim?

I've created a Vim text file that I would like to save elsewhere (say on the desktop, or perhaps email it to myself). How could I do that? I would be glad to add any detail necessary, but I'm not quite sure what I need to add. It is purely a text file, no code in it. I'm doing this on a chromebook in developer mode, with Ubuntu installed via crouton. It is Ubuntu Version 12.04, I believe. I am rather new to Ubuntu/Linux/Bash/vim so the more detailed on how to do it, the better.   Any help would be appreciated. Thanks!  EDIT: Thanks to all answerers for their help!


I use  in Arch Linux for installing packages.   The command for installing is pacman -S, The command for a full system upgrade is pacman -Syu and The command for repository update is pacman -Syy.   I want to know what is the equivalent for pacman in Ubuntu and its corresponding command.


What do these sequences mean in the PS1 variable?

I have trouble understanding what \[\e]0;$PWD\007\] and \[\e(0\]b\[\e(B\] mean. I am setting up my prompt on MobaXterm on Windows and those two sequences were in the default one. They were at the very beginning and very end respectively.  Here is a screenshot of the resulting prompt:   I think the second one is used to show the small arrow replacing the traditional $ but I have no idea how it achieves this result. It almost looks like garbage. I suppose it's some kind of unicode trick?  Regarding the first one, I have absolutely no idea what its purpose is. I'm even more troubled by the $PWD part.  About the linked question:     Well, as I mentionned, I know that the second sequence displays the arrow but why does it use two escape sequences separated by a plain b? That's very strange.   And, regarding the first one, it doesn't show the PWD. In my screenshot, this sequence is displayed at the very beginning, even before the date is printed. The purple path uses a classic \w. I don't understand why it uses $PWD inside an escape sequence, that's why I asked the question.


Is mold inside eggshells a sign they're unsafe to eat?

Cooked (over-easy) a duck egg this morning. When cleaning up I noticed black mold inside the shell of the egg I had just eaten. Was it safe to eat?


How to convert the wilcox.test W value output for two independent groups to U in R?

I need the U values of Mann-Whitney test, but the wilcox.test in R outputs only W values. I do not think they are identical, so here is my question - how to convert W to U?


It is commonly said that heat received from sun is due to the infrared part of solar radiation. But from Wikipedia i found that most of the energy is received from visible light. Then why do we say that infrared is responsible for heating of earth?


Why don't these figures align horizontally?

I am trying to use the  package for horizontally aligning up some figures, and I did as the documentation instructs me to do, yet the result is these are vertically aligned. It really confuses me.  \documentclass{article}  \usepackage[font=small]{caption} \usepackage{subcaption} \usepackage{graphicx} \usepackage{xltxtra} \usepackage{fontspec}   \setmainfont[Ligatures=TeX]{Linux Libertine O}  \begin{document} \begin{figure}[htp]      \centering     \begin{minipage}[t]{0.3\linewidth}         \includegraphics[width=\linewidth]{fig/bed1.jpg}         \subcaption{Bedroom 1}     \end{minipage}      \begin{minipage}[t]{0.3\linewidth}         \includegraphics[width=\linewidth]{fig/bed2.jpg}         \subcaption{Bedroom 2}     \end{minipage}     \caption{Two bedrooms}  \end{figure} \end{document}


What situations exist where Bash variables should not be double quoted?

I'm aware of several situations where it's unnecessary to use double quotes when expanding a variable in Bash, such as inside [[...]], or when used on the right hand side of a variable assignment.  When reading about quoting variables I often hear that it's often better to just use double quotes everywhere, as there are only a very few cases where you wouldn't want them.  What are the cases where behaviour from quoting is undesirable? I'm not talking about situations where you don't need to quote, but where quoting a variable will actively stop something from working.


Showing that $\ker T$ is closed if and only if $T$ is continuous.

Possible Duplicate:             Let $T: X\to \mathbf{R}$ be linear. Suppose that $X$ is a Banach space. I want to show that $T$ is continuous if and only if $\ker T $ is closed.     My Attempt.    $(\Rightarrow)$ Suppose $T$ is continuous. Then if $x_n\to x$, then $T(x_n)\to T(x)$. Let $x_n \in \ker T$. Then $T(x_n) = 0$. Using continuity, $$ T(x) = \lim_{n\to \infty} T(x_n) = 0.$$ Hence $x\in \ker T$ and thus $\ker T$ is closed.    $(\Leftarrow)$  Suppose $T$ is not continuous. So $T$ is not bounded. i.e. $\exists$ a sequence $x_n$ such that $T(x_n) \to \infty$ as $n\to \infty$. Let $a\notin \ker T$. Then defining $$x_n' = a - \frac{T(a)}{T(x_n)}x_n ,$$ it is clear that $T(x_n') = 0$ and so $x_n'\in \ker T$. Also $x_n' \to a \notin \ker T.$ So $\ker T$ is not closed.  Hence $\ker T$ closed implies that $T$ is continuous.     Have I approached this question correctly? Are there other ways of approaching it?


What is the origin of the letter d in dmesg?  :     dmesg (display message or driver message)   No reference are given for this assertion - it could just as well be "debug message".  What is the etymology of dmesg?


Can I get my Touch Bar to play sounds to acknowledge my Touch Bar key presses?

I love my MBP and the Touch Bar is pretty cool, but sometimes I find I’m second-guessing myself. Did I press the ESC key or not? Did I press that function key? Well you get the idea. There’s just no physical feedback and sometimes I keep tapping where I think something is, but it’s not!  I know there's no tactile feedback, but then it hit me - maybe there’s a setting somewhere for sound. You know, like the beeps you here when pressing buttons on some devices.  My guess is this is just not possible, but before I make the suggestion to Apple I wanna make sure!  Any ideas?


how to keep sharp turns on model while sub surf modifier is active? (image inside)

I would like a sharp turn, not the smoothed round turn that the sub surf modifier causes. Is this possible? Notice the purple line for the mean crease, I would like it to look like that


The following:   \begin{align*}         F         =         {}&a^2+b^2=c^2           \notag\\\rm{subject~to} & \;           5+1=6 \;\rm{ and }\;  a+b=c. \end{align*}   produces a+b=c that isn't in math mode. Why?


The article said 6 traits can qualify a great ux designer, what do you think of it?  Good UX Designer Never Feel Satisfied  Good UX Designer Always Have a Plan B, C, even D…  Good UX Designer Hold a Strong Holistic View  Multiple Means To Do Customer Research  Good UX Designers Don’t Rely On Their Own Judgments  ...


Create a Collection inside another Collection with python

How to create a Collection inside another existing Collection with Python?


$x^y-y^x=1$ for $x,y\in\Bbb Z$ and $x,y>1$ is clearly a special case of very well known Catalan's conjecture (now resolved). It seems to be very limited special case, but I was told by someone today that solution to this, appears simple, problem, is in fact equivalent to all of Catalan's conjecture. I had some hard time believing this, and I still doubt that this is true. When graphing solutions to this equation among real numbers it clearly looks like $y$ is bounded below 2 for all $x$. I tried to employ some analytical tools to show this last fact, but I didn't manage to get anywhere.  My question is, is this special case really equivalent to full Catalan's conjecture? If it's not, is there some elementary way of showing that it's only integer solution is $(3,2)$?  Thanks in advance.


Cards is plural but tool is singular. What would be more appropriate to use? Are or Is?


If a sphere is rolling down a friction-less incline surface, does it not roll?

I'm solving a problem where a ball rolls down a hill, but the friction between the ball and surface is 0. So it obviously slips, but does it only slip? As in does it not roll at all? Or does it slip and roll? Thanks.


Refresh "Questions that may already have your answer" after adding tags based on these tags

It happens often for me that, after submitting the answer, I look at the "Related" list on the sidebar and see questions that talk about the same question but have a title that's largely difference in words, although very close in meaning.  I know there's a "Similar Questions" list that appears while writing question body, but that's also based on text-processing, which seems to be the problem.  I suggest that, after the user adds the tags, a new "Questions that may already have your answer" list loads right above the "Post Your Question" button, and it depends not only the title and boy text, but also on tag association.  Hopefully it would be not very hard to implement, and would make users life easier.


We want to prove that $ \forall t, \dfrac{e^t + e^{-t}}{2} \leq e^{ \frac{t^2}{2}  } $  I thought to a convexity inequality. If $\psi$ is convex, $\dfrac{ \psi(a)+\psi(b) }{2} \leq \psi( \frac{ a+b }{2}  )$ or it may be the arithmetic-geometric inequality.


Why do some kind of black bands or lines appear when I'm just about to touch two fingers ?There is a second question too

I don't know if I can explain this well. The effect is best visible when you keep your hand in front of a light source. When I'm almost about to touch any 2 fingers (assume between your thumb and index finger), it appears as if a band of few black lines originate from the index finger and mysteriously reaches the thumb. Form the center of those lines ( which look concave in shape relative to the index finger) my skin kind of peels out. It feels like a bridge or interaction between the fingers. Can someone explain this optical phenomenon?   I just don't know how to type this on google. Note that index finger is alternative term for pointer finger.  Secondly, when I stare at a light source at night by painfully half closing the eyelids it appears like beams of light emerge from it. I'm seriously honest here. (especially street lights or even CFL's). Also I can see this beam always in one direction, for me in this case it is vertically up (j cap.) Then in the (-j cap ) direction the light ray appears but very feebly and multicolored. Now I can't be seeing light itself for the following reason:  seeing means photons hitting the retina. Seeing an object means photons bouncing off that object hitting our retina. By the same logic seeing light means photons bouncing off from 'light' and reaching our retina but photons don't repel each other or don't bounce off each other presumably due to their wave nature (practically light can't bounce off light). But there is this 2nd possibility that we simply see light ( photons) from the source itself but in that case when photon enters our eyes, we receive information carried by it but we have destroyed the object(the photon) we are looking at itself(as the retina has absorbed the photon). Conclusion : We can't see light itself  Also by logic it can't be dust particles scattering light because once I stop focusing I can't see light beams anymore. What am I missing? The reason I clubbed these questions is that they appear to be due to the same underlying principle if I am not wrong.  Any help is eagerly awaited here!!!!


Removing glow from behind and around trees

I've been editing a landscape image with lightning in the sky, and I've brought up the clarity and contrast in Lightroom to make it stand out more.  However, I end up with a noticeably brighter sky around trees on the horizon, as well as in between branches and such in the trees.  Most of the methods I've found online have messed up because of the trees on the horizon.  How can I make the sky on the horizon and behind the trees blend in?


When searching for answers on , I noticed a weird little framed box pop up in the results list:    The box turns out to be a MathJax box, and the code being displayed happens to be Perl code; apparently the $ sigils in the Perl code snippet are somehow interpreted as MathJax delimiters in Markdown, even though the code fragment is nested inside a code block. It therefore seems that the truncated preview text is insufficiently escaped.


I am trying to solve the following problem:  Show that for each $m\in \mathbb{N}$, there exists $n\in \mathbb{N}$ such that $x^2\equiv 1 \pmod n$ has at least $m$ solutions?  I figured that this is equivalent to showing that there is a sequence $n_1,n_2,n_3,\dots$ such that $$x^2\equiv 1 \pmod {n_1}\qquad x^2\equiv 1 \pmod {n_2}\qquad x^2\equiv 1 \pmod {n_3} \qquad\dots$$ Has an increasing number of solutions. By computation, I figured that this sequence could be $$n_1=2\qquad n_2 =2\cdot 3\qquad n_3 = 2\cdot 3 \cdot 5\qquad n_4 = 2\cdot 3 \cdot 5 \cdot 7 \qquad \dots $$ Now comes my trouble: I can't figure out why "adding" another prime in each step of the sequence makes more solutions appear. Can you help me?


Goal : Obtain a callback function that will take any type of parameters as the callback function's parameters  .h template <typename F, typename A> void DelayedCallback(F&& CallbackFunction, A&& Args = NULL);   /  .cpp void DelayedCallback(F&& CallbackFunction, A&& Args) {   //Timer function that received a function pointer to be the "callback"  function   Timer((std::bind(std::forward<F>(CallbackFunction), std::forward<A>(Args)))()) }   /  DelayedCallback(&HUDExit);  void HUDExit() {}   /  ERROR : DelayedCallback(FName,float,F &&,A &&)' : could not deduce template argument for 'A'   What am I doing wrong? I'm new to most of these concept in c++, more of c# programmer  EDIT : It's not only about the error, I'm pretty sure it's not the only one I am making.


Most efficient way to determine if values are strings

Usually, to detect a string field, I can just check to see if the first char is a string. For example:  >>> [str(v)[0].isalpha() for v in ['first', 'last']] [True, True]   However, sometimes I'll have database or other fields that are strings, but start with a number, for example "3D" is a field I've come across.  What would be the most performant way to check to see if all items in a list are strings?  Here are some examples:  ['1.0', 'test', '3d', '123,000.00', '55'] > False, True, True, False, False   Basically, I want to know if a value can be stored as a varchar field or needs to be converted to a non-string field.  It would be something like:  values = ['1.0', 'test', '3d', '123,000.00', 55] >>> [not re.sub(r'\,|\.', '', str(val)).isdigit() for val in values] [False, True, True, False, False]   Are there better ways to do this?


I had pork tongues and collard greens in the roaster oven. They cooked for over 2 hours at 225. Then the heat was off for 4½ hours. (and the lid was off momentarily) Face-palm.Then the heat was back on at higher temperature. If it matters, the meat was submerged in water with apple cider vinegar. Likely safe or don't risk it?


I have a funciton that I am currently using to show a hidden div.a_type  How can I modify this code so that instead of fading in the hidden div, I can add the new div to the DOM   jQuery(function(){   // Add Answer      jQuery(".add_answer").click(function(){       if(count >= "4"){         alert('Only 4 Answers Allowed');         }else{       var count = $(this).attr("alt");       count++;       $(this).parents('div:first').find('.a_type_'+count+'').fadeIn();       $(this).attr("alt", count);     }      });   });     Ok, now that i have this sorted out, i have one more question,  I have another function that removes the inserted div's if a button is clicked. It's not working now that the additional divs are not loaded into the dom on pageload. How can i trigger the function to remove these now?  jQuery(function(){   // Hide Answer  jQuery(".destroy_answer").click(function(){   $(this).parents("div:first").fadeOut(function (){ $(this).remove() });    var count = $(this).parents('div:first').parents('div:first').find('.add_answer').attr("alt");    count--;    $(this).parents('div:first').parents('div:first').find('.add_answer').attr("alt", count);  });    });


How to restore windows 10 after installing Ubuntu?

How do I get Windows 10 back?   I downloaded Ubuntu for my school project but instead of a dual boot, my windows 10 is gone and I cannot access my windows 10 anymore.   I would greatly appreciate some help with this issue.


So, I'm writing a mathematics paper, and let's say I have the following:  \begin{equation*} 2+2=4 \end{equation*}   Is this the proper way to do an unnumbered equation, or is it preferred to do the following:  \[ 2+2=4 \]   My question really is: what's the difference between doing \begin{equation*} and \begin{equation*} versus doing \[ \]? Is there a setting in which one may be preferred over the other?  Thanks in advance.


What are curves (generalized ellipses) with more than two focal points called and how do they look like?

An ellipse is usually defined as the locus of points so that sum of the distances to the two foci is constant. But what are curves called which are defined as the locus of points so that the sum of the distances to three foci is constant? Trilipse? And what about $n$ foci? $n$-lipse? How do these curves look like? Is there any literature about them?


Storing third-party libraries in source control

Should libraries that the application relies on be stored in source control? One part of me says it should and another part say's no. It feels wrong to add a 20mb library that dwarfs the entire app just because you rely on a couple of functions from it (albeit rather heavily). Should you just store the jar/dll or maybe even the distributed zip/tar of the project?  What do other people do?


Copying list of file from grep command to target directory

The command:  grep -rl "KORD" ./   searches a directory and returns a list of files containing "KORD" in the file contents (not the title).  Users-MacBook-Air:myPhotorec user$ grep -rl "KORD" ./ .//output_apikey.txt .//recup_dir.17/f13470392.txt .//recup_dir.49/f45361992.txt .//recup_dir.49/f45362424.txt .//recup_dir.53/f48768408.txt .//recup_dir.53/f49295480.txt   Is there a preferred command(xargs?) that augment the grep command to print the output file list to the console and copy each file to the a directory: ./ORD ?   I suspect that there is more than one way to 'skin a cat': I am looking forward to seeing more than one solution  JOHN1024's XARGS Solution  The duplicate label prevents posting this modified posting as answer:  Try:  grep -rl --null --include '*.txt' KORD . | xargs -0r cp -t /path/to/dest   Because this command uses NUL-separation, it is safe for all file names including those with difficult names that include blanks, tabs, or even newlines.  The above requires GNU cp.  For BSD/OSX, try:  grep -rl --null --include '*.txt' KORD . | xargs -0 sh -c 'cp "$@" /path/to/dest' sh   How it works:   grep options and arguments   -r tells grep to search recursively through the directory structure. (On FreeBSD, -r will follow symlinks into directories.  This is not true of  either OS/X or recent versions of GNU grep.) --include '*.txt' tells grep to only return files whose names match the glob *.txt (including hidden ones like .foo.txt or .txt). -l tells grep to only return the names of matching files, not the match itself. --null tells grep to use NUL characters to separate the file names. LINUX/UNIX tells grep to look only for files whose contents include the regex LINUX/UNIX . search in the current directory. You can omit it in recent versions of GNU grep, but then you'd need to pass a -- option terminator to cp to guard against file names that start with -.  xargs options and arguments   -0 tells xargs to expect NUL-separated input. -r tells xargs not to run the command unless at least one file was found.  (This option is not needed on either BSD or OSX and is not compatible with OSX's xargs.) cp -t /path/to/dest copies the directories to the target directory.  (-t requires GNU cp.)


Oracle XE 11g (ORA-12514: TNS:listener does not currently know of service requested in connect descriptor )

I have already seen the questioned in the stack overflow that might relate to my problem but let me emphasize that none of them could resolve my issue.  issue is: when I wanted to integrate OWASP WebGoat application with oracle XE 11g , I receive the above mentioned error.  connection URL in web.xml is:  jdbc:oracle:thin:@//localhost:1521/XE/${USER} ================================================================= listener.ora:  SID_LIST_LISTENER =   (SID_LIST =     (SID_DESC =       (SID_NAME = PLSExtProc)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)       (PROGRAM = extproc)     )     (SID_DESC =       (SID_NAME = CLRExtProc)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)       (PROGRAM = extproc)     )   )  LISTENER =    (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))       (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC)(PORT = 1521))     )   )  DEFAULT_SERVICE_LISTENER = (XE) ============================================================= tnsnames.ora:  XE =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC)(PORT = 1521))     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = XE)     )   )  EXTPROC_CONNECTION_DATA =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))     )     (CONNECT_DATA =       (SID = PLSExtProc)       (PRESENTATION = RO)     )   )  ORACLR_CONNECTION_DATA =    (DESCRIPTION =      (ADDRESS_LIST =        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))      )      (CONNECT_DATA =        (SID = CLRExtProc)        (PRESENTATION = RO)      )    )  =================================================================== java version:  java version "1.7.0_55" Java(TM) SE Runtime Environment (build 1.7.0_55-b13) Java HotSpot(TM) Client VM (build 24.55-b03, mixed mode, sharing) =================================================================== output of the lsnrctl services:  LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 09-MAY-2014 16:34 :07  Copyright (c) 1991, 2010, Oracle.  All rights reserved.  Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) Services Summary... Service "CLRExtProc" has 1 instance(s).   Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0          LOCAL SERVER Service "PLSExtProc" has 1 instance(s).   Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0          LOCAL SERVER Service "XEXDB" has 1 instance(s).   Instance "xe", status READY, has 1 handler(s) for this service...     Handler(s):       "D000" established:0 refused:0 current:0 max:1022 state:ready          DISPATCHER           (ADDRESS=(PROTOCOL=tcp)(HOST=Amir-PC)(PORT=2403)) Service "xe" has 1 instance(s).   Instance "xe", status READY, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0 state:ready          LOCAL SERVER The command completed successfully ===================================================================== output of the tnsping xe :  TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 09-MAY-2 014 16:35:19  Copyright (c) 1997, 2010, Oracle.  All rights reserved.  Used parameter files: C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora  Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE))) OK (0 msec) could some one please help me resolve this issue? I have been struggling more than 3 days and not found any useful answer yet.


Displaying coordinates and inputs as LatLon or LonLat?

I'm trying to get a sense if this is an issue for others or every input/output should be labeled so user is not confused and just go with it?  I think almost everyone pronounces it as "LatLon".    Who started it?    Is it because it's in alphabetical order compared to "LonLat"?    Mapping Lat and Lon to Cartesian plane Lon is "x" and Lat is "y" so since we say "(x,y)" it should be said as "LonLat".  And now for display of information.    Should the status bar on a mapping application display La,Lo or Lo,Lat?    Should it just be labeled as one way and let user deal with it?    And same with input, what's the right way to order the fields?  KML's format is Lon,Lat,Altitude.  While other apps is Lat,Lon and so have to be very vigilant about when converting formats.  Is there a standard?


Function continuous on every rational points but discontinuous on irrational points

Give an example of function which is continuous on every rational points and discontinuous on irrational points?


This question led to a new package:      How can I display the full path of the tex file that I compile? It is a simple file, no include or input present.  Edit: I use MiKTeX 2.9 on a Windows 7 64-bit.  Less demanding: If not possible, then I will be satisfied with a partial path (at least one or two folders up + the filename).


Where does the slang word "bad" + "ass" (badass) come from?

What is the origin of the word badass? Why a "bad" ass/"bad" + "ass"? What is an ass that is bad and how can an ass that is bad describe a tough person?


How quickly do objects summoned by Accio fly?

Is there a specific speed that Summoned objects fly at, and if so, what is it? If not, how is speed determined?


The product of $n$ consecutive integers is divisible by $ n!$ (without using the properties of binomial coefficients)

How can we prove, without using the properties of binomial coefficients, the product of $n$ consecutive integers is divisible by $n$ factorial?


How to make conditional to restart and end program?

I want to be able to make my if statement restart the program if "Yes" is inputted, end the program if "No" is imputed, and say "Capitalization is important" if neither "Yes" or "No" is inputted.   Scanner sc = new Scanner(System.in);     final String vowels = "aeiouAEIOU";     System.out.println("Enter your word:");     String word = sc.nextLine();     while (!word.equalsIgnoreCase("done"))     {         String beforVowel = "";         int cut = 0;         while (cut < word.length() && !vowels.contains("" + word.charAt(cut)))         {             beforVowel += word.charAt(cut);             cut++;         }         if (cut == 0)         {             cut = 1;             word += word.charAt(0) + "w";         }         System.out.println(word.substring(cut) + beforVowel + "ay");        Scanner keyboard = new Scanner (System.in);       System.out.print("Do you wish to convert another setence ");       String name = keyboard.nextLine();       if(name = "Yes"){           new Prog508a().launch;       }       if(name = "No"){       break;       }       else{       System.out.print("Capitalzation is important.");       }


Unexpected closing bracket with split php code

I'm receiving the following error:     Parse error: syntax error, unexpected '}', expecting end of file in /blah/blah/Edit.php on LINE_WITH_COMMENT   for this code inside my Edit.php view file.  <? $categories = $this->config->loader->getCategories();     foreach($categories as $category) { ?>    <?  $selected = $this->obj->category==$category ? 'selected' : ''; ?>         <option value="<?=$category?>" <?=$selected?>><?=$category?></option>     <?php } ?>  //ERROR IS HERE   But if I change <?php to the short open tag <?, the error goes away, and my script works as expected.  It works on my server with hostgator with <?php but on my local machine it's only working with <? and giving the fatal error if I have <?php.  From phpinfo() on the local machine: PHP Version 7.2.17-0ubuntu0.19.04.1  I've changed <?php to <? for now, but how can I fix this? I prefer not to use short open tags.


How can I get Custom Vanity Google plus URLs?

I see that Google and Blogger and maybe other have a customized Google Plus URL.  Ex:


Show that $f_1,...,f_n$ are constant if $|f_1|+...+|f_n|$ assumes a local maximum.

Consider a domain $G\subseteq \mathbb{C}$ and $f_1,...,f_n: G\rightarrow\mathbb{C}$ holomorphic functions, such that the sum $|f_1|+...+|f_n|$ assumes a local maximum in $G$. I am trying to show that $f_1,...,f_n$ are all constant in $G$. As $|f_1|+...+|f_n|$ assumes a local maximum, there is a $z_0\in G$ such that $|f_1(z)|+...+|f_n(z)|\leq|f_1(z_0)|+...+|f_n(z_0)|:=M$. So $|f_i|\leq M\ \forall i\in\{1,...,n\}$. Now I tried to use the Maximum principle for holomorphic functions, which tells me that a holomorphic function $f:G\rightarrow \mathbb{C}$ is constant if $|f|$ assumes a local maximum for a $z_0\in G$. The problem is, I know that $|f_i|$ are bounded, but I do not know if they assume a local maximum, so I doubt I can use the Maximum principle for holomorphic functions here. Any hint would be highly appreciated. Many thanks in advance.


Repercussions when a flag gets declined?

I was wondering since i flagged this  for being low quality and got this response:     declined - flags should only be used to make moderators aware of content that requires their intervention   Does declined flags cause any form of repercussion?


Arithmetic and geometric sequences: where does their name come from?

Where does the name of these two famous types of sequences come from?  The article  of Wikipedia says that the geometric sequence is called like this because every term is the geometric mean of its two adjacent terms. Though it is true, it only reduces the question to: why is the geometric mean geometric (in opposition to the arithmetic mean).   Continuing my investigation on , I was told that a square with the same area than a rectangle with sides $a$ and $b$ has their geometric mean $\sqrt{ab}$ for side. That's again totally true, but a square with same perimeter than this rectangle of sides $a$ and $b$ has their arithmetic mean $\frac{a+b}{2}$ for side!  Thus, my question: Who coined these names? And why? Why is the geometric mean more geometric than the arithmetic mean?


Why an HTML element retrieved from another page with AJAX doesn't respond to scripts?

Well, i have this problem with a larger script but I will make it simple  Let's supouse this is my script  $("a").click(function(){    alert("test"); });   So, everytime someone click on an hyperlink, it will alert the user.  But when i retrieve an  element from another page with AJAX, the script isn't activated when someone click on it.  Does anyone knows? Thanks


Should comma be used in sentences like "Hello, Michael" / "Hello Michael" ?  For example, there is a wikipedia article  (with comma), but it mentions two different books, a band, and two albums, all called "Hello Sailor" without a comma.  The  seems to suggest a comma, but it is not clear from the text whether it is necessary if "Hello (comma?) Michael" is a complete sentence.


Correcting for multiple kruskal wallis tests

I am running a kruskal wallis test a number of times (37) and wanted to know if I have to adjust the p-values of the kruskal tests before I look any further into the post hocs?


Why isn't the law of entropy applicable in the other direction of time?

If we have a system with the total energy concentrated in a few particles as the initial condition, law of entropy says that this energy will get more evenly distributed if the system is allowed to evolve using the laws of physics. If I take a box of gas right now as my system, the energy of the gas being concentrated in some molecules, I do observe that energy getting more evenly distributed over time. BUT, let's suppose I change the initial condition a bit. Consider a system identical to the above but with each particle having initial velocity in the opposite direction compared to the above system. Now we have a different initial condition. But the energy is still concentrated in a small number of molecules. After all, I've only reversed the directions of the individual velocities. The $1/2mv^2$ values remain the same, for each molecule. On one hand, law of entropy says that the energy of this system still gets more evenly distributed, as time passes (as the system initially has a lopsided distribution of energy) On the other hand, reversing the velocities is, in effect, the same as reversing the flow of time. Watching this system evolve in forward time should look the same as watching the original system evolve in reversed time. So this would mean that the entropy of this system should decrease over time, as that's what we witness when we reverse a video clip. This means the energy of this system should get less evenly distributed as time passes. Which of these conclusions is correct and why??


How to do joins in LINQ on multiple fields in single join

I need to do a LINQ2DataSet query that does a join on more than one field (as  var result = from x in entity join y in entity2         on x.field1 = y.field1  and            x.field2 = y.field2   I have yet found a suitable solution (I can add the extra constraints to a where clause, but this is far from a suitable solution, or use  solution, but that assumes an equijoin).  Is it possible in LINQ to join on multiple fields in a single join?  EDIT  var result = from x in entity              join y in entity2              on new { x.field1, x.field2 } equals new { y.field1, y.field2 }   is the solution I referenced as assuming an equijoin above.  Further EDIT  To answer criticism that my original example was an equijoin, I do acknowledge that, My current requirement is for an equijoin and I have already employed the solution I referenced above.  I am, however, trying to understand what possibilities and best practices I have / should employ with LINQ. I am going to need to do a Date range query join with a table ID soon, and was just pre-empting that issue, It looks like I shall have to add the date range in the where clause.  Thanks, as always, for all suggestions and comments given


Trouble accessing Google Drive from file manager

In response to possible duplicate question: I am trying to get access to my Google Drive files via the file manager. I am not trying to find and install a Google Drive client. I'm just talking about being able to access my Google Drive files from the files manager. I understand that this means no sharing links and the like.   I'm running the Cinnamon desktop environment on Ubuntu 16.04. I have followed all instructions to install Gnome Control Center and Online Accounts. It appears my Online Accounts has connected to the Unity Control Center, but when I try to run  ~$ gnome-control-center online-accounts   To access my Online Accounts settings, I get these warnings:  ** (gnome-control-center:5834): WARNING **: Ignoring launcher gufw (missing desktop file)  ** (gnome-control-center:5834): WARNING **: Ignoring launcher landscape-client-settings (missing desktop file)  ** (gnome-control-center:5834): WARNING **: Ignoring launcher ubuntuone-installer (missing desktop file)  ** (gnome-control-center:5834): WARNING **: Could not find settings panel "online-accounts"   I have already gone through and installed Gnome Control Center and rebooted. If I use the sudo apt-get to try and install it again, I get:  Reading package lists... Done Building dependency tree        Reading state information... Done gnome-control-center is already the newest version (1:3.18.2-   1ubuntu6). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   I'm rather new to Linux in general, but I've searched high and low and nothing has shown me anything beyond the basic how-to install Gnome Control Center bits. I have no idea why the terminal wouldn't be able to find what it needed. Please let me know if you need any more information about my setup. Like I said, I'm rather new, so I don't know what would be helpful.  EDIT:  I found an answer elsewhere that answered my question. I needed to run the command under the Gnome desktop, I guess? by adding:  sudo XDG_CURRENT_DESKTOP=GNOME gnome-control-center   It worked flawlessly.


To disallow indexing the category and tag listings in a blog

Mark Wilson says that category and tag listings in a blog should be disallowed in order . I understand this.   However, I want to put internal links on keywords in the blog posts to the tag and category pages in order for the readers to find more relevant content.  I wonder whether putting those internal links to the category/tag pages which are disallowed in robots.txt is counted as useful from the perspective of SEO internal linking?


How install Ubuntu on already existing Ubuntu partition

I have a laptop running Windows 8 and Ubuntu 12.10 but I have issues with installing programs in Ubuntu and the only option is to reinstall. I do not want to format my laptop, i.e. my Windows 8 should stay.  My desire is to install Ubuntu afresh on the partition where it is now without further partitioning. How do I install over the existing installation?  This question was flagged a duplicate but I the other post on a similar did not address my issue.  Sorry for the confusion guys. The link was really helpful.  many thanks.


I'm trying to create a pagination system in PHP. However, my products are loaded from exact so I can't use SQL. What i was thinking is that i would have to put all the items in an array, count that and then create the pagination system. The pagination system isn't the problem, but i can't seem to find a way to count my items properly using the above stated method.  Do note that exact only gives 60 results, so i had to create something that it retrieves all the results which i implemented in the code below.  My current code:          echo "
";     $offset = 0;     $run=true;     $search="";     $row_count = 0;              while($run== true){             $glas = getGLAccounts($search,$offset);             $count2 = 0;             $offset=$offset+30;              foreach($glas as $gla){               $row_count++;                 if ($row_count==1)           echo "
";           echo( "
".           "
".           "".$gla['Code']."
           ".$gla['Description']."
           &euro;".$gla['CostPriceStandard']."
           Toevoegen	"           );                 $count2=$count2+1;               if ($row_count==3) {           echo "
";           $row_count=0;               }             }             if($count2<30) {           $run=false;         }         }         if ($row_count>0) {       echo "
";     }     echo "
";   $glas gets all the items but when i count glas. It counts 60 items, but keeps putting 60 on my screen which is probably because i count in a while loop. In the foreach loop it puts a bunch of 1s.  Now my question is, what is the proper way to put my items in an array and count them? And where to put it?


Word for sentences that make sense when read backwards?

Is there a word for sentences that make sense when read normally or backwards (not necessarily by reversing the words)? Example:     "Are you as bored as I am?"


My house came with a lovely 36" Viking propane range that's now 20 years old, and starting to die. Replacing it would be expensive. Exorbitantly, and infeasibly expensive.  Replacement 36" ranges are pretty pricy - even the low-end ones, and I could put in a very high end 30" for less than the cheapest 36".  But - what to do about that extra 6", and are there any other issues I'm missing? The range is in the middle of the counter, so I can't just ignore the gap.


How to decide which lens to buy ND filter for?

I am an amateur photographer, I have Nikon D7500 and three lenses, which are: 1) 10-20mm wide-angle lens (f4.5-5.6) - filter attachment size: 72mm 2) 35mm f1.8 - filter attachment size: 52mm 3) 18-140mm (f3.5-5.6) - filter attachment size: 67mm and as you can see here, all lens has different filter attachment size, and cannot buy 3 ND filters, please help me to select which one to buy for so I can take long-exposures shots at day-time for landscape, seascape, and cityscape. Thanks


For a multivariate data set, I test normality on the marginals, and I get plots like  above.  That's not my actual plot.... mine is not that obvious, the middle part is actually quite straight.... but the sharp decline/rise near the ends is the same as in my plots.  So, what does this tell us. Which model, if not the multivariate normal, should I use?


Is there a command line or a  tool in Ubuntu to "Find & Replace" a word in a 80mb file that accours about 150000 times?   I want to replace http://www.old-domain.com/subfolderA with http://www.new-domain.com/subfolderB  I tried it with gEdit and Atom but both crashed.


Mcrypt extension is missing in 14.04 server for mysql

The php mcrypt extension on ubuntu 14.04 shows that it is installed properly, but phpmyadmin says:   The mcrypt extension is missing. Please check your PHP configuration.   My current php config is . If you need anymore information, please contact me through the comments.  $ sudo apt-get install php5-mcrypt     Reading package lists... Done     Building dependency tree            Reading state information... Done     php5-mcrypt is already the newest version.     0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


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


Does the Joker say he loves Harley Quinn?

Does the Joker ever say, directly or indirectly, that he loves Harley Quinn? I know people say that he doesn't and he just uses her, and on the other half their relationship is described as mad love, but does the Joker ever say anything to confirm feelings for Harley Quinn? (I'm not looking for a sign of affection, just him actually saying he loves her or has strong feelings for her)


I want to extract numbers from a list with strings

I have a list which contains strings: list = ['string', 'string', 'string', ...] Those strings are like: 'NumberDescription 33.3' I want to extract only the numbers without the 'NumberDescription' part.  I've tried it with regex and the filter function with re.match. But this results in an empty list.  dat_re = re.compile(r'\d+.\d')   dat_list = list(filter(dat_re.match, list))   As I said, I only want the numbers from the list and in a last step, I want to convert the elements of the list into floating numbers.


Is this proof correct for : Does $F(A)\cap F(B)\subseteq F(A\cap B) $ for all functions $F$?

Is this proof correct? To prove $F(A)\cap F(B)\subseteq F(A\cap B)  $ for all functions $F$.  Let any number $y\in F(A)\cap F(B)$. We want to show $y\in F(A\cap B).$ Therefore, $y\in F(A)$ and $y\in F(B)$, by definition of intersection. By definition of inverse, $y=F(x)$ for some $x\in A$ and $x\in B$ And so, $y=F(x)$ for some $x\in A\cap B$ And therefore, $y\in F(A\cap B)$  I have a gut feeling deep down that something is wrong. Can anyone help me pinpoint the mistake? I am not sure why am I having so much problems with functions. Am I not thinking in the right direction? Sources : 2nd Ed, P219 9.60 = 3rd Ed, P235 9.12, 9.29 - Mathematical Proofs, by Gary Chartrand, P214 Theorem 12.4 - Book of Proof, by Richard Hammack, P257-258 - How to Prove It, by D Velleman.


The following program swaps two elements in an array. But it does not seem to run, but I am sure that I am not doing anything wrong.  public class swap {      public static String[] swap(int first, int second, String[] A) {         String hold = A[first];         A[first] = A[second];         A[second] = hold;         return A;     }      public static void main(String[] args) {         String[] B = {"Dawn", "Justice", "Of"};         String[] c = swap.swap(1, 2, B);         System.out.print(c);     } }


Travelling to New Zealand on visa waiver while work visa is pending

My wife (a doctor) has the opportunity to work in NZ for several months from a negotiable point in July, and as such has applied for transfer of her medical registration to the NZ medical body, and is in the process of applying for a work visa.  On an non-related basis we were planning a holiday from the start of July to NZ, and as such we already have flights booked for the 27th of June.  It just happened that the opportunity to work came up separately.  As the medical registration will take the next week to finalise (20 days to complete), and the work visa can't be applied for until that has been done, the work visa is unlikely to be issued prior to us departing for NZ on the 27th (it takes 25 days).  We are both UK citizens, and as such can travel to NZ on a visa waiver basis for a holiday visit.  We have enough funds to support a long term holiday, as we were intending on touring NZ and Australia at the same time.  We also seem to be eligible for an electronic visa from NZ, so there shouldn't be any issue with a passport being out of our possession for travel.  I will remain on my holiday visa for the duration, I have no intention to work and I have ample funds for this.  So my question is: if we present ourselves to NZ immigration on arrival with the truth (entering on a holiday visa, work visa pending, if work visa isn't issued then we are happy to carry on with our holiday, otherwise my wife will start work under the work visa) are we likely to encounter any difficulties?  Update:  As it turns out, both the medical registration was completed and the visa was issued before our travel date, so we never got to test this scenario - my wife entered New Zealand under a working visa.


Lost All Files in a folder because of undo on my mac

What just happened? I have a flash drive of mine with a lot of school files that I just planned on doing a format. So before I went to Disk Utility then erasing it to the format I wanted, First I backed-up all its files by creating a new folder on my desktop then just copy pasted all my files from the flash drive to this new folder I just created. Afterwards, I went on erasing my flash drive therefore losing all it's files but It's okay cause I did a backup anyways.   Now when I was just about to put the the files from the new folder to the newly formatted flash drive, I was about to select all by doing shortcut command "command + a" I accidentally pressed "command + z" instead doing an undo and all the files were lost! After that, finder doesn't even allow me to do a redo!   Please help those are a lot of important files now they're all gone in just 1 second and they're not even in the trash. I did a spotlight search of some files I can remember but I still can't find one!


Automatically launch app on USB (through autorun?)

Is it possible to automatically launch an application from a USB flash drive (bypassing windows prompt asking user what he wants to do)? on windows XP or vista.  I looked into "autorun.inf" and "open" entry seems to work only for CD drives for Windows XP SP2+ and Vista. Is it possible to launch program automatically on all windows versions?  I don't care if autorun is disabled by user in Windows settings.


I am trying to get the release version of Red Hat and SUSE servers based on input from admin server which has passwdless authentication to all servers. I am neither getting error nor output, below is the code   version() { SERVERS='/HOME/servers'  read -p $'Enter the server name:\n' server_name EXIST=`cat $SERVERS|grep -i $server_name|wc -l` if [ $EXIST -gt 0 ];then RELEASE1='ssh -q -o "StrictHostKeyChecking no" "$server_name" cat /etc/issue' COUNT1=`ssh -q -o "StrictHostKeyChecking no" "$server_name" cat /etc/issue|wc -l` VERSION1=`ssh -q -o "StrictHostKeyChecking no" "$server_name" cat /etc/issue|awk '/Red/ && /Hat/'` COUNT2=`ssh -q -o "StrictHostKeyChecking no" "$server_name" cat /etc/issue|awk '/Red/ && /Hat/'|wc -l`  if [[ -f $RELEASE1 && -s $RELEASE1 ]];then     if [ $COUNT1 -gt 0 ];then         echo -e " $RELEASE1 "     elif [ $COUNT2 -gt 0 ];then         echo -e " $VERSION1 "      else         echo "                  "  fi   else         echo "                  "  fi


Returning incorrect values of floor function in C++

The code:     cout << log(25.0/9.0)/log(5.0/3.0) << endl << floor(log(25.0/9.0)/log(5.0/3.0));  results: 2 1  Why does C++ considers floor(2) = 1? What I tried: When saving the fraction in a float it returns the correct value: float a = log(25.0/9.0)/log(5.0/3.0); cout << a << endl << floor(a);  results: 2 2


Construction of a triangle with given angle bisectors

given three distinct lines $g,h,l$ meeting in one point $P$. I want to construct a triangle with vertices on $g,h,l$ such that those lines $g,h,l$ become its angle bisectors.  In general, if we consider a triangle $\Delta(ABC)$ with angles $\alpha,\beta,\gamma$ whose angle bisectors meet at a point $P$, then I recognized the following relations between the angles:  $$\angle (APB)=\frac{1}{2}(\pi+\gamma), \angle (BPC)=\frac{1}{2}(\pi+\alpha), \angle (CPA)=\frac{1}{2}(\pi+\beta).$$  Now suppose we choose points $C,C'\in g$ on different sides of $g$ with respect to $P$ and let $Q\in l,R\in h$ such that $C'$ lies in the interior of the angle $\angle (QPR)$. I started the construction as follows:   Construct the angle $\angle (QPR)-\pi/2$ on one side of $g$ at the point C. Then we get a intersection point $A$ with the ray $\overrightarrow{PQ}$.  Construct the angle $\angle (QPR)-\pi/2$ on the other side of $g$ at the point C. Then we get a intersection point $B$ with the ray $\overrightarrow{PR}$.  Now connect the points $A,B$   But now I'm worried about the angles at $A,B$. I do not know if the angles have the right size and the lines $l,h$ through $A,B$ are indeed angle bisectors? Maybe my construction is wrong. Do you know how to do it right?  Best wishes


How can I use less disk space on system storage?

When I look at my storage chart about 100 GB is devoted to system storage. Is there any way to clear some space from the system folder and if so how?