We know that the protons in a nucleus are positively charged, whereas the neutrons do not possess a charge; we also know that unlike charges attract. So why does the nucleus stay intact, even though there isn't supposed to be any electrostatic force of attraction within it? Instead, why isn't there any repulsion between the protons which are like-charged?

Do the protons inside the nucleus repel each other by the electrostatic force? If they do, why doesn't the repulsion drive the protons apart so that the nuclei get disintegrated?


What does the graph of the function $$ f(x) = (-1)^x $$ look like?  It seems as if on all even $x$, $y = 1$, and on all odd $x$, $y = -1$, but between these values (fractional indices) y's value is ambiguous.

Background I teach Algebra and second year Algebra to middle school students. We are currently studying Exponential, Power, and Logarithmic functions. We study exponential functions (of the form $f(x) = ab^x$ where $a \neq 0, b > 0$). I've taught the basics of exponential functions before and I've wondered about the function $f(x) = (-2)^x$. At first I was confused as to why the calculator would not graph any exponential function with a negative base. Then I realized that depending on the roots, say for $(-2)^{1.25}$ and $(-2)^{1/3}$ some very different calculations would need to be performed. I'm still lost as to how you would explain $(-2)^\pi$ but I suppose that's just being annoying. I want to know how to explain the output of $f(x) = (-2)^x$. Comments I know for example that there are a host of values for which the output would be imaginary. If we limit the domain of $x$ to rational numbers with odd denominators  Here are two examples $(-2)^{2/5} = \left(\sqrt[5]{-2}\right)^2 \approx 1.3195$ $(-2)^{3/5} = \left(\sqrt[5]{-2}\right)^3 \approx -1.5157$)  we should be able to compute $f(x)$ for all such numbers. I would then think the graph would look something like $f(x) = 2^x$ and $f(x) = -(2^x)" /> Curious how to visualize the plot including the imaginary outputs when $x \in \mathbb{R}$ Wolfram Computes the result using the principal roots  Question: How could you visualize and interpret $f(x) = (-2)^x$ while incorporating the real-root based output I presented above? Or, alternatively, what's wrong with this?  which makes sense given the restricted domain necessary to compute real outputs. Is there any mistake in thinking that with the domain restrictions I specified above ($x$ all rational numbers such that $x = a/b$ where $b$ is odd) the output would resemble my plot above? Is there a way to visualize -- or even better -- explain the behavior of this function for for all real numbers $x$? If we added in an imaginary axis, could we use it to show the results when we need to compute an imaginary output?


When I use Arrays.toString() on the string aryLines*, it returns: [Ljava.lang.String;@2f67d81 What am I doing wrong, Am I print ing the exact memory location and not the array itself? If so, how do I print the contents of the array?  *The array aryLines is equal to <example><XML><tags>

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


In all three of the original trilogy not once does anyone interact with (or even discuss) those damn buttons on his chest plate.  Do they do anything?  Is there a reference to them in the extended universe of what they do?  UPDATE: This has been answered here ()

After reading  and , I read  article on Wookieepedia. This passage made me frown :     The monitoring panel beeped frequently and for no reason, the lights seeming to serve only as steady reminders of his vulnerability. His electrical systems were woefully delicate, and he was forced to protect his vital chest panel when dueling. This system was so vulnerable that Antinnis Tremayne was once able to deactivate Vader's entire suit by pressing one button on his chest control plate.   The suit, and more specifically the helmet, use some high technology for the interface. But the chest control panel is made of huge lights and big freaking switches, just like if it was salvaged from an archaeological museum. It was even replaced on at least two occasions, but its odd design was globally kept.     Why incorporate such patent weakness to the armor? And why would Vader tolerate it?


As far as I know, perpetual motion orbital desktops like below use an electromagnet in the base.    Why aren't permanent magnets used on both ends instead?  Does anyone know where I could find a teardown of the base of a generic one?

I am building an electronic pendulum. I want to use a 2N2222 to power the drive coil when the pendulum bob interrupts an IR beam. The pendulum bob is magnetic and moves in reaction to the drive coil. I am trying to modify this circuit as follows  The 100 ohm, the 1K ohm, and the red led will be removed and an air core coil will be substituted.  The coil consists of a plastic sewing machine bobbin fully wound with 30 gauge magnetic wire. Resistance 10 ohms, inductance unknown. The coil is bridged using an led to suppress the back EMF caused by the collapsing field.   The circuit as shown works BACKWARDS. The 2N2222 turns on when the photodiode is illuminated and turns off when the photodiode is not illuminaed.   For simplicity the source of the ir beam is not shown.   How can I change the circuit to make the 2N2222 turn on when the ir beam is interrupted and off when the off when the beam is not interrupted.


I'm using python 3 I was able to create a list with dictionaries, now I need to sort by the "name" key in alphabetical order. contact= [     {         'name': 'Jhon',         'id': 18,         'tel': "11111111111"     }, {         'name': 'Brian',         'id': 56,         'tel': "2222222222"     }, {         'name': 'Adrian',         'id': 20,         'tel': "3000000000"     } ]  The result should look like this: contact= [     {         'name': 'Adrian',         'id': 20,         'tel': "3000000000"     }, {         'name': 'Brian',         'id': 56,         'tel': "2222222222"     },{         'name': 'Jhon',         'id': 18,         'tel': "11111111111"     } ]

I have a list of dictionaries and want each item to be sorted by a specific value. Take into consideration the list: [{'name':'Homer', 'age':39}, {'name':'Bart', 'age':10}]  When sorted by name, it should become: [{'name':'Bart', 'age':10}, {'name':'Homer', 'age':39}]


What exactly is the difference between:  typedef enum {   something1,   something2,   .....   somethingN } myEnum;   end just   enum myEnum{   something1,   something2,   .....   somethingN };   I know in first case I have typedefed unnamed enum, of course, just wonder which approach is better and why?

I haven't written any C++ in years and now I'm trying to get back into it. I then ran across this and thought about giving up:  typedef enum TokenType {     blah1   = 0x00000000,     blah2   = 0X01000000,     blah3   = 0X02000000 } TokenType;   What is this? Why is the typedef keyword used here? Why does the name TokenType appear twice in this declaration? How are the semantics different from this:  enum TokenType {     blah1 = 0x00000000,     blah2=0x01000000,     blah3=0x02000000 };


I only have the first button set up to work. It was working fine until I updated panel one to have additional panels (oneTwo,oneThree, etc.). I did this because I have to make the program look like this   but now when i click the first button it no longer switched to card two. I cant figure it out.  Here is my code  public class AddressBook implements ActionListener {     static CardLayout contentPaneLayout;     static JButton B1= new JButton("Create a New Address"),  B2= new JButton("Load Contacts"), B3= new JButton("Add New Contacts"),             B4= new JButton("View/Delete Contacts"), B5= new JButton("Backup Contacts"),  B6= new JButton("Exit"), B7 = new JButton ("Cancel");     static JTextField TF1 = new JTextField(13), TF2 = new JTextField (13);     static JLabel L1 = new JLabel ("Use The Buttons Below To Manage Contacts",JLabel.CENTER), L2 = new JLabel ("This is Card 2"), L3 = new JLabel("Username:",JLabel.CENTER),             L4 = new JLabel("Number of Contacts:",JLabel.CENTER);;     static Container contentPane;       public void actionPerformed(ActionEvent e) {         Object click = e.getSource();         if (click==B1) contentPaneLayout.show(contentPane,"Card 2");          if (click==B6) System.exit(0);         if (click==B7) contentPaneLayout.show(contentPane, "Card 1");         }      public static void main(String[] args) {         JFrame frm = new JFrame("Address Book");         contentPane = frm.getContentPane();         contentPane.setLayout(new CardLayout());         JPanel one = new JPanel (new GridLayout( 5,5 ));         JPanel two = new JPanel (new GridLayout(4,6));          JPanel oneTwo = new JPanel(new FlowLayout());         JPanel oneThree = new JPanel(new GridLayout(2,3,6,5));         JPanel oneFour = new JPanel(new GridLayout());         JPanel oneFive = new JPanel(new GridLayout());             one.add (L1);         oneTwo.add (L3);         oneTwo.add (TF1);         TF1.setEditable(false);         TF2.setEditable(false);         oneTwo.add(L4);         oneTwo.add(TF2);           one.add(oneFive);         one.add(oneTwo);         oneThree.add(B1); oneThree.add(B2);oneThree.add(B3);oneThree.add(B4);oneThree.add(B5);oneThree.add(B6);         one.add(oneFour);         one.add(oneThree);          two.add(L2);         two.add(B7);          contentPane.add("Card 1", one);         contentPane.add("Card 2", two) ;         //contentPaneLayout.show(contentPane, "Card 1");            ActionListener AL= new AddressBook();         B1.addActionListener(AL); B7.addActionListener(AL); B6.addActionListener(AL);         frm.pack();         frm.setSize(550,250);         frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         frm.setVisible(true);     }  }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Is the universe an open system?   Is the expansion of the universe accelerating?   Reference links:

Scientists today think the expansion of the universe is accelerating.   According to Hubble's law, objects further away are moving faster than objects closer to us. The further away an object is, the further back in time we are seeing, so in the past objects moved faster (is this sentence correct?).  So because objects moved faster before than they do now, surely that's deceleration not acceleration?  my textbook says "if Scientists today think the rate of expansion of the Universe were decreasing then distant objects should appear different to Hubble's Law predictions: universe is accelerating. More distant objects would seem to be receding faster (since expansion was faster in the past)"


I'm trying to model a double sided cabinet using metric units (if thats helpful) and I'm seeing both inside and outside faces without enabling wireframe mode or something like this. Does anyone know how I can avoid those artifacts? The problem appears only when I am relatively far from the object(but not so far) and only in edit mode and while using orthographic view.

I have recently started using blender and one of the models I'm working on has dark shadows along edges. I started this model from scratch. I can't remember them being there when I first started the model, but I had trouble joining areas together and think I've pressed something I shouldn't have. However, there are so many options I'm not sure what I did.  Here is an image of what I mean   The one on the left has the shadow. As a test I started a new model, which is on the right in the image, and as you can see it doesn't have any shadows.  Also, occluded vertices partially show through the model. Occlusion doesn't work properly.   In orthogonal view small darkened triangles appear along the the edges.    I don't really want to start the model again from scratch so any ideas on how to remove this shadow would be great. Thanks.


I have a string of HTML elements,   let test = `<figure><img alt="" src="some_image.jpg"><figcaption>I think DC is better than Marvel <span class="whatever">...`   I need to remove every single <...> so it turns into test = "I think DC is better than Marvel...".  The closest I have gotten is:  var str = "<hello> Test </hello>" str.replace(/<[^>]*/g, ""); //=> "> Test >" str.replace(/<*>*/g, ""); //=> "hello Test /hello"   Not quite, though. How can I achieve this?

Is there a good way to remove HTML from a Java string? A simple regex like replaceAll("\\<.*?>", "")   will work, but things like &amp; wont be converted correctly and non-HTML between the two angle brackets will be removed (i.e. the .*? in the regex will disappear).


Already read:    I would prefer to have a textbook which covers statistics with R, accessible to a beginning graduate student in statistics. Since I'm not as familiar with R as I should be, I will be purchasing A Beginner's Guide to R by Zuur, but what is a good text for covering statistics with R for a beginning graduate student?

I am interested in examples of sources (R code, R packages, books, book chapters, articles, links etc) for learning statistical and mathematical concepts through R (it could also be through other languages, but R is my favorite flavor).  The challenge is that the learning of the material relies on the programming, not just on how to run a code that performs the algorithm.  So (for example) a book like  (which is a great book) is not what I am looking for.  This is since this books mainly shows how to implement linear models in R, but it does not revolve around teaching linear models by using R.  The help files for the (wonderful)  is a good example of what I am looking for.  It is an R package which includes functions for learning statistical concepts through various R applets and simulations.  The accompany help files are nice.  Of course, neither are sufficient, and require an external text-book in order to master many of the exact details to learn them (well, the help files do).  All leads will be much appreciated.


ReLU has a range of [0, +Inf). So, when it comes an activation value z=0/1 produced by ReLU or softplus, the loss value computed by cross-entropy : loss = -(x*ln(z)+(1-x)*ln(1-z)) will turn to NaN. As i know, my variables are run in theano.tensor type which cannot be modified after defined. So, I cannot simply change the values in z which are 0/1 into some approximate (such as 0.001/0.999). How to avoid this annoying situation without replacing the cross-entropy by MSE?

I am currently getting started with Machine Learning. However, I have some problem to derive formula and not able understand how to applied the Cross Entropy (CE) on Rectified Linear Units (ReLU).  I also try to search from website, but most of them either brief only few sentences or take sigmoid as examples. (maybe this is too obvious for them?)  The best that I can find is from this  which teach how to applied the CE error function on the Sigmoid Units. Therefore, I try learning from there and derive my own. Here is how I start,  Given   cross entropy $$C = - \frac{1}{n} \sum_x [y\ln{a} + (1-y)\ln{(1-a)}]$$  activation function $$a=\sigma(z)$$  weight sum input $$z = \sum_j w_ix_i + b$$  where $n$ is the total number of items of training data, the sum is over all training inputs, $x$, and $y$ is the corresponding desired output.  In this case, my activation function will be $$\sigma(z) = max(0,z)$$  Compute CE w.r.t weight $$\frac{\partial C}{\partial w_j} = -\frac{1}{n} \sum_x\bigg(\frac{y}{\sigma(z)} - \frac{(1-y)}{1-\sigma(z)}\bigg)\sigma'(z)x_j$$  Ok, the derivative of ReLU is (note that it is not differentiable on 0, put 0 instead) $$\sigma'(z) = \left\{      \begin{array}{lr}        1 & : z > 0\\        0 & : z \leq 0      \end{array}    \right. $$  When $z > 0$, $$\frac{\partial C}{\partial w_j} = \frac{y-z}{z(1-z)}$$  $z = 1$ is undefined  when $z \leq 0$ $$\frac{\partial C}{\partial w_j} = \frac{y-0}{0(1-0)}$$  which is undefined as well.  Can someone shed some light?


What word is used to include students, faculty and staff at a university?

Could academics or acads be used to describe the university faculty as well as researchers? What is a better hypernym of academia, researchers and topic enthusiasts?


I have this code that gets the binary representation of a number. I am trying to add up all the 1s that the number has. My problem is that when instead of adding up all the 1s it is just printing them out.  what I am trying to get  99 = 01100011  there are 4 1's     What am getting  there are 1111 1's     #include <iostream> using namespace std;  int binary(int N) {     if (N == 0)     {         return 0;     }     else;     {         binary(N/2);         int num = 0;         if (N % 2 == 1)         {         num++;          cout<<num<<endl;         }        } } int main() { int number; cout << "Please enter a number that is greater or equal to 0: "; cin >> number;  binary(number);  }

8 bits representing the number 7 look like this:  00000111   Three bits are set.     What are algorithms to determine the number of set bits in a 32-bit integer?


I download an open source file  and try to run it but I face a problem   the function that I face the problem with it listed as follows:  public class FileUtil {     private Logger logger = Logger.getLogger(FileUtil.class);      public List<String> loadDataSet(String fileName) {          List<String> stringsFromFile = new ArrayList<>();         String str = "";          //  ClassLoader.getResourceAsStream         try (InputStream is = getClass().getClassLoader().getResourceAsStream(fileName)) {             //System.out.println(is);              BufferedReader reader = new BufferedReader(new InputStreamReader(is));              if (is != null) {                 while ((str = reader.readLine()) != null) {                     stringsFromFile.add(str);                 }             }          } catch (FileNotFoundException e) {             logger.error(e);         } catch (IOException e1) {             logger.error(e1);         }          return stringsFromFile;     } }   the fileName = "/src/resources/DataSets/wiki-Vote.txt"  the runtime error showed in the following   1689 [Thread-1] DEBUG main.java.App.Datasets.DataSetController  - Start load DataSet:Facebook circles Exception in thread "Thread-1" java.lang.NullPointerException     at java.io.Reader.<init>(Reader.java:78)     at java.io.InputStreamReader.<init>(InputStreamReader.java:72)     at main.java.App.Common.Utils.FileUtil.loadDataSet(FileUtil.java:25)     at main.java.App.Datasets.DataSetController.loadDataSet(DataSetController.java:71)     at main.java.App.Common.UITasks.DataSetLoaderTask$1.run(DataSetLoaderTask.java:30)     at java.lang.Thread.run(Thread.java:745)   note:  I try different path but still the same problem  and I read many questions but I cant solve  they mention that the problem from the classpath of the jars  but really I am not expert because of that I can't figure out how to solve it by the way they told the others  please explain in  details  thank you very much


I'm trying to send someone a copy of the current state of one branch on my Git repository. He doesn't have access to the repository itself and doesn't need version control history. I would also like to send the file over email, so including excessive history will cause the file size to be too large. I could manually clone that branch myself with --depth=1 in a new folder, then compress that folder and send it, but that seems like a roundabout way to accomplish what could be done with git-bundle. However, if I do git bundle create repo.bundle -1 HEAD, which according to  should bundle only the 1 most recent commit, I get a 590 B file and an error when I try to clone from the bundle to test it: error: Repository lacks these prerequisite commits: error: 123456...             # example SHA, HEAD~1 fatal: bad object 789101...  # example SHA, HEAD fatal: remote did not send all necessary objects  How can I get only the most recent version of the branch from my local repository?

I've been wondering whether there is a good "git export" solution that creates a copy of a tree without the .git repository directory. There are at least three methods I know of:   git clone followed by removing the .git repository directory.  alludes to this functionality but starts with "Just read the desired tree into the index..." which I'm not entirely sure how to do.  is a third party script that essentially does a git clone into a temporary location followed by rsync --exclude='.git' into the final destination.   None of these solutions really strike me as being satisfactory. The closest one to svn export might be option 1, because both those require the target directory to be empty first. But option 2 seems even better, assuming I can figure out what it means to read a tree into the index.


I'm trying to measure the compactness (roundness) of some 800 polygons of different shape and size. I created the centroids and what I want to do now is to buffer those centroids with the exact same area of their polygons.  Sorry if this is too simple but I just can't find the way to do it.

I am trying to find ways to quantitatively describe the shapes of various polygons. For my project, these polygons represent lakes, rivers, lagoons, and parks. So they can be almost any shape. One easy metric is to calculate perimeter vs. area, which is at best an only slightly useful metric. But I would also very much like to be able to say something about the 'roundness' of a polygon. Or how 'compact' the shape is on a map.  The only way I can think of doing this easily is to calculate the area of each polygon in relation to a bounding box for that polygon (which I already have). But this seems like a poor solution.  So now I am thinking of something more like this - take the centroid of the polygon, add on a series of buffers of increasing areas (say 50%, 100%, 150%), then compare how much overlap there is between each buffer and the original polygon. A perfect circle will have perfect overlap at 100%, and I can use the 50% and 150% buffers to judge how much and in what way each polygon differs.  But even that feels cumbersome, and like a poor workaround for what somebody else has probably already figured out far better.  For reference, at a minimum I will need to be able to look at the resulting indices for the shape of various polygons, and be able to make an educated guess as to their source (River? Reservoir with dendritic shape? Lake/Lagoon? Park?)


I uninstalled QGIS by deleting OSGEO4W folder. Then when I try to install it again using osgeo4w setup, I get this "zip.dll was not found" error message. Does anyone have the same issue?

I do not manage to install QGIS on my windows 10 machine using the osgeo4w installer.  During the installation I get this message:   At the end of the installation I get this message:   And when I subsequently try to run QGIS, I receive this message:    Similar issue can be found in various fora, but none of them provides a conluding answer or did help me to solve the problem.  Any propositions?


char[] string = new char[16]; for(int i = 15; i >= 0; i--,input>>=1){     string[i] = (char)(input&1+48);//ascii '0'=48 } return String.valueOf(string);   use this way, will get garbled output as follow:  Input:  0    Output:   (will show binary square)

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


There has been a big  today, are android applications affected, and what can we do to get a secure version?  What about people with older devices (such as the HTC desire HD I have) that are on old android versions (2.3.5), is it possible (for example) to get a up to date browser that doesn't use the installed openSSl, or to get security releases to old versions of android?

The "" vulnerability in particular versions of OpenSSL is a serious security issue which allows malicious servers or clients to undetectably obtain unauthorized data from the other end of an SSL/TLS connection.  My Android device has a copy of OpenSSL installed in /system/lib. Its version number is 1.0.1c, which appears to make it vulnerable to this attack.  shell@vanquish:/ $ grep ^OpenSSL\  /system/lib/libssl.so                        OpenSSL 1.0.1c 10 May 2012    How does this affect me? Do Android apps use OpenSSL? If not, why is it there? Can I expect a firmware update from my carrier? If I root my phone, can I update it myself?


I have tried to solve browser cache problem using cachebuster value appended to javascript file referemce, tried to use combination of meta tag for cache control, force browser to clear cache using version no in filename, but none can lead to final solution. Breaks in between in random manner. Code is not updated without hard refresh or clear cache. Can anybody help on this?

I have noticed that some browsers (in particular, Firefox and ) are very zealous in using cached copies of .css and .js files, even between browser sessions. This leads to a problem when you update one of these files, but the user's browser keeps on using the cached copy. What is the most elegant way of forcing the user's browser to reload the file when it has changed? Ideally, the solution would not force the browser to reload the file on every visit to the page.  I have found  and  suggestion to be useful. It turns out there is a term for this: auto-versioning. I have posted a new answer below which is a combination of my original solution and John's suggestion. Another idea that was suggested by SCdF would be to append a bogus query string to the file. (Some Python code, to automatically use the timestamp as a bogus query string, was .) However, there is some discussion as to whether or not the browser would cache a file with a query string. (Remember, we want the browser to cache the file and use it on future visits. We only want it to fetch the file again when it has changed.)


How do you get player heads using commands in MCPE? Like get your own head and be able to place it down and all that cool stuff?

This question was recently split into different questions for each workaround. See   meta posts for more information.   Can you use NBT tags in commands? I’ve tried commands that normally work in Java Edition like: give @s minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}} give @s stone_pickaxe{Unbreakable:1b} give @s item_frame{EntityTag:{Invisible:1b}} summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"emerald",Count:5b},sell:{id:"diamond_sword"}}]}} summon tnt ~ ~ ~ {Fuse:20s}


When I run cmd.exe, the directory I start in is my home directory (C:\Users\Edd>)  When I pin cmd.exe to the start menu and run it from there the directory I start in is C:\Windows\System32>  How can I update the default directory for Windows Command Processor to be my home directory?  A quick note: aside from the difference in default directory, the titles of the windows are also different. cmd.exe has the title "C:\Windows\system32\cmd.exe" and when I run it from the pinned menu item it is "Windows Command Processor".

So, I know you can create a shortcut to an administrator-level command prompt (as described in ), but what I'm seeing is that whenever I use such a shortcut, it always drops me into c:\windows\system32\ path.   I've tried specifying that shortcut's properties to set the "start in" path I need, but to no avail. It seems any time I run cmd.exe "As Administrator," it completely disregards the shortcut's paths and sticks to c:\windows\system32\  Any suggestions on how to get Windows 7 to respect the shortcut's "start in" path?


I am having this issue with a brand new Ubuntu 16.04.2 Virtual Machine.  apt-get updates fails with this error  $ sudo apt-get update -o Debug::Acquire::http=1 -o Debug::pkgAcquire::Auth=true -o Debug::Hashs=trueenter  0% [Connecting to archive.ubuntu.com]GET /ubuntu/dists/xenial/InRelease HTTP/1.1 Host: archive.ubuntu.com Cache-Control: max-age=0 Accept: text/* User-Agent: Debian APT-HTTP/1.3 (1.2.19)   Answer for: http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease HTTP/1.1 200 OK Content-Type: text/html; charset="utf-8" Content-Length: 2832 Connection: Close  Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [2,832 B] 0% [1 InRelease 2,832 B/2,832 B 100%]201 URI Done: http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease ReceivedHash:         - SHA512:9a57e33cddb5b821ee529e7e4e39d1039f260b1b3ceee28902b7e595dfcb95280f87f45a88f433b452657f725c6a61ee06e1d2ff12db8aac7a60e61286377232         - SHA256:1c54e2c305d7254cc3c3fb5cc5651064094e7cbff00e8f4a4e1932536864f240         - SHA1:eebbd844edee49449c7bdf6c1dc6243a85970544         - MD5Sum:c0fdedc4ecc16c0bce32d264006d74e2         - Checksum-FileSize:2832 ExpectedHash:  Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease   Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Fetched 2,832 B in 0s (4,827 B/s) Reading package lists... Done E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) E: Some index files failed to download. They have been ignored, or old ones used instead.   I have verified that   DNS is working correctly Tried Google DNS servers in /etc/resolv.conf /etc/network/interfaces has the correct values I am able to access http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease using wget -O- No firewall configured (iptable shows ALLOW for both IP4 and IP6) Tried disabling IPV6 on the server level $http_proxy is blank   Now I am completely at loss as to why am I getting Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)  What else can I try?

I can use my mobile broadband to access Internet with Firefox but when I want to install any package from terminal or make 'apt-get update' command I got the following error:  got 'NODATA' (does the network require authentication?)   apt-get update output:  Get:1 extras.ubuntu.com trusty InRelease [213 B] 98% [1 InRelease gpgv 213 B] [Connecting to archive.ubuntu.com] Splitting up /var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_trusty_InRelease into data Ign extras.ubuntu.com trusty InRelease E: GPG error: extras.ubuntu.com trusty InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)    output of `cat /var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_trusty_InRelease  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>404</title> <meta http-equiv="Cache-Control" content="no-cache"/> </head> <body> <p> Not Found </p> </body> </html>   output of wget:  wget -O - http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease  --2014-06-01 09:23:35--  http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease Resolving extras.ubuntu.com (extras.ubuntu.com)... 91.189.92.152 Connecting to extras.ubuntu.com (extras.ubuntu.com)|91.189.92.152|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 213 [text/html] Saving to: ‘STDOUT’   0% [                                       ] 0           --.-K/s              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>404</title> <meta http-equiv="Cache-Control" content="no-cache"/> </head> <body> <p> Not Found  </p> </body> </html>


I'm new to Java, and I'm trying to make a simple calculator for waist and hip ratio. However the ratio has different rules for each gender. My trouble is to link the radio button gender selection with the method with if statement. How can I do this? I have tried this code below, but it didn't work. public class CalcActivity1 extends AppCompatActivity {      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_calc1);     }      public void btnCalcularOnClick(View v) {         TextView resultado = (TextView) findViewById(R.id.lblResultado2);         EditText txtquadril = (EditText) findViewById(R.id.txtquadril);         EditText txtcintura = (EditText) findViewById(R.id.txtcintura);         RadioGroup group = (RadioGroup) findViewById(R.id.radio_group);          int quadril = Integer.parseInt(txtquadril.getText().toString());         int cintura = Integer.parseInt(txtcintura.getText().toString());          //CALC         double rcq = cintura / quadril;          int selectedId = group.getCheckedRadioButtonId();          // I tried here to link them         RadioButton RadioButton2 = (RadioButton) findViewById(selectedId);         String chave = RadioButton2.getText().toString().toLowerCase();          if (chave == "homem"){             if(rcq <= 0.95){                 resultado.setText("Baixo");             }             else if(rcq > 0.96 & rcq <= 1){                 resultado.setText("Moderado");             }             else {                 resultado.setText("Alto");             }         }         if (chave == "mulher"){             if(rcq <= 0.80){                 resultado.setText("Baixo");             }             else if(rcq > 0.81 & rcq <= 0.85){                 resultado.setText("Moderado");             }             else {                 resultado.setText("Alto");             }         }      }  }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I started talking to this sugar daddy for a week. But we barely talk much... he said he would help me with ALL my bills. He only wants to see me 1-2 a month. I told him my bills. And he said he’ll put his credit card in my account in autopay to my phone bills. I don’t have credit card so he asked my username and password so he could check deposit money into my bank account...I know he helped me but I’m still hesitant to give out my bank info but maybe he’s serious in helping ? He’s not pressuring me or keep hitting me up about it.

Someone is offering to pay me in a sort of sugar daddy/sugar baby arrangement. They want to make online deposits to me, and they're asking me for my online banking username and password. Is that information alone enough for them to be able to take my money out of my account, or am I safe?


As a beginner in Bayesian estimation I believe I have made progress on the understanding of the estimation process.  However, after the estimation and evaluation/comparison of the models I find myself stuck in the understanding of the forecasting issue.  For example, I estimate a simple linear regression model ,like this one: $Y_t = \alpha_0 + \alpha_1 X_t + \epsilon$, by various methods: OLS regression,median regression and Bayesian Methods.  Now comes my question: In the Bayesian literature I´ve have seen several interesting ways to do the forecasting, for example, i could put in a framework of dynamic linear models.  However, I wonder how can I do a simple exercise of forecasting without resorting to dynamic linear models. In fact, I would like to understand the passage from the Bayesian estimation to forecasting exercises. In my mind, i would have to "forecast" the posteriors distribution for each time, t, t=1,2,3,4.., 10. But then others doubts comes to my mind.  Could you help me?  Thanks a lot.

I have created a bayesian model that estimates 6 parameters using rjags from R. Now i want to do some predictions based on new data in R. Can anyone help me with an example.  model {    B.m[1] <- Kb # mean B[1]    B[1] ~ dnorm( B.m[1], tau_B)    for(t in 2 : 10) { # Process model       B.m[t]<- max( B[t-1] + rB[t-1](1 -B[t-1]/K) - C[t-1] , 0.0)       B[t] ~ dnorm(B.m[t], tau_B) } # Observation mode       for (t in 1: 10) {          LogC_mean[t] <- log( max(qsegB[t]Eff[t], 0.000001))          C[t] ~ dlnorm(LogC_mean[t], tau_c) } # Prior          b~dbeta(1, 1)          cv <- 1          K.mean <- 500000          K.v <- pow(cvK.mean, 2)          K.tau <- 1/K.v          K ~ dnorm(K.mean, K.tau)          r ~ dlnorm(0.0, 1.4)          qseg ~ dlnorm(-15.4, 1.44)          tau_c ~ dgamma(0.001,0.001)          tau_B ~ dgamma(0.01,0.01)        }     }


I'm currently fitting CCTV around my house which requires lots of drilling with a rather large bit (25mm).  My question is regarding safety when drilling as i don't want to hit any wiring and or water pipes. I know you can buy detectors, but from what I've read they seem pretty unreliable and pointless as they only work about an inch deep, especially with my house being old and the interior walls being brick rather than board.  How can i best stay safe in this situation? I need to drill several holes through the cavity and several on interior walls. So how best to do this and not hit wires/pipes?  Thanks in advance.

Lots of home projects involve cutting or drilling through walls (everything from nails, screws, or hooks to mount things to cutting through drywall and drilling through studs to run wire).  In general, how do you know what's safe to break through and what isn't? In other words, when can you just start drilling through a wall and when do you need to be worried about hitting electrical lines, plumbing, etc.


How do I comment on an answer in StackExchange sites (e.g., StackOverflow) and what StackExchange site should I have asked this question on?

Across the Stack Exchange network you may leave comments on a question or answer.  How do comments work? What are comments for, and when shouldn't I comment? Who can post comments? Who can edit comments? How can I format and link in comments? My comment doesn't contain some of the text I typed in it; why? My comment appears to be long enough, but I can't post it because it's too short; why? Who can delete comments? When should comments be deleted? Why can't I comment on specific posts even if I have enough reputation to comment? When can comments be undeleted? What are automatic comments? How can I link to comments? Anything else I should know about comments?  Also see the FAQ articles on  and .


I am asking myself why for a complex number $z$ and real numbers $a \le b$ holds $$\bigg\lvert \int_a^b f(z) dz \ \bigg\rvert \le \int_a^b \bigg\lvert f(z) \bigg\rvert dz$$  I know that this holds for real numbers, but I do not see how we can transfer this to the real and imaginary part of $f$, but I do not see how. Could you help me?

I've been given a proof that shows the following:  If $f:[a,b]\to \mathbb C$ is a continuous function and $f(t)=u(t)+iv(t)$ then $$\left| \int_a^b f(t) dt \right| \leq \int_a^b \left| f(t) \right| dt$$ The proof begins by letting $\theta$ be the principle argument of the complex number $\int_a^b f(t)dt$ and there is one step in the proof I don't understand; can anyone explain to me why $$\int_a^b e^{-i\theta}f(t) dt=\Re\bigg(\int_a^be^{-i\theta}f(t)dt\bigg)$$  Would this not imply that the imaginary part of the left hand side is equal to $0$? I'm not sure why the LHS and RHS would be equal here.


I'm adding a class with addClass() to an element the user clicked on with  $('.question').click(function() {     $(this).next('.answer').slideDown();     $(this).addClass('open');     $(this).next('.answer').siblings('.answer').slideUp();     $(this).siblings('.question').removeClass('open'); });   This works fine. But now I will get the element with class="open" in order to slideUp() the answer below. But I can't get it to work. I tried  $('.open').click(function() {     $(this).next('.answer').slideUp();     $(this).removeClass('open'); });   and  $('.open').on('click' function() {     $(this).next('.answer').slideUp();     $(this).removeClass('open'); });   Do you have any advice?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


How would i extract anchor href of given HTML, based on image src?  Example:       In this case i would need to get link of linked image with src of 2.gif. That would be anchor that has href http://iwantthis.com

I would like to create a page where all images which reside on my website are listed with title and alternative representation.  I already wrote me a little program to find and load all HTML files, but now I am stuck at how to extract src, title and alt from this HTML:  <img src="/image/fluffybunny.jpg" title="Harvey the bunny" alt="a cute little fluffy bunny" />  I guess this should be done with some regex, but since the order of the tags may vary, and I need all of them, I don't really know how to parse this in an elegant way (I could do it the hard char by char way, but that's painful).


I've done this before on my machines, but this one belongs to my wife! I usually have success, but sometimes it turns in to a time consuming nightmare. EDIT How about this for safety?  Buy new small drive Install Linux OS with only new drive connected Run this way to get accustomed Connect both drives and modify Windows boot manager to point to new drive as a secondary choice. /EDIT  Computer is ACER desktop ATC-605-UB11 HD has only one partition large enough for an OS. I tried running MINT from the USB stick and it worked great. Also would like GRUB to default to Windows at least in the beginning. Should I use windows partition tool or Ubuntu. Thanks! Stan

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I am looking for an animated series I watched when I was little, beginning of the 2000's. I think it was on one of the channels offered by Canal+ (French encrypted television channel).  It was a western-style animated series, in a post-apocalyptic setting. For all the following points, I am not sure if they are true or not, as I was quite young:   the hero is a badass guy that flies a red plane; he is recruited/asked/? by the city of the good people; the prince of this city looks very similar as the prince of the city of evil people; it is revealed later that they have the same mother, and are half-brothers; the king/chief/? of the evil people has orange or yellow eyes.   I am not sure anymore for any of this and every time I ask around, nobody knows about this series.

I watched this cartoon in the '90s or early 2000s and believe that it is American. I remember that the story was about the world after an asteroid impact. An important detail is that uranium/plutonium somehow stops working, thus no nuclear power. Therefore, there was always a struggle for energy.  There was a kind of world government with strong governors (maybe on continental level). However, some evil warlord with its rebels (in red, maybe) ruled in a forbidden zone. The last thing I remember is that the protagonist (I forgot about him) discovered that another impact might occur soon.  Sorry for the few details but I looked in all blogs, wikis and IMDb lists and cannot find it.


Pro tempore moderators are chosen very early, and then they almost 100% of the time remain in power until graduation, which can take several years.  Have people thought about allowing pro tem moderators to change every year or so?    I also tried asking an SE employee about it more than a month ago here:        But never got an answer.

One or more of the following things happened to me on a Stack Exchange site:   My post(s) were wrongly deleted or locked by a moderator A moderator posted a wrong comment on one of my posts I was suspended, but did not do anything wrong I asked a meta question, but the question was closed and/or deleted A moderator discredited me in public ...   I think a moderator has abused their power, but I feel powerless against them.  What recourse do I have now? What can I do when I feel that a moderator has abused their power, and has been repeatedly unfair in their dealings with me?


Update So I've done some of my own work on transformational methods, and the best I can get is what I call an s transform as detailed in this workbook; however, various attempts at trying to mean adjust on the Summary page show that sometimes the values get fudged/overlap each other at .5...    Update: On further thought, the Monte Carlo method has seemed to fail me.  I was able to derive the integral of the dataset, but it's mean is not .5..  This is in the realm of data normalizing.  Here's a work in progress; I did borrow some ideas from integrals.    Update: People marking questions as duplicates ruins any new chance of conversation on a re-clarified topic, therefore, I deleted the old question.  It was suggested that this is the possible solution:    but I disagree.  I am not using random sampling.  I have the entirety of the data set.  This is not an me observing variables, but rather have a dataset and would like to transform it using said methods and then mean adjust the final output to .5  Update I now agree I can use the monte carlo simulation concept.  I just have to supply the entirety of my data set.  ...[deleted]  This was also suggested as a solution Scaling a Series of Numbers   but rank (and I have a method called Empircal Cumulative Distribution Function) ignores the size of the distance between elements. This is maybe where it's "not possible".  Maybe what I'm expecting isn't possible and can only be achieved with such a ranking function which destroys any individual distance between values.  Original Post:  I've figured out how to do a minmax transformation to achieve normalized data from 0 to 100%  Basically  (x-min)/(max-min)   However, it's mean can be anywhere, and not near 50% like I want.  I've kind of carried my transformation further, and decided to do a minmax transformation around average like so  if x <= average value = (x-min)/(average-min) else (x-average)/(max-average)   I do a follow transform around median  if x x<= median (x-min)/(median-min) else (x-average)/(max-average)   What this does is achieves a nice transformed distribution around .5 mean.  Not quite .5 though.  I can apply this concept to an entire matrix of values, and achieve quite pleasant normalized data that I can start to use on an nth Dimensional Problem.  However, one thing that bothers me, and causes issues down the line when combining these nth Dimensions together for an average of values...  My mean is never quite .5  Is there a way I can transform the data proportionally and achieve a .5 mean by still keeping the values that are above 50% above 50% and those below below?  I had an idea to do this using ratio's  I took the weighted ratio's of  1, 2, 3 NumOfElements = 3 sum = 6  1/6 = .166 2/6 = .33 3/6 = .5  Sum of ratio's = 1  Average of Sum = .333  If I wanted a .5 average, I would multiple each % by the NumOfElements 1/6*3 = .5 2/6*3 = 1 3/6*3 = 1.5 average = 1 desired average = .5 Divide by 2 (universal rule) achieve's .5 mean.   However... this doesn't respect my upper boundaries.  Applying such logic to my distribution merely factored up all the values, which probably could have been derived easier  by measuring the difference between the sum of the data elements compared to: .5 * number of elements, and factor up accordingly.  However, I don't want to factor "up" from 100%, and I have the problem of having normalized two sides of my data using different minmax anchors...  So, I figured.  If I could do one half in this fashion (<50% values) and the other half (>50%) using some method, maybe I can still achieve a .5 mean normalized mean.  Old Solution to the problem I would recursively do a  mean adjust from the difference of the matrix's mean from .5  ex... x= x + difference  That would give me a .5 mean.  However, it has the added affect of moving my min and max outside of 0 and 100% respectively, I would then just do another minmax around 50%.

Suppose I have 30 numbers that vary between 0 and 1.0 and which sum to 1.0.  The mean is obviously 0.033.  A client wants these scaled to lie between 0 and 1.0 but to have a mean of 0.5.  By the way, I'll probably have to do this for any set of numbers (positive, negative, outside the range 0 - 1) so that they lie in the range 0 - 1 and have a mean 0.5.  Any suggestions?


$$\lim\limits_{n\to\infty}(\sqrt2-\sqrt[3]2)(\sqrt2-\sqrt[4]2)(\sqrt2-\sqrt[5]2)\cdots(\sqrt2-\sqrt[n]2)$$  Could you tell me how to approach this kind of question? How do I find the limit of this sequence?  I know that for very large $n$ the each bracket is more than $1$, so my guess is its going to infinity, how do I prove such a thing?

I need to find:      $$ \lim_{n \to \infty } (\sqrt{2}-\sqrt[3]{2})(\sqrt{2}-\sqrt[4]{2})(\sqrt{2}-\sqrt[5]{2})\cdot \cdot \cdot (\sqrt{2}-\sqrt[n]{2})  $$   So far, I think that $0<\sqrt{2}-\sqrt[n]{2}<1$, and it seems to me that the limit will approach zero but I can't figure how to show it mathematically.


there are two arrows I need to show in my tikz picture, meaning: a). From A cannot get B; b). B can be derived from A, but not the other way around.   \draw[->] (a) -- (b) can get a normal arrow, but what's the command to get these special arrows?

I'm trying to draw two arrows between nodes as follows:  A ------> B   <--/---   The arrows should be parallel, in opposite directions but not on top of each other. (I can bend the arrows but that's not what I'm after.)  What's the cleanest way to do this in TikZ? And can I have just one of the arrows "struck out" as in the example?


Is there a keyboard shortcut to accept a meeting invite in Outlook 2007 (or another edition)?  If so, what is it?

I am quite proficient with the keyboard and try to only use the mouse when necessary. Given that context I was very familiar with the shortcut keys in MS Outlook 2003 and never needed to use the mouse to use that product. Now my company has recently upgraded to MS Outlook 2010 and I am finding it impossible to operate it without having to use the mouse. In particular replying to meeting requests with the old shortcut keys no longer seems possible.   I have held down the ALT key and sometimes it shows some shortcuts on the ribbon but this seems to be limited to ALT+H which tends to alternate between designating "Accept" and "Tentative" without any keys for the other options. Also as this appears to switch between "Accept" and "Tentative" one can't even use this consistently without first having to check what it means for each particular instance.  Any help with this would be greatly appreciated!


As the title shows I found the following:  1 direct return flight HK->Vancouver-> HK, priced at HKD 10600  and  1 return flight HK-> Vancouver -> Seattle -> Vancouver -> HK, priced at 5200 HKD  How is that possible? I understand Air Canada might want to compete with different American airlines that are able to service Seattle but I saw the same weird pricing offered by Korean Airlines and other non Canadian/non American airlines.   My question is this: With the 1-stop flight, can I get off in Vancouver and not partake in the 2nd leg of the journey? Can I collect my suitcases at Vancouver even if the final stop is Seattle? Even more important, on the way back to Hong Kong, can I board the flight in Vancouver instead of in Seattle?   I am just wondering because despite all potential reasons of price discrimination, and other marketing techniques that may attempt to explain this price discrepancy, I find no logic in how those 2 different flights are priced at all. Can someone explain?  Thanks      Here the flight with 1 stop , 1/2 price, and the first leg being the exact same as the direct flight.

Usually I find a flight I like that uses one or more connections with the same or different companies. In these cases, if the distance between the first and the second connection is not too large, I prefer to go by bus or train and then take the flight. The problem is that sometimes it is more expensive to take the flight in the second airport than to take the flight from the first one. I mean, I'm wondering why sometimes it is more expensive to take only a flight than to take the same flight and another one.  A practical example (and real, you can check with SkyScanner). Imagine I am in Madrid (Spain) and would like to go to Rio de Janeiro (Brazil) on April 1st. The cheapest flight I have found is this:     TAM airlines: MAD -> GRU -> GIG : 507 €   Fantastic! GRU is one of São Paulo's airports. That's perfect for me! I'll go on to Rio traveling overland. But then, I look for this flight (MAD -> GRU, non-stop):     TAM airlines: MAD -> GRU : 597 €   It's the same flight, 90 € more expensive! I've found this kind of behavior a lot of times and I'm intrigued to know why it happens.


I have the following string: XXXX.C.2.0.1  how do I extract just the "C"?  thanks

Suppose I have a field that contain the following data:   ========================== |  Email Address         | ========================== | Jack@wonderland.com    | | Peter@nobodyland.com   | | Jill@wonderland.com    | ==========================   Is there a calculated formula in SharePoint that will give me the following result? (It will help me to retrieve the sub-string from the Email Address column and give me the answer as shown in the UserName and Domain column):   =========================================================== |  Email Address         |  UserName  |      Domain       | =========================================================== | Jack@wonderland.com    |   Jack     |   wonderland.com  | | Peter@nobodyland.com   |   Peter    |   nobodyland.com  | | Jill@wonderland.com    |   Jill     |   wonderland.com  | ===========================================================


I have extruded a plane, and I did this all from the front-view.  I am not sure how this could be happen, but when I switch to side-view, I can see that the plane was also moved on some other axis.  It is not an even plane anymore. Can somebody tell me how to bring it back to one level again and perhaps also tell me how to avoid something like this in the future? Thank you! ps: And if somebody could also tell me how to bring the leftmost vertices to one level on the blue axis to allow for mirroring, I would be very thankful as well! Thank you.

If you have a cluster of points selected like this:    how do you align the points so that they create a flat plane?


I'd like my web app to log into files with this path: webapp/logs/  I can set the absolute path in the log4j.properties file, but the production environment's directory structure will be different.  Is there any way I could do it?   Here is how I do:  log4j.appender.f=org.apache.log4j.RollingFileAppender log4j.appender.f.layout=org.apache.log4j.PatternLayout log4j.appender.f.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n log4j.appender.f.File=log.out log4j.appender.f.MaxFileSize=100KB   This is printing logs into a file named log.log in my eclipse directory (c://eclipse). I'm using Tomcat 6.

I have a java webapp that has to be deployed on either Win or Linux machines. I now want to add log4j for logging and I'd like to use a relative path for the log file as I don't want to change the file path on every deployment. The container will most likely be Tomcat but not necessarily.  What's the best way of doing this?


When I run sudo apt update, I get a 404 Not Found error:  me@K2SO:~$ sudo apt update Ign:1 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  InRelease Hit:2 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  Release                                                                                Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                Hit:4 http://packages.microsoft.com/repos/vscode stable InRelease                                                                                Hit:5 http://security.ubuntu.com/ubuntu disco-security InRelease                                                                                Hit:6 http://us.archive.ubuntu.com/ubuntu disco InRelease                                                                                Hit:7 https://updates.signal.org/desktop/apt xenial InRelease                                                                                Hit:8 http://dl.google.com/linux/chrome/deb stable Release           Hit:9 http://us.archive.ubuntu.com/ubuntu disco-updates InRelease    Hit:11 http://ppa.launchpad.net/samoilov-lex/sway/ubuntu disco InRelease Hit:12 http://us.archive.ubuntu.com/ubuntu disco-backports InRelease Ign:13 http://ppa.launchpad.net/simonschneegans/testing/ubuntu disco InRelease Hit:15 http://ppa.launchpad.net/snwh/ppa/ubuntu disco InRelease Err:16 http://ppa.launchpad.net/simonschneegans/testing/ubuntu disco Release   404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/simonschneegans/testing/ubuntu disco 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.   It's my understanding that 19.04 is still currently supported, and there's nothing else to upgrade to. I tried using the solution , but that's way back from 2014, and it didn't work.   How do I fix this error?

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


I have a SP that I can't share the entire contents of, but I'll do my best to facilitate test queries. The context: we had been running on compat level 100 up until this week when I changed the level to 130. It was only after that happened that we started to see the ol' conversion error (see bottom of post) whenever trying to run the SP. I was pretty floored by that so to compare I dropped the DB to level 100 and sure enough it worked. I am currently working in a restore db with level 130 to debug this. I have also seemingly narrowed down the part of the SP that's causing trouble, and I am STUMPED. You can see the query below. When running this by itself outside of the SP, there is no issue at all, and the query completes. I have also found that commenting out/removing the ORDER BY allows the query to run without issue in the SP. This doesn't make any sense to me. My understanding is that the ORDER BY statement is the very last thing to be executed, so any values used in the order by have already been filtered down. Additionally, in the case that I am testing the whole SP in, there is only one row, and it does indeed convert to a datetime. I have tried a number of things like aliasing the column and using the alias in the order by. I have tried putting everything but the top and the order by in a subquery and then using the outer query to filter down to the top 1. I have tried using CAST instead of CONVERT. I have tried converting to DATE instead of DATETIME. What does seem to work is using a subquery with a ROW_NUMBER() window and then using the row num to filter in an outer query. This feels inelegant and is extra work for the engine to perform, so I would like to figure out the why. FYI: the below query is using the exact value ('2020-12-29') that is being used when the error is thrown. This is also the only value being used. declare @cycle_date table(result varchar(200) )  insert into @cycle_date values('2020-12-19')  select top 1 convert(datetime,result) from @cycle_date where isdate(result)=1  order by convert(datetime,result)   Conversion failed when converting date and/or time from character string. Any help with this is greatly appreciated. Thanks! Quick edit: I also did try converting and casting to DATETIME2, as well. No dice.

I'm using a CTE to convert SSRS stored proc's into BO stored proc's, as apparently I can't use temp tables with Business Objects.  I'm having this query:  ;WITH cte1 AS (      SELECT  cv.issue             , cv.customfield             , CAST(STRINGVALUE AS NUMERIC) AS priority_num       --INTO    #temp_priority_val       FROM    proddb1.customfieldvalue cv WITH (NOLOCK)               INNER JOIN proddb1.customfield e WITH (NOLOCK)                  ON  cv.CUSTOMFIELD = e.id                   AND e.cfname = 'Issue Priority')    ,cte2 AS (      SELECT  a.ISSUE             , f.customvalue priority_num       --INTO    #temp_priority       FROM    cte1 a              INNER JOIN proddb1.customfieldoption f WITH (NOLOCK)                  ON  a.CUSTOMFIELD = f.CUSTOMFIELD                          AND CAST(a.priority_num AS NUMERIC) = f.id)   SELECT * FROM cte2    I keep getting an Error converting data type nvarchar to numeric. error on this execution.  The priority_num column is an nvarchar column that is CAST in the first CTE. When I execute this within the original statement that had the temp tables it works perfectly fine. It must be something with the CTE scope?


When a user types, the text is turned into an array, separated by " ". A
 element is created and occupied by one
 for each member of the array, each containing its respective word. These are given the class list-group-item-danger by default, as in Bootstrap. When clicked, this class should be removed and replaced with list-group-item-success.  There is a default
 element. The
 members within it respond as expected, with the colour changing when clicked. However, once those are removed and the dynamically created
 elements are inserted, they no longer function and remain with the list-group-item-danger class which they already had.  HTML:

                     <input id="wordsearch" type="text" class="form-control wordsearch" placeholder="" />                                                                    <button class="btn btn-default" type="submit">                                                      </button>

Your

words

appear

here

as

you

type.

   CSS:  .word-filter li{     display: inline; }   JQuery:  $(document).ready(function() {     $('#wordsearch').keyup(function() {         var inputVal = $('#wordsearch').val();         var inputs = inputVal.split(" ");         var ul = document.createElement("ul");         ul.setAttribute("class", "list-group word-filter");         $(inputs).each(function() {             var li = document.createElement("li");             li.setAttribute("class", "list-group-item list-group-item-danger");             li.appendChild(document.createTextNode(this));             ul.appendChild(li);         });         $('#wordFilter').empty();         $('#wordFilter').append(ul);     }); /* Colour Switching Function */     $('div#wordFilter ul li').click(function() {         if($(this).hasClass('list-group-item-success')) {             $(this).addClass('list-group-item-danger');             $(this).removeClass('list-group-item-success');         } else {             $(this).addClass('list-group-item-success');             $(this).removeClass('list-group-item-danger');         }     }); });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


When editing a post using the e shortcut (but not the Edit link) on sites where you don't get taken to a separate /edit page to edit posts (I'm not sure what this feature is supposed to be called), a weird shadow appears around the edit UI:  This also occurs on other sites where the page-integrated editor thing is not enabled, but the shadow appears only very briefly before the page changes:  Here's also what it looks like when using the dark mode on Stack Overflow:  I'm using Firefox 90.0b6 on Linux. I have reproduced this with no extensions/userscripts enabled.

So when you use the comment shortcut C, you get the comment box appearing. However, you will get a weird black box.  Here's a picture of before:           And afterwards:           And after reloading, it disappears! This seems weird.  And after looking at the HTML, this seems to be the problem:  <div data-questionid="260187" id="question" class="question keyboard-selected">   After removing the class attribute, the box goes away.


Somebody commented:  That's not elegant?  But the notification says:  That's not elegant.   And the real comment:

At the moment, I have the latest notification in the global inbox, content of which does not correspond either to the comment itself or the copy of it on "recent responses" page. This seems like the comment was edited and the updated version was not copied to the global inbox.    ETA: OK, now this looks more coherent.


I have known a theorem from the link   The theorem is that a polynomial of odd degree has a root.But I don't know its proof.Can anyone prove it with intuition.

I want to prove that every real polynomial of odd degree has at least one real root, using  the intermediate value theorem.  Let $P(x) = x^{2n+1} + a_n x^{2n} + . . . + a_0$ for each $a_i \in \mathbb{R}$ and $n \in \mathbb{N}$.  By the fundamental theorem of algebra I know that $P(x)$ has exactly $2n+1$ complex roots, so  $P(x) = (x+r_1)(x+r_2) . . . (x+r_{2n+1})$ for each $r_i \in \mathbb{C}$  I do not know how to complete this but I do know that, at some point, I probably have to show that each root with imaginary part non zero has to come in conjugate pairs, and since $2n+1$ is odd there is at least $1$ root that is imaginary part $0$ and thus real.


How do I make the dimensions added using MeasureIt appear in a final render?

Trying to figure out how I can get the mesurment tool in blender 2.8 to render with my image?


Say I use a spell that requires target to make a DEX save or take 2d6 fire dmg. What would I compare that creatures DEX save to?   Example: I cast a spell that says, "Target creature makes a DEX saving throw, if fails, take 2d6 fire dmg". What would I compare the targets DEX roll to?

I'm a pretty new player, and I'm building a bard in D&D 5e. I understand how saving throws work in general, but I am a little confused about one thing. Say I cast Blindness/Deafness on a humanoid. They must then make a Constitution saving throw. My question is: what value do they have to roll in order to make the save? Does their roll (plus their constitution modifier) have to beat my constitution (plus my modifier)? This is more of a general player question than one specific to the Bard or that spell.


is there any limits on maximum number of reputations earned per day. if there is limit, what happens if the user crosses that limit. Will it be given on the next day or it will cancelled ?

I was watching the top users and saw the honourable  with his 136k+ 558k+ 1M reputation. This man has a lot of quality posts and I respect him a lot. He deserves the reputation he has, like a lot of other people here.  How do you get over 200 reputation points/day, though? Taking a sample of Jon Skeet's profile, we can read that over a course of 54 days he managed to gain 13,076 reputation points.   Now, if we do the maths on that:   13076 ÷ 54 = 242 reputation points/day.  How can someone have 242 reps/day when the limit is 200?   (This question was originally floated by )  This question has led to a humorous .


I have a db and I've saved some persian terms like "کامپیوتر" in it. They are saved without any problem. But when I want to fetch them from db with $_GET method, they are not what I saved before and I see "?????" instead of them. I encoded all of my .php and .html to utf8 format, but the problem was not fixed. I will appreciate if you help me fix it ...

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I am hitting an issue and want some help in one more.  Below is my code block -  public Date addDays(Date date, int days)     {         Calendar cal = Calendar.getInstance();         cal.setTime(date);         cal.add(Calendar.DATE, days); //minus number would decrement the days         return cal.getTime();     }   StartDate = "02/06/2016"; DateFormat df = new SimpleDateFormat("mm/dd/yyyy"); for (int i=0; i < 90; i++) {                 try{                     rawStartDate = df.parse(StartDate);                     formattedStartDate = df.format(rawStartDate);                     String timeBookedForPerDay = startHour + ":" + startMin + ":" + startSlot + "-"                             + endHour + ":" + endMin + ":" + endSlot;                     bookedFor.put(formattedStartDate, timeBookedForPerDay);                     rawNextDate = addDays(rawStartDate, 1);                     StartDate = df.format(rawNextDate);                 }                 catch ( Exception ex ){                 }             }   Now the issue i am hitting is, till the time the month is february adding one day is working fine iteratively. However when the month should change, it starts iterating on the same month.  Also adding the day to the date is not taking care of the number of days in month i.e. 29 in Feb and 31 in march.  Any pointers, what can be a better way.  Output is (Truncated a bit) -  ***Start Date***03/01/2016 ***Start Date***03/02/2016 ***Start Date***03/03/2016 ***Start Date***03/04/2016 ***Start Date***03/05/2016 ***Start Date***03/06/2016 ***Start Date***03/07/2016 ***Start Date***03/08/2016 ***Start Date***03/09/2016 ***Start Date***03/10/2016 ***Start Date***03/11/2016 ***Start Date***03/12/2016 ***Start Date***03/13/2016 ***Start Date***03/14/2016 ***Start Date***03/15/2016 ***Start Date***03/16/2016 ***Start Date***03/17/2016 ***Start Date***03/18/2016 ***Start Date***03/19/2016 ***Start Date***03/20/2016 ***Start Date***03/21/2016 ***Start Date***03/22/2016 ***Start Date***03/23/2016 ***Start Date***03/24/2016 ***Start Date***03/25/2016 ***Start Date***03/26/2016 ***Start Date***03/27/2016 ***Start Date***03/28/2016 ***Start Date***03/29/2016 ***Start Date***03/30/2016 ***Start Date***03/31/2016 ***Start Date***03/01/2016 ***Start Date***03/02/2016 ***Start Date***03/03/2016 ***Start Date***03/04/2016 ***Start Date***03/05/2016 ***Start Date***03/06/2016   Any suggestions or pointers or any duplicate question i can refer?  Thanks,  AJ

I'm working with a date in this format: yyyy-mm-dd.  How can I increment this date by one day?


My tables are all formatted like this:  \begin{table}[t]     \centering      \begin{threeparttable}         \caption{\label{tab:<my label>}<my table title>}         \small%         <the actual table>         \begin{tablenotes}[para,flushleft]                        \footnotesize{<the table notes>}         \end{tablenotes}          \end{threeparttable} \end{table}   I'd like to create a new environment (it's the first time I do that!) in order to type only the parts indicated within <...>.  I tried this, but it doesn't work:  \documentclass[11pt,openright]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=3cm,bmargin=3.5cm,lmargin=4cm,rmargin=3cm,marginparwidth=70pt} \usepackage{comment} \usepackage{prettyref} \usepackage{setspace} \usepackage{fancyhdr} \usepackage[normalem]{ulem} \usepackage{setspace} \usepackage{bigstrut} \usepackage{array} \usepackage{booktabs} \usepackage{tabularx} \usepackage{dcolumn}  \usepackage{multirow} \renewcommand{\multirowsetup}{\centering}  \usepackage[para,flushleft]{threeparttable} \usepackage{makecell} \usepackage[margin=10pt,font=small,labelfont=bf,labelsep=period,format=hang,indention=0cm]{caption} \captionsetup[table]{position=above, belowskip=4pt}  \newenvironment{tabella}[3]{%before     \begin{table}[t]     \centering      \begin{threeparttable}[b]     \caption{\label{tab:#1}#2}     \small } {%after     \begin{tablenotes}[para,flushleft]             \footnotesize{#3}     \end{tablenotes}          \end{threeparttable}     \end{table} }  \begin{document} % Example of working table without new environment \begin{table}[t]     \centering      \begin{threeparttable}         \caption{\label{tab:mytab1}Example without new environment}         \small%         \begin{tabular}{@{}ccc@{}}             \toprule              \addlinespace             Ducks  & Lions & Penguins\\             \addlinespace             \midrule             1& 2& 3\\             Quack & Roar & ?\tnote{a}\\             \bottomrule         \end{tabular}         \begin{tablenotes}[para,flushleft]                        \footnotesize{\item[a] What is the call of the penguins?\\\emph{Source}: blah, blah, blah.}         \end{tablenotes}          \end{threeparttable} \end{table}  % Example of not working table with new environment \begin{tabella}{mytab2}{Example with new environment}     {\item[a] What is the call of the penguins?\\\emph{Source}: blah, blah, blah.}     \begin{tabular}{@{}lll@{}}         \toprule          \addlinespace         Ducks  & Lions & Penguins\\         \addlinespace         \midrule         1& 2& 3\\         Quack & Roar & ?\tnote{a}\\         \bottomrule     \end{tabular} \end{tabella}  \end{document}

Environments are allowed to have arguments, but reference to those arguments can only appear in the opening code of the environment, and not the closing code.  What is the reason for this, and are there preferred ways around it?  e.g.  \newenvironment{foo}[1]% {some code #1} % allowed {some code #1} % not allowed


Let $f:R\to R$ a polynomial from degree $n\in N$, such that $f(x) \ge 0$ for all $x \in R$.       1.) Explain why n is even.      2.) Let $g= f+f'+f''+...+f^{n}$ (where $f^{k}$ is the kth derivative). Prove that g has an absolute minimum on R.      3.) Prove that $g(x)\ge 0$ for all $x\in R$   1.) Given the function is $\ge 0$ means that the leading coefficient is positive. Using limits, when x approaches $ \pm \infty $ for even polynomials, the limit is $\infty$.   Since f is a polynomial, f is continuous on all R.  When x approaches $\pm \infty$ for odd polynomials the limit is $\pm \infty$ and from the intermediate value theorem, f(x) must take on every value in-between $\pm \infty$, therefore exists c such that $f(c) \lt 0$ which is a contradiction to what we were given.  2.) Again, g is a polynomial of an even degree. How to solve this is beyond me.  3.) Again, not sure where to begin.  Id appreciate any help.

I can't solve this problem:  Suppose $f$ is polynomial function of even degree $n$ with always $f\geq0$.  Prove that $f+f'+f''+\cdots+f^{(n)}\geq 0$.


When going to a physics camp the other day, we discussed the Schwarzchild-metric for a rotational symmetric non-spinning black hole and its famous time-dilation properties.  However, we know that black holes, after really quite a while, begin to evaporate and eventually disappear completely. Now, given that as you get closer and closer to the singularity, your time dilation with respect to the outsider's reference frame increases unboundedly - could it be possible for the blackhole to completely evaporate before you actually reach the singularity?  Would this not be true for ALL matter which falls into a blackhole?

I am not a professional physicist, so I may say something rubbish in here, but this question has always popped in my mind every time I read or hear anyone speak of particles hitting singularities and "weird things happen".   Now to the question at hand, please follow my slow reasoning... As far as I've learned, to reach a black hole singularity, you must first cross an event horizon. The event horizon has this particular property of putting the external universe on an infinite speed to the falling observer. Now due to the Hawking radiation, and knowing that the cosmic background radiation is slowly dimming, sooner or later every black hole in this particular instance of inflation we are living in will evaporate, according to an external observer of said black holes.  This means that every black hole has a finite timespan, as long as this universe survives that long. Now if we go back to the falling observer, we had already established that such an observer would see the outside universe "speed up" infinitely. This means that when the falling observer "hits" the event horizon, he will (or it if we speak about particles, which is clearer in this case), be immediately transported in time towards the final evaporation moment of the black hole. Either this or the particle gets some weird treatment. My point is, such a particle never gets to the singularity, because it has no time to get to it. The moment it crosses the event horizon, the black hole itself evaporates.  Where am I wrong here?


Why we use exactly 50 Hz and 60 Hz, instead of 100 Hz or even 400 Hz  1-is it for light  2-is it for the speed of ac motors  Can I use a machine that work in 50 Hz ac network, in 60 Hz network    This picture shows a motor of 15 KW 220-230V /50HZ this motor run a water pumpe My question is: can this motor work in 60 Hz network without damage Will it's speed increase

It just struck me that Utility Companies world-wide supply domestic users at either 50/60Hz. It could have been selected to be 10 Hz, or 100 Hz ... whatever  Was 50/60 chosen at random? Is there some rationale involved (efficiency, easier to construct/control etc) in restricting domestic supply to either 50/60 Hz?  In other words, if I were designing a power system, why would I pick 50/60 Hz instead of some other frequency?


Here is how it looks like, the more I rotate my view, the more it gets like this. I think it has to do with my video card but I'm not sure... I have a radeum rx580

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


I'm trying to hide/show iteration header based on screen resolution. Need the header to be hidden at low resolutions.  I'm not sure if my approach is right.  Markup  <div class="hideinlowres">      header text! </div>   CSS  .THIS {       .hideinlowres{       display: block ;       @media only screen and (min-width: 30em) {         display: none;       }     } }   This has a parser error. What would be the correct way to hide the Lightning component div based on resolution.  Appreciate any help on this.  Thanks.

I am using style attribute to use media queries in lightning components something like this:  <style>   .legendBox {     background: none!important;     min-height: 50px;     padding: 5px 0px;     position: absolute;     width: 90%!important;     left:9%;     margin-top:-15.25%!important;     border:0px!important;   }    .bootstrap-sf1 .pre-scrollable {     max-height:none!important;                   overflow:none!important;   }  </style>   My question is how to use these media queries in css section of lightning component. If possible please suggest the method as I am trying to submit the code for security review. Will it fail there?


I'm trying to extract every character following a specific string. I can get this to work on regular expression testers such as Pythex (if there's a good regex expression tester for R, let me know). I'm trying to get every character after "100" in the following string: \nDec\n\n\n\n\n\n\n8238\n\n\n\n \n                                    \n\n1st \n\n\n100\n\n\n\n\n\n\n\n10.40\n (1.5) \n\n\n\n1st\n\n\nLJ\n\n\n\n\n\n\n\n7.47m\n (1.4) \n \n\n24' 6.25\"\n\n\n\n\n3rd\n\n\nSP\n\n\n\n\n\n\n\n14.41m\n \n \n\n47' 3.5\"\n\n\n\n\n2nd\n\n\nHJ\n\n\n\n\n\n\n\n1.85m\n \n \n\n6' 0.75\"\n\n\n\n\n9th\n\n\n400\n\n\n\n\n\n\n\n46.78\n \n\n\n\n1st\n\n\n110H\n\n\n\n\n\n\n\n13.98\n (1.9) \n\n\n\n1st\n\n\nDT\n\n\n\n\n\n\n\n39.91m\n \n \n\n130' 11\"\n\n\n\n\n8th\n\n\nPV\n\n\n\n\n\n\n\n4.70m\n \n \n\n15' 5\"\n\n\n\n\n4th\n\n\nJT\n\n\n\n\n\n\n\n55.71m\n \n \n\n182' 9\"\n\n\n\n\n5th\n\n\n1500\n\n\n\n\n\n\n\n4:23.57\n \n\n\n\n1st\n\n  On sites such as Pythex, I'm able to capture everything that comes after 100 (). However, when I try using stringr's str_extract, I only receive "" as an output dec_res <- "\nDec\n\n\n\n\n\n\n8238\n\n\n\n \n                                    \n\n1st \n\n\n100\n\n\n\n\n\n\n\n10.40\n (1.5) \n\n\n\n1st\n\n\nLJ\n\n\n\n\n\n\n\n7.47m\n (1.4) \n \n\n24' 6.25\"\n\n\n\n\n3rd\n\n\nSP\n\n\n\n\n\n\n\n14.41m\n \n \n\n47' 3.5\"\n\n\n\n\n2nd\n\n\nHJ\n\n\n\n\n\n\n\n1.85m\n \n \n\n6' 0.75\"\n\n\n\n\n9th\n\n\n400\n\n\n\n\n\n\n\n46.78\n \n\n\n\n1st\n\n\n110H\n\n\n\n\n\n\n\n13.98\n (1.9) \n\n\n\n1st\n\n\nDT\n\n\n\n\n\n\n\n39.91m\n \n \n\n130' 11\"\n\n\n\n\n8th\n\n\nPV\n\n\n\n\n\n\n\n4.70m\n \n \n\n15' 5\"\n\n\n\n\n4th\n\n\nJT\n\n\n\n\n\n\n\n55.71m\n \n \n\n182' 9\"\n\n\n\n\n5th\n\n\n1500\n\n\n\n\n\n\n\n4:23.57\n \n\n\n\n1st\n\n"  > str_extract(dec_res, "(?<=100).*") [1] ""  Is my issue that I don't know R-specific regex syntax? Or, is this a particular behavior of str_extract?

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


I can't find display mode in 2.8x versions. In older versions when you hit the render button from the navigation there was a display mode option. Now it's gone.   Where can I find it?

In 2.7x and earlier we have .  The setting can still be set via the python api (bpy.context.scene.render.display_mode), but I can't seem to find it in the gui anywhere. Is it still there? If so, where is it?


Given $$u (\lambda) d\lambda = \frac{8 \pi hc \lambda ^{-5}}{e^{\frac {hc}{\lambda k t}}-1}d\lambda,$$ I want to convert this into frequency form $u(\nu)d \nu$. Basically, I want to covert the amount of energy in a wavelength $\lambda \to \lambda + d\lambda$ to the corresponding expression from $\nu \to \nu + d\nu$. I know that $\nu = \frac{c}{\lambda}$ and to replace this in the denominator, and I know that $d\nu = -\frac{c}{\lambda^2}d\lambda$, but I can't make the formula come out right. What am I missing?

I am drawing a blank when it comes to equation transformation. Wikipedia  for the spectral radiance of black body:   First as a function of frequency $\nu$: $$I(\nu, T) = \frac{2 h \nu^3}{c^2}\cdot\frac{1}{e^\frac{h \nu}{k T} - 1}$$ Then as a function of wavelength $\lambda$ : $$I'(\lambda, T) = \frac{2hc^2}{\lambda^5}\cdot\frac{1}{e^\frac{h c}{\lambda k T}-1}$$   And I don't see how they get $\lambda^5$ term. I'm assuming that the transformation is just $\nu \rightarrow c/\lambda$, but that gives $$ \frac{2 h \nu^3}{c^2} \Rightarrow \frac{2 hc}{\lambda^3} \neq \frac{2hc^2}{\lambda^5} $$  Similar transformation happens at other parts in the article also. I'm obviously missing something, likely completely trivial.


I am working on some elementary group theory problems and one of them states:  "Show that an infinite group $G$ has to contain a non-trivial subgroup, i.e. a subgroup $\neq G$, {$e$}."  My process:$$G:\{a,b,...,e,a^{-1},b^{-1}...\}$$  So a possible subgroup could be $$G_{s}: \{a,a^{-1},e\}$$ Since $$a*a^{-1}=e$$ $$a*e=a$$ $$a^{-1}*e=a^{-1}$$ are all contained within the subgroup.  Is this approach valid? I feel like I'm missing something...  EDIT: Totally forgot about $a*a$, could anyone give me any hints on how to approach this problem?

Let $G$ be a non-trivial group with no non-trivial proper subgroup. Prove that $G$ cannot be infinite group.  A hints is given as order of G is not infinite since $a$ and $a^{-1}$ are only generators. I know that infinite cyclic group has only two generators. But don't know how to prove the problem.


Which sentence is correct:  1. Do you know what temperature it is outside?  2. Do you know what the temperature is outside?  3. Do you know what the outside temperature is?  4. Do you know what outside temperature is? I think all of them are correct except for sentence 4.  What do you natives think? Help, please 😎

What's the natural way to ask about degrees of the weather?  Can I ask: "What's the temperature?" or "What's the weather like now?" and people will understand I'm asking the degrees?  Asking "How many degrees of Celsius are now?" or "How many degrees are now?" are natural? Or maybe another way to ask appropriately what I want.


I have two hard drives on my computer; one with windows 7 which I want to keep, and one empty formatted with ntfs which I want to install Ubuntu. What file system do I put on the empty ntfs system and how do I set the partitioning/boot menu on Ubuntu to install and use both systems?

I have two hard drives. One is used for Windows and one is empty. I want to install Ubuntu on the empty hard drive. The Windows hard drive is disk0 in Windows and the empty hard drive is disk1. When I install Ubuntu and it asks where I want to install it, I choose "Something Else" but I am stuck there. What do I choose for "boot loader installation"?


Let $U_1$, $U_2$ and $U_3$ be i.i.d. $\mathsf {Uniform}[0,1]$ random variables. Find $P(U_1+U_2 > U_3)$  Here the answer states that the probability is $\frac{5}{6}$. However I am quite confused as to how we obtain such an awnser. A hint is to use conditional expectation.  Any advice or explanation is apreciated.  I saw the following link :   And the key argument was the symetry of the system.

I'm trying to follow a line in a derivation for $P(Z>X+Y)$ where $X,Y,Z$ are independent continuous random variables distributed uniformly on $(0,1)$.  I've already derived the pdf of $X+Y$ using the convolution theorem, but there's a line in the answer that says:  $P(Z>X+Y) = \mathbb{E}[\ P(Z>X+Y\ |\  X+Y )\  ]$ where $\mathbb{E}$ is the expectation.  I'm not familiar with this result. Could anyone give a pointer to a similar result if one exists?  Thanks.


I don't know, even after reinstalling the Windows the same happens - I can't change  the associated program from right click > Properties when I want to change that to Notepad++ (for others, it works).  Even after I click "OK", it still doesn't work (is not changed):    Any known bugs for this?

I would like .txt files to open with Notepad++ by default in Windows 10. I have found the options to change file associations but there is no option to specify custom programs. Here's a screen shot:    How can I make Notepad++ default program for .txt files?


I am trying to build a Tetris 3D game in Unity but I am stuck at getting the different blocks to interact (to detect each other, to sit one on top of the other rather than going through each other). I have set the ground with a box collider and the spwaned blocks come in with rigidbodies and trigger colliders. This works for them to nicely settle on the ground but when I try to sit a block on top of another block they both have kinematic rigidbodies and the collision detection doesn't work and they end up overlapping. The problem is if I remove the rigidbody of the already settled block then it will go through the ground. Any idea how to get 2 spawned objects to detect each other? using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UIElements;  public class moveBlock : MonoBehaviour {         public static float speed = 2;     public GameObject[] blocks;     public static List<GameObject> blocksSpawned = new List<GameObject>();     public static List<Rigidbody> blocksRBSpawned = new List<Rigidbody>();     public static bool triggerPlatform = true;     Rigidbody rb;      void Update()     {         Vector3 input = new Vector3(Input.GetAxisRaw("Horizontal"), 0, Input.GetAxisRaw("Vertical"));         Vector3 direction = input.normalized;         Vector3 velocity = direction * speed;         Vector3 moveAmount = velocity * Time.deltaTime;          if (triggerPlatform)         {             blocksSpawned.Add((GameObject)Instantiate(blocks[Random.Range(0, 7)], new Vector3(0, 6, 0), Quaternion.Euler(Vector3.right)));             rb = blocksSpawned[blocksSpawned.Count - 1].GetComponent<Rigidbody>();             blocksRBSpawned.Add(rb);             triggerPlatform = false;         }         /*if (!triggerPlatform)         {             Destroy(blocksRBSpawned[blocksRBSpawned.Count - 1]);         }*/         if (blocksSpawned[blocksSpawned.Count - 1] != null)         {             blocksSpawned[blocksSpawned.Count - 1].transform.Translate(Vector3.down * Time.deltaTime*speed, Space.World);             blocksSpawned[blocksSpawned.Count - 1].transform.Translate(moveAmount);         }     } }  using System.Collections; using System.Collections.Generic; using UnityEngine;  public class trigger : MonoBehaviour {         private void OnTriggerEnter(Collider other)     {         moveBlock.triggerPlatform = true;     } }

I need help with a script for a very simple car that uses transform.Translate:  public class car1 : MonoBehaviour {      public PauseMenu pause;     [Space]     public Car_Script car_s;     public float speed;     public GameObject car;      void FixedUpdate()     {          if (car_s.InCar == true)         {             if(pause.isPaused == false)             {                 if (Input.GetKey(KeyCode.W))                 {                     car.transform.Translate(Vector3.forward * Time.deltaTime * speed);                      if (Input.GetKey(KeyCode.A))                     {                         if (speed <= 0)                         {                         }                         else                         {                             if (speed > 0F && speed <= 50F)                             {                                 car.transform.Rotate(Vector3.down, 2F);                             }                             else if (speed > 50F && speed < 90F)                             {                                 car.transform.Rotate(Vector3.down, 1.3F);                             }                             else if (speed > 90F)                             {                                 car.transform.Rotate(Vector3.down, 0.9F);                             }                          }                     }                     if (Input.GetKey(KeyCode.D))                     {                         if (speed <= 0)                         {                         }                         else                         {                             if (speed > 0F && speed <= 50F)                             {                                 car.transform.Rotate(Vector3.up, 2F);                             }                             else if (speed > 50F && speed < 90F)                             {                                 car.transform.Rotate(Vector3.up, 1.3F);                             }                             else if (speed > 90F)                             {                                 car.transform.Rotate(Vector3.up, 0.9F);                             }                          }                     }                 }             }         }     } }   Whenever I drive the car it immediately goes through walls.   I have colliders on everything. The car has mesh colliders set to convex.   I've searched around quite a bit for answers and it seems that a common one is using rigid bodies. But whenever I even put a rigid body on the car, it flies out into the sky.


I have a button which is added dynamically      <button id="btnSubmit">Button 1</button>      $(document).ready(function(){     $('#btnSubmit').on('click', function(){         alert('Button 1');         var button2 = '<button id="btn2" >Button 2</button>';         $('#btnSubmit').after('

' + button2);     });      $(document).on('#btn2', 'click', function(){         alert('Button2 clicked');     });   });   Now, when I click on #btn2 the event is not detected. How can this be fixed?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I want to know if my laptop will run latest ubuntu version flawlessly. please help?  HP ENVY x360 Convertible 13-ag0xxx

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?


I'm playing minecraft with a younger player who is used to creative mode and he wants to play survival mode.   I'd like if we could attack mobs like creepers and zombies and have them not attack us.  Is there any way that would enable us to do this or something similar?

Ok, I want my character to either be ignored by zombies or unable to die (invincible). I've tried:   Adding a health scoreboard but this is uneditable  A repeating command block that gives the player instant health   effect give @a[scores={ifBeast=1..}] minecraft:instant_health 1 10  Making the player invisible (If you get close to the zombies they chase you)   None of the above work. The option that I would prefer is for the Zombies to completely ignore the player, but if I must resort to them being invincible to zombies while still getting hit (irritating) then I will accept that.


I am using the hepthesis document class, which is built on scrbook, and it produces incorrect page numbering for the following code:  \documentclass[oneside]{hepthesis} \begin{document}  \begin{frontmatter}     \tableofcontents     \listoffigures \end{frontmatter}  \begin{mainmatter}     \chapter{First Chapter}     Chapter 1 Text.     \begin{figure}         Empty Figure         \caption{My Empty Figure}     \end{figure} \end{mainmatter}  \end{document}   The list of figures ends up on page 1 not page iii. If I add \newpage, \clearpage or \cleardoublepage then the list of figures is page iii but page 1 is blank. How do I keep the list of figures numbered as with the rest of the front matter without introducing superfluous blank pages?

My problem is already stated , but I don't have enough reputation to comment on it :-/ I want to know if there are any fixes or solutions to the problem with the hepthesis class?  The last page of the table of contents is numbered with arabic numerals rather than roman numerals. Here is an MWE:  \documentclass[oneside]{hepthesis}  \begin{document}   \begin{frontmatter}     \tableofcontents   \end{frontmatter}    \begin{mainmatter}     \chapter{Introduction}       lalala   \end{mainmatter}  \end{document}


For example:  In the original publication, the last sentence of the Introduction is: “I love dogs.”. This sentence should be replaced by: “I love cats.”.

As in the following:     A common proverb is: “A rolling stone gathers no moss.”        A common proverb is: “A rolling stone gathers no moss”.        A common proverb is: “A rolling stone gathers no moss.”.   If the proverb weren't a full sentence, I would immediately put a single period after the quote, at the very end.  But if it is a sentence, which period should be removed so that there is only one period? Two periods look absolutely dorky.


How can I configure Windows 7 to automatically dial the default dial-up Internet connection as soon as a user logs in?   I use a dial-up connection for accessing the Internet, and I don't want to dial everytime I log in to Windows.

Is there a way to automatically dial a PPPoE connection on startup? In Mac OS X, this is done automatically after login. It was also possible in Windows XP: when creating a new connection, it also created a shortcut to it on the desktop. Adding it to the startup folder and setting it to not prompt for credentials solved the problem.  But in Vista and Windows 7, there are no shortcuts to the newly created connections, so I can't do the same thing here. Is there any other way to do this?


"I have" can be contracted to "I've" when the "have" word is used followed by an action or experience. For example, "I have been there" can be contacted to "I've been there"  Is the same valid for the "have" word denoting possession? For example, Can "I have a pen" be contacted to "I've a pen"?  I've seen usages like "I've got a pen" for "I have got a pen" and I suppose that is correct anyway. But what about when there's no "got" ?

I feel uncomfortable saying sentences like the following:    "I've a car" instead of "I have a car" "They've a great time" instead of "They have a great time" "He's a pen" instead of "He has a pen" etc   I ask this because I read this sort of thing in a book.  Are they correct? And what is the rule? Can you use such forms in a formal setting?