Why is there no gravity in the center of a celestial body, yet there is gravity on the surface?

I've heard few explanations, but none in good detail that make it clear to those with less mathematical knowledge on the equations of complex physics.  I would like to think that since you are on the surface of the Earth, for example, everything, at least from my introspection, seems to be "pulled" towards the center of the celestial body itself.  If that is true, and everything, including me, is being pulled towards the center, and our (human, for example) bodies use skeletal muscles to maintain supportive structure to fight the gravity all the time (when awake), how can there be no gravity within the very center of the Earth?  It just seems hard to believe that something attracts you to it with energy, yet it has no energy in its core (gravity) to do this. Where and why does gravity stop at the center, and how does that make good, detailed sense for an average to relatively understand?  Also, taking in to accounts with centers of mass, wouldn't the Earth's core be the "center of mass" in this sense?  I mean if the energy or force "gluing" us to the Earth is not caused by the Earth itself, how come we are "pulled" towards Earth in particular?


Restrict Admin Capabilities in MultiSite

update_core     update_plugins     update_themes     install_plugins     install_themes     delete_themes     edit_plugins     edit_themes   Hi, I want to restrict those capabilities to user_id = 1 so other super admins cant edit network files. (Btw if i am missing something, let me know). What is proper way of this? Tried  but it adds 'manage_esa_options' cap to every blog so super_admins see tons of blogs in their admin bar..


New, elegant proofs for $\varphi(p^{k})=p^{k}-p^{k-1}$

Are there any short, elegant proofs known for the identity $\varphi(p^{k})=p^{k}-p^{k-1}$ ? (Here $\varphi$ is Euler's totient function and $p$ is a prime.)  The standard combinatorial proof goes like this:      In the set $\left\{ 1,2\ldots,p^{k}\right\} $ there in total $p^{k}$   number. Split this set into $p$ subsets $\left\{ 1,\ldots,p\right\} $,   $\left\{ p+1,\ldots,2p\right\} \ldots$ Then in each of these sets   there is only one number -- namely the one of the form $m\cdot p$ for   some suitable $m$, that divides $p^{k}$. There are in total   $\frac{p^{k}}{p}=p^{k-1}$ such sets, so in total $p^{k-1}$-many number from   $\left\{ 1,2\ldots,p^{k}\right\} $ divide $p^{k}$. Thus   $(p^{k}-p^{k-1})$-many numbers are coprime to $p^k$, which proves the identity. $\square$   (A different proof that is often encountered assumes that we know that  $\varphi(n)=n\prod_{p\mid n}(1-\frac{1}{p})$, from which our identity  follows immediately.  But this is actually a longer proof, since proving the auxiliary identity is longer.)  Surprisingly, I would have imagined that there are tons of wildly different proofs of such a basic fact out there, but a preliminary internet seach as well as book skimming returned only (minor variations of) these two proofs.  EDIT The present proofs are more or less reformulations (very polished with details hidden as good as possible - but still reformulations) of my first proofs. What I'm looking for are more radically different approaches (if these exist).


Say I have multiple files x1, x2,x3,x4, all with common header date, time, year, age.  How can I merge them to one singe file X in shell scripting?  File x1:  date time year age 101014 1344 2012 52 111012 1200 2010 49   File x2:  date time year age 140112 1100 2011 54 230113 0500 2005 46   Similiary for other files x3 and x4.  The output should be:  date time year age 101014 1344 2012 52 111012 1200 2010 49 140112 1100 2011 54 230113 0500 2005 46   and the similar data from x3 and x4.


How can I change default font in Windows 10?

I would like to change the default font in Windows 10 that is used by web browsers or websites. I installed some fonts on my system and now websites that use my system default font, like Yahoo Answers, are showing in bold italic Helvetica Neue. This does not seem to be a browser issue as my font has changed on all my browsers. I want it to change back to whatever the standard default was.


Does CLEAR allow you to avoid the full body scanner?

TSA Pre-Check and Global Entry allow passengers to more or less avoid the full-body (millimeter wave) scanners and instead use metal detectors.  You also don't have to take off your shoes or take out your laptop.  This is an important benefit to many of us -- even more important than cutting the line. But TSA Pre-Check and Global Entry are only offered to US citizens, permanent residents, and . The rest of humanity is SOL.   seems to offer a solution as you only need a USA driver's license to apply, which means F1 students or H1B workers from any country, for example, are eligible.  But I'm unclear about the benefits of CLEAR. Do you  get the same pre-check benefits such as avoiding the full-body scanner if you don't have TSA Pre-Check? If you don’t, is there really that much benefit?


How does bending in space-time caused by mass energy translate into acceleration of object?

Let say we have 2 similar apples separated by a distance apart, just their mass energy alone is sufficient to cause bending in the space-time. I think it is this bending in the space-time that cause both the apples to accelerate but there shouldn't be any external forces to induce the acceleration, I've skimmed at the math it just says no bending no acceleration and that's not helping. I like to understand how bending in space-time cause the apple to accelerate?  [edit]okay I know the math shows that time is a vector(or scalar or even tensor*) too but that makes the matter even worst for me!  *just want to insured myself!


How to make an object go around another circular objects?

I am making a sort of steampunk element and I want to have small bolts go around a cylinder. I'm not sure what would be the most precise and quick method to achieve something like that:    My current model:    p.s. Also preferably with out using a curve modifier)


How to prevent -> from being formatted into an inverted question mark

I am trying to write a document where I have multipled instances of -->, <--, ----> etc... as it's a formatted answer to a referee response (and it follows their styling). However, LaTeX seems to convert all instances of -> into inverted question marks, and all instances of <- into upside down exclamation points.  Is there a way to block this from happening? Preferably some sort of command at the beginning of the document that would apply throughout and reroute whatever escape character this is triggering, or otherwise some way to escape this?


Is there any possibility of data loss when dual booting Ubuntu 13.04 and Windows 7?

I am already using Windows 7. I want to install Ubuntu 13.04 along side Windows 7 in a partition that I already made in one of my hard drive but I am worried about losing the data on my drive. Is there any possibility of data loss?


Problem with starting Steam on Ubuntu 64-bit

I've recently installed Ubuntu, and tried installing steam. It wouldn't start so naturally I went "Google has the answer", and it had. My problem is this: this line won't run.  sudo dpkg --add-architecture i386   It tells me this when I enter it: dpkg: error: unknown option --add-architecture.


Equation of a helix parametrized by arc length between two points in space

What is the equation of a helix parametrized by arc length (i.e. a function of arc length) between any two points in space? Is there any function for this ? How do i implement the same using matlab or mathematica ?


Why is breeding men and orcs considered evil?

There is a quote from the History of Middle-Earth (Morgoth's Ring) - supplied in  - that states:     There is no doubt that long afterwards, in the Third Age, Saruman rediscovered this, or learned of it in lore, and in his lust for mastery committed this, his wickedest deed: the interbreeding of Orcs and Men, producing both Men-orcs large and cunning, and Orc-men treacherous and vile.   OK, I get it that creation of Orcs as an act was a Bad Juju by Morgoth (or Sauron?) originally. But:   Why is merely breeding men and orcs so bad now that Orcs exist? Somehow, breeding Elves and men is a Highly Commendabe Thing (Aragorn and Elrond are both products of this). Even assuming that the breeding was not consensual on human part and this was the reason for marking the deed bad, this surely was not - by far - the wickedest thing Saruman ever did.


Can a Sorcerer learn "Cure Light Wounds" from a scroll?

According to the book, the sorcerer can learn an unusual spell from a scroll if the spell is Arcane. A Bard can use Arcane spells, and the "Cure Light Wounds" is available on his magic table.  So if I am a sorcerer and found a "Cure Light Wounds" scroll, would I be able to learn it as an unusual spell?  My question is because on page 64(Players book) there is this situation:     For example, a sorcerer with a scroll or spellbook detailing an    unusual sorcerer/wizard spell (one not on the sorcerer/wizard spell    list in this book) could select that spell as one of his new spells for    attaining a new level, provided that it is of the right spell level. The    sorcerer can’t use this method of spell acquisition to learn spells at a    faster rate, however


I am trying to write a query that will run all the days and the name of the day between two set dates.  Example:  Date1 = 12/28/2005 Date2 = 12/30/2006   Results:  12/28/2005 Wednesday 12/29/2005 Thursday 12/30/2005 Friday 12/31/2005 Saturday 01/01/2006 Sunday 01/02/2006 Monday 01/03/2006 Tuesday   Any help is appreciated!


I'd like to put enumerate on a new line, but cannot use \newline because there is no line to end! Here is the code:  \newtheorem*{quoz}{Teoremi del quoziente} \begin{quoz} % \newline here does not work     \begin{enumerate}         \item Se $\lim\limits_{x \to \alpha} |f(x)| = +\infty$ allora $\lim\limits_{x \to \alpha} \frac1{f(x)} = 0$.         \item Se $\lim\limits_{x \to \alpha} f(x) = 0$ allora $\lim\limits_{x \to \alpha} \frac1{|f(x)|} = +\infty$.         \item Se $\lim\limits_{x \to \alpha} f(x) = l$ allora $\lim\limits_{x \to \alpha} \frac1{f(x)} = \frac1l$.         \item Se $\lim\limits_{x \to \alpha} f(x) = l$ e $\lim\limits_{x \to \alpha} g(x) = m \neq 0$, allora $\lim\limits_{x \to \alpha} \frac{f(x)}{g(x)} = \frac lm$.     \end{enumerate} \end{quoz}   Currently the problem is that the first point starts where the theorem's title is. I find it kind of ugly. Is there a way to make it start after a new line?  I tried doing  \begin{quoz}$ $\newline     \begin{enumerate} %...   But that adds too much space and feels like a hack. Is there a better way?  EDIT: I discovered that for some weird reason this works  \begin{quoz}$ $     \begin{enumerate} %...   I don't get why because $ $ should be inline... Nevertheless, is there a better way?


06-25 18:30:30.885: E/AndroidRuntime(26556): FATAL EXCEPTION: main 06-25 18:30:30.885: E/AndroidRuntime(26556): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.eeee.ftest/com.eeee.ftest.MainActivity}: java.lang.NullPointerException 06-25 18:30:30.885: E/AndroidRuntime(26556):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at android.app.ActivityThread.access$700(ActivityThread.java:159) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at android.os.Handler.dispatchMessage(Handler.java:99) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at android.os.Looper.loop(Looper.java:176) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at android.app.ActivityThread.main(ActivityThread.java:5419) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at java.lang.reflect.Method.invokeNative(Native Method) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at java.lang.reflect.Method.invoke(Method.java:525) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at dalvik.system.NativeStart.main(Native Method) 06-25 18:30:30.885: E/AndroidRuntime(26556): Caused by: java.lang.NullPointerException 06-25 18:30:30.885: E/AndroidRuntime(26556):    at com.eeee.ftest.MainActivity.onCreate(MainActivity.java:21) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at android.app.Activity.performCreate(Activity.java:5372) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104) 06-25 18:30:30.885: E/AndroidRuntime(26556):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257) 06-25 18:30:30.885: E/AndroidRuntime(26556):    ... 11 more   public class MainActivity extends SherlockFragmentActivity {      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         requestWindowFeature(Window.FEATURE_NO_TITLE);         setContentView(R.layout.activity_main);          ActionBar actionbar = getSupportActionBar();         actionbar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);          ActionBar.Tab Frag1 = actionbar.newTab().setText("Fragment 1");         ActionBar.Tab Frag2 = actionbar.newTab().setText("Fragment 2");         ActionBar.Tab Frag3 = actionbar.newTab().setText("Fragment 3");          Fragment Fragment1 = new Fragment_1();         Fragment Fragment2 = new Fragment_2();         Fragment Fragment3 = new Fragment_3();          Frag1.setTabListener(new MyTabsListener(Fragment1));         Frag2.setTabListener(new MyTabsListener(Fragment2));         Frag3.setTabListener(new MyTabsListener(Fragment3));          actionbar.addTab(Frag1);         actionbar.addTab(Frag2);         actionbar.addTab(Frag3);       }      class MyTabsListener implements ActionBar.TabListener{          public Fragment fragment;          public MyTabsListener(Fragment fragment){             this.fragment = fragment;         }          @Override         public void onTabSelected(Tab tab, FragmentTransaction ft) {             // TODO Auto-generated method stub             ft.replace(R.id.fragment_container, fragment);          }          @Override         public void onTabUnselected(Tab tab, FragmentTransaction ft) {             // TODO Auto-generated method stub          }          @Override         public void onTabReselected(Tab tab, FragmentTransaction ft) {             // TODO Auto-generated method stub          }      }  }


Let normal user restart service with /etc/sudoers

I have a service (kado-demo.service) that a normal user (kado) should be able to restart without entering any password.   I created /etc/sudoers.d/user_restart and added  kado ALL=NOPASSWD: /bin/systemctl restart kado-demo.service   Permissions:  -r--r-----   1 root root   585 Mar  5 10:47 user_restart   As user k, I now should be able to execute the given command, but this happens:  /bin/systemctl restart kado-demo.service  ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===  Authentication is required to restart 'kado-demo.service'.   Multiple identities can be used for authentication:   (...)   Which is the same result as before I added the file.   The /etc/sudoers contains  #includedir /etc/sudoers.d   And I even get the same result when I add content of the user_restart file directly to /etc/sudoers.  I'm running out of ideas...


Windows Installation on linux pc from .iso?

I have had Ubuntu installed on my laptop now for a while, I have also been switching distros. Now that I want to install windows back again I am having a problem:   I have tried making a bootable windows sd card with my windows 8.1 .iso file (which I checked and it works on Virtualbox). I tried the dd method (in the terminal) and disk image writer (both used to work for me fine with other linux iso's).   It seems to have writen the .iso file successfully, however when I boot from the sd card in the BIOS, it doesn't recognise the OS and boots back into Ubuntu. I also tried this with Windows XP and Windows 7.   Is this a partition problem?


How to line up the "&" to make tables readable in code

I'm using TeXShop and I was wondering if there is a way to line up the "&" in the code for tables in Latex, to make them readable and able to modify them without having to compile permanently.  For example, I have :   test&44&2 test2&24&3   and I want :   test   &   44  &  2 test2  &   24  &  3   I don't know if there is a solution to my problem ?   Thanks in advance !


I have a file with the lines like below.  title1:A1 title2:A2 title3:A3 title4:A4 title5:A5  title1:B1 title2:B2 title3:B3 title4:B4 title5:B5  title1:C1 title2:C2 title3:C3 title4:C4 title5:C5  title1:D1 title2:D2 title3:D3 title4:D4 title5:D5  How can I achieve this?   title1    title2     title3    title4 A1         A2         A3         A4 B1         B2         B3         B4 C1         C2         C3         C4 D1         D2         D3         D4


I want to use sed to change a slash into a backslash and a slash, i.e. / -> \/. But it does not work. Here a small example:  #!/bin/bash TEST=/etc/hallo echo $TEST echo $TEST | sed "s/hallo/bello/g" echo $TEST | sed "s/\//\\\//g"   The output of the first three lines is as assumed. But the last one does not work. Why? How to correct the last part?


Is 30 GB enough space for working with Ubuntu?

I installed Ubuntu 14.04 LTS alongside windows 7. I have 4 partitions on windows 7. I had a 73 GB partition which I could have used in it's entirety for installing ubuntu. Unfortunately, when I chose to install ubuntu alongside windows 7 it only took 30 GB of that partition and I didn't re-size it.  My question is - Will I be able to access windows partitions and install software on them if I wish to do so from my ubuntu login? Will 30 GB be sufficient to install all updates/packages/software? I plan to do some side dev projects on the machine.  Are these instructions safe for re-sizing the windows partition and assigning it to ubuntu -  or are there better instructions available?


The XOR operator seems to be a frequently used building block inside many cryptographic primitives.  As far as I can see, its most desirable properties seem be that for the XOR of two bits $a\oplus b=c$:   The information is preserved.  Either $a$ or $b$ can be recovered from $c$ and the other bit. The information is hidden.  An adversary can not learn anything about $a$ or $b$ from $c$ alone.   Neither AND nor OR has these properties but XNOR does.  It seems like any cryptographic application using XOR could be constructed equivalently with XNOR, without incurring any loss in security.  One possible reason to prefer XOR might be that XOR is equivalent to addition modulo 2, whereas XNOR would be addition plus 1 modulo 2, but this seems to be entirely mathematical, and I'm not sure if it actually results in any additional hardware complexity in practice.  Is the choice of XOR then an arbitrary one, made for historical reasons, or is there any tangible underlying motivation for using it over XNOR?


Squaring floats between -1 and 1 reduces sum of squares, so why do it?

I have been learning basic statistical testing as it relates to agriculture and have become familiar with the common practice of summing squared raw deviation values, whether in something simple like a standard deviation calculation or something more complex, like ANOVA and Chi square.   I understand the logic in squaring the values so that negative numbers do not reduce the total sum of squares to zero. It makes sense. But when working with deviations that are decimals between -1 and 1 the act of squaring the values reduces the sum of squares, which is counter intuitive to the idea of squaring the values in the first place.   Why is the reduction in overall sum associated with squaring simple deviations between -1 and 1 acceptable? That part of the process seems to run in opposition to the concept of squaring the values in the first place.


I know the official PvP patch is coming Soon™, but until then do I need to be worried like in Diablo II that someone can come into my game and gank my guy?  Is PvP possible under any circumstances at all?


How do I copy a file in multiple folders in Ubuntu?

I have directory named "public" in every directory inside Documents. I want to copy file named File.txt in every directory "public".  cp -r File.txt Documents/*/public/   doesn't seam to work. What should I do?


Is there a way to find the number of accepted answers you have, other than manually counting each one?


.bak file not visible in any directory in SSMS

I have a .bak file created today by someone else, manually created through SSMS 2008 R2. I'm trying to manually restore the database, unfortunately the file isn't appearing when I go to browse it.  I can script the restore process, but I've seen this problem before and I'm not sure what could cause the .bak to not appear.


Let $a ,\ b ,\ c \ \text{and}\ d \in \Bbb{Z}$. We have: $ \gcd(c,d)=1$, $a \equiv b \pmod{c}$, and $a \equiv b \pmod{d}$ then  $a \equiv b \pmod{d.c}$ Is this hypothesis true? How can I prove this ?


How to make a bash script wait and then continue running?

I have an .sh script. I would like to wait 25 minutes and then continue running, NOT repeat. It's something like this:  #!/bin/bash /bin/bash ~/path/script.sh   I want it to kill a process after waiting 25 minutes.  #Wait 25 minutes killall process


Python re.sub giving error: invalid group reference

I know this was covered elsewhere but my use case is causing me difficulty.  What if a string has a dreaded "\3" character like this one:  new_data = r'C:\temp\3_times.csv'   ...then re "thinks" that you're referring to it as a group so if you try to do a sub using that data then you get this error:  newfiledata = re.sub(old_data,new_data,filedata)  error: invalid group reference   Is there any way to avoid this error without looking for that case in the string and modifying it directly before passing it which would take lots of extra code.  Note: For the usage I'm going for modifying the string with escape characters isn't an option because I need to write the string with the sub function later on. So this is not a duplicate of the question on how to escape special characters.


Show that the eigenvalues of the cycle $C_n$ are $λ_j=2 \cos(\frac{2πj}{n})$

Show that the eigenvalues of the adjacency matrix for cycle $C_n$ on $n$ vertices are $λ_j=2 \cos(\frac{2πj}{n})$.  I've seen a couple of references that just assume this to be true, but I have not found any sort of prove for it. Any help will be much appreciated.


Using special character for column alias - Oracle

I trying to alias a column with "a&b":  eg:  SELECT numberofemployees "Employees (D&B)" from account;    or   SELECT numberofemployees as "Employees (D&B)" from account;   Every other character works fine except for the "&". This query is prompting me to give a value for a variable. I am using it in PL/SQL Developer.


In the card came "Projective Set", show that 7 cards do always contain a set.

In the game of , it turns out that any seven cards contain a projective set. How can one prove this? And for fewer than 7 cards, how can we determine the probability that one or more sets exist (in terms of the number of cards)?  For those not familiar with Projective Set, here's a description from the wikipedia page linked above:   A Projective Set card has six binary attributes, or bits, generally represented by colored dots. For each color of dot, each card either has that dot or does not. There is one card for each possible combination of dots except the combination of no dots at all, making $2^6 - 1 = 63$ cards total.  Three cards are said to form a "set" if the total number of dots of each color is either 0 or 2. Similarly, four or more cards form a "set" if the number of dots of each color is an even number.  A card and itself could be said to form a two-card set, but as the cards in the deck are all distinct, this does not arise in actual gameplay.


How to colour item text in Vanilla minecraft?

Recently, I have seen item names on servers and on this very website with odd characters preceding them. I was thinking "well, this changes everything!".  Can you make item name act like JSON text using this method? (i.e. any colour, bold, italic, obfuscated?)   Please list methods/preceders below.    Edit  What I am looking for is the colour of the item names, not sign block data or written books with coloured text. For example, when you go on a server, you often see items with coloured or obfuscated names.


Should I sudo as root or use a public key

I have read a few times to disable root login and sudo as root using another user.  But is using a public key as good if not better security?


Determining the general solution for the trigonometric equation $ 5\cos(x)-12\sin (x) = 13 $

Given that $$5\cos(x)-12\sin (x) = 13 $$  I'm trying to evaluate the general solution for that expression. It reminds me of $5-12-13$ triangle. Since we don't know the degree of $x$, I couldn't proceed further. Specifically, let's take its derivate, which yields   $$\dfrac{d}{dx} 5\cos(x)-12\sin (x) = 13  = 0$$


$\sum_{n=1}^{p-1}{\frac{1}{n}} = \frac{A_p}{B_p}$ What is $A_p$ (mod $p^2$) where $\frac{A_p}{B_p}$ is a reduced form fraction?

From Silverman's A Friendly Introduction to Number Theory, exercise 12.3 (This is not homework). We start with a prime number $p$ and let  $$\sum_{n=1}^{p-1}{\frac{1}{n}} = \frac{A_p}{B_p}$$  where $\frac{A_p}{B_p}$ is a reduced form fraction. The exercise asks to find a simple way to express $A_p$ (mod $p^2$).  I understand that $A_p$ is $0$ (mod $p$), which can be proved by rewriting $A_p$  $$A_p = \sum_{n=1}^{p-1}{\frac{(p-1)!}{n}}$$  and noting that each term in the sum is in the form  $$\frac{(p-1)!}{n}$$  which allows us to write  $$ (p-1)! \equiv -1 \text{ (mod } p)\\ \frac{(p-1)!}{n} \cdot n \equiv -1 \text{ (mod } p)\\ \frac{(p-1)!}{n} \equiv -n^{-1} \text{ (mod } p). $$  Since every number between $1$ and $p$ - $1$ is represented by $-n^{-1}$ (mod $p$) for some unique $n$ between $1$ and $p$ - $1$, we can write   $$A_p \equiv T_{p-1} = \frac{(p-1)p}{n} \equiv 0 \text{ (mod } p).$$  However, the problem only asks for $A_p$ (mod $p^2$), for which I don't know where to proceed. I've tested every prime number up to $p = 37$ and found that with the exception of $p = 3$ every value of $A_p$ is $0$ (mod $p^2$).  If someone who understands what I'm missing can point me in the right direction or give me a hint I'd appreciate it.  EDIT  It's been suggested that Wolstenholme's theorem can be used to finish the proof. The connection between the problem here and Wolstenholme's theorem is interesting so I will try to study Wolstenholme's theorem. However, it doesn't seem like a likely path to have taken from where I'm at in my understanding. I'm also skeptical Silverman had intended for the audience of his book to discover Wolstenholme's theorem as a lemma to proving that $A_p$ is $0$ (mod $p^2$).


Does Dispose still get called when exception is thrown inside of a using statement?

In the example below, is the connection going to close and disposed when an exception is thrown if it is within a using statement?  using (var conn = new SqlConnection("...")) {     conn.Open();     // stuff happens here and exception is thrown... }   I know this code below will make sure that it does, but I'm curious how using statement does it.  var conn; try {     conn = new SqlConnection("...");     conn.Open();     // stuff happens here and exception is thrown... } // catch it or let it bubble up finally {     conn.Dispose(); }   Related:


How can Wi-Fi bend through windows or penetrate walls?

Browsing on Wi-Fi, I can access stuff in my room even though my Wi-Fi has to go through a wall to reach me.  But how is this possible, when the Wi-Fi wavelength is 12 cm, as cited ?  AFAIK, for light, or any form of electromagnetic wave, to "bend" around walls, the wavelength must be bigger than the window size. So how can Wi-Fi bend around windows? And how can it penetrate walls?  As a broader question, when can electromagnetic waves penetrate and not penetrate walls?  The question is different from .  That question already presumes that radio waves and gamma rays can travel through walls.   I do not know whether light can "bend" or penetrate walls. Also, I question Wi-Fi signals, which I believe are in the infrared spectrum only.


In Fallout Shelter, do the stats of the parents affect the baby's?  E.g. If both parents have a high strength stat, will the baby have one too?


How to avoid page-breaks inside paragraphs?

I would like to know if there is any global command that would prevent any page-breaks inside paragraphs. I'd rather have the whole paragraph on the next page instead of having it cut in the middle. I tried the \nopagebreak command but it doesn't do the trick. Any idea?


WINDOWS 10 - Error Windows Update 10 = Error in phase " SAFE_OS " with the operator error with " BOOT "

For days I tried several ways to install Windows 10 . With Windows Update I have always an error and with the media creation tool microsoft I have this message: " The installation failed in SAFE_OS phase with an error when BOOT operator " with this code : 0xC1900101 - 0x20017 Having tried everything I do not know what to do ... Can you help me please ? Thank you  PS: I migrated my OS with the software "Paragon migrate OS to SSD" from my hard disk to my SSD. Maybe I have this errors because I did this....


How to wrap my macro in a IF EXIST clause

I have the following code:  If Sheets("EstimateTemplate").Visible Then     Sheets("EstimateTemplate").Select     ActiveWindow.SelectedSheets.Visible = False     Sheets("Navigation").Select Else     Sheets("EstimateTemplate").Visible = True     Sheets("Navigation").Select End If   how can I wrap it with "IF SHEET EXISTS" clause  I tried the following which didn't work  IF not Sheets("EstimateTemplate") = "" then    If Sheets("EstimateTemplate").Visible Then    Sheets("EstimateTemplate").Select    ActiveWindow.SelectedSheets.Visible = False    Sheets("Navigation").Select    Else    Sheets("EstimateTemplate").Visible = True    Sheets("Navigation").Select    End If end if


Binary Logistic Regression using Non-Dichotomous Independent Variables; SPSS

I'm using SPSS for binary logistic regression but one of my independent variables is non-dichotomous and categorical (genotype - there are 5 gene combinations possible). I'm trying to see if a particular genotype is associated with the presence of anxiety as well as if there is a sex-specific effect (i.e. males with a particular genotype are more likely to have anxiety). Independent variables:  Sex (male/female), Genotype (5 combinations)  Dependent variable:  presence of anxiety (yes/no)  I coded  male=0 and female=1, and no=0 and yes=1,  but I don't know how to code the genotypes for this analysis? I would greatly appreciate any help!


I am getting messages upon boot up that my hard drive will die very soon, and will need to replace the hard drive.  I do not wish to use some application to move my data and programs, but wish to do it manually.  I am looking for a typical list of directories and files which need to be moved as well as how to generate a list of programs I have installed so I can decide whether I wish to reinstall them on the new machine.  I just backed up My Documents, My Pictures, and My Videos.  I also backed up my Outlook pst file and browser bookmarks.  EDIT.  In hindsight, I probably should just have backed up C:\Users\Michael where Michael is the only normal user.  I rarely use the admin user, and don't think I need to back it up.  Any other "typical" directories or files which should be moved?  What about public/private keys, or is this handled under My Documents?  How can I generated a printable list of programs I have installed? EDIT.  I think I answered this using Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize  The operating system originally was Windows 7 Professional (I still have the DVD) and was updated to Windows 10 for free.  Do I need to backup any sort of license?


Suppose $X$ and $Y$ are independent and identically distributed uniform r.v on $(0,1)$. Compute the joint density of $U=X+Y$ and $V =  \dfrac{X}{X+Y}$. How about if $X$ and $Y$ are iid exponential with $\lambda=1$?  Try Notice that $f_{X,Y}(x,y)=1$ and $X= V(X+Y)= UV $ and so $Y = U -X = U - UV = U(1-V)$. We compute the Jacobian of map $(U,V)$ and obtain $$ J = 1 \cdot \left( - \frac{X}{(X+Y)^2} \right) - 1 \cdot \left(  \frac{Y}{(X+Y)^2} \right) = - \frac{1}{X+Y} = \frac{-1}{U} $$ And since $$ f_{X,Y}(X,Y) = 1 $$ then $$ f_{U,V}(u,v) = f_{X,Y} (x,y) \frac{1}{|J|} = u $$ Since $0 \leq UV \leq 1$ and $0 \leq U(1-V) \leq 1$, we have $0 \leq U \leq \frac{1}{V}$ and $1 - V \leq \frac{1}{U}$ and so $1 - \frac{1}{U} \leq V \leq 1$ is this correct?


Is there any way to see what answers were deleted?

I can look at my profile and get a list of "questions answered" and "comments made".  Q: Is there a similar way to get a list of "posts deleted"?  Q: What is the protocol for requesting "un-delete"?


Get rid of unity desktop on Ubuntu 18.04

I've installed Ubuntu 18.04, and everything worked excellent until I decided to try Unity desktop. Bottom line - I've uninstalled unity desktop completely. But! I have some stuff that didn't recover to previous state. First is the login screen that have changed, and I want to bring back the gnome native login screen.  Second is the Lock screen (that is shown on wake up). Before unity it was the gnome's one, that you can change it's background in the background properties.  After unity it changed to annoying login form that doesn't work if the keyboard layout is not english, and you just can't switch between layouts in this form and all the window around it. So if before sleep I was using hebrew or russian layout, on wake up I just cant log back in, and I have to restart the pc.  How can I switch back to normal gnome stuff? Thanks!


The speed of light is the same constant $c$ as seen by any inertial frame in SR. But, is the speed of light same in all frames (inertial or otherwise) in GR?


Expected number of rolls to get all sixes

I'm struggling with the following problem:      I have $N$ balanced 6-sided dice. I roll the dice simultaneously, and remove any sixes that occur. I roll the remaining dice again, and remove any more sixes. I repeat the process until there are no dice remaining. What is the expected number of rolls this will take?   So far I have calculated that by the $n^{th}$ dice roll there will be $N\left(\frac56\right)^n$ dice remaining: If we start with $N$ dice, on the first roll we expect $\frac{N}{6}$ sixes. Therefore, on the second roll we expect to have $N-\frac{N}{6}$ dice and hence expect $\frac{5N}{36}$ sixes, meaning after the second roll there are $\frac{25}{36}N$ dice remaining.  Repeating this calculation gives the sequence $N, \frac{25}{36}N, \frac{125}{216}N...$ which is equal to $N\left(\frac56\right)^n$ where $n$ is the roll number. I'm struggling with the next part: My thinking is we must find the expected number of rolls $n$ such that $N\left(\frac56\right)^n\lt0.5$, and therefore $n>\frac{\ln(\frac{0.5}{N})}{\ln(\frac56)}$. Taking $N$ to be $8$, the expected number of rolls is then about $15.21$. I used MATLAB to run the experiment $200,000$ times, and it gave me an average number of rolls of $15.4$. I seem to be close to the right answer, but I'm not sure what I've done wrong. What is the solution?


When the polynomial $P(x)$ is divided by $x^2 -1$, the remainder is $3x-1$. What is the remainder when $P(x)$ is divided by $x-1$?  I'm not sure what to do. I know that $P(1)=P(-1)=3x-1$, but I don't think that's how you're supposed to do it.  Any help would be appreciated, thanks.


Partitions for Ubuntu and Windows 7 dual boot on SSD + HDD setup

I have purchased a new SSD (120GB) and I had a HDD (1TB) already installed. I will install both Ubuntu and Windows on these drives. As the file space on the SSD is limited and I've read that writing to an SSD drive is discouraged, I would like to store most of the data on the HDD drive. I am aiming at faster system but also keeping the valuable data safe on the more reliable HDD and expanding the life span of the SSD.  I have already set up Windows on these drives (system files and applications on SSD, Users folder and ProgramData on HDD) and now it's time to set up Ubuntu.  So my question is which partitions I should create, on which drive should they be placed and how large they should be.  Based on my experience and articles I've read, I will probably create /swap, /home and / partitions.   Does it seem reasonable to place /swap and /home partitions on the HDD and / on the SSD?  And how large should / partition be?  Also, will the applications be installed in / partition? If so, is it rational to store the applications on separate partitions on the HDD instead of / on the SSD, and what should the size of the / partition be in this case?


In-Question newsletter signup box misaligned

While browsing questions earlier today, I noticed the newsletter signup form that sometimes appears in the answer list of a question has a subtle input box that is misaligned relative to the more visible "email address" box beneath it that acts as a label. A freehand circle for reference:    Firefox 28.0 on Windows 7 Professional, 64 bit.


What is Verlinde's statistical description of gravity as an entropic force?

What is Verlinde's statistical description of gravity as an  leads to the correct inverse square distance law of attraction between classical bodies?


I was seeing  by Eddie woo on circular seating's, in it , he discusses the following question:  Find the number of ways to arrange 5 boys and 5 girls in a circular seating  At 0:40, he places the first person and then keeps the rest and hence total ways to do it is $ 1 \cdot 9!$ , however I can't precisely frame why we only have one way to keep the first person. So, I'm looking for the understanding on why he said the first step like this... (he laters say it is related to the fact we can rotate the circle but I didn't get that either)


SSIS for/each loop to ETL tables across databases

I have 100 pre-written SQL Server table insert statements, to pull data from a Progress database via openquery into 100 SQL Server tables e.g.  insert into table1 (col1 varchar(50), col2 varchar(10)) select X,Y from aprogresstable insert into table1 (col1 varchar(40), col2 int, col3 varchar(15)) select X,Y,Z from anotherprogresstable for 100 tables..   However, this is slow over openquery. Therefore, I'd like to import these data nightly from Progress into existing SQL Server tables using SSIS.   What is the best way to achieve this, without needing to create 100 data flow components (e.g. 100 sources, 100 destinations).  SQL Server Import/Export wizard is an option here but I've found it has data mapping issues with date fields.  Therefore, is it possible to create a For/Each loop to loop through 100 SQL insert statements via SSIS to pull data from Progress/Push to existing SQL Server Tables?  Thanks!


My advisor obligate me to put her name first author name in my publication. What are the possible pros and cons of this order? What should I do if my advisor insists on being first author, in violation of my field's conventions? My field is IT.


How do I prove that the set $\{0,1\} ^{\Bbb N} $is equivalent to the power set of natural numbers $P(\Bbb N)$?

At least I need a reference to some book.


What is an example of a continuous but not closed function?

I have two questions about closed functions.  Firstly, we say that a function is closed if it maps closed subsets in the domain to closed subsets in the co-domain. Polynomials are typical examples of closed functions.  However, I'm having trouble thinking of a function $f: \mathbb{R} \rightarrow \mathbb{R}$ such that $f$ continuous in $\mathbb{R}$ but is not a closed function.  My second question is that if given a function $f$, what steps would one take to actually prove that it is closed? A sketch would be an easy way to demonstrate it, but I am not entirely sure how you would actually prove it.


A word that means "to become one's name"

I'm looking for a word which indicates that a person has adopted a quality suggested by their name, e.g. a person named Grace who is indeed graceful, or perhaps someone named Shepherd who has become a shepherd.  I have a strong notion that I once learned such a word, but I have forgotten it and have never re-discovered it.


Prove by induction that $5^n - 1$ is divisible by $4$.   How should I use induction in this problem. Do you have any hints for solving this problem?  Thank you so much.


I have an object, and I want to list all the selectors to which it responds. It feels like this should be perfectly possible, but I'm having trouble finding the APIs.


KB-3135445 getting stuck at "searching this computer for updates"

I installed Windows 7 fresh and installed SP1. A manual Windows Updates check hangs on the checking for updates screen. Following the advise in this answer:   I downloaded KB-3135445 and following the instructions, ran the standalone update, but it also got stuck at "searching this computer for updates"   What now?


I added some screenshots above. When I run the game obstacle are falling rapidly through y axis. So, there's no more obstacle in that ground. If there's ground than those obstacle should stopped. I tried by freezing them. But, when another object hit them they are froze. So, I want ground to stop them. I have another question also. I have player movement. When I will run the program. The Player should be go through z axis. But, The object(player) don't move. PlayerMovement.cs using UnityEngine;  public class PlayerMovement : MonoBehaviour {     public Rigidbody rb;      public float forwardForce=2000f;           void FixedUpdate()     {         rb.AddForce(0,0,forwardForce * Time.deltaTime);         if(Input.GetKey("d")){             rb.AddForce(30 * Time.deltaTime,0,0, ForceMode.VelocityChange);         }else if(Input.GetKey("a")){             rb.AddForce(-30 * Time.deltaTime,0,0, ForceMode.VelocityChange);            }                     if(!Input.touchSupported)         {             // Still support PC keys             if(Input.GetKey(KeyCode.D))             {                 rb.AddForce(30 * Time.deltaTime,0,0, ForceMode.VelocityChange);             }             else if(Input.GetKey(KeyCode.A))             {                 rb.AddForce(-30 * Time.deltaTime,0,0, ForceMode.VelocityChange);                }         }         else         {             // For touch devices             if(Input.touchCount == 1)             {                 var touch = Input.GetTouch(0);                 var touchPos = touch.position;                              var isRight = touchPos.x >= Screen.width / 2f;                              if(isRight)                 {                     rb.AddForce(30 * Time.deltaTime,0,0, ForceMode.VelocityChange);                 }                 else                 {                     rb.AddForce(-30 * Time.deltaTime,0,0, ForceMode.VelocityChange);                    }             }         }             if(Physics.Raycast(transform.position,Vector3.down,0.5f)==false){             // rb.velocity = new Vector3(0, rb.velocity.y, 0);             rb.constraints = RigidbodyConstraints.FreezePositionZ;         }else{             rb.constraints = RigidbodyConstraints.None;         }          if(rb.position.y < -1f){             FindObjectOfType<GameManager>().EndGame();         }     } }  PlayerCollision.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement;  public class PlayerCollision : MonoBehaviour {          public PlayerMovement movement;      void OnCollisionEnter(Collision collisionInfo)     {         Debug.Log(collisionInfo.collider.name);         if (collisionInfo.collider.tag == "obstacle")         {             movement.enabled = false;             FindObjectOfType<GameManager>().EndGame();         }else if(collisionInfo.collider.name == "END"){             FindObjectOfType<GameManager>().CompleteLevel();         }     }     void Restart(){         SceneManager.LoadScene(SceneManager.GetActiveScene().name);     } }   If you look at above source code clearly. So, you might see that I have a Debug.Log right there. But, when I run the game. I don't get any message to console. As a new game developer(learning) I don't know what's happening, what's wrong with this.


Why was the bounty on this question cancelled?

A user had put a bounty on . The bounty was later cleared by a moderator, who sent the user a private message citing the reason for revoking the bounty (supplied by the user in chat):     We have cancelled your bounty on [the question]. Now that the issue you were discussing in chat (presumably why you started this bounty) has been cleared up, we see no need to keep highlighting this question. The original question was resolved a year ago.   As far as I understand, bounties can be freely applied to any eligible question by anyone with the required rep for any reason, and there is no explicit policy basis that says that bounties can be revoked simply because the moderators feel that there is no need to "highlight" a given question. (If there is such a policy, it would mean that bounties intended to be awarded to rather old existing answers wouldn't be permitted, but I see those happening and they don't get cancelled.)  Was there some different reason why the bounty was cancelled? Did the fact that they selected the "draw attention" reason play a part in the bounty cancellation? Does the user have a history of abusing bounties that I'm not aware of (hence the mod message warning)? Or was it just a helpful move so that the user doesn't waste the rep?


I have dedicated server from OVH with additional ipv4, I have added the IP to the system interface configuration (debian), I can access the machine from both IPs now, but for some reason the first response I receive from the additional ip set as eth0:0 is way slower then from the first original ip set as eth0.  Could this be caused by wrong configuration in the system or it is problem caused on OVH side ?


Suppose $a_n>0$ and, for large enough $n$, $\frac{a_{n+1}}{a_n} \leq 1-\frac{c}{n}$, where $c>1$. Prove the series $\sum a_n$ converges.  I tried looking at the tail of the distribution, at which point we have a decreasing sequence of positive reals, but other tests don't seem to yield anything. Can't see how the particular form of the RHS helps.


Why does \subsubsubsection not work for \documentclass{scrbook} and how can I force it anyway?  There is a MWE:  \documentclass{scrbook} \setcounter{secnumdepth}{3} \begin{document} \chapter{Chapter} \section{Section} \subsection{Subsection} \subsubsection{Subsubsection} \subsubsubsection{Subsubsubsection} \end{document}   With this MWE a get an error: "undefined control sequence \subsubsubsection" and the pdf looks like this:    But I need "1.1.1.1.1. Subsubsubsection" in the last line.


What happens when the Brush in a DC Motor touches two commutators

I was watching this video and realized that there is a point in time when the brushes positive and negative can be shorted as shown in the image below. And it made me curious.  For people with experience or understanding of dc motors, what exactly happens at that point in time when this short happens?


How can I save a file as a string array in Java?

I am trying to save a file line by line as a string array, but I am a beginner and confused.  package com.java24hours;  import java.io.*;  public class ShorteningVelocity {     public static void main(String[] arguments) throws IOException {          FileReader SVfile = new FileReader(new File("C:\\Documents\\10-27-15110mMKPSS3.dat"));         BufferedReader br = new BufferedReader(SVfile);         String temp = br.readLine();         while (temp != null) {             temp = br.readLine(); //reads file line by line              System.out.println();         }     } }


Is it possible to bring built-in lightning components into aura component?

I have a form that needs to let the user select 3 out of 5 products, something similar to Order > Add Product (Modal). I was wondering if there was a way to bring that piece into my component (markup) and add some sort of filter that only shows the products I want to show.  What I found so far:  <lightning:listView objectApiName="Products2" listName="productsView" showActionBar="true" enableInlineEdit="true" showRowLevelActions="true"/>   But Product2 is not supported for that component.  also these from browser inspector:  forceMultiAddUsingLVM forceListViewManager   These are data-aura-class attributes when rendered.  I'm looking for directions here. Thanks in advance.


Suppose that $f : [a, b] \rightarrow \mathbb{R}$ is a strictly increasing continuous function which is twice differentiable at $c \in (a, b)$, with $f(c)$ not equal to $0$.  Show that the second derivative of the inverse function $g$ at $f(c)$ exists and find a formula for it.  Any help would be greatly appreciated. Thanks!!


I am putting the user input into a list, but I was wondering how to change the format for how the input is stored in the list, for example:  Code  lst = list(raw_input("Enter message: "))   User Input  ABABABAB   Output  ['A', 'B', 'A', 'B', 'A', 'B', 'A', 'B']   Desired Output  ['AB', 'AB', 'AB', 'AB']


CSS border attribute alters more than the border

I have this div container in a table cell:

Themensuche

      	     ...     ...

   There is nothing special, no experiments, no floating, everything static.   As long as the div has a normal border, everything looks fine:  <div style="margin: 0; border: 1px solid blue; ...       Here is the problem. As soon as I set the border to 0, the border and much of the div's inner space is cut off:  <div style="margin: 0; border: 0; ...        I've checked with Chrome and Mozilla edge. What is causing the browser to cut off inner space? It goes against my complete understanding of the box model. How do you recommend I'd start debugging this?   Thanks for your attention.


"Visualized" equivalent adjective for audio

Are there such words as "audiolized" or "audibilized"?  EDIT: Merriam-Webster has the word  indexed with no definition! What I was trying to achieve was to say that something is an audibilized presentation of some other thing, exactly the same way we use visualized presentation.  EDIT:  is a visualization of a sort algorithm. Therefore  is ...? Audilization? Auralization? Sound representation?  EDIT:  as well.


According to Wolfram Alpha $$\sum_{n=1}^{\infty} \frac{\left(\frac{1}{2}\right)^n}{n^2} = \frac{\pi^2}{12}-\frac{\ln^22}{2}$$ I searched on Wikipedia and learnt that  $$\sum_{n=1}^{\infty} \frac{\left(\frac{1}{2}\right)^n}{n^2} = \mathrm{Li}_2\left(\frac{1}{2}\right)$$ In general, the series is related to polylogarithm function $$\mathrm{Li}_k(z)= \sum_{n=1}^{\infty} \frac{z^n}{n^k}$$ However, I do not understand how exactly to use the polylogarithm function to evaluate $$\sum_{n=1}^{\infty} \frac{\left(\frac{1}{2}\right)^n}{n^2}$$ Could people provide me some assistance?


How can I instruct listings package to correctly handle SQL comments in external source files?

The listings in SQL containing -- style comments come across as −− when pasted from PDF (if lmodern is used, otherwise as ??). I looked at these answers but do not see how I could use them with the listings (which I mostly load from the external files (if that matters):   \documentclass[11pt,letterpaper]{memoir} \usepackage{lmodern} \usepackage{listings} \lstloadlanguages{SQL}  \lstset {     frameround=fttt     ,language=SQL     ,numbers=left     ,breaklines=true     ,showstringspaces=false     ,columns=flexible     ,keepspaces=true }  \begin{document}  \begin{lstlisting} select 1 -- This is just a comment select 2 \end{lstlisting}  \end{document}   The results look as follows in Sql Studio after pasting from PDF (third line is what they should look like):    EDIT:  I tried using the method proposed in  and it worked fine for just the common SQL comment lines (ex: -- This is a comment), but it had a side effect on the output listings, where the field names are separated from data with the lines containing multiple dashes:  field1 -------------- 1.33333333   These have an extra space after the first 2 dashes and look as follows:    MWE with the linked suggestion implemented:  \documentclass[11pt,letterpaper]{memoir} \usepackage{listings}  \makeatletter \lst@CCPutMacro\lst@ProcessOther {"2D}{\lst@ttfamily{-{}}{-{}}} \@empty\z@\@empty \makeatother  \lstset {     frameround=fttt     ,language=SQL     ,breaklines=true     ,columns=flexible }  \begin{document}  \begin{lstlisting}[caption={extra spaces},label={lst:sp},nolol=true,numbers=none] field1 -------------- 1.3333333  field1    field2 --------- -------------- 9.66667   9.66667 \end{lstlisting}  \end{document}


How to Copy a 2d array and print copy in Java?

What i am suppose to do is create a method that is able to copy a 2d array. The code below is what I have so far, the first part is made for user to enter the array info and the bottom is were my problem starts. I don't know what is wrong, every time I run the code I get something like this :   Enter the no. of rows:  2  Enter the no. of columns:  2  Enter the elements: 3  Enter the elements: 7  Enter the elements: 5  Enter the elements: 8  [[I@3669ae9f  [[I@3669ae9f  This is my code:      public static int[][] copyArray(int[][] array) throws IOException    {     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));     System.out.println("Enter the no. of rows: ");     int m = Integer.parseInt(br.readLine());     System.out.println("Enter the no. of columns: ");     int n = Integer.parseInt(br.readLine());      int A[][] = new int[m][n];       for(int row = 0; row < m; row++)     {         for(int column = 0; column < n; column++)         {             System.out.print("Enter the elements: ");             A[row][column] = Integer.parseInt(br.readLine());         }     }       int[][] newArray = new int[A.length][];     for(int x = 0; x < A.length; x++)     {         newArray[x] = A[x].clone();         System.out.println(newArray);     }     return newArray;    }


Storing data / session for anonymous user

I am working on a shop, and for the cart, i need to store items before payment.    $tempstore = \Drupal::service('user.private_tempstore')->get('boutique');   $tempstore->set('poids', $form_state->getValue('poids'));   I take a look on the user service for :      pivate_tempstore and shared_tempstore   But that work only for authenticates users.  What can I use for store data ? $_SESSION ? or Drupal 8 has a service for that ?


Why do all fluid particles crossing a point in a steadily flowing fluid have to follow the same path?

I came across the following lines in Resnick, Halliday, Krane's Fundamentals of Physics :     In steady flow, the velocity V at a given point is constant in time. Consider a point P within the fluid. Since V at P  does not change in time in steady flow, every fluid particle arriving at P will pass on with the same speed in the same in the same direction. The motion of every particle passing through P thus follows the same path.   Now, the above statement does not have to be necessarily true. Consider the following scenario:   Two fluid particles a and b are passing through P. Since the two paths have the same tangent at P, the direction of their velocities will be the same at P. Their speeds can also be set to be the same at P ( perhaps by stating that the two particles have have the same uniform speed u ). Yet, as shown in the figure, the particles don't follow the same path.  How can this be explained?  A similar question has been asked here:    But only the possibility is sought and addressed (atleast at the time of asking my question). So, what is the reason?  PS : The two particles need not be at P at the same instant. Also, I don't think its possible for two incompressible particles to be at the same point at the same instant.


i dont know even how this is name. If i add here new question then i title is disappearing hits. I can add default value in input, but this isnt this. Here is another. How can i make this? And how can i make this in input password? There is *, so how can i write in clean text? Generally what this is name?  Thanks for help!   <form> First name: <input type="text" name="firstname" value="First Name" />
 Last name: <input type="text" name="lastname" value="Last Name" />
 Password: <input type="password" name="pwd" value="password" /> </form>


I come from a C++ background and have trouble understanding the point of IDisposable objects (and the point of many other things in .NET). Why is a Dispose function necessary in the first place? Whatever it does, why not do that in the destructor of the class? I understand it cleans up managed resources, but isn't that what a destructor is supposed to do? I understand that   Using ( var obj = new SomeIDisposableObject )  {     // ... }    is the equivalent of  var obj = new SomeIDisposableObject; // ... obj.Dispose();   but how does that save any typing? And if C# has a garbage collector, which it does, then why are we ever worried about disposing resources?   Is IDisposable/Using/etc. a Skeet-approved concept? What does he think of it?


Cross product term in linear regression why is it zero

I'm trying to see why this is the case. I have taken  the LHS and added $X\hat{\beta}$ and subtracted $X\hat{\beta}$.  From this I can get both terms on the right but I end up with a cross product term  $2(y-X\hat{\beta})^T(X\hat{\beta} - X\beta)$  that I can't prove equals to zero. I think there is some trick I'm missing, anybody remember it?


How can I create a product key for my C# application?

How can I create a product key for my C# Application? I need to create a product (or license) key that I update annually.  Additionally I need to create one for trial versions.  Related:


Prove that infinite group must have an infinite number of subgroups.

My teacher told me to prove this using the proof by contradiction. So, I am going to assume that there's an infinite group with finitely many subgroups. Then this will lead to finding at least one element with an infinite order, from which I can derive a contradiction.   But I am lost how I can prove this...   I am thinking if the group has its subgroups, then every element in those subgroups must also have infinite order as they are in their original group, aren't they? So, my conclusion is that every element in infinite group's subgroups must have infinite order except identity element.  But how does this contradict the group is infinite?


Is there a possibility to improve the deteriorating eyesight naturally? If yes, how is it possible? If the eye sight continues to get worse, is there a chance of losing eyesight completely?


When should the volatile keyword be used in C#?

Can anyone provide a good explanation of the volatile keyword in C#? Which problems does it solve and which it doesn't? In which cases will it save me the use of locking?


Can i run the latest version of Ubuntu on this computer?

Hello I am moving from Windows to Ubuntu the problem is that my computer is weak. I have already tested the latest version of Ubuntu (20.04 LTS) and it sucks to do the most basic things like surfing the internet and using Libre Office, I also tested Ubuntu flavors and what worked best was Ubuntu Mate I think the problem of slowness has to do with the integrated graphics card which is an intel g33 / g31 express chipset family and I also have a lot of screen tearing in moving windows, watching videos and sometimes the computer freezes, I don't know what to do, I really like Ubuntu and I wanted use it smooth, i'm currently using a natiga version of Ubuntu (16.04 LTS) and it works perfectly but there are many things that the old version doesn't have that i want, the pc settings are down, thanks. Configs: Memory: 4Gb 800 MHz DDR2 CPU: Pentium(R) Dual-Core CPU E5300 @ 2.60GHz × 2 Graphics: Intel® G33 Architecture: x64 HDD: 320Gb If you need more information aks me.


Register Event listener onto a table that has has been created dynamically through AJAX

I have a HTML interface that shows a dialog when the search button is clicked. The dialog has a text field where the user types a search string, and through Ajax the system uses PHP file to get data from the database and return data inform of a table  //code for dialog

<button class="more comment " type='button' ></button>

     <input name="searchPat" id="searchPat" type="text" onkeyup="searchPatient(this.value)"  /> <input type="submit" id="submit" name="submit" value="Register Patient" />

  //searchPatient function      //getPatient.php             $pat_no = $_REQUEST["q"];             $name="";              $query = "select patient_no, surname || ' ' || other_name as name,residence,year_of_birth from hp_outpatient_register where patient_no ilike '%$pat_no%' ";             $con = @pg_connect("host=$serverIP dbname=$database user=$username password=$password");             $result = pg_query($con, $query);              $tab="";             if ($result) {                 //$tab=$tab. "";                  $tab=$tab. "

";                  if (pg_num_rows($result) > 0) {                     //loop thru the field names to print the correct headers                     $i = 0;                     while ($i < pg_num_fields($result)) {                         $tab=$tab. "" . pg_field_name($result, $i) . "	";                         $i++;                     }                     $tab=$tab. "
";                      //display the data                     while ($rows = pg_fetch_row($result)) {                         $tab=$tab. "
";                         foreach ($rows as $data) {                             $tab=$tab. "" . $data . "	";                         }                         $tab=$tab. "
";                     }                  }                 $tab=$tab. "
";             }             echo $tab;    //code for table listener    So far, the dialog can display and once the user types text in the search text field, a dynamic table is created from the getPatient.php which is displayed on dialog. The problem is that the table created doesn't respond to the onclick event for the table. Kindly assist on how to go about it, or let me know if there is something i'm missing.


Are $\mathbb{N}$ is isomorphic to $\mathbb{Q}$?

Are $\mathbb{N}$ isomorphic to $\mathbb{Q}$?  There are any difference between isomorphism and cardinal equality? If $X$ and $Y$ are two sets and $\text{Cardinal}(X)=\text{Cardinal}(Y)$, is $X$ isomorpic to $ Y$?


Why function can change `const char * & value`?

This is an example of a function taking const char * & as a parameter.  #include <iostream> using namespace std;  char test[] = "Test";  void func(const char * & str) {     str = &test[0]; }  int main() {     const char * mytest;      func(mytest);      cout << mytest << endl;      return 0; }   Why does this work? ()  What const means here? Why func() can change str given to this function?  Upd. It's a newbie question, please not minus it.


I can't seem to get this hat on straight!

I carefully positioned my hat to fit my head just right:     But it seems to be shifted to the left a few pixels elsewhere (same in Firefox and Chrome):   Stack Overfow   Skeptics   The top bar is also affected on some sites:   Stack Overfow   Meta SE   InfoSec   However, it is in the correct position in the top bar on some sites somehow:   Skeptics   Bricks   It's not a huge deal of course, it just bothers perfectionists like me.


c++ doubles and floats, how to get around the ugly truth

double f1 = 0.00000001; double f2 =  7.00000001; double f3 = -7.00000000; double sum = f2 + f3; bool shouldBeTrue = sum == f1;   shouldBeTrue is false using VS C++ 2015/2017  float f1 = 0.00001; float f2 = 7.00001; float f3 = -7.00000; float sum = f2 + f3; bool shouldBeTrue = sum == f1;   shouldBeTrue is false using VS C++ 2015/2017  how to implement this in c++ so I can store the values written in the code and not the approximations? any new types or library available?  (e.g. like decimal type in c#)


Alternative of using HTML markups under calculated field in SharePoint list

I have a calculated filed column in one document library which used to display and Image icon with a hyperlink attached to this. But it seems Microsoft has stopped supporting this feature.   Can Some suggest me some alternative or quick fix to resolve this production issue. Any help will be appreciated!


I cant seem to get Ubuntu to recognize my wireless adapter on my new Lenovo legion laptop.  I tried everything  Output of nmcli device  DEVICE  TYPE      STATE        CONNECTION          enp8s0  ethernet  connected    Wired connection 1  wlp7s0  wifi      unavailable  --                  lo      loopback  unmanaged    --      Output of ip addr show  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo    valid_lft forever preferred_lft forever inet6 ::1/128 scope host     valid_lft forever preferred_lft forever 2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether e8:6a:64:58:4d:9a brd ff:ff:ff:ff:ff:ff inet 192.168.1.22/24 brd 192.168.1.255 scope global dynamic noprefixroute enp8s0    valid_lft 3019sec preferred_lft 3019sec inet6 fe80::fccd:4bdc:558c:299b/64 scope link noprefixroute     valid_lft forever preferred_lft forever 3: wlp7s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 28:3a:4d:31:89:d1 brd ff:ff:ff:ff:ff:ff   Output of Command: sudo lshw -short -class network  H/W path                 Device     Class          Description /0/100/1d.4/0            wlp7s0     network        RTL8822BE 802.11a/ /g/n/ac WiFi adapter /0/100/1d.5/0            enp8s0     network        RTL8111/8168/8411 PCI Express Gigabit Ethernet Con   Output of rfkill command:  D TYPE      DEVICE                 SOFT      HARD 0 wlan      ideapad_wlan        blocked   blocked 1 bluetooth ideapad_bluetooth unblocked   blocked 2 bluetooth hci0              unblocked unblocked 3 wlan      phy0                blocked unblocked   Output of ls -l /etc/resolv.conf command:  lrwxrwxrwx 1 root root 39 Apr  3 03:24 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf


Bibliography with BibLateX, Biber and Winedt 9

I started doing LaTeX less than one week ago, so I am completely fresh to the game. To be quick: I am running Windows 8 (probably not relevant), my LaTeX sits on MikTeX 2.9 but I am using Winedt 9 as editor. I want to learn how to make a bibliography for my upcoming thesis. I am using the biblatex package, and I have also loaded the biber package.    In the preamble, I use the commands \usepackage[backend=biber]{biblatex} and \addbibresource{biblatex-examples.bib}, which is the "default" bibliography that came with the biblatex package (located in a directory under MikteX 2.9/bibtex/etx.) In the document, I use the command \cite{aristotle1968} and at before I end the document, I use \printbibliography.   I can LaTeX this with some warnings, but I doesn't BibTeX. It gives me the following error messages:  I found no \citation commands---while reading file test.aux  I found no \bibdata command---while reading file test.aux  I found no \bibstyle command---while reading file test.aux  (There were 3 error messages)   What is wrong? I saw a guy who had the exact same problem here:   But the solution that worked for him, that is specifying the [backend=biber] in the preamble, does not work for me.   Please, help... I have already googled this for three full days and read tons of suggestions...


Compute the radius of convergence of the power series $\sum_{n=0}^{\infty} n!x^n$

I need help with how to compute the radius of convergence of the power series $\sum_{n=0}^{\infty} n!x^n$?  I was thinking of using the ratio test but am unsure of how to go about it. Any help would be greatly appreciated, thanks


Apparmor not starting with kernel LSM error

Starting apparmor on a Ubuntu Lucid Lynx gives the following:  user@host:~$ sudo /etc/init.d/apparmor start  * Starting AppArmor profiles  * AppArmor not available as kernel LSM.    ...fail!   Googling a bit, I found the following bug report - marked as fixed -:    Which seems to be my exact case. My kernel is 2.6.32-21-generic. Any idea on how to solve the issue?


If $a_1= \sqrt{6}$ and $a_{n+1} = \sqrt{6 + a_n}$, what is the limit of $a_n$ as $n$ goes to infinity?

The problem is the following:      $$ a_1 = \sqrt6 \ \text{ and } \ a_{n+1}=\sqrt{6 +a_n} \ \\ \ \\ \text{Find} \ \lim_{n\to \infty}a_n $$   I tried dividing $a_{n+1}$ by $a_n$, which is bigger than one. I assume one can use the comparison test to conclude that this limit goes to infinity? But how should I go about finding the limit if I don't have a calculator to see that $\dfrac{a_{n+1}}{a_n}$ = 1,18...  ?


Why python array arr2d[:2,1:] produces following result?

The following:  arr2d = np.array([[5,10,15],[15,20,25],[30,35,40]])  arr2d[:2,1:]   Produces:  array([[10, 15],        [20, 25]])   I would like to know how the result is calculated.


I tried downloading Tumblr yesterday but it never completed. At the moment I have an App icon stuck at 'Loading...'.  I have tried restarting the iPhone (holding down both home and side buttons at the same time) and I have also tried shutting down the iPhone (holding the side button and swiping).  I have also tried deleting it as usual (holding the icon down and choosing delete but it doesn't go away).  Any ideas on what I can do to get rid of this icon?


Find the ring of homomorphisms $\mathbb{Z} \to \mathbb{Z}$

Show, which well-known ring is isomorphic to ring $End(\mathbf{Z})(+,ͦ,-,0,id)$ of homomorphisms $\mathbf{Z}$ -> $\mathbf{Z}$, where $\mathbf{Z}$ is commutative group $\mathbf{Z}(+)$ and 0 constant zero function.  I struggle with solving this, including the problem of what is considered a "known" ring.


How do I dual boot Ubuntu with Windows XP?

I have recently become a fan on Ubuntu and I wanted to get it on my old computer. I downloaded the 32 bit software and I have burned it to a usb stick in fat32. While on the installation bit of Ubuntu when I boot it up, press F2, change the priority of booting up the computer, all that, it doesn't give me an option of running Ubuntu along side of Windows. It just says, "Delete the whole disk" and also "Something other" Could someone please help? Thanks.


Square roots calculation without the use of a calculator

How do you find a square root of a number when the square root isn't a whole number, without a calculator  Example: 35


Transforming multiple images from projection EPSG:3857 to EPSG:21781

I have several images in EPSG:3857 which are originally from the Google maps API. I have a map layer which is based on OpenLayers v3.6 and it is in EPSG:21781. I would like to project the images from EPSG:3857 on top of EPSG:21781 layer. From the Openlayers API V3.11 there is an option to reproject at the client side on the fly with the following example code.  layers['bng'] = new ol.layer.Tile({         source: new ol.source.XYZ({           projection: 'EPSG:3857',           url: 'https://tileserver.maptiler.com/miniscale/{z}/{x}/{y}.png',           crossOrigin: '',           maxZoom: 6         })       });   Since I am stuck with V3.6, I would like to convert the images at the server side and project them on top of EPSG:21781. Could someone help me with this.


Doesn't dating the universe violate the concept of spacetime's inseparability?

It would seem that measuring an age of the universe from the big bang requires separating spacetime into a 3D coordinate system and a time track.  I fail to understand why it is appropriate to take the reference of a comoving observer as being stationary to the cosmic microwave background when this seems to be a choice based upon our subsequent detection of that entity.


How do I change background of login screen?

Ubuntu allows us to set customized login screen (where it will show up only during logout session).  So, by default it shows just a purple background. I managed to find location directory of that file somehow.  But the thing is, during logout session, when we scroll wallpaper over to checkout user profile screen (DM).  It shows just a grey background, is there any possible way to setup custom image instead of simple grey color?


Repair Corrupt Bitlocker Files - Windows 8.1

In the past I have never used BitLocker, but recently I have become interested in setting it up on both my mom's computer as well as my own. We both had Windows 8 Pro on which we never used Bitlocker, and have both upgraded to Windows 8.1 Pro. Since becoming interested in BitLocker, I have configured it on my mom's computer, and now want to do it on mine, but I have a problem: my BitLocker isn't working. I spoke with Microsoft support about it, and they determined that my BitLocker is corrupt for some reason. Since I couldn't pay them to fix it for me, I am left to deal with it on my own. How can I repair my corrupt BitLocker without losing all of my data? I looked in my %RootPath%\System32 folder where the BitLocker files are stored, and they are all there. The only problem is that when I try to run them, nothing happens. On top of that, the link in the Control Panel for BitLocker is missing, and I think that's mostly where the problem lies. How can I resolve this?  Post mirrored on .


Typing the ZIP code doesn't yield the company page

On Careers, if I type in our postal code (48326), it does not reveal our company page even though our postal code is entered as 48326 on our Careers company page. If I instead do a search by company name as thyssenkrupp, then our company page appears.  I believe most candidates will first search by city or postal code rather than by name, and we could be missing great talent. Is this a bug or does the search ignore the postal code or what gives?


Can I manually limit the %CPU used by a process?

I would like to limit the amount of CPU time dedicated to certain processes (e.g. Firefox, Safari, ...). I can't understand why such programs, even when not used (nothing loading, no animations, running in the background, ...), are so resource hungry. Why must a browser eat 50% or more of my CPU? Can I limit it to 10%?


Why is "can I get" replacing "could I have"?

I noticed the other day when serving the public that when asking for something, people were saying "Can I get an xyz, please". The previous time I had such a job it was "Could I have an xyz", or "May I have..." if they were being very polite.  Does anyone know when this trend started and what caused it?


Problem for bold symbol in math mode with iota

I am using \mathbf{} for include bold symbols in my equation. It works fine with all symbols with the exception of \iota. I tried to use equation environment and to exclude subindex. The following is my writing:  \begin{align}     \mathbf{Y}=\rho \mathbf{WY}+\alpha \mathbf{\iota}_{N}+\mathbf{X\beta}+\mathbf{WX\theta}+\mathbf{u},\label{eqgeneral1}\\      \mathbf{u}=\lambda\mathbf{Wu}+\mathbf{\varepsilon}  \label{eqgeneral2} \end{align}   I obtain this:    I want this:    ¿How can I solve this?


I'm writing an application which reads large arrays of floats and performs some simple operations with them. I'm using floats, because I thought it'd be faster than doubles, but after doing some research I've found that there's some confusion about this topic. Can anyone elaborate on this?


where I connect to internet, I have an always changing ip address and when I try to get ip address, it does not give my ipv4 address which I am using in my web services to call web service. can you suggest me anything? Thanks.


In this situation, What does “that's as good as it's going to get, isn't it?” mean?

In this situation below What does “that's as good as it's going to get” mean?  A: Hey, B! #$#J3293~(babbling)?  B: What?  C: He(A) wants to ask you(B) to go to the dance party together.  B: that's as good as it's going to get, isn't it?  C: I'm afraid so.  I have no idea what it means.  Is that means "I'd love to?"  I need your help.


Let $a$ be an element of a group G. Prove that $a$ commutes with each of its conjugates in $G$ iff $a$ belongs to an abelian normal subgroup of $G$.   My Try:  I proved the backward direction. For forward one, given $g\in G, a(gag^{-1})=(gag^{-1})a$. I was trying to prove that $a\in Z(G)$. In order to prove that, I must show that $ag=ga$. But failed. Am I on the right track? Can anybody please give me a hint? I want to try it myself.


NullPointerException after loading a bitmap from Assets

I am loading a bitmap from the assets to do some classification with it. The bitmap is loaded from the asset folder, no problem with that. When I run on debug mode I can view my Bitmap image. But when I try to pass it to my method "classify" I have this error :  FATAL EXCEPTION: main               Process: com.example.anne_maelle.cifar10_final, PID: 10046               java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.anne_maelle.cifar10_final.ImageClassifier.classifyFrame(android.graphics.Bitmap)' on a null object reference                   at com.example.anne_maelle.cifar10_final.ClassifyActivity.classify(ClassifyActivity.java:61)                   at com.example.anne_maelle.cifar10_final.ClassifyActivity.run_test(ClassifyActivity.java:54)                   at com.example.anne_maelle.cifar10_final.ClassifyActivity$1.onClick(ClassifyActivity.java:37)                   at android.view.View.performClick(View.java:5198)                   at android.view.View$PerformClick.run(View.java:21147)                   at android.os.Handler.handleCallback(Handler.java:739)                   at android.os.Handler.dispatchMessage(Handler.java:95)                   at android.os.Looper.loop(Looper.java:148)                   at android.app.ActivityThread.main(ActivityThread.java:5417)                   at java.lang.reflect.Method.invoke(Native Method)                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)   I tried to display the bitmap, but it doesn't do anything : no error but no image either. My code is :  protected void run_test() throws IOException{     AssetManager assets = this.getAssets();     String imgs[] = assets.list("images");     System.out.println("run test apres getAsset: "+imgs.toString());     for(int i=0;i<imgs.length;i++){         if(imgs[i].contains(".bmp")){             System.out.println("loop, iteration "+i);             Bitmap image = imageViaAssets(imgs[i],assets);             if(image==null){                 Log.d(TAG,"null image");             }             else{                 Log.d(TAG,"image not null");             }             classify(image);         }     } }  protected Bitmap imageViaAssets(String filename,AssetManager assets)throws IOException{     InputStream ims = assets.open("images/"+filename);     Bitmap image = BitmapFactory.decodeStream(ims);     ims.close();     ImageView img = (ImageView) findViewById(R.id.imageView);     img.setImageBitmap(image);     return image; }


Prevent Rsyslog from removing automatically syslog.gz files.

Why ubuntu remove older syslog older than syslog.7.gz by default? How can I prevent that to happen?  Thanks


Is there a website listing the location of all the Windows 10 lock screens?

Windows 10 has an extensive collection of lock screen photos, many of which have  here on Travel.SE.  Is there a website which lists the location of all of these photos? I imagine Microsoft has purchased an official license, so they should have a record about the photographer and the place where the photo was taken.


PS4 Controller not connecting to PS4 and won't reset?

I was playing my PS4 two days ago and then packed it up with two controllers that were both connected to this PS4.   I got to where I was going, set everything up and now the controllers won't connect. They show pulsing orange when they plug in, but when I hit the PS Button to connect, it blinks white 1-2 times and goes back to orange.   I have tried resetting them both.  Can anyone help?


How to prove the expression is not a square in the following question

Let d be any positive integer not equal to 2,5 or 13. Show that one can find distinct a, b in the set 2,5,13,d such that ab-1 is not a perfect square.   I tried it for a long time but couldn't figure out a solution.....help me


Why is LaTeX producing a normal sentence as one long word?

When I type:   Now divide both sides by 154 so we have 1 on the right side of the equal side, and you get:   into LaTeX, and then look at it in PDF view it combines that whole line into one long word with no spaces, so it looks like:  Nowdividebothsidesby154sowehave1ontherightsideoftheequalside,andyouget:   This is the MWE  \documentclass{article}  \usepackage[utf8]{inputenc} % not essential, but I'll leave it (GuM)  \begin{document}  To start you have to complete the square for 2x^2 - 12x + y^2 + 6y + 26 = 0. \\\\  Start by subtracting 26 from both sides to get: 2x^2 - 12x + y^2  \end{document}


Is there a fundamental relationship between Coulomb's law and Newton's Law of Gravitation?

It seems like the two equations are identical indicates that there is something more going on that unites them both, maybe in a cool way or something. Why are these two laws so similar?


Incorrect owner and last edit date when viewing unanswered questions

I asked , which still doesn't have an answer. It hasn't been edited many times, so it is not a community wiki. However, when I , it is the #1 unanswered question. But it shows that it is owned by "community" and was edited two days ago, neither of which is the case. What's up with that?


I was wondering how to make a clickable terminal shortcut for my desktop using the command easytether connect.  I don't want to have to open/close the terminal every time I wish to connect to the Internet through my phone.  I've tried updating my gnome-panel but I can only make a new directory on my desktop.


What size wire do I need for a 100 amp service from meter base?

My run is 80 feet underground in 2 inch conduit from 200 amp breaker to a 100 amp service panel in a detached garage. What size wire should be used?


compiling a jrxml string (NOT JRXML FILE) in JAVA

I have an API which will create the report and we need to pass the JRXML content(whihc is passed as string from UI) for that,Now I want to compile the JRXML content before saving it into data base,One approach I have is that I can save the JRXML content into file system and then load that file and compile it,But I don't like it because if the compilation failed I need to delete that file from file system, So  wondering If I can compile the input JRXML content only before storing it into file.  I am passing the JRXML as a string to my method which should compile that JRXML string, but I don't want to store the content in file and then compile it


What is the definition of a ring element raised to the zeroth power?

I have a fairly straightforward question about defining exponentiation in rings: Given any element $a \in R$ of any ring $R$, what is $a^0$ defined as? Is it the additive identity or the multiplicative identity (if it exists)? In the context of groups we define $a^0 = e$ for whatever the identity of that one operation is. But in the context of rings, $a^n$ would refer to the ring product, so I would assume $a^0$ to be the multiplicative identity, but this doesn't always exist. Is there any convention, or is it simply left undefined/context dependent? Edit: In regards to being a duplicate of the $0^0$ question, I had already read through both the question and some answers, but I thought this was a 'fairly separate' question. In particular, this is about rings in general, and while there is a relationship, most of the discussion in the other question pertains explicitly to $\mathbb{R}$. For example discussion of non-integer powers, and limits as a motivating value for the definition, and the fact $\mathbb{R}$ has unity.


FileGDBAPI.dll not registering in Windows 7 x64

I installed GDAL via wheel (32 bit).  Added it to my system path. Also added an environment variable GDAL_DRIVER_PATH pointing at my gdalplugins folder (on my system, C:\Python27\ArcGIS10.4\Lib\site-packages\osgeo\gdalplugins). Rebooted. At the prompt I tested it by typing     gdalinfo --help-general I received this:     ERROR 1: Can't load requested DLL: C:\Python27\ArcGIS10.4\Lib\site-packages\osgeo\gdalplugins\ogr_FileGDB.dll     126: The specified module could not be found. It repeated this error twice. Yet when I listed directory contents of C:\Python27\ArcGIS10.4\Lib\site-packages\osgeo\gdalplugins, I see two files: ogr_FileGDB.dll and FileGDBAPI.dll (This is the Esri FGDB API dll I pasted in there) I do notice that ogr_FileGDB.dll is much smaller than the Esri driver.  The ogr one is 181KB, whereas the Esri dll is 9,502KB. What gives, any ideas?  UPDATE: I am reopening this question because I have followed all of the directions in the listed answer, and I still cannot get the FileGDBAPI.dll to register as an available driver.  Here is what I've done to this point:   Followed all the instructions in  Ensured I have a GDAL_DRIVER_PATH environment variable and that it is pointing to C:\Python27\ArcGIS10.5\Lib\site-packages\osgeo Ensured I have C:\Python\ArcGIS10.5\Lib\site-packages\osgeo in my PATH. Ensured I have the FGDB API v. 1.3 (MSVC 2008), 32-bit DLL sitting in the C:\Python\ArcGIS10.5\Lib\site-packages\osgeo folder. I installed Boundless Desktop 1.0, but its components do not have any presence in my PATH, PYTHONPATH or GDAL_DRIVER_PATH variables. I have pip installed the GDAL 32-bit wheel for 2.1.3, but when I put in ogrinfo --version it yields GDAL 2.1.0, released 2016/04/25 which is incorrect - even though the only pointers for anything GDAL in my environment variables is pointing to the Python27\ArcGIS10.5 install. ogrinfo --formats does not give me an error, but it simply fails to find the FileGDB driver.


How to extract geo data out of a polygon shapefile into CSV KWT

I have a polygon  that contains all the neighbourhoods in the Netherlands.  My aim is to export the neighbourhoods and coordinates to CSV file (KWT).  Without success I tried (with QGIS) these 'solutions':       It got me to the point where I have all the attributes (from my vector layer) in a CSV file. The problem lies in that I can't seem to find any geodata (coordinates) in them.  Where can I find the polygon coordinates to finally export them with the neighbourhoods out my shapefile to CSV?


Hope somebody can explain why in the following code (1) creates a "smarter" in-paragraph spacing than (2)?  \documentclass{article} \usepackage{lipsum}  \begin{document}  {\small\lipsum[1]\LARGE\lipsum[1]\small\lipsum[1]\par} %(1)  \clearpage  {\small\lipsum[1]\LARGE\lipsum[1]\par} %(2)  \end{document}   Result of (1)   Result of (2)


How to refresh a DIV without refreshing index page

Hello I am trying to auto refresh this div tag. It contains an iframe that links to an outside url for a widget. I would like it to refresh every 30 seconds. Just curious how this can be done.

     I am getting an uncaught exception error commented about below. This is for an external site that is linked in the iframe and there is no data being written locally to pull to update. The div simply needs to be refreshed.


NullPointerException while calling a method and passing parameter to a fragment from activity

I need to call a method from a fragment and also pass a string value as a parameter. But I am getting NullPointerException and it's showing currenttodat is static content.On the internet i have got only how to call a method from the fragment.But i need to pass a parameter along with it.While passing parameter i am getting the nullpointer exception.   Calendar calendar = Calendar.getInstance();     calendar.add(Calendar.DAY_OF_YEAR, count);     currenttoday = dateFormat.format((calendar.getTime()));     tv_date.setText(currenttoday);     Toast.makeText(LandingActivity.this, currenttoday, Toast.LENGTH_SHORT).show();      ManageCustomersFragment manageCustomersFragment = (ManageCustomersFragment) getSupportFragmentManager().findFragmentByTag("managecustomerTag");      manageCustomersFragment.getApplicationList(currenttoday);


Landing in hidden city, coming back from "official" city: is it possible?

Let's suppose someone (who's definitely not me...) wants to go to Colombia to know many cities. This fictional character will buy a ticket from São Paulo, Brasil to Barranquilla, Colombia (to go and to come back). This flight has a stop in Bogotá before its final destination.   Then, once in Bogotá, this person suddently decides to know Bogotá and she/he leaves his/her flight and then this person will arrive in Barranquilla to get his/her flight in its scheduled date.  The question is: would the flight company crew accept this person? I mean, this character could get this flight and come back to São Paulo without any problem?


Give a broom to anyone who completes 10 close queue reviews successfully in a 24 hour period

Remember ?  How fun was that? I propose that we give a virtual broom to everyone who completes 10 reviews in any 24 given hour period.  The broom would only last for 24 hours, so to keep it, you would have to do 10 more reviews the next day. But having a broom would be cool.  It would be a nice visual reminder of those folks who dedicate a small amount of time each day to help us sweep the floors.


Is there any appeals process for technically incorrect down-voting?

OK, here's the situation. Someone posted an  on SO.  There were 2 main answers.   One was stock "you can use this standard data structure - see details on Wiki". Basically, a priority queue.  One was mine, which had a somewhat-original (at least, I don't recall ever reading an official moniker for it) data structure. Actually, two of them, one for each possible domain of data distribution.    BOTH algorithms were faster on average (mods AND look-ups) than the standard Priority Queue when applied to that user's problem domain. The proof, aside from fairly simple O(n) analysis, is that as of today, the OP commented on my post that my data structure was the best he could use and accepted my answer. However, at the time of posting, a couple of people down-voted it initially, with incorrect excuses like "algorithm does not work" (based on incorrectly reading my answer), "Wiki data structure is better" (without reading my O(n) analysis or comprehending it). First down-vote was from a competing Wiki question. Then it seemed to be lemming-like down-voting, including at least 2 serial down-voters that were since cleansed by SO team as per my report.   So, since most of the current down-votes if not all are based on people being obviously technically wrong as acknowledged by original poster, is there some sort of appeals process on SO whereby a technically competent moderator/superuser can review the Q, determine whether the people who down-voted also posted incorrect comments as reasons for down-voting, and fix this?  Please note that this is mostly a question of fairness - at my rep level, the current "-6" rep from the Q are not really that big of a deal (and the main problem was the opportunity cost of people not voting my A up when the thread was active due to seeing negative score and a long thread of comment criticisms - which I can't get back anymore since the thread is no longer active).  And yeah, I'm whining :) But it was a behavior of a couple of people that was grossly unfair and totally contrary to the spirit of SO.


Use javascript to determine email address is valid or not

I have 6 email address like below:  (1) ali@hotmail.com -> valid (2) @hotmail.com -> invalid (3) ali@hotmail.com, abu@hotmail.com -> valid (4) ali@hotmail.com, @hotmail.com -> invalid (5) ali@hotmail.com, abu@hotmail.com, ahmad@hotmail.com -> valid (6) ali@hotmail.com, @hotmail.com, ahmad@hotmail.com -> invalid   How do I use JavaScript to determine that the email address is in full format? I try startsWith("@hotmail.com"), endsWith("hotmail.com"), indexOf("@hotmail.com") also cannot fulfill all the email addresses above. Can someone help me?


A couple circumstances happened at once, making my access apparently not count. Is this correct behavior?   I use the iOS app a lot. I'd been refreshing the feed, but possibly not much else on that particular day. Maybe viewing the feed doesn't count? It's not terribly obvious. I also keep a few bookmarks in the browser, but apparently had been logged out at some point, so those views didn't count, even though I was viewing. (For sympathy) I haven't turned on my computer in a week because I'm on paternity leave with a newborn poop-factory blob of screaming. I'll be back to my usual active self in another two weeks.   But I've still been good about visiting every (UTC) day.  It's just a silly badge, but it would have been my first gold one. And I was almost there (about 75 days).  So I thought I'd see what the masses think regarding my particulars. Is there any recourse? Do I deserve any?


If $(f(z))^2$ and $(f(z))^3$ are entire functions ; then is $f$ entire?

Let $f:\mathbb C \to \mathbb C$ be a function such that $(f(z))^2$ and $(f(z))^3$ are entire   then is $f$ entire ?    I can conclude $f$ is entire if given $f$ is continuous ; but without continuity of $f$ , is it true ?


Paper under review in a reputed Math journal for 7 months

I have submitted a paper in a reputed math journal. It is under review for 7 months. 2 month ago I inquired and I was told that one reviewer has sent review and they are waiting for the other review.  Is it time common in Math journal


I have two stochastic variable $X\sim B(n,p)$ and $Y\sim B(m,p)$, I need to prove that $Z=X+Y \sim B(n+m,p)$.  Why is $$\sum_{k=0}^{u} \binom{n}{k} \binom{m}{u-k} = \binom{n+m}{u}$$


How to make PHP input methods(get and post) safe by a simple code?

This is my basic code of a login.php. It contains a basic $_POST method to get the values from form. Someone said me it is insecure. It is prone to SQl Injection. I dont want to make it complex. Please tell me how to make it more secure by simple methods.  <?php   session_start();  require('connection.php');          $email=$_POST['username'];      $password=$_POST['password'];        //variables in query will be in single quotes.       $query="select * from user_info where email='$email' and password = '$password' ";       //fetching result       if($result=$con->query($query))      {            $row =$result->fetch_array(MYSQLI_NUM);             if($row>0)          {                //creating session variables          $_SESSION['loggedIn']=true;             $_SESSION['email']=$row[1];             $_SESSION['id']=$row[0];          header("Location:profile.php");          }           else           {              echo "flag1";              header("Location:index.php?loginerror=invalid login");          }         }       else {         echo "Failed";      }   ?>


I created this grid for use in a game. Users will use the grid as a guide to add road.   I created the mesh by drawing a rectangular plane and performing several arrays. Then I applied the "wireframe" modifier to create lines.   I now want to merge all the lines/planes together to create single mesh. How is this possible?   Ideally, I'm trying to reduce file size as I just need the lines visible.


I have lots of 'rubbish' from enemy drops, as my current equipment is better than anything I've found so far (only a few hours in).  Is there any reason to keep hold of these items, from Dark Souls I you couldn't sell items, can you now?


In Python 2.x, is there anyway to check if a string can be converted to an integer?

I want a program to convert user input to an integer and store it in a list only if it can be. If the input is not able to be converted to an integer, the program should just continue and ignore the input.


identify movie about very advanced genetic engineering

I watched this movie around early 2000's. So, maybe this movie is released around late 90's. Here are some scene I remember:   The protagonist lives in an apartment with a man (maybe his brother). The man/brother is using wheelchair. There was a scene in which a geneticist claimed that he could adjust a fetus/baby such as the parents want. Ex: if the parents want a blue eyes, red straight hair and other thing. he could make it happen. The protagonist work in a company that launch rocket to space. There was a scene in which a police/detective identify a person from his/her hair or skin


Can I get more than 1000 records from a DirectorySearcher?

I just noticed that the return list for results is limited to 1000. I have more than 1000 groups in my domain (HUGE domain). How can I get more than 1000 records? Can I start at a later record? Can I cut it up into multiple searches?  Here is my query:  DirectoryEntry dirEnt = new DirectoryEntry("LDAP://dhuba1kwtn004"); string[] loadProps = new string[] { "cn", "samaccountname", "name", "distinguishedname" }; DirectorySearcher srch = new DirectorySearcher(dirEnt, "(objectClass=Group)", loadProps); var results = srch.FindAll();   I have tried to set srch.SizeLimit = 2000;, but that doesn't seem to work. Any ideas?


Expressing a positive integer as a sum of positive integers

I am trying to find a way for the positive integers written as the sum of other positive integers.( expressed in terms of some functions)  I searched a bit and I came across with  But in my case the order matters. What I mean is for example if we write for 4,  there would be 7 ways to express 4 as;           1 + 3           2 + 2           3 + 1           1 + 1 + 2           1 + 2 + 1            2 + 1 + 1           1 + 1 + 1 + 1   Can anyone guide me in approaching to the solution of my problem? Thanks in advance.