so today I decided to quit windows and starting using Ubuntu in a daily basis. First of all I'd like to apologize if this is a duplicated post, but I've searched all over stackexchange and found noone with the same errors I have. So I went to Ubuntu's website, grabbed the  version, looked for a , followed every step to create the bootable USB, booted from it and selected the option Install Ubuntu. And then got stuck on a scary screen that made me realize that something was not right. I'm gonna try to illustrate the process as best as I can:      First I selected on my  from what disk I wanted to boot my PC. NOTE: First I tried the KINGSTONDataTraveler (Without the UEFI) and I got an error message along the lines of "Reboot and select a proper Boot Device, or insert boot media device and press a key", so I rebooted and selected the UEFI one.Then on my second screen I got the . So I went and clicked Install Ubuntu. Everything looks fine for now. And here it comes all the trouble... My monitor remains black for a good 4-6 seconds, and then  strange dotted line appears on top of the screen. And like 2 or 3 seconds later my screen gets filled with , what looks like a VERY distorted set of characters.    My screen remains stuck with that pattern indefinitely, so I need to power off my computer directly from my power button. I tried reflashing the USB drive, tried others USB drives, re-downloaded the iso file to make sure it was not corrupted. Pretty much everything I can think of... I don't know what to do now, any suggestion? These are my computer specs: Motherboard: Gigabyte Z97X-Gaming 3 CPU: Intel Core i7-4790K 4.0Ghz GPU: Gigabyte GeForce GTX 970 WindForce 3X OC 4GB DDR5 RAM: G.Skill Trident X DDR3 2400 PC3-19200 16GB 2x8GB CL10  SSD: (1x) Samsung EVO 850 Series 250 GB SSD2: (1x) Samsung EVO 840 Series 250 GB HDDs: (2x) WD Blue 1TB  NOTE: When I was on windows, my 2 SSD and my 2 HDD were on raid 0 (2 on 2). I don't know if I'm missing something, hope that's enough to solve my problem.


How do researchers send unsolicited emails asking for feedback on their works?

I wonder how a researcher send an unsolicited email to another one asking for feedback to their work. I guess it will be something like this?  Hello Dr. X To introduce myself, I am Y, in institute Z. I'm sorry if this email is not convenient at this time, but my work about A is highly relevant to your work in B, so I think it will be interesting to you too. If possible, can you take a look at it and tell me what you think? Here is the link:  Thank you for your reading, hope you enjoy it.  I wonder if the summary/abstract should be included in the email too, since the principle for  is to show everything you know about it. Maybe it's not necessary, since the title of the link should prove its interestingness nevertheless? I'd like to have your confirm. I'm also interested in the case where Y has no Z, and the link is just a collection of observations posted in a blog, not a full paper with proper citation and literary review. It is possible that the observations may have been covered in the field, but Y isn't aware of that yet. I also think that if the link is interesting enough, then putting a tracking method in there is fine too? Even if they finds out, they wouldn't feel insulted either, because they find that the link is indeed interesting.  Related: •  •  •


How to run a program that has more than one public class in java?

I'm a newbie to java. I have written the following program :   import java.util.ArrayList; import java.io.*; import java.util.*;    public class dotcombust{     GameHelper helper=new GameHelper();     ArrayList<Dotcom> dotcomlist;     int nofguess=0;      private void setup(){             Dotcom one =new Dotcom();         dotcomlist.add(one);         Dotcom two= new Dotcom();         dotcomlist.add(two);         Dotcom three= new Dotcom();         dotcomlist.add(three);          for(Dotcom obj : dotcomlist)         {             obj.setname();             ArrayList<String> loc= helper.placeDotCom(3);             obj.setlocation(loc);         }     }      private void startplaying(){             while(!dotcomlist.isEmpty())         {             nofguess++;             String guess=helper.getUserInput("Enter a guess ");              checkuser(guess);         }         finish();     }      private void checkuser(String guess){             String result="miss";         for(Dotcom obj : dotcomlist)         {             result=obj.checkyourself(guess);             if(result.equals("kill"))             {                 System.out.println("You killed " + obj.name);                 dotcomlist.remove(obj);                 break;             }             else if(result.equals("hit"))             {                 break;             }        }         if(result.equals("hit") || result.equals("miss"))        {            System.out.println(result);        }     }      private void finish(){         System.out.println("You took " + nofguess + "guesses. If they are below 10, congrats. Otherwise you suck balls. No offense.");     }      public static void main(String[] args){         dotcombust game;         game=new dotcombust();         game.setup();         game.startplaying();     } }   When i run the program, i'm getting java.lang.NullPointerException at dotcombust.setup() and dotcombust.startplaying() statements. I thought that the classes Dotcom and Gamehelper are not related to the error and hence did not display them here. Please help me to fix the problem. Also, i wanted to know if it was possible to write the classes Dotcom and Gamehelper in different source file but use it in this code? If so how?.


how to overwrite a line of text in a text file in python

name email phonenumber eric example@gmail.com 01381031 tuna tuna@gmail.com 1571051  above is the personal_details.txt def personal(userid):     print("Modify personal details")     newemail = input("Enter your new email: ")     newphone = input("Enter your new phone:")     with open("personal_details.txt", "r+") as file:         for line in file:             line = line.split()             if userid == line[0]:                 file.seek(0)                 file.write(" " + newemail + " " + newphone)                 file.truncate()  I am creating profile system which users can modify the details. I wanna overwrite the text in line[2] and line[3] of the files but it keeps overwriting the whole files. Im quite new to python so I really need some helps to figure out this problem.


Unable to cast object of type 'System.Collections.Generic.List`1[]' to type 'System.Linq.IQueryable`1[]'

I have got the following code in my unit test. But, it returns the error mentioned when run.  var leaveTypesList = new List<LeaveType>() { leaveType1, leaveType2, leaveType3 }; var leaveTypesQueryable = leaveTypesList.AsQueryable(); mockLeaveTypeRepository.Setup(r => r.GetLeaveTypes()).Returns(leaveTypesQueryable); var leaveTypeDtos = service.GetLeaveTypes();   The error is generated from the last line when the results are returned from the service.  The service code for the GetLeaveTypes method listed below, which is a simple accessing of the repository.      public IQueryable<LeaveTypeDto> GetLeaveTypes()     {         //return Mapper.Map<IQueryable<LeaveTypeDto>>(leaveTypeRepository.GetLeaveTypes());         return leaveTypeRepository.GetLeaveTypes().ProjectTo<LeaveTypeDto>();     }   The repository code is also a simple return of an IQueryable of leave types.      public IQueryable<LeaveType> GetLeaveTypes()     {         return dbContext.LeaveType.Where(lt => lt.IsActive);     }   Just cannot figure out what is wrong here. Any ideas?


Bash Shell Scripting - displaying all files .c

I need to display all the files with .c (C program files) in the terminal and having problems to do so. My ideas were using find and grep and maybe gcc But none of my attempts worked. I am working on Linux. I don't know the file names. I just want to list all the files. I tried the following: ls *.c find . -type f *.c


How to draw following complex integration?

I am new to tikz package and want to draw following complex integration contours. I would like to insert these two pictures in my report. I read the previous posts on similar drawings but can't figure out the way to modify the existing code. Can some one help me out? Thank you very much. Here are the plots:


I'm building a rear wheel for the first time. I have purchased the rim and hub and am now sourcing the spokes. I put the measurements into an online spoke calculator (on wheelpro.co.uk) and it estimated 295mm and 293mm for the right and left side respectively.  Now I can find 295mm spokes but, so far, I haven't been able to find a 293. I will keep looking, but I have two questions:  1)  How precise do the spoke lengths need to be. If they are out by a millimetre is it likely to cause a significant problem?  2) If they are out by 1-2mms, is it better if they are too long or too short. So if it turns out to be impossible to get a 293mm, would a 294mm or a 292mm be a better alternative.  Many thanks in advance.  Chris


I just went to install Java 8 on my ancient laptop that runs Windows XP SP3.  Java pops up a message:     Java 8 requires a newer version of Windows. You may continue with the installation, but for Java to work as specified we recommend upgrading your computer's operating system.   Will Java fail to work properly on Windows XP? Or is this just Oracle trying to be secure?


What kind of things can you take from a hotel?

Hotels normally provide a big amount of sets (well, depending on the quality, but however, many!) that can help you feel more comfortable there.  So for example you can get towels, slippers, candies, pens, shampoos, shaving kits, sponges, ...  The same in the self-service breakfast: pastries, bread, ...  They are meant to be used during your stay. However, they can be provided in such an amount that there are some extra by the time you leave... and make you feel like taking some back home.  My general rule is to take those things that I used but didn't finish. However, sometimes I may be tempted to take the brand new stuff lying there before I close the door for the last time.  So the question that pops is: what kind of things is it correct to take from hotels and what is it not recommended? Else, what items may differ from country to country?


You can ask me any question vs. any questions

I know the answer is any question. But Do you have any questions is right, other than any question. What's the difference here?


Embedding an xml document inside an xml string

I have a web service that returns an xml string as results. The return string is in this format:  <ReturnValue>    <ErrorNumber>0 </ErrorNumber> <Message>my message</Message> </ReturnValue>   The data that I want to insert into the "message" tag is a serialized version of a custom object. The serialized format of that object contains xml and namespace declarations post serialization. When that gets thrown into the "message" tag of my return xml string, XmlSpy says that it's not well-formed. How should I get rid of the namespace declarations, or is there a different way to imbed a serialized object into an xml string?


Computing the covaraince of two random variables given by a linear combination of samples drawn i.i.d from same distribution

Suppose we want to compute the covariance between $z_1$ and $z_2$ given as follows: $$ z_1 = a_1 \cdot x_1 + a_2\cdot x_2 \\ z_2 = a_3 \cdot x_1 + a_4 \cdot x_2\\ % x_1,x_2 \sim p(x) $$ If we compute the covariance between $z_1$ and $z_2$  we have: $$ \mathbb{E}[z_1\cdot z_2] - \mathbb{E}[z_1]\cdot \mathbb{E}[z_2]   = \\ \mathbb{E}[a_1a_3 x_1x_1 + a_1a_4 x_1x_2 + a_2a_3 x_1x_2 + a_2a_4 x_2x_2] - a_1a_3\mathbb{E}[x_1]^2 -a_1a_4\mathbb{E}[x_1]\mathbb{E}[x_2] -a_3a_2\mathbb{E}[x_1]\mathbb{E}[x_2] -a_2a_4\mathbb{E}[x_2]^2 =\\ a_1a_3\text{cov}[x] -a_2a_4 \text{cov}[x] $$ In what I am studying, the last equality holds (or at least that is what I have understood), from the fact that $x_1$ and $x_2$ are independent hence their covariances is zero.


Would a (box-shaped) Forcecage block the effects of an area-of-effect spell from passing into or out of the box?

When you cast the solid-box variant of , the spell specifies:     A prison in the shape of a box can be up to 10 feet on a side, creating a solid barrier that prevents any matter from passing through it and blocking any spells cast into or out of the area.   Clearly this stops a single-target spell like  from affecting anything inside the box if it's cast from outside the box.   But does it stop an area-of-effect spell like  or , cast on a point just outside the box, from affecting creatures or objects within the box?


Need an advise how to join two subsurf meshes

I need a best practice advice on the following.  I want to join two meshes which are both in one object. The three claws are seperate and I want to join them to the wrist.  I have done this before by deleting the faces on the ends of the wrist stump and the finger stumps, then bridge looped them. But there is often a problem with the number of edges not matching for each mesh. I.e. wrist has 4 edges and the fingers have 6 or more.   What is best practise to accomplish this and creating good topology for deformation?


How to overwrite this specific row in a CSV?

I have a CSV file that has about 20 columns and 50 rows.  I am trying to overwrite the first row so I can change the labels for the columns. I tried to simply open the writer and write on the file from scratch, but it cleared the whole file under the first column then.  Any ideas would be very much appreciated!


Is the Canon t2i or new Nikon d90 better for an entry DSLR?

so i want to jump into the world of DSLR and aside from being a crazy picture taker have no skills as a photographer. i take many shots and delete bad ones in the hopes that some will be really nice.   i do play with iso and shutter speed for night shots and do a little basic config to get some shots but typically shoot in auto mode with my cannon point and shoot.  i tired the D90 6 months ago and in auto mode the pix were amazing. i think with this camera all you need to do is rest the button and it will do the rest and make GREAT shots.  i know the specs on the t2i are better and the D90 is a few years old...  what would you suggest i do in my hunt to buy a great DSLR and get out there shooting???


Subadditivity of outer measure on real numbers

In the field of measure theory, the outer measure is defined on the set of real numbers as:   $$m^{*}(A) = \inf\left\{ \sum_{n=1}^{\infty} l(E_n): \space A \subset \bigcup_{n=1}^{\infty} E_n \right\} $$  NOTE - $l(E_n)$ is the length of the interval $E_n$  I want to show that the real number outer measure is subadditive, so  $$m^{*}\left( \bigcup_{n=1}^{\infty} S_n \right) \le \sum_{n=1}^{\infty} m^{*}(S_n)$$  As a first step in the proof, all the measure theory textbooks I have consulted start by stating that we assume that $m^*(S_n)$ is finite for all $n$ (because the result is trivially true otherwise), which makes sense to me.  Next, they assert that for any $S_n$, we can find an open cover $\space S_n \subset \bigcup_{n=1}^{\infty} E_n$ such that $ \sum_{j=1}^{\infty} l(E_n) \le \mu^*(S_n)+\frac{\epsilon}{2^n}$  Why does such a cover necessarily exist? Isn't it possible that the only covers are countably infinite on the real numbers? Also, what explains the epsilon inequality - how do we know that a countable cover necessarily meets that criterion?


Let $A$ be a domain with $\max(A)$ a finite set. It is known that if $\mathfrak{m}\in \max(A)$ then $A_{\mathfrak{m}}$ is a PID. Show that $A$ is also a PID.  Here is what I was thinking. Suppose that $A$ is a local ring first. It is enough to show that every $\mathfrak{p}\in \text{spec}(A)$ is a principal ideal. We know, by hypothesis, $\mathfrak{p}'$ is a principal ideal where $\mathfrak{p}'$ denotes the image of $\mathfrak{p}$ under the localization map $A\to A_{\mathfrak{m}}$. Thus, we can write $\mathfrak{p}' = (\frac{a}{1})A_{\mathfrak{m}}$ for some $a\in A$. We claim that $\mathfrak{p} = (a)A$. Let $x\in \mathfrak{p}$, since $\frac{x}{1}\in \mathfrak{p}'$ we can write $dx = ay$ for some $y\in A$ and $d\in A\setminus \{m\}$. Since $A$ is a local ring, and $d$ is not in the maximal ideal, $d$ is a unit, therefore $x = d^{-1}ay$. This shows that $\mathfrak{p}$ is generated by $a$. What if $A$ is not a local ring? If we pick a prime ideal $\mathfrak{p}$ then we at least know there is a finite list of maximal ideals $\mathfrak{m}_i$ for $1\leq i\leq n$ which contain $\mathfrak{p}$. As before let us denote by $\mathfrak{p}_i$ to be the image of $\mathfrak{p}$ under the localization. We can write $\mathfrak{p}_i = ( \frac{a_i}{1}) A_{\mathfrak{m}_i}$ for some $a_i\in A$. Therefore, for every $x\in \mathfrak{p}$, and every $1\leq i\leq n$, there exists $y_i\in A$ and $d_i \in A\setminus \{m_i\}$ such that $d_i x = a_i y_i$. Now we have two issues. Even if we can somehow show that each $d_i$ is a unit then it will only show that $\mathfrak{p} = (a_1,a_2,...,a_n)$. The issue of "simplifying" this ideal all the way down to the form $(a)$ for some $a\in A$ is essentially asking for a gcd. It feels like we need to use the Chinese Remainder Theorem here somehow but it is not clear to me how to apply it.


Maximal order of an element in a symmetric group

If we let $S_n$ denote the symmetric group on $n$ letters, then any element in $S_n$ can be written as the product of disjoint cycles, and for $k$ disjoint cycles, $\sigma_1,\sigma_2,\ldots,\sigma_k$, we have that $|\sigma_1\sigma_2\ldots\sigma_k|=\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$.  So to find the maximum order of an element in $S_n$, we need to maximize $\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$ given that $\sum_{i=1}^k{|\sigma_i|}=n$. So my question:      How can we determine $|\sigma_1|,|\sigma_2|,\ldots,|\sigma_k|$ such that $\sum_{i=1}^k{|\sigma_i|}=n$ and $\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$ is at a maximum?   Example  For $S_{10}$ we have that the maximal order of an element consists of 3 cycles of length 2,3, and 5 (or so I think) resulting in an element order of $\operatorname{lcm}(2,3,5)=30$.  I'm certain that the all of the magnitudes will have to be relatively prime to achieve the greatest lcm, but other than this, I don't know how to proceed. Any thoughts or references? Thanks so much.


Can I plug two external monitors in to a MacBook Pro?

I'd like to use two external monitors for some excels, coding, email, not games or video content.   Can someone please explain how I can go about using two external monitors with my MacBook Pro, and realistically, how good will the performance be of the 2nd external monitor?


I was wonder if there is an equivalent to  for Ubuntu. The Pageant tool load private keys for prolonged usage, so you won't have to load the keys (as well as heir passprhases, if there are any), each time anew.   How could you achieve this in Ubuntu, and especially the Ubuntu CLI?


"Votes cast" should include votes on deleted contributions

Currently, the number of "votes cast" excludes votes on deleted content. Once something gets deleted that you voted on, that vote vanishes from your stats. This of course happens frequently especially with down-votes - if you're a good voter, stuff you downvote often ends up getting deleted.  Seeing as the idea behind the public display of total votes you've cast is to encourage voting, is this really fair?   Also, doesn't it distort greatly all voting stats, especially when looking at candidates for moderator elections and such?


Is there a bijection $\big\{x:\mathbb{N}\to\{0,1\}:\{i\in\mathbb{N}:x(i)=1\}\text{ is finite}\big\}\to\big\{x:\mathbb{N}\to\{0,1\}\big\}$?

Can we use  to figure this out?   Intuitively the domain seems to be a subset of the codomain, but where do powersets come in?   Thanks in advance!


Publishing WFS and Feature Access through ArcPy script?

I'm trying to publish a large number of MXD files to my ArcGIS Server with an ArcPy script. Here's the overview of how I'm doing this  mapDoc = arcpy.mapping.MapDocument(...) con = r'C:\...' service = currentMXD[:-4] sddraft = wrkspc + '\\sdfiles\\' + service + '.sddraft' sd = wrkspc + '\\sdfiles\\' + service + '.sd' arcpy.mapping.CreateMapSDDraft(mapDoc, sddraft, service, 'ARCGIS_SERVER', con, True, 'etc') arcpy.mapping.AnalyzeForSD(sddraft) arcpy.StageService_server(sddraft, sd) arcpy.UploadServiceDefinition_server(sd, con)   Pretty much following the example code of how to publish using an MXD file. Now, I want to add WFS and Feature Access capabilities when publishing these MXDs, which seems like it should be simple because you just need to check the boxes off when publishing manually, but I can't find how to do so. Does anyone know of a way to do so?


Is the equation $x = \phi(n), x=2k, n,k \in \mathbb{Z}$, where $\phi(n)$ is the Euler totient function, solvable for all evens?

I was just getting my hands dirty solving some equations of the form $x=\phi(n)$ where $\phi(n)$ is Euler totient function. I know that $\phi(n)$ is even for $n\geq 3$. However, I am wondering that:     Can all even integers $x$ be expressed as $\phi(n)$ where $n$ is an integer?   I start doing some research, the first even number appears to hove no solution is $14$. According to , there is no solution to the equation $14=\phi(n)$ for $n\leq 500$. But does it have a solution for $n>500$?  Moreover, what can you say about the above statement?


The original question is just below. $$2+\frac{5}{3\cdot2!}+\frac{5\cdot7}{3^2\cdot3!}+\frac{5\cdot7\cdot9}{3^3\cdot4!}+\space...\space=\space?$$ I tried to express it with the summation notation but was really confused by the geometric series in the numerator. I then decided to use double factorial. I don't know if I made the correct thing to start with but that was all I could afford. $$2+\lim\limits_{n\to\infty}\sum\limits_{k=1}^{n}\frac{(2k+3)!!}{3^{k+1}\space\cdot\space(k+1)!}$$ I don't have the answer. Could you please explain how to solve this question? As you see, I couldn't really do much, so it would be great if you could clearly explain each step.


don't understand what "public virtual object this" means

I don't understand this C# code:      public virtual object this[string fullname]     {         get         {             return null;         }         set         {         }     }     Specifically the this[string name] part. What is the person intending this code to do? Here is how it's implemented later:     public override object this[string fullname]     {         get         {             fullname= fullname.Trim('\"');             //some code ....             return x;         }         set         {             fullname= fullname.Trim('\"');             //some code ...             string[] a= fullname.Split(":".ToCharArray());             //some more code...         }     }   Is the person redefining the this keyword whenever it's used by the class that has this code? Is that what's going on? If so why?


Nautilus doesn't open folders on desktop "Failed to execute child process “net” (No such file or directory)"

I installed Ubuntu alongside Windows 10 on my computer (by the way I hate Windows with a passion and I'm so happy I found Linux. Never going back to Windows.)  From the beginning nautilus never worked.  Being new at this I thought that it was the way Linux worked.  I was trying to open folders on my desktop and nothing happened.  The only way to open folders was to open by "files".  How can I fix this issue?  I tried reinstalling nautilus but I always get this error message  Nautilus-Share-Message: 11:23:25.561: Called "net usershare info" but it failed: Failed to execute child process “net” (No such file or directory)


Heat produced when dielectric inserted in a capacitor

When a capacitor is connected to battery, it stores $\frac{C V^2}{2}$, while battery supplied $CV^2$ energy. Therefore, $\frac{C V^2}{2}$ energy gets lost as heat. When a capacitor is already charged and a dielectric is inserted in this charged capacitor (which is still connected to the battery), will there be any heat produced ?


How can one's yearly reputation be larger than their total reputation?

When looking at the reputation leagues for MSE we can see that Teresa Dietrich is ranked 25th when it comes to yearly reputation gain.  We also see that her reputation gain is bigger than her current reputation. The first suspect in this case is of course caching. So to check that I went to see her current reputation on her profile. That matches what was listed in the league under total reputation. Another culprit could of course be caching of the total gain, so I went to check if she received any downvotes today. Her public reputation history shows no entries since December 2nd.  The last thing could of course be that she downvoted something. That scenario is also highly unlikely as she was last seen 18 hours ago according to her profile. That was yesterday in UTC time, so the script had since run at UTC midnight. Are there any other possibilities or is this a genuine bug? P.s. there are also other users with similar things (even larger differences), but I decided to use an SE employee as an example.


Is Chromium in 18.04 really preventing me from following softlinks outside of my home folder?

I have an old drive where I put files which I do not care much about. I mounted it as /mnt/crap (well chosen name!).  There I create a directory with my name: /mnt/crap/alexis.  I create a link to that folder from my home directory:  /home/alexis/crap -> /mnt/crap/alexis   I can go there with Nautilus, add files, etc. since I setup the proper permissions on that alexis directory it all works as expected.  However, when I go in Chromium and I click on the crap folder, it tells me:     Permissions denied.   and it shows nothing. If I go to /, the try to click on mnt, same error.  Is there a way to give chromium permission to access files outside of my home folder?


Carrying two laptops to India - will I have to pay duty?

I went to the U.S. on a business trip for 3 days. After reaching there, I purchased a laptop to do my business work. However, the very next day, my company provided me a new work laptop, and I had no idea that the company would provide me another laptop. Therefore, I have two laptops.  Upon my return to India, will I be allowed at the customs there to take both laptops or will I have to pay duty? I need to take both laptops and I won't be carrying the boxes in which the new laptops were provided.


I'm creating a plugin that allows a user to use a shortcode. This shortcode depends on a bunch of javascript that needs to be present once the shortcode loads.  I'm having issues trying to decide when and where to load the javascript. Pieces of the code that the shortcode spits out are elements that need to be present, but aren't available for jQuery to utilize.  Is there a specific way of loading and attaching scripts that a shortcode relies on?  function build_total_search_method( $atts ) {      $shorcode_php_function = include( dirname(__FILE__) . "/includes/total_search.php" );      return $shorcode_php_function;  } add_shortcode( 'total_search', 'build_total_search_method' );   This seems to work, but it also prints a 1 to the page. Is this method okay?


Is there good example code or a test project for explaining the . There are a lot of explanation links, but I want to have some good example code to show others without reinventing the wheel.


Variance of number of tails in a coin-toss experiment

Let X be the random variable that equals the number of tails minus the number of heads when n fair coins are flipped. What is the variance of X?  I've run a simulation and the answer seems to be n, but I can't get at it myself.  $V(X) = E(X^2) - E(X)^2$ and E(X) is zero, so $V(X) = E(X^2)$. Now $X = (2X_t - n)$ where $X_t$ is number of tails. $X^2 = 4X_t^2 + n^2 - 2X_tn$. Taking E() on both sides:   $E(X^2) = 4E(X_t^2) + n^2 - 2nE(X_t)$  we know that $E(X_t)=n/2$ so,   $E(X^2) = 4E(X_t^2) - n^2$  I tried to get $E(X_t^2)$ from a simulation and got the right answer again.   So the question boils down to: How to find the expectation of $E(X_t^2)$ where $X_t$ is the number of tails in n coin tosses.


The current code for my latex document is this:  \documentclass[12pt,notitlepage]{report}  \usepackage{lipsum}    \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \fancyhead[C]{\nouppercase{\textit \leftmark}}  \begin{document}  \pagenumbering{roman}  \thispagestyle{plain} \tableofcontents \addcontentsline{toc}{chapter}{Table of Contents} \thispagestyle{plain}  \newpage  \pagenumbering{arabic} \chapter{One} \lipsum[2-5]   \end{document}   I want to remove the "Chapter 1." keyword from my header "Chapter 1. One" and I want it like this: "1-One". How to do it?


After a fresh install of Ubuntu 12.04.1 (64bit), I get the following message when I want to install software via terminal:  The following packages were automatically installed and are no longer required: linux-headers-3.2.0-29 linux-headers-3.2.0-29-generic   Is this normal? As it's related to the Linux core itself, I am confused that it might break my system.


Image does not appear in Jar executed with double click

After extracting a Runnable Jar in Eclipse Version 2020-12 (4.18.0), when I run it with double click the image is not displayed:  However, when using java -jar meujar.java the image is displayed:  Image addition code: JLabel lblImage = new JLabel(); lblImage.setBorder(BorderFactory.createLineBorder(Color.BLACK)); lblImage.setBounds(275, 30, 225, 225); lblImage.setIcon(new ImageIcon("logo.png"));  The addition of the label to the frame was made by windows builder, following part of the code: .addComponent(lblImage, GroupLayout.PREFERRED_SIZE, 225, GroupLayout.PREFERRED_SIZE) .addComponent(lblImage, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))


How to replace the content between two flags using regular expressions in Android?

I set two flags for a text string, I hope to replace all the content between the flag <!--BeginOfReplace--> and the flag <!--EndOfReplace-->.  I think the regular expressions can do it, how can I write a code in Java? Thanks!  Text String   This is a cup  <!--BeginOfReplace-->          Hello, world !  <!--EndOfReplace-->   I will go back.


If I leave South Africa to visit a neighboring country, will I get a fresh 90 day stay upon coming back?

I am a South African returning to live the country after having lived in the UK for the past 15 years. I returned on a UK passport (on a 90 day tourist visa) hoping to re-apply for my South African passport whilst here. I have found that I have run out of time to complete this process before my 90 day tourist visa expires. Can I simply take a couple of days vacation in a neighboring country and re-enter? What is the likelihood of getting a further 90 day visa?


This is a major shortcoming of the app in not including a dark theme option. I've been using the Dark Mode add-on in Firefox for desktop but on the app there's no way to escape the unnecessarily bright theme.   Please bring in a dark theme to the app.


Why is it "runners-up", as opposed to the naïve "runner-ups"?   Is there a rule to remember for these situations?


The question asks me to "show that if the optimal value of the objective function of a linear programming problem is attained at several extreme points, then it is also attained at any convex combination of these extreme points."  I try to write a convex combination of all extreme points $$f=c_1x_1+…+c_nx_n.$$  However, a theorem of extreme point is that "not a convex combination of other points". This makes me confused. If a convex combination can not be an extreme point then how can I get the optimal value of the objective function？


Rep wiki does not tally with review queue

Consider exhibit A:    I have recently been granted privilege "Access Review Queues". However, I am unable to "find" the review link on the top navigation bar, as stated clearly in the wiki.    Exhibit B:    Although I know the link to the review queue (/review), there is a link in the wiki as well. Following it to the review queue page, I found that this page is useless to me even though I can access this page.    Questions:   Review link at the top of the page - is it intentionally hidden because I cannot access any of the review queues? If yes, wiki page needs to reflect this clearly. Why the privilege is awarded to access the review page, even though the review queues are not accessible?


How can I work with a client that doesn't know what they want?

I am helping a client/friend with a website design.  He is a conceptual thinker. Yet his ideas are always inspirational but not practical.  He is always wanting a different direction after I show him my design.  He wants something new and refreshing. He doesn't like the website out there because it's too commercial. I think it would be easier to manage later though.  I am struggling with him because    I am not getting paid for this. I would like him to just choose a design.   However, I was wondering if you have any tips on dealing with client who has no direction, and doesn't know what they want?  What would you do? Choose some web and have him decide which style they like?  How can I guide him in the right direction? Any suggestions for me?  Thank you for the help!


Short story about a virtual world. Protagonist is a female who specializes in torture experiences

I think I read this online in the last ten years, so after 2005 or so. In the story, everyone is online, I think 24/7. People are jaded and always looking for new experiences. The protagonist (or at least narrator) is a woman, I want to say in her 30s (or at least appears as that age), who is considered to be an expert in the area of torture ceremonies. I want to say that her appearance is of her being scarred and twisted by her experiences, although I don't know if that had to do with her meatspace body, or was simply how she portrayed herself.  The only other bit of plot that sticks out in my head was that early in the story, someone (it was a male, and she was thinking of him as being incredibly young) challenges her with a scenario to prove himself, and she was idly commenting how he went for horrific disfiguring torture too early, and tried to compensate by going directly to rape, but that she found his efforts banal.


Is it correct to write $\Bbb E[X]$ or $\Bbb E_{\theta}[X]$?

Suppose that we observe the discrete random variable $ X = (X_1, \dotsc , X_n)$ with state space S, whose distribution we do not know but we are assuming that its joint p.m.f. belongs to a known family $\{f_θ : θ ∈ Θ\}$. We derive a sufficient statistic $T(X)$.  Is it correct to write $\Bbb E[X]$? If not, why? Would it be more correct to write $\Bbb E_{\theta}[X]$?


I want to make a button that changes the active poselib to another one from the list, a specific one. I look in the console and can't see any operator. any ideas?


How can I pick a random point on the surface of a sphere with equal distribution?

I've got a random number generator that yields values between 0 and 1, and I'd like to use it to select a random point on the surface of a sphere where all points on the sphere are equally likely.  Selecting the longitude is easy as all lines of longitude are of equal length. x × 360°.  Latitude, on the other hand, requires that 0° (the equator) is twice as likely to be selected than 60°. 90° would have an almost zero chance of being selected.


"I wish I didn't do" vs. "I wish I hadn't done"

Now I feel sick. I wish I [didn't eat/hadn't eaten] pork with cheese for dinner.   I would use "hadn't eaten" as it was my dinner but "now I feel sick" confuses me.


How to identify outliers and do model diagnostics for an lme4 model?

I  need to identify outliers and high leverage points, and perform model diagnostics, in an lme4 model. For outliers and high leverage points, simply making a plot to visually inspect would be nice, but is insufficient.  I have 10,800 data points, and need to mark each point via some analytic or computational test as either outlier/high-leverage or not outlier/high-leverage.   After identification of outliers/high-leverage points, I will go through a separate process to decide whether or not to exclude the points from the data set.    Exclusion of points will take into consideration prior detailed analysis of each observation's raw data source (an audio recording), in addition to the automated identification mentioned above. Here, I refer to this process as "selective deletion".   I also need to understand if my outliers should be based on "marginal" or "conditional" residuals, and if my leverage should be based on fixed or fixed plus random effects. For defintions of "marginal" and "conditional", as well as potential defintions of leverage, I am following .  I.e., with a mixed model of the form... $$ y= X\beta + Zb + e $$ $$ e \thicksim N(0,\sigma^2I) $$ $$ b \thicksim N(0,G) $$ Where $G$ is a symmetric, positive definite matrix.  By marginal, I mean residuals of the form: $$ \zeta = y-E[y]=y - X\beta $$ By conditional, I means residuals of the form: $$  e = y - X\beta - Zb $$ My questions are:      How to identify outliers via an automated procedure based on an lme4 model.   Whether marginal or conditional residuals should be used to identify candidates for selective deletion. What kind of residuals should be used for assessment of normality, linearity, homoscedasticity, etc.   How to identify high leverage points for the purposes of selective deletion, and whether to use leverage from fixed or all effects (see Singer et al, above). How to test that $b$ is distributed as $N(0,G)$, i.e., general multi-variate normal? Is this done simply by looking at QQ plots of the random effects?  What if $G$ has covariances, i.e., non-zero off-diagonal terms?  Is looking at 1-dimensional QQ plots for each random effect still adequate to evaluate this type of normality?  Or is some sort of transformation required?


I'm trying to make an isometric version of this    The bulges and the dips aren't too hard themselves, however I'm struggling to find a way of warping the isometric grid lines in the right way      Does anyone have any suggestions?


Effective refractive index and refractive index

Is there any relation connecting between the effective refractive index $N$ and the refractive index $n$ in waveguide?


Consider altitude $AH$ of $\Delta ABC$. $B_1$ and $B_2$ are points on side $AB$ such that $HB_1 \perp AB$ and $HB_2 \parallel AC$. $C_1$ and $C_2$ are points on side $AC$ such that $HC_1 \perp AC$ and $HC_2 \parallel AB$. Prove that $BC$, $B_1C_1$,  $B_2C_2$ are concurrent.     I tried letting $B_1C_1 \cap B_2C_2 = \{A'\}$ and tried to prove that $\widehat{AA'B} = \widehat{AA'C}$ but I don't see the light at the end of the tunnel.


I'm making PHP-code, and use database, MySql. I wonder about parameter binding, and here is an example with a field (pw) excluded;  If the user sends a username via form, and it comes as POST  $username = $_POST["username"];   and then is used to log in;  $query = "SELECT * FROM users WHERE username = :username";   then  $stmt = $conn->prepare($query); $stmt->bindParam(":username", $username);   Has there been any protection? I mean compared to using the POST variable directly.  Greetings


Which one to choose - the Nikon D3300 or D700

I currently have Nikon D3300 and love it - only use it in manual mode, etc, but I am quite limited with the size of the frame and just in general want to advance further in photography.  I have an opportunity to pickup a D700 that is quite used 250k+ shutter clicks on it, but still works great with no artifacts or any issues what so ever.  So the questions are:  1) D700 is much older than D3300, but is the sensor technology and larger size of sensor make D700 perform better in low light conditions assuming same lens? 2) Is there any reason one would prefer D3300 over D700?


Help me prove that $\mathbb{N}^{\infty}$ is countable

$\mathbb{N}^{\infty} = \{(a_{0},a_{1},a_{2},...) \in \mathbb{N} \times \mathbb{N}\times \mathbb{N} \times... \text{ with } \sum\limits_{k=0}^{\infty} a_{k} < \infty \} $ I don't understand what the importance of this statement is: $\sum\limits_{k=0}^{\infty} a_{k} < \infty. \\ $ We have already proved that  $\mathbb{N}\times \mathbb{N}$ is countable as there exists a bijection from  $\mathbb{N} \rightarrow \mathbb{N} \times \mathbb{N}$ and now I think I should use this to create a bijection from $\mathbb{N} \rightarrow \mathbb{N}^{\infty}$ but I don't really know how to do that and use the bijection from $\mathbb{N} \rightarrow \mathbb{N} \times \mathbb{N}$.


How to write help class for the below trigger

trigger ActiveCountContactOnAccount on Contact (after INSERT, after UPDATE, after DELETE , after UNDELETE) { Set <Id> accountIds = new Set <Id>(); List <Account> lstAccountsToUpdate = new List <Account>();  if(Trigger.isInsert || trigger.isUnDelete){     for(Contact con:trigger.new){         accountIds.add(con.accountID);     } }else{     for(Contact con:trigger.old){          accountIds.add(con.accountID);              } } list<Account> lst = [SELECT Id,Name,Active_Contact_Count__c,(Select Id from Contacts where Status__c = 'Active') from Account where Id IN: accountIds]; for(Account acc:lst){     Account accObj = new Account ();     accObj = acc;     accObj.Active_Contact_Count__c = acc.Contacts.size();     lstAccountsToUpdate.add(accObj); } if(!lstAccountsToUpdate.isEmpty()) UPDATE lstAccountsToUpdate; }


Why indefinite integral has such a notation?

Why indefinite integral has such a notation ? What part "dx" has to do with the indefinite integral, and why f(x) is multiplied by it ?


How many words can be formed, each of $2$ vowels and $3$ consonants from letters of the word "DAUGHTER".

How many words can be formed, each of $2$ vowels and $3$ consonants from letters of the word "DAUGHTER"  What my textbook has done: it has first taken combinations of vowels and then consonants then multiplied them altogether. Now for each combination of words they can be shuffled in $5!$ ways, so multipliying by $5!$ we get the required answer.   My question is: why has the book  used combinations instead of permutations while selecting vowels and consonants?  Thanks.


Sometimes when working with nodes it is useful to see what my setup looks like without a certain node.  I know I can delete a node without breaking the chain with Ctrl+X and then undo with Ctrl+Z, but that is kind of cumbersome.  Is there a way to easily bypass a node like this, connecting the inputs to outputs like Ctrl+X does, only without deleting it?


I am trying to determine what issues could be caused by using the following serialization surrogate to enable serialization of anonymous functions/delegate/lambdas.   // see http://msdn.microsoft.com/msdnmag/issues/02/09/net/#S3 class NonSerializableSurrogate : ISerializationSurrogate {     public void GetObjectData(object obj, SerializationInfo info, StreamingContext context)     {         foreach (FieldInfo f in obj.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic))             info.AddValue(f.Name, f.GetValue(obj));     }      public object SetObjectData(object obj, SerializationInfo info, StreamingContext context,                                 ISurrogateSelector selector)     {         foreach (FieldInfo f in obj.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic))             f.SetValue(obj, info.GetValue(f.Name, f.FieldType));         return obj;     } }     Listing 1 adapted from   The main issue I can think of that might be a problem is that the anonymous class is an internal compiler detail and it's structure is not guaranteed to remain constant between revisions to the .NET Framework. I'm fairly certain this is the case based on my research into the similar problem with iterators.  Background  I am investigating the serialization of anonymous functions. I was expecting this not to work, but found it did for some cases. As long as the lambda did *not& force the compiler to generate an anonymous class everything works fine.   A SerializationException is thrown if the compiler requires a generated class to implement the anonymous function. This is because the compiler generated class is not marked as serializable.  Example  namespace Example {     [Serializable]     class Other     {         public int Value;     }      [Serializable]     class Program     {         static void Main(string[] args)         {             MemoryStream m = new MemoryStream();             BinaryFormatter f = new BinaryFormatter();              // Example 1             Func<int> succeeds = () => 5;             f.Serialize(m, succeeds);              // Example 2             Other o = new Other();             Func<int> fails = () => o.Value;             f.Serialize(m, fails); // throws SerializationException - Type 'Example.Program+<>c__DisplayClass3' in Assembly 'Example, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.         }     }   Listing 2  This is similar to the issue of trying to serialize iterators and I had found the following code in a previous search (see ) Using the code from Listing 1 and an ISurrogateSelector I was able to successfully serialize and deserialize the second failing example.  Objective  I have a system that is exposed via a web service. The system has a complex but small state (many objects, not a lot of properties per object). The state is saved in the ASP.NET Cache, but is also serialized to a BLOB in SQL in case of cache expiration. Some objects need to execute arbitrary "events" upon reaching some condition. Hence they have properties accepting Action/Func objects. Contrived example:      class Command     {         public Command(Action action, Func<bool> condition);     }   Somewhere else      void DoSomethingWithThing(Thing thing)     {         state = Store.GetCurrentState();          Command cmd = new Command(() => thing.Foo(), () => thing.IsReady())         state.Add(cmd);          Store.Save(state);     }


How to add object created to a vector with the class constructor?

I'm making a game for the first time with SDL2.0 in C++, and I've encountered a problem while trying to make a vector with all class instances of the class GameObject, this class includes all enemies and also the player character, and in the constructor of the class what I've done is it adds the instance being created to the vector but it doesn't work as it gives me an error      "Severity Code    Description Project File    Line    Suppression State   Error LNK2001 unresolved external symbol "public: static class   std::vector >   GameObject::allEntities"   (?allEntities@GameObject@@2V?$vector@VGameObject@@V?$allocator@VGameObject@@@std@@@std@@A)    memory22    C:\Users\Marse\source\repos\memory22\memory22\gameObject.obj    1   "   class GameObject {  public:     GameObject(const char* texturesheet, SDL_Renderer* ren, int x, int y, int _maxHp, int _currentHp, int _strength);     ~GameObject();      static std::vector<GameObject> allEntities; ... }   in another file:  GameObject::GameObject(const char* texturesheet, SDL_Renderer* ren, int xx, int yy, int _maxHp, int _currentHp, int _strength) {     allEntities.push_back(*this); //If I delete this line it works fine, but i need it to add the class instance being created to the vector     renderer = ren;     objectTexture = textureCreator::loadTexture(texturesheet, ren);     GameObject::maxHp = _maxHp;     GameObject::currentHp = _currentHp;     x = xx;     y = yy; }


Applying to a full time lecturer post in the UK in a psychology related field

I am a non-European applying from outside of the UK. I need to come up with realistic external funding ideas for the next three years. I have a good idea of what kind of research I would like to do but there is no definite plan. Any resources to consider for funding are greatly appreciated.


Add a transparent image on top of a material

I'm designing this animal-type creature, and want to add a transparent .png image to its face with the face features (object has a subsurf). On the left is the image with the features, on the right is the part of the object where I want it to be.    I tried to import the image as a plane, but matching the shape of the plane with the face didn't work, and the lines of the face left shadows on the head, and could be seen as a different object from some angles (although it's the closest I've gotten yet). It looked like this:    So , I tried selecting the faces of the head that the features should go over, and create a new material for it. Unfortunately, since the .png is transparent, the result produced was this:    (where it's impossible to tell the transparency from a black background default color, and where I wouldn't know where to start to adjust size and position).  I also tried UV mapping, but then the whole object became black with the features repeated all over.   Is it something I have to go into Nodes for? I'm kind of stuck here. Creating a new material and applying it is simple, but applying a material that is an image is a bit more complex it seems... Ideally, I would reproduce the same technique for the adhesive bandage on its arm (seen on the right of image 1).


Generate a random bit sequence of 512 bits

How can I generate a random bit sequence of 512 bits on IBM Q experience using 3 or 5 qubits? Putting a hadammard gate and measuring would only give me smaller bit sequence due to limitation in number of qubits. How to solve this problem?


I am a bit confused about the relation between rolling resistance and static friction.   I have often heard that it is the static friction that lets the wheel roll. Consider the following two cases:  a) A tire of a car of mass $m$ moving with positive acceleration $a$ on a street b) A wheel of a moving wagon (of mass $m$) which is pulled by a string (with force $F_\mathrm{string}$).    How do the free body diagrams look like? (including static friction, rolling friction and friction forces at the axis) What is the resulting force accelerating the center of mass of the wheel in case b) (in dependence of the frictional coefficients and $m$)


What is the value of $p^2q + q^2r + r^2p$ for the given cubic equation?

If p,q,r are the real roots of the equation $x^3-6x^2+3x+1=0$ then find the value of $p^2q + q^2r + r^2p$?  My Attempt: I tried $(p+q+r)(pq+qr+rp)$ but couldn't really figure out what to do with the extra terms. The roots are also not trivial to find. Any help would be appreciated.


How to type mdash and ndash characters in Windows 10 on a UK English keyboard?

In HTML, they are called the &ndash; and &mdash; entities. Here is how they look like:  –      hyphen –      en dash (or ndash, en-dash or n-dash) —      em dash (or mdash, em-dash or m-dash)  Here is an article about them:  I have found a way in Ubuntu, it goes by hitting the minus/underscore key two or three times (for n- and m-dash correspondingly) while holding down the right "Windows" key. Now I would like to type them while on Windows too. How?


Default argument error: treating string as bool

I have a header only class with two functions    //F1   void add_argument(const std::string &name, const std::string &desc,                     const bool required = false) {     //...   }   and    //F2   void add_argument(const std::string &name, const std::string &long_name,                     const std::string &desc, const bool required = false) {     //...   }   and in my code I call  //L1: should call F2 add_argument("-w", "--write",              "Writes the calibrated values to the config.",              false);  //L2: should also call F2 add_argument(   "-i", "--interval",   "The time interval in milliseconds that it should check in.");   The intended behavior is that both L1 and L2 call the same method F2. However, when I compile and run, L1 does correctly call F2, but L2 calls F1.  What I'm wondering is why it appears that in L2 it is converting the last string to a boolean and not using the default argument? Is this a part of the C++11 standard, is it a compiler/linker bug, or am I making a dumb mistake?  This is being compiled and run on a RaspberryPi    Linux raspberrypi 4.14.71-v7+ Raspbian GNU/Linux 9 (stretch)   g++ (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516   GNU ld (GNU Binutils for Raspbian) 2.28   using a command similar to this (I'm actually using cmake with make to the commands are hard to copy exactly)    g++ -std=c++11 -Wall -I. main.cpp -o test   (I get no compiler warnings)


Get a section title style in beamer class to work in article class

I would like to use the style of title given by the following code in article class. Some amendments to the code will have to be made, but I cannot seem to get it to work. I'd be grateful of some help on this, thanks.   \documentclass{beamer} \usepackage{framed} \usepackage{colourchange} \usepackage{amsmath} \usepackage{amsmath,amssymb}%      pour les maths \usepackage{enumitem} \usepackage[most]{tcolorbox} \usepackage{tikz}  \newcommand{\sectiontitlepage}[1]{ \selectmanualcolour{#1} \begin{frame} \begin{tcolorbox}[enhanced,     title=\sc Part \thesection, center title,     fonttitle=\bfseries,     coltitle=black,     colbacktitle=#1!50!white,     colback=#1,     colframe=#1!50!black,     attach boxed title to top center={yshift=-0.25mm-\tcboxedtitleheight/2,yshifttext=2mm-\tcboxedtitleheight/2},     boxed title style={enhanced,boxrule=0.5mm,frame code={ \path[tcb fill frame] ([xshift=-4mm]frame.west) -- (frame.north west) -- (frame.north east) -- ([xshift=4mm]frame.east)-- (frame.south east) -- (frame.south west) -- cycle; },     interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)-- (interior.north west) -- (interior.north east)-- ([xshift=2mm]interior.east) -- (interior.south east) -- (interior.south west)-- cycle;}} ]    \center\LARGE\textcolor{black}{\secname}   \end{tcolorbox} \end{frame} } \begin{document} \section{A part} \sectiontitlepage{white} \end{document}


Using a cue stick, I strike a pool ball on a pool table vertically downwards, slightly off centre. What is the motion of the ball?

I was playing a game of pool when I struck a ball directly from the top albeit not directly on its centre. It was a bit like . The ball moved left and rotated anticlockwise. I know that the net force on the ball was radial in direction and had equal horizontal and vertical components. Directly following this, ball experienced a leftward translational force and a downward translational force which is cancelled out by the contact force. I don't know why the ball rotates anticlockwise, the effect of friction (between the table and the ball) on the ball, and from what axis I could regard the ball to rotate from. I also understand that there are both clockwise and anticlockwise torques on the ball, but I don't understand why the anticlockwise torque prevails. How and why does the ball rotate?


Run a program background even close the ssh connection

I connected a machine via ssh and ran a programme. It took too long to run the programme and I have to turn off my local machine. How can I run the programme background even close the ssh connection?  I am running the code but if I rerun the code, it took a lot of the time, if I close the ssh, the program will be closed, so there are there any method to make the running program still running background even I close the ssh connection.


public class HelloWorld{      public static void main(String []args){         String a= "hello";         String ab= a +"John";         String abc = "helloJohn";         System.out.println(ab==abc);      } }      It prints ab==abc false. Shouldnt it be true..??


I often hear people (mostly English learners) asking "How to ... ?"  I think it is incorrect.  But has this form of questions been accepted in contemporary spoken English?  An example:  A: "Can I have your name, sir?"  B: "My name is John Schwarzkopf."  A: "How to spell your last name?"  B: "S-C-H-......"


I have been testing the ionice command for a while and the idle (3) mode seems to be ignored in most cases.  My test is to run both command at the same time:   du <big folder> ionice -c 3 du <another big folder>   If I check both process in iotop I see no difference in the percentage of io utilization for each process.  To provide more information about the CFQ scheduler I'm using a 3.5.0 linux kernel.  I started doing this test because I'm experimenting a system lag each time a daily cron job updatedb.mlocate is executed in my Ubuntu 12.10 machine.  If you check the /etc/cron.daily/mlocate file you realize that the command is executed like:  /usr/bin/ionice -c3 /usr/bin/updatedb.mlocate  Also, the funny thing is that whenever my system for some reason starts using swap memory, the updatedb.mlocate io process is been scheduled faster than kswapd0 process, and then my system gets stuck.  Some suggestion?  References:


Homomorphism : kernel of a field only has 0

i'm new here and i'm struggling to prove that for R,S fields and f : R → S kernel(f) = {0} Definition of kernel is : kern(f)= { r ∈ R | f(r) = 0 } I started the proof but stuck at the start : ∀a ∈ R-{0} => f(a) ≠ 0 Thank you for your help !


What is the difference between the | and || or operators?

I have always used || (two pipes) in OR expressions, both in C# and PHP. Occasionally I see a single pipe used: |. What is the difference between those two usages? Are there any caveats when using one over the other or are they interchangeable?


How many square meters "twenty feet square" is?

One would assume it to be about 2 square meters, but this is obviously not the case. In fact, I'm reading Illium by Dan Simmons. A quote follows:     Much like the room they had faxed into, this space was windowless and about twenty feet square. But unlike the other room, this one was warm, lighted, and free of snow or ice. And unlike the other room, this one was almost filled with an oval metal machine about fifteen feet long.   By this description, "twenty feet square" seems to mean 20x20 feet aka 400 square feet or 40 square meters. Given that Dan Simmons is a renowned American writer, it's not likely that he just can't speak English correctly. So, who's right and who's wrong here?


Since some time, the SE network has "Hot Network Questions" in a sidebar. Interesting as they are, I click on one of them. It occurs quite frequently that I see another interesting question after having navigated away. When pressing the Back button to see the previous page, I would expect the same list, but the list of questions have changed.  NOTE: this is not a duplicate of the question  which is about update frequency. Rather, it is about the list being updated even if just navigating through history.  After an hour of trying to make a , I have finally found that the issue is related to Websockets. When these are enabled on a page to which you return later, the browser cache is refreshed. This probably affects more than just Hot Network Questions, it effectively prevents caching from working at all!  Browser: Firefox 28 on Arch Linux x86_64.


Boundary not shown when drawing grid lattice with tikz

I want to draw some grids using tikz but some of them don't shown the left vertical boundary. Currently I have to decrease the coordinate of the left boundary a little to make it work, say, change 6 to 5.9999.   Why is this happening? Some kind of numerical issues?  \documentclass[]{article} \usepackage{tikz}  \begin{document}  \begin{tikzpicture} \node[] at (1,-0.5) {Type 1}; \draw[step=0.4cm] (0,0) grid (2,2);  \node[] at (3.8,-0.5) {Type 2}; \draw[step=0.4cm] (3.2,0) grid (4.4,2);  \node[] at (6.4,-0.5) {Type 3}; \draw[step=0.4cm] (6,0) grid (6.8,1.2);  \node[] at (8.6,-0.5) {Type 4}; \draw[step=0.4cm] (8,0) grid (9.2,1.2); \node[] at (12,-0.5) {Type 5}; \draw[step=0.4cm] (11.2,0) grid (12.8,1.6); \end{tikzpicture}  \end{document}


How do you get a tool to break a specific block in adventure mod, like on maps?


I have come across the phrases like "to which","for which", "by which", "on which" and so on(using a preposition with a relative pronoun).   e.g. The chair on which the body was found..  Could someone please explain if there's a particular rule to be followed when building/using them?   Can I use any preposition before 'which'?  What if I say "The chair which the body was found on"? How would I decide which preposition to be put? Can I use other relative pronouns too?  Thanks in advance.


I am trying to figure out how to work with render layers. Now I have two render layers connected to the output via Alpha Over node. But when I render the composite output layer is not the combined output of the two separate render layers. What is my stupidity?


How to change miillisecond to Date Object in yyyy-MM-dd HH:mm:ss format

How to change milliseconds to Date object in yyyy-MM-dd HH:mm:ss format like 2017-04-12 23:14:52?


How can I edit local Group Policy settings using command line?

I'm attempting to throw together a script for work that allows BitLocker without a compatible TPM.  The setting is Configuration \ Administrative Templates \ Windows Components \ Bit Locker Drive Encryption \ Operating System Drives and Require additional authentication at startup under gpedit.   It just needs to be enabled. I used Process Monitor to watch which registry settings are changed when manually Enabling, which on mine is HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{5C0CD1B3-C6CC-448-AFA7-B69059CFF648}Machine\SOFTWARE\Policies\Microsoft\FVE EnableBDEWithNoTPM data is changed to 1.   At first I figured I just somehow need to compensate for the Unique ID in curly brackets, but after looking on another Windows 8.1 Pro machine and "Group Policy Objects" wasn't even in the registry.   So I'm out of ideas. Anyone know how this can be done using a script?


Histogram in pgfplots: Count the total number of data values

I'd like to make a histogram with pgfplots showing percentages on the y-axis instead of the number of points falling into the bins, like so (the example is taken from the manual):  \documentclass[11pt]{scrartcl} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{statistics}  \usepackage{filecontents} \begin{filecontents*}{histdata.dat}   1   2   1   5   4   10   7   10   9   8   9   9 \end{filecontents*}  \begin{document} \begin{tikzpicture}[]   \begin{axis}[     ybar interval,     xticklabel={\pgfmathprintnumber\tick--\pgfmathprintnumber\nexttick},     yticklabel={\pgfmathparse{(\tick/12)*100}\pgfmathprintnumber{\pgfmathresult}\%},     yticklabel style={       /pgf/number format/.cd,       fixed, precision=0,       /tikz/.cd     },     ]     \addplot+ [hist={bins=3}]     table [y index=0] {histdata.dat};   \end{axis} \end{tikzpicture} \end{document}   However, I can only calculate the percentages if I know the number of total data values, in this case 12.   Is there a way in pgfplots or (lua)latex in general to count the number of data values, meaning the number of rows in the data file?


What does it mean if my wireframe looks like this? (Discontinuous lines)

I'm trying to make a tent, but I just noticed that when I see the wireframe of my object it looks like a messy mesh    However in edit mode things are better    Why is that the wireframe looks like that? I know it's probably something I've been doing wrong.


France business visa rejection twice , should I apply again

I had applied for a France business Visa in June 2019 with all documents required like invitation letter, cover letter, travel itinerary , my payslips and ITR for 3 years and travel insurance and good amount of savings...but visa was rejected stating "the information submitted regarding the justification for the purpose and conditions of stay was not reliable". Then my employer sent an email in French to the French consulate in Mumbai asking what could be the possible reason for the refusal to which they replied and said to reapply with all documents and to share the email chat between them while reapplying...and still the French consulate rejected stating the same reason when I reapplied in thr month of July...I am unable to figure out what exactly is happening and what should I do in this case.Should I stop applying again or remonstrate or what can be done I am completely clueless.


T SQL Group column with accumulating data in one record

I am trying to write a query on SQL Server to merge data items in 1 record  Input table:  sales_ref_no    Description 001 Hello 001 Hi 002 Dear 002 All 002 Please 003 Thanks   Output table:  sales_ref_no    Description 001 Hello | Hi 002 Dear | All | Please 003 Thanks   The description under the same sales_ref_no is accumulated under the same record using a | delimiter  Can anyone help?  Thanks!


Renewenvironment of with optional arguments enumerate goes wrong with enumitem (compilation stalls)

I want to modify the enumerate environment (from enumitem) to always be passed a certain optional argument. I expected the following code to work, but it always stalls (takes forever).  \documentclass{article} \usepackage{enumitem} \let\ooenumerate\enumerate \let\endooenumerate\endenumerate \renewenvironment{enumerate}[1][]{%      \ooenumerate[series=test,#1]% }{      \endooenumerate% } \begin{document}     \begin{enumerate}         \item ione      \end{enumerate} \end{document}   I'm on     pdflatex> This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MikTeX 2.9.6730 64-bit)


Objects visible in viewport but not appearing in final render?

I'm hoping someone knows how to solve this issue. I'm rendering a scene in cycles, and in the viewport everything looks good. But when I hit f12 to render, about half the objects are missing. The camera icon in the outliner is active for all objects, the missing objects are all in different collections (some are in collections with objects that don't disappear in the final render) , and the ray visibility in the options panel is active for each object. The issue also happens in Eevee. I can't share screenshots or the file unfortunately, as this is for an NDA work project. What's going on? Thanks in advance! I gave all the details I can, stop closing this post, jesus. Im trying to get help here. EDIT: Okay, so clearing animation data (why was that even there in the first place? i didnt create any animations) and applying location data solved the issue for a couple of the objects, but not all of them. Not sure why that would work on some but not all. Any ideas?


I told Serana to wait, but can't find her anymore

I was playing Skyrim and since I have the Dragonborn DLC, I went to Soltheim and told Serana to wait or something, and now I can't find her! I'm using a ps3 and I can't use console commands, please help. I've already tried waiting but it doesn't help, and it wont let me recruit any other followers.


python -- import module in same directory

I have a project setup like this (tell me if it's wrong):   project/      module_1/          __init__.py          foo.py      module_2/          __init__.py          bar.py   In foo.py:  from module_2 import bar   I get:  ImportError: No module named module_2   However, if I change my project setup to this:   project/      module_1/          __init__.py          foo.py          module_2/              __init__.py              bar.py   it works.  How do I fix this?  Thanks


Why is the charge on protons == to charge on electrons?

I am not a expert on physics, just another high schooler, so sorry if the question is obvious.  This is something I've been wondering about for a while. Why is the charge on a proton equal but opposite to the charge on the electron? A proton is much larger than a electron, and apparently a lot more heavier too. Why, then, is it's charge equal to that on a electron? Just what is charge, and what defines it? What factors decide the charge on a particle?  Also while we're at it, why does the atom in it's default configuration have the same number of protons and electrons? Edit: To expand on this a bit, from what I know the attraction weakens as distance increases. So if theoretically a huge amount of protons were to be somehow brought together despite the repulsions constantly increasing, would a atom with a extremely high atomic number defy the proton = electron rule?  Note: This is not a duplicate. I read through the Phys.SE post  but I did not find a satisfactory answer (Or even understand many of the professional terms :s)


$$\sum_{n=1}^{\infty} \left(\dfrac{n}{n+1}\right)^n$$  to show that this diverges should I use the $n^{th}$ term test?   So far I have substituted infinity for $n$. Could I use L'hopital's rule to then show that this series diverges?


When steaming milk (for a latte or other coffee drink), it sometimes produces a loud, high-pitched "screaming" sound.  I think you can usually prevent it by keeping the tip of the steaming wand on the surface of the milk longer before putting it in deeper, but that's just a guess more than anything I've actually been taught.  I've always assumed this noise means the milk is scalding, but I'm really sure.  What causes the screaming noise, and what is the best way to avoid it?


Distro for low-RAM with most recent package versions

Are there any distros that are designed to make a wide range of very recent (unstable) packages available on low-RAM systems?


Find string length in sql without starting of zero

I have a problem, I am uploading employee code and Account Number from excel(.csv) file, and I will check the employee code and update or insert the Account Number for the corresponding Employee Code. But If the employee code is start with "0" csv file will not consider the 0's and just send the remaining character, so when I check it in sql will not match with table data (Employee Code).  I have a plan to match them, but I don't know how to do.  I have Tried Below Query  declare @EmployeeCodeNET varchar(max)='MJ300';  declare @EmployeeCodeDB varchar(max)='00MJ300';   select LTRIM(REPLACE(@EmployeeCodeDB, '0', ''))--It should return 'MJ300'


intermittent alert sound tritone playing

running HighSierra and hearing intermittent tritone sounds. I noticed that the sound happened at the same time as the previous day. There are no user applications/scripts open when this happens, even after rebooting. I would like to know if there is a way to find out where this alert sound is coming from and how to disable it. EDIT - the sound seems to happen at the same time every day. At first it was at 9:30 pm, now it is happening at 3:30 pm daily.


Find $\text{Aut}\left(\Bbb{Z}_{15}\right)$ and express as product of cyclic groups of prime power order

Find $\text{Aut}\left(\Bbb{Z}_{15}\right)$. Use the Fundamental Theorem of Abelian Groups to express this group as an external direct product of cyclic groups of prime power order.  For this would it just be as simple as $U(5) \oplus U(3)$ due to $3$ and $5$ being the only factors of $15$ in $\Bbb{Z}_{15}$? I feel as though I am definitely missing a key piece since this seems to be easy.


Is it okay to have 100% CPU usage constantly?

I often do 3D rendering in the background which consumes 100% of the CPU (I lower the priority of the process so that it does not hinder any tasks I am working on).  My concern/question is whether it is okay to run a computer/laptop with a 100% CPU load constantly.  Could this reduce the lifespan of the system?


Adjust font size in QGIS Open Layers Plugin

I have a problem with the export of open layers maps via the printcomposer. In the printcomposer window the font size of the map labels is easy readable, but if I export the map as pdf or jpg the label size decreases so that they are not readable any more. Decreasing the export resolution leads to a bigger font size in the export file, but also to a very poor quality of the pdf or jpg. What I need is a high resolution export with a readable font size.   Does anybody know how to solve this problem?


Is one of them wrong? "Working at a new job" vs. "Working in a new job"

Can "at" and "in" be used interchangeably without worry or is one of them specifically wrong especially in the case of:  Working at a new job vs. Working in a new job? and Living in a new apartment vs. Living at a new apartment?


How to resize a Folder View widget on the desktop?

It's surely my fault, but I am not able to resize the folder view widgets I've put on the desktop.  In the previous release (14.04, KDE 4) the folder view widgets all had auto-appearing hanldes for setup, rotation and resize, among other features.  Now I have no clue how to do it. Any idea?


I recently installed Ubuntu on my computer on a separate (internal) hard drive from Windows, and everything works fine except it will not recognize devices plugged into the rear USB ports on my computer. Only the front ones work. I tried looking into power control, and I disabled auto-suspend for all of the USB ports, but it still does not work. When I run  cat /sys/bus/usb/devices/usb*/power/control   it returns everything as "on." I then tried un-plugging my devices, running  tail -f /var/log/syslog   and plugging them back in to see what the error is, and I saw the following errors for each device:  device not accepting address x, error -32 unable to enumerate USB device on port x   When I boot into Windows, I do not have any of these problems, and the keyboard and mouse I have plugged into the rear ports work in the BIOS and on the purple Ubuntu screen that asks which OS to boot. They only stop working once the login screen appears. Please help! Thank you  Edit here are my hardware specifications:   Mouse and keyboard that are not working are stock Dell devices. Ubuntu is running on a 120GB SSD, and Windows is on a 256 GB SSD. CPU is an AMD FX-6300 Motherboard is a Gigabyte GA-970A-DS3P


How do people get logos to look “drawn” like the first and third logo in the image I provided?

What is the best way and process someone does to go about making a logo like that? I have seen people draw a logo and then use “image trace” but is that what people typically do? If they don’t use “image trace” but use the pen tool for example, how do you make it look like someone drew it? How do you get the lines to look like that? Any help would be appreciated! Thanks!


Null pointer exception error when using link movement method

I'm trying to open web browser when someone clicks on textview but as soon as i run the app i get the Null pointer exception error   java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setMovementMethod(android.text.method.MovementMethod)' on a null object reference  In the xml file                    <TextView             android:id="@+id/btnadfree"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignParentLeft="true"             android:layout_below="@+id/txtfeedback1"             android:layout_margin="0dp"             android:background="@drawable/shopping"             android:gravity="center"             android:padding="10dp"             android:textColor="@android:color/white"             android:autoLink="web"             android:typeface="sans"/>   in the java file  txtadfree = (TextView) findViewById(R.id.btnadfree);       txtadfree.setMovementMethod(LinkMovementMethod.getInstance());     txtadfree.setOnClickListener(new View.OnClickListener() {          public void onClick(View v) {             Intent browserIntent = new Intent(Intent.ACTION_VIEW);             browserIntent.setData(Uri.parse("http://www.google.com"));             startActivity(browserIntent);         }     });


I did a bit of re-topo and suddenly when I smooth the model it creates this weird effect seen below:      I've 'Removed Doubles' and made it 'Double Sided'. (I've also selected 'Auto  Smooth' which has helped a little but I still get these weird cut off points.  You can see it near the top right section of the eye:   Would love to know the solution to this problem as it really messes with the render.  Here's the .blend file:


How do I safely install an older/newer version of Python?

When I eventually upgrade to 11.04 I will need to install Python 2.6 for development purposes. The 11.04 default is 2.7. Can I just install the python2.6 package alongside the default python package? I don't want anything else to depend on it, I need it for only one purpose. I will be using Distribute and virtualenv to install any further dependencies for Python 2.6.


How can I remove the 'Possible Duplicate' from a question I asked?

I asked , and I specifically detailed in the answer that I needed to do it without a subquery over the full table. I am looking for a way to do it like MySQL does, or use a library that has GROUP_CONCAT() built in as an aggregate function, or if I have to a custom C# CLR .dll. I even outlined why I cannot use a subquery / "The usual workaround for SQL Server" and showed that it would take 4 years to complete.  Someone commented pointing to a 'similar question' that only has subqueries as the answer. I again explained that I was looking for a solution without subqueries. I then got my question downvoted (likely by that user).  Now, despite my efforts, there is a 'Possible Duplicate' banner at the top, again linking to the answer with subqueries. I have edited my question to make it clear both in the title AND in the first sentence that subqueries are unacceptable.  How can I remove the 'Possible Duplicate' banner, or if I need more rep ask it to be removed?


How to play minecraft with friends without using LAN (Hamachi is too slow)

So I have some friends who want to play minecraft with me. The thing is we don't want to play on servers, as others may interrupt. So  is there a way for me to play minecraft with my friends without Hamachi? If i have to create a server, then how? Note: I don't have a strong pc. Ths!


How can I create an alias that passes additional arguments?

I have an executable that I use often:  /dir1/dir2/dir3/dir4/executable argv[1] argv[2] argv[3]   I know that I can set an alias for the executable:  alias myexecutable = '/dir1/dir2/dir3/dir4/executable'   and then call it  myexecutable argv[1] argv[2] argv[3]   However, I'd like to call it like this  myexecutable argv[1]   because the first argument is the only one that ever changes. The second and third one should always be passed as the same every time.


Windows Forms - Enter keypress activates submit button?

How can I capture enter keypresses anywhere on my form and force it to fire the submit button event?


Solutions for INSERT OR UPDATE on SQL Server

Assume a table structure of MyTable(KEY, datafield1, datafield2...).  Often I want to either update an existing record, or insert a new record if it doesn't exist.  Essentially:  IF (key exists)   run update command ELSE   run insert command   What's the best performing way to write this?


R.A. Lafferty? Story about ship going back in time

This question () reminded me of a story, that I think was by R.A. Lafferty. It was a novel or long story that I probably read in the 1960s  The plot was about a boat or ship, possibly a sailboat, that travels back in time to the Mediterranean in Roman times.  I believe that it was the reign of Augustus, the first emperor, about 27 BC to AD 14, and that the Mediterranean was not as peaceful as one might suppose.  The list of  doesn't have any titles that sound like they could be about nautical time travel to ancient Rome though.


Photoshop CS6 - Is there anyway to apply gradient overlay on multiple layers at once?

Is there some way that I don't have to go to one layer by one and open their layer style one by one?? I wanna be able to apply the dither option of the gradient overlay for every layer style. Is that possible? I'm not sure if I explained it correctly but does anyone know how to do it??


Non Trivial Solutions of Tangent Equation tan x = x

Do there exist non trivial solutions of the equation tan x = x and if they do exist, how to evaluate them algebraically? I graphed it on Desmos and got many random - looking solutions, is there any specific pattern or equation which describes their occurrence and if it does, what is the nature of these numbers? I mean like rational, irrational, transcendental etc


In site.com I have a page which iterates records of an object with data repeater.  I want to edit these records from this page ,but I didn't find anything to achieve this.  If there is any option to do this please help me to implement this.  Thanks


"Year-over-year revenue growth of 63 per cent brought total subscription revenues to more than $4bn for the first time, making it by far the biggest format of recorded music in the United States, comprising 47 per cent of the total market."  This appeared in an article and someone promptly suggested it be corrected to composing instead.  My claim, basically that the usage was correctd, was from      Make up; constitute.   ‘this single breed comprises 50 percent of the Swiss cattle population’   ‘documents are comprised of words’   Counter-claim, from the person with the original correction:     Garner's Modern English Usage:   Comprise.  A. And compose.  Correct use of these words is simple, but increasingly rare. The parts compose the whole; the whole comprises the parts. The whole is composed of the parts, the parts are comprised in the whole. Comprise, the more troublesome word in this pair, means "to contain; to consist of"...  C. Comprise for make up or constitute. If the whole comprises the parts, the reverse can't be true - e.g.:  "Of the 50 stocks that comprise [read make up] the index, 40 had gains....  D. Comprise for are. This is an odd error based on a misunderstanding of the meaning of comprise. E.g.: "They comprise [read are] three of the top four names in the batting order of...   Who's right?


Do wormholes have mass that depends on the spacial separation, the temporal separation, the relative motion of the two ends of the wormhole

If there was a wormhole connecting two spatially/temporally separate locations, would it have mass that depends on the spacial separation, the temporal separation, the relative motion of the two ends of the wormhole?


I have a little problem on my site, the text from the content div is going over the footer.  HTML:
 test

text

text2

tex3

E-mail: text4; text5; text6

website

   CSS:  .content{ padding-top : 121px; position: absolute; width : 100%; display:inline-block; } .footer {    display: inline-block;    position: absolute;    left: 0;    bottom: 0;    width: 100%;    text-align: center; }   If I write a lot of text, with
 included, it goes over the footer. Thanks a lot for helping!


Entering a space on mobile site right at the end of the line is not recognised

Background On mobile precise positioning of the cursor is extremely difficult. When entering a spelling mistake I will usually delete the entire word and retype rather than trying to select the mistake itself. Sometimes deleting an entire sentence and retyping is easier than repositioning the cursor. The Bug When entering a comment on the mobile version of the site if the line is exactly a line long then the space (between words) is not recognised. For example if I type (as a comment on a question, answer comments are a different length)  This seems like a good sentence to test the irritating system[SPACE]  Then the space is not recognised (how ever many spaces I add) and so the first word of the next line is run together with the last word of the first line, so  This seems like a good sentence to test the irritating systemwhich  After the word has fallen onto the next line I can go back and reinsert the space as a work around. However; as I say precise positioning on a phone is extremely difficult Reproducing this bug seems very sensitive to the line being exactly one line long. I had to experiment with long letters (like 'w') and short letters (like 'f') to get it exactly right. My test sentence quoted above is likely to be dependant on my screen size. Results so far: ANDROID Galaxy s3 Standard Android Browser: exhibits bug  - reported by R Tingle & Rory Alsop Dolphine browser: exhibits bug Chrome: no bug Galaxy S2 Standard Android Browser: exhibits bug* Galaxy S1 Standard Android Browser: exhibits bug - reported by yuvi *In the case of the Galaxy S2 the space appears to "hold", ending up at the end of the line. But on starting the next word the space disappears WINDOWS PHONE Lumia 800 Standard Windows Phone browser: no bug APPLE Ipad Recent Model: exhibits bug - reported by Rory Alsop


Locked out of Windows 10: login no longer shows Administrator, but only an account that I never used

I downloaded and updated my Windows 7 pro to Windows 10 today. I had two user accounts in Windows 7 before update; Administrator and Ritesh. I never used Ritesh account, so over the time I even forgot that I had this account, and now I don't remember its password. After update to Windows 10, I can see only Ritesh user in login screen. I tried several combination, but they didn't work. I tried going into safe mode, but again it shows only Ritesh user. Setup didn't ask for Microsoft Account during installation, but I did reserve the update using Microsoft Account.  My USB ports are not working so only option I have is CD/DVD recovery.  I tried Reset option as well, but it also asks for Ritesh account verification.  How can I log in using Administrator account as I do remember this account's password?


What level of bodily damage can the Raise Dead spell repair?

I have a bit of confusion about the  spell.  It states that it can raise a creature from the dead, but cannot do so if major organs needed for life are missing (such as a head).  Killing anyone though will likely severely damage or destroy major organs.  Jabbing a sword through someone's heart will leave it in little pieces.  Can that heart reform itself if Raise Dead is cast?  What if an enemy purposefully grinds it up as best as possible in the chest so nothing is really left except fragments?  What if they remove the main heart muscle?  Also, with the head issue - what if someone is beheaded, but the head is held onto the body and the spell is cast?  How about if someone is cut in half lengthwise by a nasty trap and then held back together?  I'm sure that'd do major organ damage, but if both halves were available?  Some of these particular situations may be arising soon, as you might guess.  Best if I know ahead of time what my PCs can fix.


Proof that the product of 3 sequential numbers is divisible by 3

I am starting to learn about proofs and I ran into this problem:  Prove that the product of 3 sequential numbers is divisible by 3  I am going to present my thoughts on how to prove that and any feedback about whether it is wrong or not would be very appreciated. Thank you in advance Lets fisrt prove that n³-n is divisible by 3 using Induction:  Constraints n ∈ Z - {-1, 0, 1} m ∈ Z  When n = 2,  n³ - n = 6 -> Proved for the base case  n = k Then k³ - k = 3m  Lets proof for (k + 1) (k + 1)³ - (k + 1) =  k³ - k + 3k² + 3k = 3m + 3k² + 3k = 3(k² + k + m) -> Proved  Now, lets prove the conjecture of this question by deduction, which is:  Prove that the product of 3 sequential numbers is divisible by 3  (n - 1)(n)(n + 1) = (n² - n)(n + 1) = n³ - n Because It was previously proved that n³ - n is in fact divisible by 3, then it is proved as well


ive downloaded the latest ubuntu and copied it to a usb stick

ive downloaded the latest ubuntu iso file and copied it to my usb stick. i'm trying to boot from the USB stick on an aspire one net book and its telling me that its missing the operating system.


On a German keyboard layout I just need to press Alt Gr+m to get a 'µ' (micro) symbol.  How to do so on a English (US) keyboard?


How do you validate that two math expressions are equal?

Let's say you have a few expressions like the following:  $$\begin{array}((x+17)^2 \\ x^2 + 34x + 289 \end{array} \\ 288 + \frac{x^2}{2} + \frac{x^2}{2} + 34x + 1 \\ [...] $$  You get the idea: there's an infinite number of ways of representing the same expression. The challenge is that my application is validating answers to math problems, input by math students practicing a certain concept. I'd like to make sure that whenever they submit an answer, the checker is completely insensitive to the issues of ordering, simplification, formatting etc. which would be plain frustrating. I'd also ideally like to support more than one variable such as x, y, z in the same expression.  What's a reliable way to check that two expressions are the same? The most brute force way I can think of would be to just plug a number into each variable of each expression and see what the result is.  I have a hunch however that there might be ways of getting false positives this way. That, and I might be either missing something really obvious about this, or there might be a better way of doing the comparison.  Would love to hear what you think.


I'm sorry but ive been busy with Latex for maybe 10 hours or so, I have yet to find the use of it. I can do the same in Word in half an hour. This take so much time, and costs everyone time and money. What is the meaning of this? Other than it being beautiful and perhaps a bit pretentious. I cannot figure out the real efficiency if every single line has to be looked up and differentiated every single time and specified. This take MORE than less. There is none social impact in this program that I have found. Anyone care to defend?


The responsiveness is really bad on a newly installed Ubuntu 14.04 LTS.  Here's the specs of my laptop:  Quadcore Intel i7-4600U CPU @ 2.10GHz 12GB Ram 1TB Samsung EVO SSD   And when gradle is compiling, my entire system slows to a crawl, videos begin stuttering, browser scrolling lags... etc.  The same goes when a page refresh occurs in another window in Chrome, and while it refreshes, the HTML5 video in another tab begins stuttering.  How can I fix this?  Here are some logs:  $ vmstat -a 1 5 -   $ iostat -x 1 5 -   $ top -b -


I don't know how to title this question but anyway a="$(file . * | grep -i pgp)" || echo "no such files found! " && exit \         && b=$(echo "$a" | fzf --cycle --height=15) && [ -n "$b" ] \         && gpg --import "$b"  I'm confused about this. When variable a does not exist prints echo "no such files found! " and exits but when does exist doesn't print the message and exits as well. How can I do to exit only when no value is passed to variable a, in other words, when variable a does not exist.


Can not copy link to answer or comment without inspecting HTML

It's hard to understand that "share" has a link to the answer. In comparison to a forum, which has a link to the post on the top of the post.     It would be more handy if the "share" link was near the post score.    Actually I sometimes need a link to a comment, such as: http://meta.stackexchange.com/questions/261243/make-vote-number-active-which-has-link-to-this-answer#comment-851859  How do I copy the link to a comment or answer? Can someone improve the interface for that?


I am trying to proof that for $n,m\in\mathbb{N}$ with $m\leq n$ the binomial coefficient $\binom{n}{m}=\frac{n!}{m!(n-m)!}$ is always a natural number. For I need to prove that $m!(n-m)!|n!$ for every $n,m\in\mathbb{N}$ with $m\leq n$.  Now, obviously the statement is true for $n=0$. Yet, once I assume that the statement is true for some $n$ I can't make proof that it holds for $n+1$. Here is where I got stuck: \begin{eqnarray} (n+1)! &=& (n+1)n!=(n+1-m)n! + n!m\\ &=& (n+1-m)!\frac{n!}{(n-m)!}+n!m\\ &=& (n+1-m)!\frac{km!(n-m)!}{(n-m)!}+n!m\\ &=& km!(n+1-m)!+n!m\\ \end{eqnarray} If anyone completed the proof by induction, I would be very thankful.  EDIT - I now have proven the statement this way using $\binom{n+1}{m}=\binom{n}{m-1}+\binom{n}{m}$:  $$\binom{n+1}{m}=\binom{n}{m-1}+\binom{n}{m}=k_0+k_1$$ with $k_0, k_1\in\mathbb{N}$, following our assumption. It follows that $$(n+1)!=(k_0+k_1)m!(n+1-m)!$$ thus proving the statement for $1\leq m\leq n$. The cases left are easy and I am omiting them here.  Still, I would like to see a prove by induction that utilizes the statement $(n+1)!=(n+1-m)n!+mn!$.  EDIT 2 - This is not a duplicate of , since, although the statement to proof is the same, what I am asking for is a proof by induction that uses a specific property of $(n+1)!$.  The proof I gave in my first edit was based on the second most up-voted answer given in the other post, but it is not what I am asking for.  As for the "best" answer given in the article this is supposedly a duplicate of: Neither that nor the answer it links to in another article constitute neither a proof of the statement, and much less a proof by induction.


Is there a point in accepting a surrender in FTL?

In FTL if I damage an enemy ship there is sometimes an option to accept their surrender. Is there any point in this? I always get more scrap if I either kill their crew or destroy their ship.


Automatic following of answers to your question

There should be an option so when you are the OP of a question and it gets answered, the OP is notified of any comments to that answer without having to manually follow each answer.  It would be useful because:  Comments to answers of your question is often directly related to your question and something you would want to respond to Edits to the answer may make you want to accept it (or unaccept it)


how to get numbers to a specific decimal place c#

im a newbie doing windows forms c# so i recently wanted to create something like a cashier payment calculation button, but then i got stucked at the rounding part.  For example, if the total amount is $40.23, how can i make it round up to #40.25 instead of going down to $40.20?  Or maybe $40.26 to $40.25?   the total amount values are get from textboxes and the final after-rounded value will be display in textbox as well.  hope i was not being too unclear about my question.  thanks guys


What is the license on Stack Overflow Questions and Answers?

If I want to copy a method from Stack Overflow, I usually put the name of the author and the link in a comment above it. I'm just wondering if there's any license in effect for all the code put in answers and questions as sample.


Code Coverage - Deleting Bad Test Classes

I have built two simple triggers, both of which cannot be deployed to production as they fail for a bad test class that has some broken SOQL in it.   My current thoughts are to just delete the bad test class from production so these triggers will pass and deploy. I plan to use Eclipse to do this. Any thoughts or previous experiences?  Thank you for the link on how to delete classes, however I am really interested in the community's experience with bad test classes.   Thanks!


The temperature $T(x)$ at each point $x$ on the surface of Mars (a sphere) is a continuous function. Show that there is a point $x$ on the surface such that $T(x) = T(-x)$. Hint: Represent surface of Mars as $\{x \in \mathbb{R}^{3} : \|x\| = 1 \}$.  There is another post similar to this, but it only gives a hint and I didn't find the hint any more helpful. So here is my attempt:  Possible useful definition:          A path in $S \subset \mathbb{R}^{n}$ from $a$ to $b$, both points in $S$ is the image of a continuous function $\gamma$ from $[0,1]$ into $S$ such that $\gamma(0) = a$ and $\gamma(1) = b$.      Attempt:  let $f(x) = T(x) - T(-x)$.  What I envision myself wanting to do is using the existence of a path by somehow saying let $\gamma(0) = 0$ and $\gamma(1) = x$. My reasoning for this is that I somehow want to use the hint that $\|x\| = 1$. From here something should work out where $f(x) < 0$ and $f(x) > 0$ over some interval and apply IVT over this interval and I would get my equality.  Now trying to formalize this is where I am having trouble.....Is this the right idea?


\begin{align}  \sum_{k=0}^{\infty} \frac{1}{(r+2k+2)(s+2k+2)} = \sum_{m=1}^{\infty} \frac{1}{(r+2m)(s+2m)} \end{align}  $r>s>0$. $r$ is a odd number, but I don't think this gonna be relevant. The fact that $r>s$ is given because it's a telescopic series (I think).  I wanted to know where does this series converge to and what happens when $r$ is odd and $s$ is either odd or even, but I don't know how to evaluate this sum.


Prove that there exists walks that each edge is in $G$

For some $k \in\mathbb{N}$, let $G$ be a connected graph with $2k$ odd-degree vertices, and any number of even-degree vertices. Prove that there exists $k$ walks such that each edge in $G$ is used in exactly one walk exactly once, assuming that the main theorem about Eulerian circuits is true for graphs with multiple edges.


What comic device is based on unexpected changes in meaning?

To be a really good lover, then, one must be strong and yet tender. How strong? I suppose being able to lift fifty pounds should do it.    Woody Allen   I am not asking specifically about the ludicrous lowering of the tone/importance of a word; I am asking about incongruously changing the meaning of a word or phrase in a latter sentence as pointed out in Jason’s answer.


A high-rep user  one of my answers to replace the permalink I used to reference another answer to the same question (obtained from the "share" link under the answer) with a "long form" link to the same answer.  Is there some way to generate this long-form link or does it have to be done by hand? I see this subject has been discussed in


Why is Cosmic Microwave Background Radiation attributed to the Big Bang?

When searching for CMBR all articles start by stating as a fact that it is a remnant of the Big Bang.   Why? Why is it well understood and accepted? Why sure that it's not an effect of something else yet undiscovered?  For example models in which gravity is caused by quantum entanglement is a hot topic nowadays. Dark matter and dark energy are still kind of a mystery. Why is it sure that there won't ever be a more fundamental explanation of the CMBR other than the Big Bang? I don't know, like microwave glowing is a property of space over large scales, the same way expansion is.   (don't get hung up on the example, I don't want to propose alternatives. I'm interested in the "why", not the "why nots" of alternatives)  Thank you


How can I find the max value between certain index values in an array (Python)

If I have an array in python:  a = np.array([20, 21, 19, 85, 25, 31, 21, 99, 3])   and I want to find the max value between indices 2 and 5 to return 85. How can I do this?  I know a.max() will output the value 99, but I am not sure how to specify the range.