In bash I am considering the log: atop_20210228 Is there a way to: mv atop_20210228 $FIRSTARGUMENT.bkup So that I would be moving atop_20210228 but just appending .bkup to the end?
I find myself frequently needing to rename different files with mv that are in deep directories:  mv /a/long/path/to/a/file.txt /a/long/path/to/a/file.txt.bak   But I don't want to retype the full path name. Is there a quick shorthand or alias that I could use? I.e.:  $ mv /a/long/path/to/a/file.txt file.txt.bak $ ls /a/long/path/to/a/file.txt.bak a/long/path/to/a/file.txt.bak   (note: this is for straightforward, single file renames in different directories at different times, not for )
Some vertices don't move along with the rig $\sin \frac{1}{x}$ is not uniformly continuous on $[1, \infty]$ I have an iPhone 6 128 GB which is not jailbroken. The current version of iOS on the phone is 8.1.3 and yesterday I wanted to update to iOS 8.2.  The download went through without any problem but while installing, it gave the error:     Unable to Install Update   An error occurred installing iOS 8.2   Tried installing after switching Off and ON and also tried Hard Reset (Holding Home button and On/off switch).  Same error displays every time.  Also the Touch ID has stopped working and I find that the Settings - Touch ID &amp; Passcode - iPhone Unlock is OFF.  When I try to switch it ON, the system displays the error     Failed   Unable to complete Touch ID setup. Please go back and try again.   Is anyone facing this problem?  I live in India. Rank correlation statistics comparison I am trying to understand the relative behavior of the following rank correlation statistics:   Spearman coefficient Kendall Tau / Concordance percentage Normalized Gini coefficient (area under curve of percentage captured versus percentage observations) Normalized Area under ROC curve (for binary classifiers)   I don't believe any of these are functionally related to the others.  The accepted answer  references  and Spearman and Kendall are highly correlated (as one would expect).  Are there good intuitions behind/discussions of relative (across datasets) or absolute (for a given dataset) differences for (any pair of) these measures? How do I cash a USD cheque in Europe, quickly? I'll receive a USD cheque shortly. I prefered payment by money transfer, but all attempts to do so - i.e. SWIFT/IBAN, Payoneer, transferwise - failed. Now I will receive a cheque by mail.  I contacted my bank and they say that they can cash a cheque for me, given a (prob hefty) fee. The bank employee was so kind to warn me, that in case of a cheque the funds are cashed, but reserved until the legal reimbursement period ends, which apparently is between 3 and 6 months.   Is there really no quicker way to receive payments by cheque and have access to the funds quickly? Earlier today, I was suspended from chat due to an inappropriate message (I totally deserved it, but that's not the point). I looked at my phone, and this is all that it told me:    ...which confused me because chat was still moving as normal. I didn't realize that I had been suspended until I checked on my computer to see what the heck was going on.  To me, "This room is read-only" sounds like some sort of database lockup or something related specifically to the room, not the user. It doesn't give any feedback to indicate that the room will be "read-only" for 30 minutes, and doesn't mention that all other rooms are also "read-only". Even a message saying just "You have been suspended from chat" would be more helpful. I'm trying to approximate the computer's write speed using dd:  dd if=/dev/urandom of=/dev/null bs=1K count=10000   which gives the following output  10000+0 records in 10000+0 records out 10240000 bytes (10 MB) copied, 0.746313 s, 13.7 MB/s   How can I get the '13.7 MB/s' into a bash variable? I've tried piping the output from dd to progs like awk, sed and grep to no avail.  Ultimately, I'm calling this via os.system(...) from within a python script. If anyone knows of a more direct way to get a similar result inside python I'd be interested in that also. I'm trying to predict how long a file copy will take, based on the file size.  Any help would be greatly appreciated. Use ALT to move windows in Windows like in Linux In most Linux window managers, one can use the Alt key while clicking and dragging to rearrange windows. This is one of my favorite features of Linux window managers.  Is there a way to do this in Windows 7? Remove Sender name ( not email address) from outgoing Mac Mail How do Idle games progress while not active? How can I change the default location for bluetooth file transfers? I have an Android 2.3 device (Samsung Galaxy Y Duos, S6102) and want all files that I receive via bluetooth to save to my SD card.  How can I do that? How to normalize my db schema for a quiz application? I am putting together a quiz application.   (I'm calling each quiz a "challenge")  I have a "challenge" table and a "challenge_question" table which is pretty straightforward.  challenge table: id name num_questions (I want to randomize and only display a certain number of Qs per each challenge)  challenge_question table: id challenge_id question (text of the question) required (some questions will be required to be displayed per each challenge) question_type (here I indicate what type of question: Mult. choice, T/F, Ordering, or Fill-in-the-blank)   Where I'm having trouble in normalization is with the types of question options:  Multiple choice, true/false, ordering, and fill-in-the-blank. I wonder, should I have a separate table for each type of challenge-question-option? Or is it possible to combine these into one somehow..  If I combined all possible options into a single table, it might look be something like this  challenge_options table: id challenge_question_id option (text field, can be used for both multiple choice and for fill-in-the-blank style questions) is_true (boolean field for true/false questions) is_correct (boolean, used to determine multiple choice answer) ordering_option_1  ordering_option_2 ordering_option_3 ordering_option_4 (these ordering fields would store the correct sequence of an ordering style of question)   This really strikes me as less than ideal.  Actually, I don't see how the ordering_options would work out correctly at all.  Wouldn't I need to have each of those be a separate option?  Surely there must be a better way.  Any suggestions/criticisms or alternate approaches? RSA leak bits to factor N Cast Double to Integer in Java Equation's symbols or parameters description are shown below, however, the = and the details of parameter are not aligned.     I want to make a parameters list for a equation like this, in which symbols, = and detail information are aligned in terms of vertical position.  where    ...    P   =   notional permeability factor    N   =   number of waves    Sd  =   damage level    ...   A tabular environment will produce more spacing before and after text. So how to make the = vertical aligned?   The codes is provided:  \begin{equation} \frac{H_s}{\Delta D_{n50} } = 1.0~ P^{0.13}~ \left(\frac{S_d}{N} \right)^{0.2} \xi_m^P~ \sqrt{\cot \alpha} \end{equation} where:   $H_s$ = significant wave height, equal to the average of the highest 1/3 of the waves  $\Delta$  = relative buoyant density, equal to $\rho_r / \rho_w - 1$, where     $\rho_w$ is the water density  $D_{n50}$ = nominal  diameter defined in Equation (2)  $P$ = notional permeability factor  $S_d$ = damage level   $N$ = number of waves  $\xi_m$ = breaker parameter based on mean wave period $T_m$  $\alpha$ = slope angle I've always wondered how to write the "A ? B : C" syntax in a C++ compatible language.  I think it works something like: (Pseudo code)  If A &gt; B    C = A Else    C = B   Will any veteran C++ programmer please help me out? Reading/Writing a MS Word file in PHP Is it possible to read and write Word (2003 and 2007) files in PHP without using a COM object? I know that I can:  $file = fopen('c:\file.doc', 'w+'); fwrite($file, $text); fclose();   but Word will read it as an HTML file not a native .doc file. Cannot make a static reference to the non-static method Any help with this problem is appreciated. It comes up in the context of Lusin's theorem, where it was assumed to be true.     Suppose $E$ is a closed subset of $\mathbb{R}$ and $f:E\rightarrow \mathbb{R}$ is continuous. There exists a continuous function $g: \mathbb{R} \rightarrow \mathbb{R}$ such that $f(x)=g(x)$ for $x \in E$ and $g$ satisfies $$\sup_{x \in \mathbb{R}} |g(x)| \leq \sup_{x \in E} |f(x)|\;.$$ Chrome S3 Cloudfront: No 'Access-Control-Allow-Origin' header on initial XHR request