How to Bulk / Batch Rename in Terminal?
How do I easily rename multiple files using command line?
Square version of \cdot (small black square)? I'm looking for the symbol that's similar to \cdot in math mode, but instead of a small circle, it's a square. Like this: What is the name for the grammatical device of putting "not" after a verb to negate it? I use \includegraphics command to insert image to the document. But how can I add a border around this image w/o any margin between border lines and image? It seems to be very easy, but I can't find it in the documentation. Centre of $GL_n(\mathbb R)$ How to prove that center of $GL_n(\mathbb R)$ is scalar matrices?  Again what can you say about the center of set of all upper triangular matrices and center of set of all diagonal matrices. How can I show or hide boot messages when Ubuntu starts? Is there a way to easily turn on/off showing the boot messages (loading the services) when Ubuntu starts? Is it something in Grub2?  I am running 10.04. How do I print my Java object without getting "SomeType@2f92e0f4"? The integral $\int_0^\infty \dfrac{x \sin(x)}{x^2+1} dx$ How to calculate: $$\int_0^\infty \frac{x \sin(x)}{x^2+1} dx$$ I thought I should find the integral on the path  $[-R,R] \cup \{Re^{i \phi} : 0 \leq \phi \leq \pi\}$.  I can easily take the residue in $i$ $$  Res_{z=i} \frac{x \sin(x)}{x^2+1}  \quad = \quad \frac{i (e^{ii}-e^{-ii})}{2i}  \quad = \quad \frac{i(\frac1e-e)}{2i} \quad = \quad \frac1{2e}-\frac e2 $$ I know that the integral on $[-R,R]$ will get nearby the real value of $ \frac12\int_0^\infty \frac{x \sin(x)}{x^2+1} dx$. That means that I'm done if I show that the integral on the other part of the path will be small, here is an attempt to do so:  $$ \left|\frac{x \sin(x)}{x^2+1} \right|  \quad \leq \quad  R \cdot \frac{|\sin x|}{R^2-1} $$ I could rewrite $\sin x$ but it becomes nasty. Can you help me with this? font set problems in beamer i want to set the main font in my beamer as "Consolas" i do like this :  \documentclass{beamer} \usepackage{fontspec} \usetheme{Warsaw} \begin{document} \setmainfont{Consolas} \begin{frame} we discuss the ambiguities of existing security definitions and then provide a general framework for defining AKE security when involve strong adversary capabilities \end{frame} \end{document}   but after compile it , the font doesn't change, it is the same with that before the main font was set. what's the reason? conflict between hyperref and enumitem packages (and \refstepcounter) The solution outlined for each of the following two posts appears to conflict with the hyperref package.         Here is a MWE.  The desired output for the example is  1. Outer 2.1. This is line 2.1, in block 2.  2.2. Inner again 3. Outer again 4. Let’s end here   This output is indeed produced by the LaTeX source below, but if I uncomment the \usepackage{hyperref} line in the header, LaTeX gives me an error just after the \skipitem command, as described in the inline comment below:  \documentclass{article}  % \usepackage{hyperref} % if we uncomment the above line, we get an error as described below  \usepackage{enumitem}  \newlist{steps}{enumerate}{9} \setlist[steps]{itemindent=0pt} \setlist[steps,1]{label=\arabic*.,ref=\arabic*} \setlist[steps,2]{label=\arabic{stepsi}.\arabic*.,ref=\arabic{stepsi}.\arabic*}  \makeatletter \newcommand{\skipitem}{\refstepcounter{\@enumctr}} \makeatother  \begin{document} \begin{steps} \item Outer   \skipitem   % If we uncomment the \usepackage{hyperref} line in the header,   % we get the following error after the \skipitem above   %    % ./tmp.tex:20: Missing number, treated as zero.   % &lt;to be read again&gt;    %   \c@0.0ptxcii    % l.20   \skipitem   % \item[] \label{blockA}   \label{blockA}\item[]   \begin{steps}   \item\label{lineB} This is line~\ref{lineB}, in block~\ref{blockA}.   \item Inner again   \end{steps} \item Outer again \item Let's end here \end{steps}  \end{document}   Can someone help me work around this conflict, so I can use hyperref with this use of enumitems and refstepcounter?  Thanks.  (Note: smaller working examples are possible, but they give different error messages.  I'm hoping to get the current example working.) animating an element's height using jquery Showing $\left(1+\frac{1}{n}\right)^n$ is an increasing sequence by comparing the binomial expansions term by term So I know that showing $\left(1+\frac{1}{n}\right)^n$ is an increasing sequence has probably appeared on this site about 100 times, but my professor said he thinks the induction step is most easily seen if you expand this out and compare the summation term by term. I tried this and I did not what see why the inequality was obvious. Can somebody help me out here? Thanks! How to send parameter from jsp page to jasper file Can I use HMAC-SHA1 in counter mode to make a stream cipher? Say I have an embedded device which is only capable of doing HMAC-SHA1 transformations (that device is, in fact, a YubiKey).  Would it be secure to feed it like a block cipher in counter mode to get a random pad suitable as an stream cipher?  Of course, I'm talking about not repeating the counter value ever to encrypt data (so this construction would also need some random IV or treating the counter value as a nonce forever). options for [for /f "usebackq" %%f in (`find "" path`) do] sentence in batch I symplified my problem: @echo off set res=  for /f &quot;usebackq&quot; %%f in (`find &quot;a&quot; list.txt`) do set res=%%f echo %res%  pause&gt;nul and that things.txt file in the code is like:  list.txt file in the code is: apple pitch pear melon mango  As you expect, the result of this code is mango  because the line 'mango' is located below the line 'apple' and 'pear' But the result I want is apple  or pear  Specifically, I want to put each of the other values above mango such as apple and pear into the variable res using option keys provided. is there any way to do that? Autofill feature isn't iterating numbers properly when using the AVERAGE() formula in Microsoft Excel Why is $a^n - b^n$ divisible by $a-b$? How do I import a namespace in Razor View Page? How to add a default item to a custom taxonomy? Wordpress default taxonomy (Categories) has the item Uncategorized by default. How to add a default item to a new custom taxonomy?  functions.php:  // === CUSTOM TAXONOMIES === // function my_custom_taxonomies() {     register_taxonomy(         'block',        // internal name = machine-readable taxonomy name         'static_content',       // object type = post, page, link, or custom post-type         array(             'hierarchical' =&gt; true,             'labels' =&gt; array(                 'name' =&gt; __( 'Blocks' ),                 'singular_name' =&gt; __( 'Block' ),                 'add_new_item' =&gt; 'Add New Block',                 'edit_item' =&gt; 'Edit Block',                 'new_item' =&gt; 'New Block',                 'search_items' =&gt; 'Search Block',                 'not_found' =&gt; 'No Block found',                 'not_found_in_trash' =&gt; 'No Block found in trash',             ),             'query_var' =&gt; true,    // enable taxonomy-specific querying             'rewrite' =&gt; array( 'slug' =&gt; 'block' ),    // pretty permalinks for your taxonomy?         )     ); } add_action('init', 'my_custom_taxonomies', 0);   EDIT: I just want to have the taxonomy item there when the theme is installed. It doesn't have to automatically be added to any empty term. What should I do when my Minecraft Launcher 1.3.11 wouldn't log me in? The console output is:                                              Sorry, but we couldn't connect to our servers. Please make sure that you are online and that Minecraft is not blocked. (CertificateNotYetValidException:NotBefore:Tue Apr 08 20:47:05 CST 2014) Maps from subsets of $\mathbb{R}^2$ that are either open/closed/continuous I'm self studying J. Lee's Introduction to Topological Manifolds, and after doing all other exercises on chapter 2, I can't seem to come with the proper counterexamples for this one.      For each of the following properties, give an example consisting of two subsets $X, Y \subset \mathbb{R}^2 $, both considered as topological spaces with their Euclidean topologies, together with a map $f: X \rightarrow Y$ that has the indicated property.         Open but not closed/continuous   Closed but not open/continuous    Continuous but not open/closed         etc... (all cases)   I think the reason for my difficulty is a lack of geometric intuition of what open, closed and continuous maps look like as deformations of shapes in $\mathbb{R}^2$ (I can construct counterexamples from artificial made up spaces).   I tried squashing balls and 'pumping space' into lines, as well as joining strips in annulus shapes, but all the examples I seem to come up with are either too well behaved (i.e. all 3) or too misbehaved.   Instead of a case by case answered I would prefer a couple worked out cases and some intuition on how to visualise open / closed maps in this context.