Python - Display Every Permutation of a List or Set of Strings
How to generate all permutations of a list?
UV mapping a straight image around a ring shaped flat mesh Is it possible to mapping a image around a ring shaped mesh? I would imagine there should be a way to curve/distort the image around the mesh. If not, how can I straighten out the mesh easily instead to fit the image? How to print the entire array list without appending the index in Java? Why is the gap between the translation and the last line of the gloss so wide in my interlinear gloss? I notice if I take away some letters, the translation line goes to where it should be, but this big block of white space is pretty untenable. Ideas?    \documentclass[11pt,a4paper]{book}  \setcounter{secnumdepth}{4} \usepackage{gb4e} \usepackage{tipa} \usepackage{setspace} \usepackage[T1]{fontenc} \begin{document} \begin{exe} \ex \glll Jichax    Qamaqix lij parki,  aynacha,    amsta,  parki, q'awanaks,   khuyt'asis  sarawjchix. \\ \{jicha-x(a)    Qamaqi-x(a) lij(u)  parki   aynacha amsta   parki q'awa-nak(a)-_{c}$\oslash$-s(a)   khuy(u)-t'a-s(i)-s(a)   sara-wj(a)-ch(i)-i-x(a)\}    \\ now-\textsc{top}    Fox-\textsc{top}    all acclivity   declivity   ascent  acclivity ravine-\textsc{pl-acc-ad} whistle-\textsc{m}-\textsc{refl}-\textsc{subr} go-\textsc{bfr-cnj-3sim-top}\\ \glt `And so, Fox must've gone whistling on all the ascents, slopes, ascents, mountainsides, and even in the ravines.' \end{exe} \end{document} Is it possible to use the laptop's audio via headphone jack and Bluetooth speakers at the same time? Lolo Joe wants earphone jack to plug and use big speakers but at the same time he wants to partner the music coming out the earphone jack and his Bluetooth system and speakers. Is it even possible to use the earplug connection and the Bluetooth system and devices at the same time? Turn a string into a valid filename? I have a string that I want to use as a filename, so I want to remove all characters that wouldn't be allowed in filenames, using Python.  I'd rather be strict than otherwise, so let's say I want to retain only letters, digits, and a small set of other characters like "_-.() ". What's the most elegant solution?  The filename needs to be valid on multiple operating systems (Windows, Linux and Mac OS) - it's an MP3 file in my library with the song title as the filename, and is shared and backed up between 3 machines. Command-line to switch between profiles in gnome-terminal I created a new profile for gnome-terminal and I can switch between &quot;Implicit&quot; profile and the new created profile as you can see in the below image:  Now I wonder how can I switch between profiles using a command-line/script or maybe using a shortcut for this.  Note: Solutions like: gnome-terminal --tab-with-profile=Implicit &amp;&amp; exit   are excluded because I prefer not to close and open another terminal or get another terminal window in this process of changing the profile. Evaluation order of Button's action Change HTML Produced by wp_list_comments() I am developing a WordPress theme for which I would like each comment's timestamp wrapped in in a &lt;span&gt; element for the sake of styling it with CSS rules. However,  as I use it in my theme's comments.php template does not seem to provide options to alter the HTML produced:  &lt;ol class="comment-list"&gt;     &lt;?php         wp_list_comments( array(             'style'       =&gt; 'ol',             'format'      =&gt; 'html5',             'short_ping'  =&gt; true,         ) );     ?&gt; &lt;/ol&gt;   which produces timestamps as such:  &lt;time datetime="2015-12-21T19:09:49+00:00"&gt; december 21st,  2015 on 19:09 &lt;/time&gt;   How can I alter the function's output to include a &lt;span&gt;element around each &lt;time&gt; element without altering core files?  I've tried looking at my theme's functions.php, as well as WordPress wp-includes/comment.php and wp-includes/comment-template.php. None of them deal with the actual tag structure of the comment timestamps generated by wp_list_comments(), so there was nothing there for me to play with. Automorphism of rational numbers Let $\mathbb Q$ be group of rational numbers under addition.  Then I want to find out the automorphism group of $\mathbb Q$. In a book it is given that Aut($\mathbb Q$) is isomorphic to $\mathbb Q^*$, the  multiplicative group of rational numbers. I stuck in this. How to stop iPhone users from sending iMessages and send SMS instead I used to have an iPhone, but I changed to an android (shock, horror!). Unfortunately Apple refuses to let me go and whenever friends message me the messages get sent as iMessages (unless they remember to specifically chnge the format). I never get these messages. They never get resent as SMSs automatically as is supposed to happen. How can I get my phone number deleted from the iMessage list. I've turned off iMessage on the old iPhone. A very quick question:   Is it correct to say "In case I won't be able to watch that"?  If it's acceptable to say that, what type of sentence is it?  UPDATE:  As a clarification, I want to say "Can you give me that in case I won't be able to have it later". Probably, it's more a supposition than a conditional. Include some chat capabilities in iOS app Currently, the app notifies users when they're mentioned in chat. However, when we tap on the notification, we got redirected out of the app to Safari.   Is there a chance we can get some chat capabilities in the app, so that we don't have to login again in Safari to quickly reply to the messages?    App version: 0.1.19 09/19/2014 Is there the easiest way to toggle (show/hide) navigational grids in TikZ? In PSTricks, we can toggle the grids easily by showgrid=[false/true]. How to do it in TikZ? Doing as follows is tedious.    \documentclass{minimal} \usepackage{tikz}  \begin{document}   \tikzpicture  \draw[gray,very thin] (-4,-2) grid (4,2); \foreach \x in {-4,...,4}   \draw[red] (\x,-1.9) -- (\x,-2.1) node [below] {\x};   \foreach \y in {-2,...,2}   \draw[red] (-3.9,\y) -- (-4.1,\y) node [right] {\y};  \draw (0,0) circle (2);   \endtikzpicture    \end{document}   Is there the easiest way to toggle (show/hide) navigational grids in TikZ?  Edit  The navigation needs not only the grids but also the labeling numbers. Using the same variable as a fixed and random effect in Mixed Effect Models Does one wing of fly contain harmful microbes and the other contain only antibodies? There was  study but the conclusion and it's source's relability seemed a bit off. How come a house flies one wing contain all microbe and the other don't. This is one of the few movies I saw on one of my relative's computer screen when I was little. As I was too young to understand anything, it was approximately 15 to 20 years ago (I believe the movie couldn't have come out after 2000, but the quality of the pictures looked good enough that I have my doubts).   The movie I am looking for was fully animated. Potentially a Japanese animated movie, but I can't tell for sure, as I was too young to tell the difference between Japanese, English or any language. There may be blood in the movie, but I can't tell for sure. However, now that I'm looking back, the drawing style looked slightly Japanese, although it was more of the bloody kind (I could slightly compare its style to "Blood: The Last Vampire" (2000)). Maybe it had an Asian tone to it (e.g. it could be a Korean animated movie too).   One of the "bad guys" was a tall, heavy guy, in a very armoured suit. I can't tell whether he was wearing a suit, or if his body was enhanced because he survived an accident (although I have some form of memory about the latter). Most of his body was covered, but I remember his face not being covered. The most distinctive feature he had was the fact that he had a Minigun where one of his arm should be (a bit like Barret in Final Fantasy 7). I think the first time we see him, he's seen crushing a metallic ashtray with his other hand.   A battle scene in the movie includes the heavy guy having a shoot-out against a relatively thin guy (or should I say "normal-sized man"), fighting him with a machine-gun mounted vehicle (he wasn't the one driving; he was shooting from the back of the vehicle). While they were shooting at each others, I remember the heavy guy screaming (nothing in particular, he was just shouting continuous "AAAHH~!!" in pure rage). The fight didn't seem to happen in a city. It slightly looked like a battlefield. The fight ended with some form of explosion, probably killing off the heavy armoured guy.   The other noticable character was a young boy. He looked... pale, almost weird. His skin was almost green, otherwise he looked like a regular child. He seemed to have some psychic powers too: at some point, when he was feeling uneasy and sweating, a man picked a sample of blood from the back of his neck, using a portable device. But when the man was... either incapacitated or down, that boy broke the device containing his blood simply by looking at it.   At some point near the end of the movie, the pale looking boy and some people (with scientists among them) seemed to be inside a huge facility or underground hangar. There was a lot of space, although I can't remember if it was a factory, or if it was an underground weapon storage. The child was also giving some form of speech too, as all the lights turned on suddenly. The others were possibly surprised by what they were seeing.   One last detail I remember about that child is his smile. While it wasn't as scary as the Joker's, his grin was... kind of creepy, because of how he looked at the others with his small round eyes. He was oftenly grinning.   Overall, most of the scenes I remember were quite dark (mostly because there was little light, or it was night time). The two exception being the battle scene (although it was dark, there was a lot of muzzle fire), and the last underground scene with the boy.   When I asked my relative about the movie, all they could tell me was: "The coloured word 'Aiko' was written on the cover of the CD". Do votes get canceled if voting privilege is lost? If I'm below 15 reputation, I can't alter the public score of an answer/question.  Suppose I gain the privilege by getting the required rep and vote some posts up. Then, for any reason, I fall below 15 and lose the ability to vote. What about the votes I already did cast?  Do post scores get altered by ignoring my vote, or will they stay the same? In other words, is losing a privilege retroactive?  If yes, what about when I gain my privilege back? Are my votes automatically restored, or do I have to cast them again from scratch?  I made the easiest example, but this applies to any higher privilege I read the following dev email  and when i read this part:  Note that this does not completely remove the ability for extensions (e.g. Dropbox) to add emblems programmatically by using the libnautilus-extension library, just the user-added emblems from the properties dialog/emblems sidebar.   There is ability to bring emblems programmatically. So, How can i use libnautilus-extension library to add some emblems like Dropbox does? Or is there any tweak tool for this? Phone Call On TextView Click I installed Android studio some time ago using the following suggested method:     To set up Android Studio on Linux:      Unpack the downloaded Tar file,   android-studio-ide--linux.zip, into an appropriate location   for your applications. To launch Android Studio, navigate to the   android-studio/bin/ directory in a terminal and execute studio.sh. You   may want to add android-studio/bin/ to your PATH environmental   variable so that you can start Android Studio from any directory.   Follow the links to install the SDK outside of the Android Studio   directories.   For whatever reason it has become corrupt and insists I must un-install and re-install. I can't for the life of me find how to un-install it however.  I didn't use apt-get so I can't do apt-get remove.  Does anyone have any suggestions?