Why wasn't Captain Picard ever promoted beyond Captain?

At the end of  movie, Captain  is still captain despite having served for many years.  Let's go over some key years from his career .   Year 2333: Assigned as commander and first officer on U.S.S. Stargazer. Year 2355: Promoted to captain of Stargazer after death of his superior in battle. Year 2363: (or 2364?) Chosen to command relatively new Galaxy-class U.S.S. Enterprise-D. Year 2372: Chosen to command relatively new Sovereign-class U.S.S. Enterprise-E.   He had a 22-year career as first officer and later captain of the U.S.S. Stargazer with an even more impressive record as captain of the fleet's former flagship U.S.S. Enterprise.  Like an admiral, he has led multiple ships several times. He's comfortable handling sensitive diplomatic negotiations like a diplomat. The man should have been promoted to admiral or appointed as ambassador. Yet, he's still just a captain.  He was offered a promotion to admiral if he would become the commandant of Starfleet Academy, but he turned that down. (I think that was in the second season of ST:TNG.)  Others have been promoted faster than him. Riker became captain after spending less time as Commander than Picard.  became admiral after only 7 years as captain (years 2371 to 2378).  Why hasn't Picard been promoted yet?   Did he annoy some superior officers? Was he held back in his career? Did he choose to stay a captain? Was it because Starfleet lost many good captains in the battles against the Borg? (You could say Starfleet could not afford to promote him because they needed good captains after the two Borg invasions.) Was it because Starfleet wasn't sure about him after his assimilation? (It was mentioned in the First Contact movie they had some reservations about him going against the Borg.)


Let $G$ be a group. Define $f:G\to G, a↦a^2$ for all $a∈G$. Prove that $f$ is a group homomorphism if and only if $G$ is abelian.

So, I am lost and tried to work it out through definitions, but am unsure where to go to solve.  If G and H are groups, a homomorphism from G to H is a function $f:G→H$ such that for any two elements $a,b∈G$, $f(ab)=f(a)f(b)$.  If the commutative law holds in a group G, such that a group is called a commutative group or, more commonly, an abelian group,


When to use apostrophe to show possession and when not to?

Can you tell me what is the difference between these , and which one is correct:  girl problems. girls' problems.  Microsoft products Microsoft's products


A countable product of many sequentially compact spaces is a sequentially compact space

I would like to show that a countable product of sequentially compact spaces is a sequentially compact space.  To show that a product of N sequentially compact spaces is sequentially compact, I think that we can take a sequence $(x_1, x_2, \cdots, x_N)$ in the product of sequentially compact spaces, and say that each sequence $x_1, x_2, \cdots, x_N$ is in the sequentially compact space $X_i$, so has a convergent subsequence. Then the global sequence converges to the sequence of  limits of the sequences $x_1, x_2, \cdots, x_N$.  I don’t understand why this reasoning would not work in the case of an infinite product space and how to prove, then, the result.


What do I need to consider to choose between dSLR, mirrorless, or a compact as my first "serious" camera?

I am thinking of buying a camera to learn photography. Most of the time I'll be shooting portraits and landscapes. But I am not sure where I should start. Most of my friends tell me that I should get an entry level DSLR, but I am not sure if I have the persistence and enthusiasm to carry it all day in a backpack. But the camera on my cellphone doesn't seem to be enough to begin with.  So what I want is some expert advice (preferably with professional experience). Can most compact fixed-lens or mirrorless cameras fit the situations I mentioned? Or do I really need to go to a DSLR to get a tool to learn photography?


Why is the integral of $0.5/x = 1/2 \ln x$ and not $1/2 \ln 2x$?

When you calculate $\int\frac{1}{2x}dx$ you get $\frac{1}{2}\ln(x)$ and when you calculate $\int\frac{1}{2x}dx$ you don't get $\frac{1}{2}\ln(2x)$.  $\frac{1}{2x}$ is the same as $\frac{1}{2x}$  why do you get different answers?


Is there a way to set transparency of windows in GNOME?

Sometimes ago I used KDE 3.5 I think, and really liked the transparency option for windows, which gave all my text editor a really killer look and feel, really nice/ethereal environment for coding.  I haven't managed to find such a possibility with GNOME.  Any idea if it is possible and how?


System.out.println() is printing [S@123772c4 instead of actual string

I have the following code:      public static void closestInSubnet(int[][] adjlist, short[][] addrs, int src, short[][] queries) {      // TODO            List<String> address = ToList(addrs);      List<String> quer = ToList(queries);            for (String i : address) {          System.out.println(i);      }        }       public static List<String> ToList(short[][] preList) {      List<String> list = new ArrayList<String>();            for (short[] i : preList) {          list.add(i.toString());      }       return list;  }  I want it to be printing out the lists converted to Strings however I am getting the following in console: [S@7637f22 [S@4926097b [S@762efe5d [S@5d22bbb7 [S@41a4555e [S@3830f1c0 [S@39ed3c8d [S@71dac704 [S@123772c4  I'm sure there is a quick fix for this any help would be great. thanks


If $x\notin \mathbb{R}$ then $\sum_{k=0}^{n-1}\sin(2\pi kx)=\frac{\sin((n-1)\pi x)\sin(n\pi x)}{\sin(\pi x)}$

If $x\notin \mathbb{R}$ then $$\sum_{k=0}^{n-1}\sin(2\pi kx)=\frac{\sin((n-1)\pi x)\sin(n\pi x)}{\sin(\pi x)}$$ This supposedly is a direct results from Dirichlet kernel. I was also told that this can simply found by using additions of sine functions, but I'm at a loss. Any help is appreciated.


How to use IN operator in SQL for a dynamically generated string?

Below mentioned is the sample code under discussion:  DECLARE @FROMDATE AS DATETIME DECLARE @TODATE AS DATETIME DECLARE @DAYS AS VARCHAR(100)  SET @FROMDATE = CONVERT(DATETIME, '2017-09-03') SET @TODATE = CONVERT(DATETIME, '2017-09-06')  SET @DAYS = '''SUNDAY'',''MONDAY'',''TUESDAY'',''WEDNESDAY'',''FRIDAY'',''SATURDAY'''  PRINT @DAYS  --(O/P - 'SUNDAY','MONDAY','TUESDAY','WEDNESDAY','FRIDAY','SATURDAY')  SELECT      UPPER(DATENAME(dw, CONVERT(DATETIME, CONVERT(VARCHAR(10), APPDATE, 112)))),      *  FROM      SQLTABLE WHERE      UPPER(DATENAME(dw, CONVERT(DATETIME, CONVERT(VARCHAR(10), APPDATE, 112)))) IN (@DAYS)   If I pass values manually as below I get output:  UPPER(DATENAME(dw, CONVERT(DATETIME, CONVERT(VARCHAR(10), APPDATE, 112))))  IN ('SUNDAY','MONDAY','TUESDAY','WEDNESDAY','FRIDAY','SATURDAY')   If I pass values using variable having the same values as shown in the O/P of PRINT @DAYS the result is blank:  UPPER(DATENAME(dw, CONVERT(DATETIME, CONVERT(VARCHAR(10), APPDATE, 112))))  IN (@DAYS)   Assuming that in actual scenario I am generating the values under @DAYS variable dynamically or passing it through code to the query / stored procedure below is my question :  Is it not allowed in SQL or am I doing it wrongly?


We have several MySQL backup files of a database in *.SQL format and we want to restore the database by using these files. However, as the sql files contains "DROP TABLE" definitions, running one script cause to remove the data created by the previous script. In addition to these sql files, we have also some other backup folders containing *.FRM and *.MYD files. In all of two cases I think these backups are Differential or Incremental and we have to merge/combine all of them. If so,  how can we combine them without losing data? As I have no experience on MySQL, could you explain a way by using MySQL Workbench if it is possible? Thanks in advance.


How do I detect that an iOS app is running on a jailbroken phone?

If I want my app to behave differently on a jailbroken iPhone, how would I go about determining this?


Is it possible to access device camera from lwc. I am trying the below code but it is not working - HTML <template>     <template if:true={video}>         <video autoplay class="videoelement"></video>     </template>     <lightning-button label="clikc" onclick={capture}></lightning-button> </template>  JS - @track video; @track canvas;  capture() {     this.video = this.template.querySelector( '.videoelement' )      if ( navigator.mediaDevices )     {         // access the web cam         navigator.mediaDevices.getUserMedia( { video: true } )              .then( function ( stream ) {                  this.video.srcObject = stream             } )              .catch( function ( error ) {                 document.body.textContent = 'Could not access the camera. Error: ' + error.name;             } );     } }


How to create folder name or file name with special characters like \ / : * ? "  |

My problem is that, I can not give name of my folder or file with special characters like \ / : * ? " < > | in windows based O.S. This is very important for me, that giving name of file/folder which contain this type of characters.  I already search and refer so many site,for this problems but all are hopeless. I also read Microsoft support page, they suggest use other characters. This is its link,    I already try Alt button + ASCII code number of this type of special characters, from numpad key, just example rename file/folder and press Alt+60 (for < characters) Still it giving message that, A filename cannot contain any of the following characters: \ / : * ? " < > |   Suggest me suitable solution so that I can give name of my file/folder with this type of special characters.


How do you algebraically solve $x=\cos(x)$?

I have also been told it's impossible. If so, how?


Is this sentence correct?  "Carbohydrates are a part of food that gives the body energy."   or should it be  "Carbohydrates are a part of food that give the body energy."  Or can it be both?


Database design issue for profile tables

I am developing a school management system, where the database has been simplified as given below:-  users(id, email, password);  students(id, user_id, roll_no, first_name, last_name, dob); teachers(id, user_id, name, qualification); guardians(id, user_id, name, phone, address);   From the database it is cleared that, we have a common login system for all kinds of profiles.  Problem: I can access a user credentials from a given profile such as students or teachers as there is a foreign key associated into the profile table. But to know the type of profiles associated to a user, I can not go down without searching each profile table.  What I have tried: I have created an intermediary table such as:-   user_profiles(id, user_id, table_name)    But this does not seems to be efficient as I need to code extra. Is their any way to associate users table to their respective profile table in the database layer itself?


arcpy.mapping use a template (mxd) to apply layout view?

Is there a class or a function in arcpy.mapping that can import an empty mxd, that contains only the layout elements, and applying it?


Where do we observe the effect of quantum-level repulsion and what is its origin?

Wikipedia says that for a system of two coupled oscillators, as the coupling strength between the oscillators increases, the lower frequency decreases and the higher increases. This effect can be viewed as a `repulsion' between the frequencies. The quantum mechanical equivalent to this repulsion effect is known as level repulsion. In which physical context do we observe the phenomenon of quantum 'level repulsion'? What is the basic explanation of the origin of this effect in quantum mechanics?


What does the "bonus" tag over the score in NBA games means?

Sometimes, while watching a NBA game, I see a "bonus" tag text over the telecast scoreboard.  What does it means? Which rule or set of rules influence this?


Prove that vector norm $1$ is indeed a norm on $\Bbb{R}^n$ .

Prove that $‖·‖_1$ is indeed a norm on $\Bbb{R}^n$.  You are allowed to assume the triangle inequality for the absolute value function, that is,$|a+b|≤|a|+|b|$ .  I know that vector norm $1$ is the sum of all elements in the vector but I am not how to start this proof. And what does this have anything to do with triangle inequality?


Remove vocals from mp3 and get only instrumentals

How can I get the instrumentals only from a file and remove the vocals?   I understand this is called karaoke.


Bash - How to access a variable with a number suffix using a FOR loop

I declared var0, var1, var2, var3 with a for loop. How do I echo the vars inside that for loop? Here's the code.  #!/bin/bash  for i in {0..3} do   export var$i=$i done;   There i defined var0, var1, var2, var3.. how do i access them in a loop?  i tried the following  for i in {0..3} do   echo $var$i   tmpvar=var$i   echo $tmpvar done   but none gave me the values of var0,var1... first echo just printed '0,1,2,3', second echo printed 'var0,var1,var2,var3' what do i do? I want the values..


Pointer Arithmetic terminates program with Code139 (Segmentation fault)

I wrote a little program to practice pointer arithmetic. If I run it, it terminates with code 139, which is a segmentation fault. I have no idea why the line  *name1 = *name2;   leads to a segmentation fault. Both variables are on the stack, where I should have access.  To my understanding this should set the first letter of name1 to the value of the first letter of name2.  main.c file:  #include <stdio.h>  int main() {     char* name1;     char* name2;      name1 = "Franz";     name2 = "Otto";      printf("Vorher:\n");     printf("Name1: %s\nName2: %s\n", name1, name2);      *name1 = *name2;      printf("Nachher:\n");     printf("Name1: %s\nName2: %s\n", name1, name2);      return 0; }   If you want to reproduce it. I've run it with the following Dockerfile  FROM gcc:8 COPY ./src /usr/src/myapp WORKDIR /usr/src/myapp RUN gcc -o myapp main.c CMD ["./myapp"]


Dimensional regularization: removing more than just logarithmic divergencies?

I have followed two courses on QFT, which both involved renormalization by dimensional regularization. My confusion is that one of the professors claimed that dimensional regularization can only be used to regularize logarithmically divergent integrals, whereas the other professor claimed that the scheme can renormalize higher order divergencies. Let me make my question more precise.  Consider the standard integral which is computed in a dimensional regularization scheme: $$ I(n,\alpha) = \int \frac{d^np}{(p^2 + m^2)^{\alpha}} = i\pi^{n/2}\frac{\Gamma(\alpha-n/2)}{\Gamma(\alpha)}(m^2)^{n/2 - \alpha}. $$ For $\alpha=2$ and $n=4\pm\epsilon$ (depends on convention) the integral is logarithmically divergent and we can continue standardly by expanding the gamma, obtaining a $1/\epsilon$ pole and adding a counterterm to the Lagrangian. Generally, the integral is only convergent for $\alpha > n/2$. In the case of $\alpha = 1$ for example my first professor claimed that one has to introduce a Pauli-Villards cut-off in order to renormalize correctly.  My second professor claims that one may use: $$ \int d^n q \frac{\partial}{\partial q^{\mu}}(q^{\mu}f(q)) = \int d^n q q^{\mu}\left(\frac{\partial}{\partial q^{\mu}} f(q)\right) + n\int d^n q f(q), $$ such that one throws away the boundary term as it is a surface integral by Gauss' theorem. He states explicitly that this may be done if $f(q)$ vanishes quickly enough at infinity, but also that "analytic continuation will be implemented by ignoring the surface term irrespective of the asymptotic behaviour of the integral." If this is true/legit, one may write: $$ \int d^n q q^{\mu}\left(\frac{\partial}{\partial q^{\mu}} f(q)\right) = - n\int d^n q f(q), $$ such that one can express divergent integrals in terms of finite ones.  Is the last approach correct? Is the first approach wrong? Could you comment on these two approaches?


I need to check a string is a valid SHA1 string, like    '418c1f073782a1c855890971ff18794f7a298f6d'   I didn't know the rules for that, for example whether a number and a letter is a must? or how many number or letters are minimum?  Could anybody advise any regex for matching in python?


Analytic function and the Lagrange interpolating polynomial

Let $f(z)$ be analytic in a closed set $A$ and bounded by contour $C$. Let $z_1,z_2,...,z_n$ be different arbitrary point in the interior of $C$ and let $w_n(z)=(z-z_1)(z-z_2)...(z-z_n) $. Prove the integral $$P(z)=\frac{1}{2\pi i} \int_C \frac{f(x)}{w_n(x)} \frac{w_n(x)-w_n(z)}{x-z} dx$$ is a polynomial of degree $(n-1)$ that is the same as $f(z)$ at $z_1,z_2,...,z_n$ points.  Note: P(z) is the Lagrange interpolating polynomial.  I think I have an idea for the proof, but I don't know how to write it formally.  Idea I think this formula $$f^n(z_0)=\frac{n!}{2\pi i} \int_J \frac{f(x)}{(x-z_0)^{n+1}} dx $$ will be useful because practically is telling us that P$(z)$ must be 'equal to' $\frac{f^n(z_0)}{n!} \left(\frac{w_n(x)-w_n(z)}{x-z} \right)$.  Now the rest is trying to proof that $\frac{f^n(z_0)}{n!} \left(\frac{w_n(x)-w_n(z)}{x-z} \right)$ must be something very similar to the Lagrange polynomial.  Is this a good idea? Could be demonstrated in another way? Thanks for any suggestions/hint/tip/help.


Invading aliens' low tech weapons are no match for Earth's modern weapons

This is not "The Road Not Taken" by Harry Turtledove. Similar story idea, but I read Turtledove's story before posting this and it's not it. Probably a short story. (Can't think how it might be stretched to a novel's length.) In English, written at least 20-30 years ago. The one I am trying to remember had slightly more advanced aliens. But their weapons were still primitive compared to Earths weapons. (Still single shot but probably not muzzle loaders.) I recall the fight not being quite so one-sided. (In Turtledove's story the "ground battle" was over in just a few minutes, most aliens not even getting off a second shot.) I seem to recall the ground forces having time to report back to their commanders of the battle's progress. (i.e. They had radio communications.) The main thing I recall is the aliens describing humans' full auto weapons as "stitching guns" or "stitching weapons." (Because when their troops would be hit by them they would get 4-5-6 holes appearing side by side across the body in a line.) I seeming to recall the invasion lasted days or weeks before the aliens were defeated. (Maybe because the aliens didn't want to give up thinking the humans "stitching guns" had to run out of ammo soon. No way the humans could have that much ammo.)


Proving that for each prime number $p$, the number $\sqrt{p}$ is irrational

Possible Duplicate:          I'm a total beginner and any help with this proof would be much appreciated. Not even sure where to begin.      Prove that for each prime number $p$, the square root of p is irrational.


How to run a Python program on Ubuntu server?

I made a Python program for a client, and he wants the python program to run on Ubuntu server. I am not familiar at all with Linux.   I do not understand, what he mean by "Ubuntu Server". Does he mean, he has a website that runs on Ubuntu server? He needs the program ready in next few hours, I asked him for clarification on this thing, but he is probably sleeping, and I need to make the project ready as soon as possible.


How to reduce the file size of the image but keeping the quality in C# .net?

Just wandering, how to reduce the file size of the image but keeping the quality in C# .net?  I have the following code use to save the image taken from ipad:  Bitmap srcBmp = new Bitmap(file.InputStream);  int w = srcBmp.Width; int h = srcBmp.Height; if (srcBmp.Width > 2732 && srcBmp.Height > 2048) {     w = 2732;     h = 2048; }  SizeF newSize = new SizeF(w, h); Bitmap target = new Bitmap(w, h); var destRect = new Rectangle(0, 0, w, h);  HttpContext.Response.Clear(); HttpContext.Response.ContentType = "image/jpeg"; using (var graphics = Graphics.FromImage(target)) {     graphics.CompositingMode = CompositingMode.SourceCopy;     graphics.CompositingQuality = CompositingQuality.HighQuality;     graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;     graphics.SmoothingMode = SmoothingMode.HighQuality;     graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;      using (var wrapMode = new ImageAttributes())     {         wrapMode.SetWrapMode(WrapMode.TileFlipXY);         graphics.DrawImage(srcBmp, destRect, 0, 0, w, h, GraphicsUnit.Pixel, wrapMode);         using (FileStream fileStream = new FileStream(fname, FileMode.Create))         {             target.Save(fileStream, System.Drawing.Imaging.ImageFormat.Jpeg);         }     } }   The Image been saved is always over 14MB. Anyway I can keep the image quality and reduce the file size below 2MB?


I can add comments but I am not able to give any answers anymore. Why?


Is the Infiniti-Lift in Tiny Death Star worth the bux?

I have 60 floors in TDS and bought the Ultra-Lift (tips x4) many moons ago. However, I'm now unsure whether saving 499 bux for the Infini-Lift (tips x5) is worth it. Has anyone bought it already? Does it really make much of a difference or is using the bux to make more credits a better use of them?


Suppose from a height $H$, I throw a ball of mass $M$ and radius $R$ with initial velocity $u$ into a pool of depth $x$ having a liquid with density $\rho$ and coefficient of viscosity $\eta$.  Upto what height will the Water Splash?   This may be a silly question! (Source : my brain) Assume every condition to be identical with no air resistance. Feel free to assume any other parameters if needed.  P.S. $\rightarrow$ I've see similar questions but some of them want an exact answer and some are not so direct while some are incomplete questions...  Small Note : We do not have to consider the highest 'single' drop... Just assuming almost every water droplet jumped upto a height $h$. Ideal conditions...  Feel free to assume the liquid as WATER if required!


This question arises from a sntence found in a popular grammar book for EFL:     I didn't get where I am today without ...   or     I wouldn't have got where I am today without ...   Are both of these used in UK and correct? The first phrase is in New English File series.


Is global memory initialized in C++? And if so, how?  (Second) clarification:  When a program starts up, what is in the memory space which will become global memory, prior to primitives being initialized? I'm trying to understand if it is zeroed out, or garbage for example.  The situation is: can a singleton reference be set - via an instance() call, prior to its initialization:  MySingleton* MySingleton::_instance = NULL;   and get two singleton instances as a result?  See my C++ quiz on on multiple instances of a singleton...


Segmentation fault 11 (probably in struct) before the main function even started

I'd like to know where is the mistake in my code. I just started learning C and I just got to pointers and arrays so I have no idea where the mistake is. The problem seems to be in the part where I use struct to create my own data type because none of the debug texts that I've put in show themselves in console when I run the program. I've looked on the internet for an answer but haven t found anything. Any help would be appreciated.  #include <stdio.h> #include <stdlib.h> #define MAX_size 2000 typedef struct TMatrix{     int grid[MAX_size][MAX_size];     int sizex;     int sizey; } TMATRIX; int readSize(TMATRIX *matrix);  int main(void){     TMATRIX matrix;     printf("DEBUG\n");     if (readSize(&matrix)==1){         printf ("Invalid input.\n");         return 1;     }      printf("%d %d\n", matrix.sizex,matrix.sizey);      return 0; }  int readSize(TMATRIX *matrix){     printf("DEBUG\n");     if (scanf("%d %d", &matrix->sizex, &matrix->sizey)!=2) return 1;     if (matrix->sizex<1 || matrix->sizey<1) return 1;      return 0; }


How do I package a Python script for Ubuntu?

I have a Python 3.2 script that I'd like to package for Ubuntu and Debian. I've certainly looked for documentation but I wasn't sure that I was getting the latest and greatest/easiest methods.  If someone with enough knowledge could please point me to the most recent guide on how to do this, it would be very useful to me.  Additionally, given a bit of what I have seen I might need a setup.py file too? If so I need to learn about that too.


Number of solutions for $x[1] + x[2] + \ldots + x[n] =k$

Omg this is driving me crazy seriously, it's a subproblem for a bigger problem, and i'm stuck on it.  Anyways i need the number of ways to pick $x[1]$ ammount of objects type $1$, $x[2]$ ammount of objects type $2$, $x[3]$ ammounts of objects type $3$ etc etc such that $$x[1] + x[2] + \ldots x[n] = k\;.$$ Order of the objects of course doesn't matter.  I know there is a simple formula for this something like $\binom{k + n}n$ or something like that i just can't find it anywhere on google.


I have a GeoJSON file that has fields of the days of the week like "Monday" with values 'Y' or 'N'. So I want to get today's day value, using something like  var theDayValue = 'feature.properties + day'   However this gives me a string. I want to get the value of   var theDayValue = feature.properties.Monday.   I plan on using this to show if open or closed in Leaflet by symbol color.


I'm doing a constrained optimization problem, but I want to know how this equation is derived. I understand it is made up of the Lagrangian multiplier, the original equation, and the constraint, but I want some intuition on how it works. $$\mathcal{L}(x,y,\lambda) = f(x,y) - \lambda g(x,y).$$


AES_256_ENCRYPT_CTR(key, sha-1(plainText)+plainText) VS AES-GCM, which is more secure?

What if we encrypt sha-1 hash of the plain text, along with the plain text using AES-256 in CTR mode?  How much future proof the above method would be in comparison to AES-GCM or any other method where auth tag is made public?  Ultimately the question comes down to which has higher chance of getting cracked in future? AES-256 vs HASH Algorithms.  If AES_256_ENCRYPT_CTR(key, sha-1(plainText)+plainText) is more secure, why in TLS 1.3 AES-GCM is used?  The improved version of this protocol presented in this .


Is it possible to have italic and bold text, and linebreaks under the \underline{text} command?

I was trying to emphasize text with \textbf, \textit and \underline commands. But the text will not automatically wrap to the next line. I also tried the ulem package, and it did not work too.  Does anybody know how to have italic, bold, underline and linebreaks for some text?


What is the difference between Gaussian discriminant analysis and logistic regression?

As stated in , Gaussian Discriminant Analysis (GDA) can also be expressed in the form of $\frac{1}{1+\exp(-\theta^Tx)}$, where $\theta$ is some appropriate function of $φ$, $\Sigma$, $u_0$, and $u_1$. So why can't logistic regression predict model like them?


Is it okay for a parent to cry in front of their children?

If it's okay for a parent to cry in fron of their children, when and in what circumstances will it not affect their children in a negative way?


I am getting the below exception,Please check if could help me on it.  java.lang.NullPointerException at com.cucumber.framework.stepdefinition.PersonalInfo.Personal_InfoSD.enter_the_EmpID(Personal_InfoSD.java:30)   Code:  package com.cucumber.framework.stepdefinition.PersonalInfo;  import com.cucumber.framework.PageObject.AddEmployeeForm; import com.cucumber.framework.PageObject.Personal_InfoPage; import com.cucumber.framework.configreader.ObjectRepo; import com.cucumber.framework.helper.TestBase.TestBase;  import cucumber.api.java.en.Given; import cucumber.api.java.en.Then; import cucumber.api.java.en.When;  public class Personal_InfoSD {     Personal_InfoPage personalinfo;     AddEmployeeForm AddEmployee;      @Given("^navigate to application$")     public void navigate_to_application() throws Throwable {         TestBase.driver.get(ObjectRepo.reader.getWebsite());     }      @When("^user clicks on the Add employee button$")     public void user_clicks_on_the_Add_employee_button() throws Throwable {         AddEmployeeForm AddEmployee = new AddEmployeeForm(TestBase.driver);         AddEmployee.Click_Add_Emp_Button();     }       @When("^enter the EmpID \"([^\"]*)\"$")     public void enter_the_EmpID(String arg1) throws Throwable {         personalinfo.EnterEmpID(arg1);     }  }   Sorry if i have made any mistake in asking question,I am new to cucumber tool kindly help me


Why structure in C# cannot have explicit default constructor

What is the internal reason that in C# structure cannot have an explicit default constructor?


If there are two spaceships moving away from each other(in opposite directions) at a speed 0.6c, then wouldnt that make the relative speed of one from the other's frame of reference 1.2c? Does this mean that the spacecrafts would disappear, since its light would never reach the other? Is there a contradiction here that I'm missing?


Hair particles final render is different to render view

Hair particles do not appear straight as like in the render preview. The mesh doesn't have any subdivision modifier and hair dynamics has no effect. Render Viewer  Final Render (Note the distortion on the streams)


mysql doesn't ask for root password when installing

I used apt install mysql-server to install MySQL on Ubuntu 16.04 but during the installation, it did not ask for root password.  After installation I got ERROR 1045 when I tried to login as root and mysql_secure_installation threw the same error. I purged and autoremoved then reinstalled but it does not work.  How could i fix this? Can I set the root password if I didn't set it during installation?  This is my installation log:   The following additional packages will be installed:   libaio1 mysql-client-5.7 mysql-client-core-5.7 mysql-server-5.7   mysql-server-core-5.7 Suggested packages:   mailx tinyca The following NEW packages will be installed:   libaio1 mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7   mysql-server-core-5.7 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/17,9 MB of archives. After this operation, 160 MB of additional disk space will be used. Do you want to continue? [Y/n] y Preconfiguring packages ... Selecting previously unselected package libaio1:amd64. (Reading database ... 227144 files and directories currently installed.) Preparing to unpack .../libaio1_0.3.110-2_amd64.deb ... Unpacking libaio1:amd64 (0.3.110-2) ... Selecting previously unselected package mysql-client-core-5.7. Preparing to unpack .../mysql-client-core-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-client-core-5.7 (5.7.12-0ubuntu1) ... Selecting previously unselected package mysql-client-5.7. Preparing to unpack .../mysql-client-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-client-5.7 (5.7.12-0ubuntu1) ... Selecting previously unselected package mysql-server-core-5.7. Preparing to unpack .../mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.12-0ubuntu1) ... Selecting previously unselected package mysql-server-5.7. Preparing to unpack .../mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-server-5.7 (5.7.12-0ubuntu1) ... Selecting previously unselected package mysql-server. Preparing to unpack .../mysql-server_5.7.12-0ubuntu1_all.deb ... Unpacking mysql-server (5.7.12-0ubuntu1) ... Processing triggers for libc-bin (2.23-0ubuntu3) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Setting up libaio1:amd64 (0.3.110-2) ... Setting up mysql-client-core-5.7 (5.7.12-0ubuntu1) ... Setting up mysql-client-5.7 (5.7.12-0ubuntu1) ... Setting up mysql-server-core-5.7 (5.7.12-0ubuntu1) ... Setting up mysql-server-5.7 (5.7.12-0ubuntu1) ... update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode Checking if update is needed. This installation of MySQL is already upgraded to 5.7.12, use --force if you still need to run mysql_upgrade Setting up mysql-server (5.7.12-0ubuntu1) ... Processing triggers for libc-bin (2.23-0ubuntu3) ...


How to return the login screen to the default

I've been experimenting with various Desktop Environments, including LXDE, XFCE, KDE.   I'm returning to Unity, and I would like my login screen back to the default for 12.04. I think that it changed when I tried KDE, probably because of an answer I gave to a prompt that I didn't understand.  Any ideas?


Here's my MWE (this is an actual bibliography item, the draft option is there to show the overfull hbox):  \documentclass[draft]{article}  \usepackage{filecontents} \begin{filecontents*}{x.bib} @BOOK{LV12,   title = {Algebraic operads},   publisher = {Springer},   year = {2012},   author = {Loday, Jean-Louis and Vallette, Bruno},   volume = {346},   pages = {xxiv+634},   series = {Grundlehren der Mathematischen Wissenschaften [Fundamental Principles     of Mathematical Sciences]},   address = {Heidelberg},   doi = {10.1007/978-3-642-30362-3},   isbn = {978-3-642-30361-6}, } \end{filecontents*}  \usepackage{biblatex} \addbibresource{x.bib}  \begin{document} \nocite{*} \printbibliography \end{document}   This produces:     Overfull \hbox (15.12822pt too wide) in paragraph at lines 27--27   I'm generally aware of how to fix overfull hbox from text I wrote myself, but not when the text is produced by a package. What is the best course of action here? Altering the entry is not an option.


Can anyone can suggest where I can freely download ArcObjects SDKs for ArcGIS?  I am using version 10.2.


What are the survival limitations of alcohol?

This question was inspired by watching one of the Pirates of the Caribbean movies; particularly where Jack Sparrow allegedly survives on a desert island by finding an unlimited supply of rum. I've heard alcoholic drinks dehydrate you more than hydrate you, so this seems like an unsustainable strategy.  My question is threefold.    How long can a human survive by drinking hard liquor (40% alcohol by volume) for their sole water intake (ignoring food)? If it's unsustainable, what will finally take you down? If the hard-liquor approach isn't viable, what % alcohol can keep you hydrated (beer, wine, etc.)?   Related: 1.  2.


Ltf(c+h) = f(c)(h goes to 0) if and only if Ltf(x) = f(c)(x goes to c).  I am able to prove this fact using sequential criterion of continuity. But sequential criterion is dependent on Axiom of countable choice.   Is above result also dependent on axiom of countable choice. I think no because different books use both definition equivalently.


Why should the Horcruxes be destroyed first?

In Half Blood Prince, Dumbledore tells Harry that:     "The seventh part of his soul, however maimed, resides inside his   regenerated body. That was the part of him that lived a spectral   existence for so many years during his exile; without that, he has no   self at all. That seventh piece of soul will be the last that anybody   wishing to kill Voldemort must attack — the piece that lives in his   body.”      — Half Blood Prince, Chapter 23, Horcruxes.   Why does the master piece that lives in Voldemort have to be the last?  If Voldemort was killed*  in the usual way (as he was in 1981), i.e., this master piece was ripped of his body and then all his Horcruxes were destroyed, would he not be finished for ever, and meet the same fate in eternal limbo as he did at the end of Deathly Hallows?  The natural answer seems to be affirmative, if not for the fact that Dumbledore explicitly uses the word 'last'.  If no, what would happen in the alternate scenario described above?  I vaguely remember some mention of this problem in this site, but it could have been in the comments.  *I must clarify that 'kill' here must refer to ripping the (part of his) soul in his body, allowing for the possibility that he might regenerate, as opposed to the ordinary usage of the word 'kill', which leads to death for unhorcruxed people.


Do I need to reinstall OS if changing motherboard?

Soon I will upgrade my GA-890GPA-UD3H to either GA-990FXA-UD3 or M5A99X (still deciding which one).  Would I need to reinstall my 14.10 setup or will the kernel simply boot with a different motherboard driver?  I am not upgrading the CPU, just the motherboard.


Let's say I have three ArrayList and a HashMap as follows:  public HashMap<Integer, ArrayList<String>> m = new HashMap<>(); public ArrayList<JSONObject> A = new ArrayList<>(); public ArrayList<JSONArray> B = new ArrayList<>(); public ArrayList<String> C = new ArrayList<>();   And I do:  m.put(0, C);//setting values to the hashmap C.clear();//resetting value of C   But this also clear the C inside m hashmap, resulting m = [0, ""]. Why is this the case in Java?   What I was expecting is this  int A = 1; int B = 2; int C = A+B //result is 3   Now if i set A=0 this shouldn't affect the final value of C  Can someone please explain this to me?


I have a sign in form where userid is email id of users or unique id given by us i.e in integer.  So i want regex for that text box to validate email or Id.  Means.  if someone enters   abc@abc.com or 1024 then it is valid  and if someone is entering anything other than email or integer than it should show as invalid.  Thanks...


How to list all available .plist keys on a certain domain application by defaults command?

I want to know all keys (property list) which available on certain domain application, as example I could list available key for com.apple.dock by entering this command:  $ defaults read com.apple.dock   but somehow the output of this command only showed the active property list key, and yet not all available key for com.apple.dock listed there.  Anyone can help me on this?


In British English should it be "Rockstar Games' products" or "Rockstar Games's products" to make it possessive?  I would also like to check if the same rule applies if the company name's first word was an adjective    eg. Happy Games  "Happy Games' office" or "Happy Games's office"?  The rule for American English would also be good to know but not essential.   Any help would be greatly appreciated. Thanks  (I apologise for any other grammatical errors or poor use of English I may have made in the phrasing of this question.)


Adding a new switch with an independent light in an existing circuit

I have two switches at the bottom of my stairs in the basement. One switch is a three way to the switch at the top of my stairs. The other switch lights a series of lights all connected to the same circuit. One of those lights is in the pantry and what I would like to do is isolate that light from the rest by adding a single pole switch to the room. The switch at the bottom of the stairs would still light up the rest of the lights.


In my case i am using the shematics in a truck, i have the ground everywere on the truck body. I would like to control a led strip using mosfet (N or P) as a pwm switch on VCC (transistor beetween battery +12 and led's + wire).  Is it possible ?  Edit I have tried the solutions 1 and 2 of the possible duplicate link without success, any idear why and how to fix this ? My pwm command signal comes from an arduino 5V.


I am searching for a way to write the opposite of 𝑎˘ $\breve{a}$? (rotated at 180$^o$) Thanks. Thanks.


Is $a^n+b^n$ is divisible by $a+b$ ?  This question arose when I found this post  in these pages.  I addressed the question as follows:  $$ a^n+b^n=(a+b)(a^{n-1}-a^{n-2}b+a^{n-3}b^2 -a^{n-4}b^3+\cdots\pm b^{n-1})\\ \begin{align} =a^n &-a^{n-1}b-a^{n-2}b^2+a^{n-3}b^3 -a^{n-4}b^4+\cdots\pm ab^{n-1})\\ &+a^{n-1}b+a^{n-2}b^2-a^{n-3}b^3 +a^{n-4}b^4-\cdots\mp ab^{n-1}\pm b^n)\\ =a^n\pm b^n \end{align} $$  where the +sign applies to odd $n$ and the -sign to even $n$. Therefore we find that  $$ a+b|a^n+b^n,\quad n \text{ odd}\\ a+b|a^n-b^n,\quad n \text{ even} $$ Is this correct?


Is there an experiment showing that the warping of space affects the shape of an electrostatic field?

General relativity assumes that space itself is warped by gravity, which is what gives rise to the shapes of the paths followed by objects subject to a gravitational field.  If space itself truly bends, then the paths of all particles in an area of space warped by a gravitational field should be affected.  As a result, the path of the force carrier of an electrostatic field should also be affected by the presence of a gravitational field, since the path of that force carrier should also be affected by the local warping of space.   Therefore, any electrostatic field that is within an area of space warped by a gravitational field should in some way be affected the presence of the gravitational field.  If so, has the effect been measured by experimentation?


How to disable "Verify it's you" on Gmail, without phone?

Sometimes, when I try to access my Gmail account from some other computer or country, an annoying security feature prevents me from doing so. I get the following message:  Verify it's you There's something unusual about how you're signing in. To show that it's really you, complete the task below.  Below this, an option is offered:  Enter a phone number to get a verification code by text message or phone call  But this doesn't help and doesn't even make any sense for me, because I didn't associate any phone number to my Gmail account and I don't intend to do so. So, when I manage to log in, how do I disable this "feature"? Is there any way to opt-out of additional verification and tell Google that I consider my password to be enough to log in my account (regardless of stuff like IP address and browser's user agent)?


Who should own files shared by a group and where should they go

I am configuring a Linux work station that will be used by a small number of users (20-30). These users will belong to a small set of groups (5-10) with each user belonging to at least one group and potentially multiple groups. On the work station there are files that should only be writeable by members of a particular group. Each file is only writeable by members of one group so standard Linux permissions should work just fine. I have two questions.  Who should own the files that already exist? I was thinking either root or creating a set of dummy users corresponding to the groups. Is there a better choice that I am missing? It seems like this is unlikely a unique situation so I was hoping there was a standard convention.  The second question is where should I put the files. If I made dummy users I could create subdirectories in /home/. If root owns the files do I go with /srv/groups/ or maybe `/share/? Again is there a convention?


Unique values of the array with four fields

I've an array like this:  array(     0 => array(1, 2, 3, 4),     1 => array(1, 3, 2, 4),     2 => array(1, 2, 4, 3),     3 => array(1, 2, 5, 6) )   I have to remove records that are repeated. So I need finally to have this array:  array(     0 => array(1, 2, 3, 4),     3 => array(1, 2, 5, 6) )   The script is in PHP.  Who can help? :)


Why does this query returns different when I do it in excel or calculator?  select 0.1/12 * 600000   It returns 4999.800000  How do I make it to 5000?


Ajax form submission not work in conjunction with JQuery mouse events (mouseenter and mouseleave)

I can't figure out why the form redirects after being submitted. So, this is how my code works: When the mouse is entered (mouseenter) the button edit appears. When this button is clicked I send ajax request to the server, and I get as response a form with select options, so far so good. But, when I choose (select) something and hit update, the form redirects despite the fact that I wrote evt.preventDefault(), and subsequently ajax failed working. I got stuck and I can't figure out where the bug is. I appreciate any suggestions. Thanks in advance. Here is my code:  $('div.js-service-company').mouseenter(function(evt) {   const thisDiv = $(this);   const link = $(this).children().children('a');   const p = $(this).children();   let url = link.attr('href');   let currentTicketState = url.substring(url.lastIndexOf('=') + 1);   const ticketId = link.attr('data-id');    if (allowedTicketStates.includes(currentTicketState)) {      const btn = $('<button/>', {       type: 'submit',       name: 'serviceCompanyData',       class: 'btn btn-success btn-sm btn-edit-service-company',       text: 'Edit'     });      p.append(btn);      $('button.btn-edit-service-company').click(function(btn) {       btn.preventDefault();       const thisBtn = $(this);        $.ajax({         type: "GET",         url: '{{ path('         admin_cms3_core_ticket_getServiceCompany ') }}',         data: {           ticketId: ticketId,         },         success: response => {           link.parent('p').append(response);           link.hide();           thisBtn.hide();           $('div.js-service-company').off("mouseenter");         },         error: (jqXHR, textStatus) => {           console.log("Error occurred: " + textStatus)         }       });      });     // this is where the form submission occurres     $('form#service-company-form').submit(function(evt2) {       evt2.preventDefault();        const form = $(this);       const type = form.attr('method');       const thisUrl = form.attr('action');        $.ajax({         type,         url: thisUrl,         data: form.serialize(),         dataType: 'json',         async: false,         success: response => {           $('body div').removeClass("loader_wrap loader_background");           form.hide();           link.text(response.serviceCompany);           link.show();         },         error: err => {           console.log(err)         }       });     });   } }).mouseleave(function() {   $('button.btn-edit-service-company').hide();   const objectId = $(this).attr('data-id');   $('.service_company-'.concat(`${objectId}`)).hide(); });     The html code:

       Text_01
     Company Name


Prove that $a^2$ when divided by $5$ cannot have a remainder of $3$.

For any natural number $a$, prove that $a^2$ when divided by $5$ cannot have a remainder of $3$. (Hint: What are the possible values of the remainder when $a$ is divided by $5$?  Using the hint, I found that the possible values of the remainder are $1, 2, 3, 4$, and $0$, and $3$ is only a remainder when the last digit of $a$ is $3$ or $8$.  But I'm not sure how to explain this in a proof, and I don't know how to extend it to $a^2$. Any help would be much appreciated!


Seeking a story about a subway train journey, through a universe made entirely of city

A man living in an underground city gets on his local subway train and keeps traveling, station after station, just to see where it goes.    Nobody has ever done this before. The staff on the train (who only each work a small section of train line) are interested in his journey, and allow him to continue.  The train passes through thousands of miles of continuous underground city, past contaminated and bricked-up areas, past thousands of stations, and finally after many months or perhaps years, comes back to where he started.  He realizes the world or universe is all city, entirely urbanized and occupied by people, all the way to the core, and can estimate its diameter. He also becomes concerned that the city-world may be slowly choking on its own toxic wastes... more and more areas are being walled-up and sealed off, and the whole civilization may eventually die.  As far as I can remember there is no mention of "sky" or even of a "surface" to a planet. Even the idea of "outside" is absent, if I remember correctly.  It's not clear if it is set in a large converted planet, or if the entire universe is city.   It was written in English. I read it in the 1980s, and it felt like it could have been written any time from the 1930s to about 1970s. It was almost certainly part of an anthology.


Averaging MODIS 8-day LST for each pixel in a region to generate annual mean LST

I have downloaded 8-day MODIS LST products (MOD11A2) for the whole year of 2011  and is there any method in R to extract those pixels in clear sky conditions with  emissivity error < 0.01 and LST error < 1 K and average LST values for each pixel to generate only one raster map for 2011? My current code is not complete as below.      lst <- lapply(list.files("D:/LST2011/Surf_Temp_8Days_1Km_v6/LST_Day_1km",                       pattern = "LST_Day_1km", full.names = T), raster)     csd <- lapply(list.files("D:/LST2011/Surf_Temp_8Days_1Km_v6/Days_Clear",                       pattern = "Days_Clear", full.names = T), raster)     mean_lst <- temporalComposite(lst, csd, fun = function(x) mean(x, na.rm = TRUE))


If $f'(x)=[f(x)]^2 \enspace \forall x \ in \mathbb{R}$ and $f(0)=0$ then $f=0$ everywhere.

Problem  Let $f:\mathbb{R}→\mathbb{R}$ be a differentiable function such that $f(0)=0$ and $\forall x \in \mathbb{R} \enspace f′(x)=[f(x)]^2.$  My Process  I want to solve this question with analysis arguments, not simply ODE. This question is in the integral chapter so maybe we should use that.  Anyways. A method that would work would be to show that as $f$ is continuous, the set of points where $f \neq 0$ is open. If we then show that this set is also closed, it would have to be the empty set since as $f(0)=0$, it can not be $\mathbb{R}$. The thing is I cant see how to show this.  Also, is there another way, actually using integrals?


Showing $[(fg)h]_n = [f(gh)_n]$ in the linear algebra $F^\infty$

I am studying the proof of associativity of the multiplication in a linear algebra, from Hoffman and Kunze's Linear Algebra, 2nd edition. I am not understanding one of the steps taken to simplify a summation.  The linear algebra $F^\infty$ is the vector space of sequences in $F$. The elements of $F^\infty$ are of the form $f = (f_0,f_1,f_2,\dots)$. The product of $f,g \in F^\infty$ is defined by $$(fg)_n=\sum_{i=0}^nf_ig_{n-i},\,n=0,1,2,...$$  We then have (on page 118): $$\begin{align} [(fg)h]_n &= \sum_{i=0}^n(fg)_ih_{n-i} \\ &=\sum_{i=0}^n \left(\sum_{j=0}^if_jg_{i-j}\right)h_{n-i}. \end{align}$$  What I do not understand are the following two steps: $$\begin{align} \phantom{[(fg)h]_n} &=\sum_{i=0}^n \sum_{j=0}^if_{i}g_{i-j}h_{n-i} \\ &=\sum_{j=0}^nf_j\sum_{i=0}^{n-j}g_ih_{n-i-j}, \end{align}$$  which gives the result $$\phantom{[(fg)h]_n}=\sum_{j=0}^nf_j(gh)_{n-j} = [f(gh)]_n.$$  I can see the substitution of $f_i$ for $f_j$ after expanding the sum, but I do not understand the next step. Am I supposed to be able to see these steps intuitively (without expanding the sum)? What is going on in the substitution of $n$ for $n-j$?


What is the difference between a variable define in the class with or without {get; set;}. For example if I declare a variable like this  public string VariableName { get; set; }   and   public string VariableName;   What is the difference and if there is no difference than why and when to use get set?


I have a requirement that when a class meets the governor limits i want to send the mail to the specific user.  I want to catch limit Exception and send an email to user when limit Exception occurred in a apex class?


Achievements menu: Can you tell me why I got reputation?

The achievements drop-down menu in the new top bar shows me when a question/answer earns me reputation and how much, and that's great, but I don't know what caused that to happen. I'd like to know why I received reputation: was it an upvote? An accepted answer? An accepted edit? If I have the list of reputation values in my head I can figure it out, but it would help me to see it somewhere in the drop-down, even as title text on hover.    Edit:  It sounds like the items in the menu can roll up multiple events, and that's why it doesn't show the event there. How about adding a link to my reputation tab to the menu so I can quickly get to a breakdown?


Prove that for all m > n $\ge$ 1,  $ \vert x_m - x_n\vert \le \frac{K^{n-1}}{1-K}\vert x_2-x_1\vert $  Where K is a contraction factor of f, such that K $\in$ [0,1) and $\vert f(x)-f(y) \vert \le K\vert x-y \vert $  $(x_n)$ is the sequence defined as $x_1 = \alpha \in R$ and $x_n = f(x_{n-1}) $ for all $n\ge2$  I have already shown that $\forall n \ge 1$, $\vert x_{n+1}-x_n\vert \le K^{n-1}\vert x_2-x_1 \vert$,  so that can be used without proof.  I tried using induction by showing m=n+1 holds, assuming m=n+k holds, but couldn't show that m=n+k+1 holds.  I don't know if you're supposed to use induction but that's the only method I could think of.


Prove if $n \in \mathbb N$, then $\frac{1}{2!}+\frac{2}{3!}+\frac{3}{4!}+\cdots+\frac{n}{\left(n+1\right)!} = 1-\frac{1}{\left(n+1\right)!}$   So I proved the base case where $n=1$ and got $\frac{1}{2}$  Then since $n=k$ implies $n=k+1$ I setup the problem like so:  $\frac{k}{(k+1)!}+\frac{(k+1)}{(k+2)!}=1-\frac{1}{(k+2)!}$  After trying to simplify it I got the following:  $\frac{k(k+2)!+(k+1)(k+1)!}{(k+1)!(k+2)!}=1-\frac{1}{(k+2)!}$  However, I'm having trouble simplifying it to match the RHS.  Hints?


Can I still use my Indefinite Leave to Remain Visa in my old passport to travel?

Friends and I are planning to travel to Europe this September, and I have an Indefinite Leave to Remain (ILR) in the UK in my old passport. Does ILR even have an expiration date? And getting a BRP now will cost me a fortune to get it done quickly. I have my new passport. Should I travel using both my old and new passports instead? I dont want to be held back by the Immigration when I return back to the UK


Two Different Sources Taking Transaction Log Backups

I have inherited a database server with SQL Server 2005.  The databases have full recovery mode with hourly transaction log backups.  There are two sources taking full backups overnight and hourly transaction log backups: Tivoli Data Protection (TDP) which is part of IBM's Tivoli Storage Manager (TSM) as well as a regular SQL Server Agent job.  If a disaster occurred and I needed to recover the database from backup, would I be missing data?  I was thinking that if the SQL transaction log backup fires off, it will mark the committed transactions in the log file as ready to be overwritten.  After that happens, users will commit more transactions.  When TSM/TDP comes in, it will mark the committed transactions in the log as ready to be overwritten.  If I were to do a restore from either backup (unless it's using only the full backup), then it would not include all of the data.


Example of mailmerge package with an Excel spreadsheet

I am looking for an example for using the  package to write a cover letter, with names and addresses on a spreadsheet. The package comes with an example, but you have to manually enter all the data.


How did the AT-ATs get to the surface of Hoth?

I'm curious how these beasts got down to the surface of Hoth.    Did the Galactic Empire land them in big ships, if so which ones?


sudo apt-get --install-suggests install git fails

When I try to install git along with its suggested packages, I get errors indicating that git-daemon-run and runit failed to install properly. Looking up the error messages leads me to  .  However, this bug thread does not seem to offer very good solutions or workarounds.  Note that I originally ran into this on Ubuntu 15.10, running under VirtualBox. However, I believe 15.04 and 16.04 LTS are also affected.


QGIS clipping OpenStreetMap but still being able to run functions such as ORS Tools on the layer

I have struggled to find a solution to be able to clip an OpenStreetMap (OSM) raster layer but still run functions using plugins such as ORS Tools. I would like to clip OSM with an overlaying vector layer, but not for aesthetic purposes. I have seen solutions where you convert the OSM raster layer into an image, but this would get rid of information contained in the original layer. With my clipped OSM layer I would like to be able to run a route analysis / network analysis of the roads in my study area. The reason for clipping the OSM is because there are certain stretches of roads that I want the plugins to avoid when calculating the shortest route. Plugins for QGIS such as ORS Tools and TravelTime allow network analysis but I believe they do this (please correct me if I am wrong) by using road and route data through their own databases. Is there a way I can clip an OSM layer (or something similar) in QGIS and then be able to calculate the shortest route between two points using only the roads on this newly clipped layer? If you know of a solution for Esri I would be happy to give that a go too.


A question seems to be based on Schwartz lemma

This question is from an assignment in complex analysis which couldn't be discussed due to pendamic.  Let $ f\in H(U) , f(U) \subset U, f(0) =0 , f(1/2) =0 $. Show that $ |f'(0) |\leq 1/2 .$  It seemed to me that Schwartz lemma might be useful but from it I can only deduce that |f'(0) |$\leq$ 1 not 1/2 . So, can anyone please tell me how should I deduce the conclusion. I am not able to think about any other result useful in this condition. Thank you.


Where would reddish purples lie on the spectrum of light, considering red light and purple light are on opposite ends of the visible spectrum?

Obviously red and purple are opposite on the visible light spectrum. So how do we get colors that are reddish purple? Where would they lie on the spectrum of visible light?


Boolean function to Algebraic Normal Form

What is the Algorithm for getting truth table for the Boolean function (Near bent or semi bent functions)?\  Example: If I have a Boolean function over $\mathbb{F}_{2^5}$, how to write the function $f(x)=Tr((x)^{3})$ in truth table manually. Is there any algorithm for it or we have the inbuilt function in Java.


Can a set $S$ of subsets of $\mathbb{N}$ such that either $P \subset Q$ or $Q \subset P$ for all $P,Q \in S$ be uncountable?

I've tried a bunch of different approaches to this question (and would particularly appreciate some hints that don't give the whole thing away immediately). I've noticed that if $S$  contains some finite subsets, then for each $n \in \mathbb{N}$ there is at most one subset of size $n$ in the collection $S$ as $S$ can't contain duplicates (in order to satisfy the given condition). Certainly if $A_i$ is a finite subset contained in $S$ of size $i$, then $A_i \subset A_j$ if $i > j$. I've tried considering the possibilities where there are some finite subsets in the collection $S$, and then we can also add in infinite-size subsets that are each a superset of all of the finite subsets. However it seems rather difficult to visualise what happens when you consider infinite subsets of $\mathbb{N}$ that can't be obtained by removing finitely many elements from $\mathbb{N}$. What are good approaches to take to figure out whether such a set can be uncountable - is there an element of construction here?


A VPS running Ubuntu 14.04.5 LTS is consuming nearly 300% of CPU capacity.  It is identified running top as cER6XH.  Is there any way to track down what this process is and why it may be going rogue?


Name change retroactive in comments, but not in chat

On , I exchanged some comments with someone going by the name "user6292850 and continued that discussion .  Later, I returned to see that the comments were now attributed to a user named "" in the comments section, but NOT in the continuation in chat (and ). Does it make sense to have the names change in chat as well, if it's being changed in the comments? Alternatively, does it make sense to not change the names in either place, to be consistent with both chat and other commenters' references?


How to prove that $A_n$ is normal in $S_n$?  Note that $A_n$ is a group of even permutations on a set of length $n$. $S_n$ is the group of all permutations on $n$ symbols.  Definition: A subgroup $H$ is normal in $G$ means: for all $g \in G$, $g^{-1}Hg\subseteq H$.


How to capture lead from webform in LEX?

we want to capture leads from our website. I configured a Site and created a visualforce page with lightningStylesheets="true" so it will be shown as LEX, however, when the site is viewed, page is shown in classic style. Is there a way that the page is viewed as lightning? I already checked the Lightning Features for Guest Users. Web-to-Lead is not applicable since it has a limit to capture only 500 leads.TIA.


What is the most secure bike rack for long distance travel?

I'm looking to transport my bike a fair distance (500km) and I would like to spend $150 or less on the transport. I currently have a strap mounted trunk rack but I worry about it loosening over the trip. I do have a roof rack (stock) and a hitch (also stock.) Which would be the best option for securely transporting my bike?


I'm a looking for a good book to self-study differential forms. Particularly, I'm looking for a book that is as similar as possible to Bert Mendelson's "Introduction to topology" (i.e. a book that procede by  following a: "Definition, theorem, proof" style). In addition, the book that I'm looking for should be as much self consistent as possibile. I'm a first year graduate student in nuclear engineering. My prerequisites are a good understanding of (multivariate and vector) calculus,  linear algebra, and a little of functional analysis, Lebesgue integration theory, PDE. I know nothing about differential geometry, but to my (very) poor understanding  differential forms and concept like manifolds and so on are linked to each other.


Is a function $f:\mathbb R\to\mathbb R$ such that $f(x+y)=f(x)+f(y)$ always continuous?

Is there a function $f:\mathbb R\to\mathbb R$ such that $f(x+y)=f(x)+f(y)$ which is not continuous? I have proved that if it's continuous in one point $a\in\mathbb R$ then it's continuous on all $\mathbb R$, but I didn't find such a function which is not continuous everywhere. Therefore I tried to prove that all function of this form is continuous at $x=0$ but with no success. I think that if such a function exist it would be of the form $f(x)=...$ if $x\in\mathbb Q$ and $f(x)=...$ if $x\in\mathbb R\backslash\mathbb Q$ but I didn't find it.


"ssh -L " only working from local machine

I mean if I've got something like this:  ssh -L 9000:itc.ua:80 andy@localhost   It will open port 9000 on my local machine and when I hit http://localhost:9000 in Firefox it will forward to itc.ua:80 So far so good.  BUT what if I want to hit that opened port 9000 from a different machine? For example I've got another machine on my local network and on that other machine I'm trying to navigate with Firefox to http://<IP ADDRESS OF MACHINE WITH MY SSH -L 9000 Tunnel>:9000 and this fails.   Is there any way to make it work?


Anyone know how to integrate the following?  $$ \int_0^{+\infty} \! e^{-t^2} \, \mathrm{d}t $$  Thanks


How to enable CPU Turbo-Boost in Ubuntu?

I'm having server with 9700K and want to enable turbo-boost to get 4.9 GHz.  I've installed cpufrequtils and set performance mode.  Via 'cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq' I'm getting 3.6 GHz.  Using Ubuntu 18.04.3 LTS.


How to change XP VM on virtualbox to have two CPUs without having to reinstall XP?

I installed Windows XP in Virtualbox under Ubuntu.  After installing XP I want to change the VM to have two cpus.  How to do that without reinstalling XP?


Consider the set of all $n×n$ invertible real matrices. Is that set connected?

I thought of creating a path from a matrix $A$ to a matrix $B$ using their traces, but got nowhere.


For a function $$ y =f(x), x=\left(x_1, x_2, ..., x_N\right)$$ the law of propagation of uncertainty, see $^{[1]}$ (pdf), is generally given as $$ u_y^2 = \sum_{i=1}^N \left(\frac{\partial f}{\partial x_i}\right)^2 u_{x_i}^2 $$ where $u_{x_i}$ is the uncertainty associated with each $x_i$.  How do we derive this propagation law? I understand that it can be achieved by Taylor expanding the function, but I don't see why this is a sensible thing to do, or what is the physical meaning of it.  (I've asked basically the same question at Signal Processing  but haven't got any useful answers. Hopefully you guys are more suited to this question).  [1] Evaluation of measurement data – Guide to the expression of uncertainty in measurement  (html) [Sec 5 ]


What is a property that looks like it holds for all natural numbers but it turns out it doesn't?

I want to find a simple example of a property that looks like it holds for all $n \in \mathbb{N}$, but that does not. I remember reading about one that got in hold for centuries before someone found out a ridiculously big value of $n$ for which the property didn't hold, but I don't remember what the property was. I'd like if the example property was easy to explain and didn't demand many concepts outside basic knowledge of the natural numbers. Anything like that?


Deriving Potential Energy Density for Longitudinally Vibrating String

I understand how to derive the density for a string vibrating transversely. However, for a longitudinal one, I had some doubts.   Namely, suppose $ y(x,t) $ is the extension of some point (really, infinitesimal interval) on the string. The kinetic energy density is $$ K = \frac{1}{2} \rho (\frac{\partial y}{\partial t})^2 $$ where $\rho$ - linear mass density.  To derive the potential energy density, I am considering the work done against $T$, the tension force of the string.   $$W = T \frac{\partial y}{\partial x}$$  Using this logic, the potential density should be  $$V = T \frac{\partial^2 y}{\partial x^2}$$  It seems that there should be a factor of $\frac{1}{2}$ in the potential density as well. What am I doing wrong?


About the definition of continuous functions

I have the following problem:  Let $ D=\lbrace x_{1} \dots x_{n}  \rbrace$ be a finite subset of $\mathbb{R}$. Proof that every function $f:D\rightarrow \mathbb{R}$ is continuous.  and following definition for continuous functions:  Let $f:D \rightarrow \mathbb{R}$ a function and let $a \in D$. Than $f$ is called continuous at $a$ if: Is $ $($ a_{n} $)$ $ a sequence in $D$, which converges to $a$, then the sequence $(f(a_{n})$ converges to $ f(a) $. The function $f$ is called continuous on $D$ if $f$ is continuous at each $a\in D.$  Just to get an idea of how to tackle this problem I took the function $\operatorname{sign}(x)$ ($1$ for $x>0$, $0$ for $x=0$ and $-1$ for $ x<0$) which is NOT continuous and a finite subset of $\mathbb{R}$, for example $D=\lbrace -2, -1, 0, 1, 2, 3 \rbrace$. According to the problem it should be possible to show that the function is continuous for the chosen $D$.  So I think what kind of sequence I could choose. Here the issues starts. Can I "define" a sequence in $D$ like $-2,-1,0,1,2$ which has the limit $3$? Or what would be a possible sequence? As far as I understood, I can only use elements from $D$ for the sequence members and the limit?!  Thanks


The hostname of my name is very long, which is odd. How can change the hostname for my system?  My hostname, currently, is   himanshu@himanshu-Lenovo-ideapad-100-15IBD:~$  Is there any way I can shorten this or change it entirely?


Find the leading order uniform approximation to the boundary value problem $\epsilon y''+y'\sin x+y\sin 2x = 0$?

$$\epsilon y''+y'\sin x+y\sin 2x = 0$$ with boundary conditions $y(0)=\pi$ and $y(\pi)=0$ as $\epsilon \rightarrow 0$. I don't know how to find out where the boundary layer is? I thought initially it was at x=0 but this just leads to the outer solution of $$y=Ae^{-2\sin x}$$ if i've done it correctly and applying the boundary conditions means A=0 which means its not a boundary layer. I'm so lost. Any hints? Thanks!


How do I create a static permanent ifconfig alias?

How do I get this ifconfig loopback alias change to persist after a restart?  $ sudo ifconfig lo0 alias 172.16.222.111 $ ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384     options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>     inet 127.0.0.1 netmask 0xff000000      inet6 ::1 prefixlen 128      inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1      inet 172.16.222.111 netmask 0xffff0000          ### <-- WANTED!!!     nd6 options=201<PERFORMNUD,DAD>   The only similar instructions I've found are for nonexistent OSX files on other *nix systems for files like /etc/network/interfaces or /etc/sysconfig/networking-scripts/ifcfg-eth0.


Can't Mount NTFS drive "The disk contains an unclean file system"

I am getting an error when I try to access my NTFS drive from ubuntu.  Unable to access “My Drive”  Error mounting /dev/sda6 at /media/ubuntu/Media Center: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda6" "/media/rolindroy/Media Center"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda6': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option   Any help would be greatly appreciated!


Named Credentials and REST Callout for an API that provides me with a token

Writing an Apex class to make REST Callouts to several API endpoints (Jira, , and Zendesk). Methods on the class will be invoked daily by the Apex Job Scheduler. Jira was easy to setup using Named Credentials using my Jira username and a token. Tempo gives me two options:  Using the REST API as an individual user where I create a token that I can use to make requests. Note: I'm not getting a code first and then getting this token. I just get the token. Using the REST API as an application developer (OAuth 2.0) - I'm trying to pull data administratively, not create a web app where users authorize my app to access their data.  This code works using approach 1 (but embedding credentials in code is not good): Http http = new Http(); HttpRequest request = new HttpRequest(); DateTime todaysDate = System.today().addDays(-1); String todaysDateStr = todaysDate.format('yyyy-MM-dd'); request.setEndpoint('https://api.tempo.io/core/3/worklogs?updatedFrom=2020-08-30'); // request.setEndpoint('callout:Tempo/core/3/worklogs?updatedFrom=2020-08-30'); request.setMethod('GET'); request.setHeader('Content-Type', 'application/json'); String TOKEN = 'REPLACE_WITH_ACTUAL_TOKEN'; request.setHeader('Authorization', 'Bearer ' + TOKEN); HttpResponse response = http.send(request);  Wondering what the correct setup would be as a Named Credential in Salesforce (Identity Type, Authentication Protocol, etc.). I wouldn't think I would need to provide a Certificate. Any thoughts?


I know that the Schwarzschild radius is given by  $$r=\frac{2GM}{c^{2}}.$$  but I never seen a derivation for this equation.  1- Does anyone know how to derive this equation from general relativity?  2- If we had the metric $$ds^2=−A(r)dt^2+\frac{dr^2}{B(r)}+r^2(dθ^2+\sin^2{θ}dϕ^2)$$ , where $A(r)≠(1−\frac{2GM}{c^2r})$ and $B(r)≠(1−\frac{2GM}{c^{2}r})$, then what is the event horizon?


How do I emulate the Home key on a mac laptop in Blender?

I am trying to set the camera to the viewport on a mac laptop.  I use View>Align View>Align Active Camera To View. This gives me the view but the camera is too zoomed in.  From looking on the stack exchange I believe if I press the Home key this will give me what I want.  How can I do this on my macbook pro keyboard ?


Find all functions $f(x)$ such that $f\left(x^2+f(y)\right)$=$y+(f(x))^2$

Let $\mathbb R$ denote the set of all real numbers. Find all function $f: R\to \ R$ such that   $$f\left(x^2+f(y)\right)=y+(f(x))^2$$   It is the problem. I tried to it by putting many at the place of $x$ and $y$ but I can't proceed. Please somebody help me.


Having an issue with a dual boot setup that is being run from Windows boot manager. I can successfully load into grub2 from Windows boot manager, however it seems that grub2 cannot locate to the Kernel or something, as it is dropping me right into a shell with the following output:  [ Minimal BASH-like line editing is suported. For the First word, TAB list the posible command completion. Anywhere else tab list the posible completions of a device/filename,]  grub>   I have used Easybcd in the past and successfully loaded a Linux grub through Windows bootloader, but this was when both operating systems were on the same partition, but since my OS installationd are now on separate partitions it seems EasyBcd cant work its magic.   ONe encouragement is that I was able to get Easybcd to load a working Grub if I used the Neo grub bootloader and edit the confg with:  title Ubuntu 14.04 find --set-root /boot/vmlinuz-3.19.0-61-generic kernel /boot/vmlinuz-3.19.0-61-generic ro root=/dev/sdc initrd /boot/initrd.img-3.19.0-61-generic   however this loads in Grub4DOS which is very slow, and as of today this method stopped working See  for details).  Here is the output of EasyBcd Settings for all the different methods I have tried for the Ubuntu 14.04 installation:  Default: Windows 7 Timeout: 30 seconds Boot Drive: C:\  Entry #1 Name: Windows 7 BCD ID: {current} Drive: C:\ Bootloader Path: \Windows\system32\winload.exe  Entry #2 Name: Ubuntu 14.04 Legacy BCD ID: {a4f127cf-3150-11e6-8aaf-408d5cb9e442} Drive: C:\ Bootloader Path: \NST\nst_linux.mbr  Entry #3 Name: Ubuntu 14.04 Grub2 BCD ID: {a4f127d0-3150-11e6-8aaf-408d5cb9e442} Drive: C:\ Bootloader Path: \NST\AutoNeoGrub0.mbr  Entry #4 Name: Ubuntu Neo Grub BCD ID: {a4f127d1-3150-11e6-8aaf-408d5cb9e442} Drive: C:\ Bootloader Path: \NST\NeoGrub.mbr   *It seems that none of the paths seen above are pointing to my dev/sdc2/ partition which would be considered DISK1 on my Windows Volume manager.     EDIT - In the confusion of attempting to get a working bootmanager for Ubuntu/Windows, you will see that grub and Windows Boot manager have all been installed in numerous locations. Below are the present locations and contents of all bootmanager & Grub installations:  dev/sdb Windows7 drive  /dev/sdb1 - 512 MB fat32 partition which is currently empty  /dev/sdb2 - 110 GB ntfs partition containing Windows7 installation. This partition contains a 'Boot' folder which contains BCD files and a whole wack of langauage folders. THIS IS The FOLDER THAT WINDOWS BOOTLOADER uses.  /dev/sdb4 - 121.53 ntfs partition containing storage for media    dev/sdd - Ubuntu Drive  dev/sdd1 - 512 MB partition containing a 'EFI' folder, inside of which are two folders 'grub' and 'Ubuntu', both of which contain the exact same files (grub.cfg, grubx64.efi, MokManager.efi, shium64.efi)  dev/sdd2 - 48.83 GB ext4 partition that contains the '/' folder and Ubuntu instalation.   dev/sdd3 - 69.91 GB ntfs partition containing storage for media  what do I need to do so that the Grub shell I am being dropped into will load up Ubuntu? HOw can I get this machine to dual boot out of Grub?


Ubuntu directory permissions - Sticky bit - Prevent deletion of a file

I have a database called oss-pwds.kdb located in a folder /keepassx.  This is a password database that I use with the KeePassX software.  I want to allow all members of the "oss" group to open and modify the database, but not to inadvertently delete it.  Here is what I have:  groupadd oss chgrp oss /keepassx chown root /keepassx chown root /keepassx/oss-pwds.kdb chmod 1770 /keepassx chmod 1770 /keepassx/oss-pwds.kdb   At first, it looks like this should work.  However, if I open the database in the KeePassX software, make a change, then try to save it, a .tmp file appears in the /keepassx directory and I get an error upon saving: "File could not be saved. The file could not be removed."  How do I prevent deletion of only the oss-pwds.kdb file but allow deletion of other files in the /keepassx directory such as the .tmp file?


Error "503 Service Unavailable" for sudo apt-get update

I have this problem when I use apt-get update:  Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease                                                                       503  Service Unavailable [IP: 91.189.88.161 80] Err:2 http://ppa.launchpad.net/compiz/ppa/ubuntu bionic InRelease                                                       503  Service Unavailable [IP: 91.189.95.83 80] Err:3 http://archive.canonical.com bionic InRelease                                           503  Service Unavailable [IP: 91.189.92.150 80] Leyendo lista de paquetes... Hecho W: Fallo al obtener http://co.archive.ubuntu.com/ubuntu/dists/bionic/InRelease  503  Service Unavailable [IP: 200.35.32.3 80] W: Fallo al obtener http://co.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  503  Service Unavailable [IP: 200.35.32.3 80] W: Fallo al obtener http://co.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  503  Service Unavailable [IP: 200.35.32.3 80] W: No se han podido descargar algunos archivos de índice, se han omitido, o se han utilizado unos antiguos en su lugar.   Somebody can help me. thanks!


Creating polygon feature class from area in one not covered by another using ArcGIS Desktop?

I am working on a project doing spatial analysis at a statewide level. I am looking at a form of transportation coverage in a state, and part of my analysis involves buffers and drive time polygons. I am using a geodatabase (therefore ArcGIS) for all my work, so new features will be exported as feature classes in feature datasets. To visualize: I have said state border, and some dissolved buffer rings around some points, and they cover parts of the state. I want to create a feature class for the parts of the state these buffer rings don't cover, AKA gap areas. Is there a tool I can use or create to do this? I know I could draw them in manually in editor, but I am unsure if that's the most precise way to generate these feature classes. To me, I am thinking this operation would be like an inverted "Clip" in that I take the two layers, and instead of pulling out the clipped area, it would take everything not in the clipped area. I am using a Desktop Basic license.


Geographic Center of Earth centric Projections

This is more a question born out of curiosity than actual needs, but this seems like the right place for it.   Based on  I was wondering what world maps centered on the GC would look like. Has somebody played around with it and can link their results here(or even place it on wikipedia in  article)? I imagine a polar projection or a cylindrical projection with the GC as coordinate origin.


I think the  of this question was a little bit like a carpet bomb of questions, so that may have turned people off to it (to the point of almost being flagged for removal) so I'll start a new one that hopefully people can have an easier time with.  Basically, my overall interest is in understanding logname and getlogin() as it relates to audit trails. It breaks down like this:  1) My understanding is that logname and getlogin() both display the auid that would/will end up showing in the session's audit logs. Is that correct? I know auid is an immutable process attribute, but I was interested in knowing whether the two are necessarily the same or just usually the same. This would help me with writing scripts/helper programs that can make access control decisions based on the user's original identity, rather than just who they happen to be at the moment or a mutable environmental variable.  2) I still don't understand how the  of  being shown was supposed to work. If someone could explain that to me, it would be great.  My primary interest is with point #1, though.


Dashboard left hand menu overlapping next item down

Stuck with this one and wondered if someone could point me in the right direction... we updated one of our wordpress sites a couple of weeks ago and only revisited it today and noticed that the Dashboard menu down the left hand side had a bit of a bug only affecting this one site...  The menu items when rolled over with the mouse move back up into place / or if I do a refresh to another page it will sometimes sort itself out.  I've removed/uploaded wp-includes & wp-admin folders from fresh download of Wordpress 4.2.2  I've disabled all plugins  There are no inspector errors or missing scripts..  Thanks in advance.


Changing the Pro Tem moderators every X months/years

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


Need help choosing colors for info graphics

i am trying to create a info-graphics design in adobe illustrator, i divided a circle into 18 pieces  i applied gradients colors to each pieces.i tried choosing colors from info graphic images from google search, but i am not able produce good balance between the colors. no matter what i do the colors does not complement each. how do make this circle better.


Would time exist in a universe with only one elementary particle in it?

Imagine a universe infinite in all directions with only one elementary particle moving through it (impossible, but suppose). Can one define time in this universe?


RECENTLY ON THE ANDROID SITE WE GOT  WRITTEN IN ALL CAPS.  THIS WAS SURPRISING TO ME, SINCE I ASSUMED IT WOULD HAVE BEEN CAUGHT BY THE QUALITY FILTER — BESIDES BEING INDICATIVE OF OTHER POST QUALITY ISSUES, IT'S AWFUL TO LOOK AT AND REQUIRES A LARGE AMOUNT OF EDITING TO FIX (EVEN IF YOU RUN IT THROUGH TOLOWER() FIRST).  WE ALL KNOW THAT CAPS LOCK IS , BUT STILL: CAN WE BLOCK THESE QUESTIONS?    RICK  RICK  OH MAN THAT STUFF JACOB G  IS COMEDY GOLD  RIIICK     Note to editors: This post looks exactly like it is supposed to look, as an example of a question in all-caps. Please do not replace the uppercase letters with lowercase.


Homeomorphism between real projective space with an open ball removed and the Möbius band

The real projective space with an open ball removed is homeomorphic to the Moöius band How can I prove it? Can I find the homeomorphism explicitly?


Why does chmod +w not give write permission to other(o)

When I run chmod +w filename it doesn't give write permission to other, it just gives write permission to user and group.  After executing this command  chmod +w testfile.txt   running ls -l testfile.txt prints  -rw-rw-r-- 1 ravi ravi 20 Mar 10 18:09 testfile.txt   but in case of +r and +x it works properly.  I don't want to use chmod ugo+w filename.


What Stack Exchange site should be used for miscellaneous questions, if there is no site for that topic?

If some question is of some rare topic, and no Stack Exchange site has this topic, is there some special Stack Exchange site meant for such rare "Misc" questions, like misc.stackexchange.com or other.stackexchange.com? If in the future new Stack Exchange site/community is created that covers this rare question's topic then somehow popular questions can be moved from Misc to that new site. I just thought that it would be nice to have some Misc site to at least post your question somewhere for history to have a chance for it to be answered, instead of not having such site and losing your question. It would also be nice for promoting the Stack Exchange platform and tools for those who prefers them, if such questions goes here instead of /.


Hello i'm still kind of new to java.. I get the concept of "this" when it comes to instance variables but when i use it in a constructor with no parameters i get a little confused. So my question is how does something like this work?   private double x; private double y;  public static final double EPSILON = 1e-5; public static boolean debug = false;   public Point(double x, double y){     this.x=x;     this.y=y;  // Done sets the x,y private types to the x,y type provided in the () }  public Point(){     this(0.0,0.0);  //Sets, x and y to doubles of 0.0,0.0??  }                   //How does this work?    Would my point() constructor create an origin of (0.0,0.0) by calling the point (x,y) constructor? Any clarification on this would help me out a lot!


Is one more correct than  the other?  Make sure the part is connected to the widget.   Make sure that the part is connected to the widget.


Minecraft Launcher Causing Black Screen and Laggy Cursor

When I try to launch Minecraft, I get an extremely laggy cursor, and a black window where the log in window should be. It's not the "black screen" issue that people talk about, as this is happening before I even log in. I've tried completely removing my .minecraft folder and redownloading the minecraft.exe, but neither of these worked. It's been laggy starting up the launcher on this computer for ages, but it used to work up until recently.  EDIT: My computer is more than adaquate for the game:  Intel Core i5 CPU (second gen I thinK) ATI Mobility Radeon 5650 GPU 6GB dual-channel DDR3 RAM  Only thing that's a bit slow is the HDD, at 5400 RPM.


Possessive apostrophe for words ending in "s"

"This car belongs to Tom" is also written as "This is Tom's car".  How do I write "This car belongs to Yves"?  Is it Yves', or Yves's?


I've experienced some strange noisy sound in my laptop. I can't definitely tell it's from the fan, but I think so because hdd failure sounds are different.   The laptop is Dell latitude e6410, its hard disk and its cooling fan is next to each other so I can't distinguish where the sound comes from.  Here is the sound: , sometimes it runs continuously.  It's not overheating. I've checked the temperature and it's around 50 - 60 celsius. It's maximum degree is around 100, so it is not the cause of heat.  I also tried disassembling the fan but it has two plastic weldings which I can't open. I tried using blower and using a brush to clean out dust but the sound continues.  Is it definitely the fan? then should I replace it or can I try something else?  Thank you in advance!


Which application does the vi command open?

When you type vi in the terminal, the following output is shown  ~                             VIM - Vi IMproved                                 ~                                                                              ~                               version 7.3.547                                  ~                           by Bram Moolenaar et al.                             ~           Modified by pkg-vim-maintainers@lists.alioth.debian.org              ~                 Vim is open source and freely distributable                    ~                                                                                ~                        Help poor children in Uganda!                                                                                So according to this, vi must be launching VIm. But when you type  vim it gives  aditya@aditya-desktop:~$ vim The program 'vim' can be found in the following packages:  * vim  * vim-gnome  * vim-tiny  * vim-athena  * vim-gtk  * vim-nox Try: sudo apt-get install <selected package>   This shows that vim is not installed. Notably man vi and man vim launch the same man pages.  So what does the vi command actually launch?


is periodically updating the last changed timestamp of a document without changing the content black hat SEO?

What if we changed the updated time on some webpages without change the content?  What would be the impact in the search results?  Would it be black hat SEO if the date were updated on daily basis?


Which close reason should I use to close "typo" questions now?

A while back I posted my opinion that , which had a lot of support so I'm going on the assumption that it's still generally correct.  For example this question:   Solved by changing boostrap.css to bootstrap.css. "Boostrap" of course being a mere typo. Useful to no one but the OP.  I miss "too localized" because it was perfect for typos, but I accept that it is gone.   Under the current system, which close reason (if any) apply to this and other such questions? Am I supposed to type in a custom reason?  , does this seem reasonable, or confusing?     This question appears to be off-topic because it is... A typo.   Is there something else that would make more sense?


How to copy a file to a directory in DOS, and create directories if necessary?

How can I copy a file using DOS commands into a directory structure that may not yet exist? I need to be able to force the creation of the directory path to the target file location if that location doesn't already exist.  For example, there is already a file.txt in this location:  C:\file.txt   And I want to copy it to  C:\example\new\path\to\copy\of\file\file.txt   but at this time  C:\example\   and all the subdirectories may or may not yet exist.  Basically, I am looking for a "copy and create the target path if necessary" command. What would you recommend is the best way to achieve this?


When I want to move sth or to scale an object, I can't move it just a little bit, it jumps to certain positions and I don't know why...


How do you get Dash to search Google results?


Why is there no option to download 32 bit or 64 bit for Ubuntu?

You go to official site to download ISO image. There is only one "Download" button. No option to choose between 32 or 64 bit. My PC is 64 bit, I don't want to download 32 bit version.


In eevee, shadows are clipped by camera distance

As shown in the gif, the shadow in eevee is clipped by the camera distance. The same is true for F12 rendering. Where are the options to improve this issue?


I'm pretty sure this is a simple question in regards to formatting but here's what I want to accomplish:  I want to output data onto the screen using cout.  I want to output this in the form of a table format.  What I mean by this is the columns and rows should be properly aligned.  Example:  Test                 1 Test2                2 Iamlongverylongblah  2 Etc                  1   I am only concerned with the individual line so my line to output now (not working) is  cout << var1 << "\t\t" << var2 << endl;  Which gives me something like:  Test                 1 Test2                  2 Iamlongverylongblah         2 Etc                  1


Why does Google show sitelinks for our brand with an "s" at the end, but not when it isn't plural?

The name of our company is G2 Builders - What is happening is that if you go to google and type in "G2 Builder" with no "s" at the end, our website has sitelinks.   When you type in our name with the "s" G2 Builders, we do not get sitelinks. My question is, does anyone know how I can fix this?


difference between an engine and a library

I'd like to know the difference between a library and an engine. I've searched some information and if I'm not wrong, an engine gives you more options and makes work easier than a library.   An engine can help you for example handling user input or handling collisions but I don't know how. I mean I've been using SFML and it has a function that detects collision between two rectangles. You can handle user input too.   How does an engine work? In what ways handling collisions for example is easier with an engine than with a library?


If $1 = c . \int_{- \infty}^{\infty} e^{-x^2}dx$ , then what is c?

I basically wonder if $\displaystyle \int_{- \infty}^{\infty} e^{-x^2}dx$ is convergent or divergent, and if convergent, what is it equal to?


I had open my lens of Canon EOS m50 while I am on a ferry to a local island near by. Once I reach home I saw few spots on sensor which doesn't look like dust. I used swabs and cleaned the sensor it become clean but even if I took pictures on high aparture value like f20 and above I can see light spots still exist and which I am not able to remove using wet cleaning. Any idea what should I do now?    So here I have 2 images. First one taken on f30 of my white kitchen wall and same image I did a dehaze in light room. After dehaze the dots are visible. Image taken on f32  Image taken on f14


how to put a VALUE between mysqli_real_escape_string

I want to store some download counts with the name of the downloadfile in a database.  This is working fine:  $filename = $_GET['file']; // in combination with mysqli_query($link, "INSERT INTO download_manager (filename,downloads)                           VALUES ('$filename',1) ON DUPLICATE KEY UPDATE downloads = downloads+ 1;");   Now i want to escape the $_GET with mysqli_real_escape_string  When i do it like this, the script is not working anymore:  $filename = mysqli_real_escape_string($_GET['file']); // in combination with mysqli_query($link, "INSERT INTO download_manager (filename,downloads)                           VALUES ('$filename',1) ON DUPLICATE KEY UPDATE downloads = downloads+ 1;");   How can i use the mysqli_real_escape_string in this example on the right way?


How to log on MySQL on CentOS 6.3 using root account from the domain and not localhost?

I don't know if I'll make the issue clear, but I've installed MySQL on CentOS 6.3 using root account on a specific domain (f.ex. root@mydomain), but when I try to log on to it I'm being asked for password to root@localhost account, which I do not have access to. How can I log on to MySQL installed on 'mydomain' and not to 'localhost'?   I've tried editing my.cnf using bind-address='domain_ip', but it didn't help, it still wanted localhost password.


Kubuntu 14.04 login fails after lightdm/ xdm/ lightdm swap

I am running kubuntu 14.04.   Recently as part of a python development project changed the DM to xdm. Since then I have not been able to get the system to let me back past the login page.  To be precise, if I enter my password it just blacks the screen then presents me with the Login page again.  I can raise a command line and have tried running dpkg-reconfigure lightdm, which seems to have worked, but to no avail.   I have also run apt-get autoremove, apt-get clean etc in order to try and clean the system of any broken packages, redundancies etc. that might be causing problems.  I tried:   sudo dpkg-reconfigure lightdm  sudo dpkg-reconfigure -a   and restarted...same thing  If I try to start the system and then ESC during startup the system seems to be looping over the same block of instructions.   I  have looked at comments for earlier versions of k/Ubuntu but can't find anything that sorts this. Hence the new question.  Suggestions, please? ls -al $HOME/{.ICE,.X}authority  gives  -rw------- 1 peter peter 29018 SEp 26 12:18 /home/peter/.ICEauthority  -rw-rw-r-- 1 peter root 155 Sep 26 12:18 /home/peter/.Xauthority   (After the changes described below)


I want one word that means Date and Time. For example in "the date and time of the event will be announced later" I want to use single word instead of "date and time"


Methods to saving system configuration files

Normally user-specific config files would be dotfiles in the home-directory. If the user wanted a little more, they could put it in a dotfiles folder and symlink the files or use gnu stow to handle that.  Is there anything like that for config files that are not in the home folder? For example, if I wanted to track /etc/sudoers in a git repo. Is there another way to do that outside of copying that file to my dotfiles directory, tracking it, and copying it when I make changes?


iCloud Disassociation for a Mac Computer

I had a Mid-2012 MacBook Pro that recently stopped booting. I narrowed this down based on troubleshooting of the boot device to likely the SATA/hard drive connector/cable no longer working for whatever reason.  I have decided to sell the system. I'd like to know if I remove the hard drive (or in this case, an after-market SSD I've installed) from the system, will there be any other data (i.e. iCloud data) stored on the system on any other chip that I can reset in any way? I plan to reset the SMC/NVRAM before I sell the system off of to someone else.  Additionally, if I remove the hard drive, is the system still associated to iCloud (specifically Find My Mac) or any other service? If so, how do I disassociate it? The system will no longer boot even if I put in my boot device.  Thanks!


I know the series, $4-{4\over3}+{4\over5}-{4\over7}...$ converges to $\pi$ but I have heard many people say that while this is a classic example, there are series that converge much faster.  Does anyone know of any?


Not enough disk space: remove first n lines of text file without copying the file

I want to remove the first $rmv lines of a huge text file called $filename. This text file is so big that I cannot fit two copies of it on my hard drive.   The following leaves me with a blank file called $filename:  tail -n +$rmv "$filename" > "$filename"    The following cannot execute because I do not have the storage space to fit both $filename and $filename.tmp:  tail -n +$rmv "$filename" > "$filename.tmp" && mv "$filename.tmp" "$filename"   If it matters, I'm using Mac OS X El Capitan.


How do i create gradient between two materials in one mesh? (second screenchot was edited in PS)


How do I re-order the views? E.g. "To be invoiced" to appear where "Current invoice" appears


I need advise on if I should rebuild my index

I have a SQL Server 2008 Standard server on full mirror (safety). I reorganize all indexes weekly. I am looking into rebuilding a few indexes to improve performance. I ran DBCC SHOWCONTIG on my largest, most accessed table and got the following results.  DBCC SHOWCONTIG scanning 'MYTABLE' table... Table: 'MYTABLE' (12345678); index ID: 1, database ID: 7 TABLE level scan performed. - Pages Scanned................................: 738663 - Extents Scanned..............................: 92661 - Extent Switches..............................: 92720 - Avg. Pages per Extent........................: 8.0 - Scan Density [Best Count:Actual Count].......: 99.58% [92333:92721] - Logical Scan Fragmentation ..................: 0.35% - Extent Scan Fragmentation ...................: 41.58% - Avg. Bytes Free per Page.....................: 467.9 - Avg. Page Density (full).....................: 94.22%   Would rebuilding the index make sense on this table? Would there be any benefits to doing so? I ask because this entails downtime and I am not sure if it is necessary. Plus, the extra log size due to the index could effect the mirror.


Particle in a box momentum wavefunction?

Why is the momentum wave function of a particle in a box equal to this expression?  Surely the Fourier transform of a sine wave amounts to two dirac deltas either side of zero. What is the cause of this additional complexity?