Is there a way I could script this scenario with emacs?
Idiomatic batch processing of text in Emacs?
I have created a model which requires some faces to be dual sided.  I intend to import this model into Unity. Reading about this, it seems that the recommendation is to duplicate the polygons and then flip the normals.  What I have done so far is simply to duplicate the all of the relevant faces using Shift+D and then flip the normals. I don't like this method though as it hampers any future alterations to the model itself.  What is the best way of doing this? Let $T=\{z:|z|=1 \mathbin{\text{and}} z \in \mathbb C\}$ be the unit circle in the complex plane, considered as a topological group under complex multiplication and the usual topology. Show that every subgroup of $T$ is either dense in $T$ or finite.  How to prove the denseness? I am trying to find examples of maps between topological space which are local homeomorphism but not covering maps. Especially, how twisted has to be such a counterexample : can it be a local diffeomorphism between connected manifolds which is not a covering map ?   I found here() a nice proposition which state that a local homeo from a compact space to a connected Hausdorff space is a covering map.   I am interested in all type of counterexamples, from non-Hausdorff spaces to surfaces, to get a better picture of the differences between covering maps and local homeomorphisms.  Thank you ! Using PyQGIS to transform layer of polygons into layer of holes inside bbox? Why is $\sqrt {12} = 2 \sqrt 3$? Android 4.1: How to check notifications are disabled for the application? In Unity3D, how do I create an efficient scratch card effect? I want to create a scratch-card-like effect in new Unity UI's new Image tag.  I know it's possible with setPixels, but that's prohibitively expensive on mobile devices.  Something like this:    I'd like the user to be able to drag on any part of the image to "scratch off" the top layer and reveal the content underneath it.  How can I do this? Table and figure side-by-side with independent captions Looking to put a table and a figure side by side so that the table and figure have their own captions. A crude sketch    ------------              -----------------     TABLE    | a |  b |                     FIGURE   | c |  d |  ------------              Table 2: Caption           -----------------                            Figure 7: Caption   The closest I've gotten is:  \begin{table}% \centering \parbox{0.4\textwidth}{ \begin{footnotesize} \begin{tabular}{| l | r |} \hline some &amp; table\\ \end{tabular} \end{footnotesize} \caption{Table} \label{tab:table} } \qquad \begin{minipage}[c]{0.53\textwidth}% \centering     \includegraphics[width=1\textwidth]{awesome} \caption{Figure} \label{fig:figure} \end{minipage} \end{table}   But that gives two Table X: Caption captions. I didn't find anything in subfig.  Help? I think my MacBook Pro battery was replaced by Apple's service team. How do I check that? How to read from two input files using while loop I wanted to know if there is any way of reading from two input files in a nested while loop one line at a time. For example, lets say I have two files FileA and FileB.   FileA:  [jaypal:~/Temp] cat filea this is File A line1 this is File A line2 this is File A line3   FileB:  [jaypal:~/Temp] cat fileb this is File B line1 this is File B line2 this is File B line3   Current Sample Script:  [jaypal:~/Temp] cat read.sh  #!/bin/bash while read lineA     do echo $lineA      while read lineB         do echo $lineB          done &lt; fileb done &lt; filea   Execution:  [jaypal:~/Temp] ./read.sh  this is File A line1 this is File B line1 this is File B line2 this is File B line3 this is File A line2 this is File B line1 this is File B line2 this is File B line3 this is File A line3 this is File B line1 this is File B line2 this is File B line3   Problem and desired output:  This loops over FileB completely for each line in FileA. I tried using continue, break, exit but none of them are meant for achieving the output I am looking for. I would like the script to read just one line from File A and then one line from FileB and exit the loop and continue with second line of File A and second line of File B. Something similar to the following script -  [jaypal:~/Temp] cat read1.sh  #!/bin/bash count=1 while read lineA     do echo $lineA          lineB=`sed -n "$count"p fileb`         echo $lineB         count=`expr $count + 1` done &lt; filea  [jaypal:~/Temp] ./read1.sh  this is File A line1 this is File B line1 this is File A line2 this is File B line2 this is File A line3 this is File B line3   Is this possible to achieve with while loop? Sentient Bomb in a city on the moon? I would like to know the title of the short story that I believe takes place on the moon.  The setting is a mall or some other very public location and the main character is a police officer.  She needs to talk a sentient bomb out of exploding.  I know there was the John Carpenter film "Dark Star" with a similar plot line but I'm trying to identify the short story and the author. How could I get the terminal to be launched once I have logged in, so that typing commands is much simpler? Entire function with vanishing derivatives? Let $f:\mathbb{C}\rightarrow\mathbb{C}$ be an entire function. And assume that at each point, one of it's derivatives vanishes.  What can you say about $f$?  A hint suggests that $f$ must be a polynomial. How to prevent my screens from turning off, when the screen is locked? I would like to have my screen fully powered at all times, but it goes to standby once I lock my PC. Print lines between (and including) two patterns I want to start grepping from the lines that has CK at the end of line and stop grepping when the line has D at the end. I tried grep "$CK" "$D" file..txt, but it didn't work.  Input:  kkkkkkkkkkk    jjjjjjjjjjjjjjjjjj   gggggggggggg/CK   JHGHHHHHHHH    HJKHKKLKLLL    JNBHBHJKJJLKKL   JLKKKLLKJLKJ/D   GGGGGGGGGGGGGG   GGGGGGGGGGGGGG   The desired output:  gggggggggggg/CK   JHGHHHHHHHH    HJKHKKLKLLL    JNBHBHJKJJLKKL   JLKKKLLKJLKJ/D Leaving values blank if not passed in str.format I read in a book &quot;Physics - Resnik and Halliday&quot; the explanation of Type-I Superconductors {cold ones} that:  The Electrons that make up current at super-cool temperatures move in coordinated pairs. One of the electrons in a pair may electrically distort the molecular structure of the superconducting material as it moves through, creating  nearby short-lived regions of positive charge.the other electron in the the pair may be attracted to the positive spot. According to the theory the coordination would prevent them from colliding with the molecules of the material and thus would eliminate electrical resistance  Is this the only explanation or can somebody give me a more intuitive explanation that also takes into the problem of defect scattering as in the case of resistance and also explains the Type-II superconductors {hot ones} P.S. What are &quot;coordinated pairs&quot;? My new laptop came preinstalled with Windows 8. Naively, as I am, I just formatted the harddrive and installed fine old Ubuntu. Now I want to install Windows 8 for dual boot again, but I have no DVD and to download the ISO one needs a product key. That key is not on the back of the laptop anymore but somewhere on the mainboard.  Is there any way to recover the product key from the mainboard using Ubuntu? Gamma Distribution out of sum of exponential random variables Single service account running all SQL Servers Is there any negative performance impact for using the same service account and agent account to run SQL Server and SQL Agent respectively for all SQL server instances running at a small company of say 35 servers? The biggest database is 0.5 GB. any suggestions are welcome. Thank you.