Redirect all traffic to https apart from a single URL with Apache
Redirect, Change URLs or Redirect HTTP to HTTPS in Apache - Everything You Ever Wanted to Know About mod_rewrite Rules but Were Afraid to Ask
I have this problem I'm working on. Hints are much appreciated (I don't want complete proof):  In a normed vector space, if $ x_n \longrightarrow x $ then  $ z_n = \frac{x_1 + \dots +x_n}{n} \longrightarrow x $   I've been trying adding and subtracting inside the norm... but I don't seem to get anywhere.  Thanks! How to find $ \int_0^\infty \dfrac x{1+e^x}\ dx$ Can anybody explain the UNABLE_TO_LOCK_ROW error? Access 2007 Work in a separate file using ACCDE PDOException when creating the table: Base table or view not found I have Drupal running on MariaDB 5.5.33. When I run update.php (after upgrade to Drupal 7.28 from Drupal 6) I get an error:     Failed: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'webdb.location_country' doesn't exist: CREATE TABLE {location_country} ( code CHAR(2) NOT NULL COMMENT 'Primary Key: Two letter ISO Country Code', name VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'Full Country Name ', PRIMARY KEY (code) ) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Country data managed by location.module.'; Array ( ) indb_create_table() (line 2720 of /home/web/public_html/includes/database/database.inc).   When I try to run command     CREATE TABLE {location_country} ( code CHAR(2) NOT NULL COMMENT 'Primary Key: Two letter ISO Country Code', name VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'Full Country Name ', PRIMARY KEY (code) ) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Country data managed by location.module.';   in phpMyAdmin I get an error     #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '{location_country} ( code CHAR(2) NOT NULL COMMENT 'Primary Key: Two letter IS' at line 1   But I wasn't able to find out where is the problem. How do I install make? In an Econometrics - Time Series textbook (Hamilton), I saw the claim, without proof: Consider the sequence $ \psi_j $, then, for $ x &gt; j $, $ \frac1j &gt; \frac1x $, and therefore: $$  \frac1j &gt; \int_{j}^{j+1} \frac1x dx $$ for $x$ &gt; $j$. When I plug in numbers for $j$, I see that this is indeed satisfied. But I'd like to know the intuition behind this or a proof. What are the technical differences between using a DSLR viewfinder and live view? The earlier question  asks for practical advantages of optical viewfinders. But what's the technical difference, and why does a camera behave differently in each mode?  For example, on my Nikon D5100:   Slower auto-focus — I saw this explained in the related issue, but just partially: "The other major drawback of live view is that because it requires the mirror to be locked up, it means that the auto focusing mechanism is unavailable."  option not available. No . The manual says that it's dangerous to shoot direct light, when it's on live-view. There's no range finder available.   Why are all these things different?  Live view also has some advantages, like:   automatic scene selection grid lines on the screen other smaller things, like possibly easier operation on a tripod where the viewfinder might be inconvenient to look through   Some of these things, like the tripod operation, are natural. But are there technical reasons the others can't be done with an optical finder? Are there other advantages enabled by live view for technical reasons? "big enough to do this" My question is what is the difference among these three sentences.   He is big enough to do such  heavy works. He is not big enough to do such heavy works. He is small enough to do such  heavy works.   I am so much confused between 2 and 3.Also, I don't get what the 3rd one means. Low output volume Solving cubic equations with another method. I want to solve cubic equations with some pattern or formula. My maths teacher told me that if we want to solve cubic equations we have to find any one value for the equation which satisfy it and then divide the main equation by it. But I find that method little useless . Is there any other simplier or good method to solve it. You can explain it by an example. Does a photon exert a gravitational pull? What is the difference between client-side and server-side programming? Where can I find a repository for older unsupported releases? I have data with a column containing a number value, and I want to divide the value of each feature by the total sum of all the values in the column (to get a percentage).  So I would like to know if there is some simple syntax in the QGIS field calculator to get the sum of a column, preferably without resorting to for loops and what not.    I have a shapefile where feature A has the value X in column B. How can I summerize the values for all features in column B in order to divide value X to get a percentage for each feature? I want to type Arabic text in Photoshop, but the text appears disjointed and the letters do not connect at all. For example محمد appears as م ح م د.   I'm using Photoshop CS6 on OSX Mountain Lion. When adding image from Wikimedia Commons, automatically add author/license/link Many Stack Exchange questions and answers embed images from Wikimedia Commons. It is probably the most used image source here. Good news Thanks to their license, all images from Wikimedia Commons can be legally used inside Stack Exchange. Bad news The only requirement is to cite the author/license (), an easy task, but we are totally failing at it, only maybe 1% of Commons images used here are properly cited. That makes our use of these images illegal, and could expose Stack Exchange to various legal threats. Not my problem, you could say, but this is also important because , bringing Stack Exchange closer to closed-data sites like Yahoo! Answers or Experts-Exchange. Proposed solution When using the image addition widget, the widget should detect whether the image's URL has a *.wikimedia.org domain, and if yes:  (optional) Transfer the image to imgur, for perennity reasons. Retrieve the author name and license name from Commons (there is a very reliable API that gives that). Concatenate into a proper citation, maybe something like &quot;*Credit: [&quot; + author + &quot;](&quot; + commonsPageURL + &quot;) , [&quot; + license + &quot;](&quot; + licenseURL + &quot;)*&quot; Insert the citation at the same time as the image's MarkDown.  Benefits:  Remove a large part of Stack Exchange's copyright violations. Makes us a good citizen in the open data world. Remember what happens to sites who disregard ethics (Experts Exchange). Consistent citations. Zero added burden for the users. What is the difference between "du -sh *" and "du -sh ./*"? What's the difference between du -sh * and du -sh ./* ?  Note: What interests me is the * and ./* parts. Zombie process using 100% CPU A zombie process, which should not be using any resources (RAM and CPU), is hogging up an entire core on my 8-core 64-bit Ubuntu 11.10 Desktop installation.  This is the output of ps -el|grep Z:  F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD 0 Z  1000 10317     1 99  80   0 -     0 exit   ?        19:27:15 java &lt;defunct&gt;   ... and here is an excerpt from top:    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                                 10317 deltik    20   0     0    0    0 Z  100  0.0   1170:17 java &lt;defunct&gt;  1424 root      20   0  612m 193m 158m S   14  2.4 287:17.11 Xorg 12580 deltik    20   0  710m 135m  46m S    5  1.7  27:31.07 compiz   This is how the zombie process came to existence:   I opened a Java JAR called . This launcher downloads another JAR file to ~/.minecraft/bin/minecraft.jar That JAR was executing when I locked my computer with xscreensaver. Then, I entered my password to unlock the computer, and I saw that the Minecraft window was frozen. I tried killing it (PID 10317) with gnome-system-monitor. It became a zombie. kill -9 10317 was ineffective. xkill only closed the window titled "Minecraft"; it didn't close the underlying java process.   Relevant information:   The graphics driver is FGLRX, and it has caused notorious issues with  of  and , including sometimes high CPU usage of Xorg and compiz.   I want to know:   What way is there to destroy this process of java without restarting, if any? Why is this issue happening? What can I do to prevent this issue from happening again? Number Theory: which primes are a sum of two squares? Problem: show that if the prime $p = a^2 + 5b^2$ then $p \equiv 1 \textrm{ or } 9 \pmod{20}$.  Is there any other way to prove this other than to check each case $p = 1, \ldots, 19 \pmod{20}$ and show that only 1 and 9 work?