Wake on Lan doesn't work on wan I'm trying to setup wake on lan. My router doesn't allow port forwarding to broadcast so I've binded the mac address of my system to a static ip in the router's control panel. I've also forwarded port 9 to the ip I've set, so when the router gets a request it should forward it to the mac address of my computer. The only problem is that, for some reason, the computer wakes through lan but not through wan. I'm using android's WolOn app to send the magic packet and I've Kali linux installed on my system. My router is a TP-Link TD-W8961ND ver 3.0. Thanks for the help!   UPDATE: I've run tcpdump, turns out that my machine receives the magic packet both on lan and wan. For some reason, it doesn't wake on wan. Could it be that the system refuses wan magic packets? They seem to be different from the lan ones
machine wakes only on local magic packet I've got a Debian server, which I would like to wake up remotely using a tool like wakeonlan.  I have assigned the server a static internal IP 192.168.0.14 and set up the appropriate port forwarding in the router (which otherwise has a very limited admin interface).  When I am logged in to the same network, I can wake the server using the subnet IP, but I cannot wake the server using the public IP of the router.  What I do not understand: When the server is running and I listen on the server with netcat nc -ulv -p 9, I can see the packet coming in in both cases (both when sending to the subnet IP and when sending to the public IP of the router).  If the packet arrives in both cases, why does the machine wake up only in one of them?
I'm new to linux and the terminal. As I learn how to use the terminal to navigate through directories, I like to use the gui file explorer to mirror my terminal navigation. The icons and file extension info in the gui file explorer help me figure out what everything is. However, I can't access the root folder via the gui, I can only access it via the terminal. Is there a way to enable access to the root folder outside of the terminal? After installing Telegram Desktop on Ubuntu 16.04 by these commands:  sudo add-apt-repository ppa:atareao/telegram sudo apt-get update sudo apt-get install telegram   I get this error:  $ telegram telegram: Panic - Unable to find your tty (pts/2) in /var/run/utmp I want to loop over the contents of a text file and do a search and replace on some lines and write the result back to the file. I could first load the whole file in memory and then write it back, but that probably is not the best way to do it.  What is the best way to do this, within the following code?  f = open(file) for line in f:     if line.contains('foo'):         newline = line.replace('foo', 'bar')         # how to write this newline back to the file Which variables should I transform, center, and/or standardize in my data for Principal Component Analysis? I have multiple datasets that I am attempting to use principal component analysis (PCA) on in order to infer the underlying structure of the data.  I'm attempting to predict growth increment of conifers (the response which apparently needed to be cube root transformed for my original linear models).  My predictor variables include: continuous (some log-transformed like size-related variables, some compositional, and some traditionally scaled); binary; ordinal; and nominal (of which I'm pretty sure I can order with respect to site productivity).  I'm mostly attempting to make inferences because some of my previous models from linear regression have not produced significant terms corresponding to categories like health or climate and I feel that they should have.  I've read in Joliffe (2002) that I might want to leave my compositional data uncentered.  Forgive my naiveté, but I'm wondering if I should also do this for my binary data.  It also seems that I might not want to scale these since they're already on a 0 - 1 scale but I'm not sure.  After only using my continuous predictors (including compositional variables), it appears that a size principal component makes up the largest portion of the variability and Joliffe also mentions that one might want to attempt a "double-centering" of the log-transformed data if this is the case.  I don't know if this is even possible since the log-transformed data only makes up a small portion of my datasets.  Finally, I should ask if having such a combination of data types will complicate analysis so much that it will make inferences unreliable.  I am currently using R for this analysis.  Thank you. Don't invite people when moving their messages How do I arrange selected vertices into a circular formation quickly?  The other answers does not have the same title as my question. My question is direct and simple for younger beginner to search for results. In a couple weeks, I will have a long layover in Cairo on a trip from Mumbai to Toronto. I get to Cairo on Sunday at noon and leave for Toronto on Monday at about 1 AM.  I am travelling on EgyptAir business class. While browsing for people who have experiences with a similar itinerary, some people seemed to have said they they were put up ina  hotel by the airline. However, I did not see anything about this when I booked my ticket.   allows me to enter my status (i.e. citizenship etc.) which results in a .  It doesn't appear like I need a transit visa- however it specifies that:     Leaving the airport is permitted for passengers with transit time   between 6 and 12 hours   My transit time 13.5 hours.  Now for my questions:   Is it an issue that my transit time is longer than 12 hours? Can I still leave the airport? What are my options with regards to airport hotels, etc.? Any other recommendations about how I could best utilize my time while in Cairo? how to make a full backup of ubuntu server for another computer? I have a Ubuntu 15.10 server, which currently has a bunch of software installed on. Now, I want to make a full backup of everything there (including profiles, configs, etc...) on this computer (virtually on Parallels Desktop) for another physical computer which I've recently installed Ubuntu 15.10 server on it.  So how can I transfer this system completely into that computer? I tried PinguyBuilder and Systemback, but they were not what I wanted.  Considering that if there is a way, which would need not or at least a Internet connection (specially on physical computer) would be awesome.  Any help?  P.S: I know there are many topics for backup things, but they are not exactly for a non-gui server, or maybe I couldn't find what is suitable for me. Why do 'get' and 'have' work similarly in      I got/had my car repaired.    but differently – that is are not complemented in the same way although they still mean the same – in      I got someone to repair my car.    and      I had someone repair my car. How to set systemwide "XP style DPI scaling" in Windows 8.1? I run my ThinkPad with a system DPI setting of 140%. In Windows 7 and 8, I enabled the "Use Windows XP style DPI scaling" checkbox in the Custom DPI Setting dialog. When this setting is off, non-DPI-aware applications get DPI virtualization via bitmap stretching, which results in large but fuzzy text. Turning on the checkbox disables this bitmap stretching, so non-DPI-aware apps get smaller text but without the fuzzy stretching. I find most apps to be more readable with the smaller crisper text, so I enable XP style scaling (i.e. disable DPI virtualization).  Windows 8.1 RTM has removed this option completely. After upgrading, all of my non-DPI-aware apps are running with ugly bitmap stretching. I'm able to fix this by going into the Properties for each app and setting the "Disable diplay scaling on high DPI settings" box in the Compatibility tab, but that is a bit of a pain.  Is there any way to restore the systemwide XP-style DPI scaling in Windows 8.1? Do I need an airport transit visa through Switzerland if I have no Schengen visa? Am traveling from Cairo to Moscow via Swiss Air If $A=AB-BA$, is $A$ nilpotent? Let matrix $A_{n\times n}$, be such that there exists a matrix $B$ for which $$AB-BA=A$$  Prove or disprove that there exists $m\in \mathbb N^{+}$such  $$A^m=0,$$  I know $$tr(A)=tr(AB)-tr(BA)=0$$ then I can't.Thank you Consider the following sentences:        I'll move to the south by then probably.   I'll probably move to the south by then.   I'll move to the south probably by then.      Which of the three is correct. In my opinion, the third one is wrong. First two are correct with a small difference in their meaning.  First one makes my probability refer to the time when I'll be moving and the second one tells that there is still a chance that I might not move.  Am I correct? When a user votes to close a question (for whatever reason), it would helpful to receive a notification (in the inbox) when the question is edited (either the text, tags, if it closes then is re-opened) so that the user can then modify his or her vote if the question is properly adjusted. Text in an equation This is best explained by example. Suppose I have the following:  \[     \begin{align*}     C_3 \rightarrow 6 automorphisms\\     C_4 \rightarrow 8 automorphisms\\     C_5 \rightarrow 10 automorphisms     \end{align*} \]   How can I get the word "automorphisms" to display as if it were not enclosed by the brackets? Solving an equation over the reals: $ x^3 + 1 = 2\sqrt[3]{{2x - 1}}$ I ran into the problem that my primary key sequence is not in sync with my table rows.   That is, when I insert a new row I get a duplicate key error because the sequence implied in the serial datatype returns a number that already exists.  It seems to be caused by import/restores not maintaining the sequence properly. java.lang.IllegalArgumentException: Invalid  in servlet mapping &lt;servlet&gt;     &lt;servlet-name&gt;myservlet&lt;/servlet-name&gt;     &lt;servlet-class&gt;workflow.WDispatcher&lt;/servlet-class&gt;     &lt;load-on-startup&gt;2&lt;/load-on-startup&gt; &lt;/servlet&gt;  &lt;servlet-mapping&gt;     &lt;servlet-name&gt;myservlet&lt;/servlet-name&gt;     &lt;url-pattern&gt;*NEXTEVENT*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt;   Above is the snippet from Tomcat's web.xml. The URL pattern *NEXTEVENT* on start up throws     java.lang.IllegalArgumentException: Invalid &lt;url-pattern> in servlet mapping   It will be greatly appreciated if someone can hint at the error. ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ How does ownership in fractional shares work? I've been trying to find out some more information about fractional shares, and how they work. I understand conceptually, you own x% of a share rather than x "full" shares, but I'm curious about how such a system is implemented.  As I understand it, in a "traditional" purchase of shares, the role of a broker is to act as an executor on your behalf, and does not hold any assets themselves. In the case of a fractional share, is this then not the case? For example, the broker holds the complete shares, and then just ensures that they keep an internal record of each partial owner in their system? So there would be no external record of partial ownership?  Thanks! Are keywords in URLs good SEO or needlessly redundant? A coworker and I are locked in a debate over the value of SEO keywords in the URL of a page. She wants to change all the filenames of the HTML pages of a fencing company so they look like residential-home-chicago.html, contact-chicago-contractor.html, and so on. She is convinced that because Google highlights keywords in URLs in search results, that means that putting keywords here is more valuable.  My position is that these do not improve SEO, since Google doesn't seem to give keywords in the URL any more weight than keywords in the body of the page, and . In the meantime, they make it harder for me to find the pages I want when its time to edit them, and the site as a whole looks cheap and spammy.   suggests to me that yes, keywords in URLs are useful, but not superior, and that they are more useful for human readability than search engine rankings.  I'm looking for authoritative sources that support either position, not blog articles from SEO optimization companies trying to promote themselves.