In a follow up of  it was suggested to use \seq_use:Nn to display the content of a sequence. It works really nice but it concatenates the items with a given separator (like join in Python). Is there a way to loop through the elements and do something with each of them?
How can I iterate, loop, process, or otherwise do something, with each element from a comma separated list of things?  This question       , and the are already lots of very good answers everywhere. However I think it would also be valuable to have a single reference point where all such alternative techniques are explained in detail, with their advantages and disadvantages discussed.  All of plain-TeX, LaTeX, LaTeX3, LuaTeX, Context, etoolbox, pgffor, etc. answers are invited. Please consider explaining, for example:   How does the command/method deal with whitespace around items? How does the command/method deal with empty/missing items? (e.g. a,b,,c) How does the command/method deal with a trailing comma? Can the command/method work of a list stored on a macro? Is each iteration evaluated globally or on a local group? (i.e., if a command is defined during an iteration, does the command survive the loop?) Do items get expanded or somehow mangled before being processed? What about lists where items are key=value or some other kind of pairs? Does the method work for lists separated with something other than a comma? Any other thing I should know before deciding to use this method?
Is it possible and furthermore constructive to make LaTeX automatically format specific words in specific way? Let's say, for example, I'd like to have every occurrence of the word "hello" in a bold cyan monospaced font, whereas the rest of the document remains normal, sans serif and black.   How can I achieve that without having to do a search&amp;replace to place "hello" into a custom command every time before I compile the .tex file? Evaluate the sum: $\sum\limits_{n=0}^{\infty} \frac1{F_{(2^n)}}$ Evaluate the sum:  $$\sum_{n=0}^{\infty} \frac{1}{F_{(2^n)}}$$  where $F_{m}$ is the $m$-th term of the Fibonacci sequence. I need some support here. Thanks. MySQL Insert query doesn't work with WHERE clause Bash scripts ran from from gnome/nautilus don't have environment variables Very basic question here, I am afraid.  I have hundreds of shattered pieces of a mesh and I am trying to animate their visibility over the scene.  How can I animate the visibility and render visibility parameter for one piece, then copy/transfer to all the others? I have few methods that returns different Generic Lists.   Exists in .net any class static method or whatever to convert any list into a datatable? The only thing that i can imagine is use Reflection to do this.  IF i have this:  List&lt;Whatever&gt; whatever = new List&lt;Whatever&gt;();   (This next code doesn't work of course, but i would like to have the possibility of:  DataTable dt = (DataTable) whatever; I have an application running on node and using the mongodb library to establish connection and closing it. But the problem is, from the mongo serverStatus() command i can see that there is still 2k+ current connections still available.  &gt; db.serverStatus().connections { "current" : 2993, "available" : 835867, "totalCreated" : 220841 }   and most of it are having the active: false status.  My questions is, is there a way for me to force close these idle connections which after some time will affect my application with an timeout error.  I tried using the killOp() command but these only works if there is still opid value listed in these idle connections.  Appreciate some feedback on how can handle this kind of situations. Solving $\sin x\cos3x+\cos x\sin3x=\sqrt{3}/2$ in the interval $[0,2\pi]$ Solve the following trig equation: $$\sin(x)\cos(3x)+\cos(x)\sin(3x)=\frac{\sqrt{3}}{2}$$ in the interval $[0,2\pi]$.  Using trig identities, it is now at $$\sin(x+3x)=\sqrt{3}/2 \tag{1}$$ Next, it has become $$\sin(x+3x)=\sin 60^\circ \tag{2}$$ leading to $$\sin(x+3x)-\sin60^\circ=0 \tag{3}$$ From there, it is unclear what to do. Use of very as an adjective is (in my experience) most frequently attested in phrases like     ...the very person I was looking for.   To use adjective very with the indefinite article sounds quite bizarre in this case:     ?...a very person I was looking for.   But consider this sentence, where indefinite a is used:     Visualizing a very transformation of the master-slave relation, Thomas presses further: the slave is brother to the master, even doubly a brother.   OED treats the two uses as separate senses of the word, with the following definitions:           (first use):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;With limitation (usually expressed by the or a possessive) to particular instances      (second use): Really or truly entitled to the name or designation   Here are two respective examples quoted in OED:     What would you say to me now, and I were your verie, verie Rosalind? (1616)   Thence we went into Queen Mary's room, and saw that beautiful portrait—that very queen and very woman. (1857)   Clearly, the difference in meaning between the two senses is quite light, and it seems to me like a kind of difference which is recurrent enough to have its own term. What is the proper term? Are there other English words having similarly related pairs of senses? And lastly, is OED jumping the gun in treating these as two senses? Could the difference in meaning instead be due to the choice of determiner? How can I assign the output of a command to a shell variable? divisibility question in abstract algebra over a field $d|n \Rightarrow x^{p^d} - x$ divides $x^{p^n} - x$ over $\mathbb{F}_{p}$ where $\mathbb{F}$ is a field.  Attempt:   $d|n \Rightarrow x^{p^d} - x$ divides $x^{p^n} - x \Rightarrow x^{p^d - 1} - 1$ divides $x^{p^n - 1} - 1 \Rightarrow p^d - 1$ divides $p^n - 1$ since $p^n - 1 = (p^d)^{\frac{n}{d}}-1$.  How does this look? Re-number a list when a new entry is inserted I have a text file of numbered entries:  1. foo 2. bar 100% 3. kittens 4. eat cake 5. unicorns 6. rainbows   and so on up to some large number. Then after an empty line, a new block starts from 1.  I insert a new entry, replacing, say, 4. and I need to renumber all the subsequent entries in the block:  1. foo 2. bar 100% 3. kittens 4. sunshine &lt; 5. eat cake 6. unicorns 7. rainbows Energia/MSP-EXP432 Issue: Analog In Pin removing voltage from Voltage Divider In the circuit below, I want to measure the voltage going to the ADC (output from the voltage divider consisting of a fixed resistor and photoresistor) using an MSP-EXP432; however, the MSP-EXP432 "Analog In" pin is lowering the output voltage (i.e. the voltage going into the ADC from the voltage divider drops when the "Analog In" pin is connected).  I set the analog pin as an input in the code shown below in Energia.  Is there any way to fix this?    const int bitsOfADC = 14; // 14-bit ADC Launchpad //int maxVal = 2^N -1;  // 2^14-1 int maxVal = 16383; float FSV = 5.0; // Supply to 0804ADC float LaunchPadResolution = FSV/maxVal; int D7 = A13; int D6 = A14; int ADCInput = A6; boolean D7_State = LOW; boolean D6_State = LOW; void setup() {   delay(1000);   Serial.begin(9600);   pinMode(D7, INPUT);   pinMode(D6, INPUT);   analogReadResolution(bitsOfADC);   pinMode(ADCInput, INPUT); } After much trial and tribulation, I thought I had drush all ready to roar. Much excitement. But then, no joy...  Drush is working. The sites operate fine via MAMP. Regardless, a "drush cc all" command returns:   No Drupal site found, only 'drush' cache was cleared.                                          [warning] 'all' cache was cleared.                                                                       [success]   This question has stumped drupalcon attendees and very experienced developers. Any ideas?  I am on Mac OS 10.9.3 using MAMP (free) Version 3.0.5  Here is my drush status:   Drupal version         :  7.29-dev                                 Site URI               :  http://default                           Database driver        :  mysql                                    Database hostname      :  localhost                                Database username      :  db_user                             Database name          :  db_name                        PHP executable         :  /usr/bin/php                             PHP configuration      :                                           PHP OS                 :  Darwin                                   Drush version          :  7.0-dev                                  Drush temp directory   :  /tmp                                     Drush configuration    :                                           Drush alias files      :                                           Drupal root            :  /Applications/MAMP/htdocs/mysite.dev   Site path              :  sites/default       Have tried executing drush from /Applications/MAMP/htdocs/mysite.dev; from /Applications/MAMP/htdocs/mysite.dev/sites/default; and using drush cc all --uri=http://localhost/mysite.dev  Tried running drush from sites/default. Same result. Modifying agsm.bst package bibliography output I would like to change the URL output from:  URL: the html link  into:  [Online]URL: [Accessed on]  I am using:  \usepackage[comma]{natbib} \bibliographystyle{agsm} Google Maps Location History is showing an incorrect location I have a major problem that I hope someone can help with. On my Google Maps feature under my Location History it shows a location that I was never at at any point, but when my wife happened to see that location she doesn't believe me that the GPS could be wrong and pinpoint that location if I was never there.  I was first wondering myself how could that could be possible if I was never there or my phone was never at that location that was 35 miles away from me and second is there any way I could prove the GPS being wrong? Can I contact Google Maps and can they give an official printout of that certain day and every location I was? I really need to prove my honesty to her and hope there is a way. Does going outside of range or line of sight after casting a spell have any effect? To show that $\sum a_nb_n$ is absolutely convergent How I can create a graph of acceleration and speed - tikz? How can I create a graph of acceleration and speed like the one in the picture. Knowing that they are each other's consequence?    \documentclass{article} \usepackage{tikz}  \begin{document}  \begin{tikzpicture}               \end{tikzpicture} \end{document} Arguably the most famous scene in Star Wars is when Darth Vader reveals to Luke Skywalker that      He is Luke's father.   This surprise was kept secret to most of the crew and even the cast , with Dave Prowse, the actor playing Darth Vader, delivering a fake line, the actual line being overdubbed. (Of course, Darth Vader wasn't voiced by him in the first place; all lines were overdubbed by James Earl Jones).   Like Mark Hamill relates in :     But, for example, your big scene, one of the classic cinematic moments when Darth Vader divulges his true identity, is no longer a revelation.       It's such a great moment! The fake line that was put in there just to try and keep the secret was "You don't know the truth: Obi-Wan killed your father!" But as much as I enjoyed leaking false information, it was a wonderfully hard secret to keep because (Irvin) Kershner, the director, brought me aside and said "Now I know this, and George knows this, and now you're going to know this, but if you tell anybody, and that means Carrie or Harrison, or anybody, we're going to know who it is because we know who knows."   So how do we explain ?       And [David Prowse] offered a glimpse of a possible plot for the second sequel. Darth Vader and Luke Skywalker, the young hero in the first film played by Mark Hamill, are hooked up in a do-or-die light saber duel when Luke learns that Darth is, in fact, his long-lost father.   So exactly how secret was this secret anyway?    As DVK points out , the newspaper article is probably authentic.