Find out which way to rotate based on current rotation and final rotation

I have one object that I want to rotate to a certain angle with 'smooth' rotation. I looked up  on how to solve that and I came up with this:   But how do I know in what way to rotate, positive or negative? According the the picture on ex. 1, I need to rotate positively because it is the closest way for me to rotate. And on the second it is the negative way. But how do I know this? I've tried several solutions but I can't seem to find anything that is correct.


What does "thank you for getting it" mean in daily English?

My question is about "getting it". Does it mean to thank sb. for his attaining sth.? Or, does it mean to thank sb. for settling sth.？Or, to thank sb. for understanding eth.?


When I try to compile and install HTK, it produces the following error:  HTK is now ready to be built.  Type "make all" to build the HTK libraries and tools.  Then "make install" to install them.  The tools will be installed in /usr/local/bin  Build notes: Language Modelling tools will be built. HDecode will not be built. You can build it manually later by running 'make hdecode install-hdecode'  ************************************************** user@EESBLRP105:~/htk$  make all  (cd HTKLib && make HTKLib.a) \       || case "" in *k*) fail=yes;; *) exit 1;; esac; make[1]: Entering directory `/home/user/htk/HTKLib' gcc  -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I. -DPHNALG   -c -o HGraf.o HGraf.c In file included from /usr/include/stdio.h:27:0,                  from HShell.h:40,                  from HGraf.c:54: /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory  #  include <sys/cdefs.h>                          ^ compilation terminated. make[1]: *** [HGraf.o] Error 1 make[1]: Leaving directory `/home/user/htk/HTKLib' make: *** [HTKLib/HTKLib.a] Error 1


How can I make my typing "stick" to box side?

I'm using Photoshop CS6 and I'm trying to get the typing aligned with the box, kind of 3D like. I cannot seem to find the effect, I'm sure its simple.  Any help?


I would really appreciate some help solving this induction problem!!

$3.$ for all $n\ge1$, $\displaystyle\sum_{i=1}^n(2i)^2=\frac{2n(2n+1)(2n+2)}{6}$   I have $$\frac{2n(2n+1)(2n+2)(12(n+1)^2)}6= \frac{2n(2n+1)2(n+1)12(n+1)(n+1)}6.$$ I think I need to do something with the $(n+1)$.  However, I'm not sure where to go from here. I know the end goal is: $$\frac{2(n+1)(2(n+1)+1)(2(n+1)+2)}6.$$  Any help is appreciated!


Highly-viewed question closed as not constructive after 2 years

I asked this question,  (10k-only link), Sep 10th, 2010. It was closed Oct 23rd, 2012. How can it be closed two years after the fact? Is there no rule for grandfathering in early questions?  (I rarely go on SO, and just noticed it today.)


$\lim\limits_{n\to \infty}\frac{n^k}{2^n}$ without l'Hopital

Let $\varepsilon >0$. Let $N>?$. For any integer $n>N$ we have $$\frac{n^k}{2^n}<\varepsilon.$$ I don't know how to proceed here sensically.  I'd say we have to start with  $$<\frac{n^k}{2^N}$$  But what do we do here about the $n^k$?  Remember, I don't want to use l'Hopital or for me unproven limit laws like "exponents grow faster than powers"  Also, I don't want to use hidden l'Hopital, i.e. argumenting with derivatives. Since we don't even have proven derivative laws.


Incorrect relative node position in axis environment

I would like to draw a path in a graph plotted with pgfplots, using relative (++) coordinates. The following code compiles without any error, but the points are not at the desired position:   \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest}  \begin{document}  \begin{tikzpicture}     \begin{axis}      \addplot{x^2};      \draw (1,2) --++ (0,1) --++ (1,0) --++ (0,1); % This should result in a staircase     \end{axis} \end{tikzpicture}  \end{document}    Any idea of what causes this problem?


My son just bought a house in Charlotte, NC which was built in the 1960's. Is Aluminum Wiring and Pig tailing acceptable to Code in Charlotte, NC?


How do I escape the underscore character?  I am writing something like the following where clause and want to be able to find actual entries with _d at the end.  Where Username Like '%_d'


How does $(12\dots n)$ and $(a\, b)$ generate $S_n$?

I know that $S_n$ is generated by a number of things, like all transpositions, all transpositions of the form $(1\,a)$, the transpositions $(1\,2),(2\,3),\dots,(n-1\, n)$, and  just the two elements $(123\dots n),(1\,2)$.      Suppose $n$ is prime. If you just have $(123\dots n)$ and some arbitrary transposition $(a\, b)$, how does this also generate $S_n$?    Can you somehow get to $(1\,2)$ or reduce it to some other previous case?


How should I approach people to take their portrait?

I recently saw a photographer's project on-line, where he takes 1 portrait each day of a total stranger. The project along with countless hours of looking at Steve McCurry's work sparked some interest in me to take on a little bit of portraiture.  One Question though. What approach should one employ, to ask a complete stranger to have their portrait taken?.


Capitalization rules when the sentence begins with a number

The context is about work progress. Planned work is 100%. Someone implemented only 45% of the work.      45% of the work was implemented.   The sentence begins with the number. Please write whether we capitalize the first letter after the number? Is it normal in English if a sentence begins with a number?


Best practices to do frequent disk log writes

I am developing a windows service in C# which will likely write several times per second to a log. I am currently using System.IO.File.AppendAllText(time + message) for each operation and I am concerned so many writes may wear out the disk quickly.   Could this be a problem? Should I use a stream and flush every few seconds? Does the windows disk buffer protect against this?


Did Sidious know the secret of cheating death?

In Star Wars: Revenge of the Sith, Chancellor Palpatine tells Anakin the tale of Darth Plagueis the Wise. He told Anakin that if he joined the dark side he could save the people he loved from death by extending their midichlorian count, just as Darth Plagueis had done (obviously more subtly than that).  When Anakin asked what had happened to Plagueis, Palpatine says:      Unfortunately, he taught his apprentice everything he knew. Then his apprentice...killed him in his sleep.   It is revealed (not in the movie) that it was Palpatine himself that was Plagueis' apprentice  After Anakin and Palpatine kill Mace Windu, Palpatine says,     To cheat death is a power only one has achieved, but if we work together I know we can discover the secret.   This implies that Palpatine doesn't already know the secrets but if Plagueis taught him "everything he knew" then surely he would have.  So did Sidious know the entire time or was "everything he knew" an exaggeration?  Just to be clear when I say "cheat death" I only mean extending someone's midichlorian count, not "transfer essence" or anything else like that.


The sentence   I marveled that you chuckled that I said "juxtaposition".   suffers from "that" overload. We'd all agree.  It's easy to slim either 'that'. Hence either   I marveled you chuckled that I said "juxtaposition". I marveled that you chuckled I said "juxtaposition".    sounds fine.  Does any rule prevent us from going all the way and discarding both?   I marveled you chuckled I said "juxtaposition".


Passing input/output parameters to processing scripts using QGIS 3?

In the new qgis3 version it is still possible to add your own processing scripts to the processing toolbox. As I understand the discussion between the qgis3 developers (qgis3 is a very good work!!) the  way of passing input and output parameters has changed because the former way is not that pythonic, which is true. In qgis2.x input and output parameters were defined at the top of the script with a double # (comment) like:  ##parameter1=file ##result=output raster python code...   I've searched several hours in different forums, lists and so on, with no success how to start here and define input and output parameters...does anybody know where to get a documentation or example?


Is there any Document Management System in Ubuntu?  I tried Alfresco, RavenDB, Owl, Document Manager.  Alfresco, RavenDB are heavy. More than my requirements. Owl having source issues. Document Manager im trying to install.    Should keep data on the same machine as I am looking for more of internal purpose. Should allow to upload Zip files as well. If it extracts Zip it will be a great + Should allow to send email to preconfigured email addresses Should allow to upload data of size around 100MB at one go Should maintain history of documents also deleted documents Should allow role based document access. Should be Free :) It should not do any spoofing on data. Documents are confidential.   Please share your knowledge. Thanks.


I've a 500GB Disk with Linux and Windows installed. I've given 30GB to Linux. So windows has 470GB now. How to increase the space of 30GB of Linux in Ubuntu from the 470GB windows?


sorting list based on value of key in dictionary items

I have list containing dictionary items , I am generating a html table the part is working but I want to sort in the precedence order of filetype followed by tool name. [    {       "new_version": 21.0,        "project": "translator",         "old_version": 20.0,        "datetime": "07/21/20/15:49:37",        "filetype": "json"     }, ]  if I try to sort the list using sorted it doesn't work.


What is the difference in ASP/VBScript between Int() and CInt()?


In php exec function can't put a variable's value in an INSERT statement

I'm trying to add a row to my table video_games by using the value of a $_GET like this:  $yourname = $_GET['yourName'];  $bdd->exec('INSERT INTO video_games(name, owner, console, price) VALUES($yourname, \'Patrick\', \'PC\',45)');   But I get this error:     Unknown column $yourname in field list   I tried several other solutions like $name or name or 'name' instead of $name. But I can't have the value of $_GET to be inserted.   I have also checked other posts and I did not find any solution, yet it should be a famous question.  To make it simple, the problem is: How to put the value of a variable in an INSERT statement using the exec() function ?  Thanks.


I have enum:  public enum Days {     Monday = 1,     Tuesday = 2,     Wednesday = 3,     Thursday = 4,     Friday = 5,     Saturday = 6,     Sunday = 7 }   I use this enum to insert value as int as ID into database. But how can I "map" enum Days with that database IDs while I am retrieving value from database to show name of days instead of that database ID in my view?  For example I have a list of data shown, and currently I have DayId and ID shown, but how can I map this ID to show enum text (Monday, Tuesday,...) instead of ID(1,2,3..) ?


I have found warm water to be a great way to quickly defrost meat and fish as opposed to just letting it sit outside the freezer, which is what my mom does.  But I wonder if there are any negative side effects to the method, as in, for example, compromised taste or compromised food safety.  I do understand that the water shouldn't be too hot as to avoid actually cooking the frozen food.


Does the word, ‘peruse’ have a single meaning of ‘attentive reading,’ or double, contradicting meanings of ‘attentive’ and ‘cursory’ reading?

I’m confused to find opposite definitions in the same word, ‘peruse’ in Readers English Japanese Dictionary published by a leading foreign language dictionary publisher in Japan. It defines ‘peruse’ as:     vt.          Read carefully and attentively. Examine carefully.   Read cursorily, quickly.      As I thought ‘read carefully’ and ‘read cursorily’ are contradicting definition, I checked OALED. It defines ‘peruse’ singly as:      vt. to read sth. especially in a careful way.   Oxford Online English Dictionary single-mindedly defines ‘peruse’ as:         read (something), typically in a thorough or careful way:   examine carefully or at length:      with a specific note:     Note that peruse means ‘read’, typically with an implication of   thoroughness and care. It does not mean ‘read through quickly; glance   over’, as in documents will be perused rather than analyzed   thoroughly.   Cambridge Online English Dictionary similarly define ‘peruse’ as:     to read through something, especially in order to find the part you are interested in:    However, Merriam-Webster English Dictionary comes with dual meanings of ‘attentive reading’ and ‘cursory reading, or skimming.’     a: to examine or consider with attention and in detail.      b: to look over or through in a casual or cursory manner.    Obviously, both Oxford (including OAELD) and Cambridge English Dictionary give a single meaning of ‘attentive reading,’ and both Merriam-Webster and Readers Dictionary give dual meanings of “attentive and casual reading.”  What is the absolute interpretation of the meaning of ‘peruse’? If it has a single meaning - only attentive reading -, there’s no problem. But if it has dual meanings as seen in Merriam-Webster and Readers Dictionary, how can I find which way the word is used in mutually conflicting meanings of ‘deep-reading’ and ‘quick-reading’ in the context?  In other word, how can I tell whether the sender wants me to make a thorough and meticulous study of his writing, or to have just a quick run-through when he sends it to me with a note, “for your perusal?”  Addendum:  I checked American English dictionaries at hand, which again come in both a single and dual definition(s).  Oxford American English Dictionary (1980) defines ‘peruse’ singly as to read or examine printed material, especially with great care.  Webster’s New World Basic Dictionary of American English (1998) defines the word separately as; 1. to read through carefully as in peruse report on employment.  2 to read in a casual way as in peruse the Sunday paper.  In net, four English dictionaries provide a single definition purporting ‘attentive reading,’ and three other dictionaries provide dual meanings of ‘attentive’ and ‘cursory’ reading. However, all three Oxford brand dictionaries adopt uniformly a single ‘attentive reading’ interpretation.


What will be the circumference of circle in this question?

i solved this question but my answer is not exactly as given in options of the question. so please give full solution and exact answer as in given in image.  "six circles each of unit radius are being circumscribed by another larger circle. all the smaller circles touch each other. what is the circumference of the larger circle."  answer is 4 root 3 pie centimeter  Thanks


What are the potential pitfalls of having a PhD?

This question follow's JeffE's comment :     In most industries, a PhD has negative value.   I am curious about what potential negatives there may be with having a PhD, particularly in industries.  For example, my PhD has applications for image sensors, and the potential of working in that field is appealing—would having a PhD be a potential barrier? Would it be a case of how explicit the practicalities of the PhD can be made?  Would this make any difference?


Why would changing a light bulb cause the oven heat and control to fail?

I recently replaced the bulb on my oven. However I did put back the insulating looking ring. I pushed the oven light button while baking nachos. I heard a pop and the heat went out as did the light and digital display that shows temp, time... The burners still work though. New wires inside needed? New fuse? Can someone please help!


If $f \in {\mathcal{C}}_c({\mathbb{R}}^n)$, then $f$ is uniformly continuous

If $f \in {\mathcal{C}}_c({\mathbb{R}}^n)$, prove that $f$ is uniformly continuous on ${\mathbb{R}}^n$. I think I have to consider $g = f\big|_{\mbox{supp} f}$ because $g$ is uniformly continuous on $\mbox{supp} f$, by Heine-Cantor theorem: $\mbox{supp} f$ is a compact set in ${\mathbb{R}}^n$ and $g$ is continuous on $\mbox{supp} f$, because $f$ is continuous on ${\mathbb{R}}^n$. But what about $f$ on ${\mathbb{R}}^n$? Mi thought is the next: fix $\varepsilon > 0$. By the continuity on $x \in {\mathbb{R}}^n$, exists ${\delta}_x > 0$ such that if $y \in B(x , {\delta}_x)$, then $f(y) \in (f(x) - \varepsilon , f(x) + \varepsilon)$. Then ${\{B(x , {\delta}_x)\}}_{x \in \mbox{supp} f}$ is an open cover of $\mbox{supp} f$. By the compactness of $\mbox{supp } f$, exists a finitely cover ${\{{\mathcal{O}}_j\}}_{j = 1}^m$ such that $$ \mbox{supp } f \subset \bigcup_{j = 1}^m {\mathcal{O}}_j \subset \bigcup_{x \in \mbox{supp } f} B(x , {\delta}_x)\mbox{.} $$ Now I can't finish my argument. Thank you very much.


Countable axiom of choice: why you can't prove it from just ZF

This is a follow-up question to the discussion about the finite axiom of choice .  Suppose we have a countable collection of non-empty sets $\{A_1, A_2, A_3,\cdots\}$ Reasoning as indicated in that discussion, we can prove the existence of a choice function $c_n$ such that $c_n(i)$ belongs to $A_i$ for $i = 1,\cdots,n$  Again reasoning as suggested and using induction, we can prove the existence of a function $C$ defined over $\{1, 2, \cdots\}$ such that $C(n)$ is a choice function defined for $i=1,\cdots,n$ with $C(n)(i)$ an element of A_i. We can require in addition that $C(n)(i)$ and $C(n-1)(i)$ are equal for $i=1,\cdots,n-1$.  Now it would it seem that we can prove the countable axiom of choice by taking the union of $C(1)$, $C(2)$, $\cdots$  The question is as follows: why is that proof wrong? I suspect the answer may have something to do with the axiom of union.


Standardizing data in Principal Component Analysis?

Since PCA is sensitive to scaling, I am thinking of standardizing each explanatory variable to have mean 0 and standard deviation 1. What are the drawbacks of such a standardization? Thank you.


Why doesn't pressing enter return '\n' to getch()?

#include <stdio.h> #include <conio.h> main() {     char ch,name[20];     int i=0;     clrscr();     printf("Enter a string:");     while((ch=getch())!='\n')     {         name[i]=ch;         i++;     }     name[i] = '\0';     printf("%s",name); }   When I give "abc" as input and if I press enter it's not working. Can anyone let me know why the condition ch=getch() != '\n' is not becoming false when I press enter? I have also observed that ch is taking \r instead of \n. Kindly let me know. Thanks


Why can't I define a default constructor for a struct in .NET?

In .NET, a value type (C# struct) can't have a constructor with no parameters. According to  this is mandated by the CLI specification. What happens is that for every value-type a default constructor is created (by the compiler?) which initialized all members to zero (or null).  Why is it disallowed to define such a default constructor?  One trivial use is for rational numbers:  public struct Rational {     private long numerator;     private long denominator;      public Rational(long num, long denom)     { /* Todo: Find GCD etc. */ }      public Rational(long num)     {         numerator = num;         denominator = 1;     }      public Rational() // This is not allowed     {         numerator = 0;         denominator = 1;     } }   Using current version of C#, a default Rational is 0/0 which is not so cool.  PS: Will default parameters help solve this for C# 4.0 or will the CLR-defined default constructor be called?     answered:     To use your example, what would you want to happen when someone did:   Rational[] fractions = new Rational[1000];       Should it run through your constructor 1000 times?   Sure it should, that's why I wrote the default constructor in the first place. The CLR should use the default zeroing constructor when no explicit default constructor is defined; that way you only pay for what you use. Then if I want a container of 1000 non-default Rationals (and want to optimize away the 1000 constructions) I will use a List<Rational> rather than an array.  This reason, in my mind, is not strong enough to prevent definition of a default constructor.


ERROR MESSAGE: untrusted packages and libdrm-nouveau1a libdrm-radeon1

Ubuntu finds update but when I click on install update, it gives an error. I released that there are some people out there who's getting that message too, but mine is different and non of the solutions worked for me.   update-manager Requires installation of untrusted packages This requires installing packages from unauthenticated sources. libdrm-nouveau1a libdrm-radeon1


Unable to update Atom via sudo apt update | Ubuntu 19.10

So recently I downloaded ATOM as my main IDE on Ubuntu 19.10, and ever since I cant fetch any updates    E: The repository 'http://ppa.launchpad.net/webupd8team/atom/ubuntu eoan Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. code here    Any Idea of how I could fix the Error? Unchecking in the Software & Update window doesn't do the trick, the window just grays out as it would when focusing another program.


I got to know that the threshold voltage for an LED is different for LEDs emitting different colors. I don't actually know the reason. I searched everything from the Web but didn't get that... Kindly help. Just gimme a hint or clue.


I am kind of new to Blender Cycles and I don't know how to make hair with the particle system thinner. I am looking it up everywhere and cannot find an answer.


How do I handle casting a spell with a cost of X when the casting cost is reduced?

If I play a spell with {X} in the mana cost, and I have a card out that reduces the casting cost by 2 generic mana, what happens to the X? Does it start at -2?  For example: I have  in play. If I play  for just 1 blue mana, do we draw 2 cards?


Given three positive numbers a,b,c satisfying $$a^2+b^2+c^2=1$$ Prove that: $$\frac{bc}{a^2+1}+\frac{ac}{b^2+1}+\frac{ab}{c^2+1}\leq \frac{3}{4}$$ The things I have done so far: $$\sum \limits_{cyc}\frac{bc}{a^2+1}=\sum \limits_{cyc}\frac{bc}{2a^2+b^2+c^2}\leq \sum \limits_{cyc}\frac{bc}{2ab+2ac}$$ $$=\sum \limits_{cyc}\frac{bc}{2a(b+c)}\leq \frac{1}{4}\sum \limits_{cyc}\frac{(b+c)^2}{2a(b+c)}=\frac{1}{4}\sum \limits_{cyc}\frac{b+c}{2a}$$ $$=\frac{1}{8}.\frac{\sum \limits_{cyc}bc(b+c)}{abc}=\frac{1}{8}.\frac{\sum \limits_{cyc}bc(b+c)+3abc}{abc}-\frac{3}{8}$$ $$=\frac{1}{8}.\frac{(a+b+c)(ab+bc+ca)}{abc}-\frac{3}{8}$$ $$\leq \frac{1}{8}.\frac{\sqrt{3(a^2+b^2+c^2)}(a^2+b^2+c^2)}{abc}-\frac{3}{8}$$ $$=\frac{\sqrt{3}}{8abc}-\frac{3}{8}$$ I don't know what to do anymore.


Broken link to our advice on writing great tag wikis

When editing a tag wiki on any site (for example ), the following link is shown:  See our advice on .  It leads to  However, this page cannot be found.


QGIS save postgis table error : no result buffer

I've a polygon layer on PostGIS, and when I try to add featureS using QGIS it gets error when I save the edit.   Here is the error notification "no result buffer".     I found a similar case here : . But it doesn't give me the answer to solve it. Any ideas ?


Single word to denote "immunity from scrutiny"

Is there a single word which denotes immunity from scrutiny or criticism? It would be something with mostly negative connotations, implying some dogmatic or intolerantly axiomatic context which excuses a certain idea or idea bearer from being scrutinized.


Null pointer exception when edit my custom contact in Gxlaxy 2 (4.0.3)

In my application i add contacts to contacts list by ContentProviderOperation.  In Galaxy 3 and 4 it's worked perfect. In Galaxy 2 i crash when i try to edit contact from the contacts list itself.  I google and read that this issue happen to some android developers in this case, but i don't find solution to this exception.  This my exception:  12-19 10:26:51.685: E/AndroidRuntime(6439): java.lang.NullPointerException 12-19 10:26:51.685: E/AndroidRuntime(6439):     at com.android.contacts.editor.ContactEditorFragment.bindEditors(ContactEditorFragment.java) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at com.android.contacts.editor.ContactEditorFragment.bindEditorsForExistingContact(ContactEditorFragment.java) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at com.android.contacts.editor.ContactEditorFragment.setData(ContactEditorFragment.java) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at com.android.contacts.editor.ContactEditorFragment$6.onLoadFinished(ContactEditorFragment.java) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at com.android.contacts.editor.ContactEditorFragment$6.onLoadFinished(ContactEditorFragment.java) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at android.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:438) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at android.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:406) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at android.content.Loader.deliverResult(Loader.java:125) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at com.android.contacts.ContactLoader$LoadContactTask.onPostExecute(ContactLoader.java) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at com.android.contacts.ContactLoader$LoadContactTask.onPostExecute(ContactLoader.java) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at android.os.AsyncTask.finish(AsyncTask.java:602) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at android.os.AsyncTask.access$600(AsyncTask.java:156) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:615) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at android.os.Handler.dispatchMessage(Handler.java:99) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at android.os.Looper.loop(Looper.java:137) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at android.app.ActivityThread.main(ActivityThread.java:4507) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at java.lang.reflect.Method.invokeNative(Native Method) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at java.lang.reflect.Method.invoke(Method.java:511) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557) 12-19 10:26:51.685: E/AndroidRuntime(6439):     at dalvik.system.NativeStart.main(Native Method)


Altium: How can I dim the layers I'm not currently using?

The routes on all layers are fully bright. I want to dim the ones on the layers not currently used.  I don't mean dimming ALL routes (even on the layer I'm currently on) except the one segment I'm selecting.


Show that $\int_{k}^{2} \frac{1}{f(y)} dy = 1$

Let us have the differential equation $x\frac{dv}{dx}=f(v(x))$ and the solution $v$ s.t. $v(e)=2$. Let $v(1)=k$. Show that $$\int_{k}^{2} \frac{dy}{f(y)} = 1.$$  Can anyone please help me understand how to show that?  I was taught that $v$ is defined as $\frac yx$. I understand how to show that but how is it done if we assume that $v=\frac yx$?


I read that terminal is nothing but shell, and Unix provides different flavors of shells:   Bourne shell (sh) C shell (csh) TC shell (tcsh) Korn shell (ksh) Bourne Again shell (bash)   Questions:   When I open a terminal window, which shell is opened by default? How do I check how many shells are installed? How do I change the shell used from my account?


Why can't I choose to set up Internet Sharing to computers using AirPort?

I'm using OSX 10.9. I'm trying to set up Internet Sharing to connect my Android to my Mac directly over Wi-Fi. Every tutorial I've come across (including ) mentions checking a box for "AirPort" in a "To computers using" list. However, the option is simply not available on my machine:    I have a few related questions:   Why isn't the AirPort option available? Is there anything I can do to make it available? If there isn't, how can I work around it to finish setting up Internet Sharing so I can connect my Android and my Mac directly over Wi-Fi?


How do I import a Camera from an external .blend file?

I tried to import a camera from an external .blend file via "link" and "append" but in both cases, nothing happens.  So how do I import a camera with all its settings into another blend file?


Does the effect of the Command spell take place immediately if cast on the target's turn?

The target must succeed on a Wisdom saving throw or follow the command on its next turn.   If you were to cast Command as a reaction (e.g. readied action or war caster opportunity) on the turn of the spell's target, does the effect of the spell take place immediately or on the next round?  e.g. If I held the command spell and triggered it once an orc ran around the corner into view and told it to "grovel", would that end the orc's turn there, or would the orc complete it's turn unaffected, only being forced to grovel next round?     Grovel: The target falls prone and then ends its turn.


Do not get the first, but the second match in the string

For this string  Some AB, Author C., Names DEF. The title string. T journal name 2018;10:560-564   I would like to get just the authors. So I tried to split for . (dot and space).  But using the regex /^(.*)(?:\.\s).*/ doesn't match for my expected Some AB, Author C., Names DEF, instead I do get also the title as my first match.  I don't understand why. Maybe someone can explain what I'm doing wrong.


I want to type Arabic text in Photoshop, but the text appears disjointed and the letters do not connect at all. For example محمد appears as م ح م د.  I'm using Photoshop CC 2014 on Windows 8.1 64 bit.


Can the word "slash" (/) be used in writing?

I wasn't entirely sure how to word this question, so allow me to explain.  Often I come across writers using the word "period" to indicate adamance and finality, especially when in the first-person narrative. For example (from the top of my head, not sourced):     Cathy wasn't going to let him get the better of her. Period.   Or perhaps:     "I'm not eating that. Period."   I was wondering, has "slash" ever been used in a similar way, to indicate "/"? I understand that the word "period" and the punctuation mark "." are not synonymous in these examples, or ever are when being used, but the question still stands.  This is what I was hoping to write:     ...and Aline, apprentice slash roommate with a..."   Or would it be better just to display it regularly?:     ...and Aline, apprentice/roommate with a..."   I'd like to also add that this is purely for stylistic reasons.


Order of the product of finite order elements of a group

If elements $a$ and $b$ of a group are of finite order, what can we say about the order of $ab$?


ArcGIS Field Calculator returning error 000989?

I am trying to calculate a percentage of a field based off the value of another field. if damage = x then return  the value of field !mrkt_imprv! * y  y = percentage value    my code is below its returning an error in the calculate field   def dam_cal():     if !DAMAGE! == 'Affected':         return !IMPRV_MRKT! * .1     elif !DAMAGE! == 'Minor':         return !IMPRV_MRKT! * .2     elif !DAMAGE! == 'Major':         return !IMPRV_MRKT! * .65     elif !DAMAGE! == 'Destroyed':         return !IMPRV_MARKT! * .85   the error is #000989 (line 2) Parameters are not valid.


Is the converse of Noether's first theorem true: Every conservation law has a symmetry?

states that any differentiable symmetry of the action of a physical system has a corresponding conservation law.  Is the converse true: Any conservation law of a physical system has a differentiable symmetry of its action?


I read from  that the standard error of the sample variance is  $$SE_{s^2} = \sqrt{\frac{2 \sigma^4}{N-1}}$$  What is the standard error of the sample standard deviation?  I'd be tempted to guess and say that $SE_{s} = \sqrt{SE_{s^2}}$ but I am not sure.


How to compile and install ia32-libs in Ubuntu 14.04?

How can I compile and install the package  in Ubuntu 14.04?


Extracting raster DEM elevations to vector attribute tables in ArcGIS Desktop?

I have an ArcMap 10 project with multiple layer groups. One layer is a raster DEM, another layer group is a bunch of vector shapefiles (including points, lines and polygons). The client wants all vector data to contain Z values.  Populating the attribute tables for the vector data with X and Y values is easy enough but how do I populate the Z values?   Is there a way that I can use Field Calculator to "grab" the height values from the DEM layer for each vector feature?   I should add that we don't have a licence for the 3D Analyst or Spatial Analyst extensions.


If I issue sudo my-command  how does Linux look for that my-command? The my-command is in my PATH. I can invoke it without any problem. However, when I invoke it with sudo, I'll get command not found. How to overcome it? EDIT: That "Possible duplicate"'s selected answer is wrong, well, at least not to the point. This answer, from terdon, is the correct one.


Is "forth and back" more proper than "back and forth"?

I think the term "back and forth" gets thrown around a lot without much thought.  From Dictionary.com:         [fawrth, fohrth]      adverb    1.  onward or outward in place or space; forward: to come forth; go forth.   Wouldn't the term be more meaningful if "forth" was used first since you have to have a starting place before you can go "back"?  Examples:        I've been going back and forth from Houston to New York.   I've been going forth and back from Houston to New York.      Which is more correct?


Xpath expression with both an ID and contains Text

So I have the following tag I want to find using Xpath:
This is the text
   Normally, I would write it like this:  //h1[@id='Label' and text() = "This is the text"]   Or, if I want to extract just partion of the text, I use the following:  //h1[text()[contains(.,'text')]]   Now, I tried to look for tutorials wether you can mix both statements: so I want to have an Xpath Expression that contains both @id and contains the text "Text". Is such a thing even possible?   I tried doing this:  //h1[@id='Label' and [contains(@text,"text"])]    But that doesn't give me a propper result.


Can I use 'I' in an essay, can I address myself and explain things from my perspective ? (without twisting or bending facts of course)


Strategy for "Which is better" questions

In questions that are asking:    "Which is better option A or option B?"  It seems that several close reasons immediately come to mind:   Primarily Opinion Based.  In many cases the choice between A and B is simply a personal preference, a "6 vs. half dozen", either approach will work just as well and answers to this type of question will be almost entirely opinion based. Too Broad.  In some cases A is better and in others B is better, to go through every possible use case would lead to too many possible answers or one answer that reads like a short text book. Off-topic, Minimal Understanding, include attempted solutions.  This is perhaps the the most important one. If the OP needs to know "Which is better", they should probably have tried both and decided which is better, based on a practical trial.   Yet another option would be to downvote and/or comment with a "Try it and find out".  So...  Are there cases when these questions are permissible?   Could we add some more specific guidance in the help center?  Or should we continue to handle these case by case and just downvote/close appropriately when they pop up?  Strongly related, but hopefully not a duplicate of:   "Which is faster" isn't the only case where these pop up.


I am playing with regular expressions in Javascript and have stumbled across an unexpected behaviour. Take a look:   I am trying to replace .html-wrap string in a #my-html-wrapper-random .html-wrap .main-content with #my-html-wrapper-random .html-wrap. For some reason, the result after replacement is:  #my#my-html-wrapper-randomper-random .html-wrap .main-content instead of expeceted #my-html-wrapper-random #my-html-wrapper-random .main-content  What is the reason for this behaviour?    var testString = "#my-html-wrapper-random .html-wrap .main-content"; var rxString = ".html-wrap"; var rx = new RegExp(rxString); var result = testString.replace(rx,"#my-html-wrapper-random"); // unexpexted result strinf console.log(result);


How do I get the restricted drivers update on xubuntu, does not show-up in update manager? The restricted driver icon is not available on the launch bar on top.


Why can't I answer a protected question?

I wanted to answer a question on a SE site, it says     This question is protected to prevent "thanks!", "me too!", or spam   answers by new users. To answer it, you must have earned at least 10   reputation on this site.   I have 101 rep on that site, and I can answer other questions so I'm not banned. So why can't I answer that one?


I updated my laptop (Ubuntu) to 11.10 and I don't know what went wrong that when I restarted the computer It would start and it would only tell me.     kernel panic not syncing vfs unable to mount root fs on unknown block   oo swapper not tainted...   I am a new user and I have no idea what to do. Any ideas?


prove $f(x)=x^3+x$ is one to one and onto

The Problem  For my discrete structures course, I need to prove that $f(x)$ is one-to-one and onto, with $f:{\rm I\!R}\rightarrow{\rm I\!R}$ where $f(x)=x^3+x$. Based on the graph, this function is one-to-one and onto, and Wolfram confirms this, but I don't know how to approach the actual proof.  Proving it One-to-One  I understand a function $f(x)$ is one-to-one if for $x_1,x_2\in{\rm I\!R}$, if $f(x_1)=f(x_2)$ implies $x_1=x_2$.  The problem is when I set $f(x_1)=f(x_2)$ this, I eventually get to $$\sqrt[3]{x_1^3+x_1}=\sqrt[3]{x_2^3+x_2}$$ It's at this point I'm stuck, and don't know how to progress any further.  Proving it Onto  So I understand to prove a function is onto, you solve $f(x)$ for $y$, and use the result as input to $f(x)$, and if $f(x)=y$, the function is onto. But I run into a similar problems where $$x^3+x=y$$ I could take a cubic root or rearrange the variables all I want but I can't think of a way to isolate $x$ and get $x=something$


I am using a workstation that is shared with others. I dont know what that means but I think some space is shared. How can I know how much space I have for myself? I ran df -h below


Basis of the space of vector fields on smooth manifolds

Let $M$ be a smooth ($C^\infty$) manifold. Let $\mathfrak{X}(M)$ be a set of all vector fields on $M$ and let $\mathfrak{F}(M)$ be a set of all real smooth functions on $M$. $\mathfrak{X}(M)$ is a real vector space and it is also a module over $\mathfrak{F}(M)$. We know that partial derivatives constitute a basis for tangent space at any point $p\in M$. Is there some sort of basis for $\mathfrak{X}(M)$ (as a vector space or as a module)? Do partial derivatives constitute a basis here as well? I think this question  is similar to mine, but because of the way it's written, I'm not really sure I understand the question and I'm not sure we're asking about the same thing.


Is IOU an abbreviation, an acronym, or an initialism?

IOU stands for I owe you and we pronounce each letter separately. But how do we classify that construction"?   abbreviation: a shortened form of a word or phrase acronym: an abbreviation formed from the initial letters of other words and pronounced as a word Initialism: an abbreviation consisting of initial letters pronounced separately back-formation: a word that is formed from an existing word which looks as though it is a derivative, typically by removal of a suffix      All definitions provided by Oxford Dictionaries Online  It can't be an abbreviation because there is no shortening, clipping or back-formation. Take for example phone which is an abbreviation of telephone, or edit which is a back-formation of editorship and editor. I would argue that abbreviations are words that have been shortened, a faster way of writing or saying something. Another example would be Prof for professor.  It can't be an acronym because we don't pronounce IOU as one word, whereas we do with NATO and RAM.  It can't be an initialism because if it was, it should be written as IOY (I Owe You)  Other examples that spring to mind is CU for see you and YRU for why are you, where initialism would dictate that the proper forms be SY and WAY.   How do linguists define this structure? Is there a more specific term than abbreviation?


I've tried holding the back button, turning off body armor and all that, and there's no option in my house to take it off. I have no physical body armor for protection and it is really hard to see my crew emblem this way.


Is it possible to construct a DFA that accepts the language of the empty set?

Construct a DFA that accepts the language of the empty set. The alphabet is 0 and 1. I think it is just one state with no accept states and one arrow with both inputs.


Is there a way to enable window borders in 14.04?

Window borders have been disabled in Ubuntu 14.04 by default. This can be distracting when there are overlapping console windows.  Is there a way to enable them, and if so, how?


How to get a list of all the labels in a LaTeX document in WinEdt

I am writing a large document using LaTeX and WinEdt.  I have labeled each chapter, section and so on.  I would like to print out a list of just the labels (so that I don't duplicate one later on, and so that I have it handy in order to write \refs).    Is there a way to do this?


Is there a way of telling apt to run when it can - when the previous instance has finished?

I am quite absent minded, and I forget everything I want to install - especially after a restart  Is there a way that I can set another command to run (in a separate terminal, of course) when the currently running instance of apt has finished?  I expect this could be done by repeatedly trying to run the command, but I'm looking for something more like this:  WHEN apt EXIT = True; do run next-apt-command   I also expect that it could check the lock file, to see if it is available?


Cannot return to question list after swiping to close browser in iOS app

I'm having a bit of trouble thinking of a good way to describe/search for this, so bear with me if it's a duplicate.  I recently realised that in the iOS app, when you click a link and a page is opened in the included browser, apart from closing the browser by hitting the “OK” button at the top (which is not always visible), swiping from left to right to ‘go back’ has the same effect.  However, when I close the browser in this manner, the question that I return to remains frozen for about five seconds, and even after it unfreezes, the “<” button to return to the previous question or question list does not work. It looks normal, but when I click on it, it changes to being greyed out and does nothing.  If I close the browser with the “OK” button, this does not happen: the question does not freeze, and the “<” button works as it should.  Is this a known bug?  (iOS 9.2.1, up to date; SE app version 1.4.3.7.)


problem with including pdf using pdfpages

I am trying to use \includepdf with about 20 different PDFs. The first 19 have worked fine, but the last one which can be found below     will not load properly. However, there are no errors - the PDF produced just has a blank page with a couple of black lines in the middle. I converted the PDF to JPG and used \includegraphics and it loaded properly but then I could not add it to my table of contents in the way I wanted.   Any thoughts on why it won't load as a .pdf but will as .jpg?  Here's a minimal document that shows the problem:  \documentclass{article} \usepackage{pdfpages} \begin{document} \includepdf{analysiscompsSprJan2011.pdf} \end{document}


It will be delivered to you 'with' or 'in' two days at the most

It will be delivered to you with two days at the most.   It will be delivered to you in two days at the most.      which preposition is correct in the sentence? Is it "with" or "in' after delivered


Accidental indent in multicols environment

I have some ugly (?) code that produces a vertical bar to the left of Sections. All is well until I introduce multicols right after the section start. That gives me an undesired indent for the first line. How can I remedy this?  Visualization:    \documentclass[11pt]{article} \usepackage{multicol} % Set font family to sans serif: \renewcommand{\rmdefault}{cmss} % Remove subsection numbering: \setcounter{secnumdepth}{-1} % Create PDF bookmarks: \usepackage[pdftex,bookmarks=true]{hyperref} % Smaller margins: \usepackage[hmargin=3cm,vmargin=3cm]{geometry} % Use symbols for footnotes: \renewcommand{\thefootnote}{\fnsymbol{footnote}} % Overload the \section command with left-hanger formatting: \newcommand{\sectionf}[1]{% \section[#1]{%     \rule{-2em}{0em}%     \rule[-1em]{0.125em}{3em}%     \rule{1.875em}{0em}%     #1} } % Bullets: \renewcommand{\labelitemi}{$\cdot$} \renewcommand{\labelitemii}{$\cdot$} \renewcommand{\labelitemiii}{$\cdot$} \renewcommand{\labelitemiv}{$\cdot$}  \begin{document} \sectionf{Industry Experience} \begin{multicols}{2} Health Care\\ Health Insurance\\ Public Health\\


Why does it say (deleted) on my close vote summary for nondeleted posts?

I just took a look at my recent close votes and saw this:    Underneath each of my closure votes it says (deleted). In reality, only the questions shown with a red background have been deleted. To what does this deleted refer? My vote? The question? I tried hovering for a tooltip, but there wasn't one.


prove that $|f(z)|>|z|+1$ where $z\in V$ and $V=\left\{z\in\Bbb C\mid|z|> \frac 1 2 + \sqrt{\frac{5}{4} +|c|}\,\right\}$ and $f(z)=z^2+c$ and $c\in \Bbb C$  I can't seem to get anywhere needing to prove $|z^2+c|>|z|+1$ over $V$. I tried putting in $z= a+bi$ , $c = p + qi$ but it just gets complicated.  this is later used to prove that the julia set of $f$ is bounded.  any help would be great. thanks!


I have a small headache with an old project of mine. I wanted to put back online a legacy version of the website I once managed. The problem is, it was coded with PHP back in 1998+, at time when I had little to no knowledge about security issues (15yo taking first lessons in scripting stuff). When I examine the code now, I can see very little harm that can be possible done since most of the code does basic things without much tampering with vulnerable assets. With one exception, MySQL queries. I have literally thousands of selects, inserts and updates which are wide open for any MySQL injection attempt. The project was big, there are lots of files and lots of code. Even if I search and examine every occurence of mysql_query, I might still miss something. Lots of mess as well. Things like this are all over the place:          function Mess($ID) {     $result = mysql_query("select * from table where `id` LIKE '$ID'");  }   I was thinking if would there be possibly some easy way to deal with that without spending hours and hours on examining every single MySQL query. Not to mention creating all the PDO structure and trying to intagrate it with this monstrosity. I'm just doing that in my spare time to honor the work lots of people devoted to creating content for this project years ago. So I was thinking about some sort of "general" solution. I was considering php prepend file but what could I possibly insert there to not cripple the incoming variables? I could just kill all GET,POST,COOKIE vars but this would prevent the website from providing content properly. I could disable all but SELECT access rights (I don't need more since this project is not ment to be updated) for the database user and then suppress error messages but that would still leave it open for injections, just without possibility to modify the database. Is someone aware of something I am not, something that would "overrule" the issue? I dont mind if someone will be able to tamper with the variable to view unitended content of that particular DB. There is nothing in that database which is private only (I deleted things like passwords, e-mails etc.). I do mind however the security and intergrity of other data stored on that host.


I have 100 Amp service. I can't determine the wire size but it appears to be 6/3 feeder's. My furnace is 14000 watts 240V at 60Amp.  I have a 980sq ft home with a electric dryer, a refrigerator 20 Amp, 2 20amp receptacles in the kitchen2bathrooms, 1 20amp outside receptacle, a electric flat top oven and range, a 30amp water heater, all the receptacles  and lights are 15amp,1 220v 30amp window a c. The furnace has 2 60amp breakers  installed on it and is controlled by a 40 amp 240 V breaker in my panel. I noticed the breaker gets quite warm but does not blow when furnace is on in Ohio. Are my wires good for this load The feeders are short by 10 feet of making it into the panel box, it had a 50Amp temporary cord the rest of the way The cord was 50amp with A 50amp receptacle in a metal box with no connectors and no conduit it burned up on one side of the cord  after a sewer back up last year it is burned up on one side and  very corroded. What would be the best way to repair the feeder's and get them into my main panel box directly? The feeder's run 30ft in conduit from the outside disconnect come up 3 feet out of the ground in no conduit they are are 3 single insulated wires under the mobile home. How would I connect 3 feeder wires to them  put it in a weatherproof box and run it 10feet into the main panel witch has a 100amp disconnect at the meter and main panel. No ground,  how should I add a ground rod and ground the system. Are the grounds and neutrals supposed to be bonded and mixed and bonded to the service panel. I am trying to get the mobile home park owner to repair this as I rent the lot. It was this way when I bought the home it started with a flood under my home last year Finally the cord shorted out, the cord is 6/4 but the green wire goes no where and is not connected in the receptacle box. The home is a 1978 single wide.I don't know when it was installed on this lot, I have been here 8 Years What would be the best way to proceed Am I right that the park owner should do the repairs as the whole park sewer backed up under my home  where do I as the Owner become responsible for electric hook up that was damaged Thank you for any advice


How does one insert a new line in a cell in a Google doc spreadsheet?

I saw a question with this earlier but nobody seems to have it answered in a way that helps me.  I need to paste text into a Google Docs spreadsheet cell but it needs to have two new lines in it. Whenever I paste it in, it puts the two new lines in three different cells. If I paste it into the one cell by going into the mode to edit that cell, the cell just shows up blank, as it does when I press Command/Alt+Enter to create a new line. Having any more than one line of text in a Google docs spreadsheet seems to be making a cell show up blank.  How do I fix this and get multiple lines?


Fractions as phrasal (compound) adjectives

Is there a difference between a written-out fraction that serves as a noun:     He gave me one half of his sandwich.   and a written-out fraction serving as an adjective:     I gave her a one-half share of my cookie.   I say a fraction serving as a modifier should be hyphenated as a phrasal adjective. A fraction serving as a noun should not. But everyone I work with hyphenates fractions no matter what their part of speech.


Fill in the gaps from a ST_Union of multiple polygons

I have the following polygons:  01060000000300000001, 01060000000400000001, 01060000000400000001, 01060000000200000001, 01060000000100000001, 01060000000200000001, 01060000000100000001, 01060000000300000001, 01060000000100000001, 01060000000100000001, 01060000000100000001, 01060000000100000001   And I'd like to merge them using:  SELECT st_union(ARRAY(SELECT geom FROM areas))   And I get: https://pastebin.com/V18JtCz8 (I should paste here but it's above the char count - if you're reading this and the link doesn't work, it's simply the output of the above)  When I plot this output, there are holes (deliberate) but I'd like to just take the outline of the polygon as the new polygon.  How would I go about this?


Given the following sentences that use will in the if clause (which is seldom with if-clauses and therefore, I'm not sure they all are even grammatical or not).        If you will/would kindly lend me your book, I will be thankful to you.   If you will not/would not mind lending me your book, I will be thankful to you.     If you will/would wait for a while, I will check it for you.              If you will use it, you can have it   If you will not arrive before six o'clock, I cannot meet you.      What if the last sentence is modified as follows?     If you will not be arriving before six o'clock, I cannot meet you.   Once upon a time, it was found in a grammar book.       If the play will not be finished until ten o'clock, I will have to spend the night at your place.   Can the following version of this sentence have a different meaning (or no meaning at all — a wrong sense)?     If the play is not going to be finished until ten o'clock, I will have to spend the night at your place.   After all, the question is when is will used in if-clauses as the title implies?    Moreover, both the following sentences appear to indicate a probable condition.        If he came, I should help him.   If he came, I would help him.      Using should and would interchangeably in such contexts implies a significant difference in meaning?


Why does the chair and the grandpa look bigger and inflated?

I Was watching one of the actually good movies. In one of the scenes the grandpa tries to "preach" the teens.    Its not very obvious but for some reason the chair and the granpa looks like inflated while rest of the scene looks "smaller" . Why exactly?


After getting "can not write bytes : broken pipe" message and being unable to boot, I reloaded 12.04, my user name had some upper case letters in it and I was unable to log in.  Maybe the password changed also.  How can I log in and reset my password and user ID ?


How to calculate inverse modulo with the Euclidean algorithm for RSA

I have to replicate the key set up process of RSA public encryption algorithm.  Basically I am given two random primes, $P = 7$ and $Q = 5$.  I calculate the following   $N = 5 \cdot 7 = 35$  $O(N) = (p-1)(q-1) = 4\cdot6 = 24$  $e = 7$ -> this is the encryption key  To find the decryption key I need to solve the following equation:  $e*d \equiv 1$ (mod $n$) where $0 \le d \le n$.  I have watched YouTube videos where they explain how to calculate the modular inverse using Euclid's Algorithm, but after the first step I end up with:  $35 = 5(7) + 0$  In all the videos I saw, they usually end up with a remainder of $1$ so that they then set the equation to be equal to 1 and then they substitute to calculate the inverse modulo, but I just end up with      $35 = 5(7) + 0$   and I don't know how to proceed.


For any two sets $A,B$ , $|A|\leq|B|$ or $|B|\leq|A|$

Let $A,B$ be any two sets. I really think that the statement $|A|\leq|B|$ or $|B|\leq|A|$ is true. Formally:     $$\forall A\forall B[\,|A|\leq|B| \lor\ |B|\leq|A|\,]$$   If this statement is true, what is the proof ?


Is there a better way to echo without a newline in bash than using tr -d?

I have a script that counts down from 5 to 0:  for a in {5..0}; do echo $a | tr -d \\n; sleep 1; echo -e \\b | tr -d \\n; done  and tacking on tr -d just looks redundant and not very elegant to me. Is there a way to echo on one line without having to delete the newline?


How to determine camera location from an existing photograph?

I have old photos of a town and landscape around it. I'd like to take these photos again, from the same locations. In some cases I am struggling with finding the original location of the camera.   I can identify objects on the photo, I know their position on the map in some cases even their dimensions, but I don't know anything about camera or lens. Are there any techniques (or even better any ready-made software) to calculate position of the camera from the photo?


Half-baked answers from new question campers....problem?

I seem to have noticed a bit of a trend where a posted question will very quickly get an answer, but a very poor one.  It would seem that some people are "camping", waiting for new questions to be asked, and then jump on them and try to get an answer submitted ASAP, presumably in hopes that it will get marked correct.    Now this would be fine if the answers were correct, but I find that they are often extremely weak answers.  And this is just speculation on my part, but it seems like once a question has one response, traffic to it drops dramatically.  I don't really know exactly what to propose about this....it seems there are several issues with undesirable behavior from people trying to gain reputation.  I wonder if increasing the weight of downvotes might be the answer, or maybe even making their weight exponential, ie: 1 downvote is no big deal, but 4 downvotes is a very big deal?  My point is to try to do something to get rid of people that are posting answers that are just not very good at all, and they know it, but they are hoping that by having "many lines in the water", they might catch an extra fish here and there.  I think this type of behavior should be discouraged on SO.


I am practising ES6 and I have this code:    const over = (...fns) => (...args) =>   fns.map(fn => fn.apply(null, args));  const minMax = over(Math.min, Math.max);  console.log(minMax(1, 2, 3, 4, 5)); console.log(minMax(1, 2, 5, 4, 3)); console.log(minMax(1, 2, 5, -4, 3));     The goal is to get the minimum and the maximun values between the numbers passed as arguments.  I could understand almost everything, the dynamic is very clear, with one exception, I know that args refers to the parameters coming from minMax(), but I couldn't get how the code recognize it.  My guess is: since we have two functions, over() and minMax(), when called, they are automatically read in this order, that is why the code knows that the first anonymous function refers to over() and the second one to minMax(). But this is just a guess, I don't know if I am right.  What is exactly happening here?


How can I check if a gzipped file is empty?

Is there a quick way to check if a gzipped file is empty, or do I have to unzip it first?  example:  $ touch foo $ if [ -s foo ]; then echo not empty; fi $ gzip foo $ if [ -s foo.gz ]; then echo not empty; fi not empty $ wc -l foo.gz       1 foo.gz


My V brakes make a lot of noise when I brake! I am annoyed by such noise, not to mention the pedestrians. My mechanic said that it will not make this noise after using it for couple of days, but it is not happening, it's already been about a month.  Should I grind the pads and then use it (I don't want to do this, it's a expensive set)? Or there is some other way?  I did see  but the answer was not quite helpful.


If $z_{1},z_{2},z_{3}$ are three complex number Such that $|z_{1}| = 2\;\;,|z_{2}| = 3\;\;, |z_{3}| = 4\;\;$ Then $\max$ of $|z_{1}-z_{2}|^2+|z_{2}-z_{3}|^2+|z_{3}-z_{1}|^2$  $\bf{My\; Try::}$ Let $z_{1}=2\left(\cos \alpha+i\sin \alpha\right)$ and $z_{2}=3\left(\cos \beta+i\sin \beta\right)$ and $z_{3}=4\left(\cos \gamma+i\sin \gamma\right)$ So $$f(\alpha,\beta,\gamma) = 58-\left[12\cos(\alpha-\beta)+24\cos(\beta-\gamma)+16\cos(\gamma-\alpha)\right]$$ Now How can I calculate $\max$ of $f(\alpha,\beta,\gamma)$ Help me Thanks


I have a matrix $A \in \mathbb{R}^{n\times n}$ whose diagonal elements are all "$1$" and all other elements are of the form $\frac{-1}{n}$ where  $n \in \mathbb{N}$ and $n >1$ is the number of rows or columns of $A$. Since $A$ is symmetric and diagonally dominant with positive diagonal entries, it is positive definite.  Can we get an expression for its eigenvalues using some kind of decomposition or by other standard approach ?   This matrix clearly has a special structure but I am unable to utilize its properties.


How is it possible that a force that affects mass (gravity) can affect massless particles like photons?


How to create template-based email using API

I have some email templates defined in MyTemplates in Exact Target. From the ExactTargetUI, I can create a Template-based Emails in MyEmails.   But I am required to do it through API. Is there a way to create an Email in (Contents->MyEmail) by using a template so that I can then just load the contents in the template-based-email ?


Syntax difference between using Mock and Fake

I am a bit confused in the usage of the keywords fake and mock depending on the various Mock/TDD frameworks.  I do understand the meaning of a mock and of a fake and per my understanding I am using this syntax right now:  // I prepare my fakes with custom expected behaviours IUnitOfWork fakeUnitOfWork = new Mock<IUnitOfWork>(); IRepository fakeRepository = new Mock<IRepository>();  // I initialize the mock under test MyCommandHandler mockHandler =     new MyCommandHandler(fakeUnitOfWork.Object, fakeRepository.Object);  // I act on my Mock mockHandler.Handle(new Command("whatever"));  // I assert fakeUnitOfWork.Verify(x => x.Commit(), Times.Once()); fakeRepository.Verifx(x => x.Add("whatever"), Times.Once());   Is this the correct usage of the prefix mock and fake or should I use mock for IUnitOfWork and for IRepository and MyCommandHandler is just a normal object under test?


Is "Motivate your answer" correct English?

Me and a friend were having an argument recently over "Motivate your answer". He said this:     see it like this, motivate = force that drives you, okay? motivate your choices = arguments you considered that have driven you towards that choice   So it appears to be a more literal translation, like:      Give reason to your answer.   Is this the case, or is just simply wrong?


How to pass text file contents as argument to console application?

What is the command line to run a console application with input argument fed from text file?  text_file: This is a simple text file with characters and other symbols including tabs and new lines   The console should get  $./myapp "This is a simple text file with characters and other symbols including tabs and new lines"


natbib using et al with econometrica style

Hi I'm using natbib with econometrica.  For many of my citations the author lists are very long, and I'd like them to show in the text as first author + "et al.".  How can I achieve this?


Adding more fields to the registration process

In Drupal 7, is there a way to add more fields to the registration process? I was thinking along the lines of birthday, fullname, gender, twitter, etc. Also how do I access this data once it's in, so I can output it to my template files?


I  have  an element but ı need to go there with scroll  how can ı do ıt wıthout scrolling how can ı clıck it?


Is it grammatically correct to omit a comma after dialogue ending in an ellipsis?

I know that Grammarly isn't always correct but before tonight, I didn't know punctuation directly after an ellipsis was grammatically correct, even in special circumstances such as dialogue.   Unless it's stylistic, Grammarly is insisting that what I currently have is incorrect (see photo below).  The sentence in question is:     “You want to marry me…” she led off in a breathy voice as she   grabbed my shirt collar. “Not out of love, but for mutual benefits.”   I would have never thought to include a comma there, even then, a comma would look so odd. From what I've read, it seems stylistic, but I'm asking is it grammatically correct to leave it as is?   At this point, I think I'd rather omit the ellipsis entirely and replace with a comma rather than add a comma to the end of the ellipsis.


Let $T$ be a linear operator on a finite dimensional space $V$, and let $p=p_{1}^{r_{1}} \cdots p_{k}^{r_{k}} $ be the minimal polynomial for $T$, and let $V= W_{1} \oplus\cdots\oplus W_{k}$ be the primary decomposition for $T$, i.e., $W_{j}$ is the null space of $p_{j}(T)^{r_{j}}$. Let $W$ be any subspace of $V$ which is invariant under $T$. Prove that  $W= (W \cap W_{1})\oplus (W \cap W_{2})\oplus \cdots \oplus (W \cap W_{k})$.


An alternative way to find the sum of this series?

$\displaystyle \frac{4}{20}$+$\displaystyle \frac{4.7}{20.30}$+$\displaystyle \frac{4.7.10}{20.30.40}$+...  Now  I  have  tried  to  solve  this  in  a  usual  way,  first  find  the  nth  term  $t_n$.  $t_n$=  $\displaystyle \frac{1}{10}$($\displaystyle \frac{1+3}{2}$)  +  $\displaystyle \frac{1}{10^2}$($\displaystyle \frac{1+3}{2}$)($\displaystyle \frac{1+6}{3}$)  +  ...+  $\displaystyle \frac{1}{10^n}$($\displaystyle \frac{1+3}{2}$)($\displaystyle \frac{1+6}{3}$)...($\displaystyle \frac{1+3n}{n+1}$)  =$\displaystyle \frac{1}{10^n}\prod$(1+$\displaystyle \frac{2r}{r+1}$)  ,  $r=1,2,..,n$  =$\displaystyle \prod$($\displaystyle \frac{3}{10}-\displaystyle \frac{1}{5(r+1)}$) thus,  $t_n=$ (x-$\displaystyle \frac{a}{2}$)(x-$\displaystyle \frac{a}{3}$)...(x-$\displaystyle \frac{a}{n+1}$),  x=$\displaystyle \frac{3}{10}$,  a=$\displaystyle \frac{1}{5}$  Now  to  calculate  $S_n$,  I  have  to  find  the  product  $t_n$,  and  then  take  sum  over  it.  But  this  seems  to  be  a  very  tedious  job.  Is  there  any  elegant  method(may  be  using  the  expansions  of  any  analytic  functions)  to  do  this?


How can I copy my data from NTFS Error Partition to external medium?

I think I made a beginner mistake when I installed Ubuntu 13.   I deleted my Windows 8 and then installed Ubuntu on my main partition as ext4. I also made a swap partition but I left my other 2 partitions (with important data on them) as NTFS because I was scared of losing data. When I try to open one of them I get following error:  "Error mounting /dev/sda2 at /media/markus/28167E1F167DEDE6: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/markus/28167E1F167DEDE6"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda2': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option."   I read something about Windows 8 hybrid shutdown that could solve my problem but I can't really change that, since I deleted my Windows.   Is there something else I can do or do I have to install Windows 8 again ?


How to keep two versions of an app installed?

Android Market has just updated an app in my device. I liked the update, but its fully different from last version which was also my favorite. So, I want to keep last version too. I have last version's apk thanks to Titanium Backup. But, I can't install it without replacing current one (Android architecture sucks). Is there any way to do this? Hacks etc.. Note: I want to keep current version which must be connected with Market to receive future updates.


whence I can get actual currency values? I want get data in JSON format or XML. I can't find it in Google:    I want to free use in PHP. Which is the best?


Switch from Windows 7 to Ubuntu 13.04 question

I am currently switching from Windows 7 to Ubuntu 13.04. When i download the .iso file from Ubuntu.com I notice that it said AMD64 and i have a intel cpu. Is there a certain version i need for intel chips.


Minor grid in pgfplot not showing when specifying ticks manualy

Firstly I would like a minor tick between every major tick in my pgfplots graph (and minor grids). I wrote minor tick num=1 but it doesn't work. I am not using a logarithmic axis so it is unrelated to other questions.  Secondly, why is the tick label "1" missing for each axis? How do I get that to display?     \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}  \begin{axis}[% footnotesize, width=4in, height=4in, axis equal, scale only axis, separate axis lines, grid=both, every outer x axis line/.append style={black}, every x tick label/.append style={font=\color{black}}, xmin=0, xmax=1, xlabel={X}, every outer y axis line/.append style={black}, every y tick label/.append style={font=\color{black}}, ymin=0, ymax=1, ylabel={Y}, minor tick num=1, xtick={0,0.1,...,1}, ytick={0,0.1,...,1}, axis background/.style={fill=white}, legend style={at={(0.97,0.03)},anchor=south east,legend cell align=left,align=left,fill=white} ]  \end{axis}  \end{tikzpicture}% \end{document}


Wondering whether adverb 'quickly' can be inserted between the verb and the object

I've been so curious about whether the adverb 'quickly' can be inserted between the verb 'turn out' and its direct object 'the light'.  For example, is it grammatically correct?      He turns out quickly the light   I have been learning that in terms of syntax an adverb cannot interrupt the close bond between the head and its complement.


Why is it “a defeated Napoleon, not “the defeated Napoleon” who rode off the battlefield and into exile?

I noticed an infinite article; ‘a’ was used before ‘defeated Napoleon’ in the following sentence of Jeffery Archer’s novel, "Fales Impression" :  “General Sir Harry Wentworth sat at the right hand of the Iron Duke that night, and was commanding his left flank when a defeated Napoleon rode off the battlefield and into exile."  I’m curious to know why it should be “a defeated Napoleon,” not “the defeated Napoleon” or simply “defeated Napoleon.” Isn’t it only one Napoleon who was defeated the battle and exiled (to St. Helena). It looks like as though there were many (defeated) Napoleons who were exiled.  It’s always headache for me to handle articles as we Japanese (I think Chinese too) don’t have article as the basic part of speeches in our language system. I’ve studied it on English grammar text books at school, but have never reached full understanding of the usage of articles, because we don’t have that practice. Is there any special knack to master how to use articles?


Where is the outbox on the outdated Outlook UI?

I"m at an unnamed Canadian university using the old version of Outlook and I have no idea where my sent emails or other folders are.  Only the inbox which I can sort by Date, To, From ,etc. Does anyone have a clue?


Proving that test particles in GR, follow spacetime geodesics

My question is pretty much in the title. According to this , this is not exactly proven rigorously yet. What I dont understand is what exactly is not proven. If I'm not too wrong, a test particle is just a particle, which does not affect the ambient gravitational field.   According to this , it can be easily shown that the eqn. Of motion for a point particle in a curved space (having metric $g_{\mu \nu}$), can be found by considering the action to be just, $$S = -mc \int ds \, ,$$ where  $$ds^2 = -g_{\mu \nu}dx^{\mu}dx^{\nu}$$ This would give the geodesic eq. As the eq. Of motion.  Now, if we assume that the particle is somewhat massive, couldn't we just modify the metric linearly, by superposing a mass coupled metric as, $$g'_{\mu \nu} = g_{\mu \nu} + m h_{\mu \nu}$$   Considering the same form of the action above, we should get the same geodesic eq. Along with a subsidiary eq.(which has a mass coupling). In the limit $m \rightarrow 0$, the subsidiary term should vanish, leaving the original geodesic eq.   So what I want to know, is what exactly is the unsolved part of this problem ? I failed to understand it from the text itself. It would be great if someone can point that out.


When is something considered to be a mathematical proof?

What exactly is a mathetmatical proof? From  it's clear it doesn't require any special symbols.  From      [Computer] Viruses have no “cure.” It’s been mathematically proven that it is   always possible to write a virus that any existing antivirus program   can’t stop." [0]      [0] Secrets & Lies. Bruce Schneier. Page 154   In these contexts what does it even mean to be mathematically proven? Does it just mean logic was used?


Not able to change directory from bash script despite sourcing

I have following 2 files:  file cd2vcaa (in path):  #! /bin/bash cd /var/cache/apt/archives   file test.sh (in current directory):  #! /bin/bash . cd2vcaa   From terminal, I am able to change directory with . cd2vcaa but not with ./test.sh  ~$ cd2vcaa                        <-- no effect ~$ . cd2vcaa                      <-- changes directory /var/cache/apt/archives$ cd       <-- back to home directory ~$ ./test.sh                      <-- does not change directory though no error - why? ~$   Why is . cd2vcaa working from terminal but from within another script? How can this problem be solved?


I have 1 SSD and 2 HDDs - each has a capacity of 1 TB. Windows 10 is installed on the SSD while Ubuntu 18.04 is on one of the HDDs. I need to be able to access the HDD from Windows, but I currently can't because its file system is EXT4, obviously. I need to be able to access the HDD from Windows for a number of reasons:   I want to install some of the storage-eating software for Windows on that HDD, as I don't intend to use Ubuntu on daily basis anyway. I plan to record some videos on Ubuntu, hence I need to access the video files from Windows in order to edit them in a video editor program.   What I had been trying so far to do, unsuccessfully, are the following:   Using  - it successfully granted me access to the HDD, but also , and maybe even the whole Ubuntu partition. (though I didn't it, because whenever I came across that screen - I couldn't type anything to the command-line interface) Tried to reinstall Ubuntu, but this time to first set via the installer to format to FAT32 - it refused to. (thought of this idea because I read online that Ubuntu can read FAT32)   So now I'm lost.  What solution can I have? Thanks!


If $|\alpha|\leq 1$ and $|\beta|\leq 1$, prove that $|\alpha+\beta|\leq |1+\overline{\alpha}\beta|$

Note $\alpha$ and $\beta$ are complex numbers and $\overline{\alpha}$ is the conjugate of $\alpha$. I've tried using variations of the triangle inequality and I couldn't find anything to work.


How valid is an approach of using LASSO to determine appropriate values to then use in a logistic regression that does not use any penalties?


If $A \in M_{n}(F)$, I have to show that $A$ is a unit only if $AB = I$ or $BA = I$ for some $B \in M_{n}(F)$.   I am not sure how to approach this at all since this fact was pretty intuitive to me. One way I am thinking this is using the fact that this basically means prove that $A$ is invertible if $AB=BA=I$. A hint that was given, however, was that if $V$ and $W$ are finite dimensional vector spaces, $T: V \to W$ is isomorphic only when it is injective (or only when it is surjective). This hint is completely throwing me off on how to do this question. Can somebody help? Thanks.


Thus it is proved that there is no such a thing as magnetism

I saw a proof that shows that there is no such a thing as magnetism. I think the fault in the proof is with simply connected regions. Proof is as follows: One of Maxwell’s equations tell us that $$\nabla\cdot \mathbf{B}=0$$ where $\mathbf B$ is a magnetic field. Then using the divergence theorem, we find $$\iint_S\mathbf{B}\cdot\mathbf{\hat{n}} dS=\iiint_V\nabla\cdot \mathbf{B}dV=0.$$ Because $\mathbf B$ has a zero divergence, we know that there exists a vector function, call it $\mathbf A$, such that $$\mathbf{B}=\nabla \times\mathbf{A}.$$ Combining these two equations, we get $$\iint_S\mathbf{\hat{n}}\cdot \nabla \times\mathbf{A}dS=0.$$ Next we  apply Stokes’ theorem and the above result to find $$\oint_c\mathbf{A}\cdot \mathbf{\hat{t}}ds=\iint_S\mathbf{\hat{n}}\cdot \nabla \times\mathbf{A}dS=0$$ Thus we have shown that the circulation of $\mathbf A$ is path independent. It follow that we can write $\mathbf A$ as $\mathbf{A}=\nabla\psi$ where $\psi $ is some scalar function. Since curl of gradient of a function is zero, we arrive at the remarkable fact that $$\mathbf{B}=\nabla\times \nabla \psi=0;$$ that is, all magnetic fields are zero. Where is the mistake?


I am having a problem with the emission on this object. I have applied multiple materials to the mesh and emission is not visible. I have assigned the material to the selected parts of the object.


Automate taking a screenshot of specified area

I am trying to use automator to take a screen shot of a specified area. Though I can only find the option of taking a screenshot of a windows or the entire screen. Is there a option to to this with automator or with apple script?


How to uninstall apps downloaded from internet in Ubuntu 12.04 lts

I am new to Ubuntu right now and i want to know how do we uninstall an app which i downloaded from the internet in this case a Facebook messenger called ftalk. I type this command in the terminal:  sudo apt-get remove ftalk   but this is the answer:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   what should i do?it is driving me crazy


Why are velocity and kinetic energy not proportional?

In the equation $E_k=\frac12mv^2$ the fact that the kinetic energy of a moving object is not proportional to it's velocity seems counter-intuitive to me.  Put another way, it seems intuitive to me that if something with mass has an amount of kinetic energy when it's moving at a velocity, then if you doubled the velocity but kept the mass the same, then the energy would also double.   I'd really appreciate it if someone could supply an intuitive explanation.


I am required to convert all instances of strlen in our code base to the more secure version strnlen_s. The only difference between the two functions arguments is strnlen_s' requirement for the maximum length of the buffer you are providing.  This is a really straight forward process with instances of a character array (char array[64]) that have explicit lengths (sizeof(array)). Unfortunately, there are several instances of strlen being used with a character pointer (char*), whose size is always 8.  Is there a way to use strneln_s with character pointers?


Non-destructive upgrade from Windows 10 Pro to Windows 10 Enterprise?

I'm currently running Win10 Pro and I'm looking to upgrade to Win10 Enterprise (to get rid of Windows bloatware and telemetry etc). Is it possible to install Enterprise while keeping my installed programs? I'm not worried about my files as I have them on a separate drive. I'm just worried about registry stuff because I really want to avoid the hassle of reinstalling and reactivating all my software. I've recently discovered Win10 Education but a) I'm not sure if I can keep it forever, and b) it doesn't include Cortana and I'm not sure if the taskbar search bar is part of Cortana because if it is I don't want to lose it because I use it a lot.  Recap: I'm on Win10 Pro, I want Win10 Enterprise but without losing my programs. Win10 Education is an option but I'm not sure if a) there is a time limit and b) if it removes the search bar at the bottom.  Can anyone shed any light on this?


Any commands that will change the keyboard?

I speak multiple languages (English, Bulgarian, Greek, and Japanese) And I was wondering if there were any keyboard shortcut commands that I can add that will go through all of the languages when I press said keyboard shortcut keys. (I use Ubuntu Mate BTW)


In Special Relativity, the Lorentz Group is the set of matrices that preserve the metric, i.e. $\Lambda \eta \Lambda^T=\eta$.  Is there any equivalent in General Relativity, like: $\Lambda g \Lambda^T=g$?   (We could at least take locally $g\approx\eta$, so we recover the Lorentz group, but I don't know whether we could extend this property globally.)  Why does Group Theory have much less importance in General Relativity than in QFT and particle physics?


Closed form estimation for f(n) in the recursive formula $f(x+1)=f(x)+{1 \over f(x)}$

To be clear, I am trying to find a closed form estimation for the $f(n)$, if $f(0)$ is defined to be $1$.   For example, this sequence would go as so: 1 is the starting value, and then add ${1\over1}$ to get the next value. $1+{1\over1}=2$, so the next value is 2. Iterating here, $2+{1\over2}=2.5$, so $f(2)=2.5$. $f(3)={2.5+{1\over2.5}}=2.9$.  $f(4)={2.9+{1\over2.9}}=3.2448...$  I am wondering whether there exists a closed-form expression that can either exactly output or accurately estimate $f(n)$.  So far, an interesting relation between $f(n)$ and $n$ seems to be that as $n$ increases, the number $a$ such that $f(n)^a=n$ approaches a number close to 2. This was tested with Mathematica, and $f(100,000,000)^{1.927471...}=100,000,000$. It could also be the case that the value $a$ diverges very slowly, but it is difficult to check for higher numbers as Mathematica is having trouble witht the calculations.  By assuming the value of $a$ was actually approaching 2, and playing around with the graph on desmos, I managed to come up with the expression $\log_{(2-{1\over n+1})}{(n+1)}+{n+1 \over 10.7}$. Or, using the change of  base formula to avoid the multi-term log base, ${\log{(n+1)} \over \log{(2-{1\over n+1})}}+ {n+1 \over 10.7}$. This expression seems to accurately estimate f(n) for the first 30 terms or so, but it soon becomes inaccurate for larger terms.  Is there any better formula that can accurately calculate the terms no matter how large? Or, is there some closed-form expression that is asymptotic with this function?


Is $\sum^n_{i=1}\sum_{s=1}^{i-1}=\sum_{s=1}^n\sum_{i=s+1}^n$ and in that case why?

I've been working through a proof for why the determinant can be calculated from any row in a square matrix. In this proof we first develop the determinant from row 1, and then (in the sub-determinants) from the arbitrary row k. We then develop the determinant from the arbitrary row k, and then from row 1 in the sub-determinants, the idea is to prove that these expressions are equal. I've arrived at the following expressions (please forgive me för just using copy/paste).  I don't quite agree with the annotation, but i is supposed to represent the number of the element in the first row, while s is supposed to represent the number of the element in the kth row. The expressions $|(A_{1i} )_{ks} |$ and $|(A_{ks} )_{1i}|$ refer to the sub-determinants of their respective expression. In the next step, we are supposed to realize that the expressoin on the upper left and the lower right are the same. If we start with the expression on the upper left and chech which pairs of i and s are possible, we arrive at the following types of pairs:           (2,1)    (3.2), (3,1)  (4,3), (4,2), (4,1) (......and so forth) If we look at the colums we will find that the only i that are possible for a certain s are those with a minimum value of s+1. The next step is a bit...hazy, but I think I'm supposed to realize that this means I can somehow switch places of the summation signs and change the indecies, so that: $$\sum^n_{i=1}\sum_{s=1}^{i-1}=\sum_{s=1}^n\sum_{i=s+1}^n$$ ...And I'm way to tired but I think that would make those expressions equal, after which the same procedure can be performed on the expressions to the upper right and lower left. But is it really possible to swap the summation signs in this manner and in that case why? I would appreciate some kind of intuitive explanation.


I was trying to shoot a group of people standing clumped but at different distances, quite close to me, think disorganized portrait. I have a Nikon d750,  and was not able to get everyone into focus.  If I brought the people closer to me in focus, then the background were blurred and vice versa.  I pushed the aperture all the way to f18 or so and it didn't bring the whole scene into focus.  Was I shooting from too close ....  Or this makes me wonder is this about AF-S vs AF-A instead of aperture and the camera choosing one point to focus upon instead of the area?  How would you compose a group shot like this to all be in focus?  Thanks!


What is the shape of the quark structure in a proton or neutron?

I know the pictures we see are just a representation to help people understand what is going on while in reality the quark is likely a wave vs a particle. That being said it is always depicted as a triangle arrangement when I would have figured a more linear structure due to same charges repulsing each other while the opposite charge attracting the other two quarks. Something like this, (-)(+)(-) or (+)(-)(+)


How do I write a script to list those layers with broken data sources?

In my SHP to GDB toolbox, I create a list of layers in MXD, then I check for those not broken I move them. Despite using ListBrokenDataSources I have errors like this:      Runtime error : [Error 3] Impossible   trovare il percorso specificato:   u'J:\20120208_Backup_disco_E\Archivio\ATLArete\Shape Atlarete   1-1-2008\miste.shp'   Translate:     Runtime error : [Error 3] Unable to   find the specified path:   u'J:\20120208_Backup_disco_E\Archivio\ATLArete\Shape Atlarete   1-1-2008\miste.shp'   Here is my code:  # Create a list of SHP in mxd      list = []     df_list = arcpy.mapping.ListDataFrames (mxd)      for df in df_list:          for fc in arcpy.mapping.ListLayers (mxd, "", df):             if (fc.supports("DATASOURCE")) and (fc.dataSource.endswith(".shp")):                         list.append(fc)     print("List created")      # Check for borken datasource     for fc in list:         if arcpy.mapping.ListBrokenDataSources(fc):             list.remove(fc)     print ("Broken data removed from list")      # Move fc to gdb     add_list = []     for fc in list:         fc_date = time.strftime("%Y%m%d", time.gmtime(os.path.getctime(fc.dataSource)))         try:             dsc = arcpy.Describe(fc)             out_temp = '_' + fc_date + '_' + fc.name + '_' + fc_prj             out_name = arcpy.ValidateTableName(out_temp)             print ('Created ' + out_name + ' to ' + gdb_full_path)         except:             out_temp = '_' + fc_date + '_' + fc.name + '_' + 'UNKNOWN'             out_name = arcpy.ValidateTableName(out_temp)             print ('Created ' + out_name + ' to ' + gdb_full_path)         arcpy.FeatureClassToFeatureClass_conversion(fc, fd_path, out_name)         replace_name = fd_path + '\\' + out_name         fc.replaceDataSource (gdb_full_path, "FILEGDB_WORKSPACE", out_name)         print ('Replaced data source ' + out_name + ' in ' + gdb_full_path)       # Create a new MXD     new_mxd = os.path.splitext(gdb_full_path)[0] + '\\' + 'MXD' + '\\' +  time.strftime("%Y%m%d", mxd_date )+ '_' + (mxd_name)     mxd.saveACopy(new_mxd)     print ('Created new MXD ' + new_mxd + ' in ' + ws)


I created following figure with a script as pasted below:    \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning, shapes.multipart, arrows, shadows, backgrounds, fit}  \tikzset{   bluebox/.style={     draw,     rectangle,     minimum height=4.5cm,     fill=blue!50!white,     align=center,     inner sep=2ex   },   whitebox/.style={     draw,     rectangle,     minimum height=4.5cm,     fill=white,     align=center,     inner sep=2ex   },   item/.style={     draw,     inner sep=1ex,     fill=white    },   matrix/.style={     draw,     fill=white,     text centered,     minimum height=1em,     drop shadow   } }  \begin{document}  \begin{tikzpicture}[font=\sffamily]      % Stage 1     \node[whitebox, label={Labela}] (Stage1) {\rotatebox{90}{Something}};      % Stage 2     \node[whitebox, right=of Stage1, label=Labelpgq] (Stage2) {\rotatebox{90}{\footnotesize{Something}}};      % Stage 3     \node[draw, shape=rectangle split, rectangle split parts=2, fill=white, right=of Stage2, label=Options A] (OptionsA) {         \nodepart{one} A         \nodepart{two} B};      \node[draw, shape=rectangle split, rectangle split parts=2, fill=white, below=of OptionsA, label=Options B] (OptionsB) {         \nodepart{one} A         \nodepart{two} B};      \begin{scope}[on background layer]         \node[bluebox, fit=(OptionsA) (OptionsB), label=Labelg] (Stage3) {};     \end{scope}      \draw[dashed] (Stage1) -- (Stage2);     \draw[dashed] (Stage2) -- (Stage3); \end{tikzpicture}  \end{document}   Here are the issues I want to solve:   When labels contain a "p", "g" or "q", the text has a larger distance. It looks like the padding is given by the lowest pixel (bug?). For some reason, the blue box is shifted. It should be on level with the others. I experimented by applying "right=of Stage2" to the blue box, but without success.   I'm thankful for help here.


"$: command not found" Command error while reconfiguring keyboard configuration in Ubuntu 18.04.03 console

I am getting error $: command not found while executing following command $ sudo dpkg-reconfigure keyboard-configuration for reconfiguring keyboard configuration in Ubuntu 18.04.03 console. Kindly assist what went wrong. Thanks!!


Show that every prime ideal of A (UFD) is generated by a set of prime elements

Considering A as a unique factorization domain, we must show that every prime ideal of A is generated by a set of prime elements. I was able to do it for a principal prime ideal, but I couldn't do it for other cases.


Which languange should I start teaching my baby after moving to a new country?

I moved from my home country to America and gave birth to my first baby, and one thing bugs me. I want my child to know my languange so she can speak to her family from my side because my family doesn't speak English but I want her to speak English because she lives here, and I don't know with which languange I should start with   English because she lives here or my languange because it's harder and will be more complicated for her to learn if she already speaks English?   My languange is pretty hard to learn in general and I always felt English was easy.


c# random number generator in an array with no duplicates

I'm currently trying to create a program that generates random numbers between 1 and 45 with no duplicates. My program works when I run it without the else statement whenever a duplicate comes up it inputs the number 0, when I use the else statement the function breaks. I want to display random numbers between 1 and 45 however the variable size must dictate the size of the array. For example random integers between 1 and 45 with an array size of 35.  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;  namespace RandomArray { public class RandomArrayNoDuplicates {     static void Main(string[] args)     {         int size = 45;         int[] noDuplicateArray = new int[size];         noDuplicateArray = InitializeArrayWithNoDuplicates(size);         DisplayArray(noDuplicateArray);         ExitProgram();      } //end Main     static Random rng = new Random();      /// <summary>     /// Creates an array with each element a unique integer     /// between 1 and 45 inclusively.     /// </summary>     /// <param name="size"> length of the returned array < 45     /// </param>     /// <returns>an array of length "size" and each element is     /// a unique integer between 1 and 45 inclusive </returns>     ///     static void ExitProgram()     {         Console.Write("\n\nPress any key to exit program: ");         Console.ReadKey();     }//end ExitProgram      public static int[] InitializeArrayWithNoDuplicates(int size)     {     int number;     int[] noDuplicates = new int[size];          for (int i = 0; i < size; i++)         {             number = rng.Next(1, size);             if (!noDuplicates.Contains(number))                 noDuplicates[i] = number;            // else            //     i--;         }         return noDuplicates;      }     static void DisplayArray(int[] noDuplicates)     {     foreach (int element in noDuplicates)         {             Console.Write("\t" + element + "\n");         }     } } }   The issue lies in this bit of code:  public static int[] InitializeArrayWithNoDuplicates(int size)     {     int number;     int[] noDuplicates = new int[size];          for (int i = 0; i < size; i++)         {             number = rng.Next(1, size);             if (!noDuplicates.Contains(number))                 noDuplicates[i] = number;            // else            //     i--;         }         return noDuplicates;   but I'm unsure how to fix it. I would prefer to use the random.next function rather than using enumberable approach. Thanks


I want to make a wall with a image repeating across it like wallpaper.  I tried it in the node editor but the image is taking up the entire plane. I just want it to be small and for the image to repeat across the entire plane.  How do I do that?


My friend told me a wrong proof which involves differentiation, but I cannot point out where he has been wrong.  $x^2 = x + x + x + … + x$ (total $x$ terms)  ${\frac d {dx} x^2} = {\frac d {dx} (x + x + x + … + x)}$  $2x = 1 + 1 + 1 + … + 1$ (total x terms of 1)  $2x = x$  $2 = 1$  Can someone points out where is wrong?


unable to edit /proc/sys/net/ipv4/ip_forward in Xubuntu

I try to change ip_forward from 0 to 1 but fail, even with root permission in Xubuntu 11.10. I don't have such similar problem while using Ubuntu 11.10  chiaki@chiaki:~$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward  bash: /proc/sys/net/ipv4/ip_forward: Permission denied   any idea?


On the  of Stack Exchange, it has:  Stack Exchange logo Stack Overflow logo Stack Overflow Careers logo Server Fault logo Super User logo  I have 3 requests:  They may be the highest visited sites, but they're not the only sites any more. Could we have the other sites there too? Even if they are at the bottom, in a small icon list, or in a style similar :   As hinted above, SVG format would be really nice to have. If you don't have SVG (why!?) then I will be happy to make some into it - but SVG is so much more useful than PNG.  If you decide to keep it as it is, please remove the word logo:


How do I cd up and down again with symlinks in bash?

Structure:    /base/    +- somedir/    +- symlink/  -> /some_other_dir   This command (in addition to my Makefiles) fails:  cd /base/symlink ls ../somedir   Bash complains that ../somedir does not exist. Likewise, my makefiles in some_other_dir that reference ../somedir fail. However, cd .. works just as expected. Can I have my shell act with regards to the logical structure?


proving that a function is lebesgue integrable

I need to prove that $f(x)=1/[|x|(log|x|)^2]$, $0<|x|<1/2$ is Lebesgue integrable. How can I do this? I tried to find inequalities or some good function to majorate this, but I didn't get. Any types?


Is this a correct sentence - I was helping him to get the bag off the shelf

Which one is correct?   I was helping him to get the bag off the shelf. I was helping him getting the bag off the shelf. None of the above   PS: This is my first post on english stackexchange, any correction around this post will also be appreciated :-)


How to show $(1/n!)^{1/n}$ goes to $0$ as $n$ goes to infinity?

How do I show $(1/n!)^{1/n}$ goes to $0$ as $n$ goes to infinity? I need this to use the spectral radius theorem to show an operator has spectrum {0}.


Given the permissions, owner and group of a file, what's the algorithm that determines whether a given user can read/write/execute a file?

As I understand it, a file has 3 sets of permissions: owner permissions, group permissions, and everybody else permissions. Moreover, the file has is assigned to a owner, and a group.  How linux combines all this information, to actually determine the permissions a given user has over the file?  For example, say a file is:  --- rw- --x  That is, the owner has no permissions, the group can read/write, and everybody else can only execute.  Now user "Joe" comes to this file. Depending on which groups Joe belongs to, and whether Joe is or not the owner of this file, what can he do with it? He could execute the file, because x is set for everybody. But if "Joe" is the owner, x is forbidden for the owner. What takes precedence?


Animation attaching a string to a balloon

So I have two objects... a UV sphere and a rope that I modeled. All I want to do is have two different cloth physics (one for sphere, one for rope) and basically attach the sphere to the rope. The whole idea is to have the sphere raising up and dragging the rope with it. Could someone kindly explain how I attach two objects with two different cloth physics please? I'm struggling a bit. Thank you!


Is it statistically valid to enter predictors that are not significantly related to DV in a linear mixed effects model?

Is it statistically valid to enter "control" predictors that are theoretically relevant in a linear mixed effects model (aka multilevel model), even if only very weak and non-significant linear relationships were demonstrated beforehand?   The predictors in question could be considered control variables (e.g., age, SES, score 1, score 2). The main aim of the analysis is to examine the relative effects of these between-subjects predictors and a within-subjects predictor (experimental condition) on a continuous DV. Linear mixed effects modelling is being used, as this approach can take into account the non-independent observations.   Linearity was explored through through examining scatterplots, and conducting bivariate Pearson correlations (they yielded small Pearson coefficients that were non-significant). Unsurprising, since only weak and nonsignificant linear relationships were demonstrated in screening, the control variables do not contribute to the variance in the DV when entered into the linear mixed effect model. But dropping them doesn't seem valid given their theoretical relevance. It seems more useful to maintain them in the model as controls to soak up some "noise", and then discuss how that in this particular sample they did not actually contribute to variance in the DV. In addition, I think it makes sense to keep them in the model and check for possible interactions with the main exploratory predictor (condition).  Would this approach be statistically valid?


how to grab file extension only from a string in php

How can i grab the extension only in a php string?  echo $dir.'/'.$file;   outputs:  folder/subfolder1/image.jpg  so i want to grab only jpg


Varying pressure in container with aperture

The following diagram pictures a simple container filled with water. At the bottom of the container is a chamber with bottom B. Also directly above the chamber is an aperture that can completely open and close, sealing off the lower chamber or allowing unrestricted water flow.  My question is this: as pictured, is the pressure at B the same as if the aperture were completely open? If not, what is it?    I may be mistaken, but I think the pressure on B is proportional to the width of the aperture opening relative to the width of the chamber itself.