Create QR code from MySQL
QR Codes generation from MySQL rows
How can I easily clone my entire system? I am running an Ubuntu 14.04 LTS and I experienced some issues with my hard drive. I bought a new HDD of the same size (1TB), and I intend to move all my data (softs, work, pics, etc.) on the new HDD.  What is the easiest way to do that? Let's stop displaying a user's accept rate Cleveref with counters with same name I am trying to use the  package.  I have the following counters defined (hopefully this is the right way to do it!)  \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \newtheorem{cor}[thm]{Corollary}   This works as I would like (i.e. Theorem 1.1, Corollary 1.2, Lemma 1.3, etc.)  My problem is \cref always returns Theorem 1.2, Theorem 1.3. I   Perhaps this is not right? (In my preamble)  \crefname{thm}{theorem}{theorem's} \crefname{lemma}{lemma}{lemma's} I am trying to create a beamer animation using tikz, but I can't even get basic rotating of a tikz image working as desired.  I have a rectangle specified by  \draw[rounded corners,dotted] (-3.5,0) rectangle (-0.5,2);   I would like to rotate this rectangle about the point (-1,.5) (which is near the bottom right corner of the rectangle).  I've tried:  {\rotatebox[origin=c,x=-1,y=.5]{130}{             \draw[rounded corners,dotted] (-3.5,0) rectangle (-0.5,2);}}   But this produces an error.  If I just use the origin=c option, it compiles, but it rotates the rectangle about the point (0,0).  I've also tried it with just the x=-1,y=.5 (without the origin option), and it fails to compile.  I have searched the documentation, which is where I learned about the options x=xdim and y=ydim.  However, I can't find a single example demonstrating how these options should be used.  Any suggestions would be greatly appreciated.    Also, if there is a better command for rotating things that will be more suitable for use in a beamer animation, please let me know.  Thanks! To show that $\sum a_nb_n$ is absolutely convergent Assume that $\sum a_n$ is convergent and $\sum b_n$ is absolutely convergent.To show that $\sum a_nb_n$ is  absolutely convergent  My try::Consider the sequence of partial sums of $\sum |a_nb_n|$  $S_n=|a_1b_1|+|a_2b_2|+......+|a_nb_n|$  Now $(a_1b_1+a_2b_2+......+a_nb_n)\leq ( (a_1^2+a_2^2+..+a_n^2))^\frac{1}{2}((b_1^2+b_2^2+..+b_n^2)^\frac{1}{2})$  How to proceed from here? When do we use "at" and "in" with "arrive" talking about place, not time? During Winter Bash, users can earn hats. But sometimes it seems that a hat was awarded even though its requirements weren't (yet) met, or vice versa.  What could be the reason for this? Sequential renaming of files I found an answer for  which works fine for renaming filenames as follows :  1.jpg &gt; 00001.jpg 2.jpg &gt; 00002.jpg . . . 9.jpg &gt; 00009.jpg   That uses the following command:  rename 's/\d+/sprintf("%05d", $&amp;)/e' *.jpg   But my filenames aren't numeric. They are an alphanumeric sequence, like: a.jpg, b.jpg, c.jpg...... m.jpg.  In a similar way to the original question, I want to rename these so they display in the correct sequence. How do I do this? Why does `find` not delete the files it found? I'm trying to understand why the find command is not deleting files in one particular case. I've got the following command:  find C:\\path\\to\\Pictures\\pmcctv -name cap_*.jpg -o -name cap_*.ogg -o -name cap_*.flv -o -name cap_*.mp4 -o -name cap_*.webm -mtime +7   Which returns the files I would expect:  C:\path\to/Pictures/pmcctv/cap_20160915T193251_620067800.jpg C:\path\to/Pictures/pmcctv/cap_20160915T193322_742708800.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081046_394767500.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081125_615129600.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081129_503678200.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081255_842394600.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161008_693586800.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161012_749396800.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161043_774132200.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161150_497251900.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161154_437379600.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161337_350955300.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161341_452596000.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161412_870774000.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161443_969064400.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161554_468109900.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161558_378086000.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161916_668433100.jpg   Now if I try to run the same command with -delete, the files are not deleted:  find C:\\path\\to\\Pictures\\pmcctv -name cap_*.jpg -o -name cap_*.ogg -o -name cap_*.flv -o -name cap_*.mp4 -o -name cap_*.webm -mtime +7 -delete   I've also tried with -exec rm, but they are also not deleted:  find C:\\path\\to\\Pictures\\pmcctv -name cap_*.jpg -o -name cap_*.ogg -o -name cap_*.flv -o -name cap_*.mp4 -o -name cap_*.webm -mtime +7 -exec rm {} \;   find returns no error and the files are owned by me with permissions 644.  Any idea what could be causing this?  (note: I've cut the commands to make it more readable but normally there's no line break) Is it possible to have an ASP.NET MVC route that uses subdomain information to determine its route?  For example:   user1.domain.com goes to one place user2.domain.com goes to another?   Or, can I make it so both of these go to the same controller/action with a username parameter? Delay answer downvote rep loss to voter to help hide voter's identity A while back, I posted an answer to SO, which was downvoted.  I wasn't sure who did it, but had a suspicion because I thought I had seen a particular user lose a reputation point.  When I deleted the answer, my suspicion was confirmed by a point gain in reputation by the particular user.  Now, I wasn't going to attempt any sort of retaliation (and did deserve the downvote) but this seems like it could lead to abuse.  My suggestion is to apply answer downvote rep loss/gain at a particular time of day, and not immediately after the vote or answer deletion. Pluralizing abbreviations where the noun is not the last word For abbreviations - both acronyms and initialisms - where the last word in the abbreviation is the noun, I'm accustomed to adding an 's' with no apostrophe (e.g. ATMs), as described in the answer to this question:   But how do you pluralize abbreviations where the noun is not the last word? E.g. 'Point of Presence' (POP)  I can see how 'POPs' could read 'Point of Presences', when the intention is 'Points of Presence.' Form of the Classical EM Lagrangian So I know that for an electromagnetic field in a vacuum the Lagrangian is $$\mathcal L=-\frac 1 4 F^{\mu\nu} F_{\mu\nu},$$ the standard model tells me this. What I want to know is if there is an elementary argument (based on symmetry perhaps) as to why it has this form. I have done some searching/reading on this, but have only ever found authors jumping straight to the expression and sometimes saying something to the effect that it is the "simplest possible". Evaluation of $\sum_{n=0}^{\infty}\frac{1}{(n^4+n^2+1)n!}$ Let f be an r-cycle in $S_n$. Given any $h \in S_n$, show that $hfh^{-1} = (h(x_1), h(x_2), \dots, h(x_r))$ Number of solutions to the congruence $x^q \equiv 1 \mod p$. Let $p, q$ be distinct odd primes, I would like to compute the number of solution $\mod p$ to the congruence $x^q \equiv 1 \mod p$. (Show that it's $gcd(q, p - 1))$  If $x^q \equiv 1 \mod p$, since $q$ is prime, this must mean that $x$ is either $1$ or has order $q$.   Hence, the problem reduces to finding the number of elements of $U_p$ which is either $1$ or has order $q$.  If $ q \nmid  p - 1$, then there is only one element, namely $1$.  If $q \mid p - 1$, then the number of elements of order $q$ is $\phi(q) = q - 1$, and so the number of solutions to the congruence $\mod p$ is $q - 1 + 1 = q$, and in either case the number of solutions is $\gcd(q, p - 1)$.  Does this look fine? The game  has a very unique intro that I would like to show my friend again for the first time. I'm not sure how to reset all my progress on this game to achieve this though. Any thoughts? I'm wondering whether it's possible to downgrade sfdx-cli to use an earlier version?  I'm trying to debug an issue with using it in pipeline scripts.  When I run sfdx version --core I get sfdx-cli 7.28.7 (core) .    If I run  sfdx version I get  sfdx-cli/7.28.7-7bceba6f24 darwin-x64 node-v10.15.3 .  If I do cat package.json inside the actual package dir for sfdx-cli after doing npm install sfdx-cli@7.26.0 I get  "sfdx-cli": "^7.26.0"  Why does it then show that the version is 7.28.7?  How can I force the lower version to have preference?  I do understand that this question is not really salesforce specific but hopefully someone has run into the same problem. Preventing console window from closing on Visual Studio C/C++ Console application I am using ArcGIS 10.1 and I have a non-spatial table and some layers in a Data Frame.   When I switch to Layout View I want to be able to show the map in a data frame element and the table in another element (something that one could do with "Add Table To Layout" from Table Options, but I want to do this in one step without having to go to Table Options).   Is there a way to do this using ArcPy?   I couldn't find any function in the ArcPy library that would create a new Layout Element ... and then I also don't know how to add the contents of the table to the Layout Element.