Which Jedi have served in the Rebellion?

Besides Luke Skywalker, Kanan Jarrus, Ezra Bridger and Ahsoka Tano, which other Jedi, regardless of whether they were survivors of Order 66 or became one at a later point, served within the Rebellion's ranks during the Galactic Civil War?  Looking for both canon and Legends versions.  Edit: ok, just to clarify what would qualify as a Jedi for the answer. Loosely speaking, anyone who follow the ideals of the Jedi philosophy - a practitioner in the ways of the Force, a protector of the galaxy, and an opposer to the dark side - would count.   Only trained Force users, not aligned with the dark side, would count. They need to be able to consciously control their use of the Force to aid the Rebellion. This excludes Leia Members of the Jedi Order of the late Republic would obviously count. However, they need to have survived Order 66 (duh), did not renounce the Jedi ways nor succumbed to the dark side, and become a member of the Rebellion. This excludes the Grand Inquisitor nor Darth Vader, but includes Kanan Jarrus and, in Legends, Rahm Kota. Those who are killed in action after joining the Rebellion also count. However, you don't need to be an official member of the order to be counted. You could be opposed to what was wrong with the late order, but as long as you follow the ideals defined above, and identify with them, you are a Jedi at heart by the count of this question. This counts Ahsoka Tano, Luke Skywalker and Ezra Bridger among its number. They aren't in the old Jedi Order's roster, but they believe in what the Jedi are meant to be, and follow its ways in that regard. Galen Marek in Legends, when he genuinely turned to the ways of the light, even though he was still a user of dark side powers, would be one. It's the thought that counts.   So loosely speaking, that means members of the Rebellion who are trained Force sensitives and genuine good guys.


Do I need any special license to use Ubuntu in business? I know it's free for home users, but I couldn't find a definitive answer on whether I can use it for business without any special license.


(strong) induction proof:$\left(a+\sqrt{b}\right)^n+\left(a-\sqrt{b}\right)^n=2k,a,b,k\in\mathbb N, a>b$

In the very beginning, I'm going to refer to an answer by @BillDubuque: ,  that motivated me to generalize my problem.  Instead of proving $\left(3+\sqrt{5}\right)^n+\left(3-\sqrt{5}\right)^n=2k,k\in\mathbb N$  I wanted to prove:     $\left(a+\sqrt{b}\right)^n+\left(a-\sqrt{b}\right)^n=2k,a,b,k\in\mathbb  N, a>b$.   I haven't learned about groups yet. We have only mentioned them once or twice, so I wanted to stick to the given strong induction problem in a more abstract degree.  $(1)$ base case: $\tau(1)$ $$2a\in 2\mathbb N$$ $(2)$ assumption:  Let the statement  $$\left(a+\sqrt{b}\right)^n+\left(a-\sqrt{b}\right)^n=2k,k\in\mathbb N$$  hold for some $\{1,\ldots,n\}$.  $(3)$ step: $\tau(n+1)$  \begin{equation}\left(a+\sqrt{b}\right)^{n+1}+\left(a-\sqrt{b}\right)^{n+1}=\left(a+\sqrt{b}\right)^n(a+\sqrt{b})+\left(a-\sqrt{b}\right)^n(a-\sqrt{b})\\a\underbrace{\left(\left(a+\sqrt{b}\right)^n+\left(a-\sqrt{b}\right)^n\right)}_{\in 2\mathbb N}+\sqrt{b}\left(\left(a+\sqrt{b}\right)^n-\left(a-\sqrt{b}\right)^n\right)\end{equation}  \begin{equation}\sqrt{b}\left(\left(a+\sqrt{b}\right)^n-\left(a-\sqrt{b}\right)^n\right)=2b\sum_{i=0}^{n-1}\left(a+\sqrt{b}\right)^{n-1-i}\left(a-\sqrt{b}\right)^i\\=2b\sum_{i=0}^{\left\lceil\frac{n}{2}\right\rceil\\}\underbrace{\left(\left(a+\sqrt{n}\right)^{n-1-2i}+\left(a-\sqrt{n}\right)^{n-1-2i}\right)}_{\in 2\mathbb N}(a^2-b)^i\end{equation}  Therefore, $\left(a+\sqrt{b}\right)^{n+1}\left(a-\sqrt{b}\right)^{n+1}\in 2\mathbb N$ and so is $\left(a+\sqrt{b}\right)^n+\left(a-\sqrt{b}\right)^n$.  Is this correct?


Creating new vector which is "inverse" of existing vector (e.g. water surrounding island) in QGIS

I want to create a new vector layer which represents the surrounding water of a particular island I am working with in QGIS. Is it possible to create a water shape based on an "inverted selection" or the empty areas of an existing vector layer? As @jdavid05 mentions, I do need to create another vector. The question is still a duplicate, though, as I think the following method here applies:


I've be using a combination of "painting" apps on my iPad to create digital "paintings" out of my photos. I'd like to know what the digital specifications of both the initial photo AND the painting should be in order to print them on relatively large canvases (perhaps something around 24 x 36" or larger.)  I was told that the apps on the iPad cause a loss of resolution in the final product but I would like to sell my images to catalogs and want them to be done properly. I now shoot with a 24 MP DSLR but a lot of my photos were shot on a 10 MP Nikon D80, I think at the finest resolution possible. Would need to double check that.


Prove that for every integer n>=2:  We have the summation of   $$ \frac{1}{i(i-1)}=1-\frac{1}{n} $$  I tried the algebra with this proof, but couldn't get it. I know that you split the i-1 and the i up but I am stuck from there.


Former MD/PhD student looking to apply again to MD or MD/PhD

I am a nontraditional applicant for MD or MD/PhD programs and wanted to ask questions about my application here.  I spent six years at another MD/PhD program. I have various publications at the top journals (Cell, Science, Nature). I had a mental health crisis that resulted in some abnormal behavior. It led to me withdrawing from that MD/PhD program, but I have spent two years recovering.  I maintain a strong interest in academic medicine and I am ready to take another go at it.  How might my application be processed differently? How successful could an applicant like myself be? Do you have advice on how I can present myself in the best manner?  Thanks very much for your time.


When i open bluetooh menu from menu bar I don't have options for turning bluetooth off/on.    And in system preferences->bluetooth the button for turning off bluetooth is grayed out.    I have already tried resetting SMC and also resseting bluetooth module, but nothing have worked.


Currently, users can get stuck in a permanent flag hellban from which there is no recovery.     I've asked around before and it doesn't look like recovery is possible. To recover, you'd need to gain flag weight, and to gain flag weight you need someone to handle your flags. Since your flags now go into the void, you can't get any of them marked helpful via any means. – Adam Lear♦    Users can enter this hellban even if they have many more helpful flags than declined flags. Subsequently, their future flags are never reviewed, despite the likelihood of being helpful.  I suggest allowing users to recover from this ban in the following way:   User must have more helpful flags than declined flags (perhaps somewhere in the 1.5:1 to 3:1 range?) Hellban flags are tracked silently. If another user flags the same post (and that flag is marked helpful), or if the post is deleted, the flag counts as "helpful" (not actually marked helpful until the user is unbanned). Once the user reaches a certain threshold (perhaps related to measurments that trip the hellban) of "helpful" flags, and at least 2/3 of their hellbanned flags are "helpful", the ban ends.   This allows good users who get hellbanned because of a bad streak to come back from it.


C program fails get a handle to floppy drive

I have a Windows 7 VM with floppy drive (A:) configured. I am trying to read a boot sector of floppy drive into structure. However, every time I run this program, it fails to find the floppy drive. I can confirm that it's accessible.  Code:  #include "stdafx.h" #include<Windows.h> #include<stdio.h> #include<conio.h> #include<WinBase.h>  #pragma pack(1)  struct boot {     BYTE jump[3];        char bsOemName[8];     WORD bytesperSector;         BYTE sectorpercluster;     WORD sectorsreservedarea;     BYTE copiesFAT;     WORD maxrootdirentries;     WORD totalSectors;     BYTE mediaDescriptor;     WORD sectorsperFAT;     WORD sectorsperTrack;     WORD sides;     WORD hiddenSectors;     char reserve[480];   };  void ReadSector(char *src, int ss, int num, void* buff);  void main() {     struct boot b;     ReadSector("\\\\.\\A:", 0, 1, &b);        printf("\nBoot sector Name: %s\n", b.bsOemName);      printf("Bytes per sector: %d\n", b.bytesperSector);     printf("Sectors per Cluster: %d\n", b.sectorpercluster);     printf("Total Sectors: %d\n", b.totalSectors); }  void ReadSector(char *src, int ss, int num, void* buff) {     HANDLE h;       //HANDLE is a typedef of void *HANDLE     unsigned int br;     h = CreateFile(src, GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);     DWORD dw = GetLastError();     printf("\nLast Error: %d", dw);     if (h != NULL)     {         printf("\nError reading floppy disk '%s'", src);         printf("\nReturn value for handle = %d", h);      }         else     {         printf("\nSuccess..");     }      SetFilePointer(h, (ss * 512), NULL,FILE_BEGIN );     ReadFile(h, buff, num, &br, NULL);     CloseHandle(h); }   Output/Error:   C:\Users\IEUser\Desktop>Hardware.exe  Last Error: 2 Error reading floppy disk '\\.\A:' Return value for handle = -1 Boot sector Name: Bytes per sector: 14336 Sectors per Cluster: 248 Total Sectors: 0     The error code returned from system is 2: The system cannot find the file specified.   As it fails to open floppy drive, structure variables hold garbage values.  Can someone please help?


Options to double image dimensions of artwork photo?

I have some high-quality RAW files of artwork that I've processed with some cropping, contrast adjustment, etc. I'd like them to be printed on metal at about 2'x3', which is about twice the size I get when the ppi is set to 240.  I've been looking at various options. I saw a  - it was a few years old, but it was the best I could find - which suggested that something called SmartEdge, then still in development, was the hands-down the best algorithm out there.  The test results appeared superior to Genuine Fractals, which is (or was) a paid service.  Does anyone know about these? Whether they can be brought into Adobe programs or only used via stand-alone software? But most importantly, what is the most effective algorithm?


The WineHQ PPA does not have a Release file

$ sudo apt-get update  Ign:1 http://mirrors.evowise.com/linuxmint/packages ulyana InRelease           Ign:7 https://dl.winehq.org/wine-builds/ubu... focal InRelease                                     Err:11 https://dl.winehq.org/wine-builds/ubu... focal Release                     404  Not Found [IP: 151.101.158.217 443] Get:12 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]        Get:21 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [1,972 B] Reading package lists... Done                                                   E: The repository 'https://dl.winehq.org/wine-builds/ubu... focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list.d/additional-repositories.list:2 W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt


How to find two inequivalent ,but weakly equivalent bundles?

I want to know if I can have an inequivalent but weakly equivalent bundles over the Torus, i.e. if we can find explicitly an example of a bundle map $(\overline{f},f)$ where we require that $\overline{f}$ is an isomorphism from one fibre to another and $f$ an homeomorphism from the torus to the torus but such that $f$ is not the identity map (if this happens we will have an equivalence).        Notes    This restlessness is taken from Spivak's A comprehensive introduction to differential geometry,third edition,chapter 3.  I'm a beginner here so I don't know anything about cohomology, fancy differential geometry or that stuff thanks for your support.   Definition       A weak equivalence between two bundles over the same base space $B$ is   a bundle map $(\overline{f},f)$ where $\overline{f}$ is an isomorphism   on each fibre, and $f$ is a homeomorphism of $B$ into itself.     Example  When this curiosity came up to me it came up to me with two examples that are as follows. Imagine the Möbius strip and the infinite torus $\times \mathbb{R}$ then we mapped the Möbius strip to infinite jail cell and we project infinite torus $\times \mathbb{R}$ to only the infinite torus, this is for $E_1$ and for $E_2$ we only consider the maps the other way around.  Now, the other example was this. We pick the disjoint union of two circles and for $E_1$ we map the Möbius strip to one circle and $S^{1} \times \mathbb{R}$ to the other one, and again, for $E_2$ we only consider the maps the other way around. I cannot explain more because I am not very acquainted in this area but I can provide an image


I am stuck on factoring out everything properly. I feel like I am combining these fractions wrong or something because I always have an extra 1.  edit: edit: I am still stuck. Math isn't working out, I am making a mess with the constant edits, I will stop editing and not touch this so people can review the question. Sorry  a) Prove that P(1) is true $~$ $~$ $$\frac{1}{1*2} = \frac{1}{1+1} = \frac{1}{2}$$  Show that P(k+1) is true as well  $$\frac{1}{(k+1)(k+1+1)} = \frac{k+1}{k+1+1} - \frac{k}{k+1}$$ $~~$ $$ = \frac{k+1}{k+1+1} \frac{k+1}{k+1} - \frac{k}{k+1} \frac{k+1+1}{k+1+1}$$ $~~$ $$ = \frac{(k+1)(k+1) - k(k+1+1)}{(k+1)(k+1+1)}$$ $~~$ $$ = \frac{(k+1)(k+1) - k(k+1+1)}{(k+1)(k+1+1)}$$ $~~$ $$ = \frac{(k+1)\bigg((k+1) - k(+1)\bigg)}{(k+1)(k+1+1)}$$ $~~$  $$ = \frac{k-k+1}{k+1+1} = \frac{1}{k+1+1} \neq \frac{1}{(k+1)(k+1+1)}$$


How to manipulate images at the pixel level in C#

How do I manipulate images at the pixel level in C#?  I need to be able to read/modify each bitmap pixel RGB values separately.   A code sample would be appreciated.


Induction: $\sum_{k=0}^n \binom nk k^2 = n(1+n)2^{n-2}$

I found crazy (for me at least) induction example, in fact it just would be nice to prove. (Even have problems with starting) Any hints are highly valued: $$0^2\binom{n}{0}+1^2\binom{n}{1}+2^2\binom{n}{2}+\cdots+n^2\binom{n}{n}=n(1+n)2^{n-2} $$


I found some ready-made code to draw spheres and lines on them in , which refers to .  Bottom line is that I do not get the presented result using MiKTeX on 64-bit Windows 7, using either the LaTeX->dvi->ps->pdf chain or direct PDFLaTeX.  These are the results of the example code in the second link on my system:      Everything seems fine except the latitude and longitude lines. How can I solve this?


How to open Firefox with proxy settings via terminal?

Hi, I want to open Firefox from the terminal with SOCKS proxy setting enabled. I would like to define it in terminal while opening.   Can this be done? and obviously if it can does anyone know how?   Cant find info on this anywhere thanks


For the question , how can we add captions to each sub-figure?


I am supposed to decide whether the statement is correct or false.  If $ (\exists K>0)(\forall x,y \in \mathbb{R}) \left | f(x) - f(y) \right |\leq K\left | y-x \right |^2 $, then $ (\forall x\in\mathbb{R}) f'(x)=0 $  I thought about using substitution, however, I am not sure how to continue. Thanks!


date and time not saved in correct format while executing batch file

I have below code in my batch file   echo >"%temp%\%~n0.vbs" s=DateAdd("d",0,now) : d=weekday(s) echo>>"%temp%\%~n0.vbs" WScript.Echo year(s)^& right(100+month(s),2)^&  right(100+day(s),2) for /f %%a in ('cscript /nologo "%temp%\%~n0.vbs"') do set "mydate=%%a" set dd=%mydate:~6,2% set mm=%mydate:~4,2%  set yyyy=%mydate:~0,4%  set mytime=%time::=%  set mytime=%mytime: =0%  echo %dd%%mm%%yyyy%%mytime:~0,4%  del "%temp%\%~n0.vbs" /Q   This code works ok i run batch file manually. But this batch file is run by Jenkins while deploying code and Jenkins runs it from c:\windows\system32 So i get weiered output like tInpu0815  How to fix this?


What does * does in this code of python to get clear output?

These two codes have only one difference in them. The first one has a * in it and the second one dosen't. The first code runs properly and the second code gives this error:  TypeError: argument should be a string or a Rational instance  Code 1: The correct code.  from fractions import Fraction  fracs = [] for _ in range(int(input())):     fracs.append(Fraction(*map(int, input().split())))  print(fracs)   Code2 : The errorneous code.  from fractions import Fraction  fracs = [] for _ in range(int(input())):     fracs.append(Fraction(map(int, input().split())))  print(fracs)   I had learn python from Multiple sites like 'GeeksForGeeks' and 'Tutorial Point'. I checked and they don't tell what does this * does apart from being used as a multiplier,string-repeater and passing multiple argument.  Link to the page:   Also, searched for this in stackoverrflow's previously asked question but it doesn't give any satisfying result.  Thanks in advance.


How to stop Postgres from auto update on Ubuntu?

I was using Postgres 9.5.6 for my personal project and today when I logged in to Postgres, the version was 9.5.8 which also caused an auto restart.  I would like to know how to stop a package (Postgres specifically) from auto updating itself on Ubuntu.


Do I need to use the commas in the following sentence?     John's youngest brother, Jim, arrived at noon.


How could I prove whether the infinite series $n!/n^n$ converges or diverges?

How would you go about proving the infinite series $\frac{n!}{n^n}$ converges or diverges?


1 A, 2 A, 3 A automatically becoming 1:00 AM, 2:00 AM, 3:00 AM in Excel 2010

I use MS Office 2010. While using Excel, whenever I type 1 A, 2 A, 3 A up to 12 A and move to next cell by hitting Tab or Enter key it automatically becomes 1:00 AM, 2:00 AM.....12:00 AM. This problem is not there when I type 13 A, it is only up to 12 A.  The same problem is there when I type 1 P, 2 P up to 12 P. It becomes 1:00 PM, 2:00 PM.......12:00 PM. There is no problem for numbers larger than 12.  Why this happens ? How can I stop this ?


Would a sensory impaired person become a sensory impaired zombie in The Walking Dead?

In The Walking Dead universe, would a sensory impaired person become a sensory impaired zombie, or would their dead/damaged nerves become as functional as a "healthy" zombie's nervous system?


I seperated the one cylinder to two parts for texturing  (The reason why is it separated, ı don't have idea "how can ı different texturing on the one part?")  Now,I want combine the different two parts like in the beginning(like one cylinder)   Thank you for helps :)


How do i find out where email came from?

How can I find out who the originator of the email was or their location? I received a personal offensive email and I want to track who it came from?


Decrease length of underscore character in normal text (gender_gap)

I use the underscore character _ in normal text mode (not typewriter). However, it is quite long. How can I decrease its length so that it is shorter?  I followed the  using this:  \documentclass[oneside]{scrbook}  % (1) choose a font that is available as T1 \usepackage{lmodern}  % (2) specify encoding \usepackage[T1]{fontenc}  % (3) load symbol definitions \usepackage{textcomp}  \begin{document} Forscher\_innen, Protagonist\_innen, etc. \end{document}   However the outcome looks like this then:    If the underscore was a bit shorter, everything would be fine. I would rather not like to solve this by inserting a \rule as I would still be able to search the resulting PDF file for a string like Forscher_innen.  The background is that I use the so called  (german wikipedia), i.e. underscores within normal text.


Inserting new Text Element into MXD using ArcPy?

I'm using Desktop 10.2 and I tried with this script to add new text element "road 90"  to a lot of mxd's, but Something wrong with the code:  import arcpy from arcpy import env    env.workspace = r"F:\Projects\Nadav\road90\gis" for mxdname in arcpy.ListFiles("*.mxd"):     print mxdname     mxd = arcpy.mapping.MapDocument(r"F:\Projects\Nadav\road90\gis\\" + mxdname)     for TextElement in arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT"):         TextElementName = "road 90"         if TextElementName == "TextElementName":             true             print 'text'     mxd.save() del mxd


Mechanics of a chain climbing out of a jar

I’m not sure if this has a name for it, but if it does please edit it in. I first saw this in high school. The physics teacher, Mr. Wilde (who lived up to his name) gave us a demonstration of Newton’s first law. He had a straight mouthed jar with a long bead chain in it. “Objects in motion want to stay in motion. Here the chain must go up in order to get out of the jar. It’ll want to continue to go up until gravity wins out.” Is more or less what he said. Years later I bought a brass bead chain and had done this very same demonstration several times.  What I have noticed is that the higher it has to fall, the higher the chain climbs. This of course makes sense, there’s more potential energy. Even later, I got a chance to record the chain with a high speed camera and view the lab demonstration’s larger and heavier bead chain*. Here it was noticed that mass affects the height as to which the chain climbs. It was suspected at first that a heavier chain would climb just the same or higher, but it was the exact opposite – it barely climbed at all.  shows the heavier chain held at a higher elevation than the previous video. Only when we did it in a four story stairwell did it climb into the air (in retrospect, we shouldn’t’ve done that when classes were changing). What I want to know is if there has been any work in describing this demonstration and if it can explain how high the chain will climb based on how high it can fall (and if it takes mass into account). * will link later, Youtube took them down moments after uploading for vague reasons


I was on the App Store, and accidentally started downloading macOS Sierra. I have no desire to download this, so I want to cancel the download, but I can't figure out how.  From what I have searched, you should go to the purchased section of the App Store, and cancel the download, but macOS doesn't show there:    What should I do?  The answers to  do not help me because:   The ~/Library/Application Support/AppStore folder does not exist. Holding the alt key and clicking the 'x' button does nothing. Running defaults write com.apple.appstore ShowDebugMenu -bool true does nothing.


Using Lagrange multipliers to find volume of a cone

Using the method of Lagrange multipliers (or otherwise) find the maximum possible volume of a (right circular) cone which can be inscribed in a sphere of radius a.


Expiration date for block cheese (mozzarella, Monterey Jack)

How long after the expiration date is block cheese (mozzarella, Monterey Jack) safe to eat IF it has been kept refrigerated AND has never been opened? They LOOK as fresh as the day I bought them, about 6 months ago. Thank you.


Are idempotent matrices always diagonalizable?

How to prove that any idempotent matrix is diagonalizable?


Why doesn't 'sudo bash && cd desktop' cd in to the desktop folder?

I have a folder with chmod 000 permissions on it with a lot of different stuff in, the way I get in is a start bash in sudo by running sudo bash.  Why can't I do &&? I want to cd into the directory with one command like this:  sudo bash && cd desktop   When I run this, I am still in ~ which is the default directory.  I have to run this instead  sudo bash cd desktop   Also, the desktop is not the folder, its a subfolder of desktop, but it doesn't matter. It's the same thing anyways.


How can I show or hide boot messages when Ubuntu starts?

Is there a way to easily turn on/off showing the boot messages (loading the services) when Ubuntu starts? Is it something in Grub2?  I am running 10.04.


For $a,b \in \mathbb{R}$ with $a<b$, find an explicit bijection of $A=\{x: a < x < b\}$ onto $B=\{y: 0<y<1 \}$  Can someone please help? I don't understand what is meant by 'explicit'. Would sinx, cosx or tanx classify?


Get notified of up/down votes after 200 daily limit is reached

I recently hit the max daily rep (200) for providing an  on the English Stack Exchange site.  Even though I am a person of great modesty and humbleness, cough-cough, I feel that it would be nice to know when my answer receives an upvote.  Is this possible?  Is this already occurring and I am missing something obvious?


How to identify in googlemaps with below data


Why get() method return null value in Hibernate?

Hibernate Load() method throw exception if id not found and get() method return null . what actual implementation to return null value for get() method?


I enter this command in PuTTY:  sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin   But it returns:  sudo: unable to resolve host mysite.com   Any suggestions on how I can fix this?


PS4 controller won't connect even on safe mode

My controller just blinks white once and doesn't connect ): even when its plugged in..   I tried:   2 different controllers a different USB cable turned off the ps4 and tried turning it on with the controller resetting it with the button in the back and the share/psn button tried connecting with it through safe-mode


Non-linear modelling with several variables including a categorical variable

I am trying to model some data regarding a predator prey interaction experiment (n=26). Predation rate is my response variable and I have 4 explanatory variables: predator density (1,2,3,4 5), predator size, prey density (5,10,15,20,25,30) and prey type (3 categories). I started with several linear models (GLM) and found (as expected) that prey and predator density were non-linearly related to predation rates. If I use a log transformation on these variables I get really nice curves and an adjusted $R^{2}$ of 0.82, but it is not really the right approach for modelling non-linear relationships.  model <-glm(rates ~ log(pred) + log (prey) + type)   Therefore I switched to non-linear least square regression (nls). I have several predator-prey models based on existing ecological literature e.g.:   ### Holling's type II functional response  model1 <- nls(rates ~ (a * prey)/(1 + b * prey), start = list(a = 0.27,b = 0.13), trace = TRUE)  ### Beddington-DeAngelis functional response  model2 <- nls(rates ~ (a*prey)/(1+ (b * prey) + c * (pred -1 )), start = list(a=0.22451, b=-0.18938, c=1.06941), trace=TRUE, subset=I1)    These models work perfectly, but now I want to add prey type as well. In the linear models prey type was the most important variable so I don't want to leave it out. I understand that you can't add categorical variables in nls, so I thought I try a generalized additive model (GAM).  The problem with the gam models is that the smoothers (both spline and loess) don't work on both variables because there are only a very restricted number of values for prey density and predator density. I can manage to get a model with a single variable smoothed using loess. But for two variables it is simply not working. The spline function does not work at all because I have so few values (5) for my variables (see model 4).  model3 <- gam(rates~ lo(pred, span=0.9)+prey) ## this one is actually working but does not include a smoother for prey.  model4 <- gam(rates~ s(pred)+prey) ## this one gives problems:  A term has fewer unique covariate combinations than specified maximum degrees of freedom   My question is: are there any other possibilities to model data with 2 non-linear related variables in which I can also include a categorical variable. I would prefer to use nls (model2) with for example different intercepts for each category but I'm not sure how to get this sorted, if it is possible at all. The dataset is too small to split it up into the three categories, moreover, one of the categories only contains 5 data points.


Duplicate search results are disappointing, can we fix this?

On the Android site, I wanted to close a question as a duplicate of another I was familiar with.  In the close dialog, I typed where can i find stock or custom roms for my android device, expecting to find .  Instead, it was 9th in the list.  All of the results above it were closed as duplicates of it, and the highest score any had was 7 (as opposed to 69 for the one I wanted).  Regular search results from the bar at the top of the site return it first, as one would expect.  So I have a few questions:   Why does the dupe search behave differently if it's not better for its intended task?  This is the most egregious case I've seen, but I can't recall a time when I wasn't frustrated with the results. Why does the duplicate search even show closed questions?  At best, you're creating an annoying chain; at worst, you're just screwing the asker over. If a question has lots of duplicates pointing to it, ?  Apparently . Honestly, how can searching the exact title not make it the first result?


Bash terminal seems to not have colors for certain types of files, such as docx, pdf...  Is it possible to add colors for these in the output of ls, or no?


Manual and Shutter Priority Mode Problem

I am using Nikon D5300 with AF-P NIKKOR 18-55mm kit lens. When i try to take shot from manual and shutter priority model, the camera produce half shutte release sound and the image gets all while and blurry. How to Fix this? Other all modes are works perfectly fine.


If the laws of random variables weakly converge to a point mass at $c$, then the random variables converge in probability to $c$.

This is question 10.3.1 from Rosenthal's First Look at Rigorous Probability.  Suppose $\mathcal{L}(X_n) \Rightarrow \delta_c$ for some $c \in \mathbb{R}$. Prove that $\{X_n\}$ converges to $c$ in probability.  Here $\mathcal{L}(X_n)$ refers to the distribution of $X_n$.  Is the following proof correct?  Is a simpler proof available?  Is there a simple proof using Skorohod's theorem?  I attempted to prove the contrapositive. Suppose $X_n \not \to c$ in probability.  This means that there is an $\varepsilon > 0$ so that for all $N$, there exists an $m > N$ such that  \begin{equation}   P(|X_m - c| \geq \varepsilon) > \eta, \text{ for some $\eta > 0$}. \end{equation}  Consider  \begin{equation}   B := \{x \in \mathbb{R} : |x - c| \leq \varepsilon\} \in \mathcal{B} \text{ the Borel sets on $\mathbb{R}$}. \end{equation}  Then $B^c \in \mathcal{B}$ and denoting the distribution of $X_n$ as $\mu_n$ we have  \begin{equation}   \mu_n(B^c) = P(X_n \in B^c) = P(|X_n - c| \geq \varepsilon) > \eta. \end{equation}  For all $N$, there exists an $m > N$ such that the cumulative distribution function of $X_m$ is not the same as the cumulative distribution function of $\delta_c$; in particular it's mass changes somewhere at least $\varepsilon$ distance from $c$. Finally because $\delta_c(\{x\}) = 0$ for all $x \neq c$ this completes the proof.


ANOVA vs regression output: what is the difference in interpretation of main effects and interaction terms

Could someone please clarify for me the difference in how interaction and main effects terms should be interpreted in ANOVA and regression? I understand that in regression, the coefficients for the various terms are qualified i.e. if an interaction term is included, the coefficients of lower order terms are conditional effects. Therefore, the interaction term has to be removed in order to interpret the 'main effects' of lower order terms.   But what about the output from ANOVA. If interaction terms are included, can the significance values associated with the lower order terms be interpreted as 'main effects' of those terms? Or, like in the case of regression, does the interaction term have to be removed to be able to observe main effects of lower order terms?


Show that $\lim_{n\rightarrow \infty} \sum_{i=0}^{n}\frac{e^{-n}n^{i}}{i!}\rightarrow \frac{1}{2}$

$\lim_{n\rightarrow \infty} \sum_{i=0}^{n}\frac{e^{-n}n^{i}}{i!}\rightarrow \frac{1}{2}$  Tried: here suppose N is poission distribution with parameter n $\lim_{n\rightarrow \infty} \sum_{i=0}^{n} P(N\geq i) $ $= \lim_{n\rightarrow \infty} \sum_{i=0}^{n}(P(N=i)+P(N>i) + P(N<i)-P(N<i)) $ $= \lim_{n\rightarrow \infty} \sum_{i=0}^{n}(P(N= i)+P(i<N<i)-P(N<i)$ $= \lim_{n\rightarrow \infty} \sum_{i=0}^{n}(P(N= i)-P(N<i)$ ;  $(P(i<N<i)=0)$ $=\sum_{i=0}^{\infty}(P(N= i)-\sum_{i=0}^{\infty}P(N<i)$ $=1-\frac{1}{2}$ $=\frac{1}{2}$


How to get BSD FTP and Telnet back in 10.13 (High Sierra)?

There are  with not having ftp and telnet present in 10.13 now as per Apple's dictate.  Has anyone found a solid way to bring BSD ftp and telnet back to macOS vs using inetutils?


Does 32-bit Windows 7 Home Premium automatically support PAE?

Does 32-bit Windows 7 Home Premium automatically support PAE, for accessible RAM larger than 4GB? Or do I have to manually do some change?


How Do I Identify Between Legal and Pirated Version of The Softwares

I have a problem to identify whether a software (an application) comes from legal version or pirated version (crack)?  Please help me out. I would appreciate for any suggestion.  Thanks.


In the show, it isn't very clear but in the books where do the dragon eggs come from?

We know Jorah gives them to Daenerys, but where did he get them from? Why are there no more Dragons?


JavaFX: How to know on which system application is running on?

What is the code to know on which system app is running with JavaFX?  No need to read further it is just to go over the quality standards check.


Animate jquery scroll up and down on the same clicked button

I'm trying to animate the scroll when the same button is clicked but on different scroll areas like:  if the scroll is 0 or less than 300 px and the button is clicked, to animate the scroll to the specified element. if scrolling more than 300px, and the button is clicked, to animate the scroll to the top of the page.  But so far the first state is working but the second one, if the button is clicked will scroll to the top of the second section and not the top of the page (body).   $(window).scroll(function() {   if ($(this).scrollTop() > 300) {     // if scrolling more than 300px add classes active and up     $('#scroll-button').addClass('active up').removeClass('down');   } else {     // is no scroll or less than 300px, remove class active and add class down      $('#scroll-button').removeClass('active up').addClass('down');   } });  // is no scroll or less than 300px and #scroll-button.down is clicked, animate scrolling to the next element  $('.down').on('click', function() {   $('html,body').animate({       scrollTop: $("#second").offset().top     },     600);   return false; });  // if scrolling more than 300px and #scroll-button.up button is clicked, animate scroll to the top of the page $('.up').on('click', function() {   $('html, body').animate({     scrollTop: 0   }, 600);   return false; });
<button id="scroll-button" class="down" type="button">Click Me!</button>

Hi
    jsfiddle:


Elegant solution to echo to either stdout or file in bash

I have a bash application that is producing some result, and I'd like to echo the result to either stdout or to a user chosen file. Because I also echo other interactive messages going to the screen, requiring the user to explicitly use the > redirection when he wants to echo the result to a file is not an option (*), as those messages would also appear in the file.  Right now I have a solution, but it's ugly.  if [ -z $outfile ] then     echo "$outbuf"    # Write output buffer to the screen (stdout) else     echo "$outbuf" > $outfile  # Write output buffer to file fi   I tried to have the variable $outfile to be equal to stdout, to &1 and perhaps something else but it would just write to file having that name and not actually to stdout. Is there a more elegant solution?  (*) I could cheat and use stderr for that purpose, but I think it's also quite ugly, isn't it?


3.8 GPA in Major, 2 F's in non-major classes

I am an international student at a US university with a major in Physics. I am applying for PhD in astrophysics/gravitational physics fields. Until my sophomore year I was a Computer Science major with a Physics minor, but starting my junior year, I changed my major to Physics. During my sophomore year, I was suffering through home-sickness/depression and failed two of my Computer Science classes. (Later I did a computational project and won a prize at a hackathon). But I have A's in all my Physics classes (including the upper level courses), and did a summer internship at a reputed institute in Germany. I am a senior with a 3.8 GPA in Physics and 3.5 overall GPA. I am not aiming for any top universities, but mostly to lower ranked schools with good Physics programs (that are within my GPA and GRE scores). Should I still consider applying to grad schools or change my career plans? How does this affect my application?


How do someone calculate the wavelength of a receding object in space?

Is it possible to calculate the original wavelength of a star, say, which is subjected to cosmological redshift? if yes, how? Looking at the answers I think I need to edit it to be more specific. Suppose I'm observing a galaxy, I observe it's spectrum. From the doppler shift I indeed can calculate its velocity. Now say, z>6 then you can see it's not any sort of normal redshift, rather its the cosmological redshift. Now my question is, from z value I'll get the a(expansion factor ), it's distance and hence how old the radiation is, but can I calculate its original wavelength and hence its temperature. how do I calculate these??


I think you forgot something.   I think you have forgotten something.   Which is better? Is both correct?


Programmatically download (seamless) NED tiles?

I used to download 1/3 arcsecond elevation geotiffs from extract.cr.usgs.gov using web services.  But a few days ago, that stopped working, probably because USGS reorganized their site.  I tried emailing USGS and haven't heard back yet.    I could, of course, manually download states or degree tiles using the seamless server, but I want to do it programmatically so that users of my trip planner can get elevation data for their region without human intervention.  And SRTM isn't high enough resolution for bicycle/wheelchair trip planning.  Any ideas?


$f$ has an essential singularity in $z_0$. What about $1/f$?

Let $\Omega$ be a non-empty, open subset of $\mathbb C$. Consider an holomorphic function $f:\Omega \setminus \{z_0\} \to \mathbb C$ and suppose we know $z_0$ is an essential singularity of $f$.   I am wondering what we can say about the function $\tilde{f}:=\frac{1}{f}$ and its singularity in $z_0$. Do you know any theorem that answers to this question?  Actually, I can't prove anything, since I do not know the answer: I've studied some examples. For instance, if you take $f(z)=e^{\frac{1}{z}}$ then $\tilde{f}$ will still have an essential singularity, hasn't it?   On the other side, if we take $f(z)=\sin(\frac{1}{z})$ then I think that $z_0=0$ becomes a limit point of poles for $\tilde{f}$ (so we can't classify it, because it isn't an isolated singularity).   Wha do you think? Do you know any useful theorem concerning this? Thank you in advance.


Ownership of content in Community Wiki posts

The  makes use of the term "the author."  When Bob makes a post, it's obvious Bob "owns" the content, but what happens when he checks the Community Wiki button? Does it become the property of the Stack Overflow community? Even if Bob is the only one to have edited it?  Say I were to use a Community Wiki answer for something or other — say, in a book — who would I attribute the content to?


Bounty expired and not awarded to anyone

I added a bounty on  question. No one was able to answer the question correctly and also there was no answer with votes 2 or more. In such a case the bounty is not awarded to anyone and is not added in my account.   If I want answer of this question and add bounty again do I need to again spend a reputation?   Is this by design that in that case the reputation will simply vanish, can't the user reuse the same for adding bounty on that question later or on other question?


while read wholeline do   echo ${wholeline} --outputs John Jones   #grab all the lines that begin with these values   #grep '^John Jones' workfile2   --works, prints contents of workfile2 where the 1st matches   grep '^${wholeline}' workfile2  # --does not work. why? it should be the same result. done < workfile1  workfile1 contains the value John Jones at the beginning of the line in the file.  workfile2 contains the value John Jones at the beginning of the line in the file.  How can I change that second grep statement so that it works? It is picking up nothing.


Random plot based on a specific random seed

I would like to draw a set of random functions f(x) from point A to point B with a fixed random seed for each function. In other words, I would like to have functions which look the same each time I create the document, depending on their associated random seed.  So far, I have this:  \documentclass[tikz]{standalone}  % Random path from A=(0,0) to B=(1,1) with seed #1 and color #2 \newcommand\randompath[2]{% \pgfextra{\pgfmathsetseed{#1}}% \addplot[#2,domain=0:1,samples=5,smooth] { x+rand*(x)*(1-x)};% }  \begin{document}  \begin{tikzpicture}   \begin{axis}[xmin=0,xmax=1,ymin=0,ymax=1]     \randompath{1}{red}   % 1st function     \randompath{1}{blue}  % 2nd function     \randompath{1}{green} % 3rd function   \end{axis} \end{tikzpicture}  \end{document}   However, the three functions are not identical and change their shape on recreation. Therefore, the \pgfmathsetseed does not seem to work as intended?   How can I achieve it that for a chosen seed number, the drawn \randompath function looks alway the same?


How do I flatten a list of lists/nested lists?

I have python code like this:  newlist =[[52, None, None], [129, None, None], [56, None, None], [111, None, None],             [22, None, None], [33, None, None], [28, None, None], [52, None, None],             [52, None, None], [52, None, None], [129, None, None], [56, None, None],             [111, None, None], [22, None, None], [33, None, None], [28, None, None]]   I want the newlist like:  newlist =[52, None, None,129, None, None,56, None, None,111, None, None,22,            None, None,33, None, None,28, None, None,52, None, None,52, None,             None,52, None, None,129, None, None,56, None, None, 111, None,             None,22, None, None,33, None, None,28, None, None]   Is there any way to work around ?


Why are squares, square-roots, and second-order differentials, common in natural laws, but not cubes, cube-roots, and higher order effects?

Natural laws often feature squares and square roots, and second-order differential equations. Cubic laws, cube-roots, and third-order differentials are fairly rare.  (Some counter-examples: square-cube laws turn up when area/volume effects are scaled, and Stefan–Boltzmann law involves a fourth-power. Perhaps I'm just ignorant but I struggle to come up with many more.)  Is there a deep reason why higher-order effects would be rarer?


Is the official UK website for transit visa requirements safe to follow?

I have an Indian passport and a European residence permit card. I was travelling from Amsterdam to Abu Dhabi with a 2 hours transit time in London Heathrow without any change of airport. I was however denied boarding at Amsterdam for lack of UK transit visa. According to the UK website, it says I am exempt from a transit visa requirement due to the EEA residence permit. Did this happen to anyone else? Why was I denied boarding?


Heloo everyone! I have a problem with NavigationView and fragments. I created three fragments (as options in my NavigationView) when I click no matter which option there is a NullPointerException.  I have no idea what is wrong :(  Here is activity_main.xml  <FrameLayout    android:layout_width="match_parent"    android:layout_height="match_parent"    android:id="@+id/fragmentsContainer"    />     <LinearLayout    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical"    tools:context = ".MainActivity">    <android.support.design.widget.AppBarLayout       android:layout_width="match_parent"       android:layout_height="wrap_content"       android:theme="@style/AppTheme.AppBarOverlay"        >      <android.support.v7.widget.Toolbar          android:id="@+id/toolbar"          android:layout_width="match_parent"          android:layout_height="50dp"          android:popupTheme="@style/AppTheme.PopupOverlay"/>       </android.support.design.widget.AppBarLayout>    </LinearLayout>      <android.support.design.widget.NavigationView    android:layout_width="wrap_content"    android:background="#aaaaaa"    android:layout_height="match_parent"    android:fitsSystemWindows="true"    android:layout_gravity="start"    android:id="@+id/navigationView"    app:headerLayout="@layout/nav_header"    app:menu="@menu/nav_menu"    />   This is how I handle options:  navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener(){          @Override         public boolean onNavigationItemSelected(MenuItem item) {              Fragment fragment=null;             Class fragmentClass=null;              int id = item.getItemId();              switch(id){                  case R.id.aboutProgram:                     fragmentClass = ProgramFragment.class;                     break;                  case R.id.aboutAutor:                     fragmentClass = AuthorFragment.class;                     break;                 case R.id.Settings:                     fragmentClass = SettingsFragment.class;                     break;                 default:                     fragmentClass = ProgramFragment.class;             }              try{                 fragment = (Fragment) fragmentClass.newInstance();             }catch(Exception e){                 e.printStackTrace();             }              FragmentManager fragmentManager = getSupportFragmentManager();          fragmentManager.beginTransaction().replace(R.id.fragmentsContainer,fragment).commit();                drawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);             drawerLayout.closeDrawer(GravityCompat.START);             return true;         }     });


Add comment button overlapping the view more comments link

App version: 1.0.21  Device: Huawei Ascend G510 (running Android 4.1.1)  Problem: When viewing a question, if there are comments the link to click to view more comments is being overlapped by the Add comment button (picture below).  This was reported on  question and was resolved, but it is happening again.


How to stop windows from updating my Intel(R) HD Graphics 630 Driver

My current machine is a Aftershock 65xHP [Intel Core i7-7700HQ] Running on Intel(R) HD Graphics 630 on a Clevo motherboard. I also have an NVIDIA Geforce GTX 1060 graphics card.  I tried a few versions of Intel(R) HD Graphics 630 drivers and all of them prevent my Laptop LCD screen from working. (I had to connect to an external monitor via HDMI to view my screen)  only 1 version of this graphics driver worked for me.  that is - 25.20.100.6519 - dated 1/9/2019 by Intel [See image - ]  every now and then, windows update will update this driver and my LCD screen will stop working. All other solutions such as rolling back a driver will not work if I'm away from an external monitor; isn't the point of owning a laptop being able to work without an external monitor?  Can someone offer a solution to stop this update?


After much frustrating head-brick-wall contact, I've discovered this:  $ echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/steve/bin  $ sudo bash # echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin   but  $ sudo bash -c 'echo $PATH' /sbin:/bin:/usr/sbin:/usr/bin  $ sudo bash -Ec 'echo $PATH' /sbin:/bin:/usr/sbin:/usr/bin   I gather from  that the sudo path is read from /etc/sudoers — but why? Does setting $PATH in /root/.profile make any sense, or is that just a recipe for the confusion above (ie, spawning an actual shell causes a different $PATH from that used in casual sudo commands...)?  I'm using bash on RHEL 6.4.


Able to login after logout from Stack Overflow

I have been using Stack Overflow for a few months now. Yesterday, after I logged out from the Stack Overflow site, I again clicked on the Log In link, then the "Login with Stack Exchange" image, and I was able to Log in with out entering the my user credentials.  It needs to be told that I had not clicked on the "Remember my Password" option. And this has happened while using . Finally I cleared the browser cache and problem was gone.


Prove that $\mathfrak{p}$ is totally split in $L/K$ and $L'/K$ $\Rightarrow$ totaly split in $LL'/K$

Assume that $K$ be a number field and $L/K$, $L'/K$ are two separable extensions. Now let $\mathfrak{p}$ be a prime ideal of $\mathcal{O}_K$. Then if $\mathfrak{p}$ is totally split ind $L$ and $L'$, why is $\mathfrak{p}$ also a totally split in $LL'$?  My approach is to prove that every prime ideal $\mathfrak{P}$ of $L$ or $L'$ over $\mathfrak{p}$ is totally split in $LL'$, but I couldn't prove this either.


What comic book story features Jake Radic and another character in space?

This concerns a comic I read as a child. It might have been Marvel or DC. It was in colour.  It concerns two characters, one of which was called Jake Radic. They are in space and they hit something. The story then shows them tumbling and tumbling until they land on solid ground. The one of the two characters says something like "Only the dead can see the... And we're not dead. OR ARE WE?" They are then depicted with hollowed-out eye sockets and a stark, reversed colours. I am not sure what it is they were supposed to have hit, something like a cosmic reef.  I have tried typing in Jake Radic into Google but unsurprisingly, all I got were lots of Serbian names! Possibly somebody remembers this particular very scary story. I think it is from the 1960s or thereabouts.


How to force abort on "glibc detected *** free(): invalid pointer"

In Linux environment, when getting "glibc detected *** free(): invalid pointer" errors, how do I identify which line of code is causing it?  Is there a way to force an abort? I recall there being an ENV var to control this?  How to set a breakpoint in gdb for the glibc error?


What is the correct approach to implement multiplayer in a game?

I'm developing a game and it is intended to be a multiplayer game. I have experience in writing servers and clients in Java, but the game is written in C++.  The server will be written in Java for sure.   I have 3 questions:    Am I forced to write the client in C++ ?  If not, is there a way to write the client in Java as well, and somehow communicate with the game program? The game includes characters moving. Is the correct approach to calculate the positions of every dynamic object on the server and for the clients to only receive the current positions of everything from the server? The only thing the clients would send is their input(click, spell casts etc.).


Kryptonite is green....   Can the Green Lantern defend himself against Kryptonians?   Or can the ring not make something that acts sufficiently like kryptonite?


How do I install proprietary drivers for my Brother all-in-one printer/scanner/fax?

Guides on how to install drivers for a Brother all-in-one network printer are either for older devices or are rather complicated as they often involve editing or copying system files in my root directory.  Is there a newer, more convenient way to install the drivers needed?


Blocking creatures with menace and an equipment giving 'can only be blocked by one creature'

I ran into an interesting interaction tonight when I played Magic. So here's the setting:    I have a  out and the equipment known as .  Pyreheart Wolf's ability says: when this creature attacks, your creatures have to be blocked by two or more creatures this turn, the ability that we now know as menace.  Vorrack Battlehorns ability is: equipped creature has trample and can only be blocked by one creature.   I also have one other creature out.  I have the equipment equipped to said other creature. I go to attack phase. I attack with both my creatures.  My question: does the Pyreheart Wolf's ability trigger first or does the equipment's ability trigger first?


Finite number of subgroups $\Rightarrow$  finite group

I'm trying to prove that any group $G$ of infinite order has an infinite number of subgroups.  I think that if the group has an element of infinite order, then it's easy because I can take the groups generated by the powers of this element.  What if it doesn't? Every element generates a cyclic subgroup. Every element belongs to at least one cyclic subgroup (that generated by itself). So the group is the union of its cyclic subgroups. If all these are finite, we would have to have an infinite collection of subgroups anyway.  Is that correct?


I am trying to run this perl web proxy code  but I have an error saying that I have HTTP.pm is missing !  the message:  Can't locate POE/Component/Client/HTTP.pm in @INC (you may need to install the POE::Component::Client::HTTP module) (@INC contains: /home/res/workspace/.metadata/.plugins/org.epic.debug /home/res/workspace/perlone/CIDS-dev /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /home/res/workspace/perlone/CIDS-dev/webproxy.pl line 7. BEGIN failed--compilation aborted at /home/res/workspace/perlone/CIDS-dev/webproxy.pl line 7.   So, what should I install to run this code. Thanks,


Google Webmaster Tools is reporting that some URLs listed my sitemap have a high response time

In Google Webmaster Tools looking at a new clients site, I'm seeing sitemap errors that I haven't seen before with this message:     Some URLs listed in this Sitemap have a high response time. This may   indicate a problem with your server or with the content of the page.   See the following screenshot:    I submitted the sitemap again but it keeps coming back. Any Ideas what could be causing this?


My English translator capitalizes every noun. Is it correct?

I'm developing an Android/iPhone application. My translator for English localization uses a lot of capitalization. For example, in the app menu, it suggests:  |Export Data to Folder| |Prevent Screen Lock  |   I would simply use  |Export data to folder| |Prevent screen lock  |   What is the best choice?


Can a Bangladeshi enter India by air from third country?

I am from Bangladesh, and I have an Indian tourist visa, which I received from the Indian High Commission in Bangladesh. At this moment I am in Bhutan. Now I want to enter India by air. Is it possible? And will I face any problems when I come back from Kolkata to Dhaka?


What does it mean that a package is "set to manually installed?"

When packages are already installed and I run an apt-get install <package-name>, sometimes it will print a line <package-name> is set to manually installed.  What does that mean?


Sort a list of words alphabetically without using sort()

I'm trying to sort a list of words alphabetically but without using sort(). Something like this: list = ['shrek', 'shark', 'ship']  Would have to look like this: newList = ['shark', 'ship', 'shrek']


How to find the SQL statements that caused tempdb growth?

The tempdb of a server (SQL Server 2008) increases to 500GB+ several times every month. Is it possible to find out which SQL statements caused this problem? The problem is usually not caused by create table #temp...; insert into #temp... or select ... into #temp... but complex joins.  The Initial Size of some of the tempdb files is also automatically set to much bigger values every time. How to prevent it?  Sometime the cached plans prevent resizing/shrinking the files. How to find which one hold the tempdb?


Why does this "historical locked" question show up in the Questions list, by mine doesn't?

Question has a historical lock:     This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.   My question:    Historical lock:     This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.   The first question can be viewed in the questions list.  From an answer I got in this question: , it seems to imply that historical locks on questions make it so that you need a direct link to the question to view it. On , my question has altogether disappeared from the Questions list.  Here on Meta.SE, that question seems to have not.


What is the expected length of the largest run of heads if we make 1,000 flips?

Is there a way to calculate on average, the maximum amount of times we can expect a coin to land heads during 1,000 flips?  So the answer (and formula if one exists) I am looking for would be something like: during 1,000 flips we can expect a maximum run of 12 heads in a row.


How to tell if a Fibonacci number has an even or odd index

Given only $F_n$, that is the $n$th term of the Fibonacci sequence, how can you tell if $n \equiv 1 \mod 2$ or $n \equiv 0 \mod 2$?  I know you can use the Pisano period, however if  $n \equiv 1$ or $n \equiv 2$ $\mod \pi(k)$, it can never be found, where $k$ is in $\pi(k)$ (The Pisano period).  Also there is the fact that if $\sqrt{5F_n^2+ 4}$ is an integer then $n  \equiv 0 \mod 2$, but is there a faster way?  Lastly, because $F_1 = F_2 = 1$, that would have to be an exception for whatever rule/formula that would apply.


How can find an instance of class at runtime in Java?

Suppose I have a class with an annotation, e.g.:  @MyConfig class MyConfiguration {      @MyParameter     String parameter; }   If I know an instance of this class exists (for instance, one was constructed in another thread) how can I get a reference to the instance elsewhere.  I'm trying to find the instance by its @Annotation.


Obtaining the equation of circle in a 3-dimentional space.

My thinking:  To obtain the equation of a circle in a three dimentional space we need to get the intersection of a sphere and a plane. According to me this can be done by : $(equation\ of\ sphere)^2+(equation \ of \ plane)^2=0$  but to test this I don't have the adequate software. So my question is:  Am I thinking in the right way?  If not, then where I am going wrong?  If yes, then can you help me with a sample of the graph of the equation.  Thank you :)


We have a scenario where we need to restore a SQL Server 2012 backup to a SQL Server 2016 environment, drop a few files to make more room, take a backup, and restore it back to another SQL Server 2012 environment again. Using the "GENERATE SCRIPTS" task is not an option as the DB is extremely large and complicated. Basically, is there a way to retain the old compatibility mode without automatically upgrading it, while restoring, using, and backing up an older version database in a newer version server?  None of the process above is negotiable or will be elaborated upon, these are the constraints I have to work with. Thanks for any help!


How does Captain America know who killed Tony Stark’s parents?

How would Captain America know anything about any incidents by Bucky when operating as Winter Soldier?  At the end of Captain America: Civil War, after seeing the video of the Winter Soldier killing Howard Stark, Tony confronts Captain and he seems to act like he knew and didn’t want to tell Tony for obvious reasons.   Is there any canon from the comics regarding this? Seems odd that they couldn’t have had a short flashback scene of Cap interacting with Bucky and finding out these things.


How would the poisoning in the premiere work?  And later:     How did the Shadows kill Kosh? Weren't the Vorlons beings of energy? How could you kill that?   Explanation about duplicate question:  I want to point that the main question is about      Kosh dead,   being the poisoning a related question added as an afterthought. So it isnt duplicate because only the poison part had been answered.


On  we expect answers to include a full list of references on which the answer was based at the bottom of the question. There are a few ways in which to format this list and we haven't decided on a preferred format yet.  One of the ideas is to wrap the list of references in <sub> tags as it .  This looks as follows:   Neher, A. (1991). Maslow's theory of motivation: A critique. Journal of Humanistic Psycholgoy, 31, 3.  Mahmoud A. Wahba, Lawrence G. Bridwell,  (1976),   In order to place the second reference on a new line, two spaces need to be added at the end of the first reference. Using (the more logical) return breaks markdown! Adding a first return only adds a space. Everything after a second return isn't subscript anymore.   Neher, A. (1991). Maslow's theory of motivation: A critique. Journal of Humanistic Psycholgoy, 31, 3.   Mahmoud A. Wahba, Lawrence G. Bridwell,  (1976),   Is this a bug?


Windows hangs when multi-monitor setup is rearranged

I currently have 3 monitors, usually I also have 1 TV on the setup. When the TV is present, it's connected to a Yamaha A2050, which is connected to PC by HDMI. ATM Yamaha is connected to one of my monitors.  Sometimes, when I change Yamaha's input or turn off TV, or now when I change monitor input from PC (DVI-D) to Yamaha (HDMI), Windows understands that the display was disconected. Windows tries to rearrange monitors layout, that leads to a long time DWM hang and moves windows to different positions.  I believe the situation gets worsse because Yamaha display is set as main display.  I'd like Windows/DWM to stop freaking out and hanging. Whatever is making displays seem disconnected will bring them back soon enough.  Is there a way to disable this "feature"?


Is there a script or a way in linux that when I try to execute a shell script/process, if the same is running, it will prompt that same is running and will exit otherwise it will continue.


I'm trying to merge these two lines that appear periodically in a text file.  travel_ by_night_and_day   I have tried:  sed '/_\nby/_by/s' input.txt > output.txt   but, it doesn't do anything.  Do I have to escape something?  It's a text file created in ubuntu 12.04  Any suggestions?


What are the last two digits in the ordinary decimal representation of $3^{400}$

My question is to find the last two digits of $3^{400}$ and I found that the last digit is $1$ but I'm not sure about the other one. Any help would be appreciated, thank you for your time. Edit: I've found that $3^{\phi(100)} = 1 \pmod{100} ; \phi(100) = 40$ and $3^{400} = 1 \pmod{100}$ So the last digit of $3^{400}$ is $1$


Change the style of cleveref references to sections of other chapters

When I use cleveref-based cross-references to, say, sections in another chapter, these references just print Section n. It's then difficult to distinguish references to a section of another chapter from references to a section of the present chapter. I'm using the amsbook documentclass, as @Mico points out is important to mention.   I presume there's a good pre-built solution to this issue---what is the existing pre-built, pre-packaged solution? Again, this is I assume a well-trod issue, so I'd love to know the generally accepted solution rather than rolling my own.  I'd certainly rather avoid having to manually write \cref{sec:section} of \cref{chap:chapter} in the relevant places.   I'd also rather avoid having to change the style to display as Section n.m everywhere, or further as Subsection n.m.k. Most of the time these references are within the same chapter or section, so it'd be nice to show only external structure when relevant.   I'd be fine with generating Section m of Chapter n automatically, or switching to the notation of Section n.m, when relevant.   I'm currently using varioref as a workaround, and I also use hyperref in my document.    The following seem strongly related:


Is the set $A$ of anti-symmetric relations over $\mathbb{N}$ countable?

I think this set is uncountable, but I don't really know how to prove this. Maybe somehow find an injection from $\mathcal{P}( \mathbb{N} \times  \mathbb{N}) \rightarrow A$?


What actually are ? In various places around physics SE, documentaries and occasional news headlines, I see the term "virtual particles", normally virtual photons.  I have tried researching it, but I'm not at a level of understanding yet to be able to grasp whats going on, if someone could explain it in a simple manner that would be great.


Why did the Dwarven Rings of Power cause greed?

I was reading through some of the questions and answers here on the Rings of Power and I just wondered why the ring effects, affected different races in a slightly different way.  I know other questions ask and answer some of these things, but I just wondered why the Rings of Power caused greed in Dwarves for ever more amounts of treasure.  It's true that Dwarves loved mining and loved wealth and were built of sturdier stuff than men, but why did the Rings of Power not control Dwarves in the way the other Rings of Power controlled men and why did it produce greed and not invisibility?


From $\lim_{x\to \infty}[f(x)-g(x)]=0$ to $f=g$

Prove that if $f,g:\mathbb{R}\to \mathbb{R}$ are periodic and $\lim_{x\to \infty}[f(x)-g(x)]=0$,   then $f=g$   My attempt  Let $T_1$, $T_2>0$ be periods of $f$ and $g$ repectively.  If $T_1/T_2 \in \mathbb{Q}$, the conclusion is trivial.  If $T_1/T_2 \in  \mathbb{R} \setminus\mathbb{Q}$, WLOG we assume that $T_2=1$.  Put $A_n=\{x:|f(x)-g(x)|>\frac{1}{n}\}$. Then $\bigcup_{k=1}^\infty A_k=\{x:f(x)-g(x)\ne0\}$.  I want to show that $\{x:f(x)-g(x)\ne0\}$ is uncountable so that there exists $k\in \mathbb{N}$ such that $A_k$ is uncountable and hence the contradiction is deduced.  But I got stuck on that. Maybe it relates to the property of $\{n\alpha\}$. Any hints? Thanks in advance!


Can you cancel partition deletes in Windows 7 setup?

In the Windows 7 setup where you choose the drive to install on you can delete partitions. I accidentally deleted a partition on the wrong drive and I wondered if it's possible to revert? I am still in the setup now and haven't restarted my computer but in the command prompt in advanced options I can no longer see the drive.  Is there anything I can do to cancel the delete and not lose the files?  Edit: This question is not a duplicate - it it specifically asking about the process during setup, i.e. is there any way back from a delete and not just another how do I recover a partition drive. Or maybe it's deemed too similar, then fair enough :)


How can I create a reliable alias or function that let me create and cd into one directory?  I tried the following, but, as an example can't create directories with spaces.  mcd () {         mkdir $1 && cd $1 }


Is there a blackboard bold letter for the set of Boolean numbers?

Is there a symbol (e.g. $\mathbb{B}$) for the  of Boolean numbers or values; ${0,1}$ or ${True,False}$?


What are possible directories for .desktop files and their icons, and when to use what directory?

Here are some of the directories where .desktop files describing applications can be found:  ~/local/.share/applications /usr/share/applications /usr/share/app-install/desktop   Perhaps there are even more of them. What is the actual purpose of every particular one to exist and into which should I put my application .desktop file in what a case?  And where are application icons put to be found as referenced in the .desktop files?


How can the bash shell on Window be completely reset?

I'm new to Unix but interested learn, so started trying to use bash/Ubuntu on Windows. Unfortunately, bash crashed and now bash/Ubuntu seems to be broken as most folders are now missing from the Ubuntu root folder, i.e.:  root@Desktop:~# ls root@Desktop:~# cd /root root@Desktop:~# ls root@Desktop:~# ls -a .  ..  .bashrc  .profile   I don't have a %localappdata%\lxss folder (I'm pretty certain this is where the Linux root was originally). I appear to have a %localappdata%\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc folder, which is apparently the new location for the Linux root, but it is not complete (i.e. doesn't contain a ...\LocalState\rootfs folder).  After searching for solutions on here and elsewhere, I've tried:   Completely uninstalling Ubuntu\bash from Windows with lxrun.exe /uninstall  full. As above, in conjunction with disabling and re-enabling the Windows Subsystem for Linux (beta) feature too. Running: apt-get remove upstart, apt-get remove udev, apt-get autoremove in bash.   Unfortunately none of the above have solved the problem. Can anybody suggest a way to perform a complete 'factory reset'?


A story where everyone is programmed (or bred) to be non-violent and non-confrontational except for one

I vaguely remember reading a story where everyone is programmed (or bred) to be non-violent and non-confrontational.  Only one man escapes this and he goes on a trail of robbery and intimidation. I can remember very little else except that I'm pretty sure it was a well-known author. Also it was before, say, the 1980s Can anyone tell me the title? There was an incident where he threw ice cold water on a woman having said it would be boiling. The intention was to cause her distress without actual damage.


Is there a rubbersheet tool in QGIS similar to ? Basically, I want the yellow line to move to the red line.  I have tried Vector Bender with a buffer of 0.1m through to 100m and still get a bad result: Input  Bend Green to Red Output


How do people like Madame Pomfrey learn magical healing?

In the Wizarding World, there are people like Madame Pomfrey and the staff of St. Mungo's who are devoted to the art of magical healing.   There doesn't seem to be a class at Hogwarts for it, and the brief amount that is taught in class (e.g. Slughorn's Potions class where they made an antidote) doesn't seem to be enough training for a career.  So how do they learn magical healing?


Turning on LED panel with a NPN transistor

I have a NPN transistor (2N3904), I would like to be able to turn on my LED panel - 37v (don't know the amps) with my Arduino Uno, which gives output of 5v, 0.2 amps.  As far as I understood, the Arduino will be connected to the base of the NPN transistor. if I put a diode or a resistor between the Arduino and the NPN transistor's base, following the tutorials it "should" work, but I don't want to burn my Arduino down.    I don't understand, if the transistor is a 'switch', when I give electricity to the base, why is there electricity coming into the base from the collector? shouldn't it go straight to the emitter? how can I know how big of a resistance to put, between the Arduino and the base of the transistor? In addition, should do 'GRD' from Arduino go to the LED's negative terminal? Thanks


use of articles with personal names modified by adjectives

Suddenly, to everybody's surprise, the silent Mr.Smith swung around and addressed Barbara.   The dinner was served by a silent Mrs. Keats.   I saw an infuriated Jennifer, who started shouting at me the moment I opened the door.   It seemed Walter didn't pay any attention to a tearful Kitty.   She hasn't got lovely eyelashes like marvellous Monica.   I bet your Mum kept you well clear of horrible Jesse.      The rule I learned at university said that the is used when the adjective a permanent quality of the person in question. E.g. 'I met the wicked Matilda the other day' would suggest that Matilda is inherently wicked.  The indefinite article a/an, on the other hand, would denote the mood or an unusual quality of the person described.  However, recently I've come across a lot of examples where no article is used with names modified by adjectives (see examples 5 and 6 above).   Can anyone explain why there are no articles in sentences 5 and 6?


How does a new user participate on meta SE?

As a new user who joined after lurking for about a month, I'm finding it difficult to actually participate. Is there anything a new user can do here, or is it better to participate on other sites first before joining Meta?


Prove $S_4$ has only 1 subgroup of order 12

The subgroup in $S_4$ that I know has order 12 is the subgroup of all even permutations, otherwise known as the alternating group $A_4$. However, I know this from a fact and not because I am able to show a subgroup of order 12 exists in $S_4$ in the first place. If I had not been told there existed a subgroup of order 12 in $S_4$, I would not have known there was one. So I guess this is actually a two-parter for me: 1) How do I go about showing that a subgroup of order 12 does indeed exist in $S_4$? I know by Lagrange that if there exists a subgroup, then the order of that subgroup must divide the order of the group. However, this doesn't say anything about the existence of the subgroup. And Sylow only verifies subgroups of a prime to some power order, which 12 is not. I also know that there might be a cyclic subgroup of order 12, but without manually multiplying every possible permutation in $S_4$, I don't know any other way to check the existence of this or if this subgroup is isomorphic to $A_4$ because I don't know how to write these permutations as functions in order to check if there is a homomorphism (I know that a permutation is bijective by definition). And 2) How do I show that this group of order 12 is the only group of order 12 in $S_4$?


How can I convert String to enum value?   public enum Season {WINTER, SPRING, SUMMER, FALL} Season season1; String winterString = 'WINTER';  season1 = winterString; <-- This gives error of course, but is there a way to do it like in java?


My problem is i'm trying to run a .command file in OS Mojave.  It tells me when attempting to run it      The file "Rev PLATE-140.command" could not be executed because you do not have appropriate access privileges. To view or change access privileges, select the file in the Finder and choose File > Get Info   When trying this it leads me no where. Found a workaround from Google which tells me to run a script in terminal that says   chmod u+x /Users/Fatimawahab/Desktop/script.command   So I enter chmod u+x /Users/UnorthodoxKilla/Desktop/Rev Plate-140.comman but when doing this I get this return in termial:  Last login: Sat Mar 28 22:48:01 on ttys000 Unorthodox-MacBook-Pro:~ unorthodoxkilla$ chmod -x /Users/unorthodoxkilla/Desktop/Rev PLATE-140.command chmod: /Users/unorthodoxkilla/Desktop/Rev: No such file or directory chmod: PLATE-140.command: No such file or directory Unorthodox-MacBook-Pro:~ unorthodoxkilla$ chmod -x /Users/unorthodoxkilla/Desktop/Rev PLATE-140.command chmod: /Users/unorthodoxkilla/Desktop/Rev: No such file or directory chmod: PLATE-140.command: No such file or directory Unorthodox-MacBook-Pro:~ unorthodoxkilla$    How can I get around this  P.s. I am not techhy with code so please keep it simple for a noob like me.


How can I do a full shutdown of windows 10 without logging in?

I have a computer with both Windows 10 and Ubuntu 17.04 installed on it. I can't log in to Windows, and think it's a problem with the registry. Luckily, there is a way to restore the registry from backup from Ubuntu, but you have to be able to modify files on the Windows partition. Right now, I can't write to the NTFS partition because Windows didn't do a full shutdown.  How can I force windows 10 to do a full shutdown without being able to log in?


Is there a way to mirror a mesh with hair but without deforming these?

i was trying to mirror some eyelids with some hair but they don't seem to appear on the mirror version of the eyelid, so, i decided to apply the mirror but then the hair deforms like this:    Maybe i'm still too noob, but i don't see a way of how to fix the deformed hairs on the other eyelid.  Also, i tried to duplicate and deform the mesh with mirror transform, but isn't the same like the mirror modifier, but unlike the mirror modifier, the hairs doesn't seem to get deformed. Still, it's not a good way to do it:  You can clearly see that the hairs remained good but the mirror modification fails on his mission (or maybe the one who's failing is me :P)  So, is there a way to mirror an object without the mirror modifier but with the same results as this?


Custom Layout in Preference gives Nullpointerexception

I'm using a custom layout from a preference:  <PreferenceCategory     android:title="Intolleranze">     <Preference android:layout="@layout/intolerance_settings" />  </PreferenceCategory>   Layout:  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent">  <EditText     android:id="@+id/editTextIntolerance"     android:layout_width="200dp"     android:layout_height="wrap_content"     android:layout_margin="16dp"     android:hint="Aggiungi intolleranza..." />   <Button     android:id="@+id/addIntoleranceButton"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_margin="16dp"     android:background="@drawable/oval_button"     android:text="@string/add"     android:textColor="@android:color/white"     style="?android:attr/borderlessButtonStyle"/>  </LinearLayout>   When I try to add an OnClick Listener from the Preference Fragment I get a NullPointerException, because I cannot get a reference to the custom layout I set in the PreferenceScreen. How can I solve that ?  PreferenceFragment:  public class SettingsFragment extends PreferenceFragment {     private Set<String> set;     private Set<String> in;     @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         addPreferencesFromResource(R.xml.preferences);     }  @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {     View view = super.onCreateView(inflater, container, savedInstanceState);     getActivity().setTitle("Impostazioni");     return view; }  @Override public void onViewCreated(View view, Bundle savedIstanceState){      Button addBtn = (Button) findViewById(R.id.addIntoleranceButton);     final EditText editText = (EditText) findViewById(R.id.editTextIntolerance);     addBtn.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {            //NullPointerException          }     }); }


PostgreSQL update and select in one query

I have a table (id, serialnumber, status) of numbers and their statuses, need to take one with status 'unused' and change it's state to something like 'in work'. Can do it this way:  UPDATE serials SET status = 'in work' WHERE serialnumber IN (   SELECT "serialnumber"   FROM serials   WHERE status = 'unused'   ORDER BY id ASC    LIMIT 1 ) RETURNING serialnumber;   Is that the right way of selecting and updating a row in concurrent environment? It's unacceptable to take a serial when someone already took it.


Why can charges outside be ignored in Gauss's Law?

In MIT's 8.02 course, it is shown in lecture 3 that we can derive Gauss's Law from Coulomb's to get  $ \phi = \oint \vec{E} \cdot \vec{dA} = \frac{Q_{enc}}{\epsilon_{0}} $  However, in the lecture, it was assumed that there were no charges outside the surface. Later, Gauss's Law was used and the charges outside the sphere were ignored.  I've been thinking about it and came across .  The first answer by user levitopher helped a bit. I think that the lecture's argument still holds when there are charges outside because $ \vec{E} $ is added vectorially.  Suppose we have $ Q_{enc} $ in a sphere and $ Q_{out} $ outside the sphere. Then,  By definition, $ \phi = \oint (\vec{E_{Q_{enc}}} + \vec{E_{Q_{out}}}) \cdot \vec{dA} $ $ = \oint \vec{E_{Q_{enc}}} \cdot \vec{dA} + \oint \vec{E_{Q_{out}}} \cdot \vec{dA}$ $ = \oint \vec{E_{Q_{enc}}} \cdot \vec{dA} + 0 $ $ = \frac{Q_{enc}}{\epsilon_{0}} $  This assumes that $ \oint \vec{E_{Q_{out}}} \cdot \vec{dA} = 0 $ because any field lines that go in must come out (hand wavy but I'm just going to accept it for now).  I'd just like to know if this argument is sound.


Why is change dir (cd) not working in this mac script?

I have this script in a file called /Users/tcl/scripts/gotoroot:  echo "hello" cd / echo "good bye"   But when I run it I get this:  User:scripts tcl$ pwd /Users/tcl/scripts User:scripts tcl$ gotoroot hello good bye User:scripts tcl$ pwd /Users/tcl/scripts User:scripts tcl$   The directory has not changed and I don't know why? It should be /, not /Users/tcl/scripts


How can I get date, time and day from open weather API in android

I am trying to get a date, time and day from  API of a specific location and specific day using latitude and longitude. But it gives me a long integer something like this 1525974999. How can I retrieve date time and day from this?


How do I play D&D 4e gridless (but still on tabletop)?

A friend told me that he would like to try playing a gridless game next - still on tabletop, but without the gridlines. Is there any difference in the game except for movement? There are some things I don't know how to go about like line of sight, flanking, and traps and invisible enemies. Any help?


I have noted in c# that using var improves your performance, especially when declaring variables of a specific class. I have done multiple bench marks and have got the same result every time. I have also read similar questions on this site and others. but no one has actually commented on this.  Can anyone please confirm or refute this.   I have a  class for image data, clsImageData  and collection clsImageDataCollection.  a function in collection class is SetCaseLowerCase().  Code is   private void SetCaseLowerCase() {     foreach (var item in this)     {        item.DestinationImageName = item.DestinationImageName.ToLower();     }  }    Now if I use clsImageData instead of var, it performs slower, I have checked it with 100000 iterations. but results is always the same. also with other examples too.  Thanks  Edited I have tested this simple code and got 7/10 times better performance using var. Please tell me what am I doing wrong, I am using VS 2017, debug mode for any CPU, my processor is quad core. Thanks              sw.Start();             for (int i = 0; i < 10000000; i++)             {                 var xyz = "test";             }             StopClock(sw, "Example var - ");             sw.Start();             for(int i = 0; i<10000000; i++)             {                 string xyx2 = "test";             }             StopClock(sw, "Example type - ");


How is Kylo Ren's lightsaber able to have a cross at the hilt?

From Wookieepedia how a lightsaber works:     The weapon consisted of a blade of pure plasma emitted from the hilt   and suspended in a force containment field. The field contained the   immense heat of the plasma, protecting the wielder, and allowed the   blade to keep its shape. The hilt was almost always self-fabricated by   the wielder to match his or her specific needs, preferences and style.   more:     It seems the Dark Lords of the Sith Empire were ultimately responsible   for the advancement of lightsabers, replacing the belt-mounted power   pack with a power cell within the hilt. An internal superconductor was   introduced, which transferred the returning looped energy from the   negative-charged flux aperture back into an internal power cell. With   this modification, the power cell would only expend power when the   energy loop was broken, such as when the lightsaber cut something,   solving the power supply problem. According to the Tedryn Holocron,   the Sith also created the schematics for the first double-bladed   lightsabers.   More:     High levels of energy generated by a high-output Diatium power cell   was unleashed through a series of focusing lenses and energizers   that converted the energy into plasma. The plasma was projected   through a set of lightsaber crystals that lent the blade its   properties and allowed for the adjustment of blade length and   power output. The ideal number of crystals was three, though only   one was required   More:     Once focused by the crystals, the plasma was sent through a series of field energizers and modulation circuitry within the emitter   matrix that further focused it, making it into a coherent beam   of energy that was projected from the blade emitter. The blade   typically extended about a meter before being arced by the blade   containment field back to a negatively charged fissure ringing the   emitter, where it was channeled back to the power cell by a   superconductor, completing the circuit.   Okay so from all of these quotes here's how I understand a lightsaber to work. There's a powercell in the handle. The power is then focused through crystals that act as a lens. It is preferable to use three crystals but you can make a lightsaber with just one. Then the energy goes through an emitter matrix which further focuses it into a coherent beam. The projected beam goes out about a meter on average then arcs back by the blade containment field(which is somehow done with the force) back into the emitter, and then back to the powers cell, which completes a circuit.   This means that it's a one way shot, a straight line out. In addition it says that the Sith had to design a two sided blade, which I assume is a regular lightsaber connected with separate power cells and seperate crystals to create effectively two separate lightsabers that are connected at the hilt. We see G Canon evidence of this when Darth Mauls lightsaber is cut in half in "The Phantom Menace."  So how does Kylo Ren's lightsaber have beams coming out in a cross formation at the hilt? Does he have separate crystals to focus the beams out? Is it a containment field in an irregular shape, if so how is that done? I am confused and it's possible my understanding of how the fields that generate a lightsabers form are off.  Also as a side note if you feel like addressing it and it applies: Wouldn't the cross parts coming out of the hilt take up more energy and be more for effect then for purpose? If it needs additional power cells or a larger one wouldn't that make the lightsaber much heavier and more difficult to use?  How does Kylo Ren's lightsaber make that cross shape?


Can we install sharepoint server 2013 in window 8?

I am bit confused about SharePoint installation. Is there a way to install SharePoint on Windows 8. Because I searched google and some experts are saying we can install and someone are against this.   For SharePoint installation, is windows 2000 server needed or we can install it within Windows 8 itself?


horizontal to vertical in one field data - SQL

I have data in one field separated by comma "ID field " and I need to write each number in one column vertically the data as below:   YEAR   WEEK BADGE   Name    remarks         BT_Hrs  NoOfDays    id 2017    1   1111    emp1    test1            36       4         440,824,104,412,741,900,000   the table needed as below   2017    1   1111    emp1    test1   36  4   440 2017    1   1111    emp1    test1   36  4   824 2017    1   1111    emp1    test1   36  4   104 2017    1   1111    emp1    test1   36  4   412 2017    1   1111    emp1    test1   36  4   741 2017    1   1111    emp1    test1   36  4   900 2017    1   1111    emp1    test1   36  4   000


How can I upgrade from 18.10 to current 20.04 version of ubuntu?

Except for LTS Ubuntu doesn't support software updates from "cycled out" versions (like 19.04 just became and 18.10 before that)  it provides  updated in April. My issue is: It provides a guide to trick your computer into updating from 18.10 to 19.04, as 19.10 was the current version at the beginning of this year the update from 19.04 was still supported and as such the user could then update to 19.10 the easy conventional way, after the 18.10 -> 19.04 passage. My "strategy" was then to 18.10 -> 19.04 this way, do the same process but for 19.04 -> 19.10, and from 19.10 to 20.04 by updating the conventional way Just as the blog post alerts, I changed all the links for the 'disco' version in the meta-release2 file into  I also deleted all the entries for the 20.04 version in the meta-release2 file too Still - I can't do it, and it gives me the following error: Invalid package information   After updating your package information, the essential package  'ubuntu-minimal' could not be located. This may be because you have  no official mirrors listed in your software sources, or because of  excessive load on the mirror you are using. See /etc/apt/sources.list  for the current list of configured software sources.  In the case of an overloaded mirror, you may want to try the upgrade  again later.


I have tried to figure this out but I cannot come to a specific conclusion. I am just asking this to confirm my own theory.  In Half-Blood Prince, Dumbledore's memory proves that he was the headmaster when Tom Riddle came to ask for a professor's job at Hogwarts. He also tells in the same part that he was a professor at Hogwarts when he met the young Tom Riddle.  Also keeping his friendship with Grindelwald in mind, I would say that he was around 100 years old when he died.  Any more ideas?


Is there anything wrong including this png?

I'm writing a document (article class), and I'm including some png graphics, this is the code that includes them (it's a subimage environment):  \begin{center} \begin{figure}   \centering   \begin{subfigure}[b]{0.3\textwidth}                 \includegraphics[natwidth=512px,natheight=511px,width=4cm,height=4cm]{param.png}                 \caption{img1}                 \label{img1}         \end{subfigure}%         ~ %add desired spacing between images, e. g. ~, \quad, \qquad, \hfill etc.           %(or a blank line to force the subfigure onto a new line)         \begin{subfigure}[b]{0.3\textwidth}                 \includegraphics[natwidth=512px,natheight=511px,width=4cm,height=4cm]{crtpnt.png}                 \caption{img2}                 \label{fig:img2}         \end{subfigure}         ~ %add desired spacing between images, e. g. ~, \quad, \qquad, \hfill etc.           %(or a blank line to force the subfigure onto a new line)         \begin{subfigure}[b]{0.3\textwidth}                 \includegraphics[natwidth=512px,natheight=511px,width=4cm,height=4cm]{ferro.png}                 \caption{img3}                 \label{fig:img3}         \end{subfigure} \caption[prueba]{\label{fig:images}caption}\end{figure}\end{center}   I'm compiling through latex and then dvipdf to get a pdf. Firt of all, if I compile with pdflatex it works perfectly, but I would like to compile with an intermediate dvi file. When running Latex the dvi file is alright, although images don't show up. If I run then the dvipdf, it cuts the document up to the page in which the previous snippet is, not showing the images, or anything else beyond them.  I have previous images in eps format which are perfectly included. Is the way I'm including png graphics right? Am I doing anything wrong?


Why was Han Solo acting like he’s never seen Chewbacca’s bowcaster before?

In “The Force Awakens” Han Solo, Chewbacca and Finn are caught in a battle on the planet Takodana—where Maz Kanata lives, hangs out and does whatever she does—and Chewbacca begins using his bowcaster to pick off Stormtroopers like flies. At one point in the middle of the battle, Han Solo asks to try the bowcaster out and exclaims something along the lines of, “I like this thing!”                                  Okay, okay… Han Solo likes that big, bad powerful bowcaster… But why is he so surprised and delighted by its power and handling apparently only now in this film? Hasn’t Chewbacca had that bowcaster for at least 30 years? And within those 30 years you are telling me Han Solo has never put his hands on that bowcaster before? Or witnessed its power in action? Really? The first time he’s touched it is during the events in this film?  What is the in-universe explanation for this?  I mean I know some couples are shockingly oblivious to the things their partners have, use, do and have done. But this seems a bit of a stretch coming from someone like Han Solo who seems to spend endless days/nights with his Wookiee sidekick getting into all kinds of wacky action/adventure predicaments.


Using Foreign Key and References for ON DELETE CASCADE in mysql

I was thinking that these two ways for creating foreign keys are the same  CREATE TABLE child1 ( id int(11) not null auto_increment, parent_id int(11) REFERENCES parent_table(parent_id) ON DELETE CASCADE, PRIMARY KEY(id) );   and  CREATE TABLE child2 ( id int(11) not null auto_increment, parent_id int(11), PRIMARY KEY(id), FOREIGN KEY(parent_id) REFERENCES parent_table(parent_id) ON DELETE CASCADE );   but when deleting a record from parent table, the corresponding record in table child2 will be deleted but NOT that of table child1.  Where am I wrong? REFERENCES is not enough and we necessary need to write FOREIGN KEY to use ON DELETE CASCADE?


I have a byte array that comes as a result of doing a get to a method called "getFoto()". Now my question is how to convert this array of bytes into an image, to set this image to a specific JLabel.         InputStream myInputStream = new ByteArrayInputStream(t.getFoto());           BufferedImage someImage;         try {             someImage = ImageIO.read(myInputStream);             Icon icon = new ImageIcon(someImage);             portada.setIcon(icon);         } catch (IOException ex) {             Logger.getLogger(VeryModificarTrailers.class.getName()).log(Level.SEVERE, null, ex);         }         }      portada.setIcon((Icon) Imagen; is not working


Free visual similarity image for a local hard drive search?

I'm looking for a desktop search engine for finding images on my local hard drive with high visual similarity. I've only found paid for ones so far. It could be Linux or windows one, either would be helpful.  A Google desktop plug-in would be nice!


How many cardinals exist between $\aleph_0$ and $\mathfrak c$?

Assuming the negation of the continuum hypothesis, there is a set $G_1 \subset \mathbb{R}$ such that if $\aleph^\prime_1$ is the cardinality of $G_1$, then $\aleph_0 < \aleph^\prime_1 < \mathfrak c$.  Do there exist models of set theory in which there exist another set, say $G_2$ such that $\aleph_0 < \aleph^\prime_1 < \aleph^\prime _2 < \mathfrak c$ with $\aleph^\prime _2$ the cardinality of $G_2$ and so on (that is, the cardinality of $G_2$ is bigger than that of $G_1$ and less than the cardinal of the set if real numbers)? Is it possible to repeat this process and find sets with larger and larger cardinalities which still are less than $\mathfrak c$? If the answer is yes, what are the consequences of this assumption in analysis?


I want to typeset a proof and want to emphasize what I do in each step e.g. by underbracing an equal-sign when I substitute a variable. In addition I also want to align equal-signs in every line. Unfortunately I don't know how to align an underbraced equal-sign and a non underbraced equal-sign at the same time.    Question: How can I align the underbraced and the non underbraced equal-sign vertically?  \documentclass{report}  \usepackage{amsmath} % Mathe \usepackage{mathtools} % Mathe \usepackage{amsfonts} % Mathesymbole  \begin{document}  \begin{align*}     D(D^TD)^{-1} &\underbrace{=}_{\mathclap{D=B(B^TB)^{-1}}} B(B^TB)^{-1}((B(B^TB)^{-1})^TB(B^TB)^{-1})^{-1} \\       &= B(B^TB)^{-1}(((B^TB)^{-1})^TB^TB(B^TB)^{-1})^{-1} \end{align*}  \end{document}


I need to run IE 10 in 32-bit mode on 64-bit Windows 7 Enterprise N.  When I run IE 10 from "C:\Program Files (x86)\Internet Explorer" I can see in task manager that I have only one process "iexplorer.exe" and no process "iexplorer.exe *32".  I have an application with an ActiveX that is supported only on 32-bit, and the application can't be loaded on 64-bit mode.  Is there a way I can force IE10 to run in 32-bit mode?


How to change from biblatex to natbib using template

I want to have   (Goossens et al., 1993)   But using biblatex, it will give below  \parencite  --> (Goossens et al. 1993)   I am using a template in   \usepackage{biblatex}  \addbibresource{references.bib} \usepackage{uorbib}   in uorbin.sty file:  % This contains styling elements for bibliography % stuff: Entire citation is colored instead of just % year. \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{uorbib}   [2018/01/18 v0.01 LaTeX package for UOR thesis]  %% Bib stuff \DeclareFieldFormat{citehyperref}{%   \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links   \bibhyperref{#1}}  \DeclareFieldFormat{textcitehyperref}{%   \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links   \bibhyperref{%     #1%     \ifbool{cbx:parens}       {\bibcloseparen\global\boolfalse{cbx:parens}}       {}}}  \savebibmacro{cite} \savebibmacro{textcite}  \renewbibmacro*{cite}{%   \printtext[citehyperref]{%     \restorebibmacro{cite}%     \usebibmacro{cite}}}  \renewbibmacro*{textcite}{%   \ifboolexpr{     ( not test {\iffieldundef{prenote}} and       test {\ifnumequal{\value{citecount}}{1}} )     or     ( not test {\iffieldundef{postnote}} and       test {\ifnumequal{\value{citecount}}{\value{citetotal}}} )   }     {\DeclareFieldAlias{textcitehyperref}{noformat}}     {}%   \printtext[textcitehyperref]{%     \restorebibmacro{textcite}%     \usebibmacro{textcite}}}  \endinput %% %% End of file `uorbib.sty'.   I try to change to  \usepackage{natbib} to get \citep{goossens93} and (Goossens et al., 1993)  But is not working using the template.


Would be nice to use dvd in the kodi-snap in the cosmic's software-center, but it somehow seems to be blocked by apparmor:  audit[10035]: AVC apparmor="DENIED" operation="open" profile="snap.kodi.kodi" name="/var/lib/snapd/hostfs/media/jarosch/SOME_NICE_FILM/" pid=10035 comm="kodi.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 audit: type=1400 audit(1551807964.170:48): apparmor="DENIED" operation="open" profile="snap.kodi.kodi" name="/var/lib/snapd/hostfs/media/jarosch/SOME_NICE_FILM/" pid=10035 comm="kodi.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000   Any ideas?