I have a page on wordpress, that after you enter is redirected to your profile page. So far so good.  However, after the user logged in would have had no more access to the homepage. I've hid the "HOME" menu, but if for some reason it access the home page, I would like him to be redirected to their profile page.  Is this possible?
I have a website with login page that works normal. The problem is that once logged in, the user still has access to the login page form to enter, which should not happen.  I would like to know a wordpres plugin that redirects this user to another page when they access it after login.
C non-blocking keyboard input I'm trying to write a program in C (on Linux) that loops until the user presses a key, but shouldn't require a keypress to continue each loop.  Is there a simple way to do this? I figure I could possibly do it with select() but that seems like a lot of work.  Alternatively, is there a way to catch a ctrl-c keypress to do cleanup before the program closes instead of non-blocking io? fastest way to detect if a value is in a group of values in Javascript I have a group of strings in Javascript and I need to write a function that detects if another specific string belongs to this group or not.  What is the fastest way to achieve this? Is it alright to put the group of values into an array, and then write a function that searches through the array?  I think if I keep the values sorted and do a binary search, it should work fast enough. Or is there some other smart way of doing this, which can work faster? Proving the two given vectors are orthogonal Understanding DNA match of 1,723 cM I have a DNA match of 1,723 cM with a male 6 years younger than me. His father is one of a twin, could my match be not my half-sibling but my 1st cousin. which of the following is NOT a possible value of $(e^{f})''(0)$?? Let $f$ be an analytic function on $\bar{𝐷} = \{z \in \mathbb{C}: |z| \le 1\}$. Assume that $|𝑓(𝑧)| ≤ 1$ for each $z\in \bar{D}$. Then, which of the following is NOT a possible value of $(e^{f})''(0)$??  $(A) 2$  $(B) 6$  $(C) \frac{7}{9}e^{\frac{1}{9}}$  $(D) √2 + 𝑖√2$  So I take a look at Cauchy Integral Formula and then $$(e^{f})''(0)=\frac{1}{\pi}\int_{|z|=1}\frac{e^{f(z)}}{z^3}$$  Taking modulus on both sides we have $$|(e^{f})''(0)| \le \frac{e}{\pi}2\pi=2e$$  Hence (b) cannot be the choice.   Is this alright!!  Thanks for the help! This is the error I get when I open the software center. I've tried rebooting and running sudo apt-get update but I see no improvement. It worked earlier but I don't know what went wrong since then. I'm using Ubuntu 16.04 final release on a Dell Inspiron 15R. Any advice will be appreciated. Thanks in advance.  EDIT: The problem magically solved itself without me doing anything special (or maybe inadvertently doing something, I don't know). So I'd still like to get to the root of this. I am interested in good integer approximation from below and from above for binary Log(N!).  and  provides only a general idea but not exact values. In other words I need integers A and B so that  A &lt;= Log(N!) &lt;= B Was this an oversight?  Or is it to do with the JVM? Existence of increasing sequence $\{x_n\}\subset S$ with $\lim_{n\to\infty}x_n=\sup S$ Let $S\subset\mathbb{R}$ be a non-empty bounded above set. Then there exists a monotone increasing sequence $\{x_n\}\subset S$ such that    $$\lim_{n\to\infty}x_n=\sup S.$$   I'm struggling with creating a formal proof for this problem. I understand that this has to be true, but I'm unsure of how to go about proving it.  I said that $\sup S = C$ and $x_n= C - y/n$ where $y$ is dependent on the size of $S$, but this is just a bunch of jumbled ideas and I can't really think of a way to formalize a proof. Any idea, even totally different from mine would be appreciated. Why didn't the Emperor realize that torturing Luke to death in front of Vader might be a bad idea? Can the Ubuntu logo be used for a commercial website? Is there an Ubuntu logo that can be used on a commercial website to indicate that Ubuntu can be installed for customers? Send email using the GMail SMTP server from a PHP page Objective-C - When to use 'self' Easiest way to alternate row colors in PHP/HTML? Here's a PHP example of mine. Can anyone find a shorter/easier way to do this?  &lt;? foreach($posts as $post){?&gt;     &lt;div class="&lt;?=($c++%2==1)?‘odd’:NULL?&gt;"&gt;         &lt;?=$post?&gt;     &lt;/div&gt; &lt;? }?&gt;  &lt;style&gt;     .odd{background-color:red;} &lt;/style&gt;   Examples in other languages would be fun to see as well. Both myself and my boyfriend have PS4s.  Can I just get a single PSN account and sign both consoles into the same account, or do I need to get two separate accounts? How can I replace Windows with Ubuntu? My laptop is filled with viruses and Windows XP is just becoming impossible to work with.   I've been interested in Ubuntu for a while, so, would I be able to use something like Debian to clear my HDD and OS and then install Ubuntu and start fresh? Given n distinct objects, there are $n!$ permutations of the objects and $n!/n$ "circular permutations" of the objects (orientation of the circle matters, but there is no starting point, so $1234$ and $2341$ are the same, but $4321$ is different).  Given $n$ objects of $k$ types (where the objects within each type are indistinguishable), $r_i$ of the $i^{th}$ type, there are   \begin{equation*} \frac{n!}{r_1!r_2!\cdots r_k!} \end{equation*}  permutations.  How many circular permutations are there of such a set? I seem to have run into a bit of a challenge on one of our Android/Samsung devices...   On the device, regardless of what's open, when the battery reaches 25% on discharge, the below screen pops up and covers the entire screen, with MUCH difficulty to get rid of. I've tried to trace it to a certain app, but was unsuccessful in doing so.     Can someone perhaps help with some advice on this, on how to get rid of it? Who are the Steam Mascots? So with the Steam Summer Sale in full swing, I've finally taken notice of the Steam Mascots.  Judging by the latest background, the black one, at least, has a name: Cyl.  Do the other two have names as well? Are there only these three?   What's their story? I just watched Planet Hulk. At the end the Hulk ends up with someone seemingly almost as powerful as he is. Are the Hulks (Green, Red, and She-Hulk) able to have children?