I changed permission of environment file in ubuntu and now it goes in infinite login loop

I changed permission of environment file in Ubuntu and now it goes in infinite login loop. When I try to login from terminal using Alt+Ctrl+F3 and try to open environment file, it is blank. Also when I try to open environment file using GEdit it shows gtk-warning ** :cannot open display


Solve the given differential equation by using Green's function method

I am really struggling with the concept and handling of the green's function. I have to solve the given differential equation using Green's function method $\frac{d^{2}y}{dx^{2}}+k^{2}y=\delta (x-x');y(0)=y(L)=0$


Evaluate an improper integral involving log

Studying for complex analysis, I stumbled upon this problem. Evaluate $$\int_{0}^{\infty} \frac{\log(1+x^2)}{1+x^2}~dx.$$ So the integrand suggests that I need to use the function $f(z)=\frac{\log 1+z^2}{1+z^2},$ which has two branch points and two simple poles at $z=i$ and $z=-i,$ which lead me to use a semi-circle contour in the right-halfplane having branch cuts at $i$ and $-i.$ But then the process become too lengthy. Is there any other method to go by doing the problem. I was thinking of making a substitution and reducing this to a form to use Gamma function, but wasn't successful. Any help is appreciated.


MPAndroidChart error, help would be much appreciated

I have never used MPAndroidChart before. I am just testing it out for a project I'm doing. What might be causing the null object reference error? The following code is below. java.lang.NullPointerException: Attempt to invoke virtual method 'void com.github.mikephil.charting.charts.LineChart.setScaleEnabled(boolean)' on a null object reference         at com.example.fishfindergraphicsnobtinputdata.MainActivity.onCreate(MainActivity.java:35)      public class MainActivity extends AppCompatActivity {     MyCanvas myCanvas;     String TAG;     Context context;     private LineChart lineChart;              @Override         protected void onCreate(Bundle savedInstanceState) {             super.onCreate(savedInstanceState);             myCanvas = new MyCanvas(this);             myCanvas.setBackgroundColor(Color.GRAY);             setContentView(myCanvas);             context = getApplicationContext();             Utils.init(context);             lineChart = findViewById(R.id.linechart);             lineChart.setScaleEnabled(false);             lineChart.setDragEnabled(true);                  ArrayList<Entry> dataset1 =  new ArrayList<>();             dataset1.add(new Entry(10, 10f));             dataset1.add(new Entry(30, 30f));             dataset1.add(new Entry(50, 50f));                  LineDataSet lineDataSet = new LineDataSet(dataset1, "linechart");                  ArrayList<ILineDataSet> dataSets = new ArrayList<>();             dataSets.add(lineDataSet);                  LineData data = new LineData(dataSets);                  lineChart.setData(data);              }  }


I have file1.txt    this is the original text   line2   line3   line4   happy hacking !     and file2.txt    this is the original text   line2   line4   happy hacking !   GNU is not UNIX     if I do: diff file1.txt file2.txt I get:    3d2   < line3   5a5   > GNU is not UNIX     How is the output generally interpreted? I think that < means removed but what do 3d2 or 5a5 mean?  If I do:    $ diff -u file1.txt file2.txt   --- file1.txt        2013-07-06 17:44:59.180000000 +0200   +++ file2.txt        2013-07-06 17:39:53.433000000 +0200   @@ -1,5 +1,5 @@    this is the original text    line2   -line3    line4    happy hacking !   +GNU is not UNIX     The results are clearer but what does @@ -1,5 +1,5 @@ mean?


What happened to warp drives destroying the universe?

I remember a TNG episode where some scientists said that warp drives were causing a lot of damage to subspace. At the end of the episode Star Fleet decided that warp speeds would be restricted to warp 5 except for emergency situations.   Of course the next episode they were cruising along at warp 7.   Is this ever mentioned again in Star Trek?


In reading through the release notes I was excited to discover the introduction of a new  tag. That should help lower the barriers to entry! However, the release notes do not specify what the name of the scoping class should be. And since , we're left guessing.  To be explicit about what I'm trying to understand, take  for example:  <apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">     <html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en">         <head>             ...             <apex:stylesheet value="{!URLFOR($Resource.REPLACE_WITH_NAME_OF_SLDS_STATIC_RESOURCE, 'assets/styles/salesforce-lightning-design-system-vf.min.css')}" />         </head>         <body>              <!-- REQUIRED SLDS WRAPPER -->             <div class="REPLACE_WITH_NAME_OF_CUSTOM_SCOPING_CLASS">             ...         </body>     </html> </apex:page>   If I replace the <apex:stylesheet> with <apex:slds>, what should I specify for REPLACE_WITH_NAME_OF_CUSTOM_SCOPING_CLASS?


I am done using my laptop but I am using the hotspot in my smart phone. So I want my laptop to be awake for next one hour. How can I Shutdown the laptop after one hour of time?


I'm currently a Calculus III student. I enjoy math a lot, but only when I understand its beauty and meaning. However, so many times I have no idea what it is I am learning about, althought I am still able to solve problems pertaining to those topics. I'm memorizing the sounds this language makes, but I dont understand them. I think a big reason why most children and teenagers really dread math over any other subject is because the only thing that is taught to them is equations and numbers, and to them is not being explained its significance. For if people really knew what it all meant, then they'd realize it's probably the most important think they should ever study. Even in college, at this relatively high level of math, they still do not preach its meaning, but rather scare you into cramming pages after pages of material so you can pass the next exam. When you have passed the exam, then it is safe for you to forget the material you just absorbed. This is the reason I often find myself bored of studying my current topics. For some things, I see the intuition behind it, and those are the things that keep me interested in calculus, but its often so hard to come up with a good meaning of what I'm learning all by myself.  It took mankind hundreds and thousands of years to come to where we are with math, so I dont expect to understand its true meaning in an hour, but I'd really like to. The school curriculum, here in America at least, doesnt teach meaning or utility. This is the reason so many youngsters always ask "when will we ever need to use this stuff?"-what a naive question this I learned to be. So I guess what I'm trying to say is that I've grown bored of this material, as we often cram 2 full sections of a topic in one day. Its impossible to keep up with its meaning, but if I am to survive this course along with more advanced courses to come, I must be able to understand its meaning. My textbook doesn't help me with this issue though- no math book can really teach intuition, but they dont even attempt to. They barely even go into the history of the current topic, and thats one of my favorite parts-I like to read about how a normal man came up with this theory that revolutionized the world. It makes math feel human to me, and that I too can understand it like men before me.   Most of the question answerers on this site are mathematicians, if not at least one in training. This means you have come to where you are by understanding what you have learned in the past. How have you done this? How have you been able to connect all the pieces? What are some good resources that will help in what I hope to do? How do I stop being a robot, and actually connect with what I'm learning?


How can I record a physics animation in the BGE

I made a bullet physics simulation in blender game where a bullet moves by use of key framing and collides with cell fractured objects.   The objects are two rectangles and I used game logic bricks to stop the simulation of the objects until the bullet reaches them. The simulation works fine when I press P, and it appears to be recording correctly, but when I try to press the play button underneath the timeline after I end the game it doesn't play what I just recorded.   It usually plays back the simulation as if the logic bricks were not being used (the cell fractured objects fall before the bullet reaches them). My goal is recording the animation and rendering it using Cycles.  My simulation is very similar to the .


Let $f:\mathbb{R}\to\mathbb{R}$ be a function that satisfies   $f(-x)=-f(x)$ $f(x+1)=f(x)+1$ $f\left(\frac1x\right)=\frac{f(x)}{x^2}$ for $x\neq0$.   Prove that $f(x)=x$.  I am even interested in the case where $f$ is continuous.  I found this question in my notebook from a while back and I hadn't written a solution then. I have no idea where to begin.  Any help would be appreciated!


Enumerate behaves differently with beamer 3.42

The following is produced by beamer version 3.41 with enumerate:  \documentclass{beamer} \mode<presentation>     {\usetheme{Rochester}} \begin{document} \begin{frame}   \begin{enumerate}[(a)]     \item Foo     \item Bar   \end{enumerate}   \begin{enumerate}[1]     \item Foo     \item Bar   \end{enumerate} \end{frame} \end{document}     And with beamer version 3.42 the following:    The latter output is so, well, ugly, that it's probably a bug. While waiting for a bug fix (?), how can I temporarily fix this so that I get the output produced by beamer 3.41?


I'm going for dual boot, using win 10 atm.  I followed all the steps on how to make a bootable USB stick from  : Create a USB Strick on Windows.  When i boot the USB, it gives me this menu   After I click enter on the first option (the one that is just saying 'Ubuntu') it goes to a black screen and goes to this   I am stuck at the last picture.  Thank you.


Method does not exist or incorrect signature...why?

I've got the following class:  public class PopulateHasChildAccount {  public Boolean checkForChildren(Account acct) {     List<Account> childAccounts = [Select Id                                    From Account                                    Where ParentId = :acct.Id];     if(childAccounts.size() > 0) {         return True;     }     else {         return False;     } } }   ...and the following Trigger:  trigger PopulateHasChildAccountTrigger on Account (after update, after delete, after undelete) {  if(Trigger.isUpdate) {     for(Account a : Trigger.new) {         Account oldParent = new Account(Id = Trigger.oldMap.get(a.Id).ParentId);         Account newParent = new Account(Id = Trigger.newMap.get(a.Id).ParentId);         Boolean hasOtherChildren = PopulateHasChildAccount.checkForChildren(oldParent);          //more code             }         }     } }    }   But I'm receiving the following error when trying to save the Trigger: "Method does not exist or incorrect signature: PopulateHasChildAccount.checkForChildren(Account)"  I don't understand why. The class is public, the method is public and the class is instantiated. I'm very new to coding in general and Apex specifically. I keep seeing resolutions for this error saying to make the method static...but then I get an error saying constructors can't be static. In any case, why would it need to be static if I'm instantiating the class that's being passed into the method? (I hope that made sense...I'm never really sure.)


In Win 10 update options, what exactly does “It can be deferred for this many days” mean?

In Windows 10, Settings > Update & Security > Windows Update > Advanced Options > Choose when updates are installed, there are these two options:  A feature update includes new capabilities and improvements. It can be deferred for this many days: [0-365] A quality update includes security improvements. It can be deferred for this many days: [0-30]  Screenshot: Phrasing it with “can” is confusing, so I want to know exactly what that number does. If an update is released to my channel on day d, and I've set those options to n days, will the update be ... pushed to me on day d+n? pushed to me sometime between d and d+n, inclusive, at MS's discretion? offered to me on d, but I'll be able to dismiss it until d+n? Something else? Note that  have instructions for setting these options, including  and . None of those clearly state what effect the numbers have, just that they “defer updates by this many days”.


Sum and difference of independent normal variables are independent?

If $X$ and $Y$ are independent random variables, both having the standard normal distribution, then are $X+Y$ and $X-Y$ also independent?  To show this, I was trying to get the joint CDF of $X+Y$ and $X-Y$ but didn't get far. I know they are individually normally distributed.


Where do you guys get the PPA's for installing new software

Whenever I want to download and install new software on my computer I have to go onto google and type "how to install etc etc" I'm just curious how you guys know the PPA's. Where do you get them?


I want to be able to move $oldfile to my backup folder and add the date to the file name. So I tried this...  mv $oldfile /home/u0146121/backupfiles/$oldfile_$(date +%F-%T)   This just gives me this output filename. (no orignal filename)  2013-07-11-10:22:25  Then I realized the potential problem for the above method. I have a while read loop that reads through a text file of path names for other files I wanted to compare. So for example, $oldfile is actually =    $ cat oldfiles.txt  /home/u0146121/OldLogFiles/file2.txt   So... I want to be able to move the file2.txt and just keep the file2.txt name and add the date to it as well.


Sci-fi book: portals appear in London and send a failed artist towards a designated path where he operates a giant superweapon

A few years ago I bought a book on my way to another country. I bought the book before the flight at an airport kiosk.   It was a sci-fi book about a failed London artist having a row with his brother over something minor - and then a series of portals appear all over London (and the world I imagine) that sends him towards a designated path.  That ends in the protagonist operating a giant superweapon.


Interesting property of finite integer sequence with sum 1

I ran into nice problem which I proved and would be thankful if anyone assess it.  Given a sequence of integers $x_1,  x_2, \dots, x_n$ whose sum is 1? prove that exactly one of the cyclic shifts  $$x_1,x_2,\dots, x_n; \quad x_2,\dots, x_n,x_1; \cdots  \quad x_n, x_1\dots, x_{n-1}$$ has all of his partial sums positive. (By a partial sum we mean the sum of the first $k$ terms, $k\leqslant n$.)  My solution: For $n=1$ we have a single-term sequence and it is obvious.  Assume that our proposition is true for $n$. We'll try to prove it for $n+1$.  Let we have the sequence $(x_1, x_2, \dots, x_n,x_{n+1})$ then $\exists \ i$ such that $x_i>0$.   If $1\leqslant i <n+1$ then consider the following sequence $(x_1, \dots,x_i+x_{i+1},\dots, x_{n+1})$ which has $n$ elements. Then using the assumption of induction we have that there is exactly one cyclic shift with desired property, And if we write $x_i, x_{i+1}$ instead of $x_i+x_{i+1}$ and since $x_i>0$ we get our desired sequence. If $i=n+1$, i.e. $x_{n+1}>0$ then replace the sequence $(x_1, x_2, \dots, x_n,x_{n+1})$ by $(x_2, \dots, x_n,x_{n+1}+x_1)$ which consists of $n$ terms. Then using the assumption of induction we get exactly one sequence with desired properties and separating $x_{n+1}+x_1$ to $x_{n+1}, x_1$ we get the sequence with $n+1$ elements since $x_{n+1}>0$.


A topological space is called a US-space provided that each convergent sequence has a unique limit.  A topological space is called $T_B$ if each compact subset is closed.  The bellow example show that $US$ space is not $T_B$ space.     Suppose X with the closed interval [0,1] ( with the usual topology) and attach a new point $z$ whose neighborhoods are open dense subsets of [0,1].[0,1] is a compact non closed subspace of X and thus X is not $T_B$ space. However no sequence in [0,1] converges to $z$ and in particular sequences in X have unique limits.    Why is it right "no sequence in [0,1] converges to $z$ and in particular sequences in X have unique limits"?


Let $X$ and $Y$ be independent random variables of exponential distribution with mean $1$. Find the mean of $Z=\min \{X,Y\}$.

Let $X$ and $Y$ be independent random variables of exponential distribution with mean $1$.  Another variable $Z$ is defined as $\min \{X,Y\}$. I need to find the mean of $Z$.  I only figured that $Z=x,Z=y$ with equal probabilty $0.5$, not sure what to do now.   Thanks in advance.


heres the issue- the image shown is in rendered mode and in material mode the background IS visible


Value not changing with JavaScript ternary operator?

I am attempting to change the value of an input into a different string, depending on if the inputed answer was "Yes" or "No". I have attempted to use ternary operators to clear up my code a little bit, but I keep getting original value ("Yes" or "No") instead of the value that the input should change into. I have the following code  function setYesNoValue(input, yes, no){   input = input == "Yes" ? yes : no; }; setYesNoValue(oneLInput, "517", "518");   The task I am attempting to perform works well when I use standard if else conditional statements, but I would like to implement this strategy to clear up the length code. Why isn't the value passed as the first argument changing when I reassign it?


Good evening. I am reviewing for an intro to Java exam and the instructor wrote a question I seem to be missing something.  Consider:   int[][] mat = new int[3][4]; for (int row = 0; row < mat.length; row++) { for(int col = 0; col < mat[0].length; col++) { if (row < col) mat[row][col] = 1; else if (row == col) mat[row][col] = 2; else mat[row][col] = 3; } }   What are the contents of mat after the code segment has been executed?  The selection of answers I won't bother to list specifically as I don't require a specific answer to this. I need to understand what is supposed to happen. I plugged into an IDE and I get a gibberish answer if I add a System.out.print(mat);  "[[I@139a55"  While the instructor is expecting a selection of integers in either a 3x4 or 4x3 array. No integers exceed 3.   Any illumination on this would be invaluable to helping me understand the relationship between the for loops and the array to be done.


I ran lsmod command on an emulator for a board, and the output is Not tainted . What does that mean ?


So, I was reviewing Suggested Edits on StackOverflow. I made a determination on one edit, and the next appeared. I immediately thought "wait--I wonder" and clicked my browser's back button to check something else regarding that review. I honestly don't remember what it was, but everything turned out fine. So I clicked the forward button on my browser to get back to the next suggested edit in line. And I got this:    This suggested edit is pretty clearly a review audit, and if you'll glance at the text inside the shiny red circle, you'll see that reloading the audit in the browser window generates the error:     This item is not reviewable.   When I proceeded onward to the next edit, I was not given another audit. Edits proceeded as normal.  The problem I see here is that it gives robo-reviewers a way to cheat the audit system. It would take them a little extra time, but it would be a 100% guarantee that they would never fail an audit. It's easy: load next review, click backspace key, load review again. If you see the error, hit next and repeat. If you don't, press approve and repeat.  So... Fix? :)  Update:   Huh... Further interesting is this. I still had the tab open, and I refreshed the page (I don't know why, I think some part of my brain was expecting a new review to appear, which of course didn't happen.) But upon refresh, I saw this:    That's right--someone else got my audit, and it tells me if they passed or failed it! Curiouser and curiouser.   Also, here's a , in case that helps anybody.


How to prove that $G(x)=ax+b$ is a one-to-one correspondence where $a\neq0$ and $a,b\in\mathbb{R}$.

$G(x) = ax + b$ where $a$ is not equal to $0$ and $b$ are real numbers.  Prove $G$ is a one-to-one correspondence.  I understand that for every $a$ there is a corresponding $b$-value that does not repeat; however, I do not understand how I can prove this.


Why are the right halves kept unchanged in Feistel networks?

As I'm going through the Feistel network in the DES algorithm.  While encryption uses a Feistel Network, the input block is divided into two halves left ($L$) and right half ($R$). In each round, the right half $R$ goes through unchanged. But the left part $L$ goes through an operation $F$.  I didn't understand why right halves is kept unchanged in a Feistel Network. Can anyone explain?


HDD indicator blinks when I run out of memory, but I have no swap configured

I'm running Arch Linux, with 8 GB memory and no swap defined.  Sometimes it ran out of memory, then my system get a little bit stuck, and I can see the HDD indicator blinking. Then I restart X, which kills a few memory consumer, and the issue gets solved.  But why would the HDD indicator blink? I have no swap defined / mounted  Maybe the Linux kernel is seeking free spaces with some algorithm? I couldn't find any details about that


Let $A \in M_5(\mathbb R)$ and $A^2-4A-I=0$,  moreover we consider $a_1$, $a_2$, $\ldots$ $a_5$ be eigen value of $A$, I gonna find  $(a_1-\frac{1}{a_1})+\ldots+(a_5-\frac{1}{a_5})$, while I have no idea how to proceed, any piece of advice would be much appreciated


Script does not empty trash containing .deb files

This script works with any file except .deb files? Anyone know why? #!/bin/bash find /home/andy/.local/share/Trash/expunged/ -type f -exec rm {} \; find /home/andy/.local/share/Trash/files/ -type f -exec rm {} \; find /home/andy/.local/share/Trash/info/ -type f -exec rm {} \; find /media/andy/MAXTOR_SDB2/.Trash-1000/files/ -type f -exec rm {} \;


Discovering interactions and transformations

I am teaching myself regression using Regression Modeling Strategies by Harell and the author goes at quite the length to showcase the importance of modeling interactions and transformations of the initial variables. I can't help but wonder how to approach this in a more structured/automated way when dealing with a lot of potential variables.   Can we use recursive partitioning, for example, to somehow to do the work for us and then use the output as variables, shrink the estimates with LASSO to deal with colinearity and do a final step where we use some sort of filtering for feature importance.   In my mind this will leave us with a well specified model which can be manually inspected and improved if need be, but is this reasonable? Are there other ways to approach this? Are there some resources that deal with problems like this?


I've met a "drinks cans" compound noun on .     See how food and drinks cans get recycled   As I know, there is a specific rule for the plural compound nouns that are made of two nouns. In this case the second noun takes an -s form and the first one acts like an adjective, so it cannot have the plural form. "Drinks cans" is not a typo, it is also pronounced this way in the video, so how can it be correct?


How far can/should one press philosophical doubt?

Should we keep on questioning until nothing is left to question or is there a point on which we need to stand (which we often tend to do)? Descartes used 'I think' as this fixed point where the skepticism abates, there may be others. But what is a rational way to find one, if any? How is this question addressed in modern philosophy?


So the full question goes as following:  Let $0<r<1$.   If $x>0$ or $-1\le x<0$, show that $(1+x)^r < (1+rx)$  I'm having a real hard time getting the idea of the usefullness of MVT. It seems every approach I take is faulty.  I don't know how to think. If I take $f'(c)$ for $0<c<x$ I get $(1+c)r -1 / c$ which I can conclude is larger than $0$,  which leads me nowhere.  Help is very appriciated!


have this class:   public static class Command {     public const string SET_STB_MEDIA_CTRL = "SET STB MEDIA CTRL ";     public static string ECHO = "ECHO";     public static string SET_CHANNEL = "SET CHANNEL ";     public static string GET_VOLUMN = "GET VOLUMN";     public static string GET_MAX_VOLUMN = "GET MAX VOLUMN ";     public string SET_STB_MEDIA_LIST = "SET STB MEDIA LIST "; }   then:   public static class MultimediaConstants {     public const string VIDEO = "video";     public const string AUDIO = "audio";     public const string PHOTO = "photo";     public const string ALL = "all";     public const string BACKGROUND_MUSIC = "background_music";     public const string TV = "tv";     public const string ACTION_PLAY = "play"; }   point is, that I would like to have something like this:   public static string SET_STB_MEDIA_CTRL (MultimediaConstants type,  MultimediaConstants action) {     return Command.SET_STB_MEDIA_CTRL + "type:" + type + "action:" + action; }   So the result of this method should be:    SET STB MEDIA CTRL type:tv action:play   The call of the method will be:    SET_STB_MEDIA_CTRL (MultimediaConstants.TV, MultimediaConstants.ACTION_PLAY);


How to install Ubuntu on a Chromebook 3?

I read that it's possible to install Ubuntu on a Samsung Chromebook, but I have a Samsung Chromebook 3 model code xe303c12-a01uk.  Could you please tell me where I can get the Ubuntu installation details for this model?  If I install Ubuntu is this going to make my life easier?


Integral defining expectation of $\chi^2$ distribution

If U has a $\chi^2$ distribution with v df, find E(U) and V(U).  By definition, $E(U) =\int^{\infty}_{0} u\frac{1}{\gamma(\frac{v}{2})2^\frac{v}{2}}u^{\frac{v}{2}-1} e^\frac{-u}{2}\,du  =\int^{\infty}_{0} \frac{1}{\gamma(\frac{v}{2})2^\frac{v}{2}}u^\frac{v}{2} e^\frac{-u}{2}\,du$.  How do I integrate this?  NOTE: I already know that this question has been asked originally however there were not steps on how to integrate it. Just a short hand solution. I would like someone to show me not only the steps but also what the do with the Gamma function as well.   Thanks!


How do I get the negative sign in the expression for Gravitational Potential Energy?

From universal law of gravitation, gravitational force exerted on a body of mass m by another body of mass M is                 $$ \mathbf F = \frac{GMm}{x^2}  $$ where x is the distance between the centres of both the objects.  So, work done by gravitational force in bringing the object of mass m from infinity to a distance r from the centre of body of mass M is           $$ W = \int_\infty^r \vec{F(x)}.\vec{dx}$$                   $$=\int_\infty^r \frac{GMm}{x^2}\hat x.\vec{dx}$$ (where $\hat x$ is the unit vector in the direction in which the body of mass M is attracting the body of mass m, i.e. the direction of $\vec{dx}$ which results the angle between both vectors $0$) $$ =\int_\infty^r \frac{GMm}{x^2} {dx}\ cos0$$  $$  = - GMm\left(\frac{1}{r}-\frac{1}{\infty}\right) $$ $$= -\frac{GMm}{r}$$  Now, we know that $$W=-(∆U)$$ $$-\frac{GMm}{r} = -(U_r - U_\infty)$$ $$-\frac{GMm}{r} = (U_\infty - U_r)$$ Since, Zero of potential energy is at infinity by convention, so $U_\infty$ = 0 $$-\frac{GMm}{r} = -U_r$$ $$\frac{GMm}{r} = U_r$$  I get potential energy at a distance r as positive, then why is it that gravitational potential energy is $$-\frac{GMm}{r}$$  What is wrong in my derivation?


Can anyone please explain why I'm getting a NullPointerException when I try to register a user and save his details to the database?  Here is the xml file, which just asks for the user's details  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical" >      <EditText         android:id="@+id/eT_R_userName"         android:layout_width="250dp"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:ems="10"         android:hint="User Name"         android:inputType="textPersonName" >          <requestFocus />     </EditText>      <EditText         android:id="@+id/eT_R_email"         android:layout_width="250dp"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:ems="10"         android:hint="Email"         android:inputType="textEmailAddress" />      <EditText         android:id="@+id/eT_R_password"         android:layout_width="250dp"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:ems="10"         android:hint="Password"         android:inputType="textPassword" />      <Button         android:id="@+id/btn_R_register"         android:layout_width="200dp"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:onClick="Login"         android:text="Register" />  </LinearLayout>   onClick Listener  Button btn_register = (Button)findViewById(R.id.btn_R_register);  btn_register.setOnClickListener(new View.OnClickListener()  {      @Override     public void onClick(View v)      {          //insert user profile data into database         final String Name = user_name.getText().toString();         final String Email = email.getText().toString();         final String Password = password.getText().toString();          //Debug         System.out.println(">>>onClick1---> Register User\nName: " + Name + "\nEmail: " + Email + "\nPassword: " + Password);          //Method         insert(Name, Email, Password);     } });   Method to insert data, the NullPointerException occurs here      public void insert(String Name, String Email, String Password)     {         //Debug         System.out.println(">>>Method---> insert user data into Database\n" + Name + "\n" + Email + "\n" + Password);          db.insertData(Name, Email, Password); }   The Database stuff looks like this  public static final String USER_ID = "email"; public static final String USER_NAME = "user_name"; public static final String PASSWORD = "password";  public static final String DATABASE_NAME = "molo.db"; public static final String DATABASE_TABLE = "user_profile"; private static final int DATABASE_VERSION = 1;  //SQL to create new database private static final String DATABASE_CREATE =          "create table " + DATABASE_TABLE +         " (" +         USER_ID + " text not null, " +         USER_NAME + " text not null, " +         PASSWORD + " text not null);";   and this  public void insertData(String user_ID, String user_Name, String Password) {     // Put these elements in the User Profile table     ContentValues element = new ContentValues();     element.put(com.example.molo.UserDB.USER_ID, user_ID);     element.put(com.example.molo.UserDB.USER_NAME, user_Name);     element.put(com.example.molo.UserDB.PASSWORD, Password);     database.insert(com.example.molo.UserDB.DATABASE_TABLE, null, element); }


There exists a formula for the $n$th term of this sequence  from the OEIS ("$n$ appears $n$ times") $$1, 2, 2, 3, 3, 3, 4, 4 ,4, 4, 5...$$ which is $$\left \lfloor \frac {1+\sqrt{1+8n}}{2} \right \rfloor.$$  Is there a better formula for the $n$th term? A formula that isn't a 'magic' one that just happens to work but one that comes from a well-founded observation. Preferably one not using the floor function. I also have suspicions about the sustainability of the above formula as I feel with very $n$ it may not function properly.


FX 50mm on DX sensor giving same picture as DX 50mm on DX sensor?

One of the lenses I have for my Nikon D3200 is the 50mm f/1.8 FX lens, which when placed on the DX sensor should act like a 75mm f/2.7.  On my Sony a6000, I have a 55-210mm f/4.5-6.3 lens made for the DX sensor.  However, when I take a carefully-framed picture with each camera and their respective lens, the Sony's FOV is narrower than the Nikon's.  Why?  Both are APS-C sensors, and the Sony is shooting at 50mm and the Nikon is shooting at [effectively] 75mm. The Nikon should be far more "zoomed in," but isn't.


Holomorphic function such that $f(\frac{1}{n})=\frac{1}{n+1}$.

Let $U$ be an open connected neighborhood of $0$ in $\Bbb{C}$ and $f$ a holomorphic function on $U$. The exercise is to prove that if $f(\frac{1}{n})=\frac{1}{n+1}$ for all $n\ge 1$ then $f(z)=\frac{z}{z+1}$ on $U$.  So I did it using the function $g:\Bbb{C} \setminus\{-1\}\to \Bbb{C}$ such that $g(z)=\frac{z}{1+z}$ so $g$ is holomorphic on $\Bbb{C} \setminus\{-1\}$, now as $U$ is open we can find a disc $D(0,r)\subset U$ for $r$ so that $r<1$. Therefore, using analytic continuation we have $f=g$ on $D(0,r)$. My main problem is now to prove that $U\subset\Bbb{C} \setminus\{-1\}$. Perhaps, I can say that if $-1\in U$ we can find a path from $0$ to $-1$ but not sure how can I continue.


ArcGIS: how to obtain an average elevation for grid squares superimposed on a DEM?

Given the DEM of a certain Country, and a fishnet that is superimposed on it, I need to compute the average elevation and slope corresponding to each square in the fishnet.  [I am using ArcGIS 10.3.1, licence type: Advanced.]  These are the DEM (shades of grey) and the fishnet (red):   The DEM is not a unique raster, but a handful of smaller maps. Their resolution is 10x10 km, whereas the fishnet squares are 2x2 km.  I tried to create a , and then I used Extract -> Clip from ArcToolbox using the DEM as input features and the fishnet as clip features. I thought this wouldhave produced a unique raster map, but I was wrong, and the result is essentially a grid with the DEM resolution (10x10 km) and a bunch of table attributes which do not refer to elevation.   The intended outcome was, instead, to get the average elevation and slope for each one of the smaller tiles in the fishnet.  What is it the best strategy to achieve this?


Closed form for series $\sum_{m=1}^{N}m^n\binom{N}{m}$

How can we calculate the series $$ I_N(n)=\sum_{m=1}^{N}m^n\binom{N}{m}? $$ with $n,N$ are integers.  The first three ones are $$ I_N(1)=N2^{N-1}; I_N(2)=N(N+1)2^{N-2}; I_N(3)=N^2(N+3)2^{N-3} $$


Client is using both local DNS server and router as DNS server

Setup in my home network: Router (brand "fritzbox") with a local DNS server (Pi with PiHole). The router not only provides the IP of the local DNS server but is also setup to connect itself to the PiHole instead to the default provider DNS. All clients but one are successfully connecting to the local DNS server PiHole. One client (windows 10 laptop with 2 user accounts) connects simultaneously both to the local DNS and to the router for DNS querys. The result is that the PiHole gets querys from two clients (router and laptop). It is really annoying, since PiHole has the option to black-/whitelist domains for different clients. If I blacklist something for the router (e.g. for the routers brand-specific vpn-connection) it is also blacklisted for the laptop. And the other way around. I cannot distinguish between laptop and router since requests from the client "router" can both mean router or laptop. In case you are wondering, this is the help page for the provider-dns-setting:  Fritzbox is a home router and seems to have no setting for blocking clients to request dns querys like that. Does anyone has an idea how I can force the laptop to use the local DNS server as every other client in the network instead of requesting through two connections simultaneously?


There's a new achievement and I'm stumped as to how to get it:     Start a game without breaking the laboratory wall   I assume it has something to do with the new Gadgets but none of them sound like they'd help. How do I get this achievement?


Any thoughts as to that for which I had not accounted here?  Looks like it returns 99.99999999999999  using ruby 2.3.1p112


I have this weird object (vascular tree) which is empty inside, but closed from the top and the bottom:  However, it is empty inside, which makes me unable to use boolean on a bigger object (I want to make a hole in an object through which this object will go through). So I thought I should fill it and then try to boolean. But, how do I fill it?  Thank you sincerely.


Automatic save of render image after finishing

Is it possible to have blender save the single image when it finishes rendering it? I dont want to wait until its done as I let it render during the night. Ideally, I would want the PC to turn off as well when finished rendering. Thank you in advance.


Can I create a device which will create silence?

Sound waves in opposite phases will cancel each other out.  Is it theoretically possible to create a device which will record the sound and output sound in opposite phase which will result in silencing someone.


Velocity of a falling body as a function of time AND mass

I'm working on a small java program, and I was wondering if there was an equation to calculate the approximate velocity of a falling body, in function to its mass $M$ and the time $t$ since the beginning of the fall (example; Body $A$ of a mass of 57kg has a velocity of $y$ after 11 seconds of fall) I googled it and the only equations I found were either in function of time or mass, but never both. Sorry if this comes out as a rudimentary question, I'm a computer science student, my last physics course was in high school.


Am looking for a tool that will import a line graph (chart) image and convert the line into numerical data, either in a spreadsheet or a database. For example, given an image like this:    It might prompt to find out what colour the line is (or the user clicks on part of it) and then it would do the rest, e.g. importing numbers into a column in an Excel workbook. Not too worried about it knowing the scale, just the changes - can easily rescale the data.  Does anyone know if such a tool already exists in any shape or form? If not, it's going down on my list of things to do if I ever have time...


I have to prove that  $$\lim_{n\to \infty} \frac {n^n} {n!}=\infty$$  I've tried to look for a lower bound that also converges to $\infty$ (I don't know if I'm explainig myself correctly), but I haven't found one yet. Applying L'Hôpital is way too complicated in $n!$, and the epsilon proof does not work as I have no way whatsoever of finding N.  Any ideas?


im frequently using the modifire stack and was wondering if theres is a function as listed below: I like to add several modifires to the stack as a kind of preset (known from e.g. obj export), so when I press the corresponding Listindex, it automatically adds the modifires with my custom set values to the stack. I dont want to apply them to the geometry nor do I want to add all the modifires after finishing my modelling work. This would increase the efficency for me dramatically since its quite annoying to add them for each object I generate. Example: Mirror (Y Axis, Clipping), Solidify (Offset, Thickness..), Bevel (Segments, Thickness, Limitation...), Subdivision (View 2, Render 3...) and so on (do that for eg 100 objects and you know how time intense that actually is -.-). Is there maybe a tool/addon/hidden function I dont know about? Or is it maybe better to do that with a custom script? (I dont really know about scripting, so I cant say whether this is even possible. Best regards


Why is polynomial regression considered a special case of multiple linear regression?

If polynomial regression models nonlinear relationships, how can it be considered a special case of multiple linear regression?  Wikipedia notes that "Although polynomial regression fits a nonlinear model to the data, as a statistical estimation problem it is linear, in the sense that the regression function $\mathbb{E}(y | x)$ is linear in the unknown parameters that are estimated from the data."  How is polynomial regression linear in the unknown parameters if the parameters are coefficients for terms with order $\ge$ 2?


Newly installed Ubuntu does not see other hard drive

I am entirely new to Ubuntu. I installed v14.04 LTS on the C drive of a functional PC which has a working D drive containing data. Ubuntu does not recognise it.  I have looked at similar requests for help but have not yet succeeded in solving the problem. My partitions search produced this:     11        0    1048575 sr0       11        1    1048575 sr1        8        0  312571224 sda        8        1  309686272 sda1        8        2          1 sda2        8        5    2882560 sda5   What does this tell me and what can I do, please?  The result of sudo fdisk -l was:  Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000c2ac6     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048   619374591   309686272   83  Linux /dev/sda2       619376638   625141759     2882561    5  Extended /dev/sda5       619376640   625141759     2882560   82  Linux swap / Solaris   SOLVED after a fashion. There was no power to the drive! Presumably dislodged by replacing case. Ubuntu did not read it when powered up, so loaded drive into a dock on a Windows PC, reformatted it, Ubuntu now reads it OK. Will soon have to ask a new question about how to create a home network sharing Ubuntu and Windows. If only instructions were clear for us oldies! Many thanks for your help on this one.


Is it okay to use the word "Negro" in a historical context?

In a few days, I have to do a class presentation project about the 1920s Harlem Renaissance.  I want to say that the movement's original name was the "New Negro Movement," but I'm not sure if that's okay. I'm white, and I really don't want to offend anybody in my class.  Is it all right to say this word in context? Or, should I ignore its original name, and only refer to it as the Harlem Renaissance?


What is the most user friendly IDE for HTML, CSS and JS on ubuntu? I have heard it said that programming on the Linux platform can be quite potent when creating server applications. Can you good people post your photos or screenshots of workspaces where any IDEs are used heavily. Thanks tons...


Different ways to come up with $1+2+3+\cdots +n=\frac{n(n+1)}{2}$

I am trying to compile a list of the different ways to come up with the closed form for the sum in the title. So far I have the famous Gauss story, the argument by counting doubletons, and using generating functions. Is there any other (significantly) different way to discover the closed form?  To clarify, Gauss's method was to take $1+2+3+\dots+n$, write it backwards, and add it up.


Does a program need to respond straight to the point or politely?

I have read "What is the recommended wording for a generic error message" and it's helpful, but doesn't address my main question:  What should I prefer in any written programm: The polite or the straight forward way if my program is interacting with the user (e.g. giving feedback to an action or pointing out that something does not work).    I wonder if it's better if the program responds straight to the point or politely.  Consider the following example: The user clicks a button to print something based on a template. However, the template does not exist.  Which feedback would you prefer:   The template is not defined yet. Please make sure to set the template before you print it out.  Make sure to configure the template before printing.    What is generally better?


Zombies - Why do they need to feed on living animals/humans?

It's something that's always bothered me. Especially now I'm watching The Walking Dead series. People die and turn into Zombies, from The Walking Dead we see that only part of the brain becomes active. Do they actually have a working digestive system and requirement for food or is it just impulse? If it's impulse... why?


My bike is locked to an indoor bike rack with a folding ABUS keyed bike lock. Today I couldn't turn the key to release the lock after work. No problem locking it in the morning.  Tried wiggling, banging, twisting and pulling on "link".  Any suggestions?


Why can't to-infinitive be used as subject in "Not to learn French is my biggest regret."?

E.g. 1 "Not learning French is my biggest regret." E.g. 2 "Not to learn French is my biggest regret." I know that e.g. 1 is correct and e.g. 2 is wrong, but what is the grammar rule making e.g. 2 incorrect? (At first I thought the rule was that you shouldn't use to-infinitive as the subject, but then I realized it couldn't be the rule as to-infinitive is sometimes used as the subject, as in "To tell the truth is always right.")


A problem of missing energy when charging a second capacitor

A capacitor is charged. It is then connected to an identical uncharged capacitor using superconducting wires. Each capacitor has 1/2 the charge as the original, so 1/4 the energy - so we only have 1/2 the energy we started with. What happened? my first thoughts were that the difference in energy is due to heat produced in the wire. It may be heat, or it may be that this is needed to keep equilibrium.


I wonder why adding vertical glue at the very top a page has no effect.  E.g. the following code produces a 2 inch vertical space before the second paragraph, but no space whatsoever before the first one.  \begin{document}  \vskip2in First paragraph.  \vskip2in Second paragraph.  \end{document}


How to correct flat shading on textured face with holes cutted?

I am modeling some furniture and got a problem with flat shading of a surface. I first draw a rectangle, where the texture and shade were OK. After cutting two holes though, the shading got weird. Could you help me with this issue?


How to scan a Mac for rootkits and other stealthy security hazards

I'm looking at buying a second-hand Mac, probably one that does not include an OS installation disk.  How can I scan it to make sure that it has not had security threats installed on it?  Is there a CD or DVD image I can boot it up with to perform this scan offline?  Edit: prospective machine would be a 2011- or 2012-vintage MacBook Pro.  Also note that I don't have reliable access to high-speed internet, so solutions that involve downloading 5GB over the Internet are not ideal.  For others, though,  may be helpful.


Any way to scroll browser or page w/ volume buttons?

I"m using Oreo on a Nexus 6p, and read online a lot. Is there any way without rooting that a web browser can scroll or page with the volume buttons?


Prove or disprove: If $a \in \mathbb{Z}$, $a > 0$, and $p$ is a prime such that $p^4 \mid a^3$, then $p^2 \mid a$.  I looked at the answers to the duplicate questions and I'm still confused. I can't even think of any counterexamples. Any tips on where to start?


Adding a custom .bst to TexMaker in Windows

In order to get the required bibliography style for my dissertation, unable to find a correct one, I used makebst to create a custom one. However, I find myself unable to use it, my program just says:  This is BibTex, Version0.99d (MiKTeX 2.9 64-bit)  The top-level auxiliary file: Doktorarbeit.aux I couldn't  open style file freiburg.bst ---line 26 of Doktorarbeit.aux:  \bibstyle{freiburg:}I'm skipping whatever remains of this  command I found no style file--while reading file Doktorarbeit.aux  (There where 2 error messages   I have googled a lot and have not found a correct explanation for my setup. I use Texmaker and Windows 7.


I have a problem with creating a simple pagination for the categories with WP_Query. I've got it to work for the archive, but if I try the same on the category template, then I get redirected to the landing page.  Here is my code for the archive when it is working.  <?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; $args = array(         'paged'           => $paged,         'posts_per_page'  => 1, );   $archquery = new WP_Query($args);     if ( $archquery->have_posts()) :       while ( $archquery->have_posts()) :         $archquery->the_post();       get_template_part('loop_first', get_post_format());     endwhile; endif; ?>  <?php if($archquery->max_num_pages>1){?>
     <?php       if ($paged > 1) { ?>         <a class="pag-alt" href="<?php echo '?paged=' . ($paged -1); //prev link ?>">Ältere Beiträge                         <?php }     for($i=1;$i<=$archquery->max_num_pages;$i++){?>         <a href="<?php echo '?paged=' . $i; ?>" <?php echo ($paged==$i)? 'class="selected"':'';?>>         <?php     }     if($paged < $archquery->max_num_pages){?>         <a class="pag-neu" href="<?php echo '?paged=' . ($paged + 1); //next link ?>">Neuere Beiträge     <?php } ?>
 <?php } ?>   This is the code for the category where it is not working  <?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; $args = array(         'paged'           => $paged,         'posts_per_page'  => 1, );   $catquery = new WP_Query($args);     if ( $catquery->have_posts()) :       while ( $catquery->have_posts()) :         $catquery->the_post();       get_template_part('loop_first', get_post_format());     endwhile; endif; ?>  <?php if($catquery->max_num_pages>1){?>
     <?php       if ($paged > 1) { ?>         <a class="pag-alt" href="<?php echo '?paged=' . ($paged -1); //prev link ?>">Ältere Beiträge                         <?php }     for($i=1;$i<=$catquery->max_num_pages;$i++){?>         <a href="<?php echo '?paged=' . $i; ?>" <?php echo ($paged==$i)? 'class="selected"':'';?>>         <?php     }     if($paged < $catquery->max_num_pages){?>         <a class="pag-neu" href="<?php echo '?paged=' . ($paged + 1); //next link ?>">Neuere Beiträge     <?php } ?>
 <?php } ?>   The only difference between them is that one is called $archquery and the other one $catquery


How can I run a script on keyboard power key press with systemd?

I have a power key on my keyboard, and I want to run a script when it's pressed.  I looked around and didn't found anything on this, for what I've seen, people always have been satisfied with what logind.conf is offering, here is the interesting part of man logind.conf:  HandlePowerKey=, HandleSuspendKey=, HandleHibernateKey=, HandleLidSwitch=, HandleLidSwitchDocked=        Controls how logind shall handle the system power and sleep keys and the lid switch to trigger actions such as system power-off or suspend. Can be one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", and "lock". If "ignore", logind will never handle these keys. If        "lock", all running sessions will be screen-locked; otherwise, the specified action will be taken in the respective event. Only input devices with the        "power-switch" udev tag will be watched for key/lid switch events.  HandlePowerKey= defaults to "poweroff".  HandleSuspendKey= and HandleLidSwitch= default to        "suspend".  HandleLidSwitchDocked= defaults to "ignore".  HandleHibernateKey= defaults to "hibernate". If the system is inserted in a docking station, or if        more than one display is connected, the action specified by HandleLidSwitchDocked= occurs; otherwise the HandleLidSwitch= action occurs.         A different application may disable logind's handling of system power and sleep keys and the lid switch by taking a low-level inhibitor lock        ("handle-power-key", "handle-suspend-key", "handle-hibernate-key", "handle-lid-switch"). This is most commonly used by graphical desktop environments to take        over suspend and hibernation handling, and to use their own configuration mechanisms. If a low-level inhibitor lock is taken, logind will not take any action        when that key or switch is triggered and the Handle*= settings are irrelevant.   I didn't managed to set bold text in code block (and didn't used quote block since it puts all in a single line and it then clearly unreadable), I then repeat the interesting part here:     Controls how logind shall handle the system power and sleep keys and the lid switch to trigger actions such as system power-off or suspend. Can be one of              "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", and "lock".   Or I am in the wrong way and this is just for keyboard keys, and not power button ?  In any case, previously, it was easy with acpi, one just had to replace the power_button script in /usr/lib/acpid/, isn't there something equivalent for systemd ?  Thanks.  PS:  suggested in comments does not answer my question, as I answered this is to manage power key from keyboard, not power button.


Somewhat new to Linux. Starting out to get into nitty gritty details. See a lot of ttys in /dev. What are they and what do they do? I do know that tty stands for teletype but nothing beyond that.


Evaluate $$\int_0^{+\infty}\frac{\log x}{1+e^x}\,dx.$$  I have tried using Feynman's Trick (in several ways, but for example by introducing a variable $a$ such that $I(a)=\int_0^{+\infty}\frac{\log ax}{1+e^x}\,dx$), but that doesn't seem to work. Also integration by parts and all kinds of substitutions make things worse (I have no idea how to substitute such that $\log$ and $\exp$ both become simpler.  (Source:  - Level 5/5)


Why is it NOT possible to "Follow" or "Friend" someone on Stack when it's a win-win-win for everyone?

(FYI, here are the guidelines on dups:  ) I know that this question has many duplicate versions. That in and of itself should be a reason to pay attention to it. My question is: Why is it NOT possible to follow somone on SE network sites when it is a win for the user, a win for the network, and a win for the advertisers? Pseudo-dup Questions: Q: Why is there no easy way to follow someone on Stack? A: "Stack is not a social networking site!" Yes. It is. We are here asking our peers for advice. GitHub isn't a social networking site either. I can follow people on there. I can look for a job on here. How much more of a 'Social Network' do you need when you can potentially gain a livelihood through peer contact? A: "There is an obscure RSS link!" Yes. There is. But I'm only on this site during Pomodoro breaks and on my iPhone app in the Uber on my way home. I just want a quick way to see what random bits of knowledge I can pick up from other users who I've seen give, or have had give, quality answers that have helped me. With the new ad revenue they plan to draw in, keeping people on the site longer by letting them be lured in to browsing other's posts seems a sure-fire way to increase revenue. Plus, as it's been mentioned dozens of times with THOUSANDS of combined views across those mentions, it's obviously something users are interested in. Heck, I've been learning a lot lately and I'm sure I could ask Stack for advice along the way: if you guys want, I could probably implement this for you. You can find my developer profile by following me on StackOverflow.....


VLC package dependencies cannot be resolved

When I try to install VLC media player this pops up:  The following packages have unmet dependencies:  vlc: Depends: vlc-nox (= 2.0.3-0ubuntu0.12.04.1) but 2.0.3-0ubuntu0.12.04.1 is to be installed      Depends: libavcodec-extra-53 (>= 4:0.8-1~) but 4:0.8.3ubuntu0.12.04.1 is to be installed      Depends: libavutil-extra-51 (>= 4:0.8-1~) but 4:0.8.3ubuntu0.12.04.1 is to be installed      Depends: libc6 (>= 2.15) but 2.15-0ubuntu10 is to be installed      Depends: libfreetype6 (>= 2.2.1) but 2.4.8-1ubuntu2 is to be installed      Depends: libgcc1 (>= 1:4.1.1) but 1:4.6.3-1ubuntu5 is to be installed      Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.1-0ubuntu4.2 is to be installed      Depends: libqtgui4 (>= 4:4.7.0~beta1) but 4:4.8.1-0ubuntu4.2 is to be installed      Depends: libstdc++6 (>= 4.6) but 4.6.3-1ubuntu5 is to be installed      Depends: libva-x11-1 (> 1.0.15~) but it is not going to be installed      Depends: libva1 (> 1.0.15~) but it is not going to be installed      Depends: libxcb-composite0 but it is not going to be installed      Depends: libxcb-randr0 (>= 1.1) but it is not going to be installed      Depends: libxcb-xv0 (>= 1.2) but it is not going to be installed      Depends: zlib1g (>= 1:1.2.3.3.dfsg) but 1:1.2.3.4.dfsg-3ubuntu4 is to be installed   Can someone please tell me what this means?  How can I get around it? (if possible)  P.S. I am also receiving similar pop ups when trying to install most programs.  I am using Ubuntu 12.04 64-bit.  Any help will be much appreciated.


How do I recover lost/inaccessible data from my storage device?

What steps can I take to try to recover lost or inaccessible data from any storage device?  Answers:   This applies to any computer storage device, e.g. internal/external hard drives, USB sticks, flash memory. The most important thing is to STOP using it, any type of I/O can ruin your chances of a recovery.     We have separate questions covering common problems with USB flash drives in greater detail:


Evaluate $\sum_{k = 0}^{n} {n\choose k} k^m$

So, I wonder what is the evaluation of $$\sum_{k = 0}^{n} {n\choose k} k^m\text{,}\qquad (*)$$ where $m,n\in \mathbb{N}$.  One of my tries: knowing that $$k^m = \sum_{j = 0}^{m}\text{S}(m,j)\cdot k(k-1)\cdots(k-j+1)\text{,}$$ where $\text{S}(m,k)$ are Stirling numbers of the second kind, and $$\sum_{k = 0}^n {n\choose k} k(k-1)\cdots(k-j+1) =2^{n-j}\cdot n(n-1)\cdots(n-j+1)\text{,}$$ I have rewritten the  upper sum into $$\sum_{k = 0}^{n}\sum_{j = 0}^m {n\choose k} \text{S}(m,j)\cdot k(k-1)\cdots(k-j+1)\text{.}$$ Changing the order of summation, we get $$\sum_{j = 0}^{m}\text{S}(m,j) \cdot 2^{n-j}\cdot n(n-1)\cdots (n-j+1)\text{,}$$ and here it stops.


I read  about voltage dividing. Let's look at this image for the discussion:  Ok so we have 2 resistors in the circuit, and Vout is of lower voltage. But I don't understand - voltage is always a difference between two points.  So, with respect to what point is Vout has a lower voltage? If you say with respect to ground - then, why in  it says:  Keep in mind not to use a voltage divider to reduce the voltage to supply a device or load because you have to remember that an external device will result in a parallel circuit with R2.  So actually if you take Vout, connect it to the + terminal of a device, and the - terminal to GND, the voltage of this circuit will be dependent on the resistance of the device. So what is this arrangement of voltage dividing good for? I'm actually asking this because I want to supply my ESP8266 with power from a 9V battery, so I thought of using resistors to divide the voltage. But for this, I need to know the resistance of my ESP8266, which is not shown in the datasheet.


Let $R$ be a ring, $S$ be a subring of $R$ and $x$ be an invertible element of $R$. I am trying to show all elements in the intersection of the two subrings generated by  $x$ and its inverse (with $S$) is integral over $S$. I am considering if the $S$-module is closed under multiplication by $y$, then anything raised by its power is in $M$. Then perhaps forming some polynomials $f(x)$ and $g(1/x)$ would be a good start here but I am not sure how to proceed..Say let $F=a_nX^n +..+ a_0, G=b_mX^m+..+b_0$ ?


What is the equivalent of the :: of PHP in Python?

I've been reading the PHP documentation about :: and its definition is "a token that allows access to static elements, constants, and override properties or methods of a class.",in simpler terms it is used to overwrite,access methods or properties,that's that's what i understand an example of this would be: Example 1: PHP  <?php class MyClass {     const CONST_VALUE = 'A constant value'; }  $classname = 'MyClass'; echo $classname::CONST_VALUE; // A partir de PHP 5.3.0  echo MyClass::CONST_VALUE; ?>  Python   class MyClass:     CONST_VALUE= "A constant value"  classname=MyClass()     print(classname.CONST_VALUE)     print(MyClass.CONST_VALUE)  Example 2: PHP  <?php class OtherClass extends MyClass {     public static $my_static = 'static variable';      public static function doubleColon() {         echo parent::CONST_VALUE . "\n";         echo self::$my_static . "\n";     } }  $classname = 'OtherClass'; $classname::doubleColon(); // Since PHP 5.3.0  OtherClass::doubleColon();  ?>   Python class OtherClass(MyClass):    my_static = 'static variable'     def doubleColon(self):         print( self.CONST_VALUE)         print( self.my_static)  classname = OtherClass() print(classname.doubleColon()) #This print None print(OtherClass.doubleColon(classname)) #This print None    Example 3: PHP <?php class MyClass {     protected function myFunc() {         echo "MyClass::myFunc()\n";     } }  class OtherClass extends MyClass {     public function myFunc()     {         parent::myFunc();         echo "OtherClass::myFunc()\n";     } }  $class = new OtherClass(); $class->myFunc(); ?>  python  class MyClass:     def myFunc(self):          print("MyClass.myFunc()")       class OtherClass(MyClass):     def myFunc(self):         super().myFunc()         print ("OtherClass.myFunc()")  classname = OtherClass() classname.myFunc()  The codes in python totally correspond to those of PHP? If I am wrong or can change something please let me know. Based on example 3 because they use -> and not ::, I hope you can help me


After the release of the Halloween Update for Clash of Clans, I noticed a new trap (the Skeleton Trap) had been created. The cost to upgrade them is pretty expensive (600,000 gold is insane), so is there any information regarding the duration of the Skeleton Trap?


While my question applies to Jenkins (software) which was named after Jenkins named meant to evoke a feel of English butler, there is a historical precent:    Wikipedia article has Jenkins' in the title and Jenkins's in reference to historical book.  However modern grammar rules seem to imply that correct possessive form in modern English would be Jenkins'es.  So what is correct? Or are several options acceptable?


Difference between postfix and prefix increment of stl iterators?

Let us take:   x = list<int>::iterator y = list<int>::const_iterator z = vector<int>::iterator t = vector<int>::const_iterator   Is there any difference between:   ++x and x++? ++y and y++? ++z and z++? ++t and t++?


I am using python3.9 and trying to calculate the following: 17.36-14.76. It is a pretty easy calculation and the output should be 2.6 without any other additional digits. However, in python3.9 I get the following output: >>> 17.36-14.76 2.5999999999999996  I know, I can round the result to get the desired output. However, I don't understand why it calculates it in a weird manner because 17.36-14.76 IS NOT 2.5999999999999996, 17.36-14.76 is 2.6. Are there some weird settings python?


What are the reasons for Nova's triple tap to reset to full cooldown?

I've had few instances where my triple tap was aborted and the cooldown reset to 100 seconds. I couldn't find out why. What are ways the triple tap can be aborted?


Does your lost health transfer to your new form while wild shaping?

In the middle of a battle, whilst I'm wild shaped into a brown bear, I take 20 damage and drop to 14hp. I then wildshape into a dire wolf form. Does the damage carry over to my wolf form, or am I at full health again in wolf form?  It's very confusing to my players and me since it doesnt say in the PHB.


"Contact us" form submission best practice

As a user, when I submit a "Contact us" form with [valid] info, should the page response show in the form (clear the form and show some "We have received your message" type of success message, either at the top or bottom of the form, or should they simply be redirected to another page showing the success message?


New Yorker Dieresis Rule; prosaic, unionized?

There are lots of informal references to the traditional / "New Yorker" style of using diereses to disambiguate runs of vowels, however I have yet to find a definitive guide. See, for example:      My major question is: Is there a definitive reference that one can consult for proper traditional use of the dieresis in English? The accepted answer in last link above outlines some cases (e.g., no dieresis in "coalesce" or "react") but notably does not provide a reference to an authoritative source. My minor questions are:  Is it appropriate to use a dieresis in "prosaïc?"  How does one most correctly differentiate the two words spelled "unionized" ("union-ized" about the formation of a group or "un-ionized" about how many free electrons a material has)? Assume for a moment that you have to write both within the same document.


How to keep a constant baselineskip when using minipages (or \parboxes)?

When a minipage is used to box a text paragraph, the first line of the minipaged text and the last line of the previous text paragraph are closer than two consecutive lines in a standard text paragraph; analogously, the last line of text inside the minipage and the first line of text after the minipage are also closer.  The following MWE illustrates this:  \documentclass{article} \usepackage{lipsum}  \newcommand\Text{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.\textbullet}  \begin{document}  \Text  \noindent\begin{minipage}{\linewidth} \Text \end{minipage}  \Text  \end{document}   How can I guarantee a constant baseline-skip even if minipages (or \parboxes) are used?


Proving $f$ has at least one zero inside unit disk

Let $f$ be a non-constant and analytic on a neighborhood of closure of the unit disk such that $|f(z)|=\text{constant}$ for $|z|=1$. Prove $f$ has at least one zero inside unit disk.  I thought of using Rouche's somehow. Using $f(z)-z$, and taking constant is less than $1$, I can actually conclude from Rouche's theorem that the equation $f(z)-z=0$ have a fixed point inside the unit disk. I am stuck for other constants greater than equals to one and exactly zero. I hope there should be a little trick I am missing here. It will be awesome to see if maximum principle can be applied to conclude the result.


A few months ago, I bought a Dell Linux laptop with Ubuntu 14.04 LTS pre-installed with all drivers installed. So when dist updates came all my drivers were gone. So i factory reset it and it is back to original again. I was thinking of upgrading to Ubuntu 18.04 LTS. But in doing so I will lose my drivers.  Can I upgrade to 18.04 without changing my kernel? Or can I extract drivers from my kernel? Also, after I factory resetted my laptop my Bluetooth stopped working. I have factory resetted my laptop almost 5 times. At the very beginning, i.e. after my purchase, the bluetooth was working. Since the time I factory reset it stopped working. But one time when after getting dist updates my bluetooth again started working.


I found the code that is blocking the home button and I did want to try it, but when I run it nothing happens, even my layout doesn't show  and also I have an error when I go to the home screen (see below the code). What do I do wrong?  public  class LockActivity extends Activity{     private LockscreenUtils mLockscreenUtils;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);             setContentView(R.layout.layout_lock);             lockHomeButton();          }         public void unLockHomeButton() {             mLockscreenUtils.unlock();         }         public void lockHomeButton() {              mLockscreenUtils.lock(LockActivity.this);         }  }   This is where I block the home button:  public class LockscreenUtils {     private OverlayDialog mOverlayDialog;      public void lock(Activity activity) {         if (mOverlayDialog == null) {             mOverlayDialog = new OverlayDialog(activity);             mOverlayDialog.show();         }     }      public void unlock() {         if (mOverlayDialog != null) {             mOverlayDialog.dismiss();             mOverlayDialog = null;         }     }      private static class OverlayDialog extends AlertDialog {          public OverlayDialog(Activity activity) {             super(activity, R.style.OverlayDialog);             WindowManager.LayoutParams params = getWindow().getAttributes();             params.type = TYPE_SYSTEM_ERROR;             params.dimAmount = 0.0F; // transparent             params.width = 0;             params.height = 0;             params.gravity = Gravity.BOTTOM;             getWindow().setAttributes(params);             getWindow().setFlags(FLAG_SHOW_WHEN_LOCKED | FLAG_NOT_TOUCH_MODAL, 0xffffff);             setOwnerActivity(activity);             setCancelable(false);         }          public final boolean dispatchTouchEvent(MotionEvent motionevent) {             return true;         }          protected final void onCreate(Bundle bundle) {             super.onCreate(bundle);             FrameLayout framelayout = new FrameLayout(getContext());             framelayout.setBackgroundColor(0);             setContentView(framelayout);         }     } }   These are the errors that I have:  Caused by: java.lang.NullPointerException             at com.example.amadey.pre_final_version.LockActivity.lockHomeButton(LockActivity.java:46)             at com.example.amadey.pre_final_version.LockActivity.onCreate(LockActivity.java:31)             at android.app.Activity.performCreate(Activity.java:5231)             at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)             at android.app.ActivityThread.access$800(ActivityThread.java:135)             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)             at android.os.Handler.dispatchMessage(Handler.java:102)             at android.os.Looper.loop(Looper.java:136)             at android.app.ActivityThread.main(ActivityThread.java:5001)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:515)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)             at dalvik.system.NativeStart.main(Native Method)


"Files  is ready" prompt on Ubuntu 18.04

Every time I open a folder from the desktop, a prompt is shown that the said folder is opened. How do I stop that?


My understanding of x:Name vs Name is that some controls have a Name property, that is basically the same as setting x:Name.  Is there an advantage to using Name when it is available over x:Name?  Here's my  for understanding x:Name vs Name.


Will higher temperatures damage a computer over time, even when not reaching max?

Will higher temperatures damage a computer over time, even when not reaching the maximum temperature? For example, if the maximum is 105 degrees celcius, will the computer break faster when continually having it on 80 degrees celsius instead of, for example, 60 degrees celcius.


import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JButton; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JTextField; public class autos extends JPanel implements ActionListener {     private static final long serialVersionUID = 1L;     String get;     int logic = 0, b;     JFrame frame = new JFrame("Tic Tac Toe");     JTextField text = new JTextField(1);     public autos() {         JButton button = new JButton("LOAD");         add(button);         add(text);         setLayout(null);         button.setBounds(70, 70, 80, 40);         text.setBounds(140, 140, 20, 20);         text.addActionListener(this);         if (duvoi.equals("x")) logic = 1;         else if (get.equals("0")) logic = 2;         else logic = 0;     }     public void paint(Graphics g) {         super.paint(g);         if (logic == 1)          g.drawString("You entered x", 200, 100);         else if (logic == 2)          g.drawString("You entered", 200, 100);         else b = 23;         repaint();     }     public static void main(String[] args) {         JFrame frame = new JFrame();         frame.getContentPane().add(new autos());         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         frame.setSize(400, 400);         frame.setVisible(true);     }     @Override     public void actionPerformed(ActionEvent e) {         get = text.getText();     } }   When I try to run the code,I get these errors:       Exception in thread "main" java.lang.NullPointerException       at   autos.(autos.java:27)         at autos.main(autos.java:48)   I am using eclipse.Why do these errors appear and what can I do to get rid of them?


I have a list where I add rows with Add button using Jquery. Now I also want to remove the dynamically added rows so I created a delete button dynamically along with the rows too but that delete button is not working.

                 Quantity:
                        <input type="text" class="form-control" placeholder="Quantity" name="quantity"  />

Add Quantity

     the jquery that appends a similar row in the list along with a remove button  $("#addQty").click(function () {                  $("#quantityTable").append("
 "+                                       "
 "+                                     "
"+                                     "<input type=\"text\" class=\"form-control\" "+                                     "placeholder=\"Quantity\" name=\"quantity\"  />

 "+                                     "
"+                                     "
 "+                                     "Remove Quantity

");             }             );   Now when I click on the remove button I need to remove that particular row  $("#rmvQty").on("click", function () {                 console.log("as");             });   Firstly the jquery for remove is not working and secondly how do I remove the row that was clicked on.  EDIT : my solution  $("#quantityTable").on("click", function (e) {                 if(e.target.id == "rmvQty" ){                      e.target.parentNode.parentNode.remove();                 }             });


iPhone 6s ios 12.3 general settings restrictions

Good day, My “restrictions” folder in “general “ unable to access) It’s disappeared in “general “ settings. In search I can see  search result as “restrictions” but unable to access this search result. Is it connected with update 12.3??? Symbol E appeared in music. I’m not sure regarding this symbol during usage 12.2. And my friend with 12.2 now has normal access to “restrictions” folder in “general” settings.


Log file filled disked. Removed log file and disk still full

Somehow my work-in-progress Python server filled the rootfs partition by logging 50gb of data to /tmp/blabla.log, which I noticed by basic commands failing like this: root@server:/# crontab -e /tmp/crontab.FfvjqH: No space left on device  So, I did rm -rf /tmp/blabla.log and the file disappeared, cannot be seen with ls or tail... but the insufficient space errors persist.  df -h still reports that rootfs is 100% used and does not reflect that I removed the 50gb file.  I could free some more space by moving some files to another parition and the system is OK but I don't have my 50gb of free space back.  What could be the problem?    my own answer: After moving some 3gb of files from the rootfs partition, I dared to restart the server, at the risk of having the server nog restart due to disk-space problems, but luckily it rebooted successfully and after reboot df -h reported the correct amount of free space. So system reboot seemed to be the answer.


I was married before and had 3 children.  My wife and I got divorced and have since remarried other people. My new wife and I had a son together and my ex wife and her new husband  had a son. These two young boys will be only related by their older siblings. Is there a name for what they are? I've searched the web but cannot find a term


Hyphenation of "-goer" as a suffix (conflicting suggestions)

“-goer” is labelled as a suffix by the Cambridge dictionary () (UK and US English). In particular, the example it uses is “moviegoer”.   Merriam-Webster doesn’t return a result for “-goer” – instead, the query returns with the verb “go”.   Google Dictionary (yes, I know – not to best source), says both forms (hyphenated and unhyphenated) are correct. For instance:   churchgoer or church-goer  moviegoer or movie-goer   I can’t find any explanation, apart from an unanswered forum post, on the Chicago Manual of Style website regarding this question. I found a tweet by the AP Style Book (struggling to find the link) that says no hyphen should be used with “-goer”.  What makes it more confusing is that certain “-goer” compounds (unhyphenated) in MS Word are marked as spelling mistakes when others are not.  What is considered best practice when you’re trying to construct a “-goer” compound when the noun is not usually used with such a construction? For instance:   seagoer / sea-goer (unhyphenated is incorrect in MS Word) restaurantgoer / restaurant-goer (unhyphenated is incorrect in MS Word)   Additionally, is it correct in any situation to write “goer” without a hyphen (for example, “theater goer”)?


The following dialogue is from Arrow:     I lose myself in him.   I guess it's supposed to be a romantic line. But what does this actually mean? Does this mean the person forgets his/her own identity when she is around the character she is talking about ?


Is it possible to focus the radiation from a black body to make something hotter than that black body?

My  wasn't specific enough. I'll try to be more specific.  Let's imagine we have a hot body let's say 6000K hot that emits lots of thermal radiation. Let's assume 1kW of radiative power falls on on a m². Now if we use a lens with 1m² area, we can focus this 1kW into a smaller area which heats up until it radiates back the incoming power.   Now by using a lens with a smaller focal length, the image of the hot body can be smaller. So we can concentrate the radiation into a smaller area. The smaller the area you concentrate the power, the hotter that area becomes isn't it?   But I read in lot of places that this hot spot cannot be hotter than the body that that provides the energy, so in our example it cannot be hotter than 6000K, because it would violate the laws of thermodynamics. So what happens if you keep decreasing the focal length and size of the image? Maybe you cannot shrink the hot spot smaller than some size due to the wave interference and diffraction, thus ensuring this constraint?


How to list all the three-letter files in /etc that start with s? would it be ls -d /etc/s* or ls -d /etc/s%% since all the three-letter files is what I'm looking for. edit* ls -d /etc/s?? would the ?? represent the other two letters followed by 's' Thank you


I have a VPS with ubuntu linux on it.  $ ssh ghopper@XXX.XXX.XXX.XXX ghopper@XXX.XXX.XXX.XXX password:  Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-134-generic x86_64)   * Documentation:  https://help.ubuntu.com  * Management:     https://landscape.canonical.com  * Support:        https://ubuntu.com/advantage New release '18.04.1 LTS' available. Run 'do-release-upgrade' to upgrade to it.  Last login: Wed Sep 19 16:52:58 2018 from 178.140.210.120 ghopper@114744:~$ env  LC_PAPER=ru_RU.UTF-8 XDG_SESSION_ID=409 LC_ADDRESS=ru_RU.UTF-8 LC_MONETARY=ru_RU.UTF-8 TERM=xterm-256color SHELL=/bin/bash SSH_CLIENT=XXX.XXX.XXX.XXX 51616 22 LC_NUMERIC=ru_RU.UTF-8 SSH_TTY=/dev/pts/0 USER=ghopper LC_TELEPHONE=ru_RU.UTF-8 MAIL=/var/mail/ghopper PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games LC_IDENTIFICATION=ru_RU.UTF-8 PWD=/home/ghopper LANG=en_US.UTF-8 LC_MEASUREMENT=ru_RU.UTF-8 SHLVL=1 HOME=/home/ghopper LOGNAME=ghopper SSH_CONNECTION=XXX.XXX.XXX.XXX 51616 XXX.XXX.XXX.XXX 22 XDG_RUNTIME_DIR=/run/user/1000 LC_TIME=ru_RU.UTF-8 LC_NAME=ru_RU.UTF-8 _=/usr/bin/env ghopper@114744:~$ tail -n 16 ~/.bashrc function color_my_prompt {     local __user_and_host="\[\033[01;32m\]\u@\h"     local __cur_location="\[\033[01;34m\]\w"     local __git_branch_color="\[\033[31m\]"     local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E  s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'     local __prompt_tail="\[\033[35m\]$"     local __last_color="\[\033[00m\]"     export PS1="$__user_and_host $__cur_location $__git_branch_color$__git_branch$__prompt_tail$__last_color " } color_my_prompt  export IGNOREEOF=10  export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8   The problem is that there aren't colors in the terminal. At all!  But, after I run /bin/bash they appears.  ghopper@114744:~$ /bin/bash ghopper@114744 ~ $ env LC_PAPER=ru_RU.UTF-8 LC_ADDRESS=ru_RU.UTF-8 XDG_SESSION_ID=409 LC_MONETARY=ru_RU.UTF-8 SHELL=/bin/bash TERM=xterm-256color IGNOREEOF=10 SSH_CLIENT=XXX.XXX.XXX.XXX 51616 22 LC_NUMERIC=ru_RU.UTF-8 SSH_TTY=/dev/pts/0 LC_ALL=en_US.UTF-8 USER=ghopper LS_COLORS=rs=0:di=01;34:ln=01;36:m ... 0;36:*.xspf=00;36: LC_TELEPHONE=ru_RU.UTF-8 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games MAIL=/var/mail/ghopper LC_IDENTIFICATION=ru_RU.UTF-8 PWD=/home/ghopper LANG=en_US.UTF-8 LC_MEASUREMENT=ru_RU.UTF-8 PS1=\[\033[01;32m\]\u@\h \[\033[01;34m\]\w \[\033[31m\]`git branch 2> /dev/null | grep -e ^* | sed -E  s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\[\033[35m\]$\[\033[00m\]  HOME=/home/ghopper SHLVL=2 LOGNAME=ghopper LC_CTYPE=en_US.UTF-8 SSH_CONNECTION=XXX.XXX.XXX.XXX 51616 XXX.XXX.XXX.XXX LESSOPEN=| /usr/bin/lesspipe %s XDG_RUNTIME_DIR=/run/user/1000 LESSCLOSE=/usr/bin/lesspipe %s %s LC_TIME=ru_RU.UTF-8 LC_NAME=ru_RU.UTF-8 _=/usr/bin/env   How can I get colored terminal by default?


I wanna ask you ,  do you have a solution for this question (if statement) or where is the error ?   String z = input.nextLine() ;  //i want from the user value of z  . if (z ==( "Y" || "y" ))  {       statement ...  }      else if (z==("N" || "n" ))     {       statement ...  }   How to write a condition for if when the condition of String in Java  ?


Were women allowed to become Imperial Stormtroopers?

It occurred to me that  in The Force Awakens is the first time we see a female Stormtrooper in any of the main films.  The original Republic (and later Empire) clone-troopers are all clones of Jango Fett, and therefore male.  During the time of Palpatine's Empire (roughly, between the end of Episode III to the end of VI), were women permitted to become Imperial Stormtroopers? Did any actually do so?


Why hasn't Captain America been promoted?

Considering that he's performed exceptionally for many years, has proven leadership capabilities and is highly intelligent, why haven't they given him a higher rank?


Updating from such repository can't be done securely, and is therefore disabled by default

I'm trying to install Wacom Tablet Drivers on Ubuntu 18.04, Code:   sudo add-apt-repository ppa:doctormo/wacom-plus   However, I keep getting the error:   E: The repository 'http://ppa.launchpad.net/doctormo/wacom-plus/ubuntu bionic Release' does not have a Release file.  N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details`   I have tried --allow-unauthenticated But it doesn't work. I also have deleted the Docker repository, as Raffa said in comments. Still no dice. Does anyone know any fixes? Thanks!


I have Ubuntu-14.04 installed. How do i install Windows 7 on a separate partition?

How do I use efuse? I have never dual booted Ubuntu This is a new laptop with only one program installed.


When subdividing I get a giant crease down the middle of my models face. I'm relatively new to 3D modeling and would appreciate any help that is given. I have a mirror modifier and subdivision modifier on. I'm not sure what other information I would need to give. If more information is needed please let me know. Thank you for anyone that helps. This is when the model isn't subdivided.  this is when it's subdivided


How to customize the ubuntu gnome 3 desktop?

This is maybe a stupid question, but how can I choose my own background image on ubuntu gnome 3?? I click on Settings -> Background -> then I click on the current background preview to change it but I see only the defaults images! No + symbol to add or something. On the 'Pictures' tab there is nothing to select, I get an empty white page? I am running ubuntu gnome 13.04 3.9.6-030906-generic.  Thanks!


$1 + 1/2 + 1/3 + ... + 1/(2^n) ≥ 1 + n/2$  I'm trying to prove by induction. But i can't really figure out the basis step. if $n = 1$ what would the inequality simplify into? $1 ≥ 1 + 1/2$? I can't really figure out the pattern here.


$|f| $ is Lebesgue integrable , does it implies $f$ is also?

If $ f $ is Lebesgue integrable then $|f|$ is Lebesgue integrable but does the converse of the result is also true?


Suppose I've typed   cd Documents/dir1/    I want to remove only dir1 from that input so that I get   cd Documents/   This has been asked in in , but I couldn't find what I was looking for.


Why are generics needed when we can do casting to Object class?

We have generics in java using which we can generalize a class. I know that Object class is the parent class of every class.  When I can typecast to and from Object then why generics are needed?  class Response<T>{     T data; }   class Response{     Object data; }   Both of the above code snippets will work the same way.


An inequality for powers of reals: $a^{1/n}-b^{1/n}<(a-b)^{1/n}$

Let $a>b>0$ and let $n \in N$ satisfy $n \geq 2$.  Prove that $$a^{1/n}-b^{1/n}<(a-b)^{1/n}.$$  If we let $a=x$ and $b=x-1$, then we need to show that $f(x):=x^{1/n}-(x-1)^{1/n}$ is decreasing for $1\leq x$ (which means that $f'(x)\leq 0$ and $f$ is differentiable), and evaluate $f$ at $1$ and $a/b$.


Minimum of an expression involving radicals: $\sqrt{\frac{2a}{a+b}} + \sqrt{\frac{2b}{b+c}} + \sqrt{\frac{2c}{c+a}}$

The link below is a MSE question discussing the maximum value of the expression  $$ \sqrt{\frac{2a}{a+b}} + \sqrt{\frac{2b}{b+c}} + \sqrt{\frac{2c}{c+a}} $$  which is $3$.   I thought about the minimum of the same expression over nonnegative reals.  My reasoning was as follows :  Using the fact that $\sqrt{X+Y+Z} \le \sqrt X + \sqrt Y + \sqrt Z$, and the fact $u + v \le u+v+w$ we can already assert that the expression to minimize is $\ge  \sqrt 2$  Now taking $a = 0$, $b\to 0^+$ and $c$ arbitrary we see that the expression can take values arbitrarily close to $\sqrt 2$. Thus $\sqrt 2 $ is the infimum. but It seems not to be a minimum while the continuous function we have must have a minimum on the compact sphere (homogenous expression). Is there anything wrong with this approach ? Then, What would the result be if we restrict ourselves to positive reals. Thanks.


How can I get back to my latest commit after git reset --hard?

I wanted to get back to the last commit to see if it was still working back then. I was doing this in Eclipse and chose Show in History -> Second latest commit in Master -> Reset (Hard) I did a hard reset because I wanted my files to be the same as they were in that commit. Would a checkout have been sufficient? I can't see my latest commit anymore. Is it gone now?


I was asked this in an interview.WHat is the complexity of this method??  static int magic(int n) {     System.out.println( count+" "+ n);     count++;     return (n < 2) ? n : magic(n - 1) + magic(n - 2); }


How to use FILE in binary and text mode in C

Even in Binary or Text mode it is working(image,document,...). Then what is the real use of these mode and how to use them.    #include<stdio.h> #include<stdlib.h> int main() {     FILE *fp;     unsigned char buffer[756396];       fp=fopen("ref.jpg","r");    //rb     if(fp==NULL)     {         printf("File not present");         exit(0);         }     else         fread(buffer,sizeof(buffer),1,fp);       fclose(fp);     fp=fopen("ref1.jpg","w");  //wb     if(fp==NULL)     {         printf("File can not be created");         exit(0);         }     else         fwrite(buffer,sizeof(buffer),1,fq);     fclose(fp);     return 0; }    output  Above code create a copy of an image   I want to know the real time application of where and when to use them.


All entire function with $f(\frac{1}{n})=\frac{1}{n^2}$

As you can see in the title I need help with the following exercise:  Find all entire function with $f(\frac{1}{n})=\frac{1}{n^2}$ I guess I have to use the identity theorem but I dont know how


Exaggerating the pronunciation of a vowel or consonant

Is there a word for exaggerating the pronunciation of a vowel or consonant by holding it longer than normal? When conveying this in writing, does it fall in the same category as an accent or dialect (even though it's neither) or are there other rules I should be aware of?   Examples:    Heeere's Johnny lllet's get ready to rumbllle   Halloooooooooooooooooo!


The Content of the document overlying the header content

\documentclass{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[a4paper, total={6in, 9in}]{geometry} \usepackage{fancyhdr,stix,graphicx,framed,amsmath,amssymb,blindtext}   \pagestyle{fancy} \fancyhf{} \rhead{Right Header Content} \lhead{\includegraphics[scale=.15]{logo-tv-logo.png} } \rfoot{Page \thepage} \newcommand\fillin[1][3cm]{\makebox[#1]{\dotfill}}  \begin{document}  \blindtext \end{document}


Should I post a question with the answer I already know?

For example, I've have just solved some problem on my own. I believe my solution might be quite useful to others (and myself in the future), like a KB article.   Should I post it as question and answer it myself and mark as community wiki? I'm not interested in extra points in this case.


Can we give a sense or put in context the fact that gravity isn't a force yet is one of the fundamental ones?

As per the title. Not that the title fact poses me big troubles, personally, but is at least confusing that the two assertions coexist within the same article, interview, and thread — or can be individually found on sources with reputation. What I grasp is that both are true and it is matter of point of view (i.e.  gravity isn't a force in GR, and GR and standard model don't need to speak each other unless about "big bang like" conditions). But I would appreciate if someone could clarify and put in the right context this apparent dichotomy (or dichotomy removal, if one wish).


How can I center my 2 circle in my column with bs4 please ?

Bla bla bla

Bla bla bla

  Here's the JS Fiddle:  Thanks.


One of is followed by plural noun/pronoun and singular helping verb

One of the boys who always give/gives the correct answer is Samuel.   As per rule, one of is followed by plural noun/pronoun and singular helping verb, so we should be using gives in the sentence. But the answer is give.


If I push my hands against each other, why does the stronger one move the weaker one if the forces should be equal and opposite

If I were pushing my hands against each other, the stronger arm will move the weaker arm, but if all forces have an equal and opposite reaction, why does the weaker one move?


What are the rules for splitting words at the end of a line?

What are the rules in English language to split words at the end of a line?   Where exactly must the hyphen split the word?


Why does Stack Overflow Careers match "Java" to JavaScript?

Now, I know that it's probably as simple as pseudo code if(job.contain("Java")) return true But I still feel like Stack Overflow Careers should know better. True, a lot of Java devs know JavaScript, I do, but when I want to have a subscription for Java jobs, I don't expect to see JavaScript. It's something I'd expect from a recruiter mentioning "DNS" and "Git" as programming languages...  Also, if I try to use the tag system I've now understood exist (feature request on it popping up tags as keywords?) then I still get the same results:   maybe?


What is the conclusion from Aharonov-Bohm Effect?

What is the conclusion that we can draw from the ? Does it simply suggest that the vector potential has measurable effects? Does it mean that it is a real observable in quantum mechanics? Does this effect has anything to do with the topology of the space?


Where can I see how many posts have I edited?

I've found  many queries to check edit counts, and I get different results for each one. Which one is the most accurate and up-to-date query? Or is there any way to see the edit count in stats?


Why is my input slider not showing the actual slider in a node group?

See this image:  I would like to have a slider for the "Less/More" value. Its range is from -1 to 1. The value itself updates, but Blender doesn't want to draw the actual blue slider. What's the issue here? Thanks in advance!


continuous function $h(x)=\sup\{f(t)\colon t\le x\}$

Assuming $f:[a,b]\to\mathbb{R}$ is continuous, how do you prove that the following function is continuous?  $$h(x)=\sup\{f(t): t\leq x\}$$


I am in the process of recovering from a catastrophic hard disk failure on a completely new machine. I am fortunate to have both a database backup and a backup of the folder with the D7 code that was running on the original machine.  After restoring everything to the original state the site at first appeared to be running well. All nodes that I clicked on worked perfectly and showed the data I expected. The problems began when I tried to login. It looks as if submitting any form whatsoever (including the login form) does not have any effect. I couldn't even login until I generated a one time login link with drush uli. Using that link I was at last able to login with the admin user, but whenever I try to change something in the admin area I simply can't do it - the page is reloaded after I submit the form and my changes disappear. There are no error messages 1) in the web UI, 2) in the Apache log files, or 3) in the watchdog database table.  Things that I tried without any effect:   Clean the cache tables. All of them, both with drush and with phpMyAdmin Set up a completely new site using the same codebase (Drupal 7.14). The new site works perfectly, after the setup I can login and create content without problems. The original site still doesn't work. This shows me that neither the Drupal code I am using is the problem, nor the Apache setup (the vhost for the new site is practically identical to the vhost for the problematic site). Upgrade to Drupal 7.44 Disable all modules (only disable, not uninstall) Enable tracing using the xdebug PHP module, but the result gave me information overload. I'm no PHP hacker.   I am now pretty desperate. I must overlook something essential, but for the life of me I can't find what it is. I am aware that this is all pretty vague, but I hope that someone with more experience than me can offer me a hint what I am doing wrong.  Info on my environment   Server   Debian jessie Apache 2.4.10-10+deb8 php5 5.6.20+dfsg-0+deb8u1 MySQL 5.5.49-0+deb8u1  Client   Mac OS X 10.11.4 Firefox 46.0.1 and Safari 9.1 on Mac  Configuration   Drupal 7.14 and 7.44 SSL-enabled vhost


I'm trying to add the attribute $area. I made a intersection and Tot_aera isn't the good one, so I want to add a new.  I made that :   from PyQt4.QtCore import * try:     if ind==-1:         if caps & QgsVectorDataProvider.AddAttributes:             res=provider.addAttributes( [ QgsField(nameattr,QVariant.Double) ] ) except:     print "FALSE"   So I have a new attribute but NULL. So my question : How put "$area" in nameattr?


Do I need conduit for the exposed portion of a sub-panel feeder?

I am trying to install a 60 amp sub panel in my house to power my wife's saltwater tanks. I know I need 6/3 to go from main panel to sub panel. My question is I have to run it along the wall to get to the ceiling then down the wall to get to sub panel. What type of wire and do I need conduit? The sub panel will be just outside the backdoor under the porch.


Getting a list of questions I've asked for which I should accept an answer

Is there a way I can get a list of questions I've asked for which I have yet to accept an answer? Better yet, can I filter that list to only questions which activity in, say, the last month?


What is the quote from Beowulf that says Grendel can't be harmed by weapons?

I'm doing an essay for school and Ineed the quote and page number for where it's located


i have the following formatting problem writing a cover letter, using  scrttr2`. The main text is very long, but as you can see from the given example - there is a lot of unused space. I want the letter fit to one page; for example by reducing the space to the bottom edge.  \documentclass[a4paper,11pt,version=last,ich]{scrlttr2} %Standard: 12 DIV, BOIC 0% \usepackage[utf8]{inputenc} % erkennen von Umlauten % \usepackage[ngerman]{babel} % Silbentrennung nach deutschem Standard % \usepackage{charter} %Schriftart% \KOMAoptions{foldmarks=off,fromrule=false} % die hässlichen Striche am Rand wegmachen % \setkomavar{backaddress}{}  % die Unterstreichung der eigenen Adresse weglassen %  \usepackage{blindtext} \setkomavar{place}{Mars}        % um den Ort hinzuzufügen % \setkomavar{fromname}{Space Cowboy} \setkomavar{fromaddress}{Milkiway 5\\  99999 Town} \renewcommand*{\raggedsignature}{\raggedright} % um die Unterschrift bündig zu machen % % so kann man den Text direkt unter die Anschrift setzen \setlength{\oddsidemargin}{\useplength{toaddrhpos}} \addtolength{\oddsidemargin}{-1in} % in sind inch % % how can i change this - ist there a more elegant way??? \makeatletter \setlength{\@tempskipa}{-12ex}% \@addtoplength{toaddrvpos}{\@tempskipa} \makeatother \makeatletter \setlength{\@tempskipa}{-12ex}% \@addtoplength{refvpos}{\@tempskipa} \makeatother \makeatletter \setlength{\@tempskipa}{12ex}% \@addtoplength{firstfootvpos}{\@tempskipa} \makeatother \begin{document} \begin{letter} { Sausage Shop\\  Recruiting Management\\  Mr Sausage \\ Street 5 \\ 99999 Town\\ } \opening{Dear Mr Sausage,} \blindtext \\ \blindtext  \\ \blindtext \closing{Greets,\\} \setkomavar*{enclseparator}{Anlagen} \encl{Notenspiegel, Excelschein} \end{letter} \end{document}`


Every time I use the 3d manipulator it moves all of the other objects in the scene:   They are multiple meshes and the image illustrates the way they move at different speeds


Is there a discrete version of the exponential distribution?

The exponential distribution is well-known and widely used but defined for a continuous variable. Is there a discrete version of it?