Prove that T is diagonalizable if and only if the minimal polynomial of T has no repeated roots. EDIT: ( Over $\Bbb C $ ) though it is obvious i am working over $\Bbb C $ as one of my statements is not true over $ \Bbb R $   I would like a better proof of this result what i did is below, there is the same question on here somewhere but only has an answer to one direction im looking for both.  I proved the result by using a different equivalent statement to diagonalizable looking for any complete proof that is shorter.  We notice that it is equivalent to prove that V has a basis consisting of eigenvectors of T iff the minimal polynomial of T has no repeated roots by theorem.  $(\Rightarrow ) $ First suppose that there is a basis $\beta = (v_1,\cdots , v_n ) $ consisting of eigenvectors of T. let $\lambda_1 , \cdots , \lambda_m $ be distinct eigenvalues of T. Then for each $ v_i $ there exists a $\lambda_k $ with $(T- \lambda_k I) v_i =0 $ it then follows that $(T- \lambda_1 I) \cdots (T- \lambda_mI) v_i =0 $ for each i as we can commute the operators. Since an operator that sends each vector in a basis to the $0$ vector is the $0$ operator we have that $(T- \lambda_1 I) \cdots (T- \lambda_mI) =0 $ Thus the polynomial $(z-\lambda_1) \cdots (z-\lambda_m ) $ when applied to T gives 0. but by theorem we know that that the minimal polynomial of T is a divisor of $(z-\lambda_1) \cdots (z-\lambda_m ) $ which has no repeated roots so the minimal polynomial cannot possibly have repeated roots the result follows.  $(\Leftarrow ) $ Let us assume that the minimal polynomial has no repeated roots; if we let $ \lambda_1 \cdots \lambda_m $ denote the distinct eigenvalues of T, this means the minimal polynomial of T is $(z-\lambda_1) \cdots (z-\lambda_m ) $ It follows that $(T- \lambda_1 I) \cdots (T- \lambda_mI) =0 $ Let $U_m $ be the subspace of a generalized eigenvectors corresponding to the eigenvalue $\lambda_m $. Since $ U_m $ is invariant under T by theorem we consider $ v\in U_m $ let $u= (T- \lambda_m I) v $ it follows that $u\in U_m $  Hence $$ (T|_{U_m} - \lambda_1 I ) \cdots (T|_{U_m} - \lambda_{m-1}I) u =   (T- \lambda_1 I) \cdots (T- \lambda_mI) v =0 $$  by theorem we have that $( T- \lambda_m I )|_{U_m} $ is nilpotent by previous question we have that 0 is the only eigenvalue of $( T- \lambda_m I )|_{U_m} $. Thus $T|_{U_m} - \lambda_jI $ is an invertable operator on $U_m $ for $j= 1, \cdots , m-1 $ it then follows by $$ (T|_{U_m} - \lambda_1 I ) \cdots (T|_{U_m} - \lambda_{m-1}I) u =   (T- \lambda_1 I) \cdots (T- \lambda_mI) v =0 $$ that $u=0$ in other words, $v$ is an eigenvector of T!   We have shown that every generalized eigenvector of T corresponding to the eigenvalue $\lambda_m $ is an eigenvector of T. However we choose $ \lambda_m $ arbitrarily we could of just of easily relabeled the eigenvalues so that any of them was called $ \lambda_m $. Therefore we have that every generalized eigenvector of T is actually an eigenvector of T. By theorem we have that there is a basis for V consisting of generalized eigenvectors of T but by above we have that there is a basis of V consisting of eigenvectors of T the desired result.


Suppose $F$ is a field, let $f(x), g(x), h(x) \in F[x]$ and $d(x)=\gcd(f(x),g(x))$. If $f(x) \mid h(x)$ and $g(x) \mid h(x)$, prove that $f(x)g(x) \mid d(x)h(x)$.


I am able to open cmd.exe using script  import subprocess subprocess.call("C:\Windows\System32\cmd.exe",shell=True)   But I am unable to send input command to cmd.exe open. I want to achieve something like below mentioned using script  1) script give input command like python to cmd.exe open   2) After that script give input command like print "hello" to python prompt comes


if condition with ssh exits while loop without completion

I have a script in AIX to read all hosts from os_init.d directory and gather their Ipv4 IPs and store them in a file. This file is then used to ssh to each host to collect various data via other scripts [not relevant here].   When the host is not reachable and has IPv4 IP address --> no error, while loop continues When the host is not reachable and has IPv6 IP address --> no error, while loop continues When the host is reachable and has IPv6 IP address --> while loop continues BUT exists without going through the loop.   I can't seem to figure out why in the last condition, after successfully executing the if condition for a reachable IPv6 host, the while loop would exit without continuation.   #!/usr/bin/bash # Sumit Das 2016 12 26 # Find All PHYsical HOSTs and their IP in a cluster  #set -x #cd /home/users/in10c2/moni ls -1 /cAppCom/os_init.d | grep dcpaix > listPHYSERV FN='listPHYSERV' rm listPHYIP 2> /dev/null while read LINE do   PHYHOST=$LINE   PHYHOSTIP=`ping -c 1 $LINE | grep PING | awk '{print $3}' | cut -c2- | rev | cut -c3- | rev`    IPV6IPchk=`echo $PHYHOSTIP | cut -c -4`   if [ $IPV6IPchk = "2a00" ]      then      ssh -q -o ConnectTimeout=10 -o BatchMode=yes -o StrictHostKeyChecking=no $LINE ifconfig -a > IFCNF      PHYHOSTIP=`awk '/en2:/{x=NR+1;next}(NR<=x){print}' IFCNF | awk '{print $2}'`      rm IFCNF   fi    echo "$PHYHOST,$PHYHOSTIP" >> listPHYIP done < $FN  cat listPHYIP cp  ALL_PHY_HOSTIP_`uname -n`.txt


I'm pretty new to python. And I have a question.    def set_man(self, new_pos):     if new_pos is 'left' or 'right' or 'boat':         self.man = new_pos         return True     else:         return False   will this work? Or do i need to call if new_pos for each or?


Here what i am trying to achive is to print a anchor pane by getting the default printer and here is the code.  public class printnodeController { @FXML private AnchorPane print; public void print (){      Printer printer = Printer.getDefaultPrinter();     PageLayout pageLayout         = printer.createPageLayout(Paper.A4, PageOrientation.PORTRAIT,  Printer.MarginType.HARDWARE_MINIMUM);     PrinterAttributes attr = printer.getPrinterAttributes();     PrinterJob job = PrinterJob.createPrinterJob();     double scaleX         = pageLayout.getPrintableWidth() /  print.getBoundsInParent().getWidth();     double scaleY         = pageLayout.getPrintableHeight() /  print.getBoundsInParent().getHeight();     Scale scale = new Scale(scaleX, scaleY);     print.getTransforms().add(scale);      if (job != null && job.showPrintDialog(print.getScene().getWindow())) {       boolean success = job.printPage(pageLayout, print);       if (success) {         job.endJob();        }     }     print.getTransforms().remove(scale);  } }   but i am getting this error:      java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at     com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)     at       com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)     Caused by: java.lang.NullPointerException     at application.printnodeController.print(printnodeController.java:25)     at application.Main.main(Main.java:47)     ... 11 more     Exception running application application.Main   i had tried searching but didnt find any solution ; please help  new to this site Thankyou in advance.


Warning: file_put_contents(temporary://): failed to open stream

I get this message from Drupal:  Warning: file_put_contents(temporary://file8vyLsO): failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1900 of /home/donatelo/public_html/thenameofthesite.com/includes/file.inc). The file could not be created.  I don't know what I did to cause this, can anyone help me?


Can I only travel on the second leg of a one-stop flight?

Let's say there is an available booking from A-B-C, but I actually live in B. Can I book the flights and travel on the B-C flight only? I'm asking this because the A-B-C ticket is considerably cheaper than B-C ticket.   If that is not possible, are there any tricks to take advantage of the cheaper A-B-C price compared to B-C?


What is the OS X modifier key symbol that looks like the control icon (^) but with the addition of a line over it?  Symbol:


Location of the resource files for the spinning wait cursor?

For a presentation I am making, I want to find my Mac's system's default "Spinning Wait Cursor" resources.  I was  that  are in here:     /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HiServices.framework/Versions/A/Resources/cursors  and :     /System/Library/Frameworks/WebKit.framework/Versions/Current/Frameworks/WebCore.framework/Resources/  Indeed, one can find some large and vectorized versions of most cursors in the first folder, and some other, smaller ones in the second.  But, there seems to be no beach ball in there.   I know one can find the graphics in high resolution online easily, but for my project I would need to get the original system files.  A screenshot or animated screenshot also wouldn't be what I'm looking for. I couldn't find the info anywhere.  Note 1: From the GUI, a user can see the spinning wait cursor in various different sizes depending on the settings in System Preferences > Accessibility > Display > Cursor size, and then proceeding to crash their computer.  Note2: I am not trying to change my OS' appearance.  Can anyone help me find where the resource is?  Is it ?


How to add drive/partition-icon to the launcher?

My dualboot-system (win7 / ubuntu 12.04) has a ntfs-formatted partition called "/share" for files I use both in win7 and ubuntu (e.g. pictures, music etc.).  I'd like to have a symbol of this drive in the launcher.  But although the partition is mounted (Mount point: /media/share) and shown in the left side bar of a folder, there is no Icon in the launcher! How can I add this Icon to the launcher?  (CompizConfig Setting manager >> ubuntu unity plugin >> Experimental >> show devices always" will only show  win-Partition, not the /share -partition)


How to know if certain IP is blocked in china?

After changing my IP, my site no longer works in China. What can I do to test that more thoroughly? Is there a way to do so?  I do not want to block Chinese visitors. I want the block removed by using an IP that is not blocked in China.


I was wondering what is the difference between the two lines.  char *ptr; ptr = malloc(10);   and this one.  char *ptr; ptr = (char *) malloc(10);   Are you like casting the memory returned by malloc?


This was an equality written in p15, Titchmarsh,      $$ \int_0^{\infty} \frac{ \sin y }{y^{s+1}} \,dy = - \Gamma(-s) \sin \frac{1}{2} s \pi $$   How is this true? The RHS, by definition is equal to  $$ \int_0^{\infty} \frac{ e^{-y} \sin \frac{1}{2} s\pi }{y^{s+1}} \,dy $$ which I do not see how it equates to the LHS.


Permissions error trying to create local web dev environment in home folder

Hi I've been trying to create a local web dev environment in my home folder. My local LAMP is running fine, and I tried this tutorial to develop without the hassle of the permissions in var/www    I'm getting a 403 forbidden error when trying to access it like so:   http://localhost/~asdf/   Please advise.


Why does su fail with "authentication error"?

I tried to su to root so I could install lights, but I get an authentication error when I try:    user@host:~$ su Password:  su: Authentication failure


How are digital movies sent to a movie theater?

For many years, movies were stored on rolls of film that were physically mailed to theaters. Now, most theaters project their movies digitally. But how are these digital movies sent to the theater?   Do they mail a hard drive to the theater? Do they give the theater a username and password to a super secret website where they can download it? How does it get there?


"Continuously" vs "continually": What's the difference?

What's the difference in the usage of these two adverbs continuously and continually? Here are some examples:  a) She was told off for continually being late. b) It rained continuously for three hours this morning. c) The firemen worked continuously through the night. d) I'm afraid you continually make the same mistakes.


Can a student apply for a new PhD (in the US or UK) while he is currently enrolled into a PhD (in the US)?

A physics student is currently enrolled in a PhD program in the US, 1.5 years into yet. After few months he will have received his MSc degree and will start working on his thesis. While his physics department is relatively strong, he is unhappy (perhaps even disappointed) because his very sub-field of interest is particularly weak and researchers in this sub-field very rarely publish decent papers.   He's seriously considering starting again from scratch and apply for a new place where people are stronger at his field. Can he apply while still being enrolled in his PhD?  How much negativity does the fact that he plans to drop the current PhD add to his application?  Is it better to apply to UK universities, since in US he will be required to repeat the coursework?


How to prevent food colouring changing the taste of food?

I am a keen baker with a big sweet tooth. I often use coloured icing and sponge when I bake, but often the colouring I use changes the taste of the icing/sponge.   Does anyone know how to prevent the food colouring changing the taste of food or how I can minimise it?   The food colouring I use is: Dr Oetker


How to view size of clustered index for a given table?

Inherited the following audit table: Table UserActions AppID int ActionTime datetime Action varchar(25) UserID int Description text  Clustering key is on AppID, ActionTime, Action columns. RowCount = appx 1 billion How do I view the size of this particular clustered index in total and per row?


Is there a way to see a mesh through another mesh without it being transparent?

I don't mean like glass either just as simple as it sounds a mesh through a mesh basically ignoring physics.


What properties do you need for building a tower?

When I was a boy I used to daydream about building a tower so tall that the top of it would project into near space.  There would perhaps be a zero gravity area in the penthouse where my friends and I could bounce around and play space versions of various earth-based games and sports in most excellent zero-g conditions.  Much to my continued disappointment and despite all the technological advances of the last thirty or so years, no one has built such a structure.  Can anyone explain the physical limitations/constraints that are preventing someone from realising my fantasy of a 'Space Tower'?  UPDATE: This  seems to be pretty confident ...


Looks like a have two accounts via Google OpenID

This is me -   Today I have some notifications for this account -     I tried to restore my access to 2158 account, but any different OpenID from OpenID for 176052 account just offer me to create a new account.   So looks like I need help to restore access for 2158 account or this notifications is a bug?


Youths can teleport, they are chased by the government

There was a film from the 80s in which young people can teleport anywhere they can think of.   These guys are recruited to do studies with, maybe by the government or a secret company which wants the take advantage of their abilities.   I saw it on cable TV around 1990-1997.   Any clues?


If 99% of an atom empty, and our body is made of atoms, does that mean 99% of our body is empty?

If 99% of an atom empty, and if we say that our body is made of atoms stacked together, then why is our body a solid object, rather than 99% hollow.   I have one probable answer that I think might be correct. Referring to the image below  The one on the left (bigger circles) have 99% of the space empty. Now if we reduce the size of circle, then even though the space is 99% empty, but the overall empty space is very less (compared to bigger circle).  If we take this to an atomic level, then the size of the atom is so slow, that we can imagine a small dot in the center, surrounded by very small empty circular space, and then another atom stacked next to it. Now, the 'empty circular' space is so small, that for all practical purposes we can assume the two centers of circles to be next to each other. And hence our body (or any solid body) does not seem empty.  But then, why doesnt light pass through a solid body. Even though the empty space is very less, there still is empty space right? Is it that the size of photon is much bigger than the size of an atom and hence it is unable to pass through that empty space?  I understand that I am not taking into consideration the inter atomic forces, but even if two atoms were very tightly bonded to one another, there will still be some empty space between them (as described in the diagram).


Linux C IO question: ctrl+D once or twice?

test1.c  #include <stdio.h>  int main(void) {     int ch;     FILE *fp;     fp = fopen("file1.txt", "w");      while ((ch = fgetc(stdin)) != EOF)     {         fputc(ch, fp);     }      printf("\n");      return 0; }   test2.c  #include <stdio.h>  int main(void) {     int ch;      while ((ch = fgetc(stdin)) != EOF)     {         fputc(ch, stdout);     }      printf("\n");      return 0; }   The difference between the two files is the expression inside the while loop(one outputs to a file while another outputs to stdout).  The behavior of two program confuses me.  test1.c: I should type twice ctrl+D to complete my input. For example I type "123 ctrl+D ctrl+D", the first fgetc return and while loop run and finally ch can get EOF to run out of while loop.  test2.c: The fgetc return when I type ctrl+D just once. For example "123 ctrl+D", The fgetc return and  while loop run but ch can not get EOF so it's blocked by the last fgetc.  Why?  My environment:  gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 Linux ubuntu 4.15.0-76-generic #86-Ubuntu SMP x86_64 GNU/Linux


Node js : How to access local variable between the methods

first(); function first(){     second();     third(); } function second(){     var b='second'; } function third(){     console.log(b); }   Getting error while trying to access variable b in third(), can you please help  console.log(b);              ^  ReferenceError: b is not defined


No Wifi conection in HP Pavilion x360 with Ubuntu 18.04 LTS (Realtek RTL8821CE)

I recently installed Ubuntu 18.04 on my laptop, at the moment of the installation it didn't ask me for a WiFi connection, and it hasn't worked since then.    Here are some of the commands I have used.   Code:  $ sudo lshw -c network [sudo] password for jenn:  *-network UNCLAIMED             description: Network controller      product: RTL8821CE 802.11ac PCIe Wireless Network Adapter      vendor: Realtek Semiconductor Co., Ltd.      physical id: 0      bus info: pci@0000:01:00.0      version: 00      width: 64 bits      clock: 33MHz      capabilities: pm msi pciexpress cap_list      configuration: latency=0      resources: ioport:3000(size=256) memory:a1000000-a100ffff $ lspci | grep Wireless 01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe  Network Adapter  $ rfkill list 0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no  $ lspci -nnk | grep -A2 0280 01:00.0 Network controller : Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]  Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter [103c:831a]  $ iwconfig lo        no wireless extensions.  $ dmesg | grep iwl $ lspci -knn | grep -i net -A3 01:00.0  Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless  Network Adapter [10ec:c821] Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless  Network Adapter [103c:831a]  $ lspci -nn -d 10ec: 01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821] $ uname -a Linux jenn 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux   The network appears unclaimed.   I have seen other cases in which this commands output other options, but in my case, there is only that one.    Finally, there are no additional drivers, even though I am connected with memory that gives me internet.   I'm new in Linux distribution, so I'm really lost with this issue. Thanks in advance.


What sets a "Law" apart from a "Rule" or a "Principle"?

Basically, I understand the difference between a "Theory" and a "Theorem" but I am quite confused when it comes to "Law", "Rule" and "Principle". Can you make the differences clear to me?


I'm trying to render something with the Eevee render engine in the new Blender 2.8 beta version, but the render shows up only blank. This occurs on all blender files, and these files render fine on other computers. Perhaps the Microsoft Surface Pro I am using just isn't up to the task?  Cycles render works fine.   Here's a screenshot:   It'd be great if I could get some help! Thanks


Quality test for an hardware source of randomness

Say that I developed an hardware source of randomness, which I would like to use to seed a cryptographically secure random number generator.   How would I go about testing it? Are there standardized tests that one can use to check wether or not his source of entropy is reliable enough to seed cryptographic random number generation?  For example, the guys at onerng.info claim to generate the entropy any user needs to protect his privacy and blablabla. How do they substantiate their claim? How can random number generators be verified?


With editor status changes to Submitted to Journal After 5 weeks

May I please ask what does this mean. I submitted a manuscript to an Elsevier journal, for 5 weeks it had "with editor" status, now it has changed to "Submitted to Journal". What does this mean?


eventually I have made the decision to get rid of windows and go for ubuntu!! I had been thinking to do so for long time, but I was keeping putting it off. So, I am excited, but I have also started to hit the first issues :).  I now have a problem with skype, and that's why I am writing.  My ubuntu version is the following:  davide@Gis74:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 14.04.1 LTS Release:    14.04 Codename:   trusty   I installed skype a couple of weeks ago and it had worked fine until this morning. Since this morning I can no longer connect to it and I have been getting the following notification:  An error occurred, please run Package Manager from the right-click menu or apt-get in a terminal to see what is wrong. The error message was: 'Unknown Error: '' ("The cache has no package named 'skype-bin'")' This usually means that your installed packages have unmet dependencies  I did some research without too much luck. I am posting some of the commands output I seem to understand can be useful to debug the issue:  davide@Gis74:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done 0 to upgrade, 0 to newly install, 0 to remove and 26 not to upgrade.   davide@Gis74:~$ sudo apt-cache policy 'skype*:*' skype:   Installed: 4.2.0.11-0ubuntu0.12.04.2   Candidate: 4.3.0.37-0ubuntu0.12.04.1   Version table:      4.3.0.37-0ubuntu0.12.04.1 0         500 http://archive.canonical.com/ubuntu/ trusty/partner amd64 Packages  *** 4.2.0.11-0ubuntu0.12.04.2 0         100 /var/lib/dpkg/status skype4pidgin:   Installed: (none)   Candidate: (none)   Version table: skype-mid:   Installed: (none)   Candidate: (none)   Version table: pidgin-skype-dbg:   Installed: (none)   Candidate: 20130613+svn660+dfsg-1   Version table:      20130613+svn660+dfsg-1 0         500 http://gb.archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages skype-bin:   Installed: (none)   Candidate: (none)   Version table: skype-common:   Installed: (none)   Candidate: (none)   Version table: empathy-skype:   Installed: (none)   Candidate: 20130613+svn660+dfsg-1   Version table:      20130613+svn660+dfsg-1 0         500 http://gb.archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages pidgin-skype:   Installed: (none)   Candidate: 20130613+svn660+dfsg-1   Version table:      20130613+svn660+dfsg-1 0         500 http://gb.archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages pidgin-skype-common:   Installed: (none)   Candidate: 20130613+svn660+dfsg-1   Version table:      20130613+svn660+dfsg-1 0         500 http://gb.archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages    I was thinking to re-install/upgrade skype but I am not sure how to do it. Can anyone please help?  Many thanks, Davide


unix command to copy file from one server to another

I need to copy a file from one server to another. Here is my exact requirement. I am log in from server a and I have to copy a file from server b to server c . So what is the command for it ?


How to prove that $A-(B\cap C)=(A-B)\cup (A-C)$

Prove that $A-(B\cap C)=(A-B)\cup (A-C)$.   I have tried to prove it but I can't get precious proof. I am grateful if anyone give correct proof.


When should we use local classes? The Best practice approach?  Is it possible to make them abstract or static?  Any other solution to avoid them?


How can I download THEN install packages?

I know that when it comes to the Red Hat distribution, I can use the following commands to download a copy of the package and then separately install it. yumdownloader package_name yum install package_name  Is there an exact equivalent in Ubuntu that does both the operations separately, or does the following command do both? apt-get install package_name


Resetting an AppleID password when you don't have access to an IOS device

Okay, here is a kafkaesque situation:  A friend of mine broke her iPhone 7, to an extent that she can't even read the screen or reliably press it. She is setting up a borrowed iPhone 4S (with iOS 8)... but when introducing her iCloud credentials, the phone asks her for a verification code. This code is sent to her old iPhone... but since it's screen is broken, she can't read the code.  I've been trying to help her, but all the methods I've found (iforgot.apple.com, use "Find my iPhone" in my own phone) involved receiving a passcode in her old iPhone... the one that she where can't read the screen. The only alternative seems to initiate an account recovery, which may take days, and from what I've read () also involves receiving a verification code in the iPhone.  My friend does have a Mac signed into iCloud, and also access to the email address of her iCloud account. Isn't there a way to receive the verification code in the Mac, or through email? Maybe I'm missing it, but I haven't been able to find any way.


What free Remote Desktop (server) solutions are there?

I know Ubuntu comes with a "Remote Desktop" option that appears to be a straightforward VNC server, and I'm trying to understand the alternatives. Here are the possibilities I've heard about so far:   VNC  VNC + SSH Tunnelling NX Server, free edition FreeNX NeatX X2Go X11 Forwarding over SSH xrdp    I'm coming at this from a Windows user's perspective: To the best of my experience, RDP (aka Terminal Services) is a reasonably secure (barring mitm/server spoofing), efficient desktop sharing protocol with well-supported clients, that can be exposed to the internet when necessary without major fears of intrusion. To the best of my knowledge straight VNC is none of those things, which is where I get confused - why wouldn't a better desktop sharing technology be developed or used in the open-source world? I know VNC can be wrapped with SSH, but that seems beyond the reach of a casual user. X11 forwarding over SSH may be more or less efficient, I have no idea, but is definitely even more complicated, and doesn't (as far as I know) give you access to already-running stuff (no desktop sharing as such, just remote application running).  So, I'd like any feedback/preferences amongst these or any other "Free" desktop sharing options, using these criteria and/or any others:   Security (esp. for access across internet) Efficiency (bandwidth usage, responsiveness, etc) Free-ness, as in Speech (not sure where RDP or FreeNX lie for this) Free-ness, as in Beer (are there any commercial solutions with usable dependable free offerings?) Ease of use (server and client side) Cross-OS Client availability Cross-OS Server availability Support for independent sessions and shared (and/or "Console") sessions Ongoing support/maintenance/development   Thanks!


If $T^\ast=T^{2017}$ then $T$ is diagonalizable

Let be $T:V\rightarrow V,k=\mathbb{C}$ so that $T^*=T^{2017}$ $\implies$ $T$ is diagonalizable.   Well, the statement is from a T or F and I already know it's true. I am 99% sure it has to do with properties but I'm really confused by this subject. How can I deduce that the statement is true?  $T^*$ denotes the adjoint operator of $T$ (In case that is not the standar notation).


I have an HP box with a 32bit processor and 80gb hard drive that currently has XP pro as the OS. I downloaded Ubuntu to the hard drive  but can't get it to open or boot. I welcome any suggestions.


PHP files downloading instead of executing

I have what I understand to be a reasonably common problem-- Apache is downloading PHP files instead of executing them.  I've used the solutions on other threads as best as I was able and learned the following:    The PHP file itself is fine and runs perfectly on other machines The error occurs in both Chromium and Firefox, browser cache has been cleared Happens both inside and outside of /var/www/ PHP5 is installed, up to date, is loaded into Apache, and has executing permissions Apache server has been restarted after each potential solution PHP5 config files enables PHP in user directories I am able to use HTML files on localhost just fine, it's only PHP   The only solution I might have implemented incorrectly is the config files-- any answers regarding the configurations have pointed me to httpd.conf, while newer version of Apache seem to have multiple config files, so the specifics on which files to put Addtype commands in would be helpful.  It's also happening on another machine with Ubuntu, Apache, and PHP freshly installed, nothing else on it, so it seems unlikely that it would be anything in my machine specifically.  Version information on my machine: PHP 5.5.9-1ubuntu4.14 (cli), Server version: Apache/2.4.7 (Ubuntu), Ubuntu 14.04.3 LTS Release 14.04  Edit: Question is not a duplicate, and I have taken a look at other answers here-- as mentioned, I have tried Addtype alterations but am not quite sure where to put them due to httpd.conf being split into multiple configuration files. /etc/sysconfig/apache2 is not a valid path for me, and if that enables PHP5, PHP5 is already enabled anyway.


Full internal harddrive converted to ext4 file system, how to install Windows back again?

I had Windows 7 installed on my laptop, with hard drive partitioned. I installed Ubuntu formatting the drive as it didn't detect I had Windows 7 too already. It installed correctly, but now when I'm also trying to install Windows I don't have a drive of NTFS file system as it converted to ext4 completely (all 500 GB WD). Please help me in installing Windows too.


What are the basics of commands in Minecraft Java Edition?

What are the basics of Minecraft commands? If I were to start from scratch, with no knowledge on the topic, what are some things that I need to know?


I am using Ubuntu 12.04. I am new to Ubuntu. When I click on the internet icon in the upper-right-hand corner, it doesn't show any wireless networks under "wireless networks."  I went to Additional Drivers and found out that 'Broadcom STA wireless driver' is activated and currently in use. I searched internet but all the answers would tell me to install wireless driver which I already have. What might be the issue here? How can I troubleshoot the issue?  Any help is greatly appreciated.


Why is "For Sell" replacing "For Sale" in common usage?

I absolutely cringe when I read advertisements offering items "For Sell" rather than "For Sale."  I do not claim to have a good command of grammar, spelling, or appropriate American English usage.  I did work hard to acquire the limited skills I posses, and so it bothers me deeply when I regularly read "Sale" in place of "Sell" in ad.  What happened?  Why is this happening?


How do I move this slideshow to the center (horizontally) of the page?

I've already tried multiple answers on previous questions, but I can't seem to find out how to move my slideshow to the center of the page (horizontally). If I try to do so with text-align: center; it doesn't work. I am not that good in HTML and CSS, so any help is appreciated. The size of the slideshow is good, but the position needs to be center, instead of in the top left of my page. Padding also didn't seem to work.    Slider{   display: block;   width:90%;   height:92%;   background-color: #0AF8B3;   overflow: hidden;   position: absolute;   border: 2px solid red; }  Slider > * {     position: absolute;     display: block;     width:100%;     height:100%;      background: #FF8000;     animation: slide 12s infinite;     overflow: hidden; }  Slide:nth-child(1) {     left: 0%;     animation-delay: -1s;     background-image: url(Here's a link);     background-size: cover;     background-position: center; }  Slide:nth-child(2) {     animation-delay: 2s;     background-image: url(Here's a link);     background-size: cover;     background-position: center; }  Slide:nth-child(3) {     animation-delay: 5s;     background-image: url(Here's a link);     background-size: cover;     background-position: center; }  Slide:nth-child(4) {     left: 0%;     animation-delay: 8s;     background-image: url(Here's a link);     background-size: cover;     background-position: center; }  slide p {     font-family: Arial, Helvetica, sans-serif;     font-size: 40px;     text-align: center;     display: inline-block;     width: 100%;     margin-top: 560px;     color: black; }  @keyframes slide {     0% { left: 100%; width: 100%;}     5% { left: 0%;}     25% {left: 0%;}     30% {left: -100%; width: 100%;}     30.0001% {left: -100%; width: 0%;}     100% { left: 100%; width: 0%;} }

Photos
                   <slider>                     <slide>
A 2015
</slide>                     <slide>
V 2017
</slide>                     <slide>
A 2018
</slide>                     <slide>
F 2018
</slide>                 </slider>
Slideshow lorem ipsum.

     Thank you!


How to get started on this statistics problem?

Suppose $X$ and $Y$ are random variables that are independent also $X$ and $Y$ are uniformly distributed on the interval $(0, 1)$. If $Z=\max \{ X, Y \}$. Then find the probability that $Z \leq z$ and then determine the probability density function of $Z$.  Okay so I must admit I an trumped by this question but I think it's mainly to do with not actually understanding what I'm meant to do. Here are my issues:  1) Okay so $X$ and $Y$ are uniformly distributed on $(0,1)$ does that mean that it is $0$ elsewhere?  2) What exactly is $Z$ is it just the maximum value that either $X$ or $Y$ can take and how exactly do I interpret this? At the moment I'm just thinking of two graphs and $Z$ being the highest point that is taken on both graphs in $X$ or $Y$ since this is a uniform distribution then it will be the same highest point for all values in the interval on either $X$ or $Y$ whatever is highest. This is just intuition again I'm not sure.  3) What is  $P(Z \leq z)$ actually meaning? I'm guessing this is because I'm confused on what $Z$ is and so I can't get this either.  If anyone could help me on this it would be greatly appreciated thanks!


FTP access error from Safari in iOS / macOS after updating OS

I have a ProFTPd Server where the users can access to files using links dynamically generated in a website. The link URL follows the pattern   With the new iOS 11 and new macOS, users cannot access the FTP server. They get a "don't have permission to open" error.   Surprisingly, on a Mac, hovering over the link and using contextual menu->“download attached file” will download the file.  Any iPhone or Mac running previous OS versions can download the files normally.  Looking through FTP logs confirms credentials are not sent by Safari.  Using any other browser (Chrome, Firefox) works fine as well.  Forcing users to an external app is not an option.  Any idea?  EDIT: I have tpcdump the connection and I see that Safari changes request user and password to: user-> anonymous pass-> cfnetwork@apple.com  So the FTP server rejects the connection to a anonymous user.


How to get the Pokeflute in Firered and Leafgreen?

How do you get the Pokeflute in Pokemon Fire Red and Leaf Green


How to install Google-Earth 64bit in Ubuntu 13.10, ia32-libs Dependency error

I want to install Google-Earth & it requires ia32-libs. So, I did apt-get install ia32-libs but error pops as:  Reading package lists... Done Building dependency tree        Reading state information... Done Package ia32-libs is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it:   lib32z1 lib32ncurses5 lib32bz2-1.0   How can I install ia32-libs?


I'm currently a second year undergraduate student in mathematics and I'll have finished all my degree requirements two years early, but I'm at an absolutely great department so I don't want to graduate ASAP because I have a lot of opportunities here.  However, out of curiosity, I want to know if in a year or so if I could apply to graduate school and see if I can get in, and if I do, go, since I will have the option to graduate, or otherwise try again the year after. Is this frowned upon? Especially if I'll be applying to some of the same places twice? I'll probably be taking prelim courses anyway, so the course load isn't something I'd be missing out on, but the department is.


Independent t-tests. One- or two-tailed?

For an independent t-test, if my hypothesis states there will be no significant difference between the two groups, is that a one- or two-tailed test?


Why is my rendered my image not being saved as a file?

I tried to render something on blender and it just didn't work. It started rendering like usual but at the end of the render it didn't give me any files... It was suppose to give me a .png in "desktop" but instead it just rendered and didn't give me the render!


What are workspaces in Ubuntu? What do these workspaces do exactly? Is their any documentation I can refer to?


TV series about two partners who had a time-travelling pocket watch, went back and met Edison

In the 1980/90s there was a TV show airing in the Eastern USA about two partners who had this pocket watch that was actually a time machine.  I distinctly remember an episode where the two time traveled to Thomas Edison's time and met him. Mr. Edison pick pocketed the watch and completely disassembled it to see how it worked. Panic ensued till he was able to reassemble it. Apparently in the the process it taught Mr. Edison how a light filament works and was the catalyst for him inventing the light bulb.  Anyone know what this series was called?


Choosing "something else" when installing

I am in the process of installing Kubuntu 14.4 on my Windows 10 computer.  Normally I would simply use the whole disk, as I don't really like Windows, however there are a few programs I like to use, and want to keep it. I have tried this in the past, and failed.  Ending up erasing the entire disk and using it for Linux  (have used several flavors in the past). My problem is configuring the hard disk.  I have never quite been able to understand partitioning.  I usually screw it up, one way or another.  The last time totally messing up a hard drive in my laptop, to the point I had to install a new one and start from scratch (hey now I have a better hard drive with double the space) I always manage somehow to mess up the order of the partitions. Don't ask me how.  It should be fairly straightforward.  The last time I tried I ended up with no mount point, and could not get anything to install. I would like to see some sort of graphic showing just what I will encounter when I choose "something else".  (I have already tried Kubuntu on this machine and it worked fine, even the touchscreen). I remember trying to install another distro some time ago, and being presented with questions I had no idea how to answer, regarding formatting the disk.  So if there is someone out there who has the patience to walk me through this, I would appreciate it. I also have problems converting MB's to GB's. For some reason it always is much less than I thought. I have a 2 TB hard drive. So figuring it out in MB's is a bit confusing.  Hey for years, I couldn't make change for a dollar! What I have now is two small volumes at the beginning that simply say "Healthy" and nothing else.  I assume they are something that came with my HP 23 Aio.  Both are in the  milibytes.  Then There is C drive which is Windows. I have 196 GB free out of 496 GB. There is a recovery drive D marked "new volume" that is 450MB, Then there is a drive E that is the largest being 1.5 GB.  It is also marked "new volume" and appears to be empty. At least that is what the file manager says. I really don't want to shrink C drive as I have quite a few video and music files stored. Which is why I believe the drive is more than half full.  Windows not showing what is stored just where. That leaves E, which I had tried to shrink, and D which I had deleted after making a recovery USB.  Those two mistakes left me with unallocated space after D drive, and after E drive.  So I restored from a recovery USB (it's still doing its thing two hours already).  Supposedly that will restore everything to the way it was before I tried to manipulate the partitions. I have my important files saved to an external HD.


A connect to Computer B using SSH. How to launch firefox in Computer A?

I connect to computer B this way.  ssh -X computerB@10.2.1.123   Now when I launch firefox it launches on computerB  firefox   How do i make it launch in computer A? Because I dont have access to the screen of computer B.


Problems with references to figures and tables

I am finishing my course conclusion work writing using LaTeX, and insert the images I used standard codes, such as  \begin{figure}[!h] \centering \includegraphics[width=13cm]{lixeoutroa} \caption{.....} \label{li(x)exlnx} \end{figure}   This compiling correctly, this all normal, but I do not know how do I put the references in the figure below the figure of the name, I wanted it to be placed (very close) the references of the figure or table without appearing in the list of figure later.  Sorry for writing, do not speak English, I use the translator. It is also the first time I have any questions TeX here, always use questions in mathematics, then also excuse the way of writing.


Regarding evaluation of the limit of the sequence $\Bigl(\frac{1}{n}\Bigr)^n+\Bigl(\frac{2}{n}\Bigr)^n+ \cdots \Bigl(\frac{n}{n}\Bigr)^n$

The problem states as,  Prove the sequence $$S_n= \Bigl(\frac{1}{n}\Bigr)^n+\Bigl(\frac{2}{n}\Bigr)^n+ \cdots \Bigl(\frac{n}{n}\Bigr)^n$$ converges to $\frac{e}{e-1}$.  A simple (possibly wrong) solution:  We can  also write the sequence as $$S_n=\Bigl(\frac{n}{n}\Bigr)^n+ \Bigl(\frac{n-1}{n}\Bigr)^n+\Bigl(\frac{n-2}{n}\Bigr)^n+ \cdots +\Bigl(\frac{2}{n}\Bigr)^n+\Bigl(\frac{1}{n}\Bigr)^n$$   Where we just rearranged the terms of the sequence. Since the series $\lim \limits_{n \to \infty} S_n$ is absolutely convergent, the rearrangement will not affect the value of the limit.  Now by passing the limit to $S_n$ $$\lim \limits_{n \to \infty}S_n=\lim \limits_{n \to \infty}\Bigl(\frac{n}{n}\Bigr)^n+ \lim \limits_{n \to \infty}\Bigl(\frac{n-1}{n}\Bigr)^n+\lim \limits_{n \to \infty}\Bigl(\frac{n-2}{n}\Bigr)^n+ \cdots $$ or, $$\lim \limits_{n \to \infty}S_n=1+e^{-1}+e^{-2}+\cdots$$ or, $$\lim \limits_{n \to \infty}S_n= \frac{e}{e-1}$$  Why I'm considering it wrong:  I know the basic limit theorem $\lim(X_1+X_2)=\lim X_1+\lim X_2$ and by mathematical induction, the theorem is true for sum of any finite number of $X_n$'s. However, the theorem does not hold good if $n \to \infty$. For example, let us take a sequence $$a_n= \frac{1}{n^2}+\frac{2}{n^2}+\cdots \frac{n}{n^2}$$  Where $\lim\limits_{n \to \infty}a_n=\frac{1}{2}$, although if we take limit term by term in the summand (i.e expression of $a_n$), we would get $\lim\limits_{n \to \infty}a_n=0$.  Now coming back to our original sequence of concern, it is fairly easy to show that$\lim\limits_{n \to \infty}S_n \leq \frac{e}{e-1}$, since the function $f(x)=\Bigl(1-\frac{k}{x} \Bigr)^x$ is monotonically increasing $\forall x \geq 1$ and $\forall k \in \Bbb N$.  Now we got somehow to show $\lim\limits_{n \to \infty}S_n \geq \frac{e}{e-1}$, in order to use the squeeze theorem to get the desired result.  However, I'm unable to make any significant progress to find the same. So my questions are,  i) How to show $\lim\limits_{n \to \infty}S_n \geq \frac{e}{e-1}$  or what can be some alternate method to find the desired limit of the sequence?  ii) Moreover, are there any general results when $\lim(X_1+X_2+ \cdots) = \lim X_1+ \lim X_2+ \cdots$ holds even when the number of terms in the summand are infinity?


Graphically, it is easy to see but to analytically derive the following inequality,   $$|e^x-e^y| \le |x-y| \ \ \ \ \forall x,y \in (-\infty,0]  \ \ \ \ (1)$$  do I just apply the MVT and show that the derivative of at a certain c between x and y equals $0$ hence the ratio is less than 1 and thus we derive $(1)$


Lost passport with US visa (Non Immigrant) in USA , can I get my US Visa replaced in USA?

I came here 2 months ago to visit my children in USA and last month I lost my passport with valid 5 years multiple entry visa. My visa was still valid for another 2 years which I have already lost. In the meantime I got my new passport from embassy of  Philippines and would like to ask a question:  Is it possible to replace my lost US visa in new passport in USA?


Neural Net vs Multiple Linear regression?

I am trying to understand what neural nets have in common with multiple linear regressions. Is is correct that every node in every layer (not counting the input layer) is just a multiple regression with the variables being the nodes in the preceding layer? I've included a  to show what I mean. How is this understanding wrong/right?


I'm writing a book in a language that has lengthy words yet poor support/scope for hyphenation. My current book is far from justified. I would like to manually mark places within words where LaTeX could introduce a space if necessary (break a single long word into two words) instead of optional hyphens.  I believe \allowbreak should work but I can't get it to work in normal body text. Is there an alternative to allowbreak? Should I enclose my entire book text within a \texttt (which I think is necessary for allowbreak but not completely sure)?  Basically I want to know if there is something like \abc which can be introduced into something like verylongword\abcmorewords resulting in either verylongwordmorewords or verylongword morewords.


Equation and subequations numbering in table environment

I'm writing my thesis with latex and I have a problem with this table setting. I would like to have all the equations aligned on the left and also the first and the last rows less height. Here is my code  \begin{table}\centering \begin{tabular}{ m{3cm} m{10cm} }\hline Continuity & {\begin{equation} \frac{\partial \rho}{\partial t}+\nabla\cdot\left ( \rho\mathbf{V}\right )   =0\label{continuity_1}\end{equation}}\\ x-momentum\newline\newline y-momentum\newline\newline z-momentum & {\begin{subequations}\begin{align} &\frac{\left ( \partial \rho u\right ) }{\partial t}+\nabla\cdot\left ( \rho u\mathbf{V}\right ) = -\frac{\partial p}{\partial x}+\nabla\cdot\left ( \mu\nabla u\right ) +S_{Mx}\\ &\frac{\left ( \partial \rho v\right ) }{\partial t}+\nabla\cdot\left ( \rho v\mathbf{V}\right ) = -\frac{\partial p}{\partial y}+\nabla\cdot\left ( \mu\nabla v\right ) +S_{My}\\ &\frac{\left ( \partial \rho w\right ) }{\partial t}+\nabla\cdot\left ( \rho w\mathbf{V}\right ) = -\frac{\partial p}{\partial z}+\nabla\cdot\left ( \mu\nabla w\right ) +S_{Mz} \end{align}\label{NS_eq1}\end{subequations}}\\ Energy & {\begin{equation} \frac{\left ( \partial \rho e\right ) }{\partial t}+\nabla\cdot\left ( \rho e\mathbf{V}\right ) =-p\nabla\cdot\mathbf{V}+\nabla\left ( k\nabla T \right ) + \Phi + S_{i} \label{energy_1}\end{equation}}\\ \hline\end{tabular}\caption{Governing equations of flow for a Newtonian fluid}\label{NS_eqt}\end{table}   This is the result


create a map with keys = fields names and values = query result

I am trying to create a map from a result of a SOQL query, this map contains the name of the fields as keys and the values of the query as values for example:     List accounts = [SELECT Name, Email FROM Account];   and the map Map has this structure:  key         value name        123  email       test@test.co.uk   any ideas please ?


code is not working as expected; array doubling; pass by reference

i was working on stacks when i came across a problem where i had to double the array. i used this code which did not work but it should have.   class ArrayDouble { public static void main(String []args) {     int arr[] = new int[10];     sizeChange(arr);     for(int i=0;i<arr.length;i++)         System.out.print(arr[i]+ " "); } public static void sizeChange(int arr[]) {     arr[0]=1;     arr = new int[2*arr.length];     arr[1]=1; } }   from what i have seen, any changes that takes place in an array which has been passed as a parameter, the changes reflect back in the actual parameters right? So why doesn't the change in size of the array is reflected in the original parameter?  Also, arr[0] becomes 1 in the original array but arr[1] remains 0. why does that happen?  PS: the problem was solved when i changed the return type of sizeChange to int[] and passed arr of sizeChange and collected it into the Main arr. So i dont need the correction of the code, i just need the answer as to why this is happening.  Thank you in advanced.


What happens when you close a c++ console application

I guess the question says it all, but, what happens if someone closes a c++ console app? As in, clicks the "x" in the top corner. Does it instantly close? Does it throw some sort of exception? Is it undefined behavior?


What is the difference between clothing and clothes?

There is a story that  a worker at the airport, while unloading a number of boxes,  accidentally discovered a man who was hiding in a box in order to save the cost of the trip.  The man was lying on the top of a pile of WOOLEN GOODS.   And my question is if I intend to replace WOOLEN GOODS with some other type of goods, for example, CLOTHES or CLOTHING, which one is better?  And what is the difference on this occasion?  Please explain in detail, thanks!


To how much radiation are you exposed on a transcontinental flight?

You often hear people object to being scanned because of the "" argument. I find this always quite amusing from people just being exposed to higher radiation levels during the average airplane flight. I once read a article on the levels of being exposed to radiation in everyday live, but I lost the article. I remember that the exposure in planes was quit substantial. Somewhere in the order of one body scan is equal to 10 minutes of your average transcontinental flight.   So my question is, to how much more radiation are you really exposed while traveling in an airplane, compared to staying on the ground?


I wanted to know what is the best way to prevent SQL Injection & XSS in PHP.  To prevent SQL Injection, we can escape the user input using mysql_real_escape_string() along with strip_tags(). Can we do anything else to make it more secure.  And, to prevent XSS, we can use strip_tags() along with strong data validation at server side.  Also, while sending the output to browser, we can use htmlspecialchars() to prevent the browser from applying any unintended meaning to any special sequence of characters that may be found.  Anybody can tell me, what else can be done to prevent the same?


I am in a sorta big trouble.  I ran into problems with Win8 and after fading up about it I have installed Ubuntu 12.04 LTS.  I was so frustrated I replaced Windows 8 and made a huge root directory of 9XX GB.  Please tell me how can I make three partitions of 250gigs so that I can install Windows 7 in one of them.


How can I add new autostart programs in Lubuntu?

In Lubuntu, there's no 'Add New Program...' button in Desktop Session Settings. Is there an easy way to add new autostart programs in Lubuntu?


piping ls to other programs vs loop globbing

I am reading about  and the examples given are about looping ls with for/while. The article title says 'parsing ls' - does that mean piping the output of ls to awk and other programs is just as bad?   ls /my/path/ | awk '{print $NF}'   When piping output of ls to other programs, is it better to loop a glob instead?  for p in /my/path/*; do     echo "$p" | awk '{print $NF}' done   I assume since ls can potentially output newlines etc piping ls directly to other programs is also 'a bad practice' but I don't see much information in that respect.


"would rather" + subject + past subjunctive

What is the difference between:   The company would rather each employee be provided with ID card.  The company would rather each employee were provided with ID card.


Continuous maps between compact manifolds are homotopic to smooth ones

If $M_1$ and $M_2$ are compact connected manifolds of dimension $n$, and $f$ is a continuous map from $M_1$ to $M_2$, f is homotopic to a smooth map from $M_1$ to $M_2$.   Seems to be fairly basic, but I can't find a proof. It might be necessary to assume that the manifolds are Riemannian.  It should be possible to locally solve the problem in Euclidean space by possibly using polynomial approximations and then patching them up, where compactness would tell us that approximating the function in finitely many open sets is enough. I don't see how to use the compactness of the target space though.


How many outcomes are there for a race with $n$ horses?

In a race there are $n$ horses. In that race, more than one horse may get the same position. For example, a race with 2 horses can finish in 3 ways:   Both first Horse 1 first and horse 2 second Horse 2 first and horse 1 second   How can I find out the number of ways the race can finish for any $n$. Is there any recurrence relation to calculate the number of ways? I need help to understand the solving way with better explanation.


Ubuntu login screen wallpaper switches to match user wallpaper now. How to disable?

I recently reinstalled Ubuntu 14.04 and Ubuntu Tweak to change the login screen wallpaper. Somewhere along the way, the login screen wallpaper now matches the user wallpaper background, overriding the change I set in Ubuntu Tweak. How can I change it back so that the user wallpaper isn't shown on the login screen? I've had this happen before on a different machine and I cannot for the life of me work out how to change it back. I used the dconf-editor to check the settings under ubuntu-greeter and it's correct, but the login screen always switches to the user wallpaper on boot now, although I see my Ubuntu Tweak set login screen wallpaper briefly before it changes to the user wallpaper. Little help?


In Java, by new operator is it possible to create different objects with same String content?

In the below code, by hashCode() it seems 2 objects got created. Then although s1 == s3 is giving true, but why s1 == s4 is giving false ?  public class Main  {  public static void main(String[] args) {     String s1 = new String("jordi") ;     String s2 = s1.toUpperCase() ;     String s3 = s1.toLowerCase() ;     String s4 = new String("jordi") ;     System.out.println(s1.hashCode());     System.out.println(s2.hashCode());     System.out.println(s3.hashCode());     System.out.println(s4.hashCode());     System.out.println(s1==s2);     System.out.println(s1==s3);     System.out.println(s1==s4); }   }  This gives output as :     101312786      70775026      101312786      101312786      false      true      false


Does the fact that matrices $A, B$ are similar imply that $A+cI$ is similar to $B+cI$?

Let $A, B$ be similar $n \times n$ matrices over (say) $\mathbb{R}.$  Is it the case that $A+cI$ is similar to $B+cI$?    Here is an argument (which seems too good to be true...)  Since $A, B$ are similar, they have the same Jordan form. So we can write $PAP^{-1}=QBQ^{-1}=J$ for $P, Q$ invertible matrices.   Hence we have $P(A+cI)P^{-1}=PAP^{-1}+cI= J+cI.$ Similarly, we find $Q(B+cI)Q^{-1}=J+cI.$  Hence $A+cI$ and $B+cI$ are both similar to $J+cI$ and hence similar to each other.   Is this correct?


I am looking for a exact derivation of a relation between redshift $z$ and distance $d$.  What I know is the definition $$z=\frac{\lambda_{\text{observed}}}{\lambda_{\text{unshifted}}}-1=\sqrt{\frac{1+\frac{v}{c}}{1-\frac{v}{c}}}-1$$ and that the Hubble constant $H$ as a function of $z$ is: $$H^2=H_0^2\left(\Omega_m\left(1+z\right)^3+\Omega_{\Lambda}\right)$$  How can I use this to derive the distance?


How do I get my players to be more decisive and take the initiative?

I've been running HotDQ with a group of people for about 9 months now (about 20 sessions; we're on Ep 6.)  My current frustration is that things go along OK as long as I'm narrating and asking occasional questions. But when we're in an area that's less THIS IS THE PLOT, and more freeform - like right now when they've mostly-successfully infiltrated a stronghold, and business will continue as usual while they explore/until they make something happen - it's like pulling teeth to get them to do anything.   I've formally surveyed the group and almost unanimously, they said they were extremely interested in accumulating cool powers (and hence levels), advancing the story, and exploration. And fully unanimously, they said they're having fun, but the pacing of the game is too slow... and yet any time I try to sit back a bit and say "OK, it's up to you and your characters to decide what happens next, so go for it - I'll just respond to whatever you tell me," the game slows to a crawl. (Combat is also slow, but that issue is well addressed elsewhere on this site.)   To be clear, it's not like they're timid in-character - they're fine with throwing themselves into dangerous situations and even being a bit reckless when it's in character, and they're not actively searching for traps or anything (though I think there might be some subconscious hesitation about the consequences of making decisions one way or the other.)   Two of the group are relatively new to roleplaying, three I've been gaming with for a few years, one more has played other games of DND a bit, but not with me. So it's not like they're totally new to RPGs, though all could probably be classed as novice roleplayers. I think it's more a basic personality thing - most of the players are the type who, in a classroom, wouldn't raise their hand or volunteer unless called on. When I've played with some of the same people, but with an additional player who, like me, is more assertive, more extroverted, and more comfortable with formal improv, everything went much faster because she was more decisive about making things happen - though she did tend to steal the spotlight, as one might expect in that situation, so there were times it felt like the two of us were the only ones really playing (and we got this feedback from other players as well).   I could, of course, just grab the reins more - "Ok, sounds like you're good to move into the next room. This one has a large desk you'll probably want to search. Roll Investigation." But that feels like taking too much away from the players; I really want them to make their own decisions and be actively involved.   So here's my question - given that we've talked about it, and everybody wants the game to move faster yet can't seem to make it happen, how can I get my players to act less like passengers waiting for someone else to tell them what to do, or discussing every little detail in committee, and more like heroic adventurers who can make a plan and confidently execute it until something significant changes?


How to show the last queries executed on MySQL?

Is there any query/way to show the last queries executed on ALL servers?


Let $X_1,X_2,\ldots,X_n$ and $A_1,A_2,\ldots,A_n$ be real numbers taken at random, and $\alpha\gt0$. Show that: $$\sum_{k=1}^n |X_kA_k| \le \frac{1}{\alpha}\sum_{i=1}^n X_k^2 + \frac{\alpha}{4}\sum_{k=1}^n A_k^2$$


Notification for reviews shows way too many

Since a , I see more than I should:    I see no reason to see 134 posts are awaiting review, when there is literally nothing I can do about them. I think it is a bug, because notification is meant as something that will make me act. When I know I usually can't, obviously I will start to ignore it.  If it's not a bug, please remove bug tag and explain how it is supposed to be useful, or how can I switch to only seeing notifications about things I can act on.  Note that apaprently there are no flags for me, neither. I see only stats, migrated, close, delete, there, as if there was no flags waiting:    If you expect us to click on it every few minutes  just to see personalized numbers next to queues, why don't you simply query for personalized numbers every few minutes and cache them for us? It should cost you similar, in database usage, and will save us a lot of clicking and frustration.  If all this number means is "there might be reviews, or not" or "for sure there are none"  it would be simpler just to hide "review" link in the second case. We don't need two links with the same function next to each other, thank you, one is enough, and meaningless numbers are only irritating.


QGIS equivalent to ArcGIS Aggregate Polygons?

I am looking for a tool in QGIS 2.40 that performs the function ArcGIS refers to as . Basically it takes a group of polygons within a specified distance and creates a concave hull around them.  Does anyone know if this functionality (or anything similar) exists within QGIS currently?


Messed up user interface in wireframe/solid mode

I loaded a blend file I've been working on, and it looks like this in solid/wireframe mode.  In addition to seeing nothing in the viewport other than the weird structure with two green rectangles (which looks nothing like what I was working on, incidentally), the gizmo also seems to have gained little box symbols that weren't there before. I'm guessing I must have hit an incorrect hot key doing another operation but I don't know what.  Selecting "restore factory defaults" doesn't help because as soon as I load the .blend file the same issue arises.  Other .blend files don't appear to be affected. The actual models/materials/etc still seem to be there (they show if I put the editor in material preview or render preview mode, and I can still render what the camera was last looking at), but in wireframe/solid mode the viewport is basically unusable. Additionally, whilst mesh editing seems to work fine in material/render preview mode, I can't edit curves or paths in any mode because I can't select any control points (except by doing select all). What's happened?  Have I put the editor into some kind of unusual mode?  How do I get out of it?


Consider the smallest number in each of the $n\choose r$ subsets (of size $r$) of $S=\{1,2,\ldots,n\}$...

Consider the smallest number in each of the $n\choose r$ subsets (of size $r$) of $S=\{1,2,\ldots,n\}$.Show that the arithmetic mean of the numbers so obtained is ${n+1}\over{r+1}$. I have no idea, how to solve it.It would be better if the solution has bijection. Please help!


Why do we need an open set to define differentiability?

The general definition of a differentiable mapping is,  Let U be an open set in Rn, and let ‘a’ be in U and f:Rp. Then f is a differentiable mapping at ‘a’ if there exists a Df(a) in Hom(Rn, Rp) such that;  lim┬(x→a)〖(||f(x)-f(a)-Df(a)(x-a) ||)/(||x-a||)〗=0  Why is U necessarily an open set?


What adapter do I need to mount an old Minolta lens to a Canon EOS camera?

I have an old Minolta Maxxum 7000 camera and 50mm lens (photos below). I would like to mount the lens on my Canon 5D Mark II. Is  the one I need?


Elements of the dicyclic group of order 12

I'm studying group theory and now I'm analyzing non-abelian groups of order 12. I see that the dihedral group $D_6$ can be expressed by  $$D_6=\langle a,b : a^6=1, b^2=1, aba=b\rangle =\langle 1,a,a^2,a^3,a^4,a^5, b, ba, ba^2, ba^3, ba^4, ba^5\rangle,$$ and the alternating group $A_4$ by $$A_4=\langle 1, (123),(132),(124),(142),(134),(143),(234),(243),(12)(34),(13)(24), (14)(23)\rangle.$$ I want to know what are the elements of the dicyclic group $\text{Dic}_3$ defined as $$\text{Dic}_3=\langle a,b : a^6=1, b^2=a^3, bab^{-1}a=1\rangle.$$ Any help would be appreciate.


\foreach not behaving in axis environment

Am hesitant to ask yet one more embarrassing question, but I can't seem to see the problem with the \foreach in the MWE. It should produce several horizontal lines but only produces the one with the yValue as specified in the \newcommand{\yValue}{0.3}:  Code: \documentclass{article} \usepackage{pgfplots}  \newcommand{\yValue}{0.3}  \begin{document} \begin{tikzpicture} \begin{axis} [  ymin=0,  ymax=1,  xmin=0,  xmax=1, ]  \foreach \yValue in {0.00,0.1,...,1.00} {     \draw [red] (axis cs:0,\yValue) -- (axis cs:1,\yValue); }  \end{axis} \end{tikzpicture} \end{document}


How do I execute code AFTER a form has loaded?

In .NET, Windows Forms have an event that fires before the Form is loaded (Form.Load), but there is no corresponding event that is fired AFTER the form has loaded.  I would like to execute some logic after the form has loaded.  Can anyone advise on a solution?


Brute-force 4 digit pin with pass using shell script

I am doing some challenges. This is one them. I am trying to brute-force 4 digit pin with the password to get my desired answer. After connecting to the port It prompts me to enter the password then space then 4 digit pin. I tried to brute-force the pin using the script:  #!/bin/bash   nc localhost 30002   sleep 2    for i in {0000..9999};       if [[ $(echo 'UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $i' </dev/stdin) = ^Wrong*]];                         then          continue       echo '[+] Pincode Cracked! Pincode = $i'       fi   done  but it seems that this doesn't input the pass and pin to stdin, before i tried doing something like this -> if [[ $(echo 'UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $i') = ^Wrong* ]]; What am I doing wrong here? UPDATE: Okay, so after researching around. I wrote this: for i in {0000..9999} do     if [ (echo "UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $i" | nc localhost 30002 | grep -o Wrong) == "Wrong" ]    then       sleep 0.1       continue    fi    echo "- - - - - - - - - - - - - - - - - - - - - - - - [$i]" done  This might even work but as you can see it opens new connections in the loop which makes it really slow and exhaust the system.


What are the popular theories regarding how our blood divided into 4 groups. Particularly I'm interested in whether this was originally linked to disease.  Thanks for your answers, useful articles and further reading would also appreciated.


Conjunction Puzzle: Is this clause dependent or independent?

Third grade teacher here. I plan to teach students to distinguish between simple, compound and complex sentences — but only if I can demonstrate a clear and meaningful difference between the latter two!  Complex or Compound? Each sentence in the following pairs is similar to its partner.   All dogs are mammals, so huskies are mammals. All dogs are mammals, therefore huskies are mammals. I come bearing soup, for Kate is sick. I come bearing soup, because Kate is sick.   Are the sentences above complex or compound?   First, we need to decide whether each italicized clause is independent or dependent. To me, they all look dependent. If that is the case, there's not much need to teach about compound sentences. Is there a meaningful difference between the sentences in each pair that I am missing? (Are the FANBOYS as special as they'd like to think?)


How to calculate $\int_{0}^\infty \frac{dx}{(x^2+ax+b)^{\frac{3}{2}}}$?

What is $$\int_{0}^\infty \frac{dx}{(x^2+ax+b)^{\frac{3}{2}}}$$  Starting with a very non-trivial analysis question, this is what I have managed to boil it down to. I do not know the standard computation procedure, substitutions for this type of integrand. Thanks in advance for help!


Question : Is the following true for any $m\in\mathbb N$?   $$\begin{align}\sum_{k=1}^{m-1}\frac{1}{\sin^2\frac{k\pi}{m}}=\frac{m^2-1}{3}\qquad(\star)\end{align}$$   Motivation : I reached $(\star)$ by using computer. It seems true, but I can't prove it. Can anyone help?  By the way, I've been able to prove $\sum_{n=1}^{\infty}\frac{1}{n^2}=\frac{{\pi}^2}{6}$ by using $(\star)$.  Proof : Let  $$f(x)=\frac{1}{\sin^2x}-\frac{1}{x^2}=\frac{(x-\sin x)(x+\sin x)}{x^2\sin^2 x}.$$ We know that $f(x)\gt0$ if $0\lt x\le {\pi}/{2}$, and that $\lim_{x\to 0}f(x)=1/3$. Hence, letting $f(0)=1/3$, we know that $f(x)$ is continuous and positive at $x=0$. Hence, since $f(x)\ (0\le x\le {\pi}/2)$ is bounded, there exists a constant $C$ such that $0\lt f(x)\lt C$. Hence, substituting $x={(k\pi)}/{(2n+1)}$ for this, we get $$0\lt \frac{1}{\frac{2n+1}{{\pi}^2}\sin^2\frac{k\pi}{2n+1}}-\frac{1}{k^2}\lt\frac{{\pi}^2C}{(2n+1)^2}.$$ Then, the sum of these from $1$ to $n$ satisfies  $$0\lt\frac{{\pi}^2\cdot 2n(n+1)}{(2n+1)^2\cdot 3}-\sum_{k=1}^{n}\frac{1}{k^2}\lt\frac{{\pi}^2Cn}{(2n+1)^2}.$$ Here, we used $(\star)$. Then, considering $n\to\infty$ leads what we desired.


creating folders in remote repository using jgit

I am using Jgit api. I am able to create files in git remote location using the cloneRepository method.    Similarly I can add files using the addCommand. The requirement now is to create folders or update an existing folder with files in local and to push, commit the same to remote repository - .  I tried modifying the same code that we use for creating a file, but it is not working.    How can I achieve this? Code used for adding a file:   File file = new File(Trial.localPath + "\\" + fileName); file.createNewFile(); UsernamePasswordCredentialsProvider upc = new UsernamePasswordCredentialsProvider(                     userName, password); git = Git.cloneRepository().setURI(remotePath).setDirectory(puppetDirFile).setCredentialsProvider(upc).call(); git.add().addFilepattern(fileName).call();   git.commit().setMessage("Added "+ fileName).call();  PushCommand pc = git.push(); pc.setCredentialsProvider(upc).setForce(true).setPushAll(); pc.call(); git.getRepository().close();   modified for adding folder :   File file = new File(Trial.localPath+"\\ProjectA");         if (!file.exists()) {             if (file.mkdir()) {                 System.out.println("Directory is created!");             }         } git.add().addFilepattern("projectA").call();     git.commit().setMessage("Added "+ "ProjectA").call();   then rest pushed as the same above code.


Can't detect second Monitor DVI Debian Jessie

My Pc does not detect the second monitor attached on DVI, in preferences->monitor it show only main monitor.  xrandr output: xrandr: Failed to get size of gamma for output default Screen 0: minimum 640 x 480, current 1920 x 1080, maximum 1920 x 1080 default connected primary 1920x1080+0+0 0mm x 0mm    1920x1080      0.00*     1280x1024      0.00      1024x768       0.00      800x600        0.00      640x480        0.00    lspci  00:00.0 Host bridge: Intel Corporation Sky Lake Host Bridge/DRAM Registers (rev 07) 00:02.0 VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 06) 00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31) 00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31) 00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] (rev 31) 00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #5 (rev f1) 00:1d.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #9 (rev f1) 00:1d.1 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #10 (rev f1) 00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31) 00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31) 00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31) 00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31) 01:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 04) 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)  CPUINFO processor       : 0 vendor_id       : GenuineIntel cpu family      : 6 model           : 94 model name      : Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz stepping        : 3 microcode       : 0x9e   The Graphic card should be an Intel 530, any help would be appreciate.


How to block-out part of beamer-slides for "weather-man"

I want "weatherman"-functionality in my video-presentations, i.e., I'm in front of slide in say lower right corner (size e.g. 5cm x 5cm). Hence, I don't want text to run into that area where my body/head is going to be. Of course, I could cut lines manually, but it would be super-cool to have a template where the lower right corner of every slide, say size 5cm x 5cm (a quite big chunch of a Beamer-slide), is not "writeable" for text or lists and text is broken automatically. Is this doable? EDIT: Just changing margins is not what I look for. But in order to speak to «margins», what I want to acheive is small left and right margins for top part of slide (wide textwidth), but a very large right margin in the lower part of the slide (same left margin). The wide right margin in lower part would give room for the «weatherman», while the narrow right margin in top part would allow text flow «over» the «weatherman».


I have a shell scripting request. I haven’t spent much time figuring it out myself yet, but I want to try and convert animated gifs into sprite sheets for use in SDL game development. I know how to break an animated gif into a series of images: convert animation.gif target.png, but not how to string them together end to end, in a single image file.   Is there a shell command that can help me create a single sprite sheet out of multiple images?


String Comparison error in a android code

I am using the simple code for Sqlite database saving and retrieval. My problem is my code takes always the else part even the strings are same.           Toast.makeText(getApplicationContext(), "No UName: "+utext+","+str+"; Pswd: "+ptext+","+str1, Toast.LENGTH_LONG).show();  instead of,     Toast.makeText(getApplicationContext(), "Yes UName: "+utext+","+str+"; Pswd: "+ptext+","+str1, Toast.LENGTH_LONG).show();  I checked the output with toast and with debug mode. The value of utext is equal to str and the value of ptext is equal to str1. Is anything I made mistake here? I don't find anything.    public void onClick(View v) {             utext=t1.getText().toString();             ptext=t2.getText().toString();              Cursor c = db.rawQuery("SELECT * FROM " + tbl_name+" WHERE USERNAME= '"+utext+"' AND PASSWORD= '"+ptext+"'", null);               if(c.moveToLast() ) {                       str=c.getString(c.getColumnIndex("USERNAME"));                       str1=c.getString(c.getColumnIndex("PASSWORD"));                       Toast.makeText(getApplicationContext(), "True : "+str+", "+str1, Toast.LENGTH_LONG).show();               }               else                   Toast.makeText(getApplicationContext(), "FALSE", Toast.LENGTH_LONG).show();               if(str==utext || str1==ptext)                   Toast.makeText(getApplicationContext(), "Yes UName: "+utext+","+str+"; Pswd: "+ptext+","+str1, Toast.LENGTH_LONG).show();               else                   Toast.makeText(getApplicationContext(), "No UName: "+utext+","+str+"; Pswd: "+ptext+","+str1, Toast.LENGTH_LONG).show();          }


How to change the font color of a disabled TextBox?

Does anyone know which property sets the text color for disabled control?  I have to display some text in a disabled TextBox and I want to set its color to black.


Sharepoint Datepicker jumps to top in Chrome

I have an EditForm in which a Date field is located towards the bottom. When clicking the DatePicker button in Chrome, the form jumps to the top forcing the user to scroll to the bottom again. This is a problem for my users and they don't want to use Internet Explorer (where it works). Is there a way to preserve the scroll position so it doesn't jump to the top of the form? ty


Which way did Gandalf mean for the fellowship to take into Mordor?

Before the fellowship of the ring broke and Frodo and Sam decide to go on alone, Gandalf lead the group. I've been wondering which way he meant for the group to choose into Mordor.   There seem to be only two known ones, Black Gate and Cirith Ungol. The Black Gate seems insurmountable, at least in the movies, and Gandalf, again in the movie, seemed shocked at the foresight of Frodo taking the path of Cirith Ungol. So I wonder what was his intention.


If some matter slows light going through it, is actual causality also slowed?

tldr; If some forms of matter change the that light travels through that it (like refraction in water or glass), does that mean the speed of causality is going slower through that matter?  I've heard that light travels at the speed of causality.  1) I believe that in a vacuum, if an even occurs at a space some distance away and it takes light some time to travel to you from that point, there's no way for that event to influence you before that time.  2) Certain forms of matter change the that light travels through it.  Question) If you were not in a vacuum and the time it took light to travel to you had to arrive at a later time (through that non-vacuum material), would that mean that minimum time of influence also changes? Or is my understanding of 1) incorrect?


I moved away (to an external drive) about 30 GB of files from a drive (startup disk) that had 60 GB of free space.  After the move it still shows only 60 GB of free space, not 90, as I would expect.  The trash is emptied.  I tried rebooting and verifying the disk (no problems found), but it didn't change anything.  How can I diagnose and fix the problem?  Note:  is what happened during the move.  I deleted the "washed out" items and repeated the move.     Update: The space was being taken up by Time Machine's Mobile Backups feature.  has solved the problem.


Flag apron shows superfluous closing anchor tag

I awoke this morning to a spam flag on a site I moderate, and noticed this when I went to read the post.    Notice answered, which I imagine isn't meant to have the  there.  I also confirmed that this displays asked for other types of flags (namely, closed without comment).   I looked around for a duplicate of this but can't seem to find it, so maybe it's a recent change?


Accessing site-specific Help Center from iOS app

Can the Stack Exchange developers add an option to access the site-specific Help Center via the iOS app?  My use case is when I read a question that I think is off-topic, and want to double-check that the wording from the site's Help supports that position, having the Help Center available would be nice.


How can I set environment variable permanently through shell script?

Let's say I have a script:  #!/bin/bash echo "$1" if [[ ! $1 ]]; then     echo "True" fi export ABC="/home/aashish"   ABC is not available after the execution of this script. How can I make that variable persist after the execution as well?


Title overlaps with numbering in table of contents using tocbibind

The following document  \documentclass{book} \usepackage{bookman} \usepackage{tocbibind} \makeindex \begin{document} \tableofcontents \chapter{Lorem ipsum} \chapter{Lorem ipsum} \chapter{Lorem ipsum} \chapter{Lorem ipsum} \chapter{Lorem ipsum} \chapter{Lorem ipsum} \chapter{Lorem ipsum} \chapter{Lorem ipsum} \chapter{Lorem ipsum} \chapter{Lorem ipsum} \section{lorem ipsum} \section{lorem ipsum} \section{lorem ipsum} \section{lorem ipsum} \section{lorem ipsum} \section{lorem ipsum} \section{lorem ipsum} \section{lorem ipsum} \section{lorem ipsum} \section{lorem ipsum} \end{document}   produces the following pdf    How can I fix the overlap?


Electrostatic force between charges placed in different medium

What will happen to the force between two charged particles, if only one particle is placed inside the medium ? Like one in air and other one is in water( Or anything.. )


How can I get a divID located inside an iframe from the head in HTML using JS?

I want to create a div inside an iframe, call the divID and change it. Can it be done from the head using JS? Here is what I tried and won't work for me:   console.log(document.getElementById("mydiv").id); document.getElementById("myDiv").setAttribute("id", "MyDiv2"); console.log(document.getElementById("MyDiv2").id);

This is mydiv


Can I make a Ubuntu bootable USB on a Mac?

So basically I want to install ubuntu on a usb from my mac (on a laptop which usually runs windows), because I deleted the partition of ubuntu and the grub switcher was gone at the same time too (so I couldn't boot in both the operating systems) But when I tried to boot up from the usb (made on a mac) it said:  non-system disk        press any key to reboot... and then it just opens the grub rescue. When I try stuff in the grub rescue the only thing it returns is unknown filesystem or Is this error caused by the type of ubuntu I installed on the usb? Here are some specs of both my mac and my pc. They both are 64-bit and an i5, it is an kingston data traveller g3 media usb. I made the bootable USB with the linux live USB loader for mac.  I hope some of you know what to do... Thanks for reading.


How to pass the output of one command as the command-line argument to another?

So I have a script that, when I give it two addresses, will search two HTML links:  echo "http://maps.google.be/maps?saddr\=$1\&daddr\=$2" | sed 's/ /%/g'   I want to send this to wget and then save the output in a file called temp.html. I tried this, but it doesn't work. Can someone explain why and/or give me a solution please?  #!/bin/bash url = echo "http://maps.google.be/maps?saddr\=$1\&daddr\=$2" |  sed 's/ /%/g' wget $url


The ring $\{0, 2 ,4, 6, 8\}$ under addition and multiplication modulo $10$ has a unity. Find it. Is the unity because this is only a set of evens?  I don't really understand unity. Can someone help?


How can I divide a figure in multiple pages?

I have a figure that is really high, it would fit well in 3 pages, but currently I have it stretched in one. It's only one PDF (converted from a PNG image) and I cannot find out how to divide it in multiple pages. I have searched in multiple places but I have not found the solution.  What can I do?   Update - this is what I have:    But I want to have it split in 3 pages:    The problem is that I have seen those solutions you link to but they do not respect margins or vertical orientation.


How to return SQL rows where it's daterange falls inside a date range

I'm trying to return MySQL rows when the start_date and end_date period falls within a date range, either completely or partially.  Here's the SQL I'm using at the moment.  SELECT         start_date,         end_date,         id     FROM         employee_leave     WHERE         DATE(start_date) >= :start_date_range     AND DATE(end_date) <= :end_date_range;   This works fine to return rows that fall wholly within the specified range but it needs to also return rows that are partially within the range too.  Example, start_date_range = 2015-07-04 end_date_range   = 2015-07-15  If I have the following rows they should all be returned:   start_date = 2015-07-05, end_date = 2015-07-10 start_date = 2015-07-01, end_date = 2015-07-10 start_date = 2015-07-01, end_date = 2015-07-20 start_date = 2015-07-11, end_date = 2015-07-20


I would like to learn how to make my shell look like this:   [user@host ~/Folder] $   instead of (the default):  [user@host ~/Folder]$.   Also, I'd like to have color on user@host and Folder. How can I do this?  Note:  prompt is my model.


Let $n$ be a positive integer. Find a function $f$ over $\mathbb{R}$ that is $n$ times differentiable but $f^{(n)}$ is not continuous.   We know that all the derivatives $f',f'',...,f^{(n-1)}$ are all continuous, but how do we find a function where the last derivative is not continuous? The function we make up can't have absolute values obviously, so I was thinking it is going to have to be piecewise.


Is there a way to adjust kerning for a specific character combination?

Is it possible to tell (La)TeX to adjust the kerning of a specific character combination?  For example, suppose I want !! to be typeset as !\kern 1.2pt!, just like ff is automatically turned into a ligature, or -- is converted to an en-dash.  I know I could create a command for this combination—I am asking for a way to just type !! and have it use my desired kerning.


I'm having a trouble with a site. I set the charset unicode but it still won't work. Here there is a sample code of how i set it:    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" http://www.w3.org/TR/html4/loose.dtd>       <meta name="viewport" content="width=device-width">     <meta http-equiv="X-UA-Compatible" content="IE=edge" charset="iso-8859-1">     <title>HOME</title>
 This are some accented letters and various symbol

è é ç ò ù § ▼ à
                 UPDATE:


I need to prove that if $f$ and $g$ are analytic in $D_r(z_0)$ and $g$ has a simple zero at $z_0$, then $$\mathrm{Res}[f/g,z_0]=\frac{f(z_0)}{g'(z_0)}$$   When $f(z_0)\neq 0$ and since $1/g$ has a simple pole at $z_0$ $$\mathrm{Res}[f/g,z_0]=\lim_{z\to z_0}(z-z_0)\frac{f(z)}{g(z)}=\frac{f(z_0)}{g'(z_0)}$$ But what do I need to do when $f(z_0)=0$? Any help will be appreciated thanks


How do I download a file from a host i'm already connected to over ssh

I'm trying to download a file from a linux server i'm already connected to. I know you can use scp to connect to and pull down a file from a host, but that requires still being on local. I could scp the file back to my local machine, but the local machine is not accessible from the host.  Is there a way to just pull down the file you are already looking at? Something like:  From the host  $ download <THEFILE>   This would really just be more convenient than having to go back out to my local terminal than scp the file. Instead you could just say "grab this one" Done.  I suppose the client would have to know what to do with the file. And i'm pretty sure "terminal.app" does not have a default downloads folder. So perhaps this is not possible.  BTW I'm connect from a mac to Debian.


What is the difference between named and anonymous functions in var declaration?

I am trying to understand how js parser works and wonder why there is no error in a declaration of var a below:  > var a = function b() {return 1;} undefined > typeof a 'function' > typeof b 'undefined' > function c() {return 1;} undefined > typeof c 'function' > var d = function () {return 1;} undefined > typeof d 'function'   I think that:   named function MUST be declared as c(),  if you want to use function as var, you MUST declare it like d(use anonymous function)   I do not understand what is the difference between var a and var d declaration.   Can somebody tell me why function identifier is allowed in var declaration and what is the meaning of b in this case?


"Most importantly" or "more importantly"?

Which of the following two sentences is more correct?   "A picture says a thousand words, more importantly in a fraction of a second"    OR   "A picture says a thousand words, most importantly in a fraction of a second"   Nothing important, just my own quotes! Do also suggest, if I can put it in a better way to express what I want to.


How is canon determined for the works set in the world of ASOIAF?

George R. R. Martin brought the world of ASOIAF (henceforth called Planetos) to the public when he published his first book A Game of Thrones in 1996. He would go on to write 4 more books over 15 years with at least 2 more in the works. There exists a comic book adaptation which released four volumes in their adaptation of the first book.  The first of his derived works, released in the Legends anthology, was the novella The Hedge Night, which would form the start of The Dunk and Egg Series. He would go on to write two more Novellas in the series with several more in the works. Three other novellas were released, titled The Princess and the Queen, The Rogue Prince, or, the King's Brother and Sons of the Dragon.  Onto other media, there is the award winning TV series which has adapted By David Benioff and D.B Weiss and has since overtaken the books. As well as five spin-off shows, which were confirmed earlier this year. The show itself has lead to the creation of other related material more of which can be found here:   There exists plenty of other material such as Video games, RPGs, Card games, Board games, miniatures, display weapons and music. As well as reader's guides, compilations, commentaries, art books and recipes.  How do all these different works fit into the canon for A Song of Ice and Fire and the writings and content on the works set in Planetos? Has George R. R. Martin, anyone from his legal team or anyone  else official made statements on these points? Are there canon levels that the various works may slot into?


In my attempt to make a new crontab file work on 16.04, I made the following mistake as root:  sudo su root crontab /etc/cron.d/myjob   I realized too late that I must've changed some default crontab behaviour, ie regarding crontab -e. I tried to roll back like this:  # still as root: crontab /etc/crontab   Is that the correct default setting? If not, then what is?  PS: The  does not answer my question. The answer there only states how to remove a crontab, not how to re-generate the default Ubuntu installation settings which is what I need to know.


Move existing windows installation to new computer, *without* original computer?

My laptop died, but the hard drive is fine. I would like to buy a new laptop and move the hard drive to the new laptop, keeping my windows installation, with all its installed programs. Is this possible? Since the old laptop is toast, using sysprep is impossible. Is there any other way?


I'm aware that mailto: links only work for people who use a mail client. Assuming most novice users don't, is it safe to assume that contact forms are only appropriate when the target audience isn't a tech-savvy one?


How can tagged PDFs be created that support Universal Accessibility and reflowing?

How to create tagged PDF such that they will be:   good enough for PDF/UA "reflowable" on smaller screens and ebook readers   Any syntax & any engine are of interest, but I'm most interested in using LaTeX with [Xe|pdf]latex engines.


Is there a Yum Option that Creates an Error if a Package is Missing?

I am using a set of local yum repositories and trying to install a set of packages from those repos. I noticed that when one of the packages on the command line does not exist, Yum just prints out that it was not found and goes along its merry way.  Can I make Yum quit when this happens? Is there some other Yum utility that I can use to give it my repos and my packages and tell me if there is a problem?  yum --disablerepo=* --enablerepo=myrepo --nogpgcheck \    --installroot=/var/some/place/test install \    abasdfasfeafseasfeasef bash coreutils utils-linux  Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile No package **abasdfasfeafseasfeasef** available. No package **utils-linux** available.  <snip>  Complete!   I am calling Yum from another script and don't appear to have a way to tell if the packages that I installed are really installed.


First of all I should say that I have very limited computer knowledge so go easy on me. I have Ubuntu 15.10 installed on my laptop and I was trying to to install the driver for the Nvidia video card but an error kept popping up saying that the x  server was on so the installation cannot be completed, so I disabled lightdm and went into the tty terminal and installed the driver (which was a .run file btw) from there, after I was done I started it again but the computer seemed to freeze so I rebooted it now I'm stuck in the login screen and whenever I type my password it just sends me back to the same screen.  I tried going back into the tty and typing  sudo start lightdm  But it said that it failed to connect to socket /com/ubuntu/upstart.  Btw sorry I'm using my phone so I can really format stuff properly.  Update: typing   lspci -k | grep -EA2 'VGA|3D'   Yields this output     Again I apologize for taking a picture of the screen but I can't really do much from my laptop right now.


Are Parent Fields supported in lightning Datatable?  I'm trying to display Account Name with Contact information, but it seems parent fields are not supported in lightning datatable.  Component:  <aura:component controller="PagingSortingController">     <aura:attribute name="mydata" type="Object"/>     <aura:attribute name="mycolumns" type="List"/>     <aura:handler name="init" value="{! this }" action="{! c.init }"/>     <lightning:datatable data="{! v.mydata }"          columns="{! v.mycolumns }"          keyField="con.id"         onrowselection="{! c.getSelectedName }"/> </aura:component>   Controller:  ({     init: function (cmp, event, helper) {     cmp.set('v.mycolumns', [                 {label: 'Contact Name', fieldName: 'Name', type: 'text'},                 {label: 'Phone', fieldName: 'Phone', type: 'phone'},                 {label: 'Email', fieldName: 'Email', type: 'email'},                 {label: 'Account Name', fieldName: 'Account.Name', type: 'text'}             ]);         helper.getData(cmp);     }  })   Helper:  ({     getData : function(cmp) {         var action = cmp.get('c.getContacts');         action.setCallback(this, $A.getCallback(function (response) {             var state = response.getState();             if (state === "SUCCESS") {                 cmp.set('v.mydata', response.getReturnValue());             } else if (state === "ERROR") {                 var errors = response.getError();                 console.error(errors);             }         }));         $A.enqueueAction(action);     } })   Apex Controller:  @AuraEnabled     public static List<Contact> getContacts() {         List<Contact> contacts =                  [SELECT Id, Name, Phone, Email,Account.Name FROM Contact];         return contacts;     }


I have recently installed Ubuntu 16.04 on my Dell Inspiron 15 7559.  Specs:    Intel® Core™ i7-6700HQ CPU @ 2.60GHz × 8  1TB drive  16GB memory NVidia Geforce GTX 960M   Everything works apart from my nvidia card. I have tried installing many versions which all led to low graphics mode error. I recently tried the v384 driver and my system booted up normally and I thought I'd succeeded, but I was wrong. My Additional Drivers page shows that I have nvidia 384 selected but nvidia x server is empty and system info still shows that I'm running Intel Skylake.   How can I fix this?


says  Enchant Creature Creatures you control that are enchanted get +1/+1 If a creature you control that's enchanted would die,  return it to it's owners hand instead.   Is that a +1/+1 counter? Or is it just a modification to the P/T?  Also, given the language it reads as if it means to say any creature enchanted by any enchantment. Correct?


How to compute Dottie number accurately?

Dottie number is root of this equation : $cos \alpha = \alpha$, $\alpha \approx 0.73908513321516064165531208767\dots$.  I wonder how can I compute it ? I have tried to do it with an approximating formula:  $\alpha = \frac{5\pi^2}{\alpha^2 + \pi^2} - 4$  I have solved this equation and i got $\alpha \approx 0.738305\dots$. So , how can i compute it accurately ? Can i use taylor series, etc. ?


We were trying to Install Ubuntu 14.04 In Dual Boot Mode With Windows 8.1 UEFI in my new HP laptop. The installation of Ubuntu was finished successfully. But when I rebooted (with secure boot disabled) it is not showing any GRUB menu and directly going to Windows.  So I tried Boot-Repair. For this I plugged our USB drive back in and reboot so that the live version of Ubuntu runs again. Then I used following command for boot repair.  sudo add-apt-repository ppa:yannubuntu/boot-repair sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list sudo apt-get update sudo apt-get install -y boot-repair && (boot-repair &)   Then I repaired the boot with the launched Boot-Repair window. But it end with the following error message.     "An error occurred during the repair.      Please write on a paper the following URL:         In case you still experience boot problem, indicate this URL to:   boot.repair@gmail.com       You can now reboot your computer. Please do not forget to make your   BIOS boot on sda (1000GB) disk!"   I also send a mail to the given mail ID. Please suggest a method to solve my problem. Thanks.


Using windows XP. Used dual boot. It got stuck at startup. Got error message 255 memory for 256mb required.  I went ahead anyway. Using a gateway with 256 memory.  Do I need to install more memory for the one missing mb? Is there a fix for this?


I have recently started using Ubuntu and hence, the terminal.  As text editor, I have used the pre-installed nano. Now I wonder whether I should install and use vim as well.  What are each of those text editors' special features, advantages and disadvantages? Which one is better suited for newcomers, and for what use cases would the other be preferable?


Why does session_start cause a timeout when one script calls another script using curl

I have two PHP scripts, both using the same session by calling session_name('MySessID').  When the first script calls the second script using curl, the second script hangs when session_start() is called.  Why would this happend?


In D&D 5E, is there a way besides the Guild Artisan Background (PHB 132-133) to learn professional skills? i.e. blacksmithing, knowledge, gem cutting, etc.?