After Upgrade to Ubuntu 20.04: "Oh no! Something went wrong"

I upgraded to Ubuntu 20.04 today, choosing LightDM over gdm3 during the upgrade. During the upgrade I was asked if I wanted to keep or replace /etc/sane.d/dll.conf file. I decided for keeping it. Now, without actively rebooting, the "Oh no! Something went wrong" screen appeared. As I am still inexperienced with this kind of troubleshooting, I feel it wouldn't be safe to just try out answers from other threads that don't have exactly the same 'history'. Solutions I read included Ctrl+Alt+F4 and trying to login and get more information from the command line (). Is that safe to do? Ideally, I'd like to save my data that is stored on an encrypted harddrive before trying to fix errors. I'd like to avoid reinstalling the OS. From reading other threads, I know this post may be criticised as not being precise enough or haven't tried enough, but really I cannot get more information from that white screen myself and don't want to risk ruining everything just to provide more information... Thank you for your help!! :) Edit: I have no idea if the problem is related to lvm2-activation-generator, as in  This and other solutions include booting from a live usb. Can I do this 'safely' by simply switching the laptop off at this stage? Do I have to do sth before?


I am getting this error at runtime.     java.lang.RuntimeException: Unable to start activity ComponentInfo   java.lang.NullPointerException: Attempt to invoke virtual method   'boolean java.lang.String.equalsIgnoreCase(java.lang.String)' on a   null object reference   StackTrace:  01-12 03:44:54.270: E/AndroidRuntime(1437): FATAL EXCEPTION: main 01-12 03:44:54.270: E/AndroidRuntime(1437): Process: home.saket, PID: 1437 01-12 03:44:54.270: E/AndroidRuntime(1437): java.lang.RuntimeException: Unable to start activity ComponentInfo{home.saket/home.saket.addmember.Add_Update_User}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equalsIgnoreCase(java.lang.String)' on a null object reference 01-12 03:44:54.270: E/AndroidRuntime(1437):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at android.app.ActivityThread.access$800(ActivityThread.java:144) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at android.os.Handler.dispatchMessage(Handler.java:102) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at android.os.Looper.loop(Looper.java:135) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at android.app.ActivityThread.main(ActivityThread.java:5221) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at java.lang.reflect.Method.invoke(Native Method) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at java.lang.reflect.Method.invoke(Method.java:372) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) 01-12 03:44:54.270: E/AndroidRuntime(1437): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equalsIgnoreCase(java.lang.String)' on a null object reference 01-12 03:44:54.270: E/AndroidRuntime(1437):     at home.saket.addmember.Add_Update_User.onCreate(Add_Update_User.java:38) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at android.app.Activity.performCreate(Activity.java:5933) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) 01-12 03:44:54.270: E/AndroidRuntime(1437):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251) 01-12 03:44:54.270: E/AndroidRuntime(1437):     ... 10 more 01-12 03:44:54.272: W/ActivityManager(472):   Force finishing activity home.saket/.addmember.Add_Update_User 01-12 03:44:54.273: E/ActivityManager(472): Invalid thumbnail dimensions: 384x384   Below I am posted the codes and pointed out the error line.  Add_Update_User.java:  @Override     protected void onCreate(Bundle savedInstanceState) {     // TODO Auto-generated method stub     super.onCreate(savedInstanceState);     setContentView(R.layout.add_update_screen);      // set screen     Set_Add_Update_Screen();      // set visibility of view as per calling activity     String called_from = getIntent().getStringExtra("called");      if (called_from.equalsIgnoreCase("add")) {  --->38th error line         add_view.setVisibility(View.VISIBLE);         update_view.setVisibility(View.GONE);     } else {          update_view.setVisibility(View.VISIBLE);         add_view.setVisibility(View.GONE);         USER_ID = Integer.parseInt(getIntent().getStringExtra("USER_ID"));          Contact c = dbHandler.Get_Contact(USER_ID);            add_name.setText(c.getName());         add_mobile.setText(c.getPhoneNumber());         add_email.setText(c.getEmail());         // dbHandler.close();     }     }


I want to do some camera tracking. The things that I will be filming does not have a lot of detail on it, so that I will have to place some extra markers here and there. I am not sure what kind if markers to make. Should I make simple X's or should I just put some dots on it?


Integrating $\int^{\infty}_0 e^{-x^2}\,dx$ using Feynman's parametrization trick

I stumbled upon  on last weekend, it introduces an integral trick that exploits . On its last page, the author, Mr. Anonymous, left several exercises without any hints, one of them is to evaluate the Gaussian integral $$ \int^\infty_0 e^{-x^2} \,dx= \frac{\sqrt{\pi}}{2} $$ using this parametrization trick. I had been evaluating it through trial and error using different paramatrizations, but no luck so far.     Here are what I have tried so far:   A first instinct would be do something like:$$ I(b) = \int^\infty_0 e^{-f(b)x^2}\,dx $$ for some permissible function $f(\cdot)$, differentiating it will lead to a simple solvable ode: $$ \frac{I'(b)}{I(b)} = -\frac{f'(b)}{2f(b)} $$ which gives: $$ I(b) = \frac{C}{\sqrt{f(b)}}. $$ However, finding this constant $C$ basically is equivalent to evaluating the original integral, we are stuck here without leaving this parametrization trick framework. A second try involves an exercise on the same page: $$ I(b) = \int^\infty_0 e^{-\frac{b^2}{x^2}-x^2}dx. $$ Taking derivative and rescaling the integral using change of variable we have: $$ I'(b) = -2I(b). $$ This gives us another impossible to solve constant $C$ in: $$ I(b) = C e^{-2b} $$ without leaving this framework yet again. The third try is trying modify Américo Tavares's answer in this : $$ I(b) = \int^\infty_0 be^{-b^2x^2}\,dx. $$ It is easy to show that: $$ I'(b) = \int^\infty_0 e^{-b^2x^2}\,dx - \int^\infty_0 2b^2 x^2 e^{-b^2x^2}\,dx = 0 $$ by an integration by parts identity: $$ \int^\infty_0 x^2 e^{- c x^2}\,dx = \frac{1}{2c}\int^\infty_0 e^{- c x^2}\,dx . $$ Then $I(b) = C$, ouch, stuck again at this constant.     Notice in that  question, Bryan Yocks's answer is somewhat similar to the idea of parametrization, however he has to introduce another parametric integration to produce a definite integral leading to $\arctan$.  Is there such a one shot parametrization trick solution like the author Anonymous claimed to be "creative parameterizations and a dose of differentiation under the integral"?


How to move Unity Launcher to a different monitor?

I have two monitors. The left monitor is set as primary, but the Unity Launcher appears on the right monitor.    How can I move it to the other monitor?


I'm wondering if any of you have created a function to create a folder within a given path.   For Example:  NewFolder = ['/projects/Resources/backup_Folder']


What are valid values for "data defined" labeling settings?

I'm using QGIS 1.8. I'd like to customize label features on an existing shapefile using the new label engine and it's "data defined settings" option. I'd like to know what the attribute table field types should be for each of the settings: All 7 font options, all 2 buffer options, and all 6 position options. Should they all be numeric fields, or some text, or both? I want to create these fields in the attribute table correctly so that I can map them to the label field settings. I can't find information on the proper field types anywhere. Thanks for your thoughts.


Overriding delete operator for base and derived class in c++

Below is my sample code, where I overrided the delete operator for derived class.  My aim is I want to delete the object for both base and derived class in delete operator. Basically I want to hold the address of both class till delete operator get called.  Right now I am using atomic operation to synchronize, basically my destructor didn't get called, when I am executing some functionality of class. Now, I want to get ride of that atomic operation. So, I will catch the object address and hold there in delete operator till it is safe to do. Destructor will be called by others.  So, which is the correct place for delete operator, base class or derived class? When I used delete operator in both class only derived delete operator get called.  #include <iostream> using namespace std;  class base {     public:      int l;      base() {cout << " base const" << endl;}      ~base() { cout << " base descr" << endl;} };  class derived: public base { public:  int k;  derived() {cout << " derived const" << endl;}  ~derived() { cout << " derived descr" << endl;}  static void operator delete (void *p) {       return delete[] static_cast<char*>(p);   }  };  int main () {   derived *p = new derived;   p->k = 7;   p->l = 8;   cout << p <<" " << p->k << " " <<p->l << endl;   delete p }


Displacement not working with node editor

I am having this problem that i set up everything right for the displacement (I think) but it is still not working. I am making a paper texture and I just need some help.  I have the mapping done with the texture Coordinate. That is hooked up to a noise texture and then in the Voronoi texture. After that all I hooked it up in the displacement and nothing is working.  If you want you can look at the file:   I have a plane set up for the material on the second layer. On the first layer my whole project is setup. So you only need to have a look at the first layer.  Note that the texture itself isnt hooked up yet to the material output and that is because i needed to check if the displacement texture looked right.


Can a moderator resign the post or be dismissed, and why?

I found two or three times that someone was a ♦ moderator on a specific site in the SE Network, but now is not a moderator.  Can moderators resign?  Is it also possible for a moderator to be dismissed if many violations/complaints are made?  Or if a moderator is inactive for a long time will that cause dismissal?


What is the double opposite of Schadenfreude?

If schadenfreude means "pleasure derived by someone from another person's misfortune", is there a word to call someone who can't feel happy when something good/exciting happens to a relative/friend/someone close?


While using the mobile site on my Android phone, I saw a comment that I wanted to flag but there was no flag button. After searching, I saw  that says flagging comments is not supported on mobile site.  Could the ability to flag comments be added to the mobile site?


Simplifying and evaluating $\cot 70^\circ+4\cos 70^\circ$

I have to simplify and evaluate this :   $$\cot 70^\circ+4\cos 70^\circ$$  On evaluating it, the answer comes out to be $1.732$, or $\sqrt 3$ .  I tried to get everything in $\sin$ and $\cos$, but it doesn't go any further. Any hints?


What is the difference between double dot and triple dot for git log

I want to get the changes between commit A and B. Basically what changes have been committed since commit A. Should I use a triple dot when running git log or a double dot?


Is it possible to daisy chain a shared folder in Windows? As in:  Machine A only has permission to talk to B, and A is sharing a folder to B. C wants a file in A's shared directory. Can B re-share the directory from A and serve it to C?


Haskell nested multiline comments aren't highlighted properly

In a question tagged , this answer:     {- inside a comment,      {- inside another comment, -} still commented! -}    The nested comments aren't highlighted the right way. Is this by-design or is this a bug?


How to use MCPE /give command with add enchant attribute?

The new beta 1.0.5 has introduced /give command. How do I add the enchant attribute?


Compare cells in two different spreadsheets and extract data from one an place it in the other if match found

I need to find a way to compare two spreadsheets and if there is a match on specific cells, pull data from one sheet to another.  Say the two spreadsheets contain a value that identifies a piece of equipment:  spreadsheet 1       spreadsheet 2 Server              Server        Serial # 123abc              123abc        123-xx-456   There are of course many, many records/rows in each sheet.  I need to look at the first cell in the server column of sheet 1 and then search a range of cells in the sever column of sheet 2 for a match.   If there is a match, I need to pull the serial # value from the cell in the matching row an put it into the serial # cell of the matching row in sheet 1 (all of the "serial #" cells in sheet 1 are presently empty.)  If that description explaination is too convoluted I can explain by answering any questions you may have.     My deadline for this task is Noon tomorrow, 30 Aug 2012.  Yes, I got the task today at noon....  I am not an Excel user and just get thrust into it on occassion...  Any help would be a huge assist.


Can't get updates Ubuntu 18.04 Permission denied

Last year laptop screen got broken and I just replaced it (imagine the updates waiting). Upon 1st boot into linux side of dual boot win10 system, I didn't use terminal to update, but rather clicked on the taskbar icon and chose update. It started and I kept seeing error messages popping up so today I tried using terminal and here is what I got:  $ apt-get update --fix-missing Reading package lists... Done E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)   I really need to get all updated. How do I fix permission denied?


Ubuntu 16.04, I need to increase swap space?

Ubuntu 16.04 16GB RAM.  How can i increase swap memory in my case? And how many GB i have to add?


I need hint to prove the following theorem:     If $\mathcal f $ is continuous on $\mathbb C $  and $\mathcal f(z) = f(2z)  \forall z \in \mathbb C $ then $\mathcal f $ is constant.


conditional referencing of Python packages: UnboundLocalError

I would like to use function of same name from different packages dependent on a function flag:  import chainer.functions as F def random_q_z(input, test = False):     if test:         F = np         # ...     else:         # ...         pass      return F.sum(input)   However the interpreter protests:  UnboundLocalError: local variable 'F' referenced before assignment  How to please it and do conditional referencing of packages?     I see that this question relates to other questions on variable scopes, but here the question is about how to handle different scopes. And the answer I got is valuable for this particular question.


Why are “protected” questions marked also as “highly active”?

I’ve recently noticed that some questions are marked as “highly active“ while actually they are not. This is a recent  of a question that never hit the “Hot Network” list and its total views are, after 3 days, just about 80. Below the “locked” banner there is another banner which says: “Highly active question. You have enough reputation to answer or unprotect this question.” Which is the same banner used for  real “highly  active questions“!!! Have conditions for being classified as “highly active questions” changed recently?


Should I enable Firewall and AntiVirus on a VirtualPC VM?

I run W7 64-bit with windows firewall + MSE running, and there is a firewall on my router also. I want to run a VM (probably using VirtualPC which comes free) but I'm unclear if this is guarded by the host PC, or if I need to run full firewall+AV on every VM?  Thanks for any help.


Should a question be closed as "duplicate" when the cited "original" was asked **after** the first one?

While doing my time in the review queue,  (question A) came up as a possible duplicate, with  (question B) cited as the "best original." Being a thorough person, I checked out question B and noted the following:                A      B           -------------     topic:  very similar pageviews:  ~13k   ~125k     votes:   16     241   answers:   5      12   I don't claim to be a JavaScript expert, but the top-voted answer to B seemed a lot more comprehensive and explanatory, as opposed to A's which was a basic "just do it this way." The answers also don't perfectly agree with each other, so I may be missing something that Crockford might catch, but overall B looks much better.  So, perfect reasons to close, right? Then I looked at the dates: A was asked May 6 '10 at 6:23, while B was asked Aug 2 '10 at 17:53 - three months later. And so my question: should we be marking something as a "duplicate" of another question even though it was asked first?  I think most would agree that B is the better question, has a more searchable title and text, has attracted more and higher-quality answers, and would probably be of better use to future visitors. But, A was asked first, so labeling it a dupe is problematic. There is nothing inherently wrong with the question, and depending on your personal preferences you may like its answer better.  So, with these doubts, I declined to vote for closure, and left a note for the initiator of the close process that s/he should check dates before marking dupes. I now see that other reviewers either didn't see the comment about the date discrepancy or didn't care, as the question is now on hold. I have nominated it to be re-opened, but figured I should bring the discussion here to get the community's view on things.


Prove that for all $n$, $121\mid n^2+3n+5$.   I thought proving $n^2 +3n+5\pmod{121}\equiv 0$ had no solutions would be a good start, so I completed the square of $n^2+3n+5($, and arrived at $(n+62)^2 \pmod{121} \equiv 3718$. Replacing $n+62$ by $x$, I lastly arrived at $x^2 \equiv 88\pmod{121}$. Now, Im stuck. Any hints would be appreciated.


c=map(lambda *x:x, range(3)) print(list(c))  c=map(lambda x:x, range(3)) print(list(c))   Can someone tell me how is the output different if we use variable positional args  [(0,), (1,), (2,)] #1st output  [0, 1, 2] #2nd output


An inner product space and its proper closed subspace with trivial orthogonal complement

I am looking to do the following:     Construct an inner product space $X$ (with inner product $\langle \cdot, \cdot \rangle$ and a proper, closed subspace $Y$ of $X$ such that $Y^\perp = \{0\}$, ie $\langle x, y \rangle = 0 \ \forall y \in Y \iff x = 0$.   I see that we need $X$ to be infinite dimensional, hence isomorphic to $\Bbb R^n$ with the standard dot product, and then clearly not possible, as a proper (closed) subspace has a smaller dimension.  If someone could give me a hint as to how to start this construction, then I'd be most grateful, as I'm fairly stuck beyond this! As always, please make sure that the hint is reasonably minor, ie doesn't give away too much - I still want to learn from this question, not just be told the answer!  The question is on a course in linear analysis.


I have a problem with Ubuntu's memory management. I am running 32-bit Ubuntu 13.10.  My system is only running Chromium. However, when I run free -m, it returns:                total       used       free     shared    buffers     cached Mem:          5861       4525       1336          0        638       3385 -/+ buffers/cache:        500       5360 Swap:            0          0          0   I can not find why there is so much memory being used. Why is this?


I know one can logout from an individual SE site by clicking the logo in the SE bar and selecting "Log Out" next to the current site. However, is it possible to logout network-wide without logging out from each site individually?


'echo $SHELL' returns 'fish' when I'm using 'zsh'

First I installed fish and then I wanted to test zsh so I installed it. Actually I'm using zsh and it works perfect (at the moment): I can switch themes, enable plugins, etc...  But when I do:   echo $SHELL   it should return /bin/zsh, and by surprise it returns /usr/bin/fish  I'm using Kubuntu 14.04. Is it ok, or should I fix it?


Running through all permutations of a Rubik's cube

According to Wikipedia a $3 \times3\times3$ Rubik's cube has $43252003274489856000$ permutations.   I never tried solving one myself (too tedious), however I wondered, if one could miraculously "solve" the cube in color blind mode (all faces of the cube have the same color to him or the person is just blind folded). (Yes, it is tedious, but I guess sooner or later he will just hit the right permutation and hopefully someone tells him, that it's good and he may stop.)  I wondered, if there were some kind of "best" approach to run all through those  permutations without too many repetitions, for example the algorithm makes sure one gets any permutation at most $n$ times.   I don't know the answer yet and probably won't have it anytime soon. However I would be quite interested in seeing this algorithm and thus I hope the question has been asked before and been solved. Any constructive comment/answer is appreciated.


Why does a bubble arise on an unevenness of a glass?

When you put champaign in a glass, or any other CO2 containing liquid, than often there arise bubble mostly from the same spot.  Bow it is said that the cause for that is that bubbles of CO2 'like to gather' at a tiny unevenness (a sharp point or hole) of the glass. But why should CO2 molecules do this?


Why access to one element of an array works with access to all other rows in python?

I was working on Colab and I had to make csv to 2d array. But I had never used python before (I was C user) so I'm not skilled at python list. real = [1, 2] copy = [[0] * 2] * 4  print(copy)  for j in range(1):     for i in range(2):         copy[i][j] = real[i]         print(copy)  I expected [[0, 0], [0, 0], [0, 0], [0, 0]] [[1, 0], [0, 0], [0, 0], [0, 0]] [[1, 0], [2, 0], [0, 0], [0, 0]]  but it works like this [[0, 0], [0, 0], [0, 0], [0, 0]] [[1, 0], [1, 0], [1, 0], [1, 0]] [[2, 0], [2, 0], [2, 0], [2, 0]]  Please help me...


Get posts that matches specific terms of multiple custom taxonomies

I'm working on a page that show a lot of products. My structure is    Product (custom post type) -->Brand (custom taxonomy) ------>Brand A (custom term) ------>Brand B (custom term) -->Department (custom taxonomy). ------>Department A (custom term) ------>Department B (custom term)   Each product always has to have one brand AND one department. However, there may be a few products in each brand.  So, I need to do a list that shows me the all the products that matches both a specific brand AND a specific department, and also that let me print the name of the brand. i.e: In department A we have 3 products that matches Brand A.  Is there any way to do it? I'm able to filter either one a brand or a department, but not both at the same time.  Thanks!  EDIT:  This is my code to get all the products of a specific department, and it's working great.  $args = array(  'tax_query' => array(      array(          'taxonomy' => 'department',          'field' => 'slug',          'terms' => array( 'department-a' )      ),  ),  'orderby' => 'title',  'order' => 'ASC',  'post_type' => 'prod' ); $query = new WP_Query( $args );  if ( $query->have_posts() ) {   $term = $query->queried_object;   while ( $query->have_posts() ) : $query->the_post(); ?>                <a  rel="<?php the_ID(); ?>" title="<?php the_title(); ?>" class="producto btn btn-raised cardio-dark"><?php the_title(); ?> <?php endwhile;  wp_reset_query(); } ?>   But what I need is to get the product's brand instead of product's name, and that if 2 or more products have the same brand, the brand appear only one time. So I can produce a list as the described above. i.e: Department A has 2 "Brand A" products and one "Brand B" product.


Alexander Vilenkin - The Universe probably had a beginning

Is it true that the Universe can not have an eternal past? It seems like Alexander Vilenkin tries to argue this? Does this imply that the Universe had a beginning?   Link to his publication regarding this question:


How does regularization reduce overfitting?

A common way to reduce overfitting in a machine learning algorithm is to use a regularization term that penalizes large weights (L2) or non-sparse weights (L1) etc. How can such regularization reduce overfitting, especially in a classification algorithm? Can one show this mathematically?


Skyrim highest level(combat/character lv)

Anyone know the answer to this? I have reached level 54, and wonder how much longer I can go..


How to sample from a joint probability distribution of two variables?

I want to randomly sample from a joint probability distribution characterized by two variables x and y. So, basically, I have the information of the joint PDF which has the dimension 100x50. As per my literature study, the only way to efficiently sample from such a distribution is by employing MCMC algorithms (correct me if I'm wrong). However, I do not know yet where to start from. My knowledge in statistics is quite limited and I have just started learning about sampling techniques. Perhaps, Metropolis-Hastings seems like a good starting point. Any leads on the same would be highly appreciated. Thanks. :)


How can I enable Google Code Prettify linenums in SO syntax highlighting markup?

does not say whether or how this is supported.  I have not found anything about line numbering in  either.  This would be a great feature to have to correlate error message line numbers with code samples.  Support for a line number offset would be good too, so that code excerpts will suffice.   has the offset support too.


Either using commands in Konsole (this answer is given: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?), nor from Muon Software Centre (no response when clicking 'Install'). Any ideas or tips, please? Cheers, X-Man


Is Bran able to have children after his fall?

The thing that made me ask this question was that most of Stark family are dead and Bran is now the "heir" to Winterfell. So I guess he should have children to succeed him, otherwise the Stark line will end. (I'm assuming Arya will not come back to Westeros and Rickon's fate is sealed, though I could be wrong.) I don't remember reading anything about it.


Why fiber of $(P\times V)/G\rightarrow P/G$ isomorphic to $V$ ? I think the fiber should be $V/G$, but it is not isomorphic to $V$ Picture below is from the 66 page of   Jost's Riemannian Geometry and Geometric Analysis


How to stack bands in Google Earth Engine?

I have created an Image collection in GEE and with the help of a function I have computed NDVI index and mapped it to create another collection with NDVI as a band.   Now I want the create a stacked image with NDVI bands of the entire image collection into one image. So it should be like NDVI_1, NDVI_2 and so on...  How can I do this? I am pasting the code that shows the NDVI collection that I have so far  // Collection of Images  var collection = ee.ImageCollection([feb1,feb2,Mar2,April1, April2, May1, May2, Jun1,Jun2, July2, Aug2, Sep1, Sep2,Oct1, Oct2, Nov1, Nov2, Dec1, Dec2 ]);    //Using the following function,NDVI of the entire collection is computed var indicesS2 = function(scene) { var ndvi = scene.normalizedDifference(['B8', 'B4']).rename('NDVI');   var image = ee.Image()                 .set('system:time_start', ee.Date(scene.get('system:time_start')));          return image.addBands([ndvi]).clip(Sheikhupura); }; var NDVIcollection = collection.map(indicesS2); print (NDVIcollection, 'NDVI');


How can we differentiate between matter and antimatter?

For instance if there was a galaxy, assume it to be made up of antimatter (isolated from other "normal" galaxies), how would we, or rather, would we be able to distinguish if it was made up of matter or antimatter? If not then why is not considered that half of the universe out there might be made up of antimatter but we think there is an abundance of matter over antimatter just because we can't detect any difference among the two?  Are there any cases in which antiparticles act differently than their corresponding particles would?


Ring Inside an Algebraic Field Extension

Let $E|F$ be an algebraic field extension and a ring $K$ such that $F\subseteq K\subseteq E$. It is true that $K$ is a field?


Why is & special outside of tabular environments?

Consider the following m(non-)we:  \documentclass{standalone} \begin{document} Foo & Bar \end{document}   The build will fail with  ! Misplaced alignment tab character &.   while it will generate a perfectly fine PDF when removing the & character from the code.  Even plain TeX behaves like that and  Foo & Bar \bye   yields the same error.  I have only ever seen & used in tabular and array environments, never outside of it. Why is that?  Couldn't one define e.g. \tabular and \endtabular so that & is only special inside the environment, and just a normal character outside of these environments?  Why does & outside of tabular and array environments have to break the document?  To rephrase the question: WTF is an alignment tab character and where do we usually put it?


Number of solutions of $x_1 + 2x_2 + 3x_3 + \cdots + n x_n = p$

Given a non-negative integer $p$. What is the number of solutions of $x_1+2x_2+3x_3 + \cdots + nx_n = p$, where the $x_i$'s are non-negative integers.   Can we answer this by using number of solutions of $x_1+x_2+x_3 + \cdots + x_m = q$ for any $m,q$?


Is it possible to define a bijection from nonnegative to positive numbers?

Let $\mathbb{R}_{\geq 0}$ be the set of nonnegative numbers and $\mathbb{R}_{>0}$ the set of positive numbers, that is $$ \mathbb{R}_{\geq 0} = \{\,x \geq 0 \mid x \in \mathbb{R} \,\} $$ and $$ \mathbb{R}_{> 0} = \{\,x > 0 \mid x \in \mathbb{R} \,\} $$ Is it possible to define a bijection $f$ between these two sets?


How to split up a Python application without relying on global variables?

I have found myself using a lot of global variables in order to access user input (e.g. a file path) but I know this is bad practice and will likely lead to spaghetti code in the end.  How can I better organise this application without global variables so that I can make use of variables that are set within the GUI through button presses etc?  I've tried global variables, which do work, but will probably lead to bad habits forming, without these I get errors regarding variables being out of scope and undefined.  The application works so far when everything is within one .py file but now that it is growing and I want to split it up into a proper structure I am struggling.  I want to be able to use variables from within a method tied to my GUI so that I can split the application up into multiple files rather than having it all within one file which doesn't seem practical or good practice. I'm not sure if it would be better to use classes instead or if there is a better approach for what I am trying to achieve.


Kernel errors and more when trying to boot from "Bootable USB"

I've been trying to install Ubuntu on my Dell XPS 15 9560. But on boot I'm getting kernel errors and more when trying too boot from the installation USB. I will link a picture for better understanding.     I've tried to boot Ubuntu, Elementary os and Redhat. Tried to use different "Bootable USB" creator tools. Also removed an old grub boot installation from the EFI partition.


Java decimal formatting using String.format?

I need to format a decimal value into a string where I always display at lease 2 decimals and at most 4.   So for example  "34.49596" would be "34.4959"  "49.3" would be "49.30"   Can this be done using the String.format command? Or is there an easier/better way to do this in Java.


Can two perfect squares average to a third perfect square?

My question is does there exist a triple of integers, $a<b<c$  such that $b^2 = \frac{a^2+c^2}{2}$  I suspect that the answer to this is no but I have not been able to prove it yet.  I realize this is very similar to the idea of Pythagorean triples but I am not versed enough in this subject to try and modify the theory for this case.  One simple observation is that in order to have any hope of this working is that $a$ and $c$ must be of the same parity.  Furthermore if such a triple exists we can build an infinite sequence since $(2b)^2 = \frac{(2a)^2+(2c)^2}{2}$ if and only if $b^2 = \frac{a^2+c^2}{2}$  Any help on determining this to be either true or false would be much appreciated.  I am hoping it does end up being impossible, so if someone does find a desired triple I would next move up to cubes instead of squares  Edit: Thank you for the comments, I have foolishly overlooked a simple example and see that there are many solutions to this based on the theory of diophantine equations.  However this is unfortunate for me because i was hoping NOT to be able to solve this.  This question arose while studying a certain type of graph labeling. What I desire is to be able to create a sequence, $S$, of arbitrary length (since each member of the sequence is to be a label of a vertex in the graph) such that for every $x \in S$, $|x-s_i| \neq |x-s_j|$ for $ i \neq j$.  I was naively hoping that the sequence of squares was sufficient to satisfy this condition.  Further edit, I have found that the sequence $2^n$ works but it would be nice if I could find a polynomial sequence.


So, I have a great trouble. When you define a vector for a first time to someone you use the term that two pointed segments are parralel and have the same orientation. So, for that you use in latex upuparrows. But when I try this $AB \upuparrows CD$ it cracs and informs me on some undefined control sequence. This is my first time to work with upuparrows command, so I don't know anything. Please help it's urgent.


list indices must be integers or slices not str

I have a code like this,   def myfunction(json_dict):      mylistsize = len((list(json_normalize(json_dict,'data')['title'])))-1      print(mylistsize)      data = [c for c in json_dict['data']][0]#This line when it is 0 or 1 or 2 works for me.      df = pd.DataFrame()      data_paragraphs = data['paragraphs']   But when I change it to include all the elements of my array, to something like this -   data = [c for c in json_dict['data']][0:mylistsize]   It gives me an error on this line -     data_paragraphs = data['paragraphs']  Kindly help me with this.


How do I prevent painful air pressure differences in my ear when flying?

I've travelled by plane many times, and I often experience strong pain in my ears when landing. It is caused by the rising cabin pressure, which creates a force on the eardrum. Apparently, my inner ear does not let any air in to compensate the pressure.  What can I do to prevent or mitigate this pain (and potential injuries)? Can I prepare myself, or do something during or after the flight?


How can I represent this word/symbol in Latex??  Symbol:    I search in  but I don't find it  Thanks


Which test should I use, if I want to compare the mean of the whole sample with the mean of the fraction of the sample?  So for example the mean of the whole classroom taking the test and the mean of the girls from that classroom.  Thank you very much!


File collision between codeblocks-headers and codeblocks-dev

Whenever I try to run sudo apt-get -f install I get this error. Here is all of the output of sudo apt-get -f install:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:   codeblocks-contrib codeblocks-dev gamin libcodeblocks0 libgamin0   libwxsmithlib-dev Recommended packages:   valgrind The following packages will be REMOVED:   codeblocks-headers The following NEW packages will be installed:   gamin libgamin0 libwxsmithlib-dev The following packages will be upgraded:   codeblocks-contrib codeblocks-dev libcodeblocks0 3 upgraded, 3 newly installed, 1 to remove and 20 not upgraded. 5 not fully installed or removed. Need to get 0 B/5,309 kB of archives. After this operation, 1,163 kB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 174515 files and directories currently installed.) Preparing to unpack .../codeblocks-dev_13.12-3_amd64.deb ... Unpacking codeblocks-dev (13.12-3) over (13.12-1) ... dpkg: error processing archive /var/cache/apt/archives/codeblocks-dev_13.12-3_amd64.deb (--unpack):  trying to overwrite '/usr/include/codeblocks/externaldepsdlg.h', which is also in package codeblocks-headers 13.12-1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/codeblocks-dev_13.12-3_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Does anyone think they can help me solve this problem?


Stating a short remark/point in beamer slides

In beamer (presentation), I had seen example of insertion of a remark/small point during the presentation as below.  There, the author speaks (during presentation) as follows     "Consider the base case, namely when M/N is simple ... this work is done by Kleidmann, Liebeck,etc."   And while speaking this, he points out the names of Methematicians specifically as pointed below in slide.  Q. What are the commands to insert such pointing remarks, notes during slide presentation? (Please insert appropriate tag if necessary, since I do not have much idea of it.)


Select Multiple Values from Same Column; one sql statment

I am looking to return a list of users from a database. There are hundreds of users in the db. Each user has it's own unique user_id. All of the values that I am trying to return reside in the same column (meta_value).   The database structure is as follows:  id | user_id | meta_key | meta_value   sample data is as follows:   1 | 3434 | first_name | Brandon 2 | 3434 | last_name  | Johnson 3 | 3434 | street_add | 123 main 4 | 3434 | city       | ocean beach 5 | 3434 | state      | Texas   I am trying to return the first name, last name, street_add, city, and state in one sql statement.  I'd like the output to look like:  Brandon, Johnson, 123 Main, Ocean Beach, Texas


Draw Bohr atomic model with electron shells in TeX?

This question led to a new package:      I'm making slides with beamer for my chemistry students. I would like to draw a figure in LaTeX to illustrate the electron shells in the Bohr model but I cant find any chemistry package that does that? Is the only way to do it to use TikZ or something and do it manually? Somebody must have had this need before?


Why am I getting exception Directory Is Not empty?

I have this line:  Directory.Delete(outputfiles, true);   If I set it to true then it should also delete subdirectories and files. Now I checked that the directory is empty so it will be deleted next time. But before the exception in this directory I had another 4 subdirectories and in one of them I had a zip file of about 7 Mb size.  System.IO.IOException was unhandled   HResult=-2147024751   Message=The directory is not empty.    Source=mscorlib   StackTrace:        at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound)        at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)        at Diagnostic_Tool_Blue_Screen.CreateDirectories.CreateDirectoriesAtConstructor() in d:\C-Sharp\Diagnostic Tool Blue Screen\Diagnostic Tool Blue Screen\Diagnostic Tool Blue Screen\CreateDirectories.cs:line 35        at Diagnostic_Tool_Blue_Screen.Form1..ctor() in d:\C-Sharp\Diagnostic Tool Blue Screen\Diagnostic Tool Blue Screen\Diagnostic Tool Blue Screen\Form1.cs:line 125        at Diagnostic_Tool_Blue_Screen.Program.Main() in d:\C-Sharp\Diagnostic Tool Blue Screen\Diagnostic Tool Blue Screen\Diagnostic Tool Blue Screen\Program.cs:line 19        at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)        at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()        at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)        at System.Threading.ThreadHelper.ThreadStart()   InnerException:


Website Visible only to Registered users

How can I disable access non registered users? If the user is not logged in I would like to redirect them to a custom registration/login page. Is it possible this using below code as I dont want to use plugin.  <?php if ( is_user_logged_in() ) {     echo 'Welcome, registered user!'; } else {     echo 'Welcome, visitor!'; } ?>   Thanks.


Use bibentry to produce references in CV without bibliography list: works but error

The following sample works for me, with res.cls and using pdflatex, bibtex and 2xpdflatex; however, it gives the error ! LaTeX Error: Lonely \item--perhaps a missing list environment. Is this something that can be avoided, or is it related to my own latex version?  \let\latexnofiles\nofiles \let\nofiles\relax \documentclass[margin,line]{res} \usepackage[pdftex,pdftitle={zzz}]{hyperref} \usepackage{bibentry} \begin{document} \bibliographystyle{alpha} \nobibliography{mybiblio.bib} \begin{resume} \section{abc} \begin{itemize} \item \bibentry{some item} \end{itemize} \end{resume} \end{document}   Note that it is not related to the res class, as  \documentclass[12pt]{article} \usepackage[pdftex,pdftitle={zzz}]{hyperref} \usepackage{bibentry} \begin{document} \bibliographystyle{alpha} \nobibliography{mybiblio.bib} \section{abc} \begin{itemize} \item \bibentry{someitem} \end{itemize} \end{document}   gives the same error


Recently, while I was installing windows 7, I tried to re-partition my 750 gb hdd. There were following partitions inside my HDD:   Swap  Ubuntu Backtrack System reserved for Windows 7 Windows 7   I tried to remove old windows 7's reserved partition (which is 100 mb). And my laptop suddenly stuck and there was no way to continue installation process but restart.   When I restarted my laptop, BIOS was detecting HDD as device but nothing else. Just black screen.   I rejected hdd from my laptop and tested on another pc.   I tried to fix this problem using bunch of software such as: Gparted (which stuck during loading process, and alerted message "... kernel panic ...") , Mini XP (doesn't see any hdd device), Windows 7 (alse didn't see any hdd device).  What do you suggest? Thx in advance for your time.


Please do not forget to make your BIOS boot on sda6/EFI/ubuntu/shimx64.efi file!

My computer doesn't boot. I format my Toshiba laptop with a bootable USB drive. I make this , and when i restart the computer after the installation, my computer does not boot. Then i run boot-repair and finishes with this . I reboot ant nothing happens. I review some questions before, but could't find anything yet. Can someone help me please?


Active Directory: Is it required that the "A" record for a domain point to a Domain Controller?

Currently we have an Active Directory setup, and say the name is 'example.com'. The DNS entries for example.com has two A records pointing to the two domain controllers. I would like internal users to be able to access our website by using    but, we don't run the site off the domain controllers and I don't want to install IIS or some other service just todo a redirect to www.example.com.  If I understand correctly, I should be able to delete those entries, and add a new A record pointing to the IP of the web server and things will not break, as clients typically use the SRV records to locate domain controllers and whatnot.  Is this correct? I don't want to cause an outage is the reason I'm asking before just changing it. :)


for all prime $p$, how to prove $a = (p!-1)$ is the only integer $a$ that satisfy $p! | (a^p + 1)$?

suppose $1 \leq a \leq p!$. It's easy to prove when $a=p!-1$, that $p!$ divides $(a^p + 1)=((p!-1)^p+1)$. But how do we prove the uniqueness for such an $a$? Thanks for helping.


Is there an intuitive reason as to why the harmonic series is divergent?

The proof involving partial sums up to the nth term, where n is some power of $2$, completely makes sense. But just looking at the series itself, it seems very strange that it's divergent.   For large values of $n$, $a_n$ would start being extremely small and having an indistinguishable effect on the overall sum. All the sixth sense I've gained from working with limits makes it seem really strange that this would be considered divergent.   Surely there is a number (not even that difficult to find) such that we don't have enough computational power to calculate it's difference with the next terms (seeing as we'd be calculating differences based on hundreds of decimal places).   If you've any intuition on this I'd very much love to hear it!  Edit: I'm not asking for the proof of why it's divergent, I'm asking for peoples' personal ways of thinking and making sense of this intuitively. The post suggested to have been duplicated presents formal proofs; that's not what I'm looking for :)


/sys/class/baclight folder is empty, leading to blank screen

I recently tried to change the default brightness of my ubuntu by echoing values to /sys/class/backlight/acpi_video0/brightness, and installing xbacklight, as suggested by answers to other questions. However, after booting ubuntu after doing the above, the screen just went blank.  After further checking, I found /sys/class/backlight folder is empty, and I have not been able to add a folder even under root permissions.


Product of path connected spaces is path connected

Will product of path connected topological spaces be necessarily path connected? Why or why not?  Give me some hints. Thank you.


need for schengen visa if i have US visa

I am travelling to Chicago from saudi via FRANKFURT AND PARIS. Do I need a schengen visa if I have a valid visa for USA? I am an Indian national.


Feature Request: Bookmark / Follow a question

I want to follow a question (with a bookmark of some sort), but there doesn't appear to be any way to do so in the Android app.  There is a favourite button, but once you add a question as a favourite there doesn't appear to be any way to view your favourite questions within the app. If there is a way, and I'm not finding it, then it needs to be made more visible. For example, a "Favourite Questions" item in the main menu.


This is a follow-up to this question:   Hans Bethe wrote a paper in 1944, "Theory of Diffraction by Small Holes," Phys. Rev. 66, 163. I don't have access to the paper, but from descriptions online it sounds like he proved the following. Suppose a plane wave impinges on an absorbing sheet, and there is a hole in the sheet of diameter $d$, with $d<\lambda$. Let $P_0$ be the power incident on the hole, and $P$ the power diffracted through the hole. Then the transmission is $T=P/P_0=(d/\lambda)^4$.  As a practical application, I think this explains why microwaves don't leak strongly through the metal grille in the front of a microwave oven.  Questions:   Does the thickness of the sheet matter? From references online, it sounds like the hole is treated as a waveguide...? This seems to relate to cutoff frequencies of waveguides, etc.? It seems to me that Huygens' principle would give $T=1$ for $d\ll\lambda$, since in this limit the wavelets are in phase. Why is Huygens' principle invalid here? Is this related to question #1? Is there a simple argument for the proportionality to $(d/\lambda)^4$? Or if not, how does one prove this using the gory details of Bessel functions, etc.?


Is it somehow possible to have utf8 characters (e.g. german umlauts) inside \edef ? The following example document behaves fine if the umlaut is given directly as argument like \convertTest{Müller}. The resulting output is "Mueller" after conversion. If "Müller" is given via a \edef like in \convertTest{\authorname}, the resulting output is not as expected ("M.ller"), although the message on \newcommand entry (before convert) is the same.   \documentclass{article}  \usepackage[ngerman]{babel}   \usepackage[utf8]{inputenc}   \usepackage[T1]{fontenc}   \usepackage{stringstrings}   \newcommand{\convertTest}[1]{   \message {before convert: #1}   \convertword[q]{#1}{}{ue}   \message {after convert: \thestring}   \thestring \  }  \begin{document}   \convertTest{Müller}   \edef\authorname{Müller} \convertTest{\authorname}   \end{document}


Why don't I see my own moderator messages in the moderator inbox?

The new moderator inbox shows mod messages sent by all of our site's moderators... except myself.  On looking at the list today, it seemed that several messages were missing. I know that mod messages were sent after November 22, since I sent several of them (being almost the only mod around during the holidays).    And indeed, on manually checking, I found that all the messages I thought were missing were those I sent.  Is it intentional that I don't see mod messages I sent, and is there a better way for me to go find my own mod messages again if necessary?


An ethernet cable is stuck in the laptop. The laptop is a Lenovo G50 and its Ethernet port is compact and sort of expands when you push the cable in. The cable is thinner and narrower than most, but the actual terminal seems to be standard. This has never happened before. I've tried really hard to get it out but it won't move. This is a silly problem. It's a "Cat 6 flat cable". Here is a picture of it stuck in the laptop (laptop is being held upside down):   Here is the picture of the other end of the cable:    I got it out :) but it looks completely fine. I'm not sure if I should try using it again:


How to change back the perspective after terminating the debugged process in Eclipse?

Eclipse by default automatically switches to the Debug perspective when you hit a breakpoint.  However, it is annoying me that it doesn't automatically switch back to the previous perspective (say, Java) when terminating the process.  It just stays in the debug perspective even though there is nothing to debug because nothing is running.


How do bounce rate and page views change Alexa rankings?

My site has 30,000 visits with 86,000 page views. If the bounce rate of 54%, then does it means only 15,000 users generated the 86,000 page views or 30,000 visits generated the 86,000 page views.  My website is www.cricandcric.com  Even though I have got 86,000 page views, my site's Alexa ranking is still getting worse day by day. How do I control that?


Onchange function is not working in Jquery.   In my page i need to add select tag when i click the add button.  My code is here   Using Below code to add a new select tag. This code is working fine.   var counter =1;     var newrow = $(document.createElement('tr')).attr("id", 'newgroup' + counter);   var httttm = "";     httttm += "<select name='input_field[]' class='form-control' ><option value=''>Select</option><option value='input'>Text</option><option value='option'>Option</option></select>		";         newrow.after().html(httttm); newrow.appendTo("#newgroup"); counter++;   Following code is used to get the option value from the select tag. Normally below code is working fine. But when i add the new select tag using above code onchange function is not working.   $('select').change(function (){     var selvalue = $(this).val();                if(selvalue == "option")    {                alert("hai");     }  });


Finding a general term for a telescopic series to test for divergence

I have this series:   $${1\over 1\cdot3}+{1\over 3\cdot5}+{1\over 5\cdot7}+. . .$$  I am supposed to choose a test that will prove that this series converges. I think that it looks like a telescoping series, but I have no idea how to find the general term for it. I haven't been able to find much help online. I can see that this series probably converges to zero, but that's not an appropriate answer to this problem.   How do I find the general term?  Edit: The other question does not address how this was found:  $${1\over (2n-1)(2n+1)}$$  I don't know how to find that on my own, and that is what I'm looking for.


Find all integers less than $m$ that are relatively prime to it

Find all integers $n$ between $0\le n < m$ that are relatively prime to $m$, for $m = 4,5,9, 26$. We denote the number of integers $n$ which fulfill the condition by $\phi (m)$, e.g. $\phi (3) = 2$. This function is called "Euler's phi function". What is $\phi (m)$ for $m =4,5,9,26$?


If $\gcd(a,b)=1=\gcd(c,d)$, $b>0$, $d>0$ and $\frac {a}{b}+ \frac {c}{d}$ is an integer, show that $b=d$. Can someone give me hints to solve the problem? I have a feeling that we need to show that $b|d$ and $d|b$, but cant figure out how to do it. Can anyone help me? Just need some hint not the entire solution!


Difference between multinomial logistic regression and multiple independent binary logistic regressions

Suppose dependent variable has more than two possible discrete outcomes. I wonder what is the difference between fitting a multinomial logistic regression model and several pairwise binary logistic regression models?     Do they return the p-values of coefficients?  # ------- Edit.  I did a comparison between multinational logistic regression and binomial logistic regression in R. They gave a different result. Hope someone could help.  Suppose I am interested in what is the odds ratio of being in pier and beach given one-unit of income increase. Fishing$mode has four classes, beach, pier, boat and charter.  In the multinomial scenario, I used following code to get the p value.  library("nnet") data("Fishing", package = "mlogit") fishing.mu <- multinom(mode ~ 1 + income, data = Fishing) sum.fishing <- summary(fishing.mu) # gives a table of outcomes by covariates for coef and SE # now get the p values by first getting the t values pt(abs(sum.fishing$coefficients / sum.fishing$standard.errors),    df=nrow(Fishing)-6,lower=FALSE)*2 # (Intercept)       income # pier              0 9.271562e-08 # boat              0 8.725280e-06 # charter           0 1.352088e-01   the p value of the coefficient of income is 9.271562e-08. Then I fit a logistic regression using a subset of data, mode%in%c("beach","pier").  mylogit <- glm(mode ~ income, data = Fishing, family = binomial(link = "logit"),                subset=mode%in%c("beach","pier")) summary(mylogit) # Call: #   glm(formula = mode ~ income, family = binomial(link = "logit"),  #       data = Fishing, subset = mode %in% c("beach", "pier")) #  # Deviance Residuals:  #   Min       1Q   Median       3Q      Max   # -1.4658  -1.2976   0.9499   1.0238   1.4920   #  # Coefficients: #   Estimate Std. Error z value Pr(>|z|)     # (Intercept)  7.037e-01  2.126e-01   3.310 0.000932 *** #   income      -1.135e-04  4.817e-05  -2.356 0.018495 *   #   --- #   Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 #  # (Dispersion parameter for binomial family taken to be 1) #  # Null deviance: 426.30  on 311  degrees of freedom # Residual deviance: 420.58  on 310  degrees of freedom # AIC: 424.58 #  # Number of Fisher Scoring iterations: 4   this time, the p value of the coefficient of income becomes 0.018495.   Why does this happen? Did I miss anything?


Suppose that $f$ is an entire function satisfying $|f(z)| \leq 1+|z|^\frac{3}{2}$ for all $z \in \mathbb{C}$. Show that f must be a linear function, that is, $f(z)=az+b$ for some $a,b \in \mathbb{C}$. I have not much insight on where to go with this, but here is what I have thought up already: As $f$ is entire it is analytic everywhere in the complex plane, this means that it is complex differentiable everywhere in $\mathbb{C}$. We also have that $|f(z)| \leq 1+|z|^\frac{3}{2}$. Allowing $z=a+bi$ we then have $|f(z)| \leq 1+|a+bi|^\frac{3}{2}$. We can also simplify $|a+bi|^\frac{3}{2}$ to be $(a^2 +b^2)^\frac{3}{4}$. But this approach seems wrong, or that it won't lead anywhere. Where can I take this? Or is where I'm starting wrong?


I am trying to follow the installation instruction for a piece of software:  cp SOFTWARE-yyyymmdd.linux.tar.gz /usr/local/. cd /usr/local gunzip -c SOFTWARE-yyyymmdd.linux.tar.gz > SOFTWARE-yyyymmdd.linux.tar   But when I try to do that, I get the following error:  -bash: SOFTWARE-yyyymmdd.linux.tar: Permission denied   What could be the problem here?


One of the users on Stack Overflow pointed out that the rendered version of some posts is not what the preview or revision shows. After triggering a re-render the glitch was gone, but since it is not a problem to find more I found another one. Here is an example of the difference.         However, I noticed that there are more differences in the rendered version and the one generated by CommonMark which is the reason that I am raising this as a bug, so the developers can take a look at it if they are not aware of it yet. Inline code not generated properly when following HTML The rendered version of  is correct:    But the preview is broken:    Also:       But not here:     Ignoring HTML code.  Before:    After:    Not even sure what is going on here  Before:    After:    Other posts:


2011 MacBook Pro running 10.8.5; need incremental back up program

I need to back up my Pro Tools folder to an external HDD everyday, but need a program that looks for changes and saves them only, similar to the way time machine works. Is this “appended” or “incremental” and does your Mac Guru software perform this function?


Excuse me for my bad English. I want to make answer part of page unvisible but occupy space. I use xetex.   \documentclass{book} \usepackage{lipsum} \newcommand{\question}[1]{#1} \newcommand{\answer}[1]{#1} \begin{document}     \question{What is your idea?}     \answer{\lipsum[1]}     \lipsum[2] \end{document}   Output:  In above code I want to lipsum be unvisible. like this  Unfortunately transparent package not work in xetex and since answer part might be everything like tikz or colorbox or other things so change color of answer part to white not solve the problem in some situations. Thanks in advance


Number of upvotes incorrectly displayed in android app search

I have been browsing through the most upvoted questions on Stack Overflow and noticed there is a bug in the number of upvotes for the most popular one:    At least on the Android app instead of 11k only 1.1k are displayed.


Does Java have buffer overflows? If yes can you give me scenarios?


How long does it take for badges to be awarded? How are they generated?

Do badges get calculated in real time, or do they get calculated by an external service? How long does it take for a badge to be awarded, once its requirements are met?  Does Stack Overflow use any external services to do things, like maintenance, e-mailing or badge calculation?


I have a Trek Domane S4 (carbon) that makes a random "clicking" noise while pedaling. I can feel it thru my feet, so I'm thinking its coming from the crank area, but can't seem to figure it out. I use Mtn bike shoes w/ clipless pedals, could it be the pedals?


Prove $ \sin^4(x)$ identity using $z=cis(x)?$

I cannot prove the $\sin^4(x)$ identity using $z= cis(x)$. I know that you have to use de Moivre's theorem and compare the real values of $z^4$ but I am stuck at this step: $$\sin^4(x)= -\cos^4(x) + 6\sin^2(x)\cos^2(x) + \cos(4x)$$  The identity is $\sin^4(x) = 1/8(\cos(4x) - 4\cos(2x) + 3)$


Is there any proof for this simple observation?

If we consider the Euclidean space $R^3$, it is simply the space where we live. Here we can find only four point such that distance between any two points is a constant.   If we consider the Euclidean space $R^2$, it is a $2-D$ plane. There we can find only three points such that distance between any two points is a constant.  If we consider the Euclidean space $R^1$ it is simply  a line segment. Here we can put only two points such that the previous condition holds.  My question is can we extend this observations to higher dimensional Euclidean spaces? Can we put $n+1$ points in $R^n$ such that distance between any two points are same(Here I mean the Euclidean distance). If we use a different metric on $R^n$ can we obtain the similar result? Thank you.


my global can't change in the def of a class

I define a varible, name 'Decisoin_name' and set -1 at first  and I try to change it in a def of a class  because I’d like  to add 1 everytime when I call the def  but the system send me a message      "local variable 'Decision_name' referenced before assignment"   what can I do?  Would you give me a solution to fix it ? thank you  The following is my code  Decision_name = -1  class Decision_Dialog(QDialog):      def sendback(self):          Decision_name+=1          print(Decision_name)          self.close()


How can I draw (not bake) normal map over my model, like a texture in texture paint mode? Render cycles.  Thank you in advance!


«modified 19 mins ago user» yet I can't see any modification done by the user

When looking at the Top Questions  can see that in the question with the title "Include in Markup help information on how to resize images in a post" it says  modified 19 mins ago 2.Hallac 1  Yet, when I open  there's nothing in it that the user 2.Hallac has done. This might be related to my account not having permissions to visualize suggested edits that are not done in my account; yet, if that's the case, it makes sense that I shouldn't see that this particular user made an edit (assuming that's the case).


Will hydraulic brakes work with vertical underseat recumbent handlebars?

I have this type of recumbent. I want to upgrade to hydraulic brakes, but every bike shop warns me about the issues that will come from attaching the brake levers in a vertical position. They say that it will catch air very quickly. Do I  have any options? Maybe there is special brakes for this type of situation?


if |x -4 | + |y - 4| =4 then how many integers value is possible for the set (x,y)


How to generate a basis for a linear mapping in a complex field such that's it's matrix is Upper Triangular?

Let $T:V \to V$ be linear. $V$ is a complex vector space of dimension $k$. Then there exists a basis so that the matrix generated by $T$ under that basis is upper triangular. The proof is by induction on $k$.   But how to generate such a basis. The first step is that because $v$ is a complex vector space, so there exists a non-zero vector $v$ such that $Tv=\lambda v$ for some $\lambda \in \Bbb F$. So, take $e_1=v$ because then $T(e_1)=\lambda e_1$. So, in the first column of the matrix the rows 2 to n will be zero. Now if I extend $e_1$ to any basis of $v$ that basis may not be a basis for which the matrix is upper triangular. Then how to construct it ?


Sum of the series:$\frac{1}{1\cdot 2}+\frac{1\cdot3}{1\cdot2\cdot3\cdot4}+\cdots$

I have a question where i couldn't find any clue. The question is  $$\frac{1}{1\cdot 2}+\frac{1\cdot3}{1\cdot2\cdot3\cdot4}+\frac{1\cdot3\cdot5}{1\cdot2\cdot3\cdot4\cdot5\cdot6}+\cdots$$  I could get the general term as $t_n=\frac{1\cdot3\cdot5\cdot7\cdots(2n-1)}{1\cdot2\cdot3\cdot4\cdot5\cdot6\cdots2n}$  I have also tried it to form the sequence in the telescopic form.But couldn't get. Any hint will be appreciated.


Write-only permission for a directory doesn't allow to rename (move) files inside?

In fact, I would like to ask more general question -- "what does write permission for a directory allow you to do exactly?" -- but let's approach it with a concrete example. It is a long question, if you are in a hurry read the bold -- it should cover the main part. Different sources (, , ) say something similar to the following on the directory permissions:  r, read -- reading of the directory's content (filenames inside) w, write -- changing the directory's attributes (e.g. modification time) and creating/renaming/removing entries inside x, search -- accessing files inside, you have access to the inode of the file, hence you can reach it's actual content  My problem is with the description of w. What directory's attributes does it give you access to? I cannot create/rename/remove a file inside a directory with only write permission: I make a directory (tdir/) and a file inside (afile), chmod -x-r tdir/, mv tdir/afile tdir/af, rm tdir/afile, touch tdir/newfile -- all fail with permission denial, unless I set x permission to the directory as well. And x alone doesn't give you the permission to create/rename/remove files inside the directory. In order to do that you need both x and w. But touch tdir does change the modification time of the directory with w only. I would rephrase the sources above this way for the compliance with the issue: a directory's r allows you to see the filenames inside, but no access to the actual file (to the inode); x gives you access to the inodes of the files (which means you can see their permissions and, according to it, have access to the contents), but you still cannot change anything in the directory; directory is actually some sort of a file and to change something in it you need the w permission. Thus, when you are changing something in the directory you need w permission. If your change requires inodes of the files in the directory -- you need x as well. It explains why you cannot remove a file inside a directory with w only: when removing a file you need to reduce the link count of the inode by 1 -- you need to know the inode -- thus you need x for the directory. But why do you need x for creating (you could ask the system to create a file without exposing the inode?) and renaming/moving the file (when you move a file you don't change it in any way, you only change the records inside the directories and their inode counts?)? Maybe it is just an implementation thing? I.e. indeed you don't need the inode for renaming/creating files -- you need only filenames and w permission; but inode and filename constitute one record in the directory; thus changing the filenames = changing the records = kind of accessing the inodes. And also what attributes do directories have besides modification time, permissions and files records? What else in the directory can you change with w only?


How to convert Unix Timezone Abbreviations in Powershell v4

It is a pretty simple problem but looking through most of the answers and MS documentation, I could not find a simple way to use the abbreviated timezone information from Unix system in ParseExact function of DateTime in Powershell v4.   The date value that I receive is like December 29, 2016 2:04:26 PM EST  All of the elements in above date time are easily mapped except the "EST". This can of course be EST, EDT, PST, PDT or any other timezone.   MS timezone seems to require the full time zone name or id. How do we lookup EST in MS timezone in powershell?  Update* We essentially decided to ignore the timezone since we are interested in the day not the specific time of the day. There does not seem to be a simple answer except adding a case or lookup type statement and then converting it to PS style timezone (-5:00) etc.  The question that was cited as duplicate was answered 9 years ago. PS has gone through many iterations in this period so it should be reasonable to ask this question for a simpler resolution.


MySQL: What is a reverse version of LIKE?

LIKE operator in MySql is used to find rows that contain our query text, for example:  select name from user where name like "%john%"   which will return John Smith, Peter Johnson etc.  What if I need the opposite - to find rows that are CONTAINED in our query text? For example I give it John Smith and Peter Johnson are best friends and want it to find me all names from the table that could be found in this string.  How to do that?


Eyery single tkinter import creates a tkinter window with a winged sign   on the top. Here's a screenshot:  Any ideas how to remove it? Thanks in advance!  I need the answer for Windows, not for UNIX


How can I total a Column when there is an #N/A or blank?

I want to be able to total an entire column. I want excel to give me the total sum of all numbers in the column and ignore the blanks and the #N/A.   How would I complete this?


Confusion about how self.something works in classes

Why doesn't this code work?  class Triangle(object):     def __init__(self, angle1, angle2, angle3):         self.angle1 = angle1         self.angle2 = angle2         self.angle3 = angle3      number_of_sides = 3     def check_angles(self):         sum_of_angles = angle1 + angle2 + angle3 # PLS LOOK AT THIS LINE         if sum_of_angles == 180:             return True         else:             return False   but this does?  class Triangle(object):     def __init__(self, angle1, angle2, angle3):         self.angle1 = angle1         self.angle2 = angle2         self.angle3 = angle3      number_of_sides = 3     def check_angles(self):         sum_of_angles = self.angle1 + self.angle2 + self.angle3 # LOOK HERE AGAIN         if sum_of_angles == 180:             return True         else:             return False   if self.angle1 = angle1, why can't I just use the shorter version?


What I want to do while modeling is start at the Top Ortho view (NumPad 7) with green Y-axis pointed up and down on the screen. I then want to rotate the view left or right around my model, moving only the X & Z axis' while keeping the Y-axis vertical.    Ctrl Shift MMB  zooms the view in and out if the wheel is held down and the mouse moved. If the wheel is scrolled the view rotates around the Z-axis. Going to view 3 and Alt Shift MMB  allows rotating around a Horizontal Y-axis.  Is there a way to rotate around a vertical Y-axis?


Why does $M \mathbin{\otimes_R} N \cong M_\mathfrak{p} \mathbin{\otimes_{R_\mathfrak{p}}} N$?

Let $R$ be a commutative ring, $\mathfrak{p}$ a prime ideal of $R$, $M$ a $R$-module, and $N$ a $R_\mathfrak{p}$-module. Why do we have this isomorphism? $$M \mathbin{\otimes_R} N \cong M_\mathfrak{p} \mathbin{\otimes_{R_\mathfrak{p}}} N$$  I can prove this by bare hands by taking one map to be defined by $m \otimes n \mapsto (m / 1) \otimes n$ and the other map by $(m / s) \otimes n \mapsto m \otimes (n / s)$. A little work is required to show that the latter is well-defined, but when that is done we have two mutually inverse $R$-linear (and $R_\mathfrak{p}$-linear) maps. But what is the conceptual reason for this isomorphism? Expanding the right hand side a bit, we see that we are saying $$M \mathbin{\otimes_R} N \cong (M \mathbin{\otimes_R} R_\mathfrak{p}) \mathbin{\otimes_{R_\mathfrak{p}}} N$$ and expanding the left hand side, it seems that what we want to prove is $$M \mathbin{\otimes_R} (R_\mathfrak{p} \otimes_{R_\mathfrak{p}} N) \cong (M \mathbin{\otimes_R} R_\mathfrak{p}) \mathbin{\otimes_{R_\mathfrak{p}}} N$$ but I see no reason why tensor products over different rings should associate like that...


How can I plot a function to represent a string with a knot in it in R^3 in Latex?

I am trying to plot a few different graphs in R^3, one being a string with a loop in in R^3 which I have managed to do. The plot I am struggling on is how can I represent different types of knots (in closed intervals [0,1]) in a plot in R^3 by using functions? This is as far as I have gotten in my attempt to try to produce a trefoil knot: \begin{tikzpicture}   \begin{axis}   \addplot3[variable=t,mesh,domain=0:1]    ({(0.8*cos(deg(3*t)))/(1-(0.6)*sin(deg(2*t)))},{ (0.8*sin(deg(3*t)))/(1-(0.6)*sin(deg(2*t)))}, {(1.08*cos(deg(2*t)))/(1-0.6*sin(deg(2*t)))});   \end{axis}   \end{tikzpicture}  But clearly it does not do what I had pictured (produce a knot). Thank you!


Using Scalable Link Interface (SLI) to speed up renders

Has anyone used two titan cards in Scalable Link Interface to speed up renders? I'm just curious because I've tried everything.


What would be the correct sentence:  Designed to specifically work with Designed specifically to work with Designed to work specifically with


I am a beginner, drawing with tikz is a bit difficult for me.  Is there an auxiliary drawing tool that is suitable for beginners? Especially drawing three-dimensional graphics.


I have a Hitachi 5400 RPM 60.0 GB 2.5 hard drive that clicks once when it is powered on and is not recognizable in my computer or in disk management.  I have also tried connecting to a Linux box and used fdisk -l but no such luck the drive is not recognized.  To replace the controller to see if this will allow me to recover data from the drive, must I use the EXACT same make/model of what this drive is or will the controller from any 2.5 hard drive accomplish the same goal?  If not what other method is recommended to recover data from a hard drive that a PC does not recognize?  EDIT The link to the possible duplicate ? gives options of how to recover data from a drive that your computer can still recognize.  My computer will not recognize the drive at all.


NullPointerException on multidimensional string array

I keep getting this error: Exception in thread "main" java.lang.NullPointerException. I'm not sure what's wrong here..  String[][][][] fourDArray = new String[numOfModules+1][3][][];     String[] x = new String[1];     x[0] = splitArray[0];        fourDArray[0][0][0] = x;


What Else Can I Test When Troubleshooting a Fetch Issue in Google Search Console?

For the last couple months, I've been unable to fetch any pages of my site in Google Search Console.  (The error message says "Temporarily Unreachable")  Here are the possible causes I've come across and the ways I've tried to test them.  *The page doesn't exist. (I don't think this is it because the page is visible to any non-bot visitor.)  *The Googlebot is being blocked by my robots.txt file. (I don't think this is it because the only entry on this file is User-agent: * )  *The Googlebot is being blocked by my hosting company. (I don't think this is it because I viewed the bot traffic stats and Googlebot is successfully crawling the site.)  *The page takes too long to load and creates a timeout error. (I don't think this is it. Some of my pages are genuinely slow, but--as a test--I also uploaded some small, mostly blank html pages which load in half a second. And, they won't fetch either.)  Although , the suggested answer--that this is a temporary issue in Google Search Console--doesn't apply in this case as the issue has been persistent for eight weeks in my case.  If you can see an error in my testing logic above, please let me know. Alternatively, if you can think of another angle from which I should approach this, I'd be curious. Thanks!


Transfering new drive from Windows to Linux

I recently got a new 3TB hard drive which I plan on loading up with video files on my Window PC and then transfering the hard drive to my Linux PC/server.  I formatted the drive as NTFS (since I was told that NTFS is compatible in both environments) and partitioned the drive as GPT (since I read this was also compatible in both environments), but, even though it detects the drive on my Linux PC, I'm getting an error when trying to access it which reads:  Error mounting /dev/sdb2 at media/me/LONGSTRINGOFNUMBERSANDCHARACTERSTHATIBELIEVEISHEXIDECIMALCODE: Command-line 'mount-t "ntfs" -o "unhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sdb2" "media/me/SAMELONGSTRINGASABOVE"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount.  Failed to mount '/dev/sdb2': Operation not permitted. The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   Anybody have any idea what this means? What I have to do to fix this??


I am using Ubuntu server 16.10, XTerm and Emacs display Hebrew and Arabic script fine.  When used from within the X windowing system, the virtual console itself, that is not the terminal emulator, cannot display Hebrew.   How can it be fixed?


Is there any way other than instanceof operator for object type comparison in java?

I remember reading in some Java book about any operator other than 'instanceof' for comparing the type hierarchy between two objects.  instanceof is the most used and common. I am not able to recall clearly whether there is indeed another way of doing that or not.


So, is this the right way of storing passwords in a database?

Would the following be a safe way of storing a user's password in a database?  When registering:  $salt=hash("sha512", rand()); $password=hash("sha512", $_POST["password"].$salt);  insert_values_into_db;   When logging in:  $given_password=$_POST["password"];  $salt=get_salt_from_db; $correct_password=get_password_from_db;  if(hash("sha512", $given_password.$salt) === $correct_password){     //Password is correct }else{     //Password is incorrect }   Are there any blatantly obvious errors with this?


What is the purpose of the resistors in this schematic?

I’m looking into using a CD4021B shift register with an Arduino Uno, and found a schematic online detailing how to use it. However, I am confused as to what the point of the 10kohm resistors is, would the current not just pass straight through from the 5V to the shift register when the switches are closed? To me it seems like the resistors are pointless, however I am rather new to this all so if someone could enlighten me as to their purpose it would be much appreciated.  Schematic:


Equivalent of "both" when referring to three or more items?

What would be the correct word to use when referring to three or more items, in the same manner as the word both?  For example, using two words, with the word both:     "There are several recommendations I   have to further improve the sites —   both to improve their profit, and   decrease their cost."   Using three words, with a blank space in place of the correct word:     "There are several recommendations I   have to further improve the sites —   _ to improve their profit, decrease their cost and improve their   usability."   So, what would be the correct word to use in place of the __?


Is there a way that I can place a watermark on the right bottom of multiple images, no matter what dimension the images are?

Is there any way that I can place a watermark on the right bottom of multiple images, no matter what dimension the images are? I have tried using Photoshop Scripts > image processor, but it works only for images of same dimension. I want to put watermark on multiple images of different dimensions. This is the output i got.  For the first image the watermark got placed correctly, but for the second image watermark got distracted. As you can clearly see the dimensions are different. Please suggest me some solution.  thanks in advance :)


Different Applications of Sylow Theorems

The theorems of Sylow are very well known and almost every mathematician learns in his undergraduate course.  The applications of Sylow theorems given in books are of the kind      "If $|G|=....$ then show that $G$ is not simple/ $G$ is solvable/ ..."   I would like to know if there are some other, interesting, applications of this theorem.


How do I properly install a system app given its .apk?

I removed a system app (com.android.mms) and I have the .apk needed to restore it, however it won't install through the standard channels (running the .apk gives me "application not installed"). What's the proper way to install a system app's .apk?


How to hide "HOT META POSTS" on the sidebar

How do I hide just the "HOT META POSTS". I don't intend to engage much in the moderation of Stack Exchange sites, so most of the content is irrelevant to me, how do I hide it?  I looked into just adding a user style sheet filter based on the id or class of that element, but then the whole community-bulletin box gets hidden, which might hide important site level messages/broadcasts.   Specially since the DOM structure of the "HOT META POSTS" is not different than the "FEATURED ON META" section, i.e. both use same classes and no id is provided.


Different proofs of $\,a^n-b^n =(a-b)\sum_{i=0}^{n-1} a^i b^{n-1-i} $?

How many different proofs are there that $a^n-b^n =(a-b)\sum_{i=0}^{n-1} a^i b^{n-1-i} $ for positive integer $n$ and real $a, b$?  You can use any techniques you want. My proof just uses algebra, summation, and induction, but if you want to use invariant sheaves over covalent topologies, that is fine.  I decided that I would try to produce a proof by induction. I find it interesting that my proof shows that if it is true for $n-1$, then it is true for $n+1$. This means that two base cases have to be proven: $n=1$ and $n=2$. Fortunately, those are easy.  I am sure that my proof is known,  but I do not recall having seen it before.  Here is the induction step:  $\begin{array}\\ a^{n+1}-b^{n+1} &=a^{n+1}-a^nb+a^nb-b^{n+1}\\ &=a^{n+1}-a^nb +a^nb-ab^n +ab^n-b^{n+1}\\  &=(a-b)a^n +ab(a^{n-1}-b^{n-1}) +(a-b)b^n\\  &=(a-b)(a^n+b^n) +ab(a^{n-1}-b^{n-1}) \\  &=(a-b)(a^n+b^n) +ab((a-b)\sum_{i=0}^{n-2} a^i b^{n-2-i}) \ \  \text{(The induction hypothesis)} \\  &=(a-b)(a^n+b^n+ab\sum_{i=0}^{n-2} a^i b^{n-2-i}) \\  &=(a-b)(a^n+b^n+\sum_{i=0}^{n-2} a^{i+1} b^{n-1-i}) \\  &=(a-b)(a^n+b^n+\sum_{i=1}^{n-1} a^{i} b^{n-i}) \\  &=(a-b)\sum_{i=0}^{n} a^{i} b^{n-i} \\  \end{array} $


How to launch the default (native) application for a given file from Java?

I am displaying a list of files; i.e. xls, doc, pdf, odt etc., in my Java application (Eclipse RCP). When the user clicks on the file, I want to launch the appropriate  (according to what the OS thinks) native application, just like it happens in Windows Explorer or the Finder.  And while I am here: It would be nice to also display the same icons that Finder or Explorer use for the different file types.  Is there a library or Eclipse plugin for this?


Can the EF lenses of a Canon EOS film camera be used on an APS-C digital EOS camera?

I have lenses from a Canon EOS rebel Xs film camera: 28-80mm f/4-5.6 II (diameter 58mm) and a Sigma 100-300mm f/4.5-6.7. I am thinking to buy a Canon Digital 40D and use these lenses. Will those lenses be compatible with a digital camera?


Given that $p$ is a prime, and the sum of all positive divisors of $p^4$ is a perfect square, find the possible number of primes $p$ .  What I Tried: I know that the only divisors of $p^4$ will be $(1 , p , p^2 , p^3 , p^4)$ . From here I can conclude :- $$\rightarrow 1 + p + p^2 + p^3 + p^4 = k^2$$ For some positive integer $k$ . Now this is where I get stuck, I can write it as :- $$\rightarrow \frac{(1 - p^5)}{1 - p} = k^2$$ But I didn't understand how I can find all values of $p$. Next what I did is :- $$\rightarrow p(1 + p + p^2 + p^3) = (k + 1)(k - 1)$$ And I am stuck at the same problem. Can anyone help me here?


Possible to disable spell checking in OneNote for a specific page only?

In OneNote, I'd like to disable spell checking for a single page which is written in a fictional language and thus full of squiggly lines. I'd like to keep spell checking on for all other notebooks / pages.  Is that possible in OneNote 2013?


Show that aH and bH contain the same number of elements in G

Let G be a finite group and H a subgroup of G. Let a be an element of G and aH = {ah : h is an element of H} be a left coset of H. If B is an element of G as well show that aH and bH contain the same number of elements in G


As a moderator, how should I treat flags concerning my own activity?

So here's an example, a user disliked my comment.   Honestly I'd rather ignore this flag though marking it helpful, but I don't want to discuss here what it the best action in this particular case in general. All I wonder about is what should I do as a moderator. I mean:   Act just like I am acting usual, but this is strange because even the most honest judge in the world does not adjudicate himself. Ignore this flag to avoid the possibility of preconceived decision.


If two objects collide, will the collision force be twice as big as the original force?

Say, if we have two trucks travelling towards eachother at 60m/s, and those two trucks carry the same payload, and are the same model (aka they're exactly the same), will the collision force be as if just one truck crashed into a wall at 120m/s?  Theoretically the forces will balance each other out, but it won't always be this way.


I just wanted to point out that the hats feature is fixed on some pages while scrolling in the iPhone app.


Server crashed a few times due to lack of memory - how can I find out how much is available to each process?

We had a huge spike in traffic with lots of these errors:  Feb 17 10:44:13 111488 kernel: [8275767.506198] Out of memory: Kill process 20577 (apache2) score 52 or sacrifice child Feb 17 11:02:06 111488 kernel: [8276839.559141] Out of memory: Kill process 20719 (mysqld) score 75 or sacrifice child   As you can see, it's not just one process but both apache2 and mysqld, so I've increased the RAM on the server. How can I check that this is available to these processes?


I have been busy with other quests and have not talked with Wulfgar, but the guests say that he has to teach me the third Relentless Force word.  I went to High Hrothgar and saw that ancient writing in fire in front of Wulfgar on the floor and that there was a marker pointing to that and one marker pointing to Angeir.  However, when I go over to Angeir first, he says Wulfgar must first teach the third Relentless Force word, so I go over to the marker in front of Wulfgar, but it does nothing... I try to talk with him and he still does nothing. What am I actually supposed to do here?


Relative clauses: How do that-clauses differ from what-clauses?

Sometimes I can't see which clause fits the best. What "check-up" could be done to make sure which one is the right one?  For example,  1) He will do anything that is needed. or He will do anything what is needed.  2) They always ignore that is so obvious. or They always ignore what is so obvious.  3) All that I have is yours. or All what I have is yours.  My take is the correct ones are 1) that 2) that 3) what/that???  But I am not sure. I think it has to do something with different types or dependent clauses, but I don't know how to go about them in this case. Any suggestions?  Here is an interesting example  How do I know what I think, until I see what I say? VERSUS How do I know that I think, until I see what I say?  I think both are correct meaning two different things.


Can I change my Ubuntu Desktop into a different flavour (like Kubuntu)?

Can I convert Ubuntu into another form of Ubuntu like Kubuntu or Ubuntu Studio and the system recognize itself as the new form?  UPDATE: After getting an answer and talking with people, I managed to gain a lot of information on this topic. I then wrote an article about converting between Ubuntu systems -


custom admin screen or setting screen for a custom post type

I have this code for creating custom post type  add_action( 'init', 'create_sidebarone' );  function create_sidebarone() {     register_post_type( 'sidebarone',         array(             'labels' => array(                 'name' => 'Sidebar One',                 'singular_name' => 'sidebarone',                 'add_new' => 'Add New',                 'add_new_item' => 'Add Sidebar One',                 'edit' => 'Edit',                 'edit_item' => 'Edit Sidebar One',                 'new_item' => 'New Sidebar One',                 'view' => 'View',                 'view_item' => 'View Sidebar One',                 'search_items' => 'Search Sidebar One',                 'not_found' => 'No Sidebar One found',                 'not_found_in_trash' => 'No Sidebar One found in Trash',                 'parent' => 'Parent Sidebar One'             ),             'public' => true,             'menu_position' => 15,             'supports' => array( 'title', 'editor', 'comments', 'thumbnail' ),             'taxonomies' => array( '' ),             'menu_icon' => get_template_directory_uri() . '/images/ggicon.png',             'has_archive' => true         )     ); }   Now I want to achieve something to cater my needs, I want to create a custom admin screen or setting page for my custom post type, to be precise please refer to the image below:  This is the illustration of the custom post type that i've created from the code above   Now, I want to customize the admin screen or the setting screen of that post type, like the image below:   Now as you can see, the admin screen or the setting screen of that post type has been customize. (the second image is an assume of what im trying to achieve, image edited)  So far, what i tried is the post type base from the first image from the codes above. Anyone, im open in any suggestion, recommendations and idea's. Very much thank you in advance.


I must be missing something really obvious, but when in Nautilus, how do I create a new folder if the window is full of other folders/files?  Whenever I right click, only the context menu of a subfolder/file is given, as the window is full:


Jquery events not working with elements from append()

Currently, I am creating something that will simply allow me to create tasks, click them when they are done and swipe left to get rid of them. The problem I am having is that when the new tasks are appended, they are not affected by any of the JQuery events on in the script.  Tl;dr: appended divs are not affected by the below javascript, how can I fix this issue?

Tasks
      <form class="createTask">       <input type="text" class="createTaskInput" size="10" maxlength="25" placeholder="Type here to create your task..." //>     </form>

This is an example task
When you complete a task, click the red button
Should you want to remove a task, swipe left on the task.


Null pointer exception when recording samples through get.LineIn with Minim

Currently I'm learning Processing using the . Great book so far! But now I'm stuck with a tutorial in chapter 11: recording audio using the Minim library.   Using the code below, as explained in the book, I get a Null Pointer Exception when trying to record a sample by pressing left or right. I would love to know what's wrong here. I'm having trouble working it out. I'm sure it's something totally simple, but I just can't see it. There is some sample code to download for this chapter, but this particular sketch is not included.  Thanks for your help!   Here's the null pointer code (edited to include some lines that I did not include prior as they didn't seem to be causing the sketch to crash):  ==== JavaSound Minim Error ==== ==== Error obtaining new output stream:/Users/*edited full path*/soundboard/data/right.wav (No such file or directory)  ==== JavaSound Minim Error ==== ==== Error obtaining new output stream: /Users/*edited full path*/soundboard/data/left.wav (No such file or directory)  java.lang.NullPointerException  at ddf.minim.javasound.JSStreamingSampleRecorder.samples(JSStreamingSampleRecorder.java:177) at ddf.minim.SignalSplitter.samples(SignalSplitter.java:112) at ddf.minim.javasound.JSAudioOutput.run(JSAudioOutput.java:84)   And here's the code I'm using for the sketch:  import ddf.minim.*;  Minim minim; AudioInput mic; AudioRecorder left; AudioRecorder right; AudioSample Pright; AudioSample Pleft;  void setup(){   size(800,900);   minim = new Minim(this);   mic = minim.getLineIn();   right = minim.createRecorder(mic,"data/right.wav");   left = minim.createRecorder(mic, "data/left.wav"); };  void draw(){  };  void keyPressed(){    //begin left record   if(keyCode == LEFT){     if(left.isRecording()){       left.endRecord();       left.save();     }     else{       left.beginRecord();     };   };    //begin right record   if(keyCode == RIGHT){     if(right.isRecording()){       right.endRecord();       right.save();     }     else{       right.beginRecord();     };   };    //play the right sample   if(keyCode == UP){     Pright = minim.loadSample("right.wav");     Pright.trigger();   };    //play the left sample   if(keyCode == DOWN){     Pleft = minim.loadSample("left.wav");     Pleft.trigger();   };  };


How do I help my players stay engaged (with the game and each other) at the table?

I GM a long-running Pathfinder campaign, and for some time now I've been noticing our group fall into a familiar pattern of lethargy, where only one player engages with me at a time and the rest seem to sit aorund waiting for "their turn".  For example, last session the party tried to enter a city in the midst of a natural disaster, only to be detained in a jail while the town guard figures out what to do with them. There are any number of ways a party could handle an encounter like this, so I don't think I set them up in a place where they are particularly constrained - I didn't even take away any items except obviously displayed weapons. What happens is:   The barbarian takes the pillows they've been provided and starts punching them. After telling me this, that player goes back to playing a game on her computer. She occasionally checks back in to inform me that she's still tenderizing her pillows. The paladin writes a letter to some important person trying to talk his way out. When that doesn't work immediately, he builds a pillow fort and his player goes back to  The bard decides to start singing loudly in Dwarvish in an attempt to annoy his way out of jail. His player and I have a long back and forth in which several NPCs react to his singing, and finally they get out. Now that they're all out, the bard's player goes back to playing Diplomacy online. The cleric takes over, leading the group to where she encountered someone wounded earlier. She chats with some NPCs for a while. The group ends up at the waterfront. Each player takes turns separately checking with me to see about buying items.   By the time they've done all this, three hours of real-world time have passed and 90% of the session has been the PCs taking turns engaging the world one-on-one. As a player in that situation, my default would have been "I'm in situation A, I'd like to be in situation B. Does the rest of the party want situation B? If so, then let's formulate a plan to get out of here. If not, let's roleplay some intraparty conflict". But it seems like their default algorithm is "I have a vague sense that my character would do X, so I'm going to do 'X'. If I can't do X, I'll wait until the GM can pay attention to me".  I figure the first answer is going to be "have them put the computers away", and I agree that fewer distractions would force them to try and engage with the game even when they aren't in the spotlight. But they all use online character sheets and have been somewhat resistant to going full pen-and-paper.


Old Sci-fi story about a man trapped inside a giant female alien creature that uses him to fertilise herself

I'm looking for an old sci-fi story about large alien creatures that are immobile, building layers of hard shell around them. They use the planets mobile apex creatures (ape-like creatures) for fertilisation, bringing them inside their bodies and pressing them up against a surface that they bite and scratch at, which causes fertilisation, before the Mother creature digests them. I larremember part of the story being this creatures description of the layers she built around herself, using metals and minerals from the surrounding rocks. She also repositioned her stomach and other internal organs for better use, and there was a large canid type creature that managed to gouge it's way through her early shell, only to fall into and cook in her repositioned stomach. The first part of the story is told by the female, about her beginning and devolment (from memory) and then later a male and female human explorer come to the planet and are captured by these creatures. The male is kept within the mother for some time till he fertilises her and then she intended to digest him, but somehow they end up communicating and she keeps him around for company. He is there long enough to witness the birth of her babies and plays with and interacts with them inside her big spongy cavity where he lives. He tries to make her understand that the other human he was with was female, a mother herself, but the alien creature is greatly disturbed by this concept as the only "mothers" on the planet are the immobiles like herself. That's as far as I got through the story and would like to finish it, if only I could remember what it was. I keep thinking the term "mother" is relevant but can't find anything online about sci-fi stories with that title. Think it was originally something from my dad's collection that I read back in the 80's but he doesn't remember either.


If $I$ and $J$ are ideals in a ring $R$ with $1$ such that $I+J = R$, show that $I^m$ and $J^n$ are co-maximal for all $m,n \in \mathbb{N}$

If $I$ and $J$ are ideals in a ring $R$ with 1 which are  co-maximal, i.e $I+J = R$, show that $I^m$ and $J^n$ are co-maximal for all $m,n$ in $\mathbb{N}$  Work done:     Should I proceed using    By taking $$K=I^m+J^m \neq R$$  Let $$S=\{I,J \in R \mid I^m+J^n \neq R \}$$ be the required partially order set ordered by inclusion then  $$I+J \subseteq I^n+J \subseteq I^n+J^m \subseteq \ldots $$  Then, I think this chain doesn't have an upper bound...as $I^m+J^n \neq R$ for all $ m,n \in \mathbb N$. Am I right??  Thanks for any help!!