## How to replace an element in a list based on the value of the next element?

I use Mathematica a little bit. I try to understand it, but it is hard I have a list of 5 numbers selected randomly from 0 and -1. I have to replace a 0 with a 1 when the 0 is followed by -1. My ...

## Why is $\lim\limits_{n \to \infty} \sqrt[n] {n^n}=n$ where $\lim\limits_{n \to \infty} \sqrt[n] {n!}=\infty$?

Why is $\lim\limits_{n \to \infty} \sqrt[n] {n^n}=n$ where $\lim\limits_{n \to \infty} \sqrt[n] {n!}=\infty$ ? We all know that $n^n > n! \ : \forall n$ so how come the factorial "beats" the ...

## Alignment in math equations

How can I align my equations as in the image below? I know \begin{split} x_1'(t) &= x_1(t)+2 x_2(t) \\ x_2'(t) &= 3 x_1(t) \end{split} ...

On some accounts I use my real name on-line(G+/fb/wiki/Personal blog), others(Q&A/Gaming) I use an alias. My question is: Security and privacy wise, what can people do with my real name? What are …

## In plain english, why does conversion from hexadecimal to binary work so cleanly?

Why does the trick of taking the binary representation of each digit and simply concatenating them work? e.g. 0x4E == 0100 concatenated with 1110, making 01001110

## How to highlight overlapping regions in RegionPlot according to the overlapping times?

I want to plot the overlapping regions of several inequalities. For example, RegionPlot[{x + y > 0, x - y > 0, x^2 + y^2 < 1, x y < 1}, {x, -2, 2}, {y, -2, 2}] The regions for the ...

## Why characters UTF-8 encoded are ISO-8859-1 encoded when written in an external file

For an UTF-8 encoded file as follows: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} % \newwrite\outtmp \immediate\openout\outtmp=out.tmp % \begin{document} ...

## Is it bad practice to increment more than one variable in a for loop?

While coding today, I came across the following loop in C#: for(int x = 0; x < max_x_index; x++){ for(int y = 0; y < max_y_index; y++, count++){ { some2Darray[count] = ...; …

## Why does CSS work with fake tags?

In my class, I was playing around and found out that CSS works with made-up tags. Example: <style> imsocool { color:blue; } </style> <body> ...

## Ripping to FLAC as close to original CD quality as possible (Rubyripper)

I just started re-ripping CDs, but I'm not sure I'm getting the most out of them possible. Right now in Rubyripper I'm using --best -V for FLAC, but is that going to give me quality as close to the …

## How to calculate a new length?

What I want to do is calculate the actual size between the edge of the paper, and my header. \evenmarginsize and \oddmarginsize do not do this. \settowidth{\msize}{((\paperwidth - \textwidth)/2)} …