perl loops within subroutines to display the longest repeating string thats selected for a particular subsection of the string
Find longest repeating string based on input in perl (using subroutines)
There is a length limit to Windows file extensions? Find all rings $R$ satisfying $\mathbb Z \subset R \subset \mathbb Z[\frac {1}{2}]$ Beamer text and image on the same slide Taking advantage of one-time pad key reuse? Isn't the const modifier here unnecessary? How to stop the Facebook app from updating itself automatically? I have the Facebook app installed on my Android 7 phone.   Auto-update is disabled for all applications on my Play Store account I have disabled installation from unknown sources   For some reason, whenever there is an update of the Facebook app, it automatically updates itself even though I disabled auto-updates for all applications.  How to stop the Facebook app from updating itself automatically? number of quadratic residues in finite field Is there a way to determine how many quadratic residues are there in the finite field $F_q$ for $q = p^k$?  It seems if $q=p$ exactly $(p-1)/2$ are residues and the same amount are not. Does analogy holds for $q = p^k$?  Thanks for any input. Maximum value of $\sin A+\sin B+\sin C$? What is the maximum value of $\sin A+\sin B+\sin C$ in a triangle $ABC$. My book says its $3\sqrt3/2$ but I have no idea how to prove it.   I can see that if $A=B=C=\frac\pi3$ then I get $\sin A+\sin B+\sin C=\frac{3\sqrt3}2$. And also  maximum is attained for $a=b=c$. But this does not give me any idea for the proof.  Can anyone help? Let $H$ and $K$ be subgroups of a group $G$, and let $HK=\{hk: h \in H, k \in K\}$, $KH=\{kh: k \in K, h \in H\}$. How can we prove that $HK$ is a subgroup iff $HK=KH$? I am new to QGIS. I am looking for any plugin or any manual method in QGIS for finding minimum distance (perpendicular distance) from a point which is part of one shapefile to nearest line among many lines which is part of another shapefile.   MMQGIS is not useful for this purpose. Use a specific forwarded key from SSH-agent? Let's say I have a key for Github, along with other keys. I've added lots of keys to my ssh agent (ssh-add -L returns lots of lines) at my home computer A. In my .ssh/config I have set up which key to use with which host, so e.g.  ssh -T -vvv git@github.com 2&gt;&amp;1 | grep Offering   gives  debug1: Offering RSA public key: /Users/doxna/.ssh/id_rsa.github   Only one key is offered, as expected. But then ssh-ing to some host B with ForwardAgent yes and repeating the same command, I get  debug1: Offering RSA public key: /Users/doxna/.ssh/id_rsa.linode2 debug1: Offering RSA public key: /Users/doxna/.ssh/id_rsa.helium debug1: Offering RSA public key: /Users/doxna/.ssh/id_rsa.github   meaning it tries all my keys. This is problematic since only a limited number of keys can be tried before servers return Too many authentication failures. So I tried editing .ssh/config on host B to include  Host github.com   IdentityFile /Users/doxna/.ssh/id_rsa.github   IdentitiesOnly yes   but then I get no key offerings, but rather  debug2: key: /Users/doxna/.ssh/id_rsa.github ((nil))   which I guess means that the key was not found(?) And after all, the key is located at my home computer A, not host B, so the question is how to refer to it at host B? Hope I managed to explain the question. Find   $$\lim _{x\to \infty }x\Big(\ln\left(x+1\right)-\ln x\Big)$$  Here's how I do it:  $$x\Big(\ln(x+1)-\ln x\Big) = x\Bigg(\ln(x(1+\frac{1}{x}) - \ln x\Bigg)$$ $$x\Big(\ln x + \ln(1+\frac{1}{x}\Big)-\ln x =x\ln\Big(1+\frac{1}{x}\Big)$$ $$\ln\Bigg( \Big(1+\frac{1}{x}\Big)^x \Bigg) \rightarrow \ln 1^\infty = 0$$  What am I doing wrong? The answer is supposed to be $1$, but I get $0$. cron.hourly sendmail errors even though my scripts do not involve sending mail Prove the map has a fixed point The responsiveness is really bad on a newly installed Ubuntu 14.04 LTS.  Here's the specs of my laptop:  Quadcore Intel i7-4600U CPU @ 2.10GHz 12GB Ram 1TB Samsung EVO SSD   And when gradle is compiling, my entire system slows to a crawl, videos begin stuttering, browser scrolling lags... etc.  The same goes when a page refresh occurs in another window in Chrome, and while it refreshes, the HTML5 video in another tab begins stuttering.  How can I fix this?  Here are some logs:  $ vmstat -a 1 5 -   $ iostat -x 1 5 -   $ top -b - Adding popup message box before tool execution with ArcPy and ArcMap I want to add a box message to pop up before execution of a button tool. When I click a button which will do geoprocessing, I want a box to appear on view before processing with message that I am about to do xxx processing. How do I do it? Should I change the URLs in the XML sitemap after 301 redirecting them? I am using 301 redirects for all URLs.  Should I change sitemap URLs now?  The sitemap currently contains the following URLs:   example.com/cat/1.html example.com/cat/2.html example.com/cat/3.html   Should I change the sitemap's URLs to a new destination?   example.com/cat/year/1.html example.com/cat/year/2.html example.com/cat/year/3.html Help finding a combinatorial proof of $k {n \choose k } = n {n - 1 \choose k -1}$ Help finding a combinatorial proof of $k {n \choose k } = n {n - 1 \choose k -1}$  I have expanded it this far:  $$\frac{k \cdot n!}{k!(n-k)!} = \frac{n \cdot (n-1)!}{(k-1)!(n-k)!} $$  but then I am stuck from where to go from there. What does it mean when multimeter accuracy is marked as: ±0,03%+10Digit? I have a digital multimeter and its accuracy for VDC is marked like this:      ±0,03%+10Digit   This multimeter has maximum display of 80000. So in the 80 V range it can show for example 79.999V.  0.03% of 80V is 0.024V - that is clear for me. But what does the +10Digit mean?  The device in question in . When should I have an NPC actively investigate an illusion created by the Phantasmal Force spell? The phantasmal force spell can be broken if the victim examines the illusion and makes a successful investigation check against the spell's DC.  What general guidelines should I use to decide when the victim of phantasmal force should use its action to examine the illusion?  Suppose the caster makes an orc think it is being attacked by a wolf.  Should the orc always examine the wolf until the spell ends? Or should the orc use its action to attack the wolf, defend itself, or run away?