I have a TP-Link MR-3020 Router with a USB port.  What I want to do is to setup a website on my USB flash drive, which will be connected to the router via the USB port. Now, when anybody is connected to the router through wifi, when he goes to the router's IP address, instead of going to the firmware page, the user goes to the website on the USB stick.  Is this possible in any way?  I have read the following but they didn't help:
Possible Duplicate:          Sounds like a silly question, but bear with me..  If you go into Peet's Coffee and access the wifi, you're taken to a web page that requires a 4-digit code you get with a purchase.   If you do the same at Starbucks you're taken to a page and asked to OK the terms of service.   I want to build something similar for a local independent coffee shop, something that requires the user to write a little about themselves before they can access the Internet.  I'm not sure which way to go -- looking for wifi routers that run an internal web server, or finding one that lets you direct users to an external website for authentication, somehow redirecting back to the access point once successful.   Has anyone done anything like this and can share their experience?
How to include a PDF image into a PDFLaTeX document I am generating a PDF file using pdflatex and need to include another PDF file. The reason is that I have a graphMl file which I exported from yEd graph editor to a PDF file, named sample.pdf. The TeX code to be compiled with pdflatex is given below. I need to include that file at the start of the document.   \documentclass[a4paper,leqno,twoside]{article}  \usepackage[latin1]{inputenc} \usepackage[english]{babel} \usepackage{multirow}  \begin{document}   [% FOREACH st IN Service %]    Name,Id:   [% st.Id %], [% st.Name %]     des:   [% st.Description %]    Customers:  [% FOREACH softservice IN st.Customers %]   [% FOREACH swid IN softservice.SW %]  [% swid.Service %]   [% FOREACH st IN Service %][% IF swid.Service == st.Id %]     ([% st.Name %])     [% END %] [% END %][% END %][% END %]    Suppliers:    [% FOREACH shservice IN st.Suppliers %]    [% FOREACH sw IN shservice.SW %][% sw.Service %]     [% FOREACH st IN Service %][% IF sw.Service == st.Id %]([% st.Name %])      [% END %][% END %][% END %]    [% FOREACH hw IN shservice.HW %][% hw.Type %][% hw.Nr %][% END %]   [% END %]   \newpage   [% END %] \end{document} Unable to catch JsonMappingException Is there a package that automatically inserts the ToC level of the reference I inserted?  Section 1.1 \label{a} Subsection 1.1.1 \label{b} Subsection 1.1.2  \label{c}   So that the text:  Blah \superref{a} and \superref{b} and \superref{c}   becomes:  Blah Section 1.1 and Subsection 1.1.1 and Subsection 1.1.2   So that it automatically adapts if I change the level of a label? Group theoretic meaning of natural isomorphisms between certain functors So imagine you have a group $G$ and we consider the set of group homomorphisms from $\mathbb{Z}$ to  $G$ specified by  $\forall g$ $\in G$ $\exists$   $\phi(1)=g$. Each of these homomorphisms is in 1-1 relation with the elements of $G$.  Consider groups for a moment in the context of category theory, viewing the groups as one object categories and thereof group homomorphism as functors. What would a natural isomorphism mean in group theory terms for G?  My thoughts are that the natural transformations equate to maps between homomorphisms and since the homomorphisms are in 1-1 relation with the elements of G, then a natural transformation is a map between group elements, i.e another element of the group. I'm not entirely convinced by this.   Anyway continuing my reasoning a natural isomorphism is a map between the homomorphisms that has an inverse, the thing is in relation to the elements of G this is every element? Furthermore I'm looking to find an equivalence class defined by this natural isomorphism, is this just a collection of the elements that are each others inverses?  Thanks in advance for any assistance. Specifing ip address for outbound connections on a multi ip host one of my servers (Debian 5.0.6) has two public ip-address on the same interface. This used to work well for months but suddenly it is using "the wrong" ip addresses for outgoing connections. This is a problem because the reverse lookup will not match and emails therefore get spam points.  eth0      Link encap:Ethernet  Hardware Adresse 00:1b:21:14:8e:9c             inet Adresse:81.169.180.51  Bcast:81.169.180.51  Maske:255.255.255.255           inet6-Adresse: fe80::21b:21ff:fe14:8e9c/64 Gültigkeitsbereich:Verbindung  eth0:0    Link encap:Ethernet  Hardware Adresse 00:1b:21:14:8e:9c             inet Adresse:85.214.157.120  Bcast:85.214.157.120  Maske:255.255.255.255   Kernel-IP-Routentabelle Destination     Router          Genmask         Flags Metric Ref    Use Iface 81.169.180.1    0.0.0.0         255.255.255.255 UH    0      0        0 eth0 0.0.0.0         81.169.180.1    0.0.0.0         UG    0      0        0 eth0   Currently it is using 85.214.157.120 for outbound connections. How do I get it to use 81.169.180.51?  Edit: The netmask of 255.255.255.255 is consistent with both documentation and DHCP response of the hosting company. Calling /etc/init.d/networking restart multiple times will eventually end up with the correct ip-address for outbount connections. But that is obviously not a stable solution. /Edit  Edit 2: To make sure that the host route is not related to my issue, I setup a local test network:  eth0      inet Adresse:192.168.0.2  Bcast:192.168.0.255  Maske:255.255.255.0 eth0:0    inet Adresse:192.168.0.3  Bcast:192.168.0.255  Maske:255.255.255.0  192.168.0.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0 0.0.0.0        192.168.0.1     0.0.0.0         UG    0      0        0 eth0   If anyone has an idea how to make sure that source ip-address 192.168.0.2 is used on outbound tcp connections, I'd be thankful. /Edit 2 I've followed this tutorial to install Ubuntu 15.10:    After restarting my computer I got to the grub menu and chose Ubuntu. Shortly after that I got this error:  /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning.   These messages keep adding up on a black screen every second. After a while,  I get access to the initramfs ash console.  what am I doing wrong? where instance variables get initialized From Wikipedia :     Suppose you're on a game show, and   you're given the choice of three   doors: Behind one door is a car;   behind the others, goats. You pick a   door, say No. 1, and the host, who   knows what's behind the doors, opens   another door, say No. 3, which has a   goat. He then says to you, "Do you   want to pick door No. 2?" Is it to   your advantage to switch your choice?   The answer is, of course, yes - but it's incredibly un-inituitive. What misunderstanding do most people have about probability that leads to us scratching our heads -- or better put; what general rule can we take away from this puzzle to better train our intuition in the future? If $f$ is continuous and $\,f\big(\frac{1}2(x+y)\big) \le \frac{1}{2}\big(\,f(x)+f(y)\big)$, then $f$ is convex Let $\,\,f :\mathbb R \to \mathbb R$ be a continuous function such that $$ f\Big(\dfrac{x+y}2\Big) \le \dfrac{1}{2}\big(\,f(x)+f(y)\big) ,\,\, \text{for all}\,\, x,y \in \mathbb R, $$ then  how do we prove that $f$ is convex that is $$ f\big(tx+(1-t)y\big)\le tf(x)+(1-t)f(y) , \forall x,y \in \mathbb R , t\in (0,1)? $$ I can prove it for dyadic rational's $t=\dfrac k {2^n}$ and then argue by continuity ; but I would like a more direct proof . Thanks in Advance How to jump to the region header from the endregion tag in c# visual studio 2012? In Markov inequality proof, why is $\int_a^\infty xp(x) \, dx \ge \int_a^\infty ap(x) \, dx$ Markov inequality,   $$\Pr(X \ge a) \le \frac{E[x]}{a}$$  Proof  $$\begin{aligned}      E(X) &amp;= \int_0^\infty xp(x)\,dx = \int_0^a xp(x)\,dx + \int_a^\infty xp(x)\,dx \\       &amp;\ge \int_a^\infty xp(x)\,dx \ge \int_a^\infty ap(x) \, dx  \end{aligned}$$  Why is the last inequality true? Why is it ok to change $x$ to $a$, and we know it is less than or equal to? How did they figure it out? Thanks! I found the question  Regarding the number of answers votes and also according to my personal taste I like to capitalize titles. But what exactly are titles? Only the single main book title? What about other smaller semantic parts? Chapter headings, sub-chapter, ... How can I prove that the additive group of rationals is not isomorphic to a direct product of two nontrivial groups? I am working through Paolo Aluffi's new GSM text on my own (self-study). On page 63, he asks the reader to     Prove that $\Bbb{Q}$ is not the direct product of two nontrivial groups.   For some context, this is an exercise following a section entitled "The category Grp".  I am assuming that he means "is not isomorphic to the direct product of two nontrivial groups", and I can see two possible ways to proceed with this proof, but have been unsuccessful with either approach.    Approach 1:  Show that the additive group of rationals has a property that is preserved by isomorphism that the direct product of two nontrivial groups does not have or vice-versa.  This seems challenging unless I can significantly narrow down the properties that a direct product of two nontrivial groups that was isomorphic to $\Bbb{Q}$ would necessarily have.  Approach 2:  Considering the section in which this question occurs, show that if $G$ and $H$ are nontrivial groups and $\Bbb{Q} \cong G \times H$, then there are homomorphisms $\varphi_{G}:\Bbb{Q} \rightarrow G$ and $\varphi_{H}:\Bbb{Q} \rightarrow H$ which do not factor or do not factor uniquely through the product $G \times H$.  This would be a contradiction, as $G \times H$ is a final object in the category Grp.  I would greatly appreciate suggestions on how to proceed further with either of these approaches or with alternate approaches. I am working on a git repository with a master branch and another topic branch. I have switched to topic branch and modified a file. Now, if I switched to master branch that same file is shown as modified.   For example:  git status in git-build branch:  # On branch git-build # Changes to be committed: #   (use "git reset HEAD &lt;file&gt;..." to unstage) # #       modified:   cvsup_current #   Switch to master branch  [root@redbull builder_scripts (git-build)]# git co master M       builder_scripts/cvsup_current Switched to branch "master"   git status in master branch  [root@redbull builder_scripts (master)]# git status # On branch master # Changes to be committed: #   (use "git reset HEAD &lt;file&gt;..." to unstage) # #       modified:   cvsup_current #   Why is that the file is shown as modified in master branch even though it was modified in git-build branch?   My understanding was that the branches are independent of each other and when I change from one branch to another the changes do not "spill over" from one branch to another. So I am obviously missing some thing here.   Anyone got a clue stick? Is it possible to use a laptop as an external monitor? I need to create a multi-monitor setup for my desktop computer but I have no additional monitors with me right now, aside from my laptop. Is it possible to use my laptop screen as an external monitor?  Note that I am not trying to connect a monitor to my laptop, rather, I am trying to connect my laptop screen to a desktop video card (if this is possible). Can "Wow!" be a sentence? How does this wiring work? I have a Trane XV90 and XL 14i. The wiring looks a little strange as in the picture bellow.                    _____________                   |           |   BK W2  W1   R  G  Y  B/C  YLO O     |___||   |__|  ||   |          |   |     ||   |_____>|----------|         |   |     ||_________>|other wire|         |   |     |           ------------         V   V     V     ---------------     |thermostat   |     ---------------  The R and G are jumpered together and the G wire is connected on the board  but is actually not connecting to the thermostat on the other end. So people told me that means the furnace fan is always on! (In my diagram above, I switched the location of Y and B/C to make diagram easier to draw. You can refer to the photo added below to see the details) My questions are the following  is the jumper between O and Y doing anything? I don't think I have heat pump I need to install Honeywell wifi thermostat and I am thinking of doing either one of the following:   remove jumper between R and G, and use G to connect B/C and then to thermostat C and put jumper between G and Y  leave jumper between R and G, and use G to connect B/C and then to thermostat C and put jumper between G and Y  remove jumper between R and G, connect G on control board to thermostat G, and finally have the spare wire to connect B/C and then thermostat C  leave jumper between R and G, does not connect G to thermostat,  and just use a spare wire to connect B/C on board to thermostat C   Can anyone comment on those plans? Thanks a lot! Is an explanation of 'effect of Earth's rotation on $g$' possible from an inertial reference frame? Edit : Added a picture for better understanding of my querry. All the texts I have studied has used an non-inertial frame to explain the phenomenon. But every time I see something explained with pseudo forces, I try to realize in real forces.   But in this case I tried to explain it in a frame which is centered in Earth's center and not rotating. But I couldn't explain what happens to the tangential component (to the point on Earth's surface where $g$ to be measured) of centripetal acceleration in this scenario. It doesn't cancel out.   But then I thought the tangential component is so low that practically it would have no effect.  Is my explanation wrong? Contacting prospective advisors before graduate school applications - courtesy or annoyance? Last year, rather late during the MSc application cycle (after one round of funding was allocated - tardiness due to an abrupt change in my life situation), I emailed two professors from two schools that I most wanted to go to. I had perused their webpages and decided these professors had the specific research interests closest to my own.  My reason for contacting them before finishing my applications for their respective schools was that the applications included a large section for specific research questions that I wanted to investigate. So, I emailed these professors asking a bit about their work, because their webpages of course featured surface-level stuff.  One professor was very receptive and invited me to Skype with her so she could better explain herself and I could ask her questions. With her support, I was able to write an application that met her standards quite quickly.  The other professor told me - paraphrasing, of course - that he was too far into the process of choosing a new student for his research group to spend time helping me finish the application.  Let me be clear that the latter professor didn't say any harsh words and I have nothing bad to say about him. That said, the purpose of my question is to decide whether it's better for me as a prospective MSc student to email professors ahead of time like this. Was the latter's rejection likely due to my tardiness rather my emailing him? The more receptive professor made the point that she always wanted to have prospective MSc students write their own research proposals and get her approval before submitting the application. Is this common? If so, then I guess reaching out beforehand is a good thing to do, but earlier in the application cycle?  Thank you. Are there published predictions that hydrogen could remain metallic at ambient pressure? Below the question  there is a  that directed me to the BBC News summary . In their attempt to balance the skepticism of this particular reported observation with the potential implications of producing metallic hydrogen in a laboratory, the BBC included some far-reaching possibilities:  If that is true - and it is a controversial claim - it fulfills a more than 80-year quest to produce what many have said would be a wonder material. Theory suggests metallic hydrogen could be used to make zero-resistance electrical wiring and super-powerful rocket fuel, among many applications.  At the end of the article:  &quot;The scepticism here is probably a good thing, in that it will drive many groups towards attempting to reproduce this experiment. This publication will certainly incite the field. Again, if it holds up, this is an exciting result. I think in this case time will tell,&quot; he told BBC News.  ...referring to Marcus Knudson from Sandia National Laboratories.  And Jeffrey McMahon from Washington State University concurred: &quot;With respect to the tiny sample amount: Such experiments are performed in small diamond anvil cells. One challenge would be to make a larger quantity (at once); another, perhaps bigger challenge is to recover even the small sample (ie, remove it from the extreme pressures that it is under in the diamond anvil cell). &quot;Whether the latter is possible is an important open question.&quot;  Question: Are there published, peer-reviewed predictions that hydrogen could remain metallic at ambient pressure? A link or reference would be appreciated. If it's still in pre-print form (AeXiv) that's OK too. If it's possible, a little help understanding the prediction would be great as well: I know there are many predicted crystalline forms of water ice at elevated pressures and/or reduced temperatures, and many or most of these have been observed, but I think most of them revert once pressure is reduced to ambient. Also the  comes to mind. If there is such a prediction of the possibility of hydrogen remaining metallic at ambient, is there an analogous example of this with a material I'm more familliar with, or is this something quite new?