I'm trying to make a Java Gui that print the text on a JTextField into a label. So, on runtime I'll write something in a JTextField then I'll press a button that print the content of JTextField in a label.  But the program give me a java.lang.NullPointerException. Is there something wrong in  ActionListener method?  Could you help me?  Below the code:  import java.awt.BorderLayout; import java.awt.Color; import java.awt.Container; import java.awt.EventQueue; import java.util.*; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.border.EmptyBorder; import java.awt.Rectangle; import javax.swing.SwingConstants; import java.awt.event.ActionListener; import java.util.EventObject; import java.awt.event.ActionEvent;  public class MastermindGui1 extends JFrame {  public static JTextField insNome; public static JLabel welcomeLbl;  private JPanel contentPane; Container contenuto;  public MastermindGui1() {     JFrame finestra = new JFrame("MASTERMIND");     finestra.setResizable(false);      finestra.setBounds(200,200,300,300);     contenuto = finestra.getContentPane();     contenuto.setBackground(Color.YELLOW);     finestra.getContentPane().setLayout(null);      JTextField insNome = new JTextField();     insNome.setBounds(21, 70, 151, 35);     contenuto.add(insNome);      JLabel welcomeLbl = new JLabel("");     welcomeLbl.setVisible(false);     welcomeLbl.setBounds(58, 138, 180, 74);     welcomeLbl.setBackground(Color.ORANGE);     contenuto.add(welcomeLbl);      JLabel lblNewLabel = new JLabel("INSERISCI IL TUO NOME");     lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);     lblNewLabel.setBounds(75, 11, 142, 23);     finestra.getContentPane().add(lblNewLabel);      JButton stampa = new JButton("STAMPA");     stampa.addActionListener(new stampa());     stampa.setBounds(195, 76, 89, 23);     contenuto.add(stampa);     stampa.addActionListener(new stampa());      finestra.setVisible(true);     finestra.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }  private class stampa implements ActionListener {     @Override     public void actionPerformed(ActionEvent e) {         insNome = (JTextField) e.getSource();          String testo = insNome.getText();          welcomeLbl.setText(testo);     } }  public static void main(String[] args) {             MastermindGui1 finestra = new MastermindGui1();         } }


Ubuntu 14.10 Can't Create New Files from Context Menus

I just installed Ubuntu 14.10 and I can't find the New File option anywhere. The New Folder is there, but I can't create new files except if I run the touch command in the command line.   Is there any method through which I can bring the old New File option back? I think just creating files through a touch command is really a time consuming process....(I loose at least 20-30 seconds doing this with the touch command, as opposed to 5 seconds doing it from the menu the classic way).  Thanks!


'Enter' is instantly submitting questions and answers on Android

How are you supposed to to start a new paragraph or line break on here using a basic keyboard? Or maybe I should ask "What's the preferred method?", as using the normal button (Enter) will post a question or comment and not a line break.  This happens when using Chrome or the Stack Exchange app on Android. The Enter button posts on either questions, answers, or comments. I have figured out to now do what I want using basic HTML, however not everyone will do this. It could also be the reason why I am seeing extremely long questions that are quite hard to read.  I understand about not having breaks in the comments. It's the answer and questions part I can't work out.


It where this guy is in a bar and there is a white monster next to him and they become friends or something like that and the song is a pop song


Why aren't Stack Exchange sites responsive to browser size?

I tend to browse websites with the browser taking up half the screen. This way, I can do multiple things at once, such as edit my code on the left half of the screen while researching documentation or tricks on the right (note: I usually do not have access to multiple monitors, as I use school computers most of the time). Unfortunately, of the many websites I visit for programming assistance, the Stack Exchange sites are one of the worst. Stack Exchange doesn't respond the the smaller browser size, making it hard to access the different features of the site. As an example, I took this screenshot visiting the site on my personal monitor, which has resolution 1920x1080 and is a rather large 24 inches:     Not too bad, but I cannot easily find the "Ask Question" button. Side-ways scrolling is such a dismal thing, but at least I can kind of see the HNQ list. This works okay with this monitor, but ideally the Questions, Tags, Users, Badges, Unanswered, and "Ask Question" buttons would be shifted further to the left to make them accessible on a smaller browser.    Things are about to get bad...    My laptop's monitor is a sad 1366x768 and 15.6 inches. This is what it looks like on my laptop. I know that my laptop's monitor is rather small compared to monitors out there, but I still expect to be able to use the site easily:    It's barely possible to navigate! Where is the "Questions" button? Only due to my repeated use of the site do I know that that tiny sliver of orange is how I can visit the question list. Let's try this out on the most popular  (rather, the top answer to it):    I can't even read the entire question. Sure, I could scroll to the right, but that is not something I ever remember how to do when navigating web pages.  Is there some reason why the Stack Exchange sites are not responsive to the browser size? Is the assumption just that the users of the site use big/multiple monitors (meaning targeting employees rather than random internet users)? Would the images and text just scale badly for some reason?


Cartoon in which kids compete by fighting as monsters or creatures with special powers in a virtual world

All I remember is that a few kids, I think there were two boys who were best friends and maybe their female friend, would somehow transport to a place where they would compete against other kids in virtual reality by fighting as monsters/creatures with special powers. I believe each character could only fight as one creature that was their own, and they could upgrade their creature. This aired in the late 2000s or early 2010s.


I've a web page that that can be used to upload files. Now I need to check if the file type is correct (zip, jpg, pdf,...). I can use the mimeType that comes with the request but I don't trust the user and let's say I want to be sure that nobody is able to upload a .gif file that was renamed in .jpg I think that in this case I should inspect the .  is a java library I've found that seems to achieve what I need 'extract the mimetype from the magic number'. Is this a correct solution or what do you suggest?  UPDATE: I've found the  and it seems very good and up-to-date! (maybe better then Java Mime Magic Library?)  of utility projects that can help you to extract mime-types


how to calculate resistor value for optocoupler - 230V

I am trying to implement the following circuit. I am trying to understand how the resistance values are calculated. I followed this -     According to my optocoupler (SFH6202) datasheet, following are the calculations:  VF(typical) = 1.25V  If = 60mA  So  Vres = V - Vf = 230 - 1.25 = 228.75  R = Vres / If = 228.75/.06 = 3812.5  But the circuit shows two 100K resistors. Am I doing something wrong here?  Also the Power dissipation is:  P = Vres * Ifmax = 228.75 * 0.06 = 13.72 W  The power dissipation seems too high for 1/4, 1/8 or 1/10 W resistors. Am I doing something wrong in this calculation also? Or do I need some special kind of resistors?


I’m trying to make this animation, using particles from an emitter.   The problem is I’d like to shade the smoke as it was very much heated in the centre, where the particles flow is, so it looks pretty much like a lightning bolt.   I knew of a function named voxel data in the textures that would allow achieving this result, but I can’t find it in the new version of blender. Does anyone know what I should do, once I got the smoke from the particles emitter?


Looking for help identifying my newest addition

Looking for info. All I can find on Google is a pic that matches but no information. Its apparently a Cycle Rite Dilecta made in Austria single speed with coaster brake.  Looking for some information on this bike. It has cycle rite as the badge its a single gear with coaster brake. It either say Dilecta, or Oilecta on the side. Has made in Austria on it as well.


Number of ordered pairs $(a,b)$ such that $ab \le 3600$

Find number of ordered pairs $(a,b)$ such that $ab\le 3600$ and $a,b \in N$  My attempt : Well, all $a,b \leqslant 60$ are solutions. These 3600 solutions. After that I have no idea how to count the number of remaining solutions...   I have a feeling that my approach is $very$ bad. But I had to give as it would be marked as off-topic.


De Broglie wavelength, frequency and velocity - interpretation

Two fundamental equations regarding  are: $$ \lambda = \frac{h}{p}, \\ \nu = E/h .$$  We talk about , is it meaningful to talk about de Broglie frequency ($\nu$ above) and de Broglie velocity ($\nu \lambda$)? Are these two equations independent or can one derive one from the other? Or mid-way, does one impose constraint on other? In case of light or photons we can relate frequency and wave, is there similar interpretation in case frequency and wavelengths in above equations? Comparing with that of light, if we multiple $\lambda$ and $\nu$ we get velocity, what does this velocity mean here?  If we do the above calculation for an average human, what would be the meaning of $\nu$ and $\nu \lambda$? Are we jiggling with that $\nu$?


How can I make the stuff below sup to be stacked? Many thanks in advance. \documentclass[a4paper,13pt]{scrartcl} \usepackage[utf8]{inputenc}   \usepackage{amsthm} \usepackage{amssymb} \usepackage{mathtools}   \begin{document}  \begin{equation} \sup_{y \in B_{\| \bar{x}-x^{k} \|}(\bar{x}), s \in (0, \Delta_{k} / \|d\|]} \frac{f(y+s d)-f(y)}{s}  \end{equation}  \end{document}


why is there no non-degenerate 2-forms on 4-sphere?

The question is in the title. I have been told that there are  actually no non-degenerate 2-forms on $S^{2n}$ for $n \neq 1,3$.  I have found the following question:   but it only eliminates the possibility of existence a closed non-degenerate 2-form (which seems to matter in $S^6$ case, for example).


I am using jQuery. How do I get the path of the current URL and assign it to a variable?  Example URL:  http://localhost/menuname.de?foo=bar&amp;number=0


Single word for better "in all respects"

I am looking for a single word that describes something as "better in all respects."  My "failures" so far include:   "unilaterally better," my first attempt, but on further reflection seems to indicate better in only one respect "uniformly better," which comes closer, but seems to connote something less intense than I intend   I know there is a , but none of the single-word responses there seem to fit my use case, and I would prefer here to not use a phrase such as "across the board." Any suggestions?


How can i add a texture to billboard particles?

I'm using a billboard-type particle in order to show a texture/plane look at the camera, the problem is i have the billboard option selected so i can't choose 'object' and the planes from the billboard are working great, but how can i add an object or a (single) texture in order to replace the gray plane the billboard offers?


"This needs reviewed." vs "This needs to be reviewed."?

As in the title: "This needs reviewed." vs "This needs to be reviewed." Are either of these grammatically incorrect ? And/or is one preferable to the other ? I'm not quite sure what area this falls under, so I'm having a hard time finding the correct references elsewhere. Sources preferred if possible please. Thank you


Looking for software like JaxoDraw for general graphics

I just got to know the  software, which is a Java program for drawing Feynman diagrams. The cool thing about this program is the possibility of generating LaTeX code. Is there a similar program for graphics in general?


How do I reset the Ubuntu password? My brother passed away, I have his computer but can’t get into it to use it

I’ve tried resetting it a few times with suggestions and instructions I found here and elsewhere on the web. I keep getting stuck because I don’t know his username. From what I can tell, what I thought was the username isn’t working in my attempt to reset the password.


Do the apps in Island can see each other?

Example: If you install two apps using Island (), do the two apps able to see each other, meaning that one can see another data?


If you have 5 marbles in a bag, 2 of them are red and 3 of them are white, what is the probability that you take out 2 red marbles out of the bag back to back? No replacement.


Highly-upvoted comments on Meta have less emphasis than lowly-voted comments

On Meta Stack Exchange, highly-voted comments have a less-intense color than lowly-voted comments:    The low-voted comments are red, the medium are blue, and the highest-voted are black. This seems backwards from how it ought to be.  . There's a wide range of comment votes, making it a good example of the issue.


I'm working with SP on server by using my laptop to remote to server. I've create app on this site :  and deploy it successfully on server, and the URL of app is: apps-22k1ishhud98s.abc.net (apps: is prefix and abc.net: is domain for app that I was set before). The problem is, I can not access to the app when using my laptop. So can u guys help me out of this. This is my site look like.


Sprite sorting is working fine but tilemap sorting is working the opposite way I want it to

I provided some screenshots to display what I'm talking about. The blue tile is a sprite, and the bushes are made from tilemap, each being 4 16x16 tiles. My transparency sort axis is set to 0,1,0. I've tried messing with the Z value in the axis as well to no avail. I'll also point out that if I switch my sort axis to 0, -1, 0,   the tile map sorting begins to work and the sprite sorting stops working.


Convergence of the complex series $\sum_{n=0}^{\infty} \frac{(-1)^{n}}{z+n}$

I don't have familiarity with complex series. I know this series won't converge if $z$ is a negative integer. Apart from that, I know that the series does not converge absolutely (because the absolute value gets close to $\frac{1}{n}$ which diverges). If instead of complex number $z$ I had $x \in \mathbb{R}$, then:$$\sum_{n=0}^{\infty} \frac{(-1)^{n}}{x+n}$$ Would converge for all $x$ apart from negative integers, due to the Leibniz test. Can I use the same argument for a complex number $z$? I'm not sure about what to do because I have never dealt with alternating complex series before.


converting a Worm the Walks from 3.5/pathfinder to 2ED

I am writing a mod for 2ED and really wanted to include something I found in both the 3.0/3.6 Epic Level Handbook and a Pathfinder Bestiary.  I wanted to include a Worm that Walks as the main boss, but am having problems with the conversion to 2ED, as it does not exist in any 2ED books that I am aware of.  Can anyone offer any assistance?


Let $g(x)\in \mathbb{Z}[x]$, a nonconstant polynomial. Show that the set of primes $p$ such that $p\mid g(n)$ for some $n\in \mathbb{Z}$ is infinite.  I don't know how to start. I have tried asuming that the set is finite but i haven't reached any contradiction.


Get a list of all files in folder and sub-folder in a file

How do I get a list of all files in a folder, including all the files within all the subfolders and put the output in a file?


Is there any way to see which posts Community has bumped?

This question holds for the entire network of main and meta sites.  Looking through the  for the  user, I don't see any edit history for posts that have been randomly bumped (probably because no actual change is made to the post). Is there any way to see the history of the Community user's bumping activity?  (For example, through the  or .)  I'd like to look at this data to see how effective bumping has been in the past, and see if we can come up with suggestions for improving it.


Pls explain how the function hasCharacters() works internally?

'use strict';  const characters = [   { id: 1, name: 'ironman', env: 'marvel' },   { id: 2, name: 'black_widow', env: 'marvel' },   { id: 3, name: 'wonder_woman', env: 'dc_comics' }, ];  function hasCharacterFrom(env) {   return character => character.env === env; }  console.log(characters.find(hasCharacterFrom('marvel'))); // { id: 1, name: 'ironman', env: 'marvel' }  console.log(characters.some(hasCharacterFrom('marvel'))); // true     I am not able to understand how the function hasCharacters() works internally.  Its neither an arrow function, nor a ternary operation been used there.  How is the =》 used here?


Can two users play on a Minecraft server using the same account?

I bought a Minecraft account for my little brother for Christmas, and I'd like to play with him on my server every now and then. If I log in while he's on, however, it kicks him off since we have the same username. Is there any way to change my username so that I can play with him, or anything I can do so that we can both play together using this account on my server?  I'm open to anything that could let us play, whether it be username changes, server property changes, etc.


This is in an Algebra and Combinatorics module and I don't know how to prove this. The full question is,  Let $n$ be a natural number greater than $1$. Suppose that $n$ is a factor of $(n-1)!+1$. Prove that $n$ is prime.   Any help would be greatly appreciated -thanks.


How does IPv6 subnetting work and how does it differ from IPv4 subnetting?

This is a  about IPv6 Subnetting.      Related:               I know a lot about , and as I prepare to (deploy|work on) an IPv6 network I need to know how much of this knowledge is transferable and what I still need to learn. IPv6 seems at first glance to be much more complex than IPv4. So I would like to know:   IPv6 is 128 bits, so why is /64 the smallest recommended subnet for hosts? Related to this:   Why is it recommended to use /127 for point to point links between routers, and why was it recommended against in the past? Should I change existing router links to use /127? Why would virtual machines be provisioned with less than a /64 worth of addresses? Are there other situations in which I would use a subnet smaller than /64?  Can I map directly from IPv4 subnets to IPv6 subnets? For instance, does an IPv4 /24 correspond directly to an IPv6 /56 or /120? My interfaces have several IPv6 addresses. Must the subnet be the same for all of them? Why do I sometimes see a % rather than a / in an IPv6 address and what does it mean? Am I wasting too many subnets? Aren't we just going to run out again? In what other major ways is IPv6 subnetting different from IPv4 subnetting?


Hey all I asked this over  =) and I got a good answer but I still have no idea whats going on. I want to know how the expression got to the answer and maybe the math behind how it was reasoned.. the steps if you would be so kind. The likelihood is I don't understand the equation.   I'm not a big maths person please be gentle :p     For all those playing along at home I'm reading Absolute Java 5th   Edition by Walter Savitch (Chapter 2 Page 66).      The Expression  double d = 12345.123456789; System.out.printf("START%12.5e END %n", d);       The Answer  START 1.23451e+04END       I understand the basic principles of this printf method's arguments   for example I know the '%' represents the start of the parameters.   '12' is the number of spacing, '.5' is the times the decimal point   will move.... I see the decimal point has moved 4 places towards the   left... can someone explain the principles of e-notation. Also how   this expression came to this answer =).      As far as e-notation go's its meant to be scientific notation;      So like 5.89e-4 would mean 0.000589 (move the decimal place if minus   left if not move the decimal place right).


(How) Can I use existing stapled electrical wire to fish new wire?

I nicked an electrical cable while doing a plumbing repair and so need to fix it. I previously  about repairing the damage in place, but there are receptacles 6-10 feet away on either side of the damaged wire, so it may not be too difficult to just pull new wire. Most of the wire is run horizontally through the studs, which is great, but it will at least be stapled at both boxes (and possibly more). The horizontal run is ~18" up from the floor, while the receptacles are ~6". There is also an inside corner the wire is run through. Wire is 12/2.  Is it possible to use the existing wire to fish the new wire, even though the existing wire is stapled? Would I need to open up the wall to remove the staples?  I found a , but that pertains to telephone wires which sometimes use different staples than electrical wires.


After commenting I get redirected to a white blank page.   App Version: 1.6.6.2 Device: iPhone 6s OS Version: Version 12.0.1 (Build 16A404)


How do I add a directory to the $PATH in Ubuntu and make the changes permanent?


Assuming we could create and orbit optical telescopes of arbitrary size, perhaps starting with (say) inflatables or  of 100m diameter what kind of resolution in imaging extra-solar planets would we get? Then the same question for increasing orders of magnitude up to 100km diameter. Any theoretical reason why something that large could not be made?


In bash when I type   echo {0..10}   I get  0 1 2 3 4 5 6 7 8 9 10   How can I use a variable instead of the upper bound? When I try  a=4 echo {0..$a}   I get  {0..4}   How can I fix that so I get the same as the first example?


Does cooking black bengal gram with salt lead to increased cooking time or lack of softening?

I have heard that cooking  with salt can lead to increased cooking time compared to cooking it without salt.So i used to add salt just before serving the curry.Other pulses like green gram are cooked with salt without any noticeable similar problems of delayed softening. Is this problem about bengal gram or chickpea is true?If so why is it so?


Loading resources into classpath from dynamically loaded jar

In my project I'm downloading an Applet and then adding it to the classpath and displaying it, however it doesn't seem to be able to find the resource files  File f = new File("jars/myAppletJar.jar"); URLClassLoader urlCl = new URLClassLoader(new URL[]{f.toURL()},System.class.getClassLoader()); Class clazz = urlCl.loadClass("MyAppletMainClazz"); String[] args = {}; new MainFrame((Applet) clazz.newInstance(), args, 400, 400);   It throws a null pointer when attempting to find the resources in that jar. The applet works fine with run on its own.  How do I load the resources from the dynamically added jar into the classpath?


I'm looking for some tips and tricks to more effectively find secret rooms in Enter the Gungeon. The rules don't seem as straightforward as Binding of Isaac, which has similar gameplay/mechanics. I once found a Map item which showed all rooms on the floor, including 2 secret rooms. However, I've so far not been able to figure out their placement logic.  I do know that you need to  to break open walls to secret rooms. But blanks on each floor are limited. Can enemies accidentally reveal secret rooms like in Isaac?  How can I  most efficiently find secret rooms, given the ammo limitation? I don't want to just randomly shoot walls in every single room, seeing as the starter guns (with infinite ammo) will not reveal them. Or am I wrong in assuming that there is more internal logic to it?


What is the daily reputation cap and how can I hit it?

I've found some questions and those two badges "Epic" and "Legendary" regarding the "daily reputation cap". What is it and how can I hit it?


What is a good pattern for recursion blocking in generic trigger handlers?

Here I'm talking about a handler that covers all the s and that accepts SObjects of arbitrary type. And the recursion problem is where a change caused by a trigger results in that trigger getting called again and so on creating an infinite loop.  So an example trigger would be:  trigger ExampleTrigger on Example__c (before insert, before update, before delete,         after insert, after update, after delete, after undelete) {      SObjectType t = Example__c.SObjectType;     MyHandler.handle(t, Trigger.operationType, Trigger.oldMap, Trigger.newMap); }   with the handler:  public inherited sharing MyHandler {      public void handle(SObjectType t, TriggerOperation op,             Map<Id, SObject> oldMap, Map<Id, SObject> newMap) {          // Logic conditional on t and op that does updates that cause recursion         ...     } }   Often single static Boolean flags are talked about to block trigger recursion. (Though an approach based on change checking that is designed to settle to the correct state can be needed instead to produce the correct business results.)  But for the simple case of complete blocking, (and now I'm writing this I think the answer is "yes"), is this pattern sufficient?  public inherited sharing MyHandler {      // Implements equals and hashCode     private class Kind {         ...     }      private static final Set<Kind> BLOCKED = new Set<Kind>();      public void handle(SObjectType t, TriggerOperation op,             Map<Id, SObject> oldMap, Map<Id, SObject> newMap) {          if (BLOCKED.contains(new Kind(t, op))) return;         ...         BLOCKED.add(new Kind(t, TriggerOperation.BEFORE_INSERT));         BLOCKED.add(new Kind(t, TriggerOperation.AFTER_INSERT));         insert sobs;         ...     } }


What would be suggested books for beginners to Zeeman Effect and Quantum Physics?

I have great interest for learning what Quantum Mechanics governs and the Zeeman Effect; however, I have no idea where to start.   I believe that the best books are recommended by fellow academics who have studied or mastered the subjects, so I direct my question at you: What would you recommend for a physics student and enthusiast who is interested in Albert Einstein's and Hendrik Lorentz's works?   I have not read into their works in detail, but only have an idea of what they have accomplished I do not know their terminologies (yet) However, I'd prefer detailed technical academic publications rather than dumbed down language (we can always look the terms up)   It would be my preference to be recommended a thick text book used in lectures that covers AND focuses in these two subjects; but, as experienced scholars in these subjects I would welcome the direction you recommend to go.  Any recommendations for books written by Hendrix or Einstein would be appreciated as well.


Do I need a visa to transit (or layover) in the Schengen area?

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


Does Dispel Magic cast on the caster of Spiritual Weapon end Spiritual Weapon?

Dispel magic on a target creature ends spells that affect that creature. Does casting dispel magic on another caster with an active spiritual weapon dispel the spiritual weapon, or does dispel magic need to be cast directly at the weapon?


I need to know how to do double face on objects created via curve mesh. I created this using curve path and used the "bevel object" on another curve. It created the slide that I needed. When I tried to import the 3D object as fbx for unity, the slide has face only on the surface but the moment you look from the bottom, it becomes transparent, obviously the face on the bottom is reversed. Please help.


I have a question about SQL Server databases.   I have initialized a database (let's say Configuration_DB) of size 120GB following with certain application installation. This application installation has taken up 20GB out of that 120GB DB space and 100 GB is left free.  Now if I run shrink job on that, will it be reduced to 20Gb (plus something) or how much it can be reduced to, although the Configuration_DB.mdf file has already taken 120 GB on disk.  Thanks.


How do I find research groups that do work in field X?

What is the best way to go about to find a certain research group that do work in a specific field (e.g research groups doing empirical brain investigations but working from a dualistic perspective, or research groups doing eyetracker work on infants)?


Proof of the independence of the sample mean and sample variance

I've been trying to establish that the sample mean and the sample variance are independent. One motivation is to try and write the sample variance, $S^{2}$ as a function of $\left\{ X_{2}-\bar{X},X_{3}-\bar{X},\cdots,X_{n}-\bar{X}\right\} =A$ only. Then we proceed by showing that $A$ and $\bar{X}$ are independent (which I'm unable to show), which then implies the independence of $S^{2}$ and $\bar{X}.$    I would appreciate it if the good people of M.SE would help guide me in the right direction. Thanks.  Edit: The random samples $X_1,\cdots,X_n$ are from an $N(\mu, \sigma)$ distribution.


I wanted to recover some files but while recovering them I made a folder that used up all of my disk space and space free is 0 bytes. How can I delete it as it is not allowing me to delete it?


How to describe a thin mist rising from the surface of a river?

I'm looking for a phrase to describe the kind of water vapour rising from the surface of a river in the morning. It doesn't have to be a single word but I wouldn't be surprised if there is one.      I'd call it mist or fog but, as far as I know, these could refer to something much thicker (particularly fog).     As the sun climbed higher above the horizon, _________ rose from the surface of the river, enveloping the reeds.   Fume also comes to mind but it seems to have negative connotations.


How to match a single quote in sed if the expression is enclosed in single quotes:  sed -e '...'   For example need to match this text:  'foo'


I have submitted all proof including CA certificate for fund into my parent's bank account.  Fund in my parent's account was deposited by me two years ago and I have provided proof in second application. They mentioned in first rejection letter about this fund. The proof of funds in my brother and sister in law’s account was explained in the letter and supported by tax return.  I am planning for JRS.


How do I increase the RAM using an external device to my computer

If my laptop has an available RAM of 8GB how can I can make the available RAM to be increased to say 8+128 GB. I am not sure if this could be done, but I guess there are devices like RAID servers etc which when attached to the computer will provide the computer with more RAM. So are there such devices available? What else is required to enable them to increase a computer's RAM ie. can I attach it by USB and what softwares are required (among other things)?


Meaning of probability notations $P(z;d,w)$ and $P(z|d,w)$

What is the difference in meaning between the notation $P(z;d,w)$ and $P(z|d,w)$ which are commonly used in many books and papers?


Python- Converting tuple to list of multiple lists by index

I have a list of tuples that looks like this:  x = [(1, 6), (2, 7), (3, 8), (4, 9), (5, 10)]   What is the most pythonic and efficient way to convert into a list of 2 lists where each list respectively has all values of a specific index? Like so:  y = [[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]   Is it possible to do this without a loop?


Java Sort a HashMap by Values and Add it to new Map Object

I have a HashMap which I try to sort by its values (largest to smallest). I want a new Map object which is a clone of the new sorted hash map (or a way to directly sort the hashmap itself). Here is my following code: import java.util.HashMap; import java.util.Map; import java.util.stream.Collectors;  public class Repetition {     public static Map<Object, Integer> countRepititions(Object[] e) {         Map<Object, Integer> occurrences = new HashMap<>();         for (int i = 0; i < e.length; i++) {             occurrences.putIfAbsent(e[i], 0);             occurrences.computeIfPresent(e[i], (k, v) -> v + 1);         }          return occurrences.entrySet().stream()                                      .sorted((e1, e2) -> e2.getValue().compareTo(e1.getValue()))                                      .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, HashMap::new));     }      public static void main(String[] args) {         Object[] arr = { "cat", "dog", "cat", "cow", "cow", "cow" };          System.out.println(countRepititions(arr)); //should be cow, cat, dog     } }  The issue is that the output is that of the original hashmap rather than the sorted hash map. If anyone could help me, it would be greatly appreciated! EDIT: I managed to modify the current code by using a LinkedHashMap instead.


Prove that $1/f$ is Riemann integrable on $[a,b]$

Prove that if $f$ is Riemann integrable on $[a,b]$ and $0<\rho \le f(x)$ for all $x \in [a,b]$ then $1/f$ is Riemann integrable on $[a,b]$.


I just installed Ubuntu 16.04 on my laptop. When I want to log out, just a black screen with text appears.   (Click image to enlarge)  Then the only way to log in again is to restart the computer. Also when I suspend, my computer doesn't want to wake up again.


How can I extend the iPhone call log to have more than 100 entries?

After some calls, the earlier call records are deleted from the iPhone. My system has at least 50-60 gigabytes free space, so there should be enough room for more entries.  How can I extend the call log for more than 100 entries?


shell script purpose of x in "x$VARIABLE"

I'm peeking through some shell scripts - what's the purpose of the x in the comarison shcu as   if [ "x$USER" != "x$RUN_AS_USER" ]; then         su - $RUN_AS_USER -c "$CATALINA_HOME/bin/startup.sh"  else         $CATALINA_HOME/bin/startup.sh  fi


How to install ubuntu 14.10 on flash drive

How to install ubuntu 14.10 on a 16gb usb flash drive. I want to install it, as if it were the hard drive, not live cd, because my hard drive is broken.


Using an ArcGIS Model Builder iterator to merge all shapefiles into one layer?

I have a GeoDatabase with a handful of shapefiles. The contents are likely to change often, so I want to build a tool that allows me to merge all the shapefiles in the GDB into one layer.  This is what I currently have:    However, I am not expecting this to work, as it seems like it would just grab one file each iteration and 'merge' it with itself. Is there a workaround so that it grabs all files from the GDB to merge them? I am using ArcGIS Desktop 10.5.


I have a US visa, a Canadian transit visa and an Indian passport. Do I need a DATV to fly through Heathrow?

I am flying from Seattle to Mumbai with stops at Vancouver and Heathrow.  I am aware of the new regulations effective from the December 1, 2014 () . According to this news article, I am trying to understand if I am exempt based on this rule - "you are travelling from (or on part of a reasonable journey from) Australia, Canada, New Zealand or the USA and it is less than 6 months since you last entered that country with a valid entry visa."  I entered the US three years ago so that's out of the way. Although, I will be entering Canada on my way to Heathrow. I change flights at Vancouver but I do not leave the airport. And this happens hours before I enter Heathrow. Does that count under the rule stated above?  Update1 : I found  and called Heathrow airport Terminal 1. A lady answered and I asked her this question. She said I should be good as long as I have a valid US visa. I'm not sure if I can take her word for that though.  Also, she said that I would still be airside even if I had to change terminals. I will only have to go landside if I had to pick up my checked in luggage.


I am trying to understand convergence in Lp spaces a little bit better.  If we have $p, q \in [1, \infty]$ and a sequence of functions $(f_n)_{n\in\mathbb{N}} \subset L^p(\mathbb{R}^d) \;\cap\; L^q(\mathbb{R}^d)$ with   $\Vert f_n - f \Vert_p \rightarrow 0$ for some $f \in L^p$ and $\Vert f_n - g \Vert_q \rightarrow 0$ for some $g \in L^q$.   Is it then true that $f = g$ almost everywhere?  I can't think of a good counter example or a proof.


Prove that $xy+yz+zx \leq  x^2+y^2+z^2$ . Hint: Use $\frac{a+b}{2}\geq\sqrt{ab}$   First I tried using the hint by setting $a=x$ and $b=y+z$, however this results in the inequality: $$x^2+y^2+z^2 \geq 2xy-2yz+2zx $$ which isn't quite the same thing.  Then I tried starting with what we're trying to prove (to hopefully end up with a true statement), but then I get to this: $$(x+y+z)^2 \geq 3(xy+yz+zx)$$ and then I can't see what to do next.  This question is supposed to be straight forward, which is why I'm thinking there might be something wrong with it. Or I'm dumb.  As you can see I tagged this with Proof-strategy, so please don't bother writing down a full proof, just a few observations or hints are enough.


I am trying to create a sorted list of lists. Where the outer "layer" is sorted  by the field BU. and the inner layer is sorted by JobNum. I have this method, and variables.  public List<string> ListSorter<T>(IEnumerable<T> records)where T :  IMapToCSVSource, new()  List<IEnumerable<T>> organizedRecords = new List<IEnumerable<T>>(); List<T> shortenedRecord = new List<T>();   Here I am trying to create a more concise object with only 3 specific fields instead of the possible 8 that comes with the records object. BU and JobNum are set within this method.           foreach (var record in records) {     string businessUnit = "foo"; //This would vary each loop, not constant as displayed     string JobNum = "test"       //this would vary each loop, not constant as displayed     shortenedRecord.Add(new T()     {         Cost = record.Cost,         BU = businessUnit,         JobNum = jobNum     }); } shortenedRecord.OrderBy(o => o.BU).ThenBy(n=>n.JobNum);   here, to my knowledge, now has all the records shortened and ordered by BU, then JobNum.  Now I want to parse this ordered list into sections of BU specific records and add it to organizedRecords. Such that each element of organizedRecords is a specific BU. Moving forward how would I do this?  For example, say shortenedRecord is a list of 30 elements, but there is only a total of 5 unique BU values. I would like to order and split the list into their 5 respective BU values, and add it to organizedRecords. Thank you for any suggestions.


I am creating multiple emails based off the same template in ExactTarget. Some of the emails will have a different subject line. Is there any way to pull the subject line created during the initial creation of the email?


Backup to Azure Storage Container: Shared Access Signature the only way?

RESTORE FILELISTONLY FROM URL = '' WITH CREDENTIAL = '' fails in SQL Server 2016.  Copied script from SQL Server 2012 environment, successfully restoring from Azure Storage Container, with create credential statement, and it failed in 2016.  Error message "Forbidden".  Only after logging into the Azure Portal, creating a Shared Access Signature for the container, could I execute the restore, and only by not specifying the credential did the restore work.  No documentation advises that a SAS (Shared Access Signature) is required in SQL Server 2016 for Azure container backup / restore.  Is there another way to use T-SQL to access blob backups on Azure storage containers in SQL Server 2016, than using SAS?    Looking at the MSDN tutorial on how to configure the backup service SQL 2016 introduces, a SAS is used. Refer


What is the etiquette to denote the end of an example or remark? For proofs, it's the QED symbol (white box). I know it's not necessary for everyone, but I would like to use it to break up the text a little. What should I use? A circle or filled box or what?


Can I view deleted comments that I flagged?

Sometimes after I've flagged some comments, I look back through my flag history to see how they're doing: which ones were accepted, declined, and so on. Deleted questions I can of course see, but when I've flagged a comment and it's been deleted, I can never see what it was I flagged. I'd like to be able to compare the comments that I marked as (for example) Not Constructive that were actually deleted with those where my flag was declined, so that I can offer more accurate flags in future. But I don't remember what content I flagged as Not Constructive two months ago in the comments section of , of course, so I can't compare it with any comments that have had my flags declined.  Is there a way to do this that I'm missing? Is there a reason this would be a bad thing for me to be able to do?


I have a table that looks like this..Just two column..Date and Profit:  Date--------------Profit  24 - March------25.00  24 - March------19.85  25 - March------5.25  26 - March------6.36  26 - March------10.18  26 - March------35.63     I basically want to calculate and display the average daily profit in one cell. Can someone help me. Please keep in mind that when i enter in new dates such as 27 - march and it's profit, it should update the average daily profit cell.  Thanks a lot


I have a problem with this. Actually, still don't have the right way to start :/  Problem :  Let $A$ and $B$ be $n \times n$ complex matrices such that $AB - B^2A^2 = I_n$. Prove that if $A^3 + B^3 = 0$, then $BA - A^2B^2 = I_n$.  Thanks for any help.


I want to use my old iPhone 4S as a "software token machine", so I installed and configured all the needed apps in there (and just those ones). It is running iOS v9.3.6.  One app, at its latest version, is refusing to install (SafeNet MobilePass) because my phone doesn't run iOS v10.  Before ditching definitely my plan, is there a way to install an older app version without jailbreaking?  P.S. I only have Linux PCs as it  a PC could be needed.


Whats the use of LOST.DIR folder actually? why does is automatically appear after every reboot?


how to run a java program by double clicking it

I am new for java. As a first step, I made a simple calculator in NetBeans.   I wanted to make it an executable software and to run it just by double clicking it as on visual basic.   Please tell me if you know a method to do that.


Counting integer partitions of n into exactly k distinct parts size at most M

How can I find the number of partitions of $n$ into exactly $k$ distinct parts, where each part is at most $M$?  The number of partitions $p_k(\leq M,n)$ of $n$ into at most $k$ parts, each of size at most $M$, is given by the generating function: $$  \binom{M+k}{k}_{x} = \prod_{j=1}^{k}\frac{1-x^{M+k-j+1}}{1-x^j}= \sum_{n=0}^{kM} p_{k}(\leq M,n) x^n $$  For the number of the partitions $p_k(\mathcal{D},n)$ of $n$ into at most $k$ parts there is the recurrence relationship: $$   p_{k}(\mathcal{D},n) = p_{k}(\mathcal{D},n-k) + p_{k-1}(\mathcal{D},n) $$  But what, if I want to count only the partitions with distinct parts and restricted number of parts and restricted part size?  Update: Now I know the generating function for the number of distinct restricted partitions $p_k(\leq M, \mathcal{D},n)$ of $n$ into exactly $k$ distinct parts, all at most $M$ is $$    \prod_{j=1}^{M} (1+xq^{j}) = \sum_{k,n=0}^{\infty}p_k(\leq M, \mathcal{D},n)x^{k}q^{n} $$ and there is also a recurrence relation $$    p_k(\leq M, \mathcal{D},n) =         p_{k-1}(\leq M-1, \mathcal{D},n-k) +         p_k(\leq M-1, \mathcal{D},n-k) $$ How can I prove this? Could you recommend a book, where I could read about this?


Matrices whose Linear Combinations are All Singular

I'd like to know if the following problem of elementary linear algebra is already solved / solvable.  For two (singular) $n\times n$ matrices $P$ and $Q$, if $\det(\lambda P+\mu Q)=0$ for any $\lambda,\mu\in\mathbb{R}$, what are conditions on $P$ and $Q$?


Could the Infinity Gauntlet be used to make two people fall in love with each other?

I am wondering if there is anything in Marvel comic book canon or in the MCU that says that the Infinity Gauntlet has the power to make someone fall in love with the person wearing the Infinity Gauntlet, or that the wearer of the Infinity Gauntlet can use the Infinity Gauntlet to make two strangers fall in love with each other? Perhaps the combined power of the Mind Stone and the Soul Stone would make two people fall in love.


Xbox Game bar after uninstalling UWP and disabling UAC

It looks like the  update  from Microsoft.  I have  and  UWPs as much as I can, along with Cortana and Edge.  Yet today I saw a weird green bar popup saying something about "Press Win + G to bring up the game bar".  I figured it would have to do with the Xbox UWP app, which I have previously uninstalled.  I presume this is UWP functionality, but I'm not sure how to find out for certain.  Can this app or program exist outside of the UWP ecosystem?  Is it a part of the Xbox app?  What method(s) are there to remove it?  Is there a prophylactic to prevent such things in the future?  I'm currently stuck in Windows Home, even though I  (not me, but gives you context).  I will be fixing that sometime soon.


Here's a sentence.     Feeling flushed is such a natural response to sudden self-consciousness that if it weren't part of an emotionally crippling experience, it could almost be overlooked.   and can I rewrite like the following?     Feeling flushed is so natural a response to sudden self-consciousness that if it weren't part of an emotionally crippling experience, it could almost be overlooked.


Pages has since a relatively recent update a very useful way to insert equations using .   On multiple occasions, I have wanted to add tags to equations—a custom equation number on the right side of the equation. However, the \tag{} command doesn't seem to work in Pages. Is there any other way I can achieve this?   Three possibilities which come to mind are a) using a table with two cells, putting the equation in the left one and the equation number on the right, b) adding the equation text above or below the equation (but unfortunately not to the right), or c) adding spaces and then the tag manually (which seems to be a terrible idea). Is there a better way to do it?


XeTeX shows special characters as squares, even though they are covered by the family

Still looking for a way to get all those special chars covered that I need in my project. So I tryed to use XeTeX as it seems to work best with Unicode. And it does. Nearly. At least it shows chars that other compilation systems don't show. But some of them are shown as square, as if the font family wouldn't contain them, but it definitely does!  \documentclass[11pt]{article} \usepackage{xltxtra}  \setmainfont[Mapping=tex-text]{Times New Roman}  \begin{document} 123456789↊↋0 °á ô \end{document}   The font type of my editor is Times New Roman and all chars are shown while coding. But when I render the preview it only shows squares instead of ↊ and ↋. Why?


Can anyone explain What are access modifiers in java in easy language ? With examples ?


While writing an email on behalf of 2 other people.  Should I write.. Savin, Steve and Myself   Or   Myself, Savin and Steve.. ?   I remember reading somewhere it is always, first person, second and third.. My doubt is with the order and not in the usaage of 'Myself' or 'Me' Thanks.


How can I render an SSD permanently inoperable with no chance of data recovery?

On platter drives, when it is time to dispose of them, a degaussing takes care of the data and in most cases erases the factory pre-recorded servo tracks rendering the drive useless.  What does one do to an SSD to get the same data destructive and rendered useless assurances?  EDIT:  Would taking it out of the case an microwaving it do the trick?


How to prove that $\lim_{n\to\infty}\sum_{k=1}^n\left(\frac{k}{n}\right)^n=\frac{e}{e-1}$?

How to prove that  $$\displaystyle\lim_{n\to\infty}\sum_{k=1}^n\left(\frac{k}{n}\right)^n=\frac{e}{e-1}$$  Thank in advances.


Whats the simplest way to edit and add files to "/var/www"?

Having installed the web server is there a simple way to set a user able to use the graphic interface to copy files and directories to the local web server /var/www  I gave myself administrative privileges in Ubuntu but it still doesn't allow copies.


some bounty reason options make no sense when starting a bounty on a question with no answers

It strikes me that the most popular reason for starting a bounty on a question is because the question hasn't received any answers thus far. However, when starting a bounty, whether there are any answers or not, it still presents you with the full array of reasons for starting the bounty.  Three of the reasons should surely be removed in this instance:     Current answers are outdated   Improve details   Reward existing answer     If the screen is still shown I'd advocate that they were greyed out rather than removed for the sake of consistency.  However, in truth, I think I'd go one step further and suggest this entire screen is skipped in the case where there are no answers. Surely in that case, it's pretty obvious that the reason you're starting a bounty is just "there's no damn answers and I need an answer!" (Or, out of the current options, perhaps that should be "draw attention".)


Does Enhance Ability apply to attack based on that ability score?

Is a melee attack a Strength ability check, or a missile attack a Dexterity one?  Say a cleric enhances the Fighter's Strength — the spell effect says the Fighter now gets advantage on Strength checks. Does that apply to attacks, as they are a form of Strength check?


What does ln -T do? I know the flag does not exist in the BSD version of ln, and it only exists in the GNU version, and I have read the documentation that it will make ln "treat LINK_NAME as a normal file always", but what does that mean and why does the BSD version not have it?


Will I perceive speed improvement with more RAM?

I have a Toshiba Satellite L855-S5240.  The current specs are:     Intel® Core™ i5-2450M Processor2.5 GHz, (3.1 GHz with Turbo Boost   Technology 2.0), 3MB L3 Cache      Mobile Intel® HM76 Express Chipset      Mobile Intel®HD graphics with shared graphics memory      Configured with 6GB DDR3 1333MHz (max 16GB) 2 main memory slots. Both   memory slots occupied   I have ordered a 8GB stick and intend to replace the current 2GB stick.. bringing me to 12GB total.  This is the stick:   Will I notice a benefit? Particularly working with virtual machines and overall system performance?


How does the Fighters possible bonus action from Action Surge work?

I'm playing a Fighter in my friends new campaign and I recently leveled up and gained Action Surge. When I was reading it, it said     On your turn, you can take one additional action on top of your regular action and one possible bonus action.   It confused me when it said a possible bonus action and gave no example of when you could get a possible extra bonus action from Action Surge or if you're suppose to roll dice to determine whether or not you get the extra bonus action on top of your other bonus action.


How to combine multiple overlapping rasters and outputs a new raster that carries the maximum value

I have 7 classification rasters.  Each raster has probability values from 1 to 10. All of the rasters overlap each other at some areas.  I would want to create a new raster that carries the maximum probability value on the overlap of the 7 rasters, and at the same time keeps the classification of the original raster.  For example:  In one location: raster 1 (max is 10) overlaps with raster 2 (max is 9) and raster 3 (max is 5) ----> expected output of the pixel should have the value of raster 1  In another location: raster 1 (max is 2) overlaps with raster 2 (max is 9) and raster 3 (max is 4) ----> expected output of the pixel should have the value of raster 2  I tried "Mosaic To New Raster" tool with "maximum" but the output is simply a map showing the maximum value of the pixels, without me knowing from which raster it was coming from.  So it is possible to use ArcGIS to create this new raster (without the overlap because the overlap has already been assigned to the classification raster that carries the maximum value)?  I have been looking at existing questions, but I am not finding one that answers my question.  Or if there is any, can someone point me to it?  I am using ArcGIS 10.4.    From comments by @FelixIP, this could be solved using Spatial Analyst Tools --> Local --> Highest Position!


ssh + what is the default count of parallel ssh session to rhel machine that machine can allow in the same time

We have 736  machines that sometimes access the central server via ssh. In the worst-case, all machines can be connected to the one server at the same time. Is there any restriction on how many ssh connections can be established at the same time? I can see that in sshd_config I have #MaxSessions 10 but this parameter is disabled, so what is the default setting?


Intermediate fields between $\mathbb{Z}_2 (\sqrt{x},\sqrt{y})$ and $\mathbb{Z}_2 (x,y)$

Let $K=\mathbb{Z}_2 (x,y)$, where $x,y$ are independent, and $L$ be a splitting field extension of $(X^2 - x) (X^2 - y)$, then $[L:K] = 4$ and $L = K(\sqrt{x},\sqrt{y})$ where $\sqrt{x},\sqrt{y}$ are roots of $X^2-x$, $X^2 - y$ respectively. What are the subextensions of $L:K$?  I know all elements in $L$ square to something in $K$, so all the intermediate fields are $K(\sqrt{k})$ for some $k\in K$, but some of them are the same, say $K(\sqrt{x/y}) = K(\sqrt{xy})$...   Note: $\mathbb{Z}_2$ means $\mathbb{Z} / 2\mathbb{Z}$


Array on the surface of a shape but not showing the shape

I'm looking for a way to make a low-poly tree like the image.  What's the best way of procedurally making it? Ideally, I'd like to have those ico-spheres touching each other tightly like the image. I was thinking maybe I can array a collection of ico-spheres on a sphere or a custom shape, but then I need to hide this shape, how can I do it? Or is there a completely different approach?


How to safely and conventiently have an external drive connected to an OS X laptop

We all know that notification 'Drive X was not ejected properly'. I have a laptop, which I use regularly at my desk with monitor etc, as well as on the go. I want to be able to back up my data to an external drive, so I've got a 1 TB drive connected via a USB hub alongside my mouse an keyboard.  It's a real pain trying to remember to eject the disk before I unplug the laptop to take it somewhere. Especially when I'm in a hurry I often forget. I've seen that notification countless times when pulling out thumb drives but nothing ever happened so I stopped taking it seriously.  That is, until my backup drive got corrupted. It's now in a state where disk utility consistently fails to reformat it and time machine can't write to it. I have two other USB devices this has happened on, but they were fairly old ones I used infrequently so I assumed something else had made them fail.  Why does OS X require users to be so careful ejecting drives? Both Windows and Ubuntu (the other two OS's I've used) seem to handle this fine. Is there a way that I can have this drive consistently connected so that backups happen automatically, but that I don't have to worry about the drive being damaged?


I tried blacklisting and everything I could find on the internet used with root and Alt+Ctrl+F1 with no solution :  nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Mon Jun 17 08:35:25 2013 installer version: 319.23  PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin  nvidia-installer command line:     ./nvidia-installer  Using: nvidia-installer ncurses user interface -> License accepted. -> Installing NVIDIA driver version 319.23. -> Running distribution scripts    executing: '/usr/lib/nvidia/pre-install'... -> done. -> The distribution-provided pre-install script failed!      Continue installation anyway? (Answer: Yes)  ERROR: The Nouveau kernel driver is currently in use by your system.  This driver is  incompatible with the NVIDIA driver, and must be disabled before proceeding.  Please  consult the NVIDIA driver README and your Linux distribution's documentation for  details on how to correctly disable the Nouveau kernel driver.  WARNING: One or more modprobe configuration files to disable Nouveau are already  present at: /etc/modprobe.d/nvidia-installer-disable-nouveau.conf.  Please be sure  you have rebooted your system since these files were written.  If you have rebooted,  then Nouveau may be enabled for other reasons, such as being included in the system  initial ramdisk or in your X configuration file.  Please consult the NVIDIA driver  README and your Linux distribution's documentation for details on how to correctly  disable the Nouveau kernel driver.  ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log'  for details.  You may find suggestions on fixing installation problems in the README  available on the Linux driver download page at www.nvidia.com.


Bibliography Author names out of order and with no Comma

I a am writing a simple report with bibliography in a separate .bib file. I have one bibliography entry like:  @Misc{SVD,   title={myTitle},   author= { Kotidis , Faloutsos ,Labrinidis},   howpublished = {\url {http://..}}, }   but when I see the result in references it is     where names are out of order but mainly between Name 1 and 2 there is no comma.  To load my bibliography I use:  \usepackage{natbib} ... \bibliographystyle{plain} \bibliography{references}   Any possible explanation for this behavior?  Thanks for any reply


How to change the dash icon in Unity 15.04 to a custom .png?

It's very tiring to have to keep looking at the default image of the Ubuntu logo in the dash. How do you change this default image into a custom image (btw, in my case I have a 48x48 .png ready to be changed to)?


Restoring a database that belonged to an AG

I'm trying to perfect our disaster recovery steps...  We take backups of a database that, in production, is in an AG.  It is the only database in the AG.  If we lose the building, I need to be able to restore it to a new instance.  Initially, for time's sake, this instance would not be running in an AG.  Of course, if you try a normal restore, you get error Msg 3104: "RESTORE cannot operate on database 'SI_EDI_PRD' because it is configured for database mirroring or has joined an availability group."  And, since the instance is not configured for AlwaysOn, you can't try to run the ALTER AVAILABILITY GROUP command.  How can one restore this database??


str_=raw_input('Enter:') for i,k in enumerate(str_):     if str_[i] != str_[i].upper():         v=str(str_[i].upper())         print v,       else:         c= str(str_[i].lower())         print c,   This code helps swapping the cases My output is right but i'm getting spaces in between i tried all possible ways to remove the spaces like re.sub,strip(\n),remove(' ','' ) still my output is like this     >>>Enter:juNgLe   J U n G l E   where i want my output:JUnGlE


Long boot delay on Ubuntu loading/splash screen following regular dist-upgrade on clean SSD install (18.04)

I'be been running 18.04 since a clean SSD install on the day of it's official release, without issues. Power on to login was seconds (max 10)  Then, I did a regular upgrade this morning:  $ sudo apt update && sudo apt dist-upgrade   The packages installed/upgraded were:  Install: linux-headers-4.15.0-24:amd64 (4.15.0-24.26, automatic), linux-headers-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-extra-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-image-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic) Upgrade: gnome-control-center-data:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-headers-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-image-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), linux-signed-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center-faces:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-generic:amd64 (4.15.0.23.25, 4.15.0.24.26)   I rebooted once the upgrade had completed, and noted a 2-3 minute delay on the Ubuntu loading/splash screen (prior to login) (without any progress/activity indicated on the dots).  I powered off and tried to boot again, but am getting this delay consistently now. Also close down is much slower too.  Update #1 (2018-07-03): Analysis on systemd:  $ sudo systemd-analyze blame 3min 53.073s plymouth-quit-wait.service     2min 20.699s snapd.seeded.service          49.949s snapd.service           6.186s NetworkManager-wait-online.service           1.148s dev-sda2.device           1.098s plymouth-start.service   Showing that plymouth-quit-wait.service (which I now believe is related to the Ubuntu loading/splash screen) and snapd.seeded.service were by far the longest running services to initiate. So I compared the times before the dist-upgrade and after:  $ journalctl -u plymouth-quit-wait.service --since today -- Logs begin at Fri 2018-04-27 13:01:30 BST, end at Tue 2018-07-03 12:38:05 BST. -- Jul 03 04:15:43 user-laptop systemd[1]: Starting Hold until boot process finishes up... Jul 03 04:15:46 user-laptop systemd[1]: Started Hold until boot process finishes up. -- Reboot -- Jul 03 04:21:17 user-laptop systemd[1]: Starting Hold until boot process finishes up... Jul 03 04:24:52 user-laptop systemd[1]: Started Hold until boot process finishes up.   Before the upgrade plymouth-quit-wait.service took 3 seconds. After the upgrade it took 3 minutes 35 seconds  $ journalctl -u snapd.seeded.service --since today -- Logs begin at Fri 2018-04-27 13:01:30 BST, end at Tue 2018-07-03 12:42:14 BST. -- Jul 03 04:15:43 user-laptop systemd[1]: Starting Wait until snapd is fully seeded... Jul 03 04:15:43 user-laptop systemd[1]: Started Wait until snapd is fully seeded. -- Reboot -- Jul 03 04:22:47 user-laptop systemd[1]: Starting Wait until snapd is fully seeded... Jul 03 04:24:49 user-laptop systemd[1]: Started Wait until snapd is fully seeded.   Before the upgrade snapd.seeded.service took 0 seconds. After the upgrade it took 2 minutes 2 seconds.  Update #2 (2018-07-06): This morning's boot saw the return of the delay. So I guess we're still waiting for the kernel/plymouth/snapd update.  Update #3 (2018-07-12): The problem seems to be resolved, but I didn't see any update to snap or plymouth, and I'm still running 4.15.0-24 kernel. So I'm not sure which package update fixed the problem, or if it just resolved itself somehow. Reading the bug updates on launchpad it's unclear to me what was done (or is being done) to what package/s. If anyone can clarify that would be very useful.


How to install windows 7 for the first time?

I have a personal computer with windows XP and I want to remove this XP and install windows 7.  What steps should I follow to do this without risking my hard drive's data?


What are the differences between Desktop, Server, and Alternate Installs?

I am trying to figure out what the exact difference is between the 3 different install Disks.  Like what packages are different and such.  For Example: - The server disk doesn't install gnome by default and has the non-pretty install wizard. - The Alternate Install gives options for encryption.  Are there any other differences?


I want to mount the NFS share of a Zyxel NSA310s NAS. Showmount, called on the client machine, shows the share:  $ showmount 10.0.0.100 -e Export list for 10.0.0.100: /i-data/7fd943bf/nfs/zyxelNFS *   The client's /etc/fstab contains the line:  10.0.0.100:/i-data/7fd943bf/nfs/zyxelNFS /media/nasNFS nfs rw  0 0   But mounting does not work:  sudo mount /media/nasNFS/ -v mount.nfs: timeout set for Mon May 25 17:34:46 2015 mount.nfs: trying text-based options 'vers=4,addr=10.0.0.100,clientaddr=10.0.0.2' mount.nfs: mount(2): Protocol not supported mount.nfs: trying text-based options 'addr=10.0.0.100' mount.nfs: prog 100003, trying vers=3, prot=6 mount.nfs: trying 10.0.0.100 prog 100003 vers 3 prot TCP port 2049 mount.nfs: portmap query retrying: RPC: Program/version mismatch mount.nfs: prog 100003, trying vers=3, prot=17 mount.nfs: trying 10.0.0.100 prog 100003 vers 3 prot UDP port 2049 mount.nfs: portmap query failed: RPC: Program/version mismatch mount.nfs: Protocol not supported   nfs-common is installed. What else can be missing?


Proof that $\sum_{1}^{\infty} \frac{1}{n^2} <2$

I know how to prove that  $$\sum_1^{\infty} \frac{1}{n^2}<2$$ because  $$\sum_1^{\infty} \frac{1}{n^2}=\frac{\pi^2}{6}<2$$  But I wanted to prove it using only inequalities. Is there a way to do it? Can you think of an inequality such that you can calculate the limit of both sides, and the limit of the rigth side is $2$? Is there a good book about inequalities that helps to prove that a sum is less than a given quantity?  This is not a homework problem, its a self posed problem that I was thinking about :)


What is the range of the Enterprise-D's sensors?

A similar question on the functionality of sensors can be found , but my question goes beyond that (pun intended).  What is the range (distance) of the sensors of the Enterprise-D?  My understanding (and correct me if I'm wrong here please) is that there are three types of sensors: long-rage, short-range and visual (ie the viewscreen).  What exactly is the range of these three types of sensors (as in what is the maximum distance they can each detect something)?  I know from several TNG episodes the Enterprise can apparently scan an entire system when it is in it, but that's rather ambiguous I think - I'm looking for a unit of measurement (km - although that's probably an underestimate of the Enterprise-D's abilities I'm sure).


Convex function as supremum of countably many affine functions

Let $f:\mathbb{R}^n\to \mathbb{R}$ be a convex function. It is well-known that (see e.g.~) that there exists a set $A$ such that  $$ f(x)=\sup_{a\in A}A(a)x+b(a), \quad \forall x\in \mathbb{R}^n, $$ where $A(a)\in\mathbb{R}^{n\times n}$ and $b(a)\in \mathbb{R}^n$.  I was wondering, is there any reference saying we can choose $A$ as a countable set?


Disable Multiple Desktops Reordering Feature?

I have a new MBP with 10.9 installed on it.  I normally work by swapping between desktops that have a specific function (like one has Mail.app and Cal.app running on it).  Once I started using mavericks I noticed that when I'd click on a dock icon, the order of the desktops is rearranged.  I do not think this is how things worked on 10.7, but as I no longer have that machine, I can't confirm.   Is there a way to disable this behavior because it's very annoying.


How can I duplicate an object with independent meshes?

I am trying to duplicate a mesh object using python. After duplication I try to change the duplicated object's mesh, but the original object's mesh also changes. Seem like both objects have the same mesh. How can I also duplicate the mesh? Here is some Code: >>> obj1 = bpy.data.objects['Cube'] >>> obj2 = obj1.copy() >>> bpy.context.collection.objects.link(obj2) >>> obj1.location = Vector((3,0,0)) >>> obj2.animation_data_clear() >>> ve = obj2.data.vertices[0] >>> ve.co = ve.co*2


With Blender 3D, can I print a custom size color graphic of the model? I want to print 20 x 30 inches in high definition.


How do I install python imaging library (PIL)?

How do I install the python imaging library (PIL) on Ubuntu?  I tried doing  sudo apt-get install python-imaging   but now when i run     python selftest.py (a script I got from somewhere on the  website) I get (among other warning messages):  ... *** JPEG support not installed *** ZLIB (PNG/ZIP) support not installed ... *** 1 tests of 57 failed.   Have I somehow messed up the PIL -- how do I fix that?  Is maybe the PIL just fine, but that "selftest.py" is not really the right program for checking to see if PIL is installed properly -- how else can I tell if PIL is installed properly or not?  (I'm using Ubuntu 12.04 LTS "Precise Pangolin").  (What I'm ultimately trying to do is to add a 2D barcode generator to some python code, and all the 2D barcode generators I could find that were written in python all seemed to use the PIL).


I've always thought that heap allocation is needed for allocating data structures with sizes that aren't known at compile time. But I recently learned about alloca, which allows for dynamic allocation on the stack. So, if heap allocation isn't needed for allocation of dynamic sizes, are there things for which heap allocation is necessary? My first thought is that resizing data structures may be difficult, but I'm not sure whether it's impossible or not without using the heap.


Are there any commands in Minecraft Pocket Edition? I'm looking for both singleplayer and multiplayer commands including admin commands.


Can I use the Stack Exchange concept in my own sites?

I am thinking of making a site which will have a forum. I already have a lot of users (in an old forum, which I want to renew).  I like the Stack Exchange concept (voting, reputation, etc).  Can I build one of my own on my site? (I don't intend to copy any source code, just the concept itself.)  Is the concept patented or otherwise legally protected, or is it free to use?


How do I show that every family of open nonempty disjoint sets (in $\mathbb{R}$) is countable?  I think I should use the fact that every nonempty open set is the disjoint union of a countable collection of open intervals, but I'm not sure. The question here is pretty simple but I can't even start to think of a way to solve it.


My ubuntu 18.04 is broken due to an issue     Now I am planning to reinstall ubuntu from USB. I have booted from live USB and was able to backup my home folder by mounting the drive and copying it to an external hard drive.   My question is can I somehow also backup my installed packages and settings from the live USB or can I reinstall ubuntu without overwriting my data or at the very least can I somehow get a list of my installed packages and libraries?


I have a formula which very nearly fits on one line, and I'd like it to sit on one line as it looks silly split onto two.  If I reduce the left and right margins for the whole document to 1cm, the long formula fits on one line but the rest of the document looks strange.  Is there any way to set the margins for just that one line to 1cm, while keeping the rest of the document at 2.5cm. Such as using a minipage?


Im sure this is a repeated question, however I have no idea how to phrase it. What does pythons[1:3] yield?  pythons = [’Graham’, ’Eric’, ’Terry’, ’John’, ’Michael’, ’Terry’]   I know now the answer is Eric and Terry, but why?


How can I make compilation more quiet by removing "LaTeX Warning" messages from the log?

I am using a the Tufte-\LaTeX class and compiling it in TextMate, which has a nifty LaTeX bundle and latexmk interface. The document is getting long, and I get heaps of these:  LaTeX Warning: Marginpar on page 31 moved.   This is mostly due to how the footnotes are handled by the class, and thus rarely of interest to me. From time to time, I also get this from my fonts:  LaTeX Font Warning: Font shape `OT1/zi4/m/it' undefined   As it happens, these issues are (really) trivial to me, but I do care about the other issues that get lost in the huge list of warnings.  Is there a way to suppress either all or a selection of warnings from my log? I could not find much on that topic by searching here or elsewhere.  (For the moment, it seems that my only option is to reprogram the TextMate bundle to display warnings, e.g., in minuscule text.)


Why would we use different output and recurrent activations in an LSTM?

I am developing a LSTM network with Tensorflow. The Tensorflow  shows that there are different activations for the output of the timestep (tanh) and for the data flowing back in to the network at the next time step (sigmoid). It seems to me that we would want the same activation function for both of these, so the fact that they default to different things is surprising to me.  So why would we want to use different activations and recurrent activations?


Minimal polynomial of $\sqrt[3]{2} + \sqrt{3}$

Suppose I want to find the minimal polynomial of the number $\sqrt[3]{2} + \sqrt{3}$.   Now that means I want to find a  unique polynomial that is irreducible over $\Bbb Q$ such that $f(x)=0$. Now I know that because   $\sqrt[3]{2} + \sqrt{3}$ belongs to $\Bbb Q( \sqrt[3]{2} , \sqrt{3})$  it might be degree $2$, $3$ or $6$ and does not belong to $\Bbb Q( \sqrt[3]{2})$ so it cannot be of degree $3$ or  $\Bbb Q( \sqrt{3})$ so it cannot be of degree $2$.  So it is of degree $6$. I think my sayings are a bit intuitive and not formal and lack rigorous. Couldn't it belong to another extension of degree $2$? or $3$? I can't answer that. Why checking only those $2$ is enough? Or is it wrong at all to say that?


Applying to several faculty positions within the same institution

The following question is not a general question about , but rather about applying to several positions within the same institution (regardless of applying to multiple other institutions as well).  Starting questions are, as follows. What are the potential effects, following such strategy? Mostly negative, mostly positive, or neutral? A situation often occurs, such that an institution advertises several positions that I believe I would fit, however, among those, only one (usually) is the best fit (my preference), but others are also suitable (decent fit).  Therefore, my main question is twofold: 1) is it a good strategy to apply to all suitable positions within an institution; 2) if Yes, should I mention my preference, for example, in an application letter (if No, I assume that the optimal choice is to apply to the position with the best fit)?


How can the chainsaw-scene of "American Psycho" (2000) be explained?

What actually happened in this scene? [Warning: Graphic]                                   Did or didn't Bateman really fatally injure the prostitute on the bed? Did or didn't Bateman really kill the 2nd prostitute with chainsaw? If NO, why was that 2nd prostitute so horrified?


Why does "Object reference not set to an instance of an object" not refer the variable name or column?

If you have multiple variables on one line it's always a guess which one might be the null.   Sometimes I split one inline statement over two statements on purpose so I can easier understand what variable it's talking about if an exception occurs.   But I assume that the compiler can anyway decide to merge these lines into one 'thing'? So why can it then differentiate between the variables, but not if it's in one statement?  I assume there is a really good reason, but to understand compilers and the underlying workings better; why can't it tell me which variable (or column) is causing the nullref exception?  // NullRefException pointing to this line if ( GetSomeItemFromX().AmountOfLolCats > GetSomeItemFromY().AmountOfLolCats )     return "yay";   vs  // now I can see which method is causing problems    int amountX = GetSomeItemFromX().AmountOfLolCats; int amountY = GetSomeItemFromY().AmountOfLolCats;  if ( amountX > amountY )     return "yay";   A typical ASP.NET exception; which one is null?    I hope someone can teach us about the underlyings of compilers and a better understanding of things happening under the hood and the tradeoffs that are being made on that level.


So I'm watching the LOTR trilogy and I'm on Fellowship of the Ring. It seems as if the Nazgûl actively avoid water, such as at the Bucklebury Ferry and the river at Rivendell. Does water harm the Nazgûl or lessen their powers in any way? Or are they just fussy and don't want to get their natty black robes wet?


Why do I get a nullpointer when attempting to query through my ContentResolver in Android?

I'm getting a NullPointerException right where I call the query from my Fragment class. I'm fairly certain the issue is because I'm instantiating my ContentProvider class in my Fragment class, but I don't know how else I can call the ContentResolver if I don't have the context. I'm pretty new to Android programming and it's hard for me to get a grasp on things at first so forgive me if it's a really obvious error.  So here is part of the code,  abstract private class BaseTask<T> extends AsyncTask<T, Void, Cursor> { @Override public void onPostExecute(Cursor result) {   ((CursorAdapter)getListAdapter()).changeCursor(result);  }       protected Cursor doQuery() { // This method sets up my query call in ConstantsFragment class.      Uri uri = ConstantsProvider.Constants.CONTENT_URI;      String[] projection = new String[] { ConstantsProvider.Constants.TITLE,              ConstantsProvider.Constants.VALUE };      String selection = ConstantsProvider.Constants.TABLE + " = '"            + ("1") + "'";      String[] selectionArgs = null;      String sortOrder = ConstantsProvider.Constants.DEFAULT_SORT_ORDER            + " COLLATE LOCALIZED ASC";       Cursor result = cp.getContext().getContentResolver().query(uri, projection, selection, selectionArgs, sortOrder);       //Above is where I get my nullpointer. cp is my Contentprovider class object.       return result;      } }   I'm leaving my ContentProvider and ConstantsFragment class(which is the class that includes the above code)  below incase needed. In my ConstantsFragment class I have no completed the insert/delete methods so ignore those for now, I want to make sure my query works first.  ContentProvider class :   ConstantsFragment class:


So I am writing a program, and of the the tasks is to determine if a user has pressed tab. So when he presses tab, I should print something to the console(or do tab completition etc). My problem is how do I do it without the user pressing enter. I tried looking into ncurses but I couldn't find a simple example that would teach me how to do it with tab.  Edit: Using Linux


What good is eSATA without a power source?

What good is an eSATA connection on the outside of my PC with no access to power. Without a power source it seems useless.  Am I not thinking this through correctly — is there something I am not seeing?


Why PHP save windows-1252 text to a utf8mb4 database?

I was trying to convert utf8 to utf8mb4 for a php website, unfortunately, I was success on localhost but failed on test server.  localhost:   php/5.3.29(brew install php53) or PHP/5.6.8(xampp)   Apache/2.4.16     test server:   PHP/5.6.14   nginx/1.6.0     They are connecting to the same mysql database(encoding: utf8mb4, collation: utf8mb4_unicode_ci). data tables: (encoding: utf8, collation: utf8_unicode_ci) some data tables: (encoding: utf8mb4, collation: utf8mb4_unicode_ci)  The php website with  framework current config:  $db['default']['char_set'] = 'utf8'; $db['default']['dbcollat'] = 'utf8_general_ci';   With this config, everything is ok. When I change the config to:  $db['default']['char_set'] = 'utf8mb4'; $db['default']['dbcollat'] = 'utf8mb4_general_ci';   everything is ok on my localhost server but not test server.  On test server, the page text which get data from DB show ???. I try to insert a comment with emoji from page, the comment text is ok.  I use a mysql client Sequel Pro to connect the database, I find the comment that inserted just now is incorrect encoding(windows-1252). PHP save windows-1252 text to a utf8 database.  T_T, please help me. Is that some php extends required?


Change folder icon of multiple folders, Music albums

To change the folder icon all you have to do is right click on a folder, select Properties, click on the folder icon, navigate to choose folder icon, select it and done!  But if you have to do it on 100s of folders that would be a pain. What I want is a shorter way to do the same. Like a shortcut that would automatically get to choosing image screen or anything to make it hassle free.  Each folder has a image inside it named "album art.jpeg" or "cover art.jpg" or something like that.


I'm pretty sure this has been asked here before. But perhaps due to high flexibility in formulating this problem I couldn't find any useful resources.   Obviously a lower bound is $2$. And, numerically testing it in WolframAlpha, I'm quite convinced the limit should just be $2$.  My first thought was to see it as a Riemann partial sum but it failed, at least in the equi-partition case.   Could anybody help? Thanks.


The tag suggester shouldn't suggest synonyms of tags that you've already used

I was composing a question about Postgres on Stack Overflow, and had tagged the question with "postgres". The tag suggester, seeing that my question was about PostgreSQL, dutifully informed me that I ought to add "postgresql" as a tag as well.    But Postgres and PostgreSQL are the same thing! And the tag suggestion engine should know that, because "postgres" and "postgresql" are synonyms.   This seems like a (very minor) bug, or at least undesirable behavior - the tag suggester shouldn't suggest synonyms of tags you've already used.


Is there any other way to reach Winterfell without crossing the wall?

In S01E01 of Game of Thrones, Eddard passes death sentences on a deserter. In a conversation, the desserter says:     I know I broke my oath, and I'm a deserter. I should have gone back to the wall and warned them, but I saw what I saw.   My understanding is there is only one way to enter Winterfell and it is through the Wall. So how did this guys manage to escape the White Walker without going through/crossing the wall?  Please watch both the videos for the reference:


Unable to login into ubuntu(16.04) after CUDA installation

I was trying to train the classifier using OpenFace framework. As part of the installation process, I executed the following commands for CUDA installation:  sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb  sudo apt-get update  sudo apt-get install cuda   After system restart I am unable to login. Running a Ubuntu VM (Windows 10 host) and installed CUDA in Ubuntu. Do I need to install any Nvidia drivers in Ubuntu?


I am doing a paper on famous planar curves and one of them is the Euler spiral or cornu spiral. The only representation of this curve is over the Fresnel integrals, but how do I plot the Fresnel integrals in LaTex.


How can I change the colors of lightning-button?  I tried doing this in my css:  .my-button {     background-color: #14a6bc;     color: #ffffff; }   and applying that class to my <lightning-button> and removing the variant but I still get the base colors? I am trying to use these examples:


I have a confusion with the perception skill:  We are in a dungeon, my rogue wood elf character is walking straight while looking for everything suspicious, like traps or anything. Should I roll for perception, or for passive perception?  I am asking this because my DM keeps telling me that it is for passive perception. However, I think its for perception because I am doing the action, and not just walking by distracted.


How many digits is $99^{99}$ without a calculator?

I know the answer is $198$.  I realise that if $\log _{10}\left( x\right) =y$, the number $x$ has $\lfloor y\rfloor -1$ digits  So I tried $\log ^{\ }_{10}\left( 99^{99}\right) $ = $\log _{10}\left( 100\left( 1-\dfrac {1}{100}\right) \right) $ = $198 + 99\log_{10}\left( 1-\dfrac {1}{100}\right) $ , then I do not know how to proceed. I guess using this method amounts to finding a good approximation to $\log _{10}\left( 99\right)$  I would also be interested to know how one can solve this with the binomial theorem: $\left( 100-1\right) ^{99}$


If you have two different common divisors in an integral domain that is not a multiple of each other, is the gcd then equal to the divisor that has the largest norm?


$ 1^k+2^k+3^k+...+(p-1)^k $ always a multiple of $p$?

I would appreciate if somebody could help me with the following problem:  Q: For any prime number $p(p\geq 3), k=1,2,3,...,p-2$, why is  $$ 1^k+2^k+3^k+...+(p-1)^k  $$ always a multiple of $p$ ?


Would putting a magnifying glass on a solar panel be beneficial?

During my childhood, it was common to use magnifying glasses to burn paper and dead leaves.    But would it be a good idea to place a lens above a solar panel, making sure that all the magnified light hits every solar cell on the solar panel? I know that  to harvest more energy, but I was wondering if this is reliable and durable.   Wouldn't the magnified light burn the solar panel or would it be converted to electrical energy right away?


Over at ,    To this end, the tag listed first on a question (sorted by popularity of the tag)  So, what's the basis for tag popularity? Views? It sure as hell isn't number of questions.


I search the Laurent series of $\sin(\frac{z}{z+1})$ in the point $z_0=-1$. What I did is write the taylor expansion   $$\sin\Big(\frac{z}{z+1}\Big)=\sum_{n=0}^\infty(-1)^n\frac{\Big(\frac{z}{z+1}\Big)^{2n+1}}{(2n+1)!}$$  But this can't be right, since I didn't take $z_0$ into account. How can I do the Laurent expansion in this case?


Please explain the meaning of "otherwise than" in this sentence

Please explain the meaning of the second part and explain "otherwise than" in part b     a person’s UK property business consists of:      (a) every business which the person carries on for generating income from land in the United Kingdom; and      (b) every transaction which the person enters into for that purpose otherwise than in the course of such a business.


Turn one row into multiple rows in Excel

I have multiple items that are available in multiple distribution centers (i.e., a many-to-many relationship). There is currently one row per item, with one column for each distribution center. A cell in the row for item X and the column for distribution center Y is marked with the code for distribution center Y if item X is available there and blank otherwise. An item with multiple distribution centers will have multiple distribution center codes (in their respective columns). So the current sheet looks like:      |   A    |         B         |*|                      S-AJ                      | 1   |  ID #  |   Description     |…|              Distribution Centers              | 2   |   17   |   Ginkgo Biloba   |…|      |      |      |      |      |      |  SE  | 3   |   42   |   Ginseng         |…|      |  MP  |  MS  |      |  NW  |      |      |                      ︙   Columns C through R contain other attributes of the items, such as UPC code, cost, and price, which are not relevant to this question. My actual sheet has 18 distribution centers, spanning columns S through AJ; I reduced that to get the example to fit into Stack Exchange’s window.  I need to have a single distribution center column, with a single distribution code per row, and then duplicate the rows as needed for items that currently contain multiple codes. The result should look like:      |   A    |         B         |*|   S  | 1   |  ID #  |   Description     |…|  DC  | 2   |   17   |   Ginkgo Biloba   |…|  SE  | 3   |   42   |   Ginseng         |…|  MP  | 4   |   42   |   Ginseng         |…|  MS  | 5   |   42   |   Ginseng         |…|  NW  |                      ︙   where cells A3:R3, A4:R4, and A5:R5, contain the same information.  The only way I can think of doing this, which would be time consuming, would be to copy the item number into multiple rows; and in the column that has the distribution code I would change code for the item that is available in each distribution center. I will be doing this for 900 items. Is there an easier way to do this?


Using TP4056 module to charge battery while load remains connected

I need a circuit that utilizes the tp4056 breakout board to power a NodeMCU ESP like so:   tp4056 USB port connected: 18650 battery charging and NodeMCU running of USB tp4056 USB port not connected: NodeMCU running of 18650 battery   The problem is that the load of the tp4056 should be disconnected while charging, otherwise it can mess with the overcharge protection of the tp4056 (see ).  I have designed the following circuit hoping it will achieve my goal. My reasoning is that when no USB is connected the relay will let the boost module run off the battery and when USB is connected the relay will close and power the boost module over USB while letting the battery charge as usual.  Does the circuit achieve my goal? Are there any other issues with the setup?    Please note that there will be more components connected to the NodeMCU, so the exact current draw remains unknown (<500ma though).


4 pin headset pinout / pushbuttons interface

You all know smartphone headsets. Most of them have a microphone integrated and additional pushbuttons for increasing/decreasing the volume or to pause the current track. I am wondering how this is working. The plug has 4 pins. I assume one pin is GND, two are for left and right audio and the fourth is for the microphone. So how are the pushbuttons connected then? There are three pins missing.  Maybe the microphone pin is used as bidrectional pin? If it is so there must be a protocol which declares which button was pressed (like UART). Also I don't know where the power suppy should come from. All the headset gets is an analog audio signal from the master device.  Connector:    Pushbuttons:


Does anyone know the origin of the phrase "walk it off"?

Ex. When someone gets hurt, usually in sports, and someone tells you to "walk it off"


Does site structure/URL structure impact SEO?

We would like to change the following URLs as follows: (old versions to the left, being changed to new versions on the right)   www.ex.com/xxx/full-seo-term -> www.ex.com/half-seo-term1/half-seo-term2 - leaving out random keywords and instead only having seo phrases www.ex.com/seo-word/seo-word -> www.ex.com/seo-phrase/seo-phrase/ Replacing seo words with seo phrases at all levels www.ex.com/seo-word/seo-word/seo-phrase/ -> www.ex.com/seo-phrase/seo-phrase reducing number of levels in site structure and keeping seo phrases early www.ex.com/* having the full website in only one level below the domain


How do I merge MP3 files without re-encoding?

I would like to merge multiple MP3 files on a Windows PC without decoding and re-encoding them. I don't mind if the final MP3 files loses the ID3 tags, but if it could somehow preserve the ID3 tags, that would be a bonus. I would also like to avoid issues with time.  How can I accomplish this?


What file formats should I send to my client for his logo?

I've been reading different articles and such and have come to the conclusion that I should send him:  -ai file  -eps file  -jpg file  -pdf file  -png file  Should I include anything else or is that sufficient?  And my other question is this: Should the jpg and png file be in CMYK or RGB and what should the resolution be, 72 dpi or 300 dpi?  Thanks for the input!   EDIT: Would it be better to save the JPG and PNG as 72 dip or as 300 dpi? What do you typically do?


How do I find cows in my survival mode Minecraft world?

I have been trying to find cows in my world on Minecraft in survival mode and I can't find them anywhere. How do they spawn? Can I do anything to find them?


What are the common errors you see when you run 'java -cp ...' or 'java -classpath'? How do you set a directory of jars in classpath?

When you run 'java -cp ...' or 'java -classpath'? How do you set a directory of jars in classpath?  In Linux, java -cp /some/directory/ would not work! although it clearly says directory in -cp is supported.


Suppose I have a y vs. x data as in x,y 1, 14.75 2,11.18 3,21.72 ... 19,71.17 20,73.10  Using Matlab's cftool, and a linear fit model, I get $y=ax+b$ where $a=a_0+\Delta a$ and $b=b_0+\Delta b$. The $y=a_0 x+b_0$ function fits nicely to this data (red curve in the image). But I am interested in plotting a fit to this data which also takes into consideration the error of the parameters $a$ and $b$, namely $\Delta a$ and $\Delta b$. Is it correct to say that the error of the fit are the lines $y=(a_0+\Delta a)x+(b_0+\Delta b)$ and $y=(a_0-\Delta a)x+(b_0-\Delta b)$ (black in image)? These two lines are the extreme case when we are on the end of the error (in the + and - direction) for both $a$ and $b$. I guess that answer is no, and I would like to have an explanation why. If no, then what is the correct way to mark up graphically the error of this fit? More generally, how would I establish this method for a more complicated fit function, such as a Lorentzian ($\frac{A^2}{(x-u)^2+\gamma^2}$) which has 3 parameters - $A_0+\Delta A$, $u_0+\Delta u$ and $\gamma_0+\Delta \gamma$?


I use UbuntuStudio 18.04.1 LTS, with all the Gnome desktop enviroment ("by my hand" installed with Synaptic).  I wonder if there is a simple way (line command) to get a full, whole system reset to its factory settings, without to have to install it from the Live CD.  Why I don't want to install it from the Live CD? Simple... Unfortunately, the home directory would be lost if I do that, and I have a lot of personal data in that directory.  BTW: I think future versions of Ubuntu should leave the user personal data (audio, video, image, text, etc) in another partition, by default, to avoid this issue. Just an Idea.  So... Is there some simple command to reset the whole system to the factory setting parameters?


How many swords made of Valyrian Steel are there at the end of Season 6?

There are many swords made of Valyrian steel. Can anybody throw light on how many are there in total in the known world?


How to pass generic enum parameter to method?

public static string GetCustomerIssueStatus(this HtmlHelper html, byte number) {     return Enum.GetName(typeof(Shared.Enumerators.CustomerIssueStatus), number); }   How could I create this extension method, to accept all enum types as parameter?


DS-160 Immigration Law Violation Information for UK Banned Person

I work for a global company and need to travel to US with a B1/B2 visa; however, I do not actually know what to answer for below question:     "Have you ever sought to obtain or assist others to obtain a visa,   entry into the United States, or any other United States immigration   benefit by fraud or willful misrepresentation or other unlawful   means?"   In 2009, I was refused and banned by UK for future applications for 10 years since they did not find my language requirement document genuine.  Does that mean I should answer YES to that question? I sought advice from my company's own visa department, and they told me that the question is only for United States applications and thus need to be answered as "No".  I would gladly answer “Yes” and explain my situation rather than misrepresent myself, but would like to get your advice about the situation as well as I am not comfortable giving unnecessary details if it is not mandatory.  Update: As of late 2019, I succesfully been granted a visa to US for my business travel. Answered the question "No" like suggested here if anyone's wondering. Please note that application been done after my ban for UK expired, though I am not sure if it is effected anything at all.


How to start new applications in a new workspace (GNOME shell)?

What I really like about GNOME shell is that the user can easily place different applications in different workspaces, thus giving each application the entire desktop. The pain in that is that the user has to manually switch the applications between workspaces.   There is an extension that forces specific applications to be opened in predesignated workspaces; for example, Firefox would start at workspace 4, Banshee at workspace 3, etc. But the drawback of that is that if the user is working in workspace one and wants to start Firefox, he/she would have 2 empty workspaces between 1 and 4. Not only that but also programs that aren't configured would still open in the current workspace.   Is there an extension or a script that forces new applications to start in the last open workspace (the empty one), no matter how many workspaces are open?


Can't install any programs on Ubuntu 16.04 after trying to use command to install runescape

E: Type 'wget' is not known on line 1 in source list /etc/apt/sources.list.d/runescape.list E: The list of sources could not be read. E: Type 'wget' is not known on line 1 in source list /etc/apt/sources.list.d/runescape.list E: The list of sources could not be read.   I've been through everything, resetting repositories/sources, and when I did that it seemed to mess up further, now I have the little circle with a white line running through it in the top right of my screen. Have spent over a day trying to resolve this and I can't install anything at all. I even made a new account hoping it would reset my settings, which seemed to work for a minute (red circle went away) but then it seemed to go right back to how it was. Sorry if I missed any crucial information, this is my third day using Ubuntu.  The link you sent me definitely helped something but in the end the same message. Here's what's happening:


I have a script in python that does some non-linear optimization and I am having now a somewhat dumb error. I did a loop on the script and now I what it to save the results in a variable called "Final", which at the begining I create as a dummy by setting it to None. So now if it is the first iteration, it will be an empty variable where my results (a pandas DataFrame) will be saved, if it is after the first iteration, the result will be appended to the last "Final" variable.  This is my code:  if Final == None:     Final = df  #df is a pandas dataframe of 1 line and 29 columns elif Final != None:     Final = Final.append(df,ignore_index = True)   And I get this error: "unindent does not match any outer indentation level"  Am I wrong in setting the Final variable as None? Is there a better way to add the results to a final variable?


Safari is NOT on my iPhone 6 anywhere. It is not in a folder as I have not put any extra folders on it. I also do not have the use of Spotlight. Cannot figure this out.