Win8 animation shows a window opening offscreen. How do I find it?

I have one program that seems to remember when my HDMI external was set up to be on the opposite side as it is now.    So when I click on the task bar icon I can see the animation of it flying off in the wrong direction and out of view.  I remember the "Move" function exists but can't figure out how to do it when the whole thing is invisible.  Seems to me all I should have to do is hold the Windows button and use arrows until it shows.  But I can't make that work even though the animation shows which direction it went.  So my question is, (without going into display properties and switching things all around), how can I move that program so it is visible?


Terminal on Mac won't launch a shell - stuck on login: incorrect

I've been having this issue for a while where I come to open the Terminal and I'm met with this:  Login incorrect login: _   I've already deleted the com.apple.terminal.plist to no avail. The really interesting thing is that sometimes it works, maybe 1 in 50 times. I literally have no idea what might be causing it and after searching the web for the better part of half a day it seems everyone else's issues are fixed when they delete the plist file.  How do I sort this out? I've tried running different shells (bash and zsh), but I still get this log in screen.  Also when I use Activity Monitor, I can see there is no shell running just the login.


Is it possible to downgrade the default version of Python from my Ubuntu installation?

I have installed Ubuntu 14.04 which comes with Python 3.4 installed by default. But I wish to downgrade it to Python 3.3 for my needs. However, when I try to remove it, it also wants to remove other packages along with it which seem to be using Python.  Is it possible to safely downgrade the default version of Python? What other options do I have in this regard?


Mac OSX microphone input volume level auto-adjusts - can it be disabled?

I've found this issue and various discussions online about this, but no obvious "just do this", so I'm wandering over here from ServerFault to ask this.  Is there a way to disable or hard-set the input level on a mic?  In the Sound preferences on the Input tab if I click on the device and set a level and then start talking it picks up the sound and then start to auto-adjust the mic input level.  This causes issues when talking with someone on Lync/Skype/etc because one minute the sound is fine and then if you raise your voice for a second and then lower it back down (or shift around in your chair) the auto-adjust causes the other party to think your whispering or yelling.  I'd like to be able to disable the auto-adjust if possible.  Yes/No?   NOTE: The issue is similar this one:  but rather on the input side and not the output side for me.


Python frameworks always provide ways to handle URLs that convey the data of the request in an elegant way, like for example   I want you to notice the ending path /userid/123424/  How do you do this in ASP.NET?


Adding actors/musicians/famous people in a videogame

Let's say I want to make a videogame with several famous characters in it, you can't copyright a name and a face, right (I'm talking about names and surnames, not branded ones)? How does it work? Are there any royalties to pay? To whom? If there are royalties, can I get away by making my names similar to original ones?


How to write a virtual host config in apache for, a particular domains is not present in the list we mentioned in the vhost configuration, automatically apache need to redirect to our mentioned website in the config..... For eg:(listed domains) xxx.com yyy.com zzz.com  Suppose someone have to register subdomain or domain with our server ip like aaa.com, after they trying to access the aaa.com, apache automatically redirects to our mentioned site in apache vhost config....


Django Static Files Won't Reload On Firefox

For some reason the CSS files for my Django webpages won't load in. It originally was loading fine, and changes to the CSS would update accordingly, however often it stops updating the CSS as it is changed, and instead continues loading the previous version of the CSS file. Quitting and reopening the server does not work. The CSS loads in fine on Chrome and Safari, so it can't be a problem with the static path I don't think. Does anyone have any clue as to why this occurs and any way to fix it? Thank you :)


How to install qt 4.8 and QtCreator from repository ?


lambda expressions with filter function; issues with var type

(scroll down to the last two paragraphs for the tl;dr version)  I'm having an issue with the filter command and lambda functions:  sample_list = ["Fri", 4, "Sat", 6, "Sun", 4, 8.50] for item in sample_list:     day = filter(lambda item: item is str and sample_list.index(x) >= sample_list.index(item), sample_list)     print item     print type(item)     hours = filter(lambda x: x is int and sample_list.index(x) >= sample_list.index(item) + 1, sample_list)     print day, hours   (sorry if it's a little long)  the output reads that the item type is str, for example, even though the "item is str" condition in the lambda expression evaluates to false, making the return []. Here is the sample output:   Fri (type 'str') [] [] 4 (type 'int') [] [] Sat (type 'str') [] [] 6 (type 'int')   while I want the output to read something like      Fri 4 Sat 6   I'm just confused as to why the lambda expression seems to evaluate to False for "item is str" or "item is int."  For the record, I know that the print statements ought to have parentheses, I'm just using a web browser learning tool for Python that I assume runs an older version. When I was using 3.4.3 version, The output would return something like  (I don't have the actual output, it was something like that). I already looked up a solution to that specific issue, but I couldn't make heads or tails of it.   What it boils down to is I think there's an issue with the lambda expression confusing variable types. If you could offer advice, I'd really appreciate it. Also, I'm somewhat new to Python, so if you could use layman's terms that would help me understand better.


How to change the definite name of figures? I tried     \documentclass[12pt,a4paper]{report} \usepackage[czech]{babel} \usepackage{amsmath, graphicx} \renewcommand{\figurename}{\textbf{Obr.}} \begin{document} \begin{figure}[h]\centering \includegraphics[width=\textwidth]{../img/struktura} \caption{Struktura} \label{s} \end{figure} \end{document}   and it doesn't work. Thank you


In pic below I have drawn a full adder and mentioned their delays, please help me to verify my answer.


What could be the reason for the following Nullpointer Exception

I am getting the following stacktrace:   java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference --------- Stack trace --------- mypackage.Inbox$9.onclick(Inbox.java:1538) android.view.View.performClick(View.java:5204) android.view.View$PerformClick.run(View.java:21153) android.os.Handler.handleCallback(Handler.java:739) android.os.Handler.dispatchMessage(Handler.java:95) android.os.Looper.loop(Looper.java:148) android.app.ActivityThread.main(ActivityThread.java:5444) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)  double taxvalue = 0.0; double acttotal=Global.getDouble(((EditText)container.findViewById(R.id.textView9)).getText().toString()); taxvalue = Global.getDouble(((EditText) container.findViewById(R.id.textView8)).getText().toString());  ((EditText) (table.getChildAt(1).findViewById(R.id.amount))).setText(Global.formatDouble(acttotal - taxvalue));   Here table - LinearLayout, Last line is Line no 1538.  I tried table=null; But cannot be reproduced. what is the chance to get this issue.


Legacy Debian versions and Bash Shellshock

We are running Debian Etch, Lenny and Squeeze because upgrades have never been done in this shop; we have over 150 systems running various Debian versions.   In light of the "shell shock" of this week, I assume I need to upgrade bash.  I do not know Debian so I am concerned.   Can I merely execute apt-get install bash on all of my Debian systems and get the correct Bash package while my repository is pointed at a Squeeze entry. If not, what other course of action do I have?


ana is not in the sudoers file.  This incident will be reported.   So, what can I do?  To change the password I need to edit the sudoers file, and to edit the file I need the password!


I got  ERROR in LATEX like this  Error ! Undefined control sequence. \documentclass  anyone is there give me response quickly ... I hope give the answer in detail because i already read more answer about this error


Pluralizing an acronym where the last letter represents a word that ends in s

Having a little debate here at work... What is the correct way to pluralize an acronym where the last initial represents a word that itself is a plural / ends with a "s" ? Our specific example, for context: COW (Cellular On Wheels). If it makes a difference, we are saying this acronym as the word "cow", not C.O.W. Is it COWs? or just COW? My thought is it should be COWs. The counter point is that this would then make it Cellular On Wheelss (double s)


After network restart, device not ready Xubuntu 16.04, Intel 3945ABG Wireless card

When my WiFi drops, I disable and re-enable WiFi. Sometimes, this doesn't fix the problem. It will show no networks. I reset the network by sudo service network-manager restart and then I get device not ready   I end up having to reboot and it fixes things temporarily, until the next time. How do I fix this so that I don't have to restart the computer every now and again?  As suggested by @VBF below, I ran these commands and got these results when things stopped working.  Here is the output of ifconfig:  enp9s0    Link encap:Ethernet  HWaddr 00:18:8b:dd:24:32             UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)           Interrupt:18   lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:10682 errors:0 dropped:0 overruns:0 frame:0           TX packets:10682 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1            RX bytes:724653 (724.6 KB)  TX bytes:724653 (724.6 KB)   The output of nmcli co:  NAME                       UUID                                  TYPE             DEVICE  NETGEAR63                  7796f00a-6ffa-4154-aff1-62af90c3d8e8  802-11-wireless  --      NETGEAR63 1                979c058f-cb41-4910-bbab-37b86d76bb5e  802-11-wireless  --      Samsung Galaxy Avant 4539  b8601380-8e76-4c9c-be74-cfa7f33865be  802-11-wireless  --      Wired connection 1         93b93cbb-b063-30aa-8ea4-7cc61db203f6  802-3-ethernet   --        The output of the command nmcli networking connectivity check was  none   And and lastly I tried both nmcli con up id "NETGEAR63 1" and nmcli con up id "NETGEAR63" and got this output:  Error: Connection activation failed: No suitable device found for this connection.   Update: My laptop uses an Intel 3945ABG wireless card.


My upgrade from 14.04 to 16.04 LTS gets stuck and hangs on one task way too long.  The job it seems to get stuck on is  [OK] Starting : start Samba LSB SMB/CIFS daemon (smdb).  The background IS black, but I have access to the terminal. and now through using nmcli I have my Wi-Fi connection back, but no apt.   The question that's supposed to be this duplicate is NOT the same case here. I provided much more detail, the install version and distro as well as my attempted fixes. In my comments I added updates as I tried something a bit different daily. Today I'll work w/ systemd and try that.


What will be the summation of this Series  $$\binom{10}{1} + \binom{11}{2} + \binom{12}{3} +\cdots+\binom{10+n}{n+1}$$


Setting a value in java classes. Null Pointer Exception

I am currently trying to make a java card game but am having trouble setting the card. I am taking in values such as 2H 3D 4S 5C 6H in the main function. I am trying to put these values into my Card class but when I try to set my rank I get a nullpointerexception error.   I am new to java programing and can not figure out why this is happening. Any suggestions? Am I not allowed to make an array of Cards?  public class Game {  public static void main(String[] args) {     Scanner sc = new Scanner(System.in);     int T = sc.nextInt();      String[] player1arr = new String[5];     String[] player2arr = new String[5];      Card[] player1 = new Card[5];     Card[] player2 = new Card[5];      for(int i = 0; i < 5; i++){         player1arr[i] = sc.next();         char first = player1arr[i].charAt(0);         int rank = Character.getNumericValue(first); //error         player1[i].setRank(rank);        }      for(int i = 0; i < 5; i++){         player2arr[i] = sc.next();         System.out.println(player2arr[i]);     }     } }  class Card{     private int rank;     private char suit;      public int getRank(){         return rank;     }      public void setRank(int r){         rank = r;     } }


Select columns from result set of stored procedure

I have a stored procedure that returns 80 columns, and 300 rows.  I want to write a select that gets 2 of those columns.  Something like   SELECT col1, col2 FROM EXEC MyStoredProc 'param1', 'param2'   When I used the above syntax I get the error:      "Invalid Column Name".   I know the easiest solution would be to change the stored procedure, but I didn't write it, and I can't change it.    Is there any way to do what I want?   I could make a temp table to put the results in, but because there are 80 columns so I would need to make an 80 column temp table just to get 2 columns.  I wanted to avoid tracking down all the columns that are returned. I tried using WITH SprocResults AS .... as suggested by Mark, but I got 2 errors      Incorrect syntax near the keyword 'EXEC'.Incorrect syntax near ')'.  I tried declaring a table variable and I got the following error      Insert Error: Column name or number of supplied values does not match table definition  If I try  SELECT * FROM EXEC MyStoredProc 'param1', 'param2' I get the error :     Incorrect syntax near the keyword 'exec'.


Tax for sold mutual funds and stocks in non-retirement accounts for resident aliens on OPT

Tax-residency --> Resident Alien Immigration status --> F1 - OPT There is a similar question  but not the same. My question is: Assume that I sold some mutual funds and stocks, however never withdrew money out of the brokerage account. Do I still need to pay taxes on the gain? I re-invested the money sold and earned more on them. Also, my broker has not sent me any 1099 form for these transactions. Please advise.


I am harvesting energy from an NFC device using a tuned antenna on my PCB. Though this method I am able to generate about 3.05V. I would like to charge a super capacitor using the power harvested from the NFC device. To do this I have  used the simple diode circuit provided  (and shown in Figure 1 below).  The problem I am facing is my circuit requires a minimum of 3V to operate within operating conditions, however with the added drop by typical diodes I believe there with be various situations where the generated voltage will drop below the required 3V. Are there any Diodes available which have ultra low voltage drops of less then 0.01V? and is that even possible?  Please note:   my system load will be < 5mA  The 3.05V generated was without a diode in the circuit


How does one disassemble Pro*C/C++ programs?

Is there a way to disassemble Pro*C/C++ executable files?


How do I prove that $n^n > (n+1)^{n-1}$?

It seems simple enough, and by using brute force it's easy to see that $n^n$ will always be slightly larger for any $n \ge 3$. I tried comparing ratios and also using induction, but nothing is conclusive. I would imagine that the epsilon proof would be the correct way to do this but I'm not very familiar with it and I would rather avoid such arduous proofs when I have to solve similar problems in a limited time frame.


The sup norm on $C[0,1]$ is not equivalent to another one, induced by some inner product

Let $\mathrm{C}[0,1]$ be the space of continuous functions $[0,1]\rightarrow \mathbb{R}$ endowed with the norm $||x||_{\infty}=\mathrm{max}_{t\in [0,1]}|x(t)|$. It is easy to verify that this norm is not induced by any inner product (really the parallelogram law fails for $x(t)=t$ and $y(t)=1$). Well, how to understand that this norm is not equivalent to anyone induced by an inner product? So, the norms induced by inner products should have some special properties...


Using If...Else Statements, arrays, and indexOf() in Javascript

I need help breaking this down.  Here is the original code:    function hasTreat(treat) {   const treatsArr = ['cookie', 'cake', 'muffin', 'pie', 'ice cream'];   if (treatsArr.indexOf(treat) === true) {     return true;   }   return false; } if (hasTreat("cookie")) { // You should have a cookie.    console.log("You have a cookie!"); } else {   console.log("You have no cookie."); // This is wrong. You should have a cookie.  }     I've modified it to this:    function hasTreat(treat) {   const treatsArr = ['cookie', 'cake', 'muffin', 'pie', 'ice cream'];   if (treatsArr.indexOf('cookie') === true) {     return true;   } else {     return false;   } } if (hasTreat('cookie')) { // You should have a cookie.    console.log("You have a cookie!"); } else {   console.log("You have no cookie."); // This is wrong. You should have a cookie.  }     What in the world am I not understanding here?  It bugs me so much to think that something makes sense and to find out it doesn't "work".  Help, please.  Thanks, guys.


The converse: If $G$ is abelian and if $N\le G$, prove that $G/N$ is abelian

Here is a problem from Herstein's "Topics in Algebra":  If $G$ is abelian and if $N$ is any subgroup of $G$, prove that $G/N$ is abelian  I have already proved this; it's quite simple. There's a very natural question that arises: is the converse true? I say it's not. The reason is because the quotient group $G/N$ always require $N$ to be normal in $G$, and although every subgroup of an abelian group is normal the converse is not true. So $G$ is not abelian. Is my intuition faulty?


How do I 'break' a film camera in order to get double exposures?

Film cameras typically refuse to double expose on the same frame of film. Let's take the Olympus trip 35 as the example. They're cheap as chips and don't expose unless you wind on the film. What part of the camera mechanism do I need to "modify" (destroy!) to allow it to expose as many times as I want without winding on the camera.  P.S. I know there are cameras like the  that take double exposures without modifications, and that you can re-roll the film and shoot over it again. This question is more about how to modify a camera to get a double exposure, not how to achieve a double exposure.


moving minecart once hopper has items, and then becomes empty

Here's a rough outline of what I want   Empty cart stays still under an empty hopper  Hopper gets x items in it, the cart stays still  Once the hopper has emptied all its items into the cart, the cart runs backwards and forwards along the track, putting its items into hoppers below it, once the hopper is empty, it stops again underneath the empty hopper  Is something like this currently possible? I have it at the moment that the cart always moves, except when the hopper has items, which works, but when the cart is empty the noise annoys me and the other people in the area.  I tried putting a detector rail underneath the hopper so I could tell when the cart is there, but that then powers the hopper so its items don't drop into the cart.


Prevent Multiple Form Submissions (Server side)

I'm running into a problem where a user can submit any form built by the Form API multiple times (fast clicking resulting in multiple requests).  I've put in the basic client side (javascript) solution of disabling the button, but I'm curious what the best approach to preventing this situation is on the server side.  Is there a recommended way to use Drupal's form token system to handle this?  Especially a global form solution (ie, adding a custom validator to every form using hook_form_alter()).  My approach so far has been something like this:  function mymodule_form_alter(&$form, &$form_state, $form_id) {   $form['#validate'][] = 'mymodule_form_validate'; }  function mymodule_form_validate(&$form, &$form_state){   //initialize form array   if (!isset($_SESSION['submitted_forms'])){     $_SESSION['submitted_forms'] = array();   }    $form_token = $form_state['values']['form_token'];   if ( isset($_SESSION['submitted_forms'][$form_token]) && $_SESSION['submitted_forms'][$form_token] = TRUE ){     form_set_error('name]', 'This form has already been submitted');   }   else{     $_SESSION['submitted_forms'][$form_token] = TRUE;   } }   I'm running into trouble where the form_token isn't unique to the form - it seems to stay the same no matter what happens.  I'm probably misunderstanding what the token is in the grand scheme of the form api.  Any insight is appreciated!


How to run an encrypted virtual machine?

I wonder what is the best practice for storing the virtual machine encrypted. I tried putting the image it a TrueCrypt volume, but it doesn't work nicely:   With the volume unmounted the VirtualBox complaints about missing VM disk, which is a bit annoying after a while. There's no way to quickly unmount the volume without shutting down the VM first (except for a dirty unmount, which is no good idea).   Maybe there's a better way or maybe a VM integrating encryption?


I find it hard to believe that even though most, if not all, Star Wars ship battles take place out of the orbit of planets in space, why do capital ships fall if they take enough damage? In ROTJ, a courageous pilot flies his craft into the Imperial Super Star Destroyer and destroys the bridge but then it somehow falls into the Death Star. In Clone Wars, there are several instances of Venator Jedi Cruisers and Banking Clan Frigates "falling". Why do ships fall in space if there is no gravity?


I don't fully understand two-handed weapons and using potions (or other items)

I don't understand exactly what the procedure is if a character wielding a two-handed weapon decides to use a potion or similar item that requires a free hand. The fact you need an action to drink the potion is fine, but I don't fully comprehend the part about withdrawing the potion from your backpack while you don't have any free hands, per    Can the character temporarily hold the weapon with one hand, grab the potion, use the action to consume it, then return to holding the weapon with two hands? The two-handed property only states you need two hands to use the weapon, not to hold it. And freeing one hand and grabbing the potion seems to be part of the "object interaction" aspect of movement. If the character cannot, what is the proper procedure? Does the character drop the weapon as a free action, grabs the potion as "object interaction", uses it as an action, then later has to spend an action to grab the weapon from the ground?


What to do when reviewing the post without radio option?

I recently reviewed the  for low quality, but when reviewing it have no radio option to select, see the below screenshot. Note I think I already flagged that post, but I'm not sure about the reason(probably "unclear what you are asking"). Like this situation what should I do ? or Is this bug?        Later: (Since it have no option I clicked the Looks good button)


How to insert an image inside a paragraph?

I'd like to insert a small image inside a paragraph, aligning it with the text. The following snapshot depicts what I have in mind. Notice the image at the end of the last line.


Execute bash commands over SSH while staying in interactive mode afterwards

Probably it is a weird thing I would like to achieve but: I would like to SSH to a remote host and then execute some bash commands like "alias" automatically to use them afterwards in an interactive mode. The remote host does not allow the personal environment.    Is this possible? Would "expect" do it? Or is there any other way to achieve this? Basically I would like to have my bashrc without modifying any files on the remote host.


Let $A$ be a nonempty and bounded below, and define $B= \{b\in \mathbb{R}: b$ is a lower bound for $A\}$. Show sup$B$ = inf$A$.   So far I have: Let $A$ be nonempty and bounded below. This implies $\exists l \in A, \forall a \in A, l\leq a$ and $l =$ inf$A$. Let $B = \{b\in \mathbb{R}: b$ is a lower bound for $A\}$ and let $M=$ sup$B$. This implies $\exists b\in B, \forall b \in B, b\leq M$. By definition of $B$, we know inf$A \in B$. Since $b\leq$ sup$B$, with sup$B$ the largest element in $B$, we have inf$A \leq M =$ sup$B$, so inf$A \leq$ sup$B$.  I realize I have to prove that sup$B \leq$ inf$A$ to get that sup$B$=inf$A$. I am having trouble doing so.   Part B: Use (a) to explain why there is no need to assert that greatest lower bounds exist as part of the Axiom of Completeness.


Singular or plural verb with "class of proteins"

Consider the following sentence:     This table outlines a class of proteins that primarily attack the   brain.   I am not sure whether to use attack or attacks. If attack refers to class then I should use attacks, but if it refers to proteins then I should use attack.  In this case, both versions might work. However, I am not sure about this.


I have an downloadable app that I promote via various traffic sources.  I’m trying to build an “overall quality score” of users I’m getting for each of the traffic sources – this will help me decide which traffic sources I should keep, get rid of, and allocate my spend appropriately.  I have provided some sample metrics in the attached 'metrics.png' screenshot.  PartnerID - j-5662  Installs - 6360  Attrition -     65%  IA Clicks -     39159  CTR -   51%  SF Clicks -     4264  PartnerQS - *calculated based on above    Some are percentages, some are integers – in some cases, higher numbers are better, while in other cases lower are better – the end goal is to have some sort of formula that can create a standardized indication of quality.  Eventually I’d add some weightings wherein I could rank these metrics – maybe attrition is more important to me than CTR, etc.  I have all my data pulled and now it’s time to start building the formulas.  Since these metrics are all different, unrelated values, I’d thought about building another table that would be the quality threshold of each metric Then I could compare the value of the actual metric to the quality threshold – though even as I type this I see the limitations of doing it this way, which is why I’m posting here – just want to get a bit of insight on this.  Thanks in advance


Hope Summers is the supposed Mutant Messiah. She has the surname Summers but I can't figure out why. Is she directly related to Scott Summers (Cyclops) or is it due to her tutelage by Scott/Cable (Scott's son) that she has assumed the surname, or been given it?  Who are her parents, and what relation if any does she have with the Summers?   Bonus Q: Is she related to Jean Grey at all?


Clarification about the Schengen 90/180 rule: non-consecutive 90 days

I would like to have further clarification on this topic. I am a US citizen who goes in and out of the Schengen area regularly. For instance, 10 days each month, but every once in a while 30 consecutive days in Schengen. I have not stayed more than 90 total days during a 180 day period. Given that I do not reach 90, I understand there would be no need to have a waiting period to re-enter. I can continue to regularly come and go, as long as I watch out for the 90 days within a revolving 180. Is this correct?  Thanks for your help.


Defining binary operations of isomorphisms

The question given is:  The map $f : \Bbb Z \rightarrow \Bbb Z$ defined by $f(n) = n + 1$ for $n \in \Bbb Z$ is one to one and onto Z. Give the definition of a binary operation $*$ on $\Bbb Z$ such that $f$ is an isomorphism mapping $(\Bbb Z, +)$ onto $(\Bbb Z, * )$.  So I know this means I need to equate $f(a + b) = f(a) * f(b)$ with a defined $*$ of my choosing.  If I define $f(a) * f(b)$ as $f(a) + f(b) - 1$ is this an acceptable definition?  Because then $f(a+b) = (a+b) + 1$ and $f(a) * f(b) = (a+1) + (b + 1) - 1 = (a + b) + 1$, and the identity element would be $1$ since $f(0) = 1$?


Shares not working on Server 2016 domain controller

I dealing with a domain controller which was recently compromised.  There is no valid backup to recover from.  I'm trying to join a new machine to the domain so that I can promote it and take over the FSMO roles So i can decom the compromised machine, however I cannot get the new machine to join the domain. The error its giving is 'The network path could not be found'.   I noticed that the shares on the DC cannot be accessed when using its local IP (192.168.3.251), either on the DC itself or some other machines on the network.   I can see the shares, however, if i browse to 127.0.0.1.   I have tried resetting the NIC with...     nbtstat -R  nbtstat -RR  netsh int reset all  netsh int ipv4 reset  netsh int ipv6 reset  netsh winsock reset   But that hasnt made any difference.   Any suggestions on what I can do to get the shares working again? Thanks in advance :)


How to get rid off - sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins

I am trying to configure apache2 with cgi (python).   For that, I have to change permissions of some folders and files but I am getting sudo fatal errors every time I try to change the permission of a file or a Folder.  For Example:  1     j@ubuntu:/etc/apache2$ ls      apache2.conf  envvars     magic           mods-enabled  sites-available      conf.d        httpd.conf  mods-available  ports.conf    sites-enabled      j@ubuntu:/etc/apache2$ sudo chmod 777 httpd.conf      sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner      sudo: fatal error, unable to load plugins   ...................................................................................  2      j@ubuntu:/usr/lib/cgi-bin$ sudo /etc/init.d/apache2 restart       sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner      sudo: fatal error, unable to load plugins   ...................................................................................  3      j@ubuntu:/usr/lib$ sudo chmod -R 777 /usr/lib/cgi-bin      sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner      sudo: fatal error, unable to load plugins   ...................................................................................  Note:   j@ubuntu:/etc/apache2$ ls -l /usr/lib/sudo/sudoers.so      -rwxrwxrwx 1 root root 177452 Jan 31  2012 /usr/lib/sudo/sudoers.so


bluetooth headset not discovered by ubuntu 16.04. discovered easily by windows 10 on the same machine

I am posting this as my last step before giving up completely on making my Ubuntu 16.04 on my laptop recognize my bluetooth headset.   I have followed all the other questions and answers regarding this with no luck, the Bluetooth adapter in my laptop is obviously capable of finding this headset as it works perfectly from windows.  both blueman and the regular bluetooth manager show a lot of unnamed devices (only by address) all of them are of type "all types" and they are all unpairable (pairing fails after a few seconds, doesn't look like anything is really happening there).   On my Android device, the address of the bluetooth headset is listed as "00:11:67:B4:A4:DF". none of the recognized devices have this address.  Output from sudo service bluetooth status :  bluetoothd[1274]: Not enough free handles to register service bluetoothd[1274]: Sap driver initialization failed. bluetoothd[1274]: sap-server: Operation not permitted (1) bluetoothd[1274]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource bluetoothd[1274]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSink bluetoothd[1274]: Endpoint registered: sender=:1.84 path=/MediaEndpoint/A2DPSource bluetoothd[1274]: Endpoint registered: sender=:1.84 path=/MediaEndpoint/A2DPSink bluetoothd[1274]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98) bluetoothd[1274]: Endpoint unregistered: sender=:1.48 path=/MediaEndpoint/A2DPSource bluetoothd[1274]: Endpoint unregistered: sender=:1.48 path=/MediaEndpoint/A2DPSink   Output from bluetoothctl :  [NEW] Controller 48:E2:44:F5:E9:6E yaniv-XPS [default] [bluetooth]# scan on Discovery started [CHG] Controller 48:E2:44:F5:E9:6E Discovering: yes [NEW] Device 54:79:7A:A9:F1:58 54-79-7A-A9-F1-58 [NEW] Device 62:D2:69:E6:51:4C 62-D2-69-E6-51-4C [NEW] Device 76:53:BC:C4:D9:9E 76-53-BC-C4-D9-9E [NEW] Device 5E:8D:79:7D:91:28 5E-8D-79-7D-91-28 [NEW] Device 79:E3:D4:8C:18:E1 79-E3-D4-8C-18-E1 [NEW] Device 98:01:A7:9B:19:5A 98-01-A7-9B-19-5A [CHG] Device 79:E3:D4:8C:18:E1 RSSI: -97 [CHG] Device 76:53:BC:C4:D9:9E RSSI: -97 [CHG] Device 79:E3:D4:8C:18:E1 RSSI: -82 [CHG] Device 62:D2:69:E6:51:4C RSSI: -69 [NEW] Device F8:77:B8:1D:16:74 F8-77-B8-1D-16-74 [CHG] Device 98:01:A7:9B:19:5A RSSI: -80 [CHG] Device 62:D2:69:E6:51:4C RSSI: -93 [CHG] Device 79:E3:D4:8C:18:E1 RSSI: -93 [CHG] Device 98:01:A7:9B:19:5A RSSI: -92   Output from dmesg | grep -i blue  Bluetooth: Core ver 2.21 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized Bluetooth: L2CAP socket layer initialized Bluetooth: SCO socket layer initialized Bluetooth: HCI UART driver ver 2.3 Bluetooth: HCI UART protocol H4 registered Bluetooth: HCI UART protocol BCSP registered Bluetooth: HCI UART protocol LL registered Bluetooth: HCI UART protocol ATH3K registered Bluetooth: HCI UART protocol Three-wire (H5) registered Bluetooth: HCI UART protocol Intel registered Bluetooth: HCI UART protocol BCM registered Bluetooth: HCI UART protocol QCA registered Bluetooth: hci0: BCM: chip id 102 Bluetooth: hci0: BCM20703A1 Bluetooth: hci0: BCM (001.001.005) build 0000 bluetooth hci0: Direct firmware load for brcm/BCM-0a5c-6410.hcd failed with error -2 Bluetooth: hci0: BCM: Patch brcm/BCM-0a5c-6410.hcd not found Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Bluetooth: BNEP filters: protocol multicast Bluetooth: BNEP socket layer initialized Bluetooth: RFCOMM TTY layer initialized Bluetooth: RFCOMM socket layer initialized Bluetooth: RFCOMM ver 1.11   Any help on this matter would be highly appreciated! Thanks ahead.


What is the terminal command to take a screenshot?

What command(s) can I use in the terminal that's equivalent to the PrtSc (Print Screen) button?  I am running Ubuntu GNOME.


I have installed Ubuntu 16.04.1 LTS and then upgraded to Ubuntu 16.10. But it's now bloated with remains of 5 DE and manually installed languages. Also, Pantheon has messed up Unity's GTK files and it's now looking broken. So I want to reset Ubuntu 16.04.1. Can it be done with the ISO??


How to get instance variables in Python?

Is there a built-in method in Python to get an array of all a class' instance variables? For example, if I have this code:  class hi:   def __init__(self):     self.ii = "foo"     self.kk = "bar"   Is there a way for me to do this:  >>> mystery_method(hi) ["ii", "kk"]   Edit: I originally had asked for class variables erroneously.


Proof for divisions that in include prime number.

How do I prove, that if $m^2$ can be divided $p$ (where $m$ is a whole number and $p$ is a prime number) then also m can be divided by $p$?


E: Package 'libpng12-0' has no installation candidate (Ubuntu 17.04)

When I run: sudo apt-get install libpng12-0, I get this error message:  Reading package lists... Done Building dependency tree        Reading state information... Done Package libpng12-0 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'libpng12-0' has no installation candidate    How to fix this? Is having libpng16-16 installed enough to do what libpng12-0 does?   I have:  Distributor ID: Ubuntu Description:    Ubuntu 17.04 Release:    17.04 Codename:   zesty


Where do UK border checks currently take place for Eurostar trains from Marne-la-Vallée Chessy to London?

I know that when going from Paris, Brussels or Bourg-St Maurice, UK border checks are done at these stations, and when going from Marseille, you get off the train at Lille for the checks.  But what about the trains from Marne-la-Vallée Chessy? Some people say it takes place at Marne-la-Vallée Chessy, some people that you get off at Lille, and some that the checks are done in London.  Which is correct? Does anyone have recent experience?


Array light set to 100k strength isn't bright enough

I have an array lamp set facing up a, moved down a bit so it will give a glow on the top edges. But no matter how big I make the number it won't make it brighter. I can't move it any higher up or else the camera will see a dark spot under the light. How can I fix this, and is there a better way to light it? Im using cycles.


Calculating RSA private exponent when given public exponent and the modulus factors using extended euclid

When given $p = 5, q = 11, N = 55$ and $e = 17$, I'm trying to compute the RSA private key $d$.  I can calculate $\varphi(N) = 40$, but my lecturer then says to use the extended Euclidean algorithm to compute $d$. That's where I get stuck.    Here's my work so far:  First I use the Euclid algorithm to calculate:  40 = 2(17) + 6  17 = 2(6) + 5 6 = 1(5) + 1 = gcd   So I know the GCD is 1. Applying the 'extended' section of the algorithm:  6 = 40-2(17) 5 = 17-2(6) 1 = 6-1(5) 1 = 6-1(17-2(6)) 3(6) = 1 (17) 3(40 - 2(17)) - 1(17) 3(40) - 3(17)   I know the answer is $33$, but I have no idea how to get there using the extended Euclidean algorithm. I can't figure out why I'm getting $3(40) - 3(17)$ when I know the answer should contain $33$.


Is the migration statistics page currently broken?

I had some idle thoughts about question migration statistics, but the  is currently ... impoverished.    I recall a breakdown by source and destination site: "10 questions migrated to Math (3 rejected); 3 questions migrated to Engineering (1 rejected)" and so on. Is this something peculiar about my setup, or has the page changed intentionally, or is it just temporarily missing the information I remember, or have I dreamed the whole thing?  Another user in Teacher's Lounge confirms similar behavior on a larger SE site:


What do I need in order to fix the sloppy work done by cable providers?

As some of you have surely experienced, residential telecom installers can leave a thing or two to be desired when it comes to how they get the service into our homes.  A small project I've had in mind is to repair the extra holes in my home, and to do a better cable management job with all this coax. What do I need to repair the walls and organize this mess?  Note: I use separate providers for internet and TV   Incoming coax   Exterior coax   "Cable management"


Book reading list for Time Series data analysis

I'm looking for book recommendations for Time series Data Analysis. All my time series data is in the engineering domain, pressure, volume, voltage, images etc.  I'm experienced in Matlab and mostly all kinds of smoothing, curve fitting, Kalman, fft type workflows but am looking for more skills specifically for feature extraction (i.e. ECG). Perhaps Wavelet, Stats?  I'm interested in learning tools but most useful would be guidance to what methods/tools to apply for a given problem. i.e. remove means, fft, band filter freq of interest, ifft, correlate and so on.


The left-nav is great - I like it, users who don't can disable it. Perfect world. Now it's stickied it's always there too, which is really useful.  When I'm navigating in areas not directly linked to in the left nav and have scrolled down, I often want to re-use the other navigation. This means scrolling up. Which is fine, of course it's how websites work.  However, if the left-nav had a "Top" link which took the user to the very top of the page it would be great for getting back to specific contextual menus and things that are not linked to in the left-nav.  For example, if I'm viewing questions on a specific tag and I've scrolled down, I sometimes want to get back up to the top to remove a tag, or change from "Latest" to "Featured" etc. Although clicking the "Questions" link in the left-nav takes me back to the top, it removes the tag(s) I was searching with.  There are other use cases where this would be useful, like long questions and answers (Etc). So I think a "Top" link in the left nav would be very useful.    I think this is different to the  as it doesn't mention the left-nav, and my question is suggesting this idea because we have a good place to put it and it'll be a useful addition to the left-nav.


If I create a table with an identity column as primary key, and all the other columns have default values, for example  create table rr (id int identity(1,1) primary key, dt datetime default getdate())


I don't seem to find any information where to report issues with snaps, i.e. applications which are installed through snap install instead of the system package manager apt-get.  Since most bug reports on launchpad.net are simply ignored, but still make sense to be filed, I'd like to make sure that I'm not doing something even more hopeless when filing bugs with ubuntu-bug or manually on launchpad.net.  The fact that apport says that a package isn't installed shouldn't say too much because it usually takes years until this tool is upgraded to reflect changes in the requirements.


I have a file upload button which i need to file. I currently defaults to some pre-set styles.    <form class="uploadButton" method="POST" action="upload.php" enctype="multipart/form-data">   <input type="file" name="file[]" multiple> </form>


Let $A$ and $B$ be sets with cardinalities m and n respectively where $m \ge n$ how many surjective functions are there from $A$ to $B$? Support your answer  I have no idea how to go about this one. Any help would be appreciated.  Thanks in advance!


I am trying to use ifdown command on my network interface (enp0s3), but it claims, that this interface is not known. When I try the same command with my loopback lo it works fine. What could be the problem ? My network-manager is sure off, only networking daemon is running.  lsb_release -d    Ubuntu 18.04.1 LTS  cat /etc/netplan/50-cloud.init.yami     You should probably know, it is on VM.


given the function $       f:\mathbb{R}\to\mathbb{R}, f(x)=\left\{\begin{array}{0} 0, & x\leq 0 \\          1, & x>0\end{array}\right. .   $ then $       F:\mathbb{R}\to\mathbb{R}, F(x)=\left\{\begin{array}{0} 0, & x\leq 0 \\          x, & x>0\end{array}\right. .   $ is an antiderivative, since $F'(x) = f$. Some fellow students doubt this result. What do you think: a) is $F$ an antiderivative and b) if not does $f$ has an antiderivative and c) what is $F$? Thanks!!


Where can I find the splash image which is shown while starting QGIS, and how to customise it?  I am developing a GIS software for myself based on QGIS, but I don't want to just start anew with QGIS's include and lib as it cost much time and energy. Instead, with the QGIS interface, I can pay more attention to create my own algorithms and add them to QGIS as plugins like sextante. Yet,I got my favoured bgimage before and still want to use it in this software I am developing.


Is it possible to make PHP callback similar to Javascript one?

Let's say javascript simple callback function could look like that:  function foo(test, clb) {    clb(test); } foo("aaa", function(e) {    console.log(e); });  //Found solution: function processSomething($arr, callable $callback) {    $callback($arr); }  processSomething("xx", function($d) {    echo $d; });


Is it possible to make circuitikz draw battery-symbols like this:


An easy way to solve this limit of a sum?

$$\lim _{n\to\infty}\sum_{k=0}^n\frac{k+1}{10^k}$$ What I've tried is to create a function out of it in order to derivate it, but I am getting nowhere. I would like to know if there is an easier way to it (I would like a high school level method for this, if there is one).


Old usernames stick to Community Wiki posts

On a whim the other day, I changed my meta name from Lord Torgamus to Popular Demand.  I just noticed that the old name has "stuck" to the author tag of ; everywhere else on meta, my new name displays as expected.  Is this a feature?  Is it a bug?  Mostly I'm just curious, as I can't think of a strong reason in favor of keeping this behavior or a strong reason for changing it.  A question somewhat like this has been raised before as , but the previous poster implied that the issue had something to do with migration, which my situation shows is not the case.


I am in need of creating a Windows 8.1 Pro USB bootable. I've tried googling for solutions and all returned Winusb. Upon installing winusb, these errors shows up on the CLI input sudo apt-get update:  W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found   Thus, when I enter this CLI input sudo apt-get install winusb, this message is shown E: Unable to locate package winusb.  I was wondering is there another way to install/create a Windows8.1 USB Bootable using Ubuntu 14.04 LTS with the source of the Windows installer is coming from an .iso file.


I started to learn English recently and I have one misunderstanding about the usage of "all" and "any". In what cases should we use "all" and in what "any"? Why does the following example:     There was something false in all this.   use "all" instead of "any"?


In Englishes which allow the usage of ain't, why do we put "no" afterwards?       I ain't got no money.      Your dad ain't got no nose.   Is it compulsory to use no  in order to make a proper structure with ain't?


Rubbing a balloon on a jumper and it sticks to my hair, eventually hair is uncharged, how do charges leave my hair?

Just as the title asks. Even if I'm standing on carpet, after the charges of the balloon cause my hair to stick up, my hair slowly goes back down as it loses its charge. Are the extra electrons in my hair slowly moving into the air?


What's the rationale behind these warnings about extension cords?

(Disclaimer: I've read the  and I do understand that this is bordering on off-topic since it's about consumer devices. However I hope that I've managed to make enough on-topic by asking about why it is the way it is, and what is the explanation from an electromagnetic point of view - in other words, what laws of electricity and what practical considerations have gone into these decisions).  I recently bought a power tool and in its manual I found a few peculiar safety rules. I cannot see why they would be there, although reading up more it seems that they are commonplace. My understanding of electricity is limited (just about enough to be dangerous), so I'm hoping to expand it. :)  The rules are:   Don't use an extension cord longer than 25m. Considering this is an outdoors tool, this limitation is severely restrictive. The best explanation I've seen is that longer cables would simply have too high of a resistance and the tool wouldn't be able to operate at full power. But this argument doesn't convince me. The tool is rated at 2.4kW, and it's meant to be used with 220V AC power source, which means it uses about 11 amps of current. All the extension cords I've ever come across have at least 16A limitation, so there is quite a reserve still. In addition, the power has to travel much, much further to get to my house, and even after the meter it still takes probably close to those same 25m to get to the power outlet. Why only 25m after the outlet? The resistance of the cables isn't that big, is it? Don't daisy-chain extension cords. I suspect this is a variation of the above - don't exceed 25m; every connection adds additional contact resistance; water in the outdoors connections can be a problem - in general, it just adds risk. However, apart from the water in the contacts, the rest seems to me to be practically negligible. Is there really a significant contact resistance? Assuming that the extension cords are in a good shape. Make sure that the power cord is entirely unrolled. This is another odd one. My suspicion is that it has to do with inductive resistance. But is it really that strong? Wherever I've seen people actually wanting to create an electromagnet, it's pretty much hard work. You need a lot of neat, tightly-wound loops of wire. An extension cord has a lot of insulator around it, spacing the wires pretty far apart, and the loops are very chaotic. In addition, if that was a problem, why do  exist? They're used especially when you need a very long extension cord, and you don't need to unroll them completely every time you want to use them. Solved: OK, I was off the mark. The correct answer (also a ) has to do with the wire heating up from being used close to its limits. When coiled together, the temperature can go pretty high and melt the cables. Not fun.


Please, help! By pressing the button, parameter 0 is always transmitted.  MainActivity.class  this.listResult.setOnItemClickListener(new AdapterView.OnItemClickListener() {         @Override         public void onItemClick(AdapterView<?> parent, View view, int position, long id) {             dbResult.read(RssActivity.this);             RssData rssData = dbResult.select(id);             Toast.makeText(getBaseContext(), valueOf(id), Toast.LENGTH_SHORT).show();   DataBase  public class DBResult { ... SQLiteDatabase database;  public DBResult(Context context){     DBResult.ResultOpenHelper openHelper = new DBResult.ResultOpenHelper(context);     database = openHelper.getWritableDatabase(); } public long insert(RssData rssData) {     ContentValues cv = new ContentValues();     cv.put(RSS_NAME, rssData.getRssName());     cv.put(RSS_TITLE, rssData.getTitle());     cv.put(RSS_LINK, rssData.getLink());     cv.put(RSS_DESCRIPTION, rssData.getDescription());     return database.insert(TABLE_NAME, null, cv); } public int update(RssData rssData){     ... } public RssData select(long id){     Cursor cursor = database.query(TABLE_NAME,null, RSS_ID + " = ?", new String[]{String.valueOf(id)}, null, null, RSS_ID);     if (cursor.moveToFirst()){     String rssName = cursor.getString(NUM_RSS_NAME);     String title = cursor.getString(NUM_RSS_TITLE);     String link = cursor.getString(NUM_RSS_LINK);     String description = cursor.getString(NUM_RSS_DESCRIPTION);     new RssData (id, rssName, title, link, description);}     while (cursor.moveToNext());     return null; } ... private class ResultOpenHelper extends SQLiteOpenHelper {     public ResultOpenHelper(Context context) {         super(context, DATABASE_NAME, null, DATABASE_VERSION);     }     @Override     public void onCreate(SQLiteDatabase db) {         database=db;         String sql = "CREATE TABLE IF NOT EXISTS " + TABLE_NAME + " (" +                 RSS_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +                 RSS_NAME + " TEXT, " +                 RSS_TITLE + " TEXT, " +                 RSS_DESCRIPTION + " TEXT, " +                 RSS_LINK + " TEXT ); ";         db.execSQL(sql);     }     ... }   What am I doing wrong? I need to get a link to open it in WebView.  ERROR: "on a null object reference"  I will be very grateful for any help!  Thank you in advance!


No way to migrate to Spanish Stack Overflow?

After coming across  today, I saw there was no way to flag it to be migrated to . Instead there were comments asking him/her to translate their question to English.  This seems a bit silly to me. Why have him/her go through the work of translating every comment, question, answer, etc., when there's a whole site for Spanish questions.  Basically, my question is, why is there no way to flag a question to have it migrated to the Spanish version of Stack Overflow?


Prove $\lim_{t \to 0} \int_R |f(x+t) - f(x)| dx = 0$

Let $f$ be a real-value Lebesgue integrable function on $R$. Prove that  \begin{equation}  \lim_{t \to 0} \int_{R} |f(x+t) - f(x) | dx =0  \end{equation}    I have seen the proof of this using approximation theorem. Using the fact that continuous compact functions are dense in $L^1$. Now, I wonder if I can use the Dominate Convergence Theorem to prove this as well.   Since $f(x + t) - f(x)| \leq 2|f(x)|$ which is in $L^1(R)$ we then have  \begin{equation}  \lim_{t \to 0} \int_{R} |f(x+t) - f(x) | dx =  \int_{R} \lim_{t \to 0}|f(x+t) - f(x) | dx = 0 \end{equation}


Product of nilpotent matrices is nilpotent

Let $A$ and $B$ be two nilpotent $n\times n$ matrices that commute (so $AB=BA$), how do I show that $AB$ is nilpotent as well?  I have frankly no idea how to start this proof, so excuse me for not showing what I have done so far.


How can I implement hexagonal tilemap picking in XNA?

I have a hexagon tiled map in which I need to check when a hexagon is clicked. The hexagons aren't actually touching, rather they have a slight gap in between each of them.  Does anyone know how could I go about checking whether a hexagon is clicked without over complicating the whole thing?


How can I make references to the glossary more explicit to the reader (of a hard copy)?

I have included a glossary as a separate chapter at the end of my thesis. This chapter lists new terms defined by me. To refer to the glossary in other chapters, I used the \gls command, which creates a hyperlink between an occurence of a given "term" in the text and its corresponding glossary entrie(s).   This hyperlink clearly signals to the reader of a soft copy (PDF) when I'm referring to the glossary.  However, if the reader only has a hard copy, there is no clear indication that a given term is defined in the glossary.  My question is: is there a more explicit way of indicating to the reader that I'm referring to the glossary? I'm thinking along the lines of what the \cite command does when I refer to a bibliography entry...


Does there exist an area-preserving map from the hyperbolic plane to the Euclidean plane?

Fairly simple question: does there exist an area-preserving map from the hyperbolic plane to the Euclidean plane?  If not, does there exist an area-preserving map from an arbitrarily large subset of the hyperbolic plane, to an arbitrarily large subset of the Euclidean plane?  If so, what does the map look like? It would basically be similar to the "Mollweide projection."


How do I throttle outbound email with sendmail

I know, I know, I should switch to Postfix.  But in the meantime, how do I throttle outbound email (especially email to a single domain) in Sendmail?


Where can I ask Android related questions in Stack Exchange?

I would like to know where I can ask Android apps and other mobile related questions. Is there a Stack Exchange site for such questions?


Irreducibility of $x^n-x-1$ over $\mathbb Q$

I want to prove that     $p(x):=x^n-x-1 \in \mathbb Q[x]$ for $n\ge 2$ is irreducible.   My attempt.   GCD of coefficients is $1$, $\mathbb Q$ is the field of fractions of $\mathbb Z$, and $\mathbb Z$ is UFD. Hence, $p(x)$ is irreducible over $\mathbb Q$ iff it's irreducible over $\mathbb Z$ (Gauss's lemma). Let $m\in \mathbb Z$ such that $\varphi(m)=n$ (Euler's totient). Make reduction of $p(x)$ by modulo $m$. Because of $\overline{x^n}=\overline{x^{\varphi(m)}}=\overline{1}$, we get $\overline{p(x)}=\overline{1-x-1}=\overline{-x}$, which is irreducible. Hence, $p(x)$ is irreducible.   Does this proof is correct?  UPDATE. Thanks to Calvin Lin. My mistake is: not for all $n$ we can find such $m$. OK, but as for the rest, does my proof is correct for such $n$, that $n=\varphi(m)$ for an integer $m$? And can it be some changed for all $n$, i.e. can we find such modulo that $\overline{p(x)}$ is irreducible for every $n\ge 2$?


Getting NDVI data only for March from 2000-2003 using Google Earth Engine?

I have a polygon and I want to calculate its mean NDVI values from 2000-2003 (and few more periods) but only for March so the final result should be image which contains the mean NDVI values only for march between 2000-2003.  How can I do that?  This is the code I have written until now:  var dataset = ee.ImageCollection('MODIS/006/MOD13A1')                   .filter(ee.Filter.date('2000-03-01', '2000-03-31'))                   .select('NDVI')                   .mean()                   .clip(geometry)                   ; //var ndvi = dataset.select('NDVI') var ndviParams = {min: -2000, max: 10000, palette: [     'FFFFFF', 'CE7E45', 'DF923D', 'F1B555', 'FCD163', '99B718', '74A901',     '66A000', '529400', '3E8601', '207401', '056201', '004C00', '023B01',     '012E01', '011D01', '011301'   ]};   Map.centerObject(geometry, 7) Map.addLayer(dataset,ndviParams,'NDVI2')


I compile most of my documents via Makefiles which take care of the bibliography, indexes, etc. Often I'd like to compile different versions from the same TeX file changing only small things (e.g. a beamer presentation plus a version with the handout option).  Is there any standard mechanism for passing parameters to the TeX file so that I can just type make handout to get the handout version in the above example?


Kernel_task boosts CPU to 300%-500% (Yosemitte MBP 2011 without a battery)

Long story short, my oldie MBP 2011' battery started bloating, I've contacted a repair service center and they advised me to remove the battery and use it on AC power, while they get a new battery for a replacement. What I've noticed a few days back, that my MBP starts extremely lagging from time to time. After a restart, it works fine for 12 - 20 hours and then the problem appears again. I've noticed that when the lagging starts, kernel_task begins consuming up to 500% CPU. So I bet that the problem's source is kernel_task, but what causes its extreme rise? Could it be a removed battery?


What is the reason for rmdir(1) and rm(1) to co-exist?

I use BSD and Linux every day, I have never had a circumstance which I must use rmdir(1) rather than rm(1). What's the purpose of rmdir's existence?


I am trying to write a bash script which run a command and compare the result with another string.   #!/bin/bash -x  STATUS=`/root/setup_ha show --password-file=/root/password | grep ">HA State" | awk '{print $3}' |  cut -c 2-`  TEST=`echo $STATUS` if [[ "$TEST" == "ON Master" ]]; then echo CLUSTER CRITICAL else   echo CLUSTER OK MASTER fi   As the Original string is on two lines, I echo it in a new variable TEST. The New variable have the output of the command on one line.  Here is the Bash debug output :  ++ /root/setup_ha show --password-file=/root/password ++ grep '>HA State' ++ awk '{print $3}' ++ cut -c 2- + STATUS='ON Master' ++ echo 'ON' Master + TEST='ON Master' + [[ ON Master == \O\N\ \M\a\s\t\e\r ]] + echo CLUSTER OK MASTER CLUSTER OK MASTER   I also tried the following test :  if [[ "$TEST" =~ "ON Master" ]]   The thing is bash is not able to compare the strings it is always false.  Any idea ?   EDIT :  Here is the output with the first answer :  + STATUS='ON Master' ++ echo 'ON' Master + TEST='ON Master' + '[' 'ON Master' == 'ON Master' ']' + echo CLUSTER OK MASTER CLUSTER OK MASTER   Still  not working ON seems weird on line 3, plus in my bash it takes green color !


Infinitely many values of $x$ that satisfy the equations

I was working on number theory homework, and this problem was the second part to  problem.  Let $a,b,c,d,m$ be constants and $n$ and $k$ be coprime such that there are infinitely many values of $x$ that satisfy  $$ax+b=mn$$ $$cx+d=mk$$  Find the values of $ad-bc$ such that the above is true.   Now, according to the answer suggested above, these equations are true if $n \equiv b/m\pmod a,$ and $k \equiv d/m\pmod c,$ but I can't really find any insight on how to find the values of $x$ that would help with this part of the problem.


Access an Ubuntu (WSL) folder from Windows

I am using Ubuntu on Windows 10. I've created a user id and there I created some folders. Now I want to copy those folders to my Windows folder in, say, E: drive. How can I get access to the folder that I created in Ubuntu in the Windows interface? I made that folder in /home/user/directory.


Does the Spirit Guardians spell hurt friendly creatures if they were not visible at the time the spell was cast?

The description of the  spell says, in part (emphasis mine):  When you cast this spell, you can designate any number of creatures you can see to be unaffected by it. An affected creature’s speed is halved in the area, and when the creature enters the area for the first time on a turn or starts its turn there, it must make a Wisdom saving throw. On a failed save, the creature takes 3d8 radiant damage (if you are good or neutral) or 3d8 necrotic damage (if you are evil). On a successful save, the creature takes half as much damage.  Let's say the caster is on the second floor and he casts spirit guardians. He designates his ally next to him to be unaffected by it. Now, directly below him, two other allied PCs are waiting; however, since he can't see them, he can't designate them to be unaffected by the spell. Will the players on the bottom floor be affected by the spirit guardians spell once they go up to the 2nd floor? Can the caster decide at some point after casting the spell that the spell won't hurt them? When does the caster need to decide who is and isn't affected?


I am wondering if there is an easy way to inset mesh that is generated from text/curves? When I convert text to mesh it generates a bunch of uneven triangles that don't inset properly. My only solution is slow and tedious and requires manually removing all but the outline edges and refilling with quads. More specifically I am trying to create an engraving of text into a mesh, and rather than a straight bool cut I need the engraved text to inset a bit. The result needs to mesh (not through a shader). Any ideas appreciated.


Why are so many physical laws expressed in terms of *integer* powers of some quantities?

Why are so many fundamental physical laws expressed in terms of integer powers of some quantities? I'd expect this to be a very, very unlikely occorrance, since the Nature doesn't know that "we count by fingers".


Why cant I break blocks in minecraft? I can place blocks but i cant break them. Im ready to smash my computer!

I cant break blocks and im starting to get angry bc i spent $30.00 on this game for my computer!


Can I forward my customers to StackExchange websites to ask their technical questions about my software?

Similar to what Google does for their Google Apps Marketplace -


Where is the right place to ask descriptive questions on programming?

Where do I ask this question on Stack Exchange? Here's my question:  I have learned nodes-express-MongoDB and building  APIs using them. Now I want to develop a mobile app for a website that is built in PHP and MySQL. I don't know PHP.  For the mobile app I need a REST API for that website. Can I build it using nodes-express? If so, how do I proceed?


Can this sql query bypass the authentication process?

I have my site and everyday i look at the log files , yesterday i saw that someone try to inject this code into the admin panel, here is the code for my panel :  <html>  <body> <center> <form action="login.php" method="POST"> username <input type="text" name="name"> password <input type="text" name="pass"> <input value="submit" type="submit" name="go">  </form> </center> <?php define('DB_SERVER', 'localhost');    define('DB_USERNAME', 'root');    define('DB_PASSWORD', '*****');    define('DB_DATABASE', '******');    $db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE);   $user = $_POST['name']; $pass = $_POST['pass'];  if(isset($_POST['go'])) {     $sql = "select * from users where username = '$user' AND password = '$pass' ";     $result = mysqli_query($db,$sql);       $row = mysqli_fetch_array($result,MYSQLI_ASSOC);       //$active = $row['active'];       $count = mysqli_num_rows($result);        // If result matched $myusername and $mypassword, table row must be 1 row        if($count == 1) {            header("location: a22.php");        }else {         echo $error = "<center>"."Your Login Name or Password is invalid"."</center>";       }    }     ?>  </body>   </html>   and the code that someone tried to inject it is :  admin ' OR '1'='1   AND he left the password blank  so can this code make him bypass the authentication process ? even if he/she left the password blank ??  Note: the admin user is valid and have id =1 in my db ;


I have a debian system. It has 8GB memory. When I do top it shows 7.9 GB memory used and rest free. I add up the memory usage of all the programs running from top and they hardly sum up to around 50 MB. So, where is rest of the memory being used? Can I have a better detailed info of the memory usage? What is a better way to check the memory usage?


"Video" is to "visual effects" as audio is to "__ effects"?

Video is to visual as audio is to...?  Just wondering what would be appropriate.  For example, I could say something like "the visual effects in that video were awesome!" But how about audio? "The audio effects in that piece of audio were awesome!" Doesn't sound so good...  EDIT: Just thought up 'auditory', would that be correct?


I have multiple Hetzner cloud servers (Ubuntu 18.04) and I have encrypted the home directory with a +128-bit encryption using cryptsetup/LUKS. The server may only be accessed with SSH or Wireguard. SSH port is non-standard and we use also fail2ban and password login is disabled. The servers don't have any open ports in addition to the mentioned SSH and Wireguard. These ports are also open only to selected few IP addresses.  As the home directory is encrypted on the fly, should the server be stolen or the disks taken, our data is safe. Also as the server is only accessible via SSH/Wireguard I am not overly worried about unauthorized logins.  What attack vectors there are that I should be worried about? I suppose that cloud server providers have the means to study a running server instance's memory and extract encryption keys. Also some side channel attack may be possible. Any other possibilities? Are there practical attacks that could penetrate iptables? I not worried about DDoS, only the security of our data. I know that state level agencies have their ways and could attack our servers for example via our desktops. But I am mainly interested what are the cloud operator's possibilities to access our data and also are the viable remote attacks?


Concerning the U.S Visa Waiver Program and job hunting

If I enter the U.S under the Visa Waiver program, can I search for a job and make connections, so long as I apply for said job once I return to my home country? Or am I best to apply for a B-1/B-2 visa, which I can then transfer to a H2B working visa whilst I'm in the States?  Note that my main purpose of visiting the U.S would be to visit my girlfriend.


How are "transforming the data" and GLMs different?

I read the following:  in John Fox's Applied Regression Analysis and Generalized Linear Models.  I don't understand this distinction.   In OLS, I have   $$E[y_i|X] = E[x_i^T\beta + \epsilon_i|X] = x_i^T\beta + E[\epsilon_i |X]= x_i^T\beta$$  Now suppose I have a log-linear model   $$\log(y) = X\beta + \epsilon$$   where transforming the data is similar to this case       where transforming the data leads to a linear relationship. source:   What do GLMs do that is different from this?


How can my Canadian friend send me money in the United States?

I purchased some merchandise for a friend who lives in Canada. She wants to pay me for these items. What is the best way for her to do this?


In my neighbourhood there are:   11 wifi signals on channel 1 2 wifi signals on channel 4 (including mine at the mo) 8 on channel 6 6 on channel 11   According to the  Mine on channel 4 will suffer interference from channel 1 and channel 6, so a total of 20 other networks(!).  So would I be better to join channel 11, even though my network is then in direct competition with the 6 others?  I suppose the question is: what's worse: direct interference (meaning that on the same channel) from 6 or fringe interference from many more networks?


Doubt regarding conditional statement in mathematical logic

Conditional statement is represented as $p\to q$. Its truth table is given as:  $$ \begin {array}{|c|c|c|} \hline p & q & p\to q\\ \hline T&T&T\\\hline T&F&F\\\hline F&T&T\\\hline F&F&T\\\hline \hline \end{array}$$  As an explanation, my textbook gave the following example:   If $x$ is an odd integer, then $4$ divides $x^2-1$. If $x$ is an odd integer, then $4$ does not divide $x^2-1$. If $x$ is not an odd integer, then $4$ divides $x^2-1$. If $x$ is not an odd integer, then $4$ does not divide $x^2-1$.   It says that (2) is false, while others are true, because in all the three statements, the conclusion is a fact.  I don't see how (3) is true. $4$ does not divide $x^2-1$ when $x$ is even. What am I missing?


SQL Server 2008 R2 Service - large memory consumption

I have a SQL Server instance where the service is consuming 173 GB, the max server memory is set at 60 GB. How do I determine where that memory is or if I have a memory leak?


"Sum" of positive measure set contains an open interval?

So this homework question is in the context of $\mathbb{R}$ only, and we are using Lebesgue measure.  The sum $A+B$ is defined to be $A+B=\{a+b|a\in A,b\in B\}$. The question is: If $m(A),m(B)>0$, is it necessarily the case that $A+B$ contains an open interval?  This question is quite annoying, since it is quite difficult to calculate the sum even after you construct an example. However, it seems like no matter how I constructed a set of positive measure, there is a region that have a lot of point in it (yet this region is not necessarily dense). This suggest that when summed up, the holes should be covered up somehow and thus there would be an open interval, and so the answer is yes. Sorry for a rather vague idea, but I'm just not sure what to do with this problem. I have a feeling that somehow topology would have a way to capture precisely the idea above about a region with a lot of point.  (also, I think my middle school teacher mentioned this once, and I remembered the answer to be yes; but that is quite a while ago though)  Thank you. Any help will be appreciated.  EDIT2: So Camilo's answer is gone. I am looking at the convolution method right now. Because the convolution is continuous, if it is nonzero I am done. But then there is no guarantee that the convolution is nonzero even if $x\in A+B$. I still need help with this direction. Can someone give me some hints?  EDIT: Camilo's answer below essentially suggest the method of getting 2 open interval from regularity theorem, one cover a subset of A and one cover a subset of B such that the sum of the measure of these two subset is bigger than the measure of the larger interval. user99680's answer point to a wiki which show a method that essentially simply acquire an open set. After some thinking, I believe that these method simply can't be made to work. I constructed this example in the hope that it would convince you that it is the case:  Let $I_{0},I_{1},\ldots$ be disjoint open interval such that the distance between any 2 of them is nonzero and $m(I_{n})=9^{-n}$ and all of them are inside $[0,2]$. Let $J_{0},J_{1},\ldots$ be disjoint open interval such that the distance between any 2 of them is at least $3$ and $m(J_{3n})=m(J_{3n+1})=m(J_{3n+2})=\frac{m(I_{n})}{3}$. Let $O=\bigcup I_{n}$ and $H=\bigcup J_{n}$. Construct $A\subset O$ such that $m(A\bigcap I_{n})=\frac{3m(I_{n})}{4}$. Construct $B\subset H$ such that $m(B\bigcap J_{n})=\frac{3m(J_{n})}{4}$. Now if you apply Camilo's method, it is possible that your $I$ would be one of the $I_{n}$ above, and your $J$ is one of the $J_{m}$ above. No matter which $I_{n},J_{m}$ you have, the argument does not work. Rewrite $m=3q+r$ where $0\leq r\leq 2$. If $q<n$ then $m(J_{m})>m(I_{n})$ so the longer interval have length $\frac{m(I_{q})}{3}$; $m(A\bigcap I_{n})$ is at most $\frac{3m(I_{q+1})}{4}=\frac{m(I_{q})}{12}$ and $m(B\bigcap J_{m})=\frac{3m(J_{m})}{4}=\frac{m(I_{q})}{4}$. Thus $m(A\bigcap I_{n})+m(B\bigcap J_{m})$ is no larger than the larger interval. If $n\geq q$ then $m(I_{n})>m(J_{m})$ so the larger interval is of length $m(I_{n})$; $m(A\bigcap I_{n})=\frac{3m(I_{n})}{4}$ and $m(B\bigcap J_{m})$ is at most $\frac{3m(J_{3n})}{4}=\frac{m(I_{n})}{4}$. Once again $m(A\bigcap I_{n})+m(B\bigcap J_{m})$ is no larger than the larger interval. Hence the Camilo's argument does not work. user99680's method does not work either, since you get $O$ and $H$ which is even bigger than any interval.


Windows clock set back 1 hour every morning even though all auto-settings are off

I noticed that the clock of my Windows 10 Desktop has been set back one hour every day I boot the system for the first time. The three possible auto-settings afaik for changing the time automatically (automatic setting of time, timezone and summer/winter offset) are off. The timezone has been set correctly during installation and I never touched it. I adjusted the time every morning for the past couple of days.  For some time I had all auto-settings on (or just the adjust time and summer/winter automatically with the timezone CET/Berlin set manually without auto-update) which didn't change the time to the correct value over days and multiple reboots.  I'm running Windows 10 in a DualBoot with Ubuntu 18.10 which has the same settings regarding time (auto-update), timezone (CET/Berlin without auto-update) and summer/winter offset (auto-update) and it works fine there.


JavaScript prototype delegation in function

I am trying to learn Javascript but I am finding this prototype concept very confusing someone helps me with this code snippet  var func = function (){}; func.prototype = {m:9};  func.prototype.m; // That logs 9  func.m; // That logs undefined    Why is the delegation not working in this case?


After reading  about undefined behavior and sequence points, I wrote a small program: #include <stdio.h>  int main(void) {   int i = 5;   i = (i, ++i, 1) + 1;   printf("%d\n", i);   return 0; }  The output is 2. Oh God, I didn't see the decrement coming! What is happening here? Also, while compiling the above code, I got a warning saying:  px.c:5:8: warning: left-hand operand of comma expression has no effect   [-Wunused-value]   i = (i, ++i, 1) + 1;                         ^   Why? But probably it will be automatically answered by the answer of my first question.


Let $\omega$ be a primitive $n$-th root of unity. Prove that $\omega^k$ is a primitive $\tfrac{n}{\text{gcd}(n,k)}$-th root of unity.   To prove this, I have to show that if$\quad \omega^n = 1 \quad$ then $\quad (\omega^k)^{\tfrac{n}{\text{gcd}(n,k)}} = 1 \quad$, as well as to show that $ \quad \forall m < \tfrac{n}{\text{gcd}(n,k)} : (\omega^k)^m \neq 1 \quad$.  The first one is easy: $(\omega^k)^{\tfrac{n}{\text{gcd}(n,k)}} = (\omega^n)^{\tfrac{k}{\text{gcd}(n,k)}} = 1^{\tfrac{k}{\text{gcd}(n,k)}} = 1$  But i am having a hard time proving the second identity. Does anyone know how to prove this and can help me with that?  Greetings, Octavius


Why do I have two docks in Ubuntu, and how do I get rid of one?

As you can see here:  I have the thin gray dock in the bottom as well as the standard one on the right. How do I get rid of the one in the bottom? I was reading up on how to get an OSX like dock and I was trying to install gnome-dock (which might be the one already installed lol) and suddenly I noticed that the little gray one on the bottom had appeared. Thanks in advance


Replacement of li po battery with li ion battery

Is it possible to replace a battery for headphones? I would like to replace a 052030 li po battery with a Nokia BL-5C Lithium Ion battery. The li po battery is rated at 130 mAh with 3.7v. The Lithium Ion battery, on the other hand, is 1 Ah with 3.7v.  Thank you for your help.


How to find the matrix of a quadratic form?

I was wondering. If I have a bilinear symmetric form, it is easy to find its matrix. But, when I have a quadratic form, which is the procedure to do that?  I heard that one possibility is: If $q$ is my quadratic form, then $$f(x,y) = \frac{1}{4}q(x+y) - \frac{1}{4}q(x-y)$$ is the bilinear symmetric form associated, so the method reduces to find the matrix of $f(x,y).$   The point is that seems a little noising... How to find, in practice, the matrix of quadratic form?  Thanks in advance.


Maximum value of $f(x) = \cos x \left( \sin x + \sqrt {\sin^2x +\sin^2a}\right)$

Can we find maximum value of $$f(x) = \cos x \left(  \sin x + \sqrt {\sin^2x +\sin^2a}\right)$$ where '$a$' is a given constant.  Using derivatives makes calculation too complicated.


Help. I installed Gnome on my computer and now i would like to uninstall it since now I have cinnamon.

problem is i havent been able to delete it. I dont remember how I installed it but now I would just like to get rid of it. FYI. Im using a laptop with Ubuntu 14.04


I'm trying to bind a list of custom objects to a WPF Image like this:  <Image>     <Image.Source>         <BitmapImage UriSource="{Binding Path=ImagePath}" />     </Image.Source> </Image>   But it doesn't work. This is the error I'm getting:  "Property 'UriSource' or property 'StreamSource' must be set."  What am I missing?


Safari browser showing question marks instead of English

Only in Safari Browser, it loads my homepage (Google) but has question marks instead of English. Instead of "Search Now" or "I'm Feeling Lucky"  it just displays "[?][?][?]"


Past coin tosses affect the latest one if you know about them?

Suppose Mark and Paul are sitting on a table, and Mark starts tossing an unbiased and fair coin. He tosses it for 99 times, and he gets 99 consecutive tails. At this point Mark asks Paul: "let's bet $100 on the next toss, do you want to pick tail or head?"  Question: In order to maximize his expected return, should Paul pick tail, head, or it doesn't matter?


ASP.NET MVC - How can I check if a file exists on an ftp server

I'm working on an ASP.NET MVC 5.1 web site, and I need to show a picture if it exists in an ftp server (CDN). Foldername and filename are tied to rules so I know them beforehand. I need to display a message if this file does not exist.  How can I check if this file exists?   does not help since I need to check if the file exists on a remote server and not a local folder.


Principled Volume outside containing Object

I am using the 2.8 RC2  I want to create a Material that is seethrough and colored as there will be an object inside that must be visible. It will be a red Light Emitting Diode with innards.  Therefore Under "Material" > "Blend Mode" I chose Additive.  Just having a red "Principled BSDF" go into the Material Output's Surface is not enough as it is way too light on its own. Therefore i took a Principled Volume and put it into the Output's Volume slot. The color is about the same now as it would be with just an opaque surface.  But there is a problem:  The volume is also outside the containing object in what looks like a cubid around my object. I created a MRE with just a sphere with a nontransparent red surface and added volume the same way but in green for contrast.   I tried switching from EVEE to Cycles and even disabled GPU acceleration to exclude error sources.  I tried the same with Blender 2.79b (Cycles) and it works. No Volume outside of the object.  Is this a bug or did I forget something?


Is it possible to have an application switcher in XFCE that looks like Unity without using Compiz?  It's very useful when alt+TAB bring the window to front and we can see what we have in there.


I need the twisted framework (Python) for a qgis plugin on Windows 7. I installed it with the pip installer. When I want to start the plugin it doesn't find twisted. When I start a python interpreter in the cmd.exe twisted can be imported.  this is my path variable: C:\Python27\Lib\site-packages;C:\BIN;C:\Python27\Scripts;C:\Python27;  twisted is installed inside C:\Python27\Lib\site-packages  How should I install a python package when I want to use it inside QGIS?


Self quarantine after arriving in the UK one day before canary islands are on the safe travel list?

I am arriving in the UK one day before canary islands are on the safe travel list on Sunday 4pm. Do I have to self-quarantine for the full 14 days or just until Sunday 4pm?


I am trying to render my model but the camera kinda shoots into the model. When I press Ctrl+Alt+0 to bring up the camera view mode it makes my model so large instead of showing the view from the camera.   I'm very new to blender this is my first  project.   Thank you


Show that for each integer $n ≥ 2$, $F_n$ is a finite index subgroup of $F_2$, where $F_n$ is the free group on $n$ generators.

I'm trying to answer a problem which asks me to show (using covering spaces) that for each integer $n ≥ 2$, $F_n$ is a finite index subgroup of $F_2$, where $F_n$ is the free group on $n$ generators.  I can see that if I can find some covering space with fundamental group $F_n$ of the wedge $S^1 \vee S^1$ then this will give me the existence of the subgroup, and I know that this will be of finite index if this covering map sends finitely many points to the vertex joining the two circles in $S^1 \vee S^1$.  The problem I'm having is I'm struggling to find such a covering space - the only space I know of with fundamental group $F_n$ is the wedge of $n$ circles, but I can't see any covering map from that to $S^1 \vee S^1$ so I assume I must need another.  If anyone could suggest such a covering space (and if so how I can show it has fundamental group $F_n$) I'd really appreciate the help!


Is it possible to install a different wordpress installation in a subdirectory?

What I'm trying to say is, I have this wordpress site called www.mysite.com which is a one pager site that only contains static pages and I want to install a new wordpress installation called shop and use it as an ecommerce page. So it will be called www.mysite.com/shop and shop will be a completely different installation. Is this possible and How am I going to do this?  and on the nav bar I'll have something like, Home - About Us - Contact - Shop.  and Shop will automatically direct to the new installation?


What characteristics do living organisms (like humans or plants) have that viruses don't?

I am not too sure if viruses are considered living organisms.   I learned that living organism:   -Change their size -Reproduce -Heal themselves -Need energy (by eating) -React to the environment -Have a lifespan -Made of at least 1 cell (some exceptions)  Which features that are listed are not in viruses?  If I need to be more clear, please tell me as I'm not very good at explaining.


Grammaticality of the invented sentences

Which one would be better for Question A?   B1 or B2? Are both grammatical?        A: Do you love it that he will resign?     B1: Yes, I love it.   B2: Yes, I love the situation.        Which one would be better for Question C?   D1 or D2? Are both grammatical?        C: Did Rumor have it that he will resign?     D1: Yes, Rumor had it.   D2: Yes, Rumor had the situation.


How do I change priority of two different implementations of hook_node_access()?

I am using the Node View Permissions module, which implements hook_node_access(). I am also using a custom module (mymodule.module) which is implementing the same hook. node_view_permissions_node_access() is always invoked after mymodule_node_access().  How can I change the hook invocation order? mymodule_node_access() should be executed after node_view_permissions_node_access().


Proof in modern algebra. Prove $(n-1)! = -1 \ (\textrm{mod n})$ iff n is prime

Prove $(n-1)! = -1 \ (\textrm{mod n})$ iff n is prime  I can understand how the first part of the proof $(n-1)!=-1 \ (\textrm{mod n})$ is true if n is prime simply by testing it out. However, I'm unsure of how to go about proving it.


How to integrate $\int_0^{\infty} \frac{e^{ax} - e^{bx}}{(1 + e^{ax})(1+ e^{bx})}dx$ where $a,b > 0$.

This  $$\ \int_0^{\infty} \frac{e^{ax} - e^{bx}}{(1 + e^{ax})(1+ e^{bx})}dx \text{ where } a,b > 0. $$ is a problem that showed up on a GRE practice test. I believe you're supposed to use complex contour integration, but I'm not sure which contour to use. I think it's the keyhole contour, but I wasn't able to get anything useful.


How to compare two groups when one only has one data point?

I have two groups I want to compare, however, I only have one data point in the first group compared to 450 data points in the second group.   Here's the story. I have a patient that has a mutation in one of his miRNA, and I'm trying to find if it affects the expression of the miRNA's target genes. So, I took one of the target genes and I compared its FPKM value (normalised expression) (group 1) to the genes that are expressed in patients that don't have this mutation (group 2).    I thought about doing a T-test, but obviously can't perform a T-test with what I have.  Do I need to generate "artificial" data in my first group in accordance with the elements from my second group?  Is there a package in R or a tool that could help me generate this data?  I tried searching for solutions but I only found options for re-sampling already existing data or creating new random data, which I do not want to do.  Thank you for your help!


Inserting data with SELECT into new column

I have a table of data built from a file inventory. I then want to add a categorical column so that I may easily perform GROUP BY.  How things start:  SELECT COUNT(fullpath) FROM data;  12395   I use the column fullpath a lot so I create an index:  CREATE INDEX "index" ON data (fullpath);   I then add the column:  ALTER TABLE data ADD COLUMN 'Sub' VARCHAR(20);   Insert values into the Sub column based on the fullpath:  insert into data(Sub) select case     when fullpath like '%subA%' then 'subA'     when fullpath like '%subB%' then 'subB'     else 'neither' end from data;   Check the number of rows again:  SELECT COUNT(fullpath) FROM data;  24790   I don't understand the syntax and the operations. Do I need to join or something to respect the index?


Google has a hard time finding organization's official page

I have a website setup through WordPress on a custom domain that I control. It is registered in the Google Webmaster Tools, and pages will show up on Google, but not in the order I'd like.  I am working with others in the organization to include links on their websites to this main one to try to help. I have the Yoast SEO plugin installed, and many pages show the green circle, indicating great SEO on the pages. I even have the sitemap loaded to Google.  When I search for the company directly, it's not even on the front page. If I search for the company with no spaces in its name, then it shows up near the bottom of the first page. What can I do to increase its recognition based on its initials, or at least the company name spelled out properly with spaces?


How do I choose one option or the other if user inputs an integer that's not defined?

This program is meant to execute two programs based on user input. If the user inputs 1, it executes program_a. If the user inputs 2, it executes program_b. How do I make it so that if a user inputs any other integer, it randomly chooses between 1 or 2?   import random choice = int(input("Enter the number for your choice: ")) r = random.randint(1,2) if choice == 1:   program_a() elif choice == 2:   program_b() else:   choice = r


Stack Overflow 'review' button is slow, and test questions are slower

In the last few weeks, the 'review' button at the top of stackoverflow.com has become very slow. I can count to 20 in some cases (but not always).   In a perhaps related phenomenon, I believe that test questions in the queue often trigger a level of extreme slowness all their very own. If I click on a queue, or 'next' after a review, and the periods sit there throbbing for a good long time, chances are that what will show up will be a review audit.


I am trying to solve the following exercise:     Let $f_1=1$, $f_2=1$, $f_{n+1}=f_n+f_{n-1}$, where $n\in\mathbb{N}$. Show that $f_{2n+1}=f_{n+1}^2+f_n^2$.   I have not had much progress, but this is what I have managed to observe:  $$\sum_{k=1}^nf_{2k}=f_{2n+1}-1.$$  However, this is not of much help when trying to show the above.  Also, $f_{n+1}^2=(f_n+f_{n-1})^2=f_n^2+2f_{n+1}+f_{n-1}^2$, and $f_n^2=(f_{n-1}+f_{n-2})^2=f_{n-1}^2+2f_n+f_{n-2}^2$. But when I add these, I do not get anything that resembles the LHS above.  Do you guys have any ideas?


Correct way to use include and includeonly when writing a large document like a thesis

I am writing a large document with several chapters and I would like to work on each chapter separately. In my main.tex I include the chapters either like   \include{chap1.tex}  \include{chap2.tex}  \include{chap3.tex}   or   \input{chap1.tex}  \input{chap2.tex}  \input{chap3.tex}   I think \include is preferable if I want things to be referenced and cited correctly? but doing it the \include way latex main.tex I don't get any dvi output whereas with \input things compile fine to dvi. What's going wrong here?  I would then like to use \includeonly (or \excludeonly ) to work on individual sections of the document whilst maintaining the referencing etc.  A mwe can be handy:  \documentclass[a4paper,10pt]{article} \includeonly{chap1}  \begin{document}   \include{chap1}   \include{chap2}   \include{chap3} \end{document}


At the beginning of the movie Edge of Tomorrow, William Cage (Tom Cruise) was sent to the war base prior to going to fight. What caused him to be sent to the war base?


Use tcolorboxes as nodes to create arrows with tikz

I'm trying to draw an arrow between 2 tcolorbox. But I don't know how to do it, because tikz requires "nodes"   If I have this:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[left=0.8in,right=0.8in,top=0.5in,bottom=0.8in]{geometry} \usepackage{array} \usepackage[table, x11names]{xcolor} \usepackage{array, multirow} \usepackage{makecell, hhline} \renewcommand\theadfont{\bfseries} \renewcommand\theadalign{lc} \newcommand\whitecell[1]{\cellcolor{white}{#1}}  \usepackage[english]{babel} \usepackage{fancyhdr} \usepackage{setspace} \usepackage{listings}  \usepackage[many]{tcolorbox}  \begin{document}  \begin{minipage}{.45\linewidth} \begin{flushright} \begin{tcolorbox}[width=4.5cm, halign=center,valign=center, square] This is a \textbf{tcolorbox}. \end{tcolorbox} \end{flushright} \end{minipage} \hfill \begin{minipage}{.45\linewidth} \begin{flushright} \begin{tcolorbox}[width=4.5cm, halign=center,valign=center, square] This is a \textbf{tcolorbox}. \end{tcolorbox} \end{flushright} \end{minipage}  \end{document}   How do you make an horizontal arrow in-between?  Cheers


I am a bid confused regarding the notation for tensor products when going into dual-space  If $\left| \Psi \rangle \right. = \left| A \rangle \right. \left| B \rangle \right.$ is $ \left. \langle \Psi \right| = \left. \langle A \right| \left. \langle B \right|$ or $\left. \langle B  \right| \left. \langle A \right|$?  My guess is the last choice, since operators should act on   $\left| 0 \rangle \right. = \left( \begin{matrix}   1 \\   0  \end{matrix} \right) $  $\left| 1 \rangle \right. = \left( \begin{matrix}   0 \\   1  \end{matrix} \right) $  so  $\left| 01 \rangle \right. = \left| 0 \rangle \right. \left| 1 \rangle \right. = \left( \begin{matrix}   0 \\   1 \\   0 \\   0  \end{matrix} \right) $  But then, for me, it should be  $\left( \begin{matrix}   0 & 1 & 0 & 0  \end{matrix} \right) = \left \langle 10 \right|$ But this is not correct if i calculate the tensor product, since   $\left \langle 1 \right| \left \langle 0 \right| = \left( \begin{matrix}   0 & 0 & 1 & 0  \end{matrix} \right)$  For instance, shoulden't it be  $\left| 01 \rangle \right. \left \langle 10 \right| = \left( \begin{matrix}   0 & 0 & 0 & 0\\   0 & 1 & 0 & 0\\   0 & 0 & 0 & 0\\   0 & 0 & 0 & 0\\  \end{matrix} \right) $ ?  I hope I have made my confusion clear


How to remove mutton smell while cooking?

Some people do not like specific smell of mutton in curry. What I do to remove the smell of mutton while cooking?


What can I do besides taking in Macbook to remove firmware password?

I have a MacBook Pro w/ Retina (2012 I believe) which has a firmware password which I don't know. Since it is a retina I can't use the remove RAM trick. If I go to reformat and reinstall the MBP will the firmware password be removed?


There exists an integer $x$ s.t $x^2\equiv -3 \,\text{mod}\, p$ iff $p=3k+1$, $k\in\mathbb{Z}$

I need to prove the theorem above and I'm stuck. What I tried: Assume $p=3k+1$ with integer $k$ This means $p \equiv 1 \,\text{mod}\, \Rightarrow \left(\frac{1}{3} \right) = \left(\frac{p}{3} \right)$ Then I tried to use quadratic reciprocity: $\left(\frac{1}{3} \right)\cdot \left(\frac{3}{p} \right)$ but there can be multiple options for that product, $\left(\frac{1}{3} \right)$ is $1$, but if $k=2$, we get $p=7$ which is congruent to $3 \,\text{mod}\, 4$, but if we take $k=4$ we get $p=17$ which is congruent to $1 \,\text{mod}\, 4$. Thank you for your time! I looked for dublicates but couldn't find any.


I wanna proof that if A is a derformation retract of $X$, then $(j)_*: \pi_1(A,x_0) \to \pi_1(X,x_0)$ which is induced by the inclusion $j:A \to X$ is an isomorphism for all $x_0 \in A$. I already proved that $(j)_*$ is injectiv but how to do it with the surjectivity? Thanks for your help


Why do we need Mapserver/Geoserver to present data from spatial database to web browser?

I was trying  and  I was setting up Tomcat and all.   I suddenly had a question ... why do we need MapServer and GeoServer?   Can these servers pull data from the database layer as the user asks and only presenting what user has asked from the database?


Three Rings for the Elven-kings under the sky, Seven for the Dwarf-lords in their halls of stone, Nine for Mortal Men doomed to die,  In the excerpt above, is there any significance to the bit about "Mortal Men"?  Obviously men of Middle-earth are mortal, but aren't Dwarves mortal as well?


Can you make chemical structure diagrams in LaTeX?

Can you create diagrams of chemical structures in LaTeX?   Example(s) of "chemical structure diagrams":


How to give a VF page link to custom Button(In yellow Circle). My VF page Name is CreateUserPage.


I am working on a "Candy Shop" assignment project for OOP with C++ and compiler complains about my code again :) I found a similar named topic in forum but it points to some other issue than I have... So, I got a base class to derive some products ( candy, cookie, vs.) and a template for shopping class as follows:  class productBase{ protected:     string name;     double amount;     double ppAmount; public:     productBase(){}     productBase(string na, double am, double pp){          name = na;          amount = am;          ppAmount = pp;      }         string getName() const;     double getAmount() const;     double getppAmount() const;     //virtual double getCost() const = 0;        // make it abstract ? };  //  Templete for shopping template <typename shopType> class Shop { private:     int noi;                        //  number of items     double totalcost;        shopType * sTptr; public:     Shop();     Shop(shopType);     ~Shop() { delete[] sTptr; }      void add(shopType &);     void setDiscount(const double);         friend ostream& operator<<(ostream&, const Shop<shopType> &);         shopType operator[](int); };   And one of my product class is like this:  class Cookie: public productBase { private:     const double taxRate; public:     Cookie() :taxRate(8) {}     Cookie(string nm, double am, double pp) :productBase(nm, am, pp), taxRate(8) {}     ~Cookie() {}         double getCost() const;         friend ostream& operator<<(ostream &, Cookie &);     };   In the program, I need to hold my products in a dynamic array which is first created and expands with adding new instances as follows:  int main() { .....     Cookie cookie1("Chocolate Chip Cookies", 10, 180);       Cookie cookie2("Cake Mix Cookies", 16, 210);      Shop<Cookie> cookieShop(cookie1);       // << this is where I am gettin error     cookieShop.add(cookie2); .....   and this where I am getting error from the compiler  Error  LNK2019 unresolved external symbol "public: __thiscall Shop::Shop(class Cookie)" (??0?$Shop@VCookie@@@@QAE@VCookie@@@Z) referenced in function _main     I thought that it is caused by the constructor of my template and tried to fix it by going over some examples like passing by reference and using base class pointer or even not using a base class at all, but i feel like the problem is something else like a missing parameter or misusage of something but can't figure it out :(  So these are the methods of my template class where I am looking for the cause...  template<typename shopType> Shop<shopType>::Shop() {     noi = 0;     totalcost = 0;     sTptr = NULL; }  template<typename shopType>  Shop<shopType>::Shop(shopType sT)           // I guess the problem is here {     sTptr = sT;     noi++;     totalcost = sT.getCost();        }  template<typename shopType> void Shop<shopType>::add(shopType & toAdd) {     if (noi == 0) {         sTptr = new shopType;         sTptr = toAdd;         totalcost = toAdd.getCost();         noi++;     }     else {         shopType * ptr = new shopType[noi + 1];         for (int a = 0; a < noi; a++) {             ptr[a] = sTptr[a];         }             delete[] sTptr;                  sTptr = ptr;         sTptr[noi++] = toAdd;           totalcost += toAdd.getCost();     } }   This template usage is confusing me; I would be already done without using it, but I need to learn it on the other hand :) So what might be I am missing out of sight?   Thanks in advance for any guidance or assistance.


Created a tag with a typo, but can't change it (or suggest synonym)

I created a new tag for C/AL (Client/Server Application Language for Microsoft Dynamics NAV), which was recently approved. However, I just noticed that I have a typo. I am unable to suggest a synonym since I have yet to score 5 in the tag.  Can someone please fix the typo (or suggest the synonym)? Tag can be found .  The word client has been mispelled (cllient).