Correct way to import an RSS feed and display it in a view?

I have an rss feed (facebook) (can also be output as a json). I want to import the RSS feed and have it display using a view.  I already have the Feeds module installed and the Feeds: Facebook Parser installed. I think I have everything I need but I can't figure out how put it together. Seems like this is a common need just not sure how to put the pieces together to make it happen.


UPDATE table_name SET name='rom' WHERE Country='ra'm'   I have old data with quote on it and i cannot use WHERE clause because of it. How can I use WHERE clause on it even by escape it considers as different. like ra'm is not equal to ra\'m.


Can I point Devices to the same World Pool to pick up where I left off?

I want to be able to reference the same worlds from my Windows 10 Machine and my Android Devices.  I want to be able to play on my Computer in worlds:   A1 B5 B6   and be able to log off and go mobile in the Android App on the fly in the same set of worlds.   A1 B5 B6   Realms doesn't let you do this, Realms forces you to have one world online at a time, all the time.  I am looking to find a way to share a common folder for worlds in the cloud so I don't have to move them anywhere when I switch devices.  Is there a way to set the game so that it saves and loads from a cloud folder like Google Drive?    Regarding the linked  raised as a duplicate:   That question focuses on moving one world from one platform to the next (and maybe back again). I am looking to find a way to share a common folder for world's in the cloud, so I don't have to move them anywhere. Hands off I can play any of my 10 world's on either platform, PC or Android.


How to handle 1M websocket connections (Nginx/HAProxy/Amazon/Google)

What nginx or haproxy setup is suggested for target 100K concurrent websocket connections? What I think, a single nginx will not be able to take such traffic as well as concurrent connections. How should traffic to nginx/haproxy be split (DNS lvl or any Amazon/Google option available)? How much concurrent websockets a single nginx be able to handle?  Tried gathering relevant information from google search and SO posts.


Tikz Pgfplot-Create user defined colorbar

I want to create only colorbar in Latex. Earlier I have used to Gnuplot to plot heatmaps along with colorbox(yeah, They are called colorbox in Gnuplot).  The user defined colorbox in Gnuplot plot is given as follows  set colorbox set palette defined ( 0 '#000090',\                       1 '#000fff',\                       2 '#0090ff',\                       3 '#0fffee',\                       4 '#ffee00',\                       5 '#ff7000',\                       6 '#ee0000',\                       7 '#7f0000') set cbrange [25:900] show colorbox   How do I generate an equivalent colorbar in Latex?  The colorbox from Gnuplot looks like this


Show that $(x,y,z)$ is a primitive Pythagorean triple then either $x$ or $y$ is divisible by $3$. The solution is given by 13.1.2:  But how do you become the 2 congruences?


Closed form of series with factorial-squared denominator?

Does the following series have a closed-form expression:  $$\sum_{k=0}^{\infty} \frac{z^k}{(k!)^2}$$  I know that it must converge because:  $$\sum_{k=0}^{\infty} \frac{z^k}{k!} = e^z$$  and the $(k!)^2$ denominator obviously increases more quickly than the $k!$ denominator.  This problem came up in computing the probability of a draw in a football match with each team's goal scoring modeled as a Poisson process.  Thanks,  John


In the page for the suggestions, show which ones have been approved, and which ones have been rejected

The old user profile showed the suggestions that were rejected, and the ones that were approved. Now the suggestion page just says "suggested," which is quite obvious, as I am seeing the suggestion page.    Could we not have an indication of which suggestions were approved, and which suggestions were rejected, in the same way it is visible in the review tab?


Remove base from the custom post type URL

I wanted to add blog before the post slug in the URL.  The URL for the post type page was:     http://example.com/blog/post-one   So basically to add blog before the posts url in Settings >> permalink I have selected Custom structure and the value  /blog/%postname%/  As I have entered the base in permalink structure it adds blog base to custom post type URLs as well.  There are too many custom post types. it shows this base before all urls.   Custom post type url:   http://example.com/blog/news/post-name  while it should be  http://example.com/news/post_name  custom post type url should be  without the base i added in custom permalink for default post type.  What's the solution of it.?  How can i  fix it?


$$\int_0^1\frac{\ln(1+x)}{x}dx$$  I tried substituting $x=\frac{1}{t}$ and then added the two integrals but got stuck. I got no idea how to proceed here. Any help would be appreciated.


How to have same top margins in table of contents over multiple pages

I would like to make all pages of my table of contents have the same top margin. The default appears to be to start the first page much lower down the page as in the illustrated example. My document class is book. \addvspace was unsuccessful.   \addtocontents{toc}{\protect\addvspace{15pt}}   Suggestions?


Which registry keys are impacted with Xerox Printer driver installation?

I am implementing a driver deployment with Samba.  Every possible model of printer found an easy solution, except for Xerox Workcenter.    After browsing the Internet, I found that Xerox printer driver has to change some registry keys in order to work, keys which are changed by the executable downloadable on the manufacturer website.  Do you know which key are impacted by the Xerox Workcenter GPD driver?  This corresponds to the error message I get while uploading to Samba, which asks the position of a file named as a registry key.  I browse Samba bug tracker and they did not specify which registry key are impacted.  I contacted Xerox itself, but despite that fact that we have a support contract and really a huge number of workstations, it seems that Xerox is not willing to help us.


Verification the integral identity $\int_0^\pi \ln(1+\alpha\cos(x))dx=\pi\ln\left(\frac{1+\sqrt{1-\alpha^2}}{2}\right)$.

I have to verify that     $$\int_0^\pi \ln(1+\alpha\cos(x))dx=\pi\ln\left(\frac{1+\sqrt{1-\alpha^2}}{2}\right)$$   with $|\alpha|<1$. It is my homework and don't know where to begin.


Uniqueness of Powerseries in an arbitrarily small neighborhood of $0$ in $\mathbb C$

I have troubles understanding a proof in "Visual Complex Analysis". What we want to show is that for two powerseries $c_0 + c_1z + c_2z^2 + ...$  and $d_0 + d_1z + d_2z^2 + ...$, equality in a neighborhood of 0 implies their coefficients must be equal. The proof in the book is the following(translated from german to english):  "Seting  $z=0$ we get $ c_0 = d_0$ so we can cut them out of both equations. Dividing by z and setting $z=0$ it follows that $c_1 = d_1$. Repeating this argument we get that all the coefficients are equal".  Why can we divide by $z$? Where does this proof use that the two powerseries are equal in a neighborhood of 0?


Choosing non-cloud software to transition to from Family Tree Maker 2012?

I am a newbie and just learned here that Family Tree Maker has been discontinued .  What non-cloud software is the least painful for me to transition to? (My family tree has some 700 people, so reentering the information is not a viable option.) I am now using FTM 2012 on a PC.


Minecraft wont maximize after entering and leaving full screen

Minecraft won't maximize by the maximize square because I accidentally hit F11 and went into full screen. I have tried to hit F11 again but it wont work. I tried to quickly click on the maximize button, but it appears grey and wont even let me use it when I disable F11. My screen is either too big or too small. I dont know how to restart it.


Finitely generated R-module is a field iff R is a field?

Not sure how to do this one. If $S$ is a field, then I was considering that $\exists r_1,\ldots, r_n\in R$ s.t. $1 = r_1s_1+\cdots+r_ns_n$ so for $r = rr_1s_1+\cdots+rr_ns_n$. Maybe that is somehow useful for taking inverses of elements.    The assumption that $S$ is an integral domain is necessary because otherwise we could have $S = \mathbb{Z}_p[x]/f(x)$ where $f(x)$ is not irreducible. This is still a finitely generated $\mathbb{Z}_p$-module, but its not a field.   Any hints or solutions would be much appreciated. I feel like this isn't that hard and I'm missing something simple  Source:


Decryption by using dictionary in python

message=str(input("Please enter a message :")) dic={ "a":"i", "e":"o", "i":"u", "o":"a", "u":"e", "b":"m", "d":"t","g":"b","m":"d","t":"g","1":"5","3":"5","5":"9","7":"1","9":"3"} decrypted= "" encrypted = "" for letter in message:         if letter in dic:                 encrypted+=dic[letter]          else:                 encrypted+=letter  I am doing  an assignment to encrypt and decrypt the message. I know how to encrypt it using keys. But the problem is that I am struggling to decrypt it without using any library as it is in my restriction. So basically my question is  how we can decrypt it without any library ?


Preventing multiple apps opening on C# (WIn8) , the mutex solution doesnt work

I am trying to prevent multiple copies of an application starting in C# on Windows 8.   bool isMutexNotExist; var mutex = new Mutex(true, "name", out isMutexNotExist);  if (!isMutexNotExist) {      SystemSounds.Beep.Play();      Application.Current.Shutdown(); }  mutex.WaitOne(); GC.KeepAlive(mutex);   This code works fine on Windows 7 (Dell Laptop) in Debug and Release mode (Visual Studio 2013) with .Net 4.5 but on Win 8 (Microsoft Surface 3) it lets another copy start. I couldn't find any reference to the Mutex's working different on Win7 & Win8 so i'm not really sure what is going on. The code didn't work on Windows 7 in release mode without the mutex.WaitOne().


I have downloaded ubuntu-16.04.4-desktop-amd64.iso (which is a winRAR archive file)on Windows VISTA. Can I install Ubuntu along with Vista and if yes, how to install it from this winRAR file?


How to effectively write a paper of N>2 co-authors?

We are writing a manuscript with 7 people. I am not sure what is a good tool to write a paper collaboratively. Other than overleaf or sharelatex which cost money.   What do you do if you have technology inclined collaborators?


Proving $1 + 2 + 2^2+2^3 + 2^4 + \dots+ 2^{n-1}= 2^n -1$ using mathematical induction

I'm taking Pre-Calc, and if anyone could go through step-by-step on this problem I’d appreciate it greatly. ;)  Use mathematical induction to prove the formula for every positive integer n. $$1 + 2 + 2^2+2^3 + 2^4 + \dots+ 2^{n-1}= 2^n -1$$


Show that the subspaces of R2 are precisely {0}, R2, and all lines in R2 through the origin.

Claim: The subspaces of $R^2$ are precisely {$0$}, $R^2$, and all lines in $R^2$ through the origin. My attempt: Proof. Suppose U is a subspace of $R^2$. We want to show that the only possible dimensions of $U$ are $0$,$1$, and $2$. Clearly $U$$=${$0$} whenever $dimU=0$. If $dimU=1$, then the length of any basis in $U$ is $1$. Thus any nonzero list of length $1$ in $U$ is a basis of $U$. Hence if $(x,y)$$\in$$U$ with $(x,y)$$\neq$ $(0,0)$, then every $u$$\in$$U$ has only one representation as a linear combination of $(x,y)$. In other words, there exists a unique $\lambda$$\in$$R$ s.t. $u=$$\lambda$$(x,y)$ $\forall$$u$$\in$$U$. Therefore, for any nonzero $(x,y)$$\in$$U$, we have $U$={$\lambda$$(x,y)$ : $\lambda$$\in$$R$}, which is the set of all lines in $R^2$ through the origin. To show that $U=V$ whenever $dimU=dimV$ and $U$ is a subspace of $V$, let $u_1,...,u_n$ be a basis of $U$. Because $V$ is finite-dimensional and $U$ is a subspace of $V$, we can think of $u_1,...,u_n$ as a linearly independent list in $V$. Thus $U\subset$$V$. Now since $dimU=dimV$, it follows that $u_1,...,u_n$ is a linearly independent list in $V$ with length $dimV$. This implies that $u_1,...,u_n$ is a basis of V. Thus $V\subset$$U$ and hence $U=V$. The result above shows that if $dimU=2$ (i.e. $dimU=dimR^2$), then $U=R^2$. Because $dimU$$\le$$dimR^2$, it follows that these are the only possible dimensions of $U$. Therefore, the subspaces of $R^2$ are precisely {$0$}, $R^2$, and all lines in $R^2$ through the origin, as claimed.


How does Network Address Translation (NAT) works on a home router?

I have three computers connected to a router at home. I am sure my router has only one address. When the packet arrives from computer 1, the source IP is translated to the router IP address.   Let's say both computers 1 and 2 access the same destination, this time the entry in the NAT will have the same destination address. So, how is the packet forwarded here?   When the packet arrives from destination, how are the packages distinguished between computer 1 and 2? I have a Belkin router, is it generating many source addresses. For example, dynamic NAT, each source IP is converted into a different IP address? How does it generate a pool of addresses.


Where can I ask questions on Architectural Engineering? I could not find any site related to it.  I even checked Area 51 if there is a proposal for this, but there isn't. Does the site exist anywhere?    Architecture is a common field. It should be there.


"Permission denied, please try again." ERROR when trying to connect to localhost through ssh

I know this problem has been discussed several times in the forum but none of the steps recommended to remedy the problem have worked in my case.  In the following I will describe again the problem and then explain the (unsuccessful) measures I have taken so far to remedy the error.  I tried to check the functionality of my ssh server by connecting to it via the following command. After typing in the correct password, I am presented with this message:  $ ssh root@localhost root@localhost's password:  "Permission denied, please try again."   To remedy the problem I made the following change to the sshd_config file: I set:  PermitRootLogin yes   Then I restarted the SSH Server again by giving the command:   sudo service ssh restart   However, when trying to connect to the server I got the same response as before:   Permission denied, please try again.   I checked /etc/shadow and saw that there is an exclamation mark in front of the root user password (i.e. the password is locked). To unlock it I gave the command:   $ sudo usermod -U root unlocking the user's password would result in a passwordless account. You should set a password with usermod -p to unlock this user's password."   Hence, I gave the following command :  sudo usermod -p root   But the exclamation mark in front of the root password is still there and I still can't connect to the SSH server ... Is there anybody who knows what the solution to this problem is?


Proving an inclusion related to algebraic sets and interpreting it

I want to prove that     $I(X_1 \cap X_2) = \sqrt{I(X_1)+I(X_2)}$   for algebraic sets $X_1=Z(G_1)$ and $X_2=Z(G_2)$, with $G_1,G_2 \subseteq \mathbb{K}[X_1,\ldots,X_n]$.  Remark: Unfortunately I named the indeterminates $X_1,X_2,\ldots$ but obviously the first ones $X_1,X_2$ are algebraic sets and not indeterminates.  I've already proved $\supseteq$ but I'm struggling with proving $\subseteq$.  The problem is equivalent to prove that, if $g \in I(X_1 \cap X_2)$, then $g^n \in I(X_1)+I(X_2)$ for some $n \in \mathbb{N}$, but the $+$ is bothering me... some hint can definitely put myself in the right way.  Also, I'd like to:     Interpret geometrically what it means to have $I(X_1 \cap X_2) \neq I(X_1)+I(X_2)$,   thing that I don't see at all.


I have fallen into a slump at the minute where i just don't feel like preparing food when i get home from work, and i would prefer to cut up a larger batch of potatoes in one go and store them in the fridge/freezer in the correct portion sizes, so when i get home i can just throw them into the oven.  The problem i have had with this up to now is, if i put them into the freezer and then try to cook them, the defrosting process turns them to mush. If i put them in the fridge, they have gone off by morning.  Is there a better way to store potatoes that have been cut up?


I’ve got a windows tablet that I want to install Ubuntu on. I have attempted this previously but the touch screen is not recognised, and after failing to get it working I reinstalled windows. The touchscreen still did not work so I had to install the drivers from the manufacturers website to get the touchscreen to once again work on windows. Can I install said drivers on Ubuntu so the touchscreen works? It uses a MS DOS command file to install them, how can I get the drivers to install on Ubuntu? Cheers


Calculating probabilities using cox regression

I have done a multivariate Cox regression in R. The model fits to my data very well.  Now, I would like to use my model and predict the survival probabilities of new observations. I am unclear how to do this with a Cox model. Something similar to what can be done using a  logistic regression,to plugin the values of new observations and multiply them with betas and calculate the probabilities.  How can this be done in a Cox model?


How do I custom style the default "Nav Menu" of Communities Customer Account Theme?

I want to custom restyle the default NAV MENU CSS of the Communities Customer Account Portal Theme to match my company branding.  How or whats the best location to over-write default out of box style but still keep the menu?  Has anyone ever successfully Re-styled the default Nav Menu with your own branding styles, font sizes and etc inside a Communities Theme?  Please let me know or point me to the correct direction. If there are concerns or if this is a limitation of Sales Force Theme branding, please let me know and advise accordingly. My management wants to re-customize the Default Nav Menu.  Thanks in Advance.


Book about a boy who travels to a parallel universe to get a book

I can't remember the gender of the main character.  I remember bits and pieces from different books, but I think they're all part of the same series. The pieces may not be in order or from multiple books.   Boy somehow ends up in a mirror universe that's darker and seems to have no people. He has to travel to a certain office(?) building and steal a book. I think this is towards the end of the book (I can't remember the events leading up to it). I think he finds the portal in a forest or something behind his school. He goes into the ocean with mermaids or something and has to save the ocean from pollution. Aliens exist and are observing Earth, because they think it's undeveloped and are waiting for them to be advanced enough. His mother ends up in hospital and he does something to save her. He goes to Ireland(?) and enters a mountain or something to find a race of people. I can't remember who showed him how, but I'm pretty sure she used magic. He goes to Mars and saves a race from war with themselves(?). This place was hidden inside an illusion. He's also grouped with a linguist that learned their language. He travels to another world where there's a prince. I can't remember, but I think it might've been part of a tournament. His sister goes to a robot planet through a portal. I think the actual planet was a robot/AI and had lots of little robots on it. Can't remember what happens here, but he goes there and saves her from something.   It was set a few years ago, when computers weren't common (his family got one early in the first book, I think).  Thanks in advance if someone finds it.


how to reinstall ubuntu on its own disk?

I currently have dual boot on one SSD disk (on two separate partitions, windows 10 + ubuntu 16).  I am planning to buy a second SSD and re-install ubuntu on the new SSD. What is the recommended sequence for me to do this?  After I re-install ubuntu on the new hard drive, I do want to remove the existing ubuntu partition and reclaim the space for windows 10  Note:  I don't need to move the linux installation to another drive. I don't have data on the linux installation. I only want to reinstall linux from scratch (and delete the original linux installation)


The question comes from “Introduction to Topology: Pure and Applied” by Colin Adams and Robert Franzosa.  I have very little knowledge of set theory and proofs, so I'm not sure how to prove this. As always, I appreciate any help.  Some definitions from the textbook:  Let A be a subset of a topological space X. The interior of A, denoted Å or Int(A), is the union of all open sets contained in A. The closure of A, denoted Ā or Cl(A), is the intersection of all closed sets containing A.   ∂A = Cl(A) − Int(A)  ∂A = Cl(A) ∩ X – Int(A)  ∂A = Cl(A) ∩ Cl(X − A)  "Let A be a subset of a topological space X. Prove that ∂A ∪ Int(A) = Cl(A)"


Lenovo ThinkCentre: beeps when trying to restart

We have a Lenovo ThinkCentre, brand new, that has on occasion failed to start when trying to restart. It simply gives off loud beeps, that I suppose have meaning: 1 long and 3 short. There is nothing on the screen. After holding the power button until it shuts down, then starting it again, it works fine. We experience no other performance issues.   I do not know enough about computer hardware to know what to check/troubleshoot, etc. C̶a̶n̶ ̶a̶n̶y̶o̶n̶e̶ ̶g̶i̶v̶e̶ ̶t̶i̶p̶s̶ ̶i̶n̶ ̶f̶i̶g̶u̶r̶i̶n̶g̶ ̶o̶u̶t̶ ̶w̶h̶a̶t̶ ̶t̶h̶e̶ ̶b̶e̶e̶p̶s̶ ̶m̶e̶a̶n̶,̶ ̶a̶n̶d̶ ̶o̶t̶h̶e̶r̶ ̶t̶h̶i̶n̶g̶s̶ ̶I̶ ̶c̶a̶n̶ ̶d̶o̶ ̶t̶o̶ ̶n̶a̶r̶r̶o̶w̶ ̶d̶o̶w̶n̶ ̶t̶h̶e̶ ̶i̶s̶s̶u̶e̶?̶  Signs seem to point to issues with the RAM. I have reseated the RAM. Since then, it has never failed to start.  Specifications:   Lenovo ThinkCentre M700 Signature Edition Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz 3.19 GHz 8.00 GB RAM 64-bit OS-- Windows 10 Pro 1- 1 TB HDD 1- 256 GB SSD Anything more needed?


How to make apt ignore unfulfilled dependencies of installed package?

I installed Opera 12.16 from a .deb for reasons. Just assume that I need this specific browser of this specific version and that there’s no alternative.  However, that deb depends on packages (such as the gstreamer0.10 series) which are not in my distribution anymore (Debian testing). This makes apt fail on every operation except apt remove opera with dependency errors:  # apt install cli-common Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  opera : Depends: gstreamer0.10-plugins-good but it is not installable          Recommends: flashplugin-nonfree but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).   apt --fix-broken install will just propose to remove opera:  # apt --fix-broken install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages will be REMOVED:   opera 0 upgraded, 0 newly installed, 1 to remove and 92 not upgraded. 1 not fully installed or removed. After this operation, 46.6 MB disk space will be freed. Do you want to continue? [Y/n]   Currently, my workaround is to install Opera when I need it, and remove it as soon as anything else needs to be done with apt. This is annoying.  Any suggestions? Ideally, I’d like to make apt ignore the dependencies of opera forever, since it works well-enough for my purposes.


So I am trying to get the text in between brackets in C#.  I want to get SYSTEM from [SYSTEM]: Welcome.  (All known instances)  How would I do this?  Thanks!


Semicolons before buts, ands, and sos, and other strange places?

Is this right? I thought that aside from something like this:     He had some dogs; he ran to the beach; he drowned.   that you are only supposed to put commas before ands, sos, and buts, etc.  But I see people often doing this:     I had twins; but I had a miscarriage.      I had salad; but I threw up.      I thought I liked him; but now I don't anymore.   How is this right? Shouldn't these be commas? This makes semicolon use even more confusing, because at least before you supposedly "knew" where commas always went and there were no semicolon exceptions:     I made sure, then died.      I thought I died; I just made sure though.   Keeping at that tone I can never fail, but how is one always supposed to know when exactly there are two independent clauses and why they should be semicolon separated vs. period separated? I ask because people also often do this.     I'm sure we've all been to the park. But then the beach. And the park. And mall as well.   And sometimes they'll do this as well:     I'm heavily-wounded; would you go get me some bandages?    And another weird one I've seen:     Here's my pet; Fluffy. < Shouldn't there be a colon at most, if anything at all?   Basically English grammar is a complicated mess that I can never get perfect. I ask this because I've basically read every tutorial on semicolon usage, but something always pops up or I see someone use it in a place somewhere that I find strange or incorrect and have to re-evaluate my knowledge endlessly.


Verification of Proof that a nonabelian group G of order pq where p and q are primes has a trivial center

A nonabelian group $G$ of order $pq$ where $p$ and $q$ are primes has a trivial center   My Proof is as follows:   Assume we have nonabelian group $G$ of order $pq$ where both $p$ and $q$ are primes.  When $G$ has a trivial center it means subgroup $Z(G)=\{e\}$.  If a group is of order $pq$ then the order of its subgroup must divide pq meaning $Z(G)$ has to be of order $1$, $p$ or $pq$.  It cannot be $pq$ otherwise $Z(G)$ would be a group equivalent to $G$ and not a subgroup.  It cannot be $p$ or $q$ because otherwise $Z(G)$ would be cyclic and therefore abelian.  So $Z(G)$ must be or order $1$.    Is this correct?  A hint I was given was to use the fact that if $G/Z(G)$  is abelian then it is cyclic.  How would that be incorporated?


I am learning about the Inner Class in Java, but i write this code, when i compile it, i got this error: Error:(84, 23) java: non-static variable this cannot be referenced from a static context.      public class Main {      class Outer {         private String string;          Outer(String s) {             this.string = s;         }          public Inner inner() {             return new Inner();         }          class Inner {             @Override             public String toString() {                 return string;             }         }     }      public static void main(String[] args) {         Outer outer = new Outer("yang");       //  System.out.println(outer.inner().toString());     } }   I have update the Inner Class to this, and it works.  public class Main {      static class Outer {         private String string;          Outer(String s) {             this.string = s;         }          public Inner inner() {             return new Inner();         }          class Inner {             @Override             public String toString() {                 return string;             }         }     }     public Outer outer(String s){         return new Outer(s);     }     public static void main(String[] args) {       //  Main main = new Main();         Outer outer = new Outer("YANG");         System.out.println(outer.inner().toString());     } }


If my Schengen visa starts on the day of arrival which is one day ahead of departure, would they let me get into the plane?

I have a question, I applied for the Schengen visa through Germany, on the form they ask me when I'd arriving (to Germany) and when I'd returning. they take this exact date as the visa period.  I wondering if they would let me get into the plane, even though my flight it a day before the arrival.  Let get the real deal; let say this:  My visa is valid from 02/12/2014 to 02/02/2015. But, my flight is scheduled to be departing on 01/12/2014, but entering Germany 02/12/2014. the flight duration is almost 9hours and there is 7hours difference between Germany and the departing flight country.


My URL has been identified as a phishing site

Some months before ordered VPS at Ramnode  According to tutorial (ZPanelCP on CentOS 6.4)  Installed CentOS and ZPanel)  Today received email  We are requesting that you secure and investigate the phishing website identified below. This URL has been identified as a phishing site and is currently involved in identity theft activities. URL: hxxp://111.11.111.111/www.connet-itunes.fr/iTunesConnect.woasp/ //IP is modified (not real) This site is being used to display false or spoofed content in an apparent effort to steal personal and financial information. This matter is URGENT. We believe that individuals are being falsely directed to this page and may be persuaded into divulging personal information to a criminal, if the content is not immediately disabled.   Trying to understand. Some hacker hacked VPS, placed some file (?) with content that redirects to www.connet-itunes.fr/iTunesConnect.woasp?  Then questions  1) how can I find the file? Where it may be located? url is URL: hxxp://111.11.111.111/ IP address, not domain name  2) What to do to protect VPS (with CentOS)? Any tutorial? Where may be security problem?  I mean may be someone faced something similar....  Just want to note, that directory /folder www.connet-itunes.fr was placed in etc\zpanel\panel and not in directory of my websites.


Is the prefix "pre-" meaningless in the terms "pre-heated" and "pre-board"?

This question poses a paradox of meaning. The general question is whether, if two sentences (x and y) can be used in the same situation, with the same literal meaning, and x and y only differ in that x has morphological affixes that y doesn't, aren't the surplus affixes "meaningless" by the alternation test?   Take this example:  I put the chicken inside a preheated oven.    Wouldn't it make more sense to say:  I put the chicken inside a heated oven.      There is only two states an oven can possibly be in—heated or unheated.      Another example: Does first-class board the plane, or pre-board the plane?  What does that mean—to get on before you get on?


Determine if quotient group $S_4/N$ is isomophic to $S_3$

Let $N  = \{1,(12)(34),(13)(24),(14)(23)\}$. Determine if the quotient group $S_4/N$ is isomophic to $S_3$.   I computed the cosets: $N, (12)N, (13)N, (14)N, (123)N, (234)N$, and the others are equivalent to one of these. This took me a while to do. Is there a faster way and what do I do next?


What are the differences (if exist) in variable scope between Python and C++?

I'm a bit confused with the variable scope of Python. Perhaps because of being used to the convention of C++, I always made some mistakes in variable scope of Python. For example:  in C++:    int main(){     int i = 3;     for (int j = 0; j <= 3; ++j){         i += 1;     }     cout << "i = " << i << endl;     cout << "j = " << j << endl; //Error, out of 'for' scoping.     return 0; }   But in Python:    i = 3 for j in range(1,4):     i += 1 print j               # j = 3, nothing wrong for i in range(5,7):     j += 1 print i               # i = 6, changed by operation in for loop   This is just a simple example, and I'm not going to list other differences. Could anyone please give a detailed explanation of their differences in scoping.


I have a script which runs several commands remotely through ssh. I'm running each command separately because I want to do other things in between executions.  However, I don't want to recreate an ssh session every time I issue a new command. I've read about -oControlMaster but I can't seem to get it to work.  When I run:  ssh -oControlMaster=yes -oControlPath=/tmp/test.sock root@host   after I enter my password, I just get an ssh session. If I exit out, the /tmp/test.sock file is no where to be found.   What am I missing?


Should I use "authoress" for a feminine author?

Often I come across the term "female author" rather than "authoress". Which is the correct usage? "Female author" sounds wrong to me as other words that end in "-or" take a sex.


Singular or plural verb after a list with multiple "every"s?

Which sentence is correct?   Every apple, every orange, and every pear is good for you. Every apple, every orange, and every pear are good for you.


Uninstalling Window and using Ubuntu as the only OS

I do all my task in Ubuntu. How will I be able to remove the Windows8 using ubuntu? I don't want to see Windows8 name displayed  in the grub menu. And I want Ubuntu to be started in the first hand after I boot my computer. Will it harm any files, folder and partition?


Can a multi-class spellcaster have one thing be two different focuses?

In my group, I have a Cleric 1/ Bard 1 character. He bangs on his engraved shield (cleric focus) to turn it into a war drum (bard focus).  What are the rules concerning if a player can have two different class foci, and if they can be the same thing?


How do I use Excel 2010 Personal Macro Workbook?

I want all of the macros that I've written to always be available when I'm using Microsoft Excel 2010. How can I do this?


Logging out of Stack Overflow or any Stack Exchange site?

I want to log out of Stack Overflow or any Stack Exchange site, but always it shows me logged in!  How do I log out of this site?  Note: I have yet to register; the site currently always shows my name and default email. I wish to log out so that I may start a new session!


How significant is a good personal website to advance standing in the academic world?

I happen to be close to a professor at my college that has the highest citations of all professors there.  However, his website looks like its from .  I have some knowledge and motivation to help redesign his website.  However, given that he has an academic business background, and already has significant clout he will almost certainly ask about the value of an improved website.  Is there an article stating the significance of a website, or lack there of?


Could anyone explain to me why maximal ideals are prime?  I'm approaching it like this, let $R$ be a commutative ring with $1$ and let $A$ be a maximal ideal. Let $a,b\in R:ab\in A$.  I'm trying to construct an ideal $B$ such that $A\subset B \neq A$ As this would be a contradiction. An alternative idea I had was to prove that $R/A$ is an integral domain, but this reduces to the same problem.  EDIT: Ergh.. just realized that I've learnt a theorem that states is $A$ is a maximal ideal then $R/A$ is a field


Please make links to other answers in the same question link to the anchor instead of the full URL

I've noticed that link-ids are not rewritten. I would much prefer it if they were.  For instance, lets say I'm on . And, let's say I want to link to a specific answer like  by @Eric. It would be nice if an inserted link on the page to that question would get rewritten to be href="#3346729". This would prevent the need for my browser to reload the page. I would save a lot of time, and with this extra time I could help even more people.  This is of course only referencing the html to be rendered. I don't care at all about what sits in the SO DB... Though personally I wouldn't want to fix my internal linking to make assumptions about the transport.. That seems silly, but it is not my business. Wikipedia doesn't permit this because it is a bad idea, that's why Wikipedia is one step ahead with the [link generator], and even has [otherprojects:linkgenerators] accessible that make no assumptions about where the questions/answers are currently sitting. Even perlmonks had link generators some 10 years ago, [rt:num], and[id:node].  UPDATE     If you change the display links to be only relative to the current page, you can no longer copy/paste them so that they can be used elsewhere, such as in another SO posting, or another website. – Robert Harvey 1 hour ago   So Dr. Harvey has a point. I looked into how Wikipedia does this, because they're a few steps ahead of Stack Overflow, and apparently all you have to do is not specify the "comment" number.  If you click on this link it will not rerender the page. http://meta.stackexchange.com/questions/58645/updated-question-plz-reread-please-make-links-to-other-answers-in-the-same-qu#58685  or this link, '#58685`  If however, you click on this link it will http://meta.stackexchange.com/questions/58645/updated-question-plz-reread-please-make-links-to-other-answers-in-the-same-qu/58685#58685  So what SO is doing is rendering a different canonical url entirely for the comment at /58685 even though that page is most probably the same, how very dirty.  Update AGAIN  Had to change the links because they changed when I updated the title (another SO bug I guess)


Difference between Pearson residuals and Deviance

I have a problem complete figuring out the difference between Deviance and Pearson residuals. So what I have intepreted both deviance and Pearson residuals are kind off a distance measurement between the y and the mean in generalized linear models. But then how can we extinct one from the other?


Because I am pretty new to blender I watched the tutorial  from BlenderCookie.com.  I loaded  onto a sphere but then in all views the texture is just some kind of blurry with no details.


I heard that \[ \] is better than $$ $$ for display math, is this the case for \( \) and $ $ as well? (Is \( \) or $ $ better for inline math?)


Does any series diverge more slowly than the harmonic series?

Sorry if this is too simple of a question.  Let $S_n = \sum \limits _{k=0} ^{n} \dfrac{1}{k}$. For another sequence $\{x_k\}$ define $S'_n = \sum \limits _{k=0} ^{n} x_k$. Is it possible that $S'_n$ diverges and $ lim _{n \rightarrow \infty} \dfrac{S'_n}{S_n} = 0$?


Transit visa needed for layover (< 24 hrs) in Germany?

I'm an Indian student in US with a valid F-1 visa and I-20 documents. These are my flight details:   NYC -> Frankfurt -> Istanbul. The layover at Frankfurt is less than 24 hours, and I'm going to take a Turkish visa.  Will I require a transit visa in Germany? If I take a (cheaper) flight like NYC -> Zurich -> Frankfurt -> Istanbul, will I need a transit visa / Schengen visa?   I've looked for similar questions but haven't found any exactly matching the locations on my itinerary.


Can I install/update WordPress plugins without providing FTP access?

I am using  on my live server which only uses  using an  key.    I want to install and upgrade plugins, but it appears that you are required to enter your FTP login to install the plugins. Is there a way to install and upgrade plugins by manually uploading the files instead of having WordPress handle the entire process?


How can I add a subtitle to a chapter and add it to the table of contents?

I would like to add a subtitle to a chapter with the format \scshape and make it appear in the table of contents with the same format. Something like this:


Problem upgrading Ubuntu 14.04 to 14.04.01

2 months ago I installed Ubuntu 14.04., but today the Update manager showed me some recommended updates, one of these upgrade to 14.04.1 LTS. After installations the pc restarted, but cannot run Ubuntu GUI. Only show the command line black screen and ask me my login and password. I do not know what to do to fix this problem, I tried to reinstall nvidia drivers, but it did not work. Thanks for your time and support.


I'm trying to encode a string that contains accented uppercase letter like:  $string = "This is a test - À ";   i'm trying to encode using utf8_encode in this way:  $string  = "This is a test - À "; $encoded = utf8_encode($string);   And returned string is:  "This is a test - ã ";   What function can i use instead utf8_encode ?  EDIT  This string is stored into a table in mysql db.  This is how i connect to database:  $host = "xxxxxx:3306"; $uid =  "username"; $pwd =  "password"; $dv_database_name = "db_name";  $db_dv = mysql_connect($host, $uid, $pwd);  mysql_query("SET NAMES utf8",$db_dv); $sql = "..."; $res = mysql_query($sql, $db_dv); $row = mysql_fetch_array($res); $string = $row['myField']; // THIS IS THE STRING WITH ACCENTED VALUE


What is the location of this Windows 10 wallpaper?

Saw this from Windows 10 wallpaper. Hope that someone can help find this - blue lake with snowy mountain. I want to go here one day! Looks very serene.


HashMap has only one key and Value  Map<String, String> hm = new HashMap<>(); hm.put("one","ele");   Now how to get key and value from this and assign to string?


How do I tell which point-and-shoot cameras take good low light photos?

I have a Canon Powershot A710 and I previously had a previous Powershot A-series model. I love them due to the high amount of control they offer. Sadly, they both suck in low light conditions, their flash is very unresponsive, and the camera takes several seconds preparing itself for the next shot after a flash shot. And even then, the pictures they take in low light/flash are as bad as good are those with good light.  I'd like a camera which gives a lot of control options, but what do I need to look for to find one that's great in low light, with or without flash?


Sobolev space $H^s(\mathbb{R}^n)$ is an algebra with $2s>n$

How do you prove that the Sobolev space $H^s(\mathbb{R}^n)$ is an algebra if $s>\frac{n}{2}$, i.e. if $u,v$ are in $H^s(\mathbb{R}^n)$, then so is $uv$? Actually I think we should also have $\lVert uv\rVert_s \leq C \lVert u\rVert_s \lVert v\rVert_s$. Recall that $\lVert f\rVert_s=\lVert(1+|\eta|^2)^{s/2}\,\hat{f}(\eta)\rVert$, the norm on $H^s(\mathbb{R}^n)$. This is an exercise from Taylor's book, Partial differential equations I.


Exception in thread "main" java.lang.NullPointerException - JAVA Array Of Record

I'm learning array of record and exercising with a problem. However I got this error response      Exception in thread "main" java.lang.NullPointerException   and this is my code  import java.util.Scanner;  public class Employees {  public static Scanner sc = new Scanner(System.in); int n; int id, salary; String name, group;  Employees[] employees = new Employees[100];  void initializing_array(){     System.out.print("Number of Data: ");     n = sc.nextInt();      if( n >= 0 && n <= 100){         for(int i=0; i <= n; i++){             System.out.print("ID: ");             employees[i].id = sc.nextInt();             System.out.print("Name: ");             employees[i].name = sc.nextLine();             System.out.print("Group: ");             employees[i].group = sc.nextLine();             System.out.print("Salary: ");             employees[i].salary = sc.nextInt();           }     }else{         System.out.println("==========");     } }  void output_array(){     for(int i=0; i < n; i++){             System.out.println("ID: "+employees[i].id);             System.out.println("Name: "+employees[i].name);             System.out.println("Group: "+employees[i].group);             System.out.println("Salary: "+employees[i].salary);      } }  public static void main(String[] args) {     Employees emp = new Employees();      emp.initializing_array();     emp.output_array(); }  }   The error was on looping in initializing_array() when I typed some data. Thanks in advance.


Java array of objects linked to each other

Suppose that, in Java, you have an array of objects that can point to each other.  When the array goes out of scope, is the whole thing garbage collected, even though the elements reference each other?


Is there any reason/difference when i use a property instead of a field inside a class method of the same class?

Let me be more specific by showing the following example:  public class Cat {    public string Name { get; set; }    public string Color { get; set; }     public Cat()    {        Cat("Unamed", "gray");    }     public Cat(string name, string color)    {        Name = name;        Color = color;    }     public void SayMiau()    {        Console.WriteLine("Cat {0} says Miau!!!!!!!!!!", Name);    } }   In the SayMiau Method I use the property Name instead of using the field name as an argument inside the the class method. Is there any difference?(computational cost?) Is that considered a bad/good practice when I make method signatures for the same class?


Schengen: Booked flight tickets but no appointment in the embassy

I have some questions regarding the Schengen visa. I know you need to apply the Schengen visa form the country you either stay the longest or you visit first, which for me is Italy.   But what would you do or advice me to do if I can't get an appointment in time? I bought my tickets already (I Know it's dumb), and I am suppose to fly out by June 28th, but the Italy embassy doesn't have any. appointment open until July. What should I do here? I contacted the Italian embassy, but I haven't heard anything back from them yet.


How to install Telegram Desktop in Ubuntu 14.04 LTS

I want to install  on my Ubuntu 14.04 LTS. I have downloaded the tsetup.0.6.15.tar.xz file. Now I want to know how to proceed further.


Prove that this function is Riemann Integrable on $[0,1]$

Let $E:=\{\frac{1}{n}: n\in \mathbb{N}\}$. Define $f$ on $[0,1]$ by    $f(x)=\begin{cases}1 ~~~~~~~~\text{if $x\in E$}\\ 0~~~~~~~~\text{if $x\notin E$ }\end{cases}$.      Show that f is Riemann integrable.   Here is my attempt.  Let $\epsilon >0$, define a partition $P_\epsilon$ of $[0,1]$ where $$P_\epsilon=\{0<x_1<x_2<...<1\}$$ On each subinterval $[x_{i-1},x_i]$ define the following sets: $$A= \{i:[x_{i-1},x_i]\cap E=\emptyset\}$$ $$B= \{i:[x_{i-1},x_i]\cap E\neq \emptyset\}$$ Then $A\cap B=\emptyset $, for $i\in A$, $m_i=M_i=0$ and for $i\in B$, $m_i=0$, $M_i=1$  Thus,  \begin{split} U(f,P_\epsilon)-L(f,P_\epsilon)&= \sum_{i\in A} (M_i-m_i)\Delta x_i+\sum_{i\in B} (M_i-m_i)\Delta x_i\\      &=\sum_{i\in B} 1 \times \Delta x_i\\      \end{split} Here is where I have a hard time in estimating the mesh of $P_\epsilon$ to get $U(f,P_\epsilon)-L(f,P_\epsilon)<\epsilon$.  I have seen different approaches to solving this problem but I think this approach seems more understanding. Can someone please review my approach, modify or give me hints.


Unable to use wifi card 16.04 MacOS dual boot

o/  I decided to use Ubuntu as a dual-boot to see if I would replace MacOS with it. I could use my Broadcom wifi card just fine in the "try without installing" feature, but as soon as I installed it, it refused to use the card. I tried re-installing the drivers, but to no avail. ubuntu would start the process of using the card, but at around 75-85% it would just give up.  EDIT IN RESPONSE TO chili555: output of lspci -nnk | grep 0280 -A3:  gingka@gingka-MacBookAir:~$ lspci -nnk | grep 0280 -A3 03:00.0 Network controller [0280]: Broadcom Limited BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03) Subsystem: Apple Inc. BCM4360 802.11ac Wireless Network Adapter [106b:0117] Kernel driver in use: bcma-pci-bridge Kernel modules: bcma


Is there a way to source a shapefile to a layer file in QGIS much like how you do this in the properties of an ArcGIS layer? (i.e. Go to layer properties, source tab and then just depress the 'Set Dat Source' button)  I've been all over the layer properties in QGIS and I don't see this anywhere...  EDIT: I've received comments explaining that you cannot do this with shapefiles, but if I were to change the name of a shapefile and then open a pre-existing project file which contains this shapefile as a layer, I will get the 'Handle Bad Layers' dialogue, which allows me to navigate and re-source the layer to any shapefile I want to. I find it odd that you can resource in that scenario, but you cannot do it manually through the layer properties dialogue box.


What's involved in reviewing an article?

I've just been invited, for the first time, to review an article. The request was somewhat of a surprise to me, as I'm still a PhD student and I'd always thought that reviewers were generally PhD graduates. Judging by the article's abstract, I am moderately familiar with the subject area, as my master's thesis was on a similar topic. The article would appear in an online journal and would be relatively short (6-8 pages). I assume that my review would be anonymous.  I'm unsure whether to accept the invitation as I'm quite busy with my research.   If I agree to review the paper, what will be expected of me? How much time can I expect this to take?


Fill attribute-table on feature-creation based on intersection with other layer

I am digitising line-features based on WGS-84 point-coordinates from a PDF which cannot be copied from.  The final line layer should contain lines which each connect two points and have the following attributes:   Name of start point - name of end point value in [ft] value in [m] remark (same for all features) date of creation   Currently I have a csv-based point layer which simply contains the name and coordinates of each point.    Creating the point layer is no problem, but creating the lines is a bit of a hassle. Either I manually create a .csv containing all existing connections between points like the following table and run connect by lines:    Or I digitise the lines manually but fill in the values (except for the value in [ft]) automatically.    Personally I would prefer option 2, since option 1 involves more manual work and the process has to be repeated regularly (and I figure I could transfer the solution to other tasks), but I can't get the expression right which should fill in the name of the line. All other values are created flawlessly (though they are not taken from another layer based on geometry).  I added the WKT of each point to the point-layer. Currently I am running the following, which returns NULL, despite it seems to be correct to me:  attribute(get_feature('point-layer','geom',geom_to_wkt(start_point($geometry))),'Waypoint')||' - '||attribute(get_feature('point-layer','geom',geom_to_wkt(end_point($geometry))),'Waypoint')   Any ideas where I went wrong?


How to solve configure: error: readline library not found?

I have an Ubuntu 10.04 LTS server with a minimal install that I want to compile postgres on. With the minimal install the server did not have gcc so I had to do an apt-get install gcc but now I keep getting this error from the postgres ./configure.  configure: error: readline library not found   I can't seem to find the name of the package that contains the readline library. So I have two questions.   What is the name of the package that contains readline? Is there some way given the error message above for me to find the associated package from its standard name?


I want to write a program in C/C++ that will dynamically read a web page and extract information from it. As an example imagine if you wanted to write an application to follow and log an ebay auction. Is there an easy way to grab the web page? A library which provides this functionality? And is there an easy way to parse the page to get the specific data?


Hereditary properties with nested frames (mdframed and tikz)

When nesting an mdframed environment in a mdframed environment that uses tikz, it seems that the nested mdframed environment takes on many of the properties of the environment isn't being nested in, replacing its own properties.  These include, well, pretty much everything, including nodes, background color, outer line width (and color), and the rounding of corners, except in the case where the nested mdframed environment also uses tikz, in which case only the node problem exists.  This is illustrated with several different examples below:  \documentclass{article} \usepackage{tikz} \usepackage[framemethod=tikz]{mdframed}  %%%%%%%%%%%%%%%%% mdframed style with node  \tikzset{tetregris/.style = {draw=gray, thick, fill=white, shading = exampletitle, % text=darkgray, rectangle, rounded corners, right,minimum height=.7cm}} \pgfdeclarehorizontalshading{examplebackground}{100bp} {color(0bp)=(black!2); color(100bp)=(teal!30)} \pgfdeclarehorizontalshading{exampletitle}{100bp} {color(0bp)=(black!2);color(100bp)=(purple!20)} \newcounter{example} \renewcommand*\theexample{Example~\arabic{example}} \makeatletter \mdfdefinestyle{examplestyle}{% outerlinewidth=1em,outerlinecolor=white,% leftmargin=-1em,rightmargin=-1em,% middlelinewidth=1.2pt,roundcorner=5pt,linecolor=gray, apptotikzsetting={\tikzset{mdfbackground/.append style ={% shading = examplebackground}}}, innertopmargin=1.2\baselineskip, skipabove={\dimexpr0.5\baselineskip+\topskip\relax}, skipbelow={-1em}, needspace=\baselineskip, frametitlefont=\sffamily\scshape, settings={\global\stepcounter{example}}, singleextra={% \node[tetregris,xshift=-3cm] at (P) % {~\mdf@frametitlefont{\theexample}\hbox{~}}; }, firstextra={% \node[tetregris,xshift=-3cm] at (P) % {~\mdf@frametitlefont{\theexample}\hbox{~}}; }, } \makeatother  %%%%%%%%%%%%%%%%%% simple mdframed style  \global\mdfdefinestyle{simplestyle}{% linecolor=red,linewidth=3pt,% leftmargin=1cm,rightmargin=1cm }  \begin{document}  \begin{mdframed}[style=examplestyle] blah \begin{mdframed}[style=simplestyle] blah \end{mdframed} blah \end{mdframed}  \begin{mdframed}[style=simplestyle] blah \end{mdframed}  \end{document}   The issue persists whether or not there are nodes (or what options they are given, i.e. \singleextra, \doubleextra, etc don't make a different).  The issue does not occur in the opposite scenario with a normal mdframed environment containing an mdframed environment using tikz.    Is there any way to stop the nested mdframed environment from taking the properties from the environment it is contained in?  In particular, is there any way to ensure that the nodes aren't repeated, since this also messes with the numbering?


Change appearance of "title" field for entries of type "@article"

In this bibliography, the title field of an entry of type @article is encased in quotation marks, and title field of an entry of type @book is typeset in italics.  How can I change that the title field of an entry of type @article is also written in italics and without " "?  \RequirePackage{filecontents} \begin{filecontents}{\jobname.bib}    @Article{Aili2010,       Title      = {Bioresponsive peptide-inorganic hybrid nanomaterials},       Author     = {Aili, Daniel},       Journal    = {Chem. Soc. Rev.},       Year       = {2010},       Volume     = {39},    }    @Book{Prodan2003,       Title      = {A Hybridization Model for the Plasmon Response of Complex Nanostructures},       Author     = {Prodan, E. and Radloff, C. and Halas, N. J. and Nordlander, P.},       Year       = {2003},    } \end{filecontents}  \documentclass{scrartcl} \usepackage[backend=biber,style=alphabetic,maxnames=10]{biblatex} \addbibresource{\jobname.bib}  \begin{document} Test.\cite{Prodan2003}\cite{Aili2010} \printbibliography \end{document}


In a college class I was asked this question on a quiz in regards to sets:     All integers are fractions. T/F.   I answered False because if an integer is written in fraction notation it is then classified as a rational number. The teacher said the answer was True and gave me the link . As a teacher of mathematics in the K-12 system I have always taught that integers were all whole numbers above and below zero, and including zero. All of the resources I have used agree to my definition. Please clarify this for me.  What is the truth, or are she and I just mincing words?


A formal name for "smallest" and "largest" partition


Sending file parameters with AJAX request

I have a form, which has several input types.  I am saving the form with AJAX:  function save_form_data(){     $.ajax({                 url:"path/to/file.php",                 method:"POST",                 dataType:'json',                 data: $("#options_form").serializeArray(),                 success:function(returnObj){                 console.log(returnObj);                 }            }); }   I am using this function on submit function of jQuery.   $('#options_form').submit(function(event){     console.log('submitted');     event.preventDefault();     save_theme_options(); });   But, the problem that I face is I am not able to get the files uploaded in the form using AJAX request. I try to print $_FILES, but results in an empty array.   How do I solve this issue?


What is needed to use notify-send in a snap?

I use notify-send in a python program, and I'm trying to make a snap of that program. The snap builds but I get a   No such file or directory 'notify-send'   What package do I need to install to make notify-send work?  I thought I needed to do  plug: [x11]   in my snapcraft.yaml but it didn't solve this problem.


What is the reverse operation of a factorial?

Is there a mathematical function $f$ that takes $n!$ as an input, and returns $n$?  For example,   $f(720) = 6$


I have a list of 200 elements, i want to loop through the list in increments of 10.  Result 1 = list[0:10] Result 2 = list[11:21] Result 3 = list[22:32] Result 20 = list[190:199]  Whats the most pythonic way to do this?


I have this code in mssql:  SELECT     t1.Id,     t2.Id,     t1.QuantityIn,     t1.PriceIn,     t2.QuantityOut,      (If (t2.QuantityOut - t1.QuantityIn)=0          THEN t2.QuantityOut      Else t2.QuantityOut - t1.QuantityIn ) AS Quant,      t2.PriceOut  FROM t1  LEFT JOIN t2 ON t2.Id = t1.Id   In software MsSql Server Management Studio error is      Incorrect syntax near the keyword 'If'.   What is the correct syntax for 'if' in my case?  Thank you!


How to Know the Estimated Time That an Animation Will Fully Render?

I have finished an animation and am going to fully render it. Is there a way to know the estimated time of how long a whole animation will take to render? I mean the whole animation, not just each frame. Like when you render something it shows on the top of the animation:                       Frame: 0|Last: 00:00.00 Time: 00:00.00 | Remaining 00:00.00| Is there something that will calculate the time that it will take for the whole animation to render?


Why do zip files get corrupted on USB Drives?

Why do older USB drives corrupt zip files? The file size appears the same, but the CRC check fails.


What does a function followed by (dot) then variable [func.var] means in python?

The following code from  to calculate the maximum path sum in Binary Tree.  In the function findMaxSum() they declared a variable as findMaxUtil.res What does that means ?   I saw  If function.variable inside a function it means that the function is kind of an object.But in this example the function name and variable are out of the original function. Would someone explain that please with a clear example!  class Node:      def __init__(self, data):          self.data = data          self.left = None         self.right = None  def findMaxUtil(root):      if root is None:          return 0       l = findMaxUtil(root.left)      r = findMaxUtil(root.right)       max_single = max(max(l, r) + root.data, root.data)      max_top = max(max_single, l+r+ root.data)      findMaxUtil.res = max(findMaxUtil.res, max_top)        return max_single   def findMaxSum(root):       findMaxUtil.res = float("-inf")  ## This line     findMaxUtil(root)      return findMaxUtil.res           ## and this line


Photo older than 6 months uploaded in DS-160

I uploaded a picture older than 6 months during my DS-160 application.  I used the same picture of a previous Visa application, that had been already cropped with the online tool and so I tought it was good and I used it without reading the requirements (ouch!). Does someone know if this can cause a Visa denial or if I have a chance to obtain it anyway (like bringing to the interview an updated picture)? Thanks a lot.


How can I delete all my photos on my iPhone on Windows?

I want to delete all my photos from my iPhone 4s running iOS 7.0.3 but it wont let me. I have tried in numerous ways, but they don't work.    I don't want to delete them one-by-one. Usage → Camera and Photos, swipe Camera Roll and delete does not work on iOS 7.  I tried using Image Capture on my computer, and my device shows up on the left, but there are no image files. I tried manually deleting them from my iPhone files on my Windows 7 PC but it wont let me delete them.


Does any of the Hogwarts' staff have a family?

In the seven Harry Potter books, the reader meets about two dozen of Hogwarts' teachers, but I don't remember any of them having either a spouse or children.  They are all grown adults, often even elderly, so this seems a bit surprising. After all, in the Muggle world, high-school teachers often happen to have a family life beside their job.  What have I found so far:   Remus Lupin marries Nymphadora Tonks and fathers Teddy. However, this happens several years after his one-year appointment as DADA teacher in Hogwarts. Hagrid develops a romance with Madame Maxime in GoF, but it is unclear how far it goes, and I can find no mention of her after their trip to Europe. Snape has been madly in love with Lily Potter all his life, but she has never reciprocated and we can reasonably infer that he never had any bond with anyone else. We  that at least three of the four Hogwarts founders (Slytherin, Hufflepuff and Ravenclaw) had children, but I am more interested in 20th century teachers. Among the ghosts, the Bloody Baron and the Grey Lady have, hum, a complicated history.    Is any teacher of Hogwarts known to be married or to have a child? If no, has any justification for this been advanced?  Any information about the non-teaching staff (Pomfrey, Filch, Pince...) or the former headmasters is also welcomed.


Why are Hermitian operators linked to observables?

In , why is it that a self-adjoint operator is linked to an observable? What makes it measureable? And why isn't a non-Hermitian operator linked to an observable?  Also, what type of observables are we talking about here? Particles?


I have installed mysql to an ubuntu (Digital Ocean) server. There are no any extra security layers. Just basic installations.  Recently it was hacked and deleted with only one table which has the following message:     To recover your lost Database and avoid leaking it: Send us 0.1   Bitcoin (BTC) to our Bitcoin address   17rDr5mbXjLdegWDFuWd61Ymhwm54GjtNK and contact us by Email with your   Server IP or Domain name and a Proof of Payment. If you are unsure if   we have your data, contact us and we will send you a proof. Your   Database is downloaded and backed up on our servers. Backups that we   have right now: drm, eatoeat . If we dont receive your payment in the   next 10 Days, we will make your database public or use them otherwise.   | 17rDr5mbXjLdegWDFuWd61Ymhwm54GjtNK | support@mydatabase.to   When I checked there are lot of bitcoin abuse reports for this bitcoin address and the email associated with it.  What are the measures and steps I can take to prevent this from happening again?


How do you define an arbitrary sort sequence for views?

Take a look at the  and the Priority column.  If sorted in descending order you get critical, major, normal, and minor issues, in that order.  Since "normal" would not go between "major" and "minor" in alphabetical order, they've obviously defined a custom sequence to use for sorting.  How is this done in Drupal?  Is it merely sorting based on a numeric value that is not displayed?  Or is it more clever than that?


cp vs. mv: which operation is more efficient?

I find myself moving reasonably large amount of data (20+ GB) from one directory tree to other. Often times they are on the same filesystem but sometimes they are on different ones. I do cp just to preserve the original data just-in-case. Once the copy is done I delete the original data after verifying that the data has been copied alright. Sometimes I just do mv if I feel too lazy to clean original data afterwards. However, I am wondering, from purely technical point of view, which operation is more efficient? Why?


Error: undefined control sequence. \begin{newlfm}, but document compiles

I have a lot of documents formatted like that:  \documentclass[a4paper,12pt,stdletter]{newlfm} \newlfmP{addrfromleft,addrtoright,dateright,orderdatefromto,sigright,noLines} \usepackage[utf8]{inputenc}  \namefrom{Hex} \addrfrom{Tex StackExchange} \dateset{\today} \addrto{Receiver}  \begin{document} \begin{newlfm} \textit{bla bla bla} \\[1cm] \begin{center}                             {\large Title} \end{center} Text \end{newlfm} \end{document}   They seem to compile correctly but i keep getting these errors:  ! Undefined control sequence. \@zfancyhead ...1\hbox to\headwidth {\fancy@reset                                                   \@zfancyvbox \headheight {... l.11 \begin{newlfm}   So the TeXstudio won't open the generated PDF although it is generated correctly. I am using MikTeX on Windows. What should i do to get rid of them? On the previous installation of TeXstudio+MikTeX, they didn't appear. I checked that i have newlfm installed in MikTeX Package Manager.


how to remove the background for png picture

I would like to make the background transparent. In Texmaker, if I right-click on the TikZ picture, I can save it as a png image as follows     If I save this picture, I get the white background. Is there a way to remove it?   \documentclass[border=10pt,tikz]{standalone} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{calc,fit,arrows.meta, positioning} \usepackage{graphicx} \usetikzlibrary{calc}  \begin{document}  \begin{tikzpicture}[auto,node distance=3cm,>={Stealth[width=4mm, length=6mm, fill=red]}] \coordinate (O) at (5,0);   \draw [very thick,fill=green,fill opacity=.2]  (-4, 4) circle (2.0cm) node [fill opacity=1]{\textbf{A}};  \end{tikzpicture}  \end{document}


There's no directory above /, so what's the point of the .. in it?


Android MediaPlayer Service NullPointerException

I am creating an android media player where I first get an arraylist of songs in the device and display them to the user using a recyclerview. On click, the position of the song clicked and the songs arraylist is passed to another activity(NowPlayingActivity). In this new activity, I have a connection to a service (PlaybackService) that is supposed to play the song.  The connection sets PlaybackService arraylist to the one that’s passed into the NowPlayingActivity. Here is the connection:  private ServiceConnection musicConnection = new ServiceConnection() {     @Override     public void onServiceConnected(ComponentName name, IBinder service) {         PlaybackService.MusicBinder binder = (PlaybackService.MusicBinder) service;         playbackService = binder.getService();         playbackService.setList(myTrackList);         musicBound = true;     }      @Override     public void onServiceDisconnected(ComponentName name) {         musicBound = false;     } };   In the service, I have a setter method to set the track number to be played as follows:  public void setTrack(int trackIndex){     trackPosition = trackIndex; }   the method is invoked from NowPlayingActivity as follows:  public void trackPicked(int thisTrack){     int trackPicked = thisTrack;     playbackService.setTrack(trackPicked);     playbackService.playTrack(); }   Calling trackPicked()  from the NowPlayingActivity causes a null Pointer Exception with android studio displaying a runtime error as follows:  11-13 12:21:17.915  19688-19688/? E/AndroidRuntime﹕ FATAL EXCEPTION: main     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.syntaxx.app.euphoria/com.syntaxx.app.euphoria.Activities.NowPlayingActivity}: java.lang.NullPointerException             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2343)             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2395)             at android.app.ActivityThread.access$600(ActivityThread.java:162)             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)             at android.os.Handler.dispatchMessage(Handler.java:107)             at android.os.Looper.loop(Looper.java:194)             at android.app.ActivityThread.main(ActivityThread.java:5371)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:525)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)             at dalvik.system.NativeStart.main(Native Method)      Caused by: java.lang.NullPointerException             at com.syntaxx.app.euphoria.Activities.NowPlayingActivity.trackPicked(NowPlayingActivity.java:49)             at com.syntaxx.app.euphoria.Activities.NowPlayingActivity.onCreate(NowPlayingActivity.java:42)             at android.app.Activity.performCreate(Activity.java:5122)             at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2395)             at android.app.ActivityThread.access$600(ActivityThread.java:162)             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)             at android.os.Handler.dispatchMessage(Handler.java:107)             at android.os.Looper.loop(Looper.java:194)             at android.app.ActivityThread.main(ActivityThread.java:5371)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:525)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)             at dalvik.system.NativeStart.main(Native Method)   what could be causing the exception?


I have learned programming for a couple of years, and used debug frequently.But I still don't understand the core principle of debug, how it works?How does singe line debugging(step into) implement?  take the java language for example.   What does CPU do for debug implementation?  what does JVM do for debug implementation?  what does eclipse do for debug implementation?  May be the three stuff I listed above have nothing to do with debug. I only guessed it.I have googled for some time and gained nothing useful for me(of course,debug itself is complicated), I hope more simple interpretation.  Thanks.


Is there a destructor for Java? I don't seem to be able to find any documentation on this. If there isn't, how can I achieve the same effect?  To make my question more specific, I am writing an application that deals with data and the specification say that there should be a 'reset' button that brings the application back to its original just launched state. However, all data have to be 'live' unless the application is closed or reset button is pressed.  Being usually a C/C++ programmer, I thought this would be trivial to implement. (And hence I planned to implement it last.) I structured my program such that all the 'reset-able' objects would be in the same class so that I can just destroy all 'live' objects when a reset button is pressed.  I was thinking if all I did was just to dereference the data and wait for the garbage collector to collect them, wouldn't there be a memory leak if my user repeatedly entered data and pressed the reset button? I was also thinking since Java is quite mature as a language, there should be a way to prevent this from happening or gracefully tackle this.


subgroup of a finitely generated group not necessarily finitely generated (Hungerford exercise)

I found a relation that $ab=b^2a$. However, I have no idea how to show that $H$ is not finitely generated. I keep encountering some kind of a word problem. Could anyone please help me?


We have an nginx server that we're using as a reverse proxy. We redirect every HTTP traffic to HTTPS, except a specific path - /success.html. The mechanism works at first, but after a while (few hours / days), the /success.html location stops working and times out. The other location (/) keeps working well. After reloading the nginx, things return to normal (until next time...).  Our conf file:  server {         listen                         80;         server_name                    mypublicdomain.com;         location /success.html {                 proxy_pass http://myinternaldomain.net/success.html;         }         location / {                 return 301 https://mypublicdomain.com$request_uri;         } } server {         listen                         443 ssl http2;         server_name                    mypublicdomain.com;         ...         ... }   What are we doing wrong here? We've seen similar issues when putting more than one location on the same server (with one location being more specific that the other).


In the Android App one can pin sites to the left tray menu. Unfortunately the view for selecting sites is mostly... empty space.


How to fit landscape multi-page table to textwidth

\usepackage{longtable}  \begin{landscape} \begin{table}[!htb] \centering \resizebox{\linewidth}{!}{% \begin{longtable}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}  % Table here  \end{longtable}% }% \end{table} \end{landscape}   I am unable to get the table to span over multiple pages while fitting the table to the width of the landscape page. Would you know how to do this, please let me know.


Does the tense in that clause need to agree with the main clause?

I don't know if the title of this question is accurate or not. My vacabulary of grammar is very limited. May you could understand me by the following example:   She told me that the earth is moving around the sun.  She told me that the earth was moving around the sun.    Which one is correct? Should the tense in that clause always agree with the tense in main clause?


How do i go about getting my own chip made?

I need a chip like the esp32 with an output  channel thats at least 48kHz. Also, it needs to be able to pair and connect to another esp32 over bluetooth, kind of like Airpods.  Basically, if I want to get a custom IC made, what so i do? What kind of company do I contact or who do i talk to, assuming I have the money (I dont but there's a reasonable chance I convince someone it's a worthy investment)? Any clue?


Does Raid 1 protect against data corruption?  For example, let's say that I am keeping all of my important files on a NAS that uses 2 disks in a RAID 1.  If one hard drive has some kind of internal problem and the data becomes corrupted, does the RAID recognize this automatically and correct it using data from the other good disk?  Could it even know which copy is the good one?  Does RAID 5 protect against corruption?  I know that RAID is not a backup solution.  I am trying to figure out how to make sure that I am not backing up corrupt data!


Show that $\{\emptyset,\{\emptyset\},\{\{\emptyset\}\},\{\{\{\emptyset\}\}\},...\}$ is a set

How can I show that  $\{\emptyset,\{\emptyset\},\{\{\emptyset\}\},\{\{\{\emptyset\}\}\},...\}$ is a set using the ZFC axioms only?  I know that $S(\emptyset)=\{\emptyset\}$. How could I prove the above strictly?


Is there an easy way to request a URL in python and NOT follow redirects?

Looking at the source of urllib2 it looks like the easiest way to do it would be to subclass HTTPRedirectHandler and then use build_opener to override the default HTTPRedirectHandler, but this seems like a lot of (relatively complicated) work to do what seems like it should be pretty simple.


Number of $n^2\times n^2$ permutation matrices with a 1 in each $n\times n$ subgrid

I found the following question in a paper I was trying to solve:  The following figure shows a $3^2 \times 3^2$ grid divided into $3^2$ subgrids of size $3 \times 3$. This grid has $81$ cells, $9$ in each subgrid.    Now consider an $n^2 \times n^2$ grid divided into $n^2$ subgrids of size $n \times n$. Find the number of ways in which you can select $n^2$ cells from this grid such that there is exactly one cell coming from each subgrid, one from each row and one from each column.  My try:  Since we have $n^2$ rows, $n^2$ columns and $n^2$ subgrids in total, we have to choose one and only one cell from each of them. Let's choose them one at a time. We can choose the first cell in $n^4$ many ways. Then, we'll have to avoid that subgrid, that column and that row that we've chosen the first one from when choosing the second cell. So, we have $n^4-n^2-2n(n-1)$ choices. We can continue this to get the total number of possible ways. But, I think there's a hole. Say, we've chosen the first cell from the subgrid of the up-left corner and the second from the subgrid just right to it so that it doesn't violate any rules. Then, when finding the number of ways we can choose the third cell, we would have substracted some of the cells twice. I think you get it. Please, if anyone can help me solving this problem, it'd be greatly appreciated.


This equality keeps coming up in my algebra course and I don't understand why this is true. $$ \sqrt{x^2} = |x| $$ shouldn't it just be $$ \sqrt{x^2} = x $$?


Proving Lipschitz gradient of $f(x)=\sqrt{1+\|x\|^2}$

Given $f(x)=\sqrt{1+\|x\|^2}$ and $f:\mathbb{R}^n\to\mathbb{R}$. Prove $f\in C_1^{1,1}$, meaning$$\|\nabla f(x)-\nabla f(y)\|\leq\|x-y\|.$$   I've tried to see how to prove it for $n=2$ but got stuck at computing the norm of the hessian. I know if I can prove $\|\nabla^2f(x)\|_2\leq 1$ will be enough. I know that $\nabla f(x)=\frac{x}{\sqrt{1+\|x\|^2}}$ i thought maybe i can assume w.l.o.g that $\|x\|\geq \|y\|$ to prove this.


How to get all files from archive file in c#?

I have read email attachment and if archive file then find out how many files are there into archive file. and any exe using programmatically without store any temporary location. I have find out getting attachment content as string or byte. from this string I need to get all files with its content and filename how this possible. thanks in advance


Returning a result with several values the Java way

I am used to developing in Python, but for work reasons have to do it in Java. I am facing a task that would be trivial in Python, and I'd like some advice on how to handle this in Java the proper way.  I need to parse a duration string. It can be in milliseconds (235ms) or seconds (32s). And it can also be "< 1ms" as a special case.  The parsing happens at least three times in the code so I'd like to separate it into a method. But my code does need to know, not just the resulting value in ms, but also whether it was in ms or s and whether it was <1ms (0 is a different value).  In Python I would just return a tuple:  return (value_in_milliseconds,is_in_seconds,is_under_1ms)   In C I would define a struct of these three values and return it. In Pascal I'd define a record.  In Java I can't return a tuple and I can't define a record so what do I do?  The only thing I can think of is creating a class representing a duration value. The constructor would take the string and parse it. The class would have fields: int milliseconds, boolean inSeconds, boolean under 1ms .   But this sounds terribly heavyweight - is there a better solution?


How to convert $\arctan(24/7) $to $2\arctan(3/4)$?

This is actually a doubt I got while solving . The thing is I know how to convert $2\arctan(3/4)$ to $\arctan(24/7)$ by using the $\arctan x + \arctan y$ identity, but how do I do the opposite? Please help!


Why absence of a virtual destructor doesn't cause a memory leak?

I am playing with the code  struct A {     char a[20000];     A() { a[0] = 'A'; }     ~A() {} }; struct B : A {     char a[20000];     B() { a[0] = 'B'; }     ~B() {} }; int main() {     A *pA = new A;     A *pB = new B;     delete pA;     delete pB;     return 0; }   Some people wrote () that it should cause a memory leak but it doesn't. I used g++, then valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt and get   HEAP SUMMARY: in use at exit: 0 bytes in 0 blocks total heap usage: 3 allocs, 3 frees, 132,704 bytes allocated All heap blocks were freed -- no leaks are possible   I know that some old compilers had problems when they try to free memory in similar situations but it looks like that the modern C++ can free memory seamlessly in this case.  So I am curios how is it possible?  Maybe delete uses information provided by OS for a given allocated memory block?  EDIT.  It is still unclear for me what exactly can cause the UB for delete *pB if we have empty destructors and constructors.  An answer for a question () shows that there are no any UB.


How can I get a uniformly distributed random number from the interval [0, 1] in C++?

How can I get a uniformly distributed random number from the interval [0, 1]?  I am currently using the following code, but it is in C and I would like to know how one does things in C++ instead.  double RND() {     return ((double)rand()/RAND_MAX); }


Unable to install ClamAV on 14.04 Ubuntu

I am struggling with Clamav, no matter what I do I get an error    Reading package lists... Done Building dependency tree        Reading state information... Done Package clamav 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 E: Package 'clamav' has no installation candidate   I tried   sudo apt-get -f install sudo apt-get update sudo apt-get upgrade   then   sudo apt-get install clamav   then   sudo apt-get install clamav clamtk   than from the Software Center, but no luck.  Can someone please help me to install ClamAV?


If I'm active user on many sites, is it possible to remove my account on only one of them?

I'm active user on many sites, and I'd like to delete my account on some of them. Is something like that possible?  It would require to unlink the account first, from what I know, so is it technically possible in the first line?   I wouldn't like to throw away my SO account, as well as orphaning Area51 proposals, if it would be possible to keep them.


Should "I'm not a native English speaker" lines be removed?

Sometimes I see questions with unnecessary "Hello to you from Username!", which obviously doesn't contribute or help understand the problem in any way. But I'm not sure about cases where people say "Sorry for my bad English" and such. These kind of warn the reader that the OP might have used wrong terms without knowing, so it sort of helps to guess what the problem is, if it's not clear enough.  Should these be removed?


Are Stormtroopers paid or rewarded in any way for their service?

First off, I have only seen  in the Star Wars franchise. I am aware of vast amounts of other canon and non-canon sources available. Much of the fun I have on this Stack Exchange site is reading the about some of these questions.  From reading here and following links to Wikipedia or  I have seen that once the events of Episode I to III are completed, the Empire switched from clones to regular humans prior to the events of Episode IV. This system seems to be in place through Episode VI. When we get to Episode VII humans are still being used.  From what I understand from the troops in Episodes IV - VI the humans are recruited, conscripted, or volunteer for service in the Empire (hence Luke mentioning wanting to go to the Academy). This would mean they some (if not many) Stormtroopers have a family of sorts. However, by the events of Episode VII it seems that the  is stealing/kidnapping (?) children to train them to be soldiers (Finn's comments on the matter suggest this).  So, to get to my question, I assume that clones (I-III) and kidnapped children (VII) would probably not need to be paid. The recruits/volunteers from Episodes IV-VI would be the most likely to be paid/rewarded. As we see with armies here on Earth, a soldier is paid even when drafted (formal armies like the US anyway). I would think there is something similar in place for the Empire or there would be no talk of an Academy or recruits, the Empire would just conscript their soldiers. Do we see any instances of Stormtroopers being paid/rewarded for their service?  Disney canon is preferred, but Legends are acceptable.


"Masquerade" mail sender on a multi-domain shared hosting

I've a single host with CentOS 6.3. I manage that host via SSH. The server itself is uname -n: servername.foo.com. On this host I've multiple, unrelated httpd vhosts.  The problm is: when one vhost sends a mail with PHP mail(), the sent mail header contains multiple servername.foo.com traces (Message ID is xyx@servername.foo.com, Received by is servername.foo.com and so on).  The mail are sent by postfix. No other mail services are used on this server.  The question is: how can I sent e-mail from each vhost pretending to be thatVhost.com instead of leaving traces of servername.foo.com in the mail headers?


Let f be an r-cycle in $S_n$. Given any $h \in S_n$, show that $hfh^{-1} = (h(x_1), h(x_2), \dots, h(x_r))$

The problem: let $(x_1, x_2, ..., x_r)$ be an r-cycle in $S_n$. Show that for every $h \in S_n$, $h \circ (x_1, x_2, \ldots, x_r) \circ h^{-1} = (h(x_1), h(x_2), \ldots, h(x_r))$


Camera cleaning by professionals or by myself?

My camera has accumulated some dust on its chip over the past 3 years and I want to clean it. Do you have experience with cleaning your camera's sensors on your own with appropriate gear? Do you suggest doing it? Or should I see a professional?


VirtualBox not displaying Ubuntu 17.04 correctly

I am trying to run Ubuntu 17.04 on Oracle VirtualBox 5.1.26 from an image that I downloaded from the Ubuntu website.  I have seemingly successfully installed Ubuntu correctly, however Ubuntu runs, I see the operating system load normally up until Ubuntu is supposedly fully loaded and what is displayed is a screen of graphics that is terribly distorted.  Here's a screenshot of what is displayed inside the operating system:    Within this screen, I can see the screen respond to my mouse movements, as if it does accept the input, but it's nothing that I can actually use.  Here is a screenshot of some of the settings I used for the Virtual Machine:    I'm wondering if anybody has had this problem before and knows how to fix this issue.    Update  It should be noted that at the time that this question was asked, the operating system was not installed.   After using the suggested actions within the accepted answer, I was able to install Ubuntu normally. Afterwards, I need to perform this sequence of button combinations a few times while loading Ubuntu in order to run the operating system.


I am following the Bayesian Methods for Machine Learning course on Coursera. Unfortunately, it glosses over many details, and I am struggling to understand how to check if a distribution is a conjugate of another.  For example, I would like to check if $ N(\mu_1 |m, s^2)$ prior is conjugate over parameter $ \mu_1$ for the likelihood $ N(X| \mu_1, \sigma_1^2)$.  As far as I understand, we have to multiply the two normals and check if the result is in the same family as the prior.  Since we only want to check how the relevant variables behave, we can use a simplified form:  $ N(X| \mu_1, \sigma_1^2)$$ N(\mu_1 |m, s^2) \propto exp(-\frac{(x-\mu)^2}{2\sigma^2}) exp(-\frac{(\mu -m)^2}{2s^2})$   First of all, can I simplify and move the denominator in the $exp$ outside in this way?   $ exp(-b(x-\mu)^2) exp(-c(\mu -m)^2)$   where b and c are just two constant? Then, how would I proceed?  Many thanks to whoever could clarify this.   $ $


How can I manually install gcc tarball file in Ubuntu 12.04?


Inequality $\sqrt{a_1a_2}+\sqrt{a_2a_3}+\cdots+ \sqrt{a_{n-1}a_n}≤ \frac{n-1}{2}(a_1+a_2+ \cdots + a_n)$

If $a_1, a_2, \dots , a_n$ are positive numbers, prove following inequality:  $\sqrt{a_1a_2}+\sqrt{a_2a_3}+ \cdots + \sqrt{a_{n-1}a_n}≤ \frac{n-1}{2}(a_1+a_2+ \cdots + a_n)$  I know the solution, though there may be other algorithms. I will post my solution if there is no identical one.


Please tell what is wrong with following :  $\iota=\sqrt{-1}$  multiply both sides with $\iota$  $\iota\cdot \iota=\sqrt{-1}\cdot\sqrt{-1}\Rightarrow\iota^{2}=\sqrt{(-1)\cdot(-1)}$  $\Rightarrow \iota^{2}=1$  which is ofcourse a contradiction. I know step   $\sqrt{-1}\cdot \sqrt{-1}=\sqrt{(-1)\cdot(-1)}$  is wrong but how to explain this to students who have just started learning complex numbers??


The dual version of trichotomy of cardinality without AC

Let $A$, $B$ be sets and denote by $A\leq^* B$ an assertion that if $A$ is non-empty, then there's a surjection from $B$ onto $A$. This might be understood as a dual definition of cardinality. (Typically we use injections to capture the notion of A not being bigger than B. The $\leq^*$ notation is to be read as B not being smaller than A.)  Is this relation trichotomous without using the axiom of choice? Meaning for every two sets $A$ and $B$, it holds $A\leq^* B$ or $B\leq^* A$. (I would be surprised). Would trichotomy imply some interesting extra-ZF axiom?  More broadly, is there anything to be said about $\leq^*$? For example how does it relate to the usual comparisons of cardinality by injections?  I suspect there's no clear answer, since it is somehow reminiscent of Partition Principle ($A\leq^* B \implies A\leq B$) and Weak Partition Principle ($A\leq^* B \implies B\not< A $) which both are independent of ZF.


Following this example, I can list all elements into a pdf file  import pyPdf pdf = pyPdf.PdfFileReader(open("pdffile.pdf")) list(pdf.pages) # Process all the objects. print pdf.resolvedObjects   now, I need to extract a non-standard object from the pdf file.   My object is the one named MYOBJECT and it is a string.  The piece printed by the python script that concernes me is:  {'/MYOBJECT': IndirectObject(584, 0)}   The pdf file is this:  558 0 obj <</Contents 583 0 R/CropBox[0 0 595.22 842]/MediaBox[0 0 595.22 842]/Parent 29 0 R/Resources   <</ColorSpace <</CS0 563 0 R>>     /ExtGState <</GS0 568 0 R>>     /Font<</TT0 559 0 R/TT1 560 0 R/TT2 561 0 R/TT3 562 0 R>>     /ProcSet[/PDF/Text/ImageC]     /Properties<</MC0<</MYOBJECT 584 0 R>>/MC1<</SubKey 582 0 R>> >>     /XObject<</Im0 578 0 R>>>>   /Rotate 0/StructParents 0/Type/Page>> endobj ... ... ... 584 0 obj <</Length 8>>stream  1_22_4_1     --->>>>  this is the string I need to extract from the object  endstream endobj   How can I follow the 584 value in order to refer to my string (under pyPdf of course)??


Literal & Figurative Meaning of 'Inform approaches'

I am unable to exactly comprehend the following sentence (word-by-word) as I am not getting what it means by 'Inform approaches' there: Assessments like 'Uwezo' are being used to inform approaches to scale TARL program across Africa in countries like Botswana. Also in quest of making my understanding, I went through many sentences in '** but I didn't attain a clear understanding yet. Is it more figurative than literal in meaning? Hope I will find solace here.


This is the first time I have connected to the mobile site in quite a while. While using safari on a iPhone 4 I have noticed that the comments on a lot of posts are not wrapping correctly in portrate mode.    Portrate:        Landscape:


Getting a nullpointer when attempting to print items of linkedlist

Basically I am trying to print the number of birds of each specific type in a linked list class I wrote called BirdSurvey. However when I try to print the items using my printList method, I get a nullpointer exception:Exception in thread "main" java.lang.NullPointerException at BirdSurvey.printList(BirdSurvey.java:39).I debugged and I think it has something to do with the my node not being able to find the next item in the list in my if statement. Yes, writing a linked list by hand is my homework assignment but I've come this far on my own so i'm hoping someone could just tell me why I'm getting this exception. class for Birds:      class Birds {     String birdType;     Birds(String birdType)     {         this.birdType = birdType;     }     public String getBirdType()     {         return birdType;     } }   Linked list class for birds:  class BirdSurvey {     static Node head;      static class Node{         Birds data;         Node next;         int count;         Node()         {          }         Node(Birds x)         {             data = x;             next =null;             count =0;         }      }     public void printList()     {         Node _node = head;         while(_node != null)         {             if (_node.data.getBirdType().equals(_node.next.data.getBirdType()))             {                 //increase count if bird species has been seen in list before                 _node.count+=1;             }             _node=_node.next;         }         while(_node != null)         {             //print out the birds and number of times they were in the list             System.out.print("Bird Type:"+_node.data.getBirdType()+" "+ "Count: ");             _node=_node.next;         }     } public static void main(String[] args)     {         BirdSurvey _list = new BirdSurvey();          _list.head = new Node(new Birds("blue jay"));         Node second = new Node(new Birds("orange jay"));         Node third = new Node(new Birds("orange jay"));           _list.head.next=second;         second.next=third;          _list.printList();     } }


How can you make text only appear when it is highlighted?

I would like a way to put a "secret" message into into the output pdf that's only readable if the reader highlights the text (or something similar).  more details:  I would like the text to be invisible and only appear if the reader highlights it with their cursor.   One possibility is suggested in the comments: I could use white text (or the same color as the background). Then the message is hidden, but it's only revealed if the reader copies and pasts it. I would prefer it to be revealed when the reader selects the text (i.e., the step before copying, not sure what this is called).


Which way is faster when stripping part of string in JavaScript

I need to strip part of JWT token and I am courious which one is faster, or less complex internally.  Example input string:  const input = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjMsInR5cGUiOjAsImlhdCI6MTU4MTk3NDk1MCwiZXhwIjoxNTgxOTc4NTUwfQ.oEwxI51kVjB6jJUY2N5Ct6-hO0GUCUonolPbryUo-lI"   Which one of those methods is faster?  const output =  input.split('.').slice(2,3).join('.');   const output =  input.replace("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.","");   const output =  //REGEX replace   I not found any informations about speeds of those methods and I am not exactly master in making tests :D


UKVI ECO made several mistakes on my visa decision. Update: Decision was overturned and visa was granted

Visa type: Visit (family)   Timeline: Biometric: sept 17 Concluded: October 6 Passport ready for pick up: October 15. Outcome: Denied       I applied for a month's visit visa to visit my family - (my parents and brother). One of the reasons was to see them, while the other was for my moms graduation earlier this month.  My parents are citizens while my brother has a permanent residency. I just picked up my application yesterday and it was denied due to 2 ridiculous reasons. 1. My sponsor (mom) does not have enough money in her joint account with my dad to donate 800 pounds to my flight which was mentioned in my application. 2. I do not have up to the money I claimed I had in my savings.  Now, I say the reasons were ridiculous because, I submitted two accounts for my sponsor (mom) as supporting documents:   Joint account with my dad which had 63 pounds balance, which was the one they checked. But the purpose of this was only to show my parents were married and share a joint account. My mom's personal account which had enough money about 4000 pounds to cover the 800pounds flight cost.   So obviously, they only checked one account and did not check the main account and assumed she does not have any money of her own.  Secondly, in the form, I declared a savings of 7k pounds and I submitted my 3 bank accounts to support this. They miraculously checked and mentioned only one bank account which had just 4k pounds in it. And they claimed, the 4k was not up to the 7k savings I claimed. For Gods sake, I submitted 3 personal bank accounts and 1 company account. They claimed I submitted 2 accounts, 1 for company and 1 personal with the 4k savings.  Also, I did write a brief but comprehensive cover letter detailing everything and the supporting documents attached.  I registered my company in May, and prior to that all business transactions have been going through my personal account. All these was explained, with proof of earnings and the source, but they obviously did not check and of that and only cherry picked what they want and made a decision that does not add up. They claimed I was self-employed, I am not self-employed. I am employed by my company and payslip of monthly salary of 360k per month was attached.  Also, they mentioned they are not satisfied my sponsor will provide financial support to me during my stay. I never said she would. My mom is only contributing 800pounds to the budget of 2k pounds. The 800 was only for my flight (which isn't a cost I can't even handle myself, she only planned to do that as a gift). I also included in my cover letter than the rest of the travel expense (1.4k pounds) will be covered by me for accommodation and feeding as I planned to rent an hotel close to where they live.  Now, the thing is I am not desperate to go to the UK, I really don't care as it was just to visit my family, however, all the reasons they refused me for were incorrect.  Do you guys advise me to reapply immediately to contest the decision?  I am thinking if I leave it and apply at a later time, it may confirm their thinking that their decision was right and that I and mom really do not have the funds.  Secondly, if I reapply now, how can I ensure that they check all the documents I submitted especially since it is obvious that they do not check a lot of the supporting documents and cover letter? Where should I put the details they failed to check? If I put all this in another cover letter for the new application, what's to say they will check or not even refuse again?


Curly brackets and set of list in python

I was working with the date structure of set implemented in python. I can define a set as: set_1 = set([1, 2]) and also as set_2 = {1, 2}. if I run set_1 == set_2 it evaluate to True but if I run set_1 is set_2 it evaluate to False. So what are the difference between this two implementations?


I'm making some exercises to prepare for my ring theory exam:     Prove that $I= \{a+bi \in ℤ[i] : a≡b \pmod{2}\}$ is an maximal ideal   of $ℤ[i]$.   I know that $a+2l=b$ with $l\in ℤ$ (or should I say $l \in ℤ[i]$)? Therefore I can write $a+(a+2l)i=a+ai+2li$. So I don't have $0+i$ in my ideal. For even real parts I have even complex parts, and for odd real parts I have odd complex parts. But I don't see what I can conclude now.