How do I 'shuffle' strings arranged in two separate arrays?
How to "shuffle" an array?
When I loaded the review page (in Stack Overflow, though I have no specific reason to think it is related) I got a weird hat in the upper left hand corner.    See the hat in the upper left hand corner?  That's belonging to user # .  His profile page also has the hat in a ... weird ... location, but not this weird.    I'm guessing this is due to the not-loaded image for the avatar (adblock blocks Facebook avatars for me often)?  It also causes the toolbar notification to show his link unless I'm hovering over something else.  It also changes the location of the gray box to the upper left hand corner when I hover over the hat (and hovering over the white box does nothing).  It's definitely him (or any not-loaded avatar perhaps), once he fell off the last 6 reviewers it stopped appearing. \dots versus \ldots - is there a difference? Is there a difference between \dots and \ldots, the ellipsis?  If yes: Which? When to use \dots and when to use \ldots?  If no: Why are there both at all? How to use WiFi and Ethernet at the same time Brief Description:  I need my Ethernet card (en0) to see all traffic under 192.168.2.xxx.  However I also need to use WiFi card (en1) for all other traffic.  OS: OS X Lion    I am using a separate network location to deal with this specific use (since this is a for a robotics project that communicates via Ethernet). Ethernet (en0) had to be set up as a static IP (192.168.2.10) per the requirements for the device I am connecting to. All connections on the Ethernet card (en0) should be 192.168.2.xxx as specified above. WiFi (en1) is set up as DHCP to a router since their is no point in assigning it as a static for general purpose traffic. Ethernet (en0) is set up as priority over WiFi (en1).  I would also like to keep this under the network location preferences if at all possible since I do not require this feature to be on all the time.  I would really appreciate your help on this. No one I have talked to knows how to solve this. Understanding dummy (manual or automated) variable creation in GLM I'm writing a script which shows the git log for a directory when I cd into it. Such a log can be overwhelming, containing hundreds of lines. So far I have been limiting that to a hard-coded 20 lines (... | head -n 20), which is fine on the screen at work, but too much on the smaller MacBook screen at home.  I would prefer the log to take up about half the (vertical) screen on either terminal. And "terminal" also changes: it's Gnome terminal at work, but iTerm2 at home. And I do not use screen or tmux.  How do I find the number of vertical lines available in a terminal from command line? How to get business map location displayed in the right hand sidebar of the Google search results page? Does anyone know how to get your business map location displayed in the right hand sidebar of the Google search results page? As in the screenshot below:      I already added my business to this link: .  Is adding detail in above link enough or do I need to change my website coding? Can Debian identify rarely used packages? I'd like to find a tool that could tell me which Debian packages on my system have been rarely or never used, perhaps by looking at file lists and access times.  This is to find candidates for deletion from my nearly full hard drive.  I'm not very well informed about the rich ecosystem of desktop GUI tools (I use aptitude); does anyone know if one of those tools, or any other tool, can identify how recently a package has been used? Why is my membership length only "Six months"? I was viewing the  and I noticed that I've apparently only had my account for six months, which is news to me... I opened my first site account here in February of 2014.  My account is much older than this, what's causing this bug?  To add some detail... On the per-site list, it does line up the &quot;member for X&quot; text with my actual membership time on that site. For example, when I look at the Meta Stack Exchange leaderboard, it shows me as a member for 2 years, 10 months. This is expected.  Update. With some work, today, I've managed to exceed my Interpersonal Skills hat count of with my Meta Stack Exchange hat count. This has changed my account age to match my MSE account age...  Still not reflective of my actual age... but better. Induction problem: "if the group has at least one player who is better than Messi, then all the members of the group are better than Messi" Area51 proposals are being advertised now all over the network? Should moderators be allowed to decline flags on their own comments? Can't install xposed framework I want to install the xposed framework on my Nexus 5 and in the framework, the install/update option doesn't work.  My Nexus 5 runs Android 5.0 (Lollipop). STM32 send from UART3 and receive on UART2 I thought to create a simple test to send and receive a buffer via UART. I succeeded in sending bytes from my PC to the nucleo bord and receiving them in blocking and non-blocking mode. But for some reason I can't succeed to send data from UART3 and receive the bytes on UART2.  I have a nucleo-f103rb and have the following pins setup:   UART2: tx=PA2;rx=PA3 UART3: tx=PB10;rx=PB11   And then the following code:    while (1)   {     /* USER CODE END WHILE */     /* USER CODE BEGIN 3 */     if (HAL_UART_Transmit(&amp;huart3, send, 2, 1000) == HAL_OK)     {         if (HAL_UART_Receive(&amp;huart2, receive, 2, 1000) == HAL_OK)         {             HAL_GPIO_TogglePin(GPIOA, LD2_Pin);         }     }   }   All the boiler plate is generated using cube mx. So the UART 2 and 3 are all default, same for the button pins.    I connected the transmit pin of uart3 to the receiving pin of uart2 I connected the receive pin of uart3 to the transmitting pin of uart2 (while not used in this trivial example though)   What am I missing here?  Update  As comments and answers suggested, I shouldn't be using the blocking mode approach. So I rewrote it slightly to rely more on interrupts.  I attached a callback to the nucleo blue button  void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {     if (GPIO_Pin == B1_Pin)     {         HAL_UART_Transmit_IT(&amp;huart3, (uint8_t *)send, 2);     } }   And I added a callback for receiving stuff over uart  void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {   /* Prevent unused argument(s) compilation warning */   UNUSED(huart);    /* NOTE : This function should not be modified, when the callback is needed,             the HAL_UART_RxCpltCallback can be implemented in the user file    */       // Toggle the pin to see some proof that I received something      HAL_GPIO_TogglePin(LD2_GPIO_Port, LD2_Pin);       // Resubscribe uart2      HAL_UART_Receive_IT(&amp;huart2, (uint8_t *)receive, 2); }   In the main function I call the interrupt so that the callback is active.  while (HAL_UART_Receive_IT(&amp;huart2, receive, 2) != HAL_OK);  __NOP(); while (1) { }   Again, when debugging through I do end up in the button released callback, but the callback on the uart receive isn't triggered. When I send stuff from the PC, it does. So it seems that sending stuff via uart3 isn't working. So I guess that must be the wiring.     But I really can't see what I am missing here, the pins are clearly defined in the pinout here: .  I hope the photo is clear enough, but this is how I connected them. Exact sequence of sheaves with non exact sequence of global sections Let $X$ be some topological space. By $\mathcal{F}_i$ we denote some sheaves of abelian groups on $X$. The sequence of sheaves and morphisms  $$\mathcal{F}_1\longrightarrow \mathcal{F}_2\longrightarrow \mathcal{F}_3\longrightarrow... $$ is said to be exact if for each $x\in X$ the corresponding sequence of stalks $$(\mathcal{F}_1)_x\longrightarrow (\mathcal{F}_2)_x\longrightarrow (\mathcal{F}_3)_x\longrightarrow... $$ is exact. However if the sequence of sheaves is exact than the sequence of global sections is not necessarily exact! (The most famous example is the sequence of sheaves $$0\longrightarrow\mathbb{Z}\hookrightarrow \mathcal{O}\stackrel{\exp}{\longrightarrow} \mathcal{O}^*\longrightarrow0$$ considered as sheaves on $\mathbb{C}-\{0\}$, where $\mathcal{O}$ is a sheaf of holomorphic functions, $\mathcal{O}^*$ is a sheaf of holomorphic functions with no zeros).  So, could you give me some easy examples of such phenomenon ? How to Recover truncate table in MySQL? Firefox 33 doesn't see Java Plugin I am trying to enable Java (not JavaScript) in my Firefox v. 33 so that I can use applets within the browser.  Currently, I just get a dark gray box across the whole screen when I try to load an applet, without any error message or prompt to install plugin.  As per , I tried going into the Firefox plugin page to activate it, however, it wasn't there listed.  I do have Java 7 installed and it is in the path:  &gt;java -version java version "1.7.0_71" Java(TM) SE Runtime Environment (build 1.7.0_71-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)   What do I need to do to get Firefox to see my Java installation and recognize it as a plugin so that I can enable it and view applets inside the browser? Read Post Data submitted to ASP.Net Form I have a working login form in an asp.net application.  Standard stuff with a username and password text box and a button to process the login.  Works fine.  I have a new requirement to allow the user to input the username and password from a separate plain html page that is not a part of my asp.net application.  I plan on achieving this using standard html - form, input, submit button etc.  The form action will be the URL of my asp.net login page and its method will be POST.    What I want to do in the C# code behind page of the asp.net login form, presumably in the Page_Load event, is to check if the request for the page contains a username and password value being passed in.  If it does then I need to read those values and process the login as if someone had clicked the login button on the asp.net page.  If not then I will display the login form as usual.    How do I check for the existence of, and read, the username and password values in the request for my page. Dimensions of Scale (Gamma) and Offset (Beta) in Batch Norm While implementing Batch Normalization for a particular layer 'L' with 'n' hidden neurons/units in a Neural Network, we first normalize the Activation values of that layer using their respective Mean and Standard Deviation, and then apply the Scaling and Offset factor as shown:     X-norm = (X - mu)/sd X' = (Y * X-norm) + B       where    mu = mean of X and it is a (n,1) vector          sd = standard deviation of X and it is also a (n,1) vector         X = Activation values of layer 'L' with dimension (n,m) if mini-batch    size = m   X-norm = normalized X with dimension (n,m)   Y = Gamma / Scaling factor   B = Beta / Offset factor   Now my question is, what are the dimensions of Gamma and Beta ? Are they (n,1) vectors or are they (n,m) matrices ? My intuition says that since they somewhat are analogous to the Mean and Standard Deviation, they should be (n,1) vectors. Split string on spaces in Java, except if between quotes (i.e. treat \"hello world\" as one token) Normal subgroups of $S_4$ Can anyone tell me how to find all normal subgroups of the symmetric group $S_4$?  In particular are $H=\{e,(1 2)(3 4)\}$ and $K=\{e,(1 2)(3 4), (1 3)(2 4),(1 4)(2 3)\}$ normal subgroups?