How do I make a subdomain (e.g. mirror.site.com) on a LAMP server?
setting up subdomain on ubuntu server
Splitting raster into smaller chunks using GDAL? I have a raster (USGS DEM actually) and I need to split it up into smaller chunks like the image below shows. That was accomplished in ArcGIS 10.0 using the Split Raster tool. I would like a FOSS method to do this. I've looked at GDAL, thinking surely it would do it (somehow with gdal_translate), but can't find anything. Ultimately, I'd like to be able to take the raster and say how large (4KM by 4KM chunks) I would like it split up into. Returning anonymous functions from lapply - what is going wrong? Is it possible to check out subdirectories of a repository in Git?  Imagine I am setting up a new WordPress installation. I will create two new directories for my plugin and theme customization:   wordpress/wp-content/plugins/myplugins/  wordpress/wp-content/themes/mytheme/   I want to maintain these directories via Git. In Subversion, I would accomplish this by having trunk/myplugins/ and trunk/mytheme/ directories and checking out subdirectories. Does Git have a way to accomplish the same task using a single repository?  I could just be missing the boat on some Git paradigm, as a long time SVN user with little exposure to Git.  Edit:  storing different content is an interesting way to handle this. How can I get the size of an array from a pointer in C? I've allocated an "array" of mystruct of size n like this:  if (NULL == (p = calloc(sizeof(struct mystruct) * n,1))) {  /* handle error */ }   Later on, I only have access to p, and no longer have n. Is there a way to determine the length of the array given just the pointer p?  I figure it must be possible, since free(p) does just that. I know malloc() keeps track of how much memory it has allocated, and that's why it knows the length; perhaps there is a way to query for this information? Something like...  int length = askMallocLibraryHowMuchMemoryWasAlloced(p) / sizeof(mystruct)   I know I should just rework the code so that I know n, but I'd rather not if possible. Any ideas? Why is there a white space on the left side?  \documentclass{standalone} \usepackage{asymptote} \begin{document} \noindent \begin{asy} size(10cm,10cm); draw((0,0)--(100,100)); draw((0,100)--(100,0)); dot((50,50)); \end{asy} \end{document} How to list files in a zip without extra information in command line In my bash command line, when I use unzip -l test.zip I get the output like this:  Archive:  test.zip   Length      Date    Time    Name ---------  ---------- -----   ----    810000  05-07-2014 15:09   file1.txt    810000  05-07-2014 15:09   file2.txt    810000  05-07-2014 15:09   file3.txt ---------                     -------   2430000                     3 files   But I am interested only by the lines containing the file details.  I tried to make filtering using grep like this:   unzip -l test.zip | grep -v Length | grep -v "\-\-\-\-" | g -v Archive | grep -v " files"  But it is long and prone to error (e.g a file name Archive in this list will be dropped)  Is there any other options with unzip -l (I checked the unzip man page and did not find any) or another tool to do so?  It is important to me to not really unzip the archive but just to look what files are inside. Why do statisticians discourage us from referring to results as "highly significant" when the $p$-value is well below the conventional $\alpha$-level of $0.05$?  Is it really wrong to trust a result that has 99.9% chance of not being a Type I error ($p=0.001$) more than a result that only gives you that chance at 99% ($p=0.01$)? Values of the limit $\lim\limits_{x\to+\infty}\left(\sqrt{(x+a)(x+b)}-x\right)$ Hi I have a question regarding finding the values of limit for the following question.  Let $a, b \in \mathbb R$. Find the limit $$\lim_{x\to+\infty}\left(\sqrt{(x+a)(x+b)}-x\right)$$ Proving $1^3+ 2^3 + \cdots + n^3 = \left(\frac{n(n+1)}{2}\right)^2$ using induction I would like to configure a module () settings with drush. This is the variable:  addtoany_nodetypes: Array (     [about_us] =&gt; about_us     [contact] =&gt; contact     [page] =&gt; page     [legal] =&gt; 0     [webform] =&gt; 0 )   So that, for instance:  [page] =&gt; page [legal] =&gt; 0   becomes  [page] =&gt; 0 [legal] =&gt; legal   But I am rather new at drush and I am at a complete loss. Thanks for your time. Order of products of elements in a finite Abelian group We want to show that if $a,b\in G$ where $G$ is a finite Abelian group, we have  $\operatorname{LCM}(|a|,|b|) = |ab|$ given that $ab \neq e$.   How I approached this question was by saying let $\operatorname{LCM}(|a|,|b|) = L$. Then if we show that $L$ divides $|ab|$ and $|ab|$ divides $L$ then $|ab| = L$. Showing that $|ab|$ divides $L$ was fine. But then I am having trouble with the second part that is showing $L$ divides $|ab|$. For this, so far I have:  Consider $(ab)^{|ab|} = e = a^{|ab|}b^{|ab|} $  since we know $a \neq b^{-1}$ by assumption then we can conclude that $|a|$ divides $|ab|$ and $|b|$ divides $|ab|$. We know that $L = \frac{|a||b|}{\operatorname{gcd}(|a|,|b|)}$ from here can we conclude that $L$ divides $|ab|$? UK visa refusal For PLAB 2 I had applied for a visit visa (business) to appear for my PLAB 2 exam on 21 June 2019. I had to attend practice classes from an academy in Manchester for which I had attached the invitation letter; my duration was 15 days to prepare my exam in a better way. I had mentioned the cost of my trip to be £1500 and my brother sponsoring me for £3000 (my entire trip).   My rejection letter stated that I was going with my mother, when I had nowhere in my form or cover letter mentioned that I am going with my mother, because I was going alone. I had shown that my brother is my financial sponsor as I didnt have enough funds in my account. I had attested all the documents of my brother but somewhere in my form I made a mistake where I wrote the total money I have is £3000, but I had only £1200 in my account. I thought we had to write the total amount, so I put my brother's sponsor money, which was supposed to be £3000; he hadn't transferred it into my account, it was in his account only.  I made one more mistake in the form where they asked how much is the cost of travel to you personally. I wrote £1500 but I think I had to write nil there.   I don't know how to proceed now. Should I transfer £3000 into my account from my brother's account and get a bank statement proving the source of income? I don't have enough money in my account despite bring employed since Nov 2018 with a salary of £700 per month, as I had to make some big transactions such as booking my PLAB 2 exam (£830£), etc.  I have already booked the exam for £830 and I don't have much time left. How do I find my follower if and when they leave me? I had parked my follower at an inn with a bunch of valuable items that I didn't want to carry. I guess I have been out a bit too long as this message appears:      Your follower tires of waiting and leaves.    There have been other situations where my follower has mysteriously disappeared as well.  How can I find my follower when they get up and leave or disappear into thin air? Given a dictionary, how can I find out if a given key in that dictionary has already been set to a non-None value?  I.e., I want to do this:  my_dict = {}  if (my_dict[key] != None):   my_dict[key] = 1 else:   my_dict[key] += 1   I.e., I want to increment the value if there's already one there, or set it to 1 otherwise. How does Salesforce SSO call just-in-time handler methods I am having a hard time digging up some information on this as I believe it is still relatively new. If you implement SSO with Salesforce you have the ability to enable SAML. I have enabled SAML and have also enabled JIT with an automatically created class to support it.  Out of this newly generated class, there are two global methods that I am assuming are called upon SSO, but I do not know which one is called or how.   global User createUser(Id samlSsoProviderId, Id communityId, Id portalId,     String federationIdentifier, Map&lt;String, String&gt; attributes, String assertion) {     User u = new User();     handleJit(true, u, samlSsoProviderId, communityId, portalId,         federationIdentifier, attributes, assertion);     return u; }  global void updateUser(Id userId, Id samlSsoProviderId, Id communityId, Id portalId,     String federationIdentifier, Map&lt;String, String&gt; attributes, String assertion) {     User u = [SELECT Id, FirstName, ContactId FROM User WHERE Id=:userId];     handleJit(false, u, samlSsoProviderId, communityId, portalId,         federationIdentifier, attributes, assertion); }   Does Salesforce have some backend code that interprets the SAML coming over the SSO and then calls the methods appropriately?   The reason I am asking this is because I would like to cancel a user's SSO if they do not match x fields based off of the values coming across in the SAML in the SSO. If I did not want to update a user or create a user, would I be able to add in my own global class that could be called from the SSO?   Let me know if this is unclear / does not make sense.  Thanks Protected Question does not show Add an Answer button This question is protected. To answer it, I must have at least 10 reputation.        Ignoring the association bonus of 100, I should .  Yet, the Android app does not show the blue "Add an Answer" button at the bottom. The app also does not show the protection status.  If I view the question in the desktop or mobile browser (and I'm signed in), I can add an answer there. In iOS 7, when the phone is in Sleep mode and I receive a call, I don't see the "Decline" button. All I see is a green "Answer..." button that requires me to slide to the right to answer the call. Is there anyway we can change that? I know that there are buttons for "Remind Me Later, etc" but I want the "Decline" button.   It works fine when the phone is not in Sleep mode. Let $A∈\mathscr{M}_{3×2}(\mathbb{R})$ and $B∈\mathscr{M}_{2\times3}(\mathbb{R})$ be matrices satisfying   $AB =\begin{bmatrix} 8 &amp;2 &amp;−2\\ 2 &amp;5 &amp;4\\ −2 &amp;4&amp; 5 \end{bmatrix}$. Calculate $BA$. (Golan, The Linear Algebra a Beginning Graduate Student Ought to Know, Exercise 426.)   Maybe it can be solved by solving a system of equations, but I think there is a shorter way since this problem was in my exam.  Thanks. Proof of Frullani's theorem How can I prove the Theorem of Frullani? I did not even know all the hypothesis that $f$ must satisfy, but I think that this are  Let $\,f:\left[ {0,\infty } \right) \to \mathbb R$ be a a continuously differentiable function such that $$ \mathop {\lim }\limits_{x \to \infty } f\left( x \right) = 0, $$ and let $ a,b \in \left( {0,\infty } \right)$. Prove that $$ \int\limits_0^{\infty}  {\frac{{f\left( {ax} \right) - f\left( {bx} \right)}} {x}}dx  = f\left( 0 \right)\left[ {\ln \frac{b} {a}} \right] $$  If you know a more general version please give it to me )= I can´t prove it. question about the limit $\lim_{h\to0}\frac{\arcsin(x+h)-\arcsin(x)}{h}$