I use xmbc to view my tv shows. Before I began using xmbc, I batch downloaded the first few seasons of "Bleach". What can I say, I'm an anime fan ;-). These are named: "bleachxx.mp4" where xx is the episode number in respect to the whole series, not to the season. so "bleach21.mp4" is the 1st episode of the second season and 21st overall. The files themselves are, however, divided into their own season folders.   I know you can use the "rename" command to batch rename files. After much tinkering with it using this guide:  I got this command:  rename -n 's/.*(\d{2}).*$/Bleach S0XE$1/' *   The problem is that the command will rename all the files into "Bleach S0XExx" but because the files have the overall file numbers, bleach52.mp4 --> 'Bleach S03E52.mp4' when there obviously aren't 52 episodes in season 3.  I would like to know, then, if there is any way to apply mathematical operations to the file renaming. This would solve the problem as I could subtract The number of episodes in the previous seasons by the overall number and essentially get the season number.  Example: If there are 20 episodes in season 1, then 25-20=5 so the 25th episode is the 5th of season 2 and renaming would carry out as normal.  So, is there anyway to change the values of renaming by applying math operations?  P.S. I'm sorry for the long explanation but I wasn't sure how to or if my question would be clear without it.
How to rename file as below  AS1100801000002.RAW7AGS  AS1100801001008.RAW7AH4 AS1100801002001.RAW7AH9 AS1100801003002.RAW7AHE AS1100801004009.RAW7AHT AS1100801005002.RAW7AHY AS1100801010002.RAW7AJ3   to new name  AS1.txt AS2.txt AS3.txt AS4.txt AS5.txt AS6.txt AS7.txt
How should an educational institute woo good faculty? What steps must an educational institution wanting to recruit good faculty take? There is a cycle in the academia:    Good doctorates from top universities invariably join other top universities as faculty members.  Good students aspire to study in top universities under excellent faculty members.   Suppose a new educational institution or department springs up and desires to set up a top-quality group, how does it break into this cycle? I suppose this could take some years, but is money-power the only thing that could be wielded by the institute to achieve its end? Why Smart's attack doesn't work on this ECDLP? Limit of Series with differences of Floor function Prove that $i^i$ is a real number According to WolframAlpha,  but I don't know how I can prove it. Proof that exponential function's limit definition increases monotonically? It is well known that we can define $e^x$ by the following limit  $$e^{x}=\lim_{n\to\infty}\left(1+{x\over n}\right)^n$$  I would like to show that the RHS sequence is always less than or equal to $e^x$ for all $-n\le x\le0$ and $n&gt;1$, and what I had currently done is to study the property of this sequence (which is defined as $f(x)$)  $$f(x)=\left(1+{x\over n}\right)^n$$  I also find its first and second derivative $f'(x)=\left(1+{x\over n}\right)^{n-1}$ and $f''(x)={n-1\over n}\left(1+{x\over n}\right)^n$ and show that they are strictly positive for all $x\in[-n,0]$. As a result $f(x)$ is monotonically increasing and concave up. By plugging in the end points I found that $f(0)=1\le e^0$ and $f(-n)=0&lt;e^{-n}$, I wonder if these conditions allow me conclude that $f(x)\le e^x$ for all $x\in[-n,0]$. Google calendar sharing I am a Google Apps administrator in the process of transferring a multitude of secondary calendars from a previous Google account. So following advice from  I did the following:  Old Account   Download calendar and save as ICS   New Administor Account   Create new calendar Select "Share Calendar With Others", "Share calendar with everyone in the organization - see all event details"    However nobody in the organization can see the new calendar under "Other Calendars" nor do they get any form of notification.   It seems everyone in the organization has to now somehow add this calendar(s) via "Add a colleague's calendar" OR I have to add each user's new Google account. This is turning into an administrative nightmare.  The behavior I want is:   Maintain a list of calendars that everyone in the organization has access to By default all users in organization have "See All Event Details" access. Certain organization users have "Make Changes To Events" and Apps Administrators have "Make Changes AND Sharing" As users are added/removed to the Google Apps domain the access to these calendars are automatically granted/revoked ie. Organization users should not have to do anything to get access to the list of calendars.   I am sure there is a simple solution to this that I am missing, so if someone can point me in the right direction I would appreciate it. "Add" button doesn't work with JavaScript off I'm using stackoverflow.com with JavaScript off. I accept this comes with somewhat less functionality, however for the most part SO works fine.  If I look at the home page (), every single button on there except for two types works with JS off.  The first second is that the "x Votes; y answers;z views" mouse-over indicates they're links but clicking them does nothing. This one is less of an issue because the user can still click the question title, and they're only implied buttons anyway.  The second (and bigger) issue is the "Add" buttons next to "Favorite Tags" and "Ignored Tags". These are explicit buttons that don't do anything with JS off. There is no working JS substitute for them (the "tag subscriptions" link itself works, but the page it goes to doesn't work with JS off, but that's another bug report). Why are there two Address lines in Address forms? Experience and a quick Google Images search suggests that it's standard to provide two fields for Address/Street. A colleague argues that it's perceived as two alternative addresses, and that the fact that there's only one country, state, zip, phone just makes it more confusing. I tried to think of a good explanation for having two fields but couldn't. To the reason of "there are some very long addresses" he replies "then why don't they use a multiline input field which would make it clearer that it's the same address".  So, what's the reason? And is it only standard for the US or for Europe as well? Which are the word orders that can be found in English? Besides , which are the  that can be found in English? Are there any that are peculiar to dialects such as Singlish or Indian English? Please provide an example sentence for each order along with pertinent information such as tense, mood, voice, etc. Efficient way to find $[\mathbb{Q}(\sqrt{5}, \sqrt{3}, \sqrt{2}): \mathbb{Q}(\sqrt{3}, \sqrt{2})]$ I want to show rigorously that this is 2. I'm sure there's a faster way than by trying to see if $\sqrt{5} = a + b \sqrt{2} + c \sqrt{3} + d \sqrt{6}$ (linear combination of the basis elements for $\mathbb{Q}(\sqrt{3}, \sqrt{2})$). I'm just not sure what. Edit Mode buttons for selecting vertices and edges vanished When I am in Edit Mode for my project, the Mesh Select Mode buttons have disappeared!  I loaded the default project and the buttons are where they are supposed to be; the issue is only in my project. URL line breaks with biblatex How do I allow long URLs to have line breaks at any point. This is in the bibliography not the main text. I am trying to save space so don't want extra spaces to be added to make it only break at slashes, for example, as it does by default.  I am using biblatex+biber. Removing unwanted appearance of underlying mesh How to add current date to cell if the rest of the cells (or some cells) in that row are edited, but only the first time? I have a column A4:A (heading = Date), and other columns after it B4:O.  I want column A to fill in today's date automatically when I fill in any other columns (some of these B4:O maybe empty, but most will be filled) in that row. But I only want that to happen the first time I edit any other columns within that row.  What I've tried:  A7: =IF(B7 &gt; 0,TODAY(),) TeX editor with line-spacing preferences Photoelectric Effect - Dependence of current on frequency We all know that the amount of current flowing b/w the plates is independent of the frequency. If I were to ask why doesn't it depend then you'd probably say that it depends on the number of electrons rather than the frequency or you might show me a current vs frequency graph.  But here is my theoretical argument. Electric current is defined as the amount of charge flowing through a point/space/wire per unit time. Let I be current due to photo electrons ejected by photons of some frequency. Now if I would increase the frequency, the kinetic energy of the ejected electron would increases, therefore it will move faster and therefore contribute more current (charge will through the same point many times per unit time) . Thereby, giving a net current greater than I.  What is wrong with my argument?  After thinking a lot, I came up with a possible reason. However fast the electrons may move, but when they hit the metal plate, they would lose their velocity and start moving in drift velocity. Now there is a problem with this argument. If this were to be true then I should expect to see a big chunk of extra electrons getting stuck at the anode.  If my reasoning was correct, then why can't I see a big charge buildup at the anode. How to convert coordinates from vertex to world-space? How do I convert from object-space to world-space?  I suspect it is:  vert_os = obj.vertices[foo] vert_ws = vert_os.getPositionFromMatrix(obj.matrixWorld)   but does the matrix also handle translations, or do I need to handle that separately?  Can someone link to the relevant documentation? I need to prove that $K\subseteq \mathbb{R}^n$ is a compact space iff every continuous function  in $K$ is bounded.  One direction is obvious because of Weierstrass theorem. How can i prove the other direction? I tried to assume the opposite but it didn't work for me.  Thanks a lot. Recover accidentally removed files on NTFS partition I accidentally removed some files on a NTFS partition  How can I recover them staying inside Linux without rebooting ? Export Windows 7 search results to a text file