I have a wild card ssl for my domain. I have many subdomains each with its own default page.  www.domain.com/main.html&nbsp;&nbsp;&nbsp;&nbsp;   [/home/domain/main.html] try.domain.com/free.php&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    [/home/domain/try/free.php] new.domain.com/signup.php&nbsp;&nbsp;&nbsp;&nbsp;  [/home/domain/new/signup.php] etc  I want to write .htaccess such that:   All traffic is directed to https The subdomains resolve to respective default pages  All non-www is directed to www  except for the subdomains which remain subdomain.domain.com   I want to do all this in a single htaccess /home/domain/.htacces and not have htaccess files in each folder.
This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.
I want to do the not independent sign in latex without having to install or define new commands (since I am using latexIT and I cannot load new packages).  Currently I use the following sign for independent:  X{\perp\!\!\!\perp}Y   What can I use for X not independent of Y?  I.e., something like this: ? How can I change permissions on external drives? I wanted to change permissions on my external drives that are automounted however I have tried by sudo nautilus and then going to gui and permissions and changing it however it does not let me.  I ran the ls -l and get  drwx------ 1 xbmc xbmc   the gui shows below.  owner xbmc folder access create and delete files file access ---  Group xbmc folder access none file access ---  others folder access none file access ---   how can I change it so that everyone has permission to access the drive and ALL folders/files inside of it. I am trying to get plexmedia server running and I cant see my drives via the webpage manage to add it to my source to be able to stream my content.  I want to change the "others" access so that I can access all my drives on the /media path to get read and write for all my folders from anywhere.  you can see my drives that are mounted here (external drives are #18,19,20) Approximating commuting matrices by commuting diagonalizable matrices Suppose the matrices $A$ and $B$ commute. Do there exists sequences $A_n$ and $B_n$ of matrices such that   $A_n \rightarrow A$, $B_n \rightarrow B$.  Each $A_n$ is diagonalizable  and the same for each $B_n$.  For every $n$, $A_n$ commutes with $B_n$.    Moreover, it would be nice if the following property was additionally satisfied: if $A,B$ are real, then $A_n,B_n$ can be chosen to be real as well. window.onbeforeunload and window.onunload is not working in Firefox, Safari, Opera? What autofocus zone selection mode should I use for action/event shooting? I have a Canon 7D, and typically shoot everything I do in its single-point autofocus zone select mode, because I usually want fine control over exactly what the camera is focusing on and I often find that its two automatic focus zone select modes don't focus on what I want in focus.  For most of the photography I do, this is fine -- I have enough time that I can compose the shot the way I want, use the joystick on the back to select the right focus point, and take the shot at my leisure.  However, recently I've been doing more event/action photography, and I've been running into issues with this mode of operation.  Too often, I will see a person start to do something interesting, but my autofocus point is not in the right place -- so by the time I get the camera up, adjust the settings, and move the autofocus point, the opportunity to take the shot has passed.  My question is, what autofocus zone selection mode and workflow should I use for this type of photography?  I could use the 5-zone partial-auto mode (which gives me a choice of top, middle, bottom, left, or right, and then the camera chooses the points within my selected region), but I find that the time needed to switch in between that mode and the single-point mode is similarly prohibitive, and I have to hope that the camera chooses the right thing to focus on. How to scroll in a terminal using keyboard? How can I scroll in bash using only the keyboard? If it's not possible in bash, are there any other shells that support this? How to call child component controller function/helper from Parent Component Controller I have requirement to call a child controller function from parent controller whenever the event occurs in parent side.  for e.g  ABC is parent component and DCE is child component, this child component has Span of Text tag and X symbol. when I click on x it is clearing the value using child controller. ABC parent component has Form element and child component is one one of in form.  My requirement is to clear the this child component value when parent component button is clicked.  here is the below sample code of what am trying because i cannot post actual code here  ParentComponent.cmp     &lt;aura:registerEvent name="clrValues" type="c:ClearValues"/&gt;     &lt;div&gt;          &lt;c:ChildComponent textValue="test"/&gt;          &lt;ui:button label="Save"/&gt;          &lt;ui:button label="Clear" press="{!c.clear}"/&gt;           &lt;/div&gt;  &lt;/aura:component&gt;   ParentController.js  ({     clear : function(component, event, helper) {         var evtFire = component.getEvent("clrValues");          evtFire.fire();     } })   ClearValues.evt  &lt;aura:event type="APPLICATION" description="Event template" /&gt;   ChildComponent.cmp  &lt;aura:component &gt;     &lt;aura:handler name="setValues" event="c:ClearValues" action="{!c.clear}"/&gt;     &lt;aura:attribute name="textValue" type="String" default="test"/&gt;     &lt;div &gt;     &lt;ui:inputText label="Expense Name" value="{!v.textValue}" aura:id="input1"/&gt;     &lt;/div&gt;  &lt;/aura:component&gt;   ChildController.js  ({     clear : function(component, event, helper) {         helper.clearValues(component,event);     } }) How do you compare two version Strings in Java? Is there a standard idiom for comparing version numbers?  I can't just use a straight String compareTo because I don't know yet what the maximum number of point releases there will be.  I need to compare the versions and have the following hold true:  1.0 &lt; 1.1 1.0.1 &lt; 1.1 1.9 &lt; 1.10 I know people prefer using CorelDraw or Adobe Illustrator, but I want to know if there is a technique I can follow to use Adobe Photoshop to make vector Images. The first day of the current month in php using date_modify as DateTime object less with "update file" like functionality I want to watch a file that gets overwritten every 5 minutes with less. How can I make less follow the new file descriptor instead of keeping the old one displayed? watch "cat file" won't do it because the file is too long to fit into one terminal window. Did your team win the football match yesterday?         The weather was very bad, so we weren't playing.   vs     The weather was very bad, so we didn't play.   Is the first one not correct? Why is it? shell scripts are still working without #!(sha-bang line) I am new to shell scripts and many books have written that use #!(sha-bang) line in starting of the script to invoke the interpreter .And this will invoke a new shell for script and do the interpretation line by line.But one of my basic script is still running without the magic line.  so my questions are:   from where did my basic script get the interpreter. how did the script manages to locate the interpreter.   now let me tell you about my basic script it just contains the following line:  echo "basic script without the magic lines" Virtual Host not working as expected when I'm using .dev domain extension I'm doing a Laravel project and I need to set up a virtual host example.dev in my system. For that I've created a copy of 000-default.conf and named it as example.dev.conf and placed in /etc/apache2/sites-available. The contents of the file is given below (comments removed):  &lt;VirtualHost *:80&gt;     &lt;Directory /var/www/html/example/public/&gt;         Options Indexes FollowSymLinks MultiViews         AllowOverride All         Require all granted     &lt;/Directory&gt;      ServerName example.dev     ServerAlias www.example.dev      ServerAdmin admin@example.dev     DocumentRoot /var/www/html/example/public      ErrorLog ${APACHE_LOG_DIR}/error.log     CustomLog ${APACHE_LOG_DIR}/access.log combined &lt;/VirtualHost&gt;   Then I've enabled the site using a2ensite command and disabled 000-default.conf using a2dissite command. Then it will open my project when I try localhost (/var/www/html) in my browser and not example.dev. The virtual host example.dev always produce "The site can't be reached" error in browsers.  Any suggestions? I’m having trouble finding an official clarification of this, so I’m wondering if anyone has found a ruling:  Solarians gain powers known as stellar revelations. These are either “photon” or “graviton” revelations. It is specifically mentioned they can be used out of combat, though most include improved effects or separate powers that can only be used “while attuned” - a state a Solarian enters during combat. They may be photon or graviton attuned, at the player’s choice, and are able to increase their level of attunement each round until they become fully attuned to one or the other. However, apart from the very powerful “zenith revelations”, nowhere in the rules mentions whether photon revelations may only be used while photon attuned, or graviton revelations only while graviton attuned. The revelations themselves usually say “while attuned or fully attuned” for the more powerful effects, without mentioning the mode, and there’s no general rule in the class feature that answers this question.  Is there an official ruling on whether the “only while attuned” power of a photon revelation can be used when the character is graviton attuned, or vice versa? I suspect the answer is yes but it’s hard to tell based on the core rules. Are there network-wide reputation leagues? I would love to see which people have the most network-wide reputation, how can I see that? This is a variation of the  questioned some time ago.  For a complex Hilbert space $H$ let $T: H \rightarrow H$ be a bounded operator. We call that $T$ is a trace-class operator if the following sum  $$\sum_{i}{\langle |T|e_{i}, e_{i} \rangle} &lt; \infty$$  converges, where $|T| = (T T^{*})^{\frac{1}{2}}$ is the absolute value of the operator.  Assume that  $$\sum_{i}{\langle Te_{i}, e_{i} \rangle}$$  converges for any basis in the space $H$. How to prove that if the aformentioned property holds then the operator is a trace class operator?  The progress on the problem is the following: Given an arbitrary bounded operator $T: H \rightarrow H$, one can use the following decomposition $$T = \big( \frac{T + T^{*}}{2} \big) ^{*} + i \big( \frac{T^{*} - T}{2i} \big) ^{*}$$  The latter line gives the decomposition $$T = A + i B$$ where $A, B$ are normal operators.  For the normal operators we can apply the spectral theorem that proposes that $T$ is unitary equivalent to  $$(UT U^{-1})(f(x)) = g(x) f(x)$$  where  $$U: H \rightarrow L^{2}(X, \mu)$$ $$g \in L^{\infty}(X, \mu)$$  Though this decomposition classify the operator in a broad sence, i see no direct way to conclude the statement. Are the any hints that may extend the previous argument? If not, are there any ways to conclude the statement? How are second order nonlinear ordinary differential equations solved? Calculating percentage of overlap between 2 features from 2 different layers using ArcGIS Desktop? I have two layers. Layer 1 has features that are property/parcels with area in acres. Layer 2 has features that are wetlands/bodies of water with area in acres. I want to calculate parcels that have for example 0% wetlands, 10% wetlands, 20% wetlands, 30% wetlands etc. to 100% wetlands.   How can I do this on ArcGIS Desktop?   Ideally, I want to find parcels/properties that have a limited number or a limited percentage of wetland coverage. The dimension of the Hilbert space is determined by the number of independent basis vectors. There is a infinite discrete energy eigenbasis $\{|n\rangle\}$ in the problem of particle in a box which can be used to expand a general state $|\psi\rangle$ as: $$|\psi\rangle=\sum\limits_{n=0}^{\infty} C_n |n\rangle$$ Here, the basis implies that the Hilbert space has countably infinite number of basis vectors. But one could well expand $|\psi\rangle$ in any other basis as well, say the continuous position basis. Then that superposition, $$|\psi\rangle=\int dx \psi(x)|x\rangle$$ is also possible. But this basis $\{|x\rangle\}$ is continuous and uncountably infinite. Such sets cannot be equal because they have different cardinality. Then my questions is how many independent basis vectors are really there in this Hilbert space?