Is there any way to use memory above 3.25GB using Windows XP

32 bit Windows XP has two well-known memory limits. Each process is limited to 2GB of memory (or 3GB if you change a setting). The maximum memory that Windows XP will use in total is 3.25GB.  There is no fundamental 4GB limit for memory in 32 bit operating systems - Windows Server 2003 can use more than 4GB. The key limit that defines a 32-bit system is per-process (the virtual address space for one particular application). This is the reason for the 2GB/3GB per-process limit in Windows XP, which is also shared by Windows 2003 Server.  I dual-boot, with 64-bit OpenSUSE 11.3 Linux and Windows XP. Linux is becoming my main operating system more and more over time, but I have too many Windows XP apps that I use regularly to just discard them.  What I want to know, therefore, is whether there is any way to get memory above 3.25GB into practical use in 32 bit Windows XP. The kinds of possibilities I have in mind are...   A way of making Windows XP behave more like Windows 2003 Server. A way of replacing the hard disk cache handling in Windows XP with an alternative that can use extra memory. A RAM disk that can use non-Windows memory.   Two possibilities that may be worth a mention, but which I will reject for the moment, are...   Use Windows 2003 Server 32 bit - license issues. Use Reactos - still alpha, with significant issues, and I'm not sure if it can use more than 3.25GB memory anyway.   EDIT  In Joels answer, the final paragraph is...     If you have a lot of RAM (6Gb or more), I've also heard tales of people installing software that sets up a RAMDisk for the unused RAM and then placing the page file there.   If anyone knows where I can get suitable RAMDisk software, that is an answer I could accept. A normal RAMDisk isn't suitable because it will only use the memory that Windows manages, and therefore will more likely  and still leave the extra RAM unused.


Why are these two lists equal, but act different when operated on?


I try to create the list of object with some attributes like this. info.py  import numpy as np class MapInfo(object):     """docstring forInfomation."""     def __init__(self, arg):         super(MapInfo,self).__init__()         self.arg = arg     cost = np.array([[0,12,11,7,10,10,9,8,6,12],             [12,0,8,5,9,12,14,16,17,22],             [11,8,0,9,15,17,8,18,14,22],             [7,5,9,0,7,9,11,12,12,17],             [10,9,15,7,0,3,17,7,15,18],             [10,12,17,9,3,0,18,6,15,15],             [9,14,8,11,17,18,0,16,8,16],             [8,16,18,12,7,6,16,0,11,11],             [6,17,14,12,15,15,8,11,0,10],             [12,22,22,17,18,15,16,11,10,0]])     luggage = np.array([0, 10, 15, 18, 17, 3, 5, 9, 4, 6])     capacitor = 40 class depot(object):     """docstring for depot."""     def __init__(self):         super(depot, self).__init__()         next_pt = np.zeros((1,10))   I am trying to add data for next_pt of 10 "depot" objects like this. main.py  from info import MapInfo as inf from info import depot as dp import numpy as np  def init():     for i in range(0,10):         depot.append(dp)  """-------__init__method----------------""" def ArrangeNextDes():     temp = np.zeros((1,10))     pos = np.zeros((1,10))     for i in range(0,10):#for depot object         for j in range(0,10):                 temp[0,j] = inf.cost[i,j]                 pos[0,j] = j         for pt in range(0,9):# for next_pt object             for jpt in range(pt+1,10):                 if (temp[0,jpt] < temp[0,pt]):                     t = temp[0,pt]                     temp[0,pt] = temp[0,jpt]                     temp[0,jpt] = t                     p = pos[0,pt]                     pos[0,pt] = pos[0,jpt]                     pos[0,jpt] = p         depot[i].next_pt = pos         print(depot[i].next_pt) """-------------------------------------"""  """------main program-----------""" start_pt = 0 map_status = np.zeros((10,10)) map_status[0,0]=1 depot = [] init() ArrangeNextDes() for i in range(0,10):     print("depot[%d] = "%i,depot[i].next_pt)   And the result like this:  [[0. 8. 3. 7. 6. 5. 4. 2. 1. 9.]] [[1. 3. 2. 4. 0. 5. 6. 7. 8. 9.]] [[2. 1. 6. 3. 0. 8. 4. 5. 7. 9.]] [[3. 1. 0. 4. 2. 5. 6. 7. 8. 9.]] [[4. 5. 3. 7. 1. 0. 2. 8. 6. 9.]] [[5. 4. 7. 3. 0. 1. 8. 9. 2. 6.]] [[6. 2. 8. 0. 3. 1. 7. 9. 4. 5.]] [[7. 5. 4. 0. 8. 9. 3. 6. 1. 2.]] [[8. 0. 6. 9. 7. 3. 2. 4. 5. 1.]] [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]] depot[0] =  [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]] depot[1] =  [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]] depot[2] =  [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]] depot[3] =  [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]] depot[4] =  [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]] depot[5] =  [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]] depot[6] =  [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]] depot[7] =  [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]] depot[8] =  [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]] depot[9] =  [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]]   The problem is that after the loop finishes, all the object of the list is the last result of the loop [[9. 8. 7. 0. 5. 6. 3. 4. 2. 1.]] when they must be equal to each results in the loop orderly (the first ten lines).  The question is what is going wrong here. Thanks


Whats a good word for somebody holding back sobs?

I am in a roleplay and want to express my character holding back sobs out of fear of being seen as weak but don't have a word for it


How to increase Scrollback lines in Ubuntu(14.04.2) server edition?

I can see only limited lines on terminal by using shift+ pageup. in Ubuntu desktop version, there is option to make scroll-back lines unlimited. how to do it in Ubuntu server version. please suggest.


Prove/Disprove $\sum a_n$ and $\sum b_n$ converge together iff $\underset{n\to \infty }{\mathop{\lim }}\,{{a}_{n}/b_n } = 1$

Prove/Disprove that if $\sum a_n$ and $\sum b_n$ are some series and $\underset{n\to \infty }{\mathop{\lim }}\,{{a}_{n}/b_n } = 1$ then the series converge together or not converge together.  This doesn't seem to be correct to me so maybe there is some counter example. i know this is true if both series are strictly nonnegative (from the first series comparison test) - how does it change if both are negative (or alternate?)


How to find the highest common factor of two complex numbers

I have $$7+i,\quad\quad 5+3i\in\mathbb{Z}[i]$$  The answer is given as $$7+i=(5+3i)\cdot 1+(2-2i)$$  $$5+3i = (2-2i)\cdot 2i+(1-i)$$  $$2-2i=(1-i)\cdot 2$$  So $hcf(7+i,5+3i) = 1-i$  What I don't understand is how they're finding what to multiply by, like in the first line, they multiply $5+3i$ by $1$, in the second line they multiply $2-2i$ by $2i$. I tried using the fraction $\frac{7+i}{5+3i}$, and then rationalising the denominator but it got complicated and didn't look anything like what they've gotten. Could someone explain their steps in more detail?


When does a Möbius transformation map $\Im(z)>0$ to itself?

Show Möbius transformation which maps $\Im(z)>0$ to itself iff  $$ f(z)= \frac{az+b}{cz+d}\,,\,\,ad-bc>0$$ and $a,b,c,d$ are real.


There are already several threads that deal with this: they suggest having one figure and putting putting minipages inside, or using the subcaption package and having subfigure environments. However, I've tried both of these approaches and I'm still going wrong:  \begin{figure}[h]  \begin{minipage}[b]{0.2\linewidth}  \begin{tikzpicture}[sibling distance=0pt] \Tree [.TP         [.DP \edge[roof]; {a 'we'} ]         [.T$'$             [.T \node(li){li 'eat$_i$'}; ]             [.VP                 [.Spec t ]                 [.V$'$                      [.DP \edge[roof]; {saka 'rice'} ]                     [.V \node(t){t$_i$}; ] ] ] ] ] \draw [->] (t) .. controls +(south:3) and +(south:3) .. (li); \end{tikzpicture}  \end{minipage}\hfill  \begin{minipage}[b]{0.2\linewidth}  \begin{tikzpicture}[sibling distance=0pt] \Tree [.TP         [.DP \edge[roof]; {a 'we'} ]         [.T$'$             [.T \node(li){la 'have'}; ]             [.VP                 [.Spec t ]                 [.V$'$                      [.DP \edge[roof]; {saka 'rice'} ]                     [.V \node(t){li 'eaten'}; ] ] ] ] ] \draw [red,->] (t) .. controls +(south:3) and +(south:3) .. (li); \end{tikzpicture}  \end{minipage}  \end{figure}


why "==" working differently for integer and strings reference?

May I know how == works here?  public class App {     public static void main(String[] args) {         String s1 = new String("str");         String s2 = new String("str");         System.err.println("why it,s "+String.valueOf(s1==s2));         int i1 = new Integer(10);         int i2 = new Integer(10);         System.err.println("why it,s "+String.valueOf(i1==i2));     }      }  When I am comparing references of two different String with the same values, then == says that they are not equal, but when I am comparing references of two integers with the same values, then == says that they are equal. Why is it so?


Proof for number of ways to select k non-consecutive elements from n consecutive terms.

While studying, I found a formula that found the number of ways to select k non-consecutive elements from n consecutive terms, not necessarily the first n consecutive terms, but any n consecutive terms.  The formula was:   Number of Ways = (n-k+1) C (k) The C in the formula stood for combinations. The book gave this formula but no proof for it. I tried to search it up but there were no detailed explanations of the proof. I'd be glad of assistance if anyone could show me how to prove this formula.


I have the following two sentences:   In Germany, the most common type are air-water heat pumps, followed by brine-water heat pumps. In this thesis three type(s) of optimization approaches are developed. The first type are heuristic algorithms   Is this correct or do I have to use the plural form 'types' in this context? I'd appreciate every comment.  Regarding sentence 2):  I developed three different types of optimization approaches and for each type I have multiple algorithms. For example: The first types of optimization approaches are heuristic algorithms. I have not only developed one but many heuristic algorithms.   So here is more information: I have developed 3 type(s) of optimization approaches. The first type(s) are heuristic algorithms. Here I have developed 3 methods. The second type(s) are exact methods. Here I have developed 2 methods. And the third type(s) are rule-based methods. Here I have developed 4 methods. So overall I have:  Type 1 (Heuristic Algorithms): Heuristic Algorithm 1, Heuristic algorithms 2, Heuristic Algorithm 3  Type 2 (Exact methods): Exact method 1, Exact methods 2  Type 3 (Rule-based methods): Rule-based method 1, Rule-based method 2, Rule-based mehtod 3, Rule-based method 4  So I think I should use the plural form 'types' with the plural form of the verbs 'are' and plural form of the object 'algorithms'. Is that correct?   Can someone please open the question again. I would like to give bountry for the question.


Equation of the locus of the foot of perpendicular from any focus upon any tangent to the ellipse ${x^2\over a^2}+{y^2\over b^2}=1$

Find the equation of the locus of the foot of perpendicular from any focus upon any tangent to the ellipse ${x^2\over a^2}+{y^2\over b^2}=1$. will it also be an ellipse?


I use Terminal a lot, and sometimes I am running commands, which aren't things I don't want others to see, but more commands that if I accidentally arrowed up to and accidentally executed would cause a lot of trouble.  So I am wondering if there is, or I can make, some sort of Terminal 'incognito mode' which would allow me to, upon the execution of a certain command, stop recording my history, and then only start recording after I either execute a start recording history again command and exit 'incognito mode', or I simply restart the Terminal?  Because I find myself later on going and removing stuff from my .bash_history, when it would be much easier if I could have stopped it recording there in the first place, or at least got it to try to record it somewhere where it just wouldn't be allowed to, and would just end up not recording it.


I have a Vietnamese passport and I hold an EU residence permit (I am married and my husband is Belgian, so I have an F+ card: family of EU). Last Sunday in Brussels airport they did not let me check-in because they said my F+ card is not valid for the UK and I need a transit visa for London. I explained that two years ago I passed through London and I did not need a transit visa. They told me it changed a few months ago (with Brexit). Is it true?  I have read on the website of the government of UK that I do not need a transit visa for the UK (in my case). I also read on the website of a travel agency (www.immihelp.com) that it's clear I do not need a visa for a 3-hour transit in London.  I paid for two tickets and they were expensive. And now I cannot see my family. Can someone help me to answer my question please? I was shocked and sick. It was terrible. I do not know what I have to do now.


Help interpreting basic Number Theory concept

I'm required to prove the following theorem:  Prove that for any natural number $N$, there exists $N$ consecutive integers none of which is a power of an integer with exponent greater than one  I'm having a lot of trouble understanding the meaning of this theorem. I don't know what information it's trying to tell me (I'm really really bad at Number Theory). Here's my attempt using an example. If we have $N=5$ that means we have five consecutive integers. Which 5 integers? Do I simply pick 5 random integers? If I pick $\{1,2,3,4,5\}$, $4$ is a power of an integer with an exponent greater than one. That is $2^2=4$. So the obviously I've chosen wrongly the consecutive integers. Could someone provide me with a detailed numerical example? Thank you for any help


Snap object on top of surface of other object

How do you snap an object on top of the surface of another object? I tried using the shrinkwrap modifier but that produced weird results.  If I have a cone, and a cube - I want to move the cone around so that it snaps perfectly along the faces of the cube


Prove that : $x_{n}=\sqrt[n]{n^{2}+2}$ is convergent.  I intended using inductive method. From inductive step, I supposed $x_{n}<x_{n-1}$, and I need to prove $x_{n+1}<x_{n}$. However, with $x_{n}<x_{n-1}$, I could only show that $x_{n-1} >1$. Please help me, thank you so much!


Open file with correct program, in terminal, based on extension

Is there any way to automatically open a file with the correct program, when using the terminal? Something similar with double clicking a file in GUI.  So for example having a pdf file, not need to write  evince foo.pdf   in order to open it.


How to install Xtreme Download Manager (XDM) in ubuntu 18.04?

In order to install Xtreme Download manager, I've used the following commands based on what is said .    sudo add-apt-repository ppa:noobslab/apps sudo apt-get update sudo apt-get install xdman     But here's what I get from the terminal and I can't get it installed:    sepideh@sepideh-Lenovo-ideapad-700-15ISK:~$ sudo add-apt-repository ppa:noobslab/apps [sudo] password for sepideh:   This PPA Contains Applications for Ubuntu/Linux Mint from different sources but debianized by http://www.NoobsLab.com  More info: https://launchpad.net/~noobslab/+archive/ubuntu/apps Press [ENTER] to continue or Ctrl-c to cancel adding it.  Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Ign:3 http://ppa.launchpad.net/noobslab/apps/ubuntu bionic InRelease Hit:4 http://us.archive.ubuntu.com/ubuntu bionic InRelease Hit:5 http://dl.google.com/linux/chrome/deb stable Release Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Err:8 http://ppa.launchpad.net/noobslab/apps/ubuntu bionic Release   404  Not Found [IP: 91.189.95.83 80] Get:9 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Hit:10 https://repo.windscribe.com/ubuntu zesty InRelease Reading package lists... Done E: The repository 'http://ppa.launchpad.net/noobslab/apps/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. sepideh@sepideh-Lenovo-ideapad-700-15ISK:~$ sudo apt-get update Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://dl.google.com/linux/chrome/deb stable Release Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Hit:5 http://us.archive.ubuntu.com/ubuntu bionic InRelease Ign:6 http://ppa.launchpad.net/noobslab/apps/ubuntu bionic InRelease Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Err:8 http://ppa.launchpad.net/noobslab/apps/ubuntu bionic Release   404  Not Found [IP: 91.189.95.83 80] Get:9 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Hit:10 https://repo.windscribe.com/ubuntu zesty InRelease Reading package lists... Done E: The repository 'http://ppa.launchpad.net/noobslab/apps/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. sepideh@sepideh-Lenovo-ideapad-700-15ISK:~$ sudo apt-get install xdman Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package xdman sepideh@sepideh-Lenovo-ideapad-700-15ISK:~$    What should I do?


How to send and receive data from Salesforce to a FTP server

My question is how I can intergrate Salesforce with different FTP servers in real time. I have read some articles about it, but to be absolutely sure I thought it would be a good idea to post a question here.  I want to be able to send and receive data from Salesforce as a csv file to a ftp server. How I'm thinking about doing this is listed below.  Send the data:  Create a apex class which query the necessary data in Salesforce and create a csv file. I guess this is trivial? Then send the file to a web service created in Salesforce, just by calling it in the apex code. Create a web service in Salesforce which receives the data from the apex code. This web service should in some way send the data to the appropriate ftp server. I guess I can simply modify some of the code provided by Salesforce to make this work? The file is sent. Receive the data  This one is a bit trickier. I guess I have to pull the data from the FTP server by using my web service, which then send the file collected to the appropriate apex class. Or, the FTP server could send the data to the SFDC web service, I don't know if this is possible? The web services on the other side that sends the data to the ftp server, could send it directly to the SFDC web service, which then again forward it to the apex class. I guess the web service will use the remote site url to connect to the SFDC web service?


Was this scene in Deadpool a reference or nod to the Marvel Cinematic Universe?

During the climactic scene of Deadpool, our eponymous hero travels to a new location       in order to face down Ajax and rescue Vanessa.   The setting of the scene looked quite familiar,      like it was one of the damaged helicarriers of S.H.I.E.L.D., possibly from the events in Captain America: The Winter Soldier.   Is there any source, official or otherwise (press publication, Twitter status, blog post, etc.), to indicate whether or not that's what it really is? Since Deadpool is part of the X-Men Cinematic Universe, is it even allowed to have such a reference (if officially acknowledged anywhere)?  This is not asking where the Amix Group got/came into possession of the carrier, like the linked duplicate below.


I have upgraded from 16.04 to 16.10 and when it reboots it starts normal but once at log in it freezes. Can't use keyboard or mouse. Please help!  To see what I'm really talking about... I made a video:


How to report a multiple linear regression equation when the interaction makes lower order items non-significant

I've read a number of the other discussions I can find on here about lower order items and interaction terms in regression but either my statistical incompetence is preventing from seeing it or I could not find a clear answer to the specific question I have. Any help would be very much appreciated!  I have a regression model in which I use sex and a personality trait to predict a separate outcome. Both sex and the personality trait do predict the outcome variable. However, there is a clear interaction: the personality trait is only predictive of the outcome in men. In men the association is very clear, whereas it is completely insignificant in women. Hence, there is an interaction, and this is supported by a significant R2 change when you add the interaction term to the model. When you add the interaction term, both sex and the trait alone become insignificant, so the main effects are no longer meaningful.  My aim is not to predict new data but to understand the phenomenon I'm observing and it is clear that you would say 'if you are male, then this trait predicts this outcome, but not if you are female'. However, I am obliged to report a regression equation. Should I still include the coefficients for the main effects in the equation even though they are now non-significant and so, it seems to me, shouldn't be included in a model to predict the outcome? If I should only include the interaction term in the equation, then should I also report the actual regression model as just including the interaction term, without the lower order trait and sex predictors, given that they go straight to insignificance when the interaction is included?  Again, any help would be much appreciated, and apologies if this is answered in the other threads about lower order terms but I just did not understand it!


Is $\sum_{n=2}^{\infty} (-1)^n \log (\frac{n+1}{n})$ convergent?

Determine what kinds of convergent it is: absolute convergent, conditonal convergent, or divergent. $\sum_{n=2}^{\infty} (-1)^n \log (\frac{n+1}{n})$. well to tell that maybe it's first to seperate log? $\log (\frac{n+1}{n})$ is $\log (n+1)- \log(n)$. Then the absolute value of it is $\log (n+1)- \log(n)$. Then I notify it's best using integral test. Then for the not absolute value, I use the alternate series test, because it's alternate series with $(-1)^n$ and it's going to 0 too.


I'm trying to choose a desktop environment for my future laptop, and have this thing with Unity: I generally don't like it so much (lacking configurability, high resources, etc.), but while I was using Ubuntu I found the HUD brilliant.  Is there    Any way to get that HUD in other DEs / with other WMs, or Anything like the HUD in Unity, to search application menus with a keybinding?


Chrome browser will not connect to intranet web addresses

I can access a internal address using http://companyweb which redirects to http://companyweb/default.aspx from my windows desktop fine. I can also access http://companyweb on my iphone.  However, when I type "http://companyweb" on my android device it searches the internet. If I type http://companyweb.domain.local, the default IIS7 (internet information service - windows web server) homepage is displayed. They are all connected to the same wireless network.  How can i get android to connect to this site?   Thanks


"Committed to supporting X" vs. "committed to support X"

I'm trying to edit a speech and found a commonly used phase which I'm not sure if I should amend it or not. The sentence goes like this:      [a subject] is committed to supporting [a project].    Should I amend it to the following?      [a subject] is committed to support [a project].    Is the original version fine? Does the meaning change if I amend it?


The given infinite series, $$\sum_{n=1}^{\infty} [{\sqrt {n^4 + 9}} - {\sqrt {n^4 - 9}}]$$ How do I determine whether this series is convergent or divergent?


What is the category name to describe "day", "night", or "dusk"?

I'm applying tags to a set of recorded data files, and I have to classify by when the recording appears to be taken (if it's light or dark).  TimeOfDay: Day TimeOfDay: Night TimeOfDay: Dusk  TimeOfDay: Dawn TimeOfDay: Night/Day # (the recording spans both Day and Night)   Is there another term to describe "time of day"?  Edit: As per the comments, removed most of the specific constraints - question now focuses on the terminology.


Why isn't it "an adblocker"?  I know that it should be a, but why does an feel so better and is an correct in this case?


How can I print every input from "for i in range" function in one line?

What I want to do is to write a program which first tells you to type a number (let's say 4), and then it tells you to name 4 capital cities in the world . In order to do that, I need to use "for i in range" function, right?. But after for i in range, how can I have all those names printed on the same line? I'm using python 3.4.4  Here's an attempt:


Why is the hat feature missing sometimes? Actually, It disappeared right now. Could someone tell me what's going on here? Maybe a bug?


If $k$ is the smallest positive integer such that $a^k=1$ and $a^n=1$, where $a$ is an element of group $G$, $n\in\mathbb{Z^+}$, then $k$ divides $n$

I am hoping for verification of this proof. My concern is if the contradiction really refutes that k does not divide n. PROOF Let $a\in G$ where $G$ is a group.  Let $k$ be the smallest positive integer such that $a^k=1$.  Let $n\in\mathbb{Z^+}$, such that $a^n=1$. This implies that $k\le n$.  If $k=n$ and $p=1$, then $n=kp$.  Thus $k$ divides $n$. Now consider $k<n$. If $k=1$, then $a^k=a^1=1$.  Choose $m=n$.  Then $n=m=1m=km$ and $k$ divides $n$. Now assume $k>1$ and assume $\forall q\in\mathbb{Z}$, $n\ne kq$. Since  $1<k<n$ we can exclude the cases on $q\le 0$ and we consider only $q>0$. Choose a $q$ such that $kq<n$ and $k(q+1)>n$.  This $q$ exists in view of the division algorithm, $n=kq+r$, where $r\in\mathbb{Z}$ and $0\le r < \vert k\vert = k$.  This implies that $kq=n-r<n$ and $n< kq+k = k(q+1)$. Subtracting $kq$ from both sides of the latter inequality gives $0<n-kq<k$. Thus, we have $a^n=1=1^q=(a^k)^q=a^{kq}$.  This implies that $a^{n-qk}=1$.  Since $n-kq<k$, this implies that k is not the smallest positive integer such that $a^k=1$, a contradiction. Hence, there exists a $q\in\mathbb{Z}$ such that $n=kq$.  Therefore $k$ divides $n$.


I am writing a C library that reads a file into memory. It skips the first 54 bytes of the file (header) and then reads the remainder as data. I use fseek to determine the length of the file, and then use fread to read in the file.  The loop runs once and then ends because the EOF is reached (no errors). At the end, bytesRead = 10624, ftell(stream) = 28726, and the buffer contains 28726 values. I expect fread to read 30,000 bytes and the file position to be 30054 when EOF is reached.  C is not my native language so I suspect I've got a dumb beginner mistake somewhere.  Code is as follows:  const size_t headerLen = 54;  FILE * stream; errno_t ferrno = fopen_s( &stream, filename.c_str(), "r" ); if(ferrno!=0) {   return -1; }  fseek( stream, 0L, SEEK_END ); size_t bytesTotal = (size_t)(ftell( stream )) - headerLen; //number of data bytes to read size_t bytesRead = 0; BYTE* localBuffer = new BYTE[bytesTotal]; fseek(stream,headerLen,SEEK_SET); while(!feof(stream) && !ferror(stream)) {     size_t result = fread(localBuffer+bytesRead,sizeof(BYTE),bytesTotal-bytesRead,stream);     bytesRead+=result; }     Depending on the reference you use, it's quite apparent that adding a "b" to the mode flag is the answer. Seeking nominations for the bonehead-badge. :-)   talks about it in the second paragraph, second sentence (though not in their table).   doesn't discuss the binary flag until halfway down the page.   mentions the existance of the "b" tag, but states that it "shall have no effect".


‘On’ vs. ‘at’ with immutable date-time string

I understand that on is used for dates and at for times, as in . But what can I use when I have a string consists of both a date and a time? The issue is that I can’t change the date-time string to add at between the date and the time—so my options are:     On 19 January 2015 10:53   At 19 January 2015 10:53   Which one is the better option?


Many 'this of that' - why does usage invert for dogs?

The question about  intrigued me because the subject of 'many this of that' reveals something about how we conceptualise unknown quantities. A countable thing (like the number of moths in the whole world) can be regarded as an uncountable entity (since I cannot possibly know the number) and therefore can be regarded, conceptually, as 'mothness'.  In which case I might express 'species of moth' rather than 'moths'.    So I looked at a number of Ngrams and was surprised at the result.   75% of people favour  over 'many kinds of foods'. 75% of people favour  over '... wines'. 75% of people favour  over '... cars'.   But the order reverses for dogs :   75% of people favour  over '... dog'.   I am interested in how we manage global concepts, whether fluid (wine) or disparate (food) or quantised (cars/dogs).   Can anyone suggest why there should be this reversal regarding dogs ?


I read most of the questions about an and a here, but still I'm not quite sure since I found that uniform should be "prefixed" with a instead of an (read in a comment here). So I totally lost the string here.     A US navy aircraft is helping with the search for debris, he says.   Is this correct or should it be An US navy aircraft...?


Can I use ext4 on my SD card in a non-rooted phone?

I know that on a rooted phone, it's reasonably normal to create a small ext4 partition for App2SD to use, but I'm not asking about that case:  I have a non-rooted HTC Desire running Froyo, and I'd like to format the whole of my SD card as ext4 instead of FAT.  I'm aware that this will mean that Windows PCs won't be able to use the card, but all my PCs run Linux so they should be fine.  Will the phone be able to access and use the card in this case?


I would like to use \paragraph{} as a subsubsubsection. It's working fine but I want to change the number to a letter.   For example instead of having 1.1.1.1 I would like to have 1.1.1.a.  How can I do that ?   Thx !


Is there a community to ask about translation, especially about Hebrew translation?   I didn't find any community that I can ask about such translation tools or general inquiries.


Optimize SELECT DISTINCT (with existing index) to avoid sequential scan

I have a records table with ~3 million records. The table has a column called record_type with an index.                                           Table "public.records"       Column       |            Type             |                      Modifiers -------------------+-----------------------------+------------------------------------------------------  id                | integer                     | not null default nextval('records_id_seq'::regclass)  record_type       | character varying(255)      |  Indexes:     "records_pkey" PRIMARY KEY, btree (id)     "index_records_on_record_type" btree (record_type)   The following query takes more than 1.8 seconds to complete:  SELECT DISTINCT record_type FROM records;   If I check the query planner, it looks like PostgreSQL performs a sequential scan on the table. I would expect the database to take advantage of the index.  EXPLAIN SELECT DISTINCT record_type FROM records;                               QUERY PLAN -----------------------------------------------------------------------  HashAggregate  (cost=101961.23..101961.40 rows=17 width=3)    Group Key: record_type    ->  Seq Scan on records  (cost=0.00..94465.78 rows=2998178 width=3) (3 rows)   Is there a way to speed up this query?


How to insert spacing for start of paragraph in tcolorbox?

I use the code below for some texts, but the starting spacing is missing from every paragraph. I would like to have the starting spacing at the red arrows like as it be at the blue.  \documentclass{article}  \usepackage[most]{tcolorbox}  \usepackage{lipsum} \usepackage{varwidth} \newtcolorbox{mybox}[2][]{enhanced,     before skip=2mm,after skip=2mm, colback=black!5,colframe=black!50,boxrule=0.2mm,     attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,     boxed title style={frame code={             \path[fill=tcbcolback!30!black]             ([yshift=-1mm,xshift=-1mm]frame.north west)             arc[start angle=0,end angle=180,radius=1mm]             ([yshift=-1mm,xshift=1mm]frame.north east)             arc[start angle=180,end angle=0,radius=1mm];             \path[left color=tcbcolback!60!black,right color=tcbcolback!60!black,             middle color=tcbcolback!80!black]             ([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)             [rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)             -- (frame.south east) -- (frame.south west)             -- ([xshift=-1mm,yshift=-1mm]frame.north west)             [sharp corners]-- cycle;         },interior engine=empty,     },     fonttitle=\bfseries,     title={#2},#1}  \begin{document}      \begin{mybox}[colbacktitle=green]{My title}         \lipsum[1-2]     \end{mybox}  \end{document}   Thanks in advance!!!


Subject-verb agreement when using singular they?

This is NOT a question about whether they/them is acceptable as a singular pronoun. I know some of you will have to die before you give that argument a rest, but I am starting here with the presumption that them/them IS an acceptible alternative to refer to non-binary gendered people. On to the question...  I was writing about a person who prefers the pronoun "they/them":     Talk to Abigail when they are a resident.   After I wrote it, I realized (assuming here in 2016 that "they" can serve as a singular pronoun - and more so here in 2017) that technically there is a lack of subject verb agreement. More correctly, I should write:     Talk to Abigail when they is a resident.   But of course that sounds terrible and wrong to my ear.  As they/them becomes an acceptable singular pronoun, do we amend the subject-verb agreement rules to use a plural verb with this singular subject?


As I remember, this question was asked by my Mathematics teacher to the whole class and we discussed this question "only" in a whole lecture. A cube, $6$ non distinguishable faces, is given. All we need to tell is the number of ways in which its faces can be coloured with $6$ different colours.  $1$. faces are to be coloured... and not edges !!  $2$. A face must be coloured with exactly one colour.  $3$. All six colours are to be used, say Blue, Green, Red, Yellow, Orange and White. as in the Rubik's cube.


When I search in Finder there are no results.    There are no results as I am typing, nor after pressing return.  There is no loading spinner which usually appears at the bottom of the window.  The loading cursor will sometimes appear, while hovering over the Finder window, after attempting a search. Spotlight searches work with no problems. On another account, both Finder searches and Spotlight searches work fine.   My troubleshooting:   I rebuilt Spotlight's index for the entire Mac, relaunched Finder, restarted, but there was no change. I trashed Finder's plist (com.apple.finder.plist) and relauched Finder to no effect. I reset Spotlight with the "sudo" method in Terminal , relaunched Finder but it didn't have any effect.     Specs:  iMac, 2009 Processor: 2.8 GHz Intel Core i7 Memory: 8GB Storage: 1TB SATA Disk OS X Yosemite 10.10.3 Finder Version 10.10.4


How do I get little enough stuff to please the Pope?

I had no problem pleasing the Pope the first time around, but now that I need to get the 5 Enlightenments, I'm stuck. I have $0, FL0, B0, T0, S0/25, W9/25, C0, E1. Workers don't count as things do they? If so, how do I get rid of workers? Do I need to get one more and then I can have 10 go to the Depot leaving me with none?


Find all prime $p$ such that $x^2=-1$ has a solution in $\mathbb{Z}/p\mathbb{Z}$

I have found by a numerical experiment that first such primes are:  $2,5,13,17,29,37,41$. But I cannot work out the general formula for it. Please share any your ideas on the subject.


Section numbering disappeared after updating titlesec package

I'm using classicthesis to write my reports. I've always use the tweaked version of it since 2011 for my stuffs (e.g. back then it was for the master thesis). Today after updating the package in MiKTeX, something went wrong with the section numbering: the section and lower levels numbering are all disappeared (!)  Before, it printed out all right:     1. My first section   1.1 First subsection   1.2 Second Subsection   Now only the Section title is displayed, the numbering is gone:     My first section   First subsection   Second Subsection   After some searching around I could narrow down the possible cause to be the latest version of titlesec package, but I don't know how to change either in the preamble of my main document with some options of titlesec, or go to the source of classicthesis.sty to modify some part.  For a long writing such as thesis, the structure is with chapter and part as the highest level, but for shorter writings, such as some 20-page report, I added one line to started with section as the highest level while avoiding numbering such as 0.1, 0.2     %this is to use section without chapter 0 numbering:   \renewcommand{\thesection}{\arabic{section}}   Anyway, in always printed out section together with its number pretty fine, until the update of titlesec today. I know that classicthesis uses titlesec to play with the displaying of header lines, however in the code of classicthesis.sty, section is not numbered, so I'm rather at a loss now how to get back the numbering.


Unknown equipment on the back of some runabouts

The runabouts in Deep Space Nine sometimes have additional equipment on their backs; this is a screenshot from S02E15 (Paradise), showing the Orinoco in the background with the unknown equipment & the Rio Grande in the foreground with a clean configuration:  What is the equipment & why is it only sometimes present?


Block editing of possible duplicate text?

Is this a new feature? I discovered today that you can edit the text accompanying the "Possible Duplicate" box. This should be prevented unless you are a Moderator. It could result in the loss of key linked information. See this  (I rolled back the change). Doesn't seem right to me since you have to VOTE on what possible duplicates to include with the question. By editing, you are taking away that vote.


There have been a few questions regarding installing this package in the past, but they now seem to be out of date. I'm using MiKTeX 2.9 and TexMaker. When I try \usepackage{mathtools} in TexMaker it will try to install the package for me but will fail. I took the advice given in this thread:   As suggested I tried installing the mh package using the MiKTeX Package Manager, unfortunately I get the "unknown archive size" error, which I have read means that the package no longer exists. Another thread (lost the link) said you can use the MiKTeX Package Manager to directly install mathtools, however I do not see mathtools listed anywhere in the MiKTeX Package Manager...   So I ask, is the package under a different name? Are there any other ways to install this package?


How to visualize dimensions of frame components in beamer?

Is there a package to visualize dimension of all frame components (head/footline, sidebars, navigation bar etc) in beamer? I tried to search for something similar to layout package, but did not succeed.


Books or resources for learning unified view of classical statistics?

I did a science PhD doing applied bayesian statistics, and I liked it so much that I decided to shift to statistics.  For the last 2-3 years have been working at a firm that has more of a frequentist focus.  It seems to me that the bayesian approach (at least what I learned) has an underlying theory that was laid out and I could understand.  Now I find this - more classical - field fascinating but I am looking for some resources to get a unified view of the matter.  For example, I am learning and applying anovas, F-tests and chi-squares, thinking about degrees of freedom, etc but part of me is looking for deeper understanding that would make it more than just methods.  Does anyone have any suggestions on books or more resources that provide such a unified, deeper focus?


Which is the correct way to refer to the letter "Z" — "Zee" or "Zed"?

So I am giving a presentation to an American audience tomorrow, and I have rather cluelessly labeled some components on a Powerpoint slide using the alphabet. When I talk about "component Z", I want to say the right thing. It's too late in the night now to re-label with numbers. I grew up calling it "Zed", but noticed many Americans prefer "Zee"; I want to be correct, not herd-minded.


Windows 10: Middle-click a Taskbar icon to close that program

Is there a way to configure Windows 10 to, upon a middle-click of a program's taskbar icon, close that program, instead of opening a new copy of that program?  I'd prefer a "native" solution (involving no 3rd-party software), but if that's not possible, a 3rd-party software solution would be acceptable.  (Note: Same question as , but I'm interested in Windows 10 rather than Windows 7.)


APA style in biblatex with three authors

I am trying to figure out why, when using biblatex with style = apa, there is no .et al abbreviation in my text with more than 3 authors. I cannot think of any plausible explanation, maybe someone sees smth that I don't in my latex preamble.  \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc}   \usepackage[ backend = biber,  style = apa,  defernumbers=false, uniquelist=true]{biblatex} \DeclareLanguageMapping{english}{american-apa}  \usepackage{xpatch}  \AtEveryCitekey{\ifciteseen{}{\clearfield{namehash}}}  \xpatchbibmacro{cite}   {\printnames{labelname}}   {\ifciteseen      {\printnames{labelname}}      {\printnames[][1-99]{labelname}}}   {}   {}   \xpatchbibmacro{textcite}   {\printnames{labelname}}   {\ifciteseen      {\printnames{labelname}}      {\printnames[][1-99]{labelname}}}   {}   {}   \addbibresource{dummy_lit.bib} %name of the .bib file with my references  \begin{document}  I would like to have the abbreviation "et. al" in the running text whenever the references have more than three authors and not this:  \textcite{Author2000}   \end{document}   This is my bib entry stored in a separate file called: dummy_lit.bib   @Article{Author2000,    author       =  {Last name1, Firstname 1 and Last name2, First name2 and Last name3, First name3 and Last name4, First name4 and Last name5, First name5},    title        =  {The title of my article},    journal      =  {The journal},    year         =  {2000},    volume       =  {1},    number       =  {2},    pages        =  {1-10},    keywords     =  {ref} }


The visibility dropdown isn't there in the object properties tab in cycles for me (2.92)

Third time asking this because the mods keep closing the question before I get any answers.  I'm new to StackExchange so forgive me if I'm somehow doing this wrong on the forum here. In my Object Properties tab, for ALL objects, in cycles render, there is no visibility tab.  This is the case when I have any object(s) selected, even if it has a material applied to it.  This is what I see:  I'm just trying to make the plane a shadow catcher.  That's all I'm trying to accomplish.  But nobody on Reddit can wrap their head around why I don't have the visibility dropdown here. My blender is bone-stock.  I just installed it a few days ago.  I haven't installed any plugins or mods or anything.  Haven't even adjusted my preferences. Does anybody have any ideas?  Mods, PLEASE leave this question up this time!!  Taking it down just because you think it's similar to another question when it isn't similar at all, isn't helping here! Thanks in advance everybody!


Problem of the pdf plot for Weibull distribution

I'm using MATLAB to plot the Weibull distribution function. But the y-axis, obviously, is not probability. Also, the plot on Wikipedia ()has same y-axis as mine, so my question is: is there something wrong here? I'm pretty sure that my code is correct. So Why the y-axis is not probability ?


How can I check if the Active Object has a specific modifier so that when I run my code, it doesn't add the modifier again to the object? It should add the modifier only to the object which does not use that modifier.


script for backup every two minutes with cron daemon

How can I write a script for a backup of a directory (/home/name) every two minutes? how do i use the cron daemon? Thank you


What is the best way to export a content type and its fields?

How can we export a content type, including its fields, and import it into staging or production?


What is the difference between using an ND filter versus 2 polarizers?

I know what an ND filter does. I know what a polarizer does. I also know what two polarizers stacked together and rotated properly do.  So the question: why should I use an ND filter to achieve a darker image at the input, when I can use 2 polarizers instead and rotate them to exactly as dark an image at the input as I want?    Also asked by   Is it possible to use two polarised filters to create a variable ND filter?  I was reading that by attaching two polarised filter we could create a variable ND filter.   Has anyone done this? How was this done? Any drawback (colour cast, quality...)? What would be the strength in light filtering of such filter?


Return New DateTime From SQL Server SELECT DateTime

I have a SQL Server table that has a datetime column. What I need to do with a SELECT statement is return (I think) a calculated column that takes the time from the datetime column and puts it together with the current date.  So in the table I may have...  [TargetPlot].[TargetDate] 2015-12-09 10:15:00 2015-12-09 10:30:00 2015-12-09 10:45:00 2015-12-09 11:00:00 2015-12-09 11:15:00   But what I need the SELECT statement to return is (assuming the current date is December 11th)...  [SomeCalculatedField] 2015-12-11 10:15:00 2015-12-11 10:30:00 2015-12-11 10:45:00 2015-12-11 11:00:00 2015-12-11 11:15:00   Thanks for any advice.  Andy


Does Windows Server 2008 R2 really not need to be activated?

I am an inexperienced Windows user, but need to use Windows server for my FileMaker server, so have a new hosted server. It is Windows 2008 R2.   In Control Panel > System and Security > System it says, "30 days to activate. Activate now." followed by a product ID.  I asked my hosting provider about this and they replied, "You can disregard the Windows Activation window. While activation is possible, Windows does not need to be activated in order to connect to and use the server desktop."  Please note that this is not a question about licensing per se. I'm just trying to clarify what "activation" means and whether it's important or not.


I understand that a calculation such as 0.0375 + 0.0375 + 0.0375 results in 0.11249999999999999.  If I were to continually add '0.0375' to a double variable in a for loop (x times), would you find that the result at each iteration gradually becomes more and more inaccurate due to the issues with floating point precision?  I can tolerate an approximation such as the one shown above, but can't have a result which continues to deviate from the actual result as the number of iterations increases.  EDIT:  I've run the following test (with several values):  std::cout.precision(17);  double t = 0.42300*783698177;     std::cout << std::fixed << t << std::endl;  double g = 0; for (int y = 0; y < 783698177; y ++){     g = g + 0.42300; }  std::cout << std::fixed << g << std::endl;   As I suspected, as the number of iterations increases, the more likely (or simply the more) the result deviates from the actual value.   Has anybody else observed this?  Although I feel I understand why this is happening, could somebody provide an intuitive (or basic mathematical) explanation for why this occurs?


After looking for something like that  and searching the site. I haven't found something that works (may be I skipped something important).  I would like an automated way of telling tikz the final size of the tikzpicture.  I want to draw something and I want tikz to calculate automatically the scale to show me the maximum possible. Something like \begin{tikzpicture}[scale to width = \textwidth] will scale the figure so the final tikzpicture has a width of \textwidth. The cool thing would be to make also something like scale to height = …, with both forms keeping the original ratio of the tikzpicture. But if both are issued at the same time there should be a way of having the final size fixed.  I would like this to work within tikzpicture (and not with scalebox or resizebox) so that the resulting image has the correct font size and line width.  Example:  \documentclass{scrartcl} \usepackage{tikz} …% Some magic code \begin{document}  \begin{tikzpicture}     \draw (0,0) rectangle (1,1);     \draw (0.5,0.5) node {Center}; \end{tikzpicture}% This should be a square of 1cm x 1cm.  \begin{tikzpicture}[scale to with = 10cm]     \draw (0,0) rectangle (1,1);     \draw (0.5,0.5) node {Center}; \end{tikzpicture}% This should be a square of 10cm x 10cm with the word in correct size  \begin{tikzpicture}[scale to height = 8cm]     \draw (0,0) rectangle (1,1);     \draw (0.5,0.5) node {Center}; \end{tikzpicture}% This should be a square of 8cm x 8cm with the word in a correct size  \begin{tikzpicture}[scale to with = 10cm, scale to height = 6cm]     \draw (0,0) rectangle (1,1);     \draw (0.5,0.5) node {Center}; \end{tikzpicture}% This should be a rectangle of 10cm x 6cm with the word in a correct size/shape  \end{document}


What is the difference between "How to say..." and "How do I say..."?

I've heard from an English teacher, who's also a native speaker of English, that it is wrong English when we ask: How to say "Paani" in English? ("Paani" is a word of Indian language.) According to him, we should rather ask: How do I say "paani" in English? That kind of confused me. So, I want clarification on whether it is wrong or right and what the difference between the both phrases is.


Finding solution of a Trigonometric equation

$$\tan A + \tan 2A + \tan 3A=0$$ I tried converting these all in sin and cos and I got the answer but the answer didn't match.  So any one could just help me.  Thanks


$\forall$ At the beginning or at the end?

I have a set of real numbers $x_1, x_2, \ldots, x_n$ and two functions $f:\mathbb{R} \rightarrow \mathbb{R}$ and $g:\mathbb{R} \rightarrow \mathbb{R}$.  What are the differences between the following statements?   $\forall v \in \{1, \ldots, n\} ~f(x_v) = 0 \vee g(x_v) = 0$ $f(x_v) = 0 \vee g(x_v) = 0 ~\forall v \in \{1, \ldots, n\} ~$


Is there a way to see the code in an answer in full screen or pop it out?

In general the size given for the answers it is just right, but some times there are answers with lots of code that is rather hard to see.  I was wondering if maybe i am missing some functionality to deal with that, I have seen in some sites sometimes you can popup the code in a separate window or see it in full screen.  I am using IE 8 (not my choice) and sometimes some of the javascript doesn't work well. That is why I ask here. Sorry if is a foolish question.  Thanks!  PS: I am not sure what is the appropiate tag for this question either.


How do I use a JavaScript variable in CSS?

I am trying to use a JS variable in CSS.   In JavaScript it's:  var bodybg = "#fff"   And in CSS:  body {   background-color: bodybg; }   How do I achieve that?


ERROR: sudo: /etc/sudoers is mode 0777, should be 0440

sudo: /etc/sudoers is mode 0777, should be 0440 sudo: no valid sudoers source found, quitting sudo: unable to initialize policy plugin   I have Ubuntu Server 12.04.4 LTS and this sudo problem, i cant use sudo command, please help everyone, how to fix this sudo error.    Please Help!


Is there a way to edit Page Layout Assignments via Apex code? I've read that using the Metadata API for example is not possible. I can query PageLayout records using the Tooling API, but can't edit those things. Any help? Thank you in advance


Let us say I have a beaker floating in a water tank. Suddenly I put some water in the beaker also. The figure here shows the exact situation   Now I want to draw the FBD of the beaker. I am somehow confused with the role of the atmospheric pressure in drawing the FBD. I thought of two ways of drawing this and I am just unable to figure out which one is right.    Here since the beaker is floating an $F_{buoyant}$ is there in the upward direction which the net mass (beaker+water in beaker) would put its weight downward.  But while solving one question I came to know that total force that a liquid exerts on the bottom of the container is $P_0+m_{liquid}g$ ($P_0$ is the atmospheric pressure). So should the downward force on the beaker be $(M_{beaker}+M_{water in beaker})g+P_0 S$ (S being the base area of the beaker) as in the second diagram down here.    Here the $P_0S$ due to atmospher on the tube gets cancelled by the $P_0S$ exerted by the water in tank on the tube. But what about the $P_0S$ from the water present in the tube? Do the FBD's apply like the one in the new image?


An old story I heard starts by two people that was arguing about how much land a man need. So they called to a young man, and said to him:     You are stating in that point, and start running all the day. All the area you cover before sunset will be yours. But you must return to the original point, otherwise you get nothing   So I considered what is the best route for him to get the maximal area.  More mathematical form:  Given a number d, what is the continues closed shape with the maximal area and perimeter d?  If we are limited to rectangles, the answer is "a square", what leads me to guess the optimal shape is a circle. Is it true and can it be proven?  What I can think about is that the shape must be convex, otherwise we can 'cut' it and save line. But I have no idea how to eliminate some strange elliptic shapes.


iterator over references of std::vector>

I have a class that has std::vector<std::unique_ptr<T>> and I want to crate an iterator over the reference of pointers that std::unique_ptr holds.  #include <iostream> #include <vector> #include <memory> #include <algorithm>  class Pointer { public:     Pointer() {}     ~Pointer() {}      void printSomething()     {         std::cout << "Hi" << std::endl;     } };  class Keeper { public:     typedef std::vector<std::unique_ptr<Pointer>> vector_type;      Keeper() {}     virtual ~Keeper() {}      void push_back(vector_type::value_type pointer)     {         data.push_back(pointer);     }      vector_type::const_iterator begin() const     {         return data.begin();     }      vector_type::const_iterator end() const     {         return data.end();     } private:     vector_type data; };  int main() {     Keeper keeper;     keeper.push_back(std::make_unique<Pointer>());      std::for_each(keeper.begin(), keeper.end(), [] (auto pointer) {         pointer.printSomething();     }); }   I got a cascade of errors that I cannot put here...  How to provide an interface to interact over the references of std::unique_ptr?


My professor showed us the basics of DES, and then displayed this slide where the Complement Trick can be used as a way of cracking DES.  Could someone explain the math to me please?


How come the Horcrux in attached to Harry's soul (for years) does not affect him like the  Horcrux in the locket.   The Horcrux in the locket affected Ron's, Hermione's, and Harry's moods (when worn for any  length of time) and even hindered Harry from making a Patronus (while he was wearing it).   The Horcrux attached to Harry's soul seems almost benign by comparison (unless of course  Voldemort is near or trying to get into his mind or killing someone etc.)  Any explanations why it is benign?


Creating binary (custom length) string in C++

I am using Apache Thrift RPC (Compiled to C++) mechanism to communicate with Apache Flume. I have to use specific API that this platform supplies. I want to send binary data, But the RPC function accepts only std::string as a parameter. And because of that I only able to send that binary data that comes before the first appearance of 0x00.  u_char bin[10] = {'a','b',1,'d','e',0,'2','3','4','5'}; // Takes only the first 5 bytes, and sets a length of 5 string art_test((const char *)bin);   I searched through the source code and the function I call casts the str.data() into (uint8_t*) and sends the data of length str.size().  uint32_t ssize = static_cast<uint32_t>(str.size()); trans_->write((uint8_t*)str.data(), ssize);   Is there a way to create a 'binary string', with uint8_t as a data and with specified length? Maybe even create the in memory representation of string of my own with the desired binary data.


Can someone please help me to understand when ROWCAUSE is = Manual or Owner or ImplicitChild or Rule.  and if ROWCAUSE is not Manual can we still delete shareObject from apex if yes then how because I was getting an error while querying and deleting shareobject without Rowcause = manual I was getting an error INVALID_CROSS_REFERENCE_KEY  Thank you so much in anticipation!


So basically I imported an OBJ from a game (Roblox) and it has various parts, but it does not go where I want it to go when I import it.  It is in Blender and its visible I just cannot find it. Anyway to teleport to an object or teleport a object to you?


Why did James and Sirius distrust Lupin and trust Pettigrew?

Remus: "...he thought I was the spy, Peter. I assume that's why you didn't tell me, Sirius?" Sirius: "Forgive me, Remus."  — Remus and Sirius reflecting on the first wizarding war while confronting Pettigrew. In the first wizarding war James and Sirius had come to distrust Remus and also James and Lily Potter wanted to use Sirius as their Secret-Keeper, but Sirius thought that would be too obvious, and thus suggested Peter Pettigrew instead. Why did they distrust Lupin and trust Pettigrew?


Which's the length of the command line buffer, per shell... and per operating system (if applicable)?  Mostly interested in contemporary versions of  and  and  and , but if anyone knows everything that'd be lovely as well. :)


How can I verify that my flag was recorded?

I read a comment I found problematic.  I clicked on the little flag, chose the bottom-most radio button in the list of reasons for flagging, and wrote a short text in the input box.  I submitted the flag but no acknowledgment message appeared.  Should one have appeared?  Is there any way for me to verify that my flag actually went out?  Is there any way for me to find out later what the outcome of the flag was?  Is there any way for me to read what I wrote?  What about flags on my own posts?  Is there any info about these that I can see?  I have tried looking at the various similar questions that were suggested by the software, but none of them are recent, and I suspect that the answers that I found through this approach are obsolete.


Show that the projection map of $[0,1]  \times \mathbb{R} $ onto $\mathbb{R}$ is a closed map.   I know that [0,1] is a compact space but I am not sure how this implies that the projection map is closed. I know that in plain old $\mathbb{R} \times \mathbb{R} $ the projection map is not closed because the graph of $f(x) = 1/x $ is closed but has open projection and that in $[0,1]  \times \mathbb{R} $ we can't have this type of function, but that's it. Thanks for any tips or help.


Prove the inequality $\frac{a}{1+a^2}+\frac{b}{1+b^2}+\frac{c}{1+c^2}\le\frac{3\sqrt3}{4}$

Let $a,b,c$ are nonnegative real numbers such that $a^2+b^2+c^2=1$. Prove the inequality $$\frac{a}{1+a^2}+\frac{b}{1+b^2}+\frac{c}{1+c^2}\le\frac{3\sqrt3}{4}$$  I tried the method of Lagrange multipliers and Jensen's inequality but I have not been proved this inequality


What's the preferred method of writing AJAX-enabled plugins?

I'm wondering what the preferred method is for dealing with AJAX calls. Should one use the same plugin php file to process the POST or a separate one? Which is cleaner or safer?


I got an text from a "friend" her photo visible stating she got a substantial amount of money from an international monetary fund project to help seniors, retirees, unemployed, etc.  Just had to answer a few questions. "She" sent a link which I pulled up and answered basic personal questions: name, address, etc. and why I needed the money. I did send my driver's license. A few minutes went by and you would "choose" the amount and what you had to put up front to cover various fees. At that point and realizing the trail of messages from my friend was not the friend I knew I realized it was a scam and stated so.  Arguably, they went on to assure me it was not.  I went no further with it.  I did NOT give out social security info, bank info or credit card info.  How much serious trouble am I in?


How should I handle the really simple (should-be-inlined) functions with dlls? If I want it to be inlined, it has to be defined in the header. If I mark it with dllexport, it can't be inline.  Inline case:   faster code (simple getters and setters) require recompiling when modifying the implementation implementation has to be in the header can't "hide" the implementation   Export case:   possibly slower code because of the stack push/pop and call cost recompile just the specific object implementation is "hidden"   However, what's about with the templates? Specific functions are generated at compile-time from the template functions, so its implementation cannot be in the cpp file. So how should I handle them?  Thanks  Edit  This question was marked as possible duplicate. Well, I don't agree with it. That question is talking about why the template functions have to be defined in the header files (I already know that, read the last section of my original post). My question is talking about the inline/dllexport relationship. Keep in mind that (at least I think) I know how inlining and dllexporting works so it's not another "why can't I export inline functions" question.


Comments on iOS app sorted from newest to oldest

I was reading the comment as usual, then there is a new comment. The app reloaded, and huh, it sorted the comments reversely.      App Version: 1.4.2.2 Device: iPad 2 (GSM) OS Version: Version 9.3.2 (Build 13F69)


If someone says "David is not really a leader", it means something like: the speaker believes that David isn't the kind of person you would think of as a without-doubt a real leader; but the speaker isn't necessarily saying that David is definitely a very poor leader.  If someone says "David is really not a leader", it means that the speaker thinks that David is definitely a very poor leader.  What analysis (grammatical, dictionary, etc?) can help me understand how this difference in meaning is created?


Does the (relativistic) mass change? Why?

I learned recently that when an object moves with a velocity comparable to the velocity of light the (relativistic) mass changes. How does this alteration take place?


Problem in finding the divergence at a point

I am solving a problem given as  Divergence of $\frac{\textbf{r}}{r^3}$ is a) zero at the origin b) zero everywhere c) zero everywhere except the origin d) nonzero everywhere  The answer is given as (c) zero everywhere except the origin But I get answer (b) I am presenting my solution $\textbf{r}=x\hat i+y\hat j+z\hat k$ $r=\sqrt{x^2+y^2+z^2}$ So, $\vec\nabla.\Big(\frac{\textbf{r}}{r^3}\Big)=\frac{\partial x/r^3}{\partial x}+\frac{\partial y/r^3}{\partial y}+\frac{\partial z/r^3}{\partial z}$ $\frac{\partial x/r^3}{\partial x}=\frac{\partial \big(x/(x^2+y^2+z^2)^{3/2}\big)}{\partial x}$ $\implies \frac{\partial x/r^3}{\partial x}= \frac{(x^2+y^2+z^2)^{3/2}-3x^2(x^2+y^2+z^2)^{1/2}}{(x^2+y^2+z^2)^3}$ Similarly, $\frac{\partial y/r^3}{\partial y}= \frac{(x^2+y^2+z^2)^{3/2}-3y^2(x^2+y^2+z^2)^{1/2}}{(x^2+y^2+z^2)^3}$ and $\frac{\partial z/r^3}{\partial z}= \frac{(x^2+y^2+z^2)^{3/2}-3z^2(x^2+y^2+z^2)^{1/2}}{(x^2+y^2+z^2)^3}$ So, $\vec\nabla.\Big(\frac{\textbf{r}}{r^3}\Big)=\frac{3(x^2+y^2+z^2)^{3/2}-3(x^2+y^2+z^2)(x^2+y^2+z^2)^{1/2}}{(x^2+y^2+z^2)^3}$ Thus, $\vec\nabla.\Big(\frac{\textbf{r}}{r^3}\Big)=\frac{3(x^2+y^2+z^2)^{3/2}-3(x^2+y^2+z^2)^{3/2}}{(x^2+y^2+z^2)^3}=0$ Hence, I get the answer (b) Zero everywhere I am not able to understand how the divergence in non-zero at origin and if it is non-zero then what will be its value at origin? Please clarify the doubt.


Wifi adapter not found, rtl8821ce no longer working [18.04]

When I installed ubuntu 18.04 on my HP Pavilion 15z 6 months ago, I had trouble getting the wifi driver to work. Installing the  solved my problem. 6 months later, I'm having trouble again with the "No wifi adapter found". I booted into my Windows 10 and the wifi works, so my wifi card is fine.   I uninstalled and reinstalled the rt18821ce from the kernel with no problems.  cd rtl8821ce/ sudo ./dkms-remove.sh sudo /dkms-install.sh   Then rebooted, but still no connection to wifi card.  Following the instructions on , I removed the rt18821ce and then installed official ubuntu package.  sudo dpkg -i rtl8821ce-dkms_5.2.5.2.1.30816.20190425-0ubuntu1_all.deb   Rebooted, still have the issue.  Here's information on the details of my network card.  sudo lshw -C network    *-network UNCLAIMED               description: Network controller        product: RTL8821CE 802.11ac PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:02:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: ioport:f000(size=256) memory:fe900000-fe90ffff   *-network        description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:03:00.0        logical name: eno1        version: 15        serial: f8:b4:6a:a7:75:ff        size: 10Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s        resources: irq:47 ioport:e000(size=256) memory:fe804000-fe804fff memory:fe800000-fe803fff   lspci -nnk | grep -A2 0280  02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]     Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter [103c:831a]     Kernel modules: rtl8821ce   dmesg | grep -i firmware  [    0.474628] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored [    1.328217] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge [    2.721778] psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x4d5f02) [    4.700397] Bluetooth: hci0: RTL: rtl: assuming no firmware upload needed [    4.842078] [drm] Found VCN firmware Version: 1.73 Family ID: 18 [    4.842083] [drm] PSP loading VCN firmware [  120.770143] usb 1-2.3: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"   kernel version 5.0.0-37-generic  I have a  if that helps.


I upgraded to Ubuntu 17.10 a few days ago.   Gnome-shell was eating up my memory (somewhere around 13% according to topand climbing), so I started looking for solutions online. I opened up Settings to check my gnome version, and as soon as I did, my computer ground down to a halt.  After 15 minutes of waiting for the terminal to open up, it finally did, I managed to write in top, and after about 5 minutes I saw that gnome-software had taken up over half of my available memory (56%).  In a painstaking process that took another 10 minutes I managed to write sudo kill -9 PID, and free up my computer. My relief lasted only for about a minute before my laptop slowed down to a crawl again. At that point I rebooted.  What do I do about gnome-software? How can I fix this?


How $a+bi$ becomes $\left(\matrix{a & -b\\b & a}\right)$?

How do you change something into a matrix? E.g)      How does $2+3i$ become $\left(\matrix{2 & -3\\3 & 2}\right)$   Is  there a specific rule for changing an input into a matrix that has to be learned? Or how is it done?  Thank you.


I was wondering if the following is correct:  Let $V=\bigoplus_{i\in\mathbb N}\mathbb Z$ and $R=\text{Hom}_{\ \mathbb Z}(V,V)$. Regard $R$ as an $R$-module. Then $R$ is free of rank $1$ with basis $\{\text{id}_{V}\}$. Now define a map $\phi$ as follows:   where $f_i: V \to \mathbb Z$ for each $f\in R$ are linear maps. Then $\phi$ is an isomorphism of $R$-modules.  Can I conclude as follows?  (1) Since $\phi$ is an isomorphism of $R$-modules we have $R\cong R^2$.  (2) Due to (1) we have $R^n\cong R^m$ for any $n,m\in\mathbb N$.  (3) Due to (2) we have that $R$ as an $R$-module is free of rank $k$ for any $k\in\mathbb N$.


Movie from 80's-90's where space station (humans and aliens friendly) has some kind of air ventilation malfunction

So it is my first post and I don't have much to go on.  It is a movie from my childhood (I was born in 88). I assume it was from the 80's or 90's (Color film).   I remember it being a sci-fi with some light humor, where a space station is shared by aliens and humans (almost sure it was on a planet). It has some kind of malfunction (I think it was with the air ventilation system) and I recall there was some kind of breach in parts of the station, so the oxygen was lost in those sections.   I remember one scene where they were in a waiting area. And also red/amber tones in the film.  The movie is a little eccentric and doesn't take itself too seriously.  I recall a female character as one of the main roles in the movie, accompanied by another person. Not sure if one of them was an alien. They were escaping/hiding from somebody.  Space station was big. Seemed to be more like a planet station with big rooms and lots of people/aliens (hundreds or more).


How do you turn day into night and night into day?

Easily to explain hard to do.  I wonder if its possible for me to take photo of my street in the day and make it look like night because night photography is beautiful but night requires high shutter speeds which doesn't fit for tree leaves. I can add distant lights etc later through a night shot.  This idea came from my idea of filming night scenes in day with low ISO high quality and then edit them to make them look like night. Too bad I dont have RAW camera. So how well it would look like with h264?  And as the second question. How much quality/realism is it possible to do the same in night through 10 sec 20 sec and 30 sec image stacking and then make it look like it was taken in the day assuming there are no passing cars etc?


No network on a fresh install of Ubuntu 16.04 on Dell laptop

I did a fresh install via USB of Ubuntu 16.04 on my 2014 model . Everything went well except there's no network. It doesn't even show the WiFi options in the network.   How do I diagnose ?  anjanesh@anjanesh-Vostro-2520:~$ sudo lshw -C network [sudo] password for anjanesh:    *-network UNCLAIMED             description: Network controller        product: BCM43142 802.11b/g/n        vendor: Broadcom Corporation        physical id: 0        bus info: pci@0000:07:00.0        version: 01        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: latency=0        resources: memory:f7c00000-f7c07fff   *-network        description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:09:00.0        logical name: enp9s0        version: 07        serial: e0:db:55:aa:12:84        size: 10Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s        resources: irq:17 ioport:e000(size=256) memory:f0004000-f0004fff memory:f0000000-f0003fff


Let $X$ be a random variable.I want to prove:  $E[x]=\int_{-\infty}^{\infty}{P[X > x]dx}$...(*)  Here is my proof.let $f$ be the PDF(probability density function) of $X$.$\int_{-\infty}^{\infty}{P[X > x]dx}=\int_{-\infty}^{\infty}{(1-\int_{-\infty}^{x}{f(t)dt)}dx}$.For the right hand size,we integral by part.  $\int_{-\infty}^{\infty}{(1-\int_{-\infty}^{x}{f(t)dt)}dx}=(x-x\int_{-\infty}^{x}{f(t)dt})\mid_{-\infty}^{\infty}+\int_{-\infty}^{\infty}xf(x)dx$.Since the first item $(x-x\int_{-\infty}^{x}{f(t)dt})\mid_{-\infty}^{\infty}$ equals zero,we have proved $E[x]=\int_{-\infty}^{\infty}{P[X > x]dx}$.  However I find my proof is $\textbf{WRONG}$ because PDF $f\quad\textbf{May Not be continous}$.How can I handle this case?Is (*) always right,or exists some counterexample?Well I am not good at probability theory,I search for help.


In Drupal 7, What are some methods to prevent or detect botnets hammering your site?

In drupal 7, what are some methods to stop botnets hammering your site? I have captcha protecting my registration page, but this doesn't stop them from bootstrapping my site when they land on the page. If enough load can be put on that page, it would lag my server. What are some tricks or modules that can prevent this scenario?


How to use Koma-script only to change font size?

I've been using \documentclass{article}, but would like to set a default font outside the range of that document class.   The recommended solution I found on tex.exchange was to use KOMA-script, but this has changed the default font and somehow made my document longer.   Is it possible to change the document font size (using KOMA-script or otherwise) in such a way that does not require additional tweaks? If not, how can I at least make the font in KOMA-script scrartcl match the default in article?  EDIT In my defence, the linked answers are somewhat lacking:   First solution suggests \usepackage{scrextend} but the example\commands\syntax are not commented or explained, nor is any reference linked. While providing a starting point, this would require one to find appropriate documentation for this package that addresses this particular use (= v. difficult for novice).  Second solution suggests extsizes followed by a quote from the documentation (again without linking to it so that one could read further for clarification) discouraging its use for ambiguous reasons (nb this is at least the second place extsizes was discouraged w/o explanation, even though it was the solution I was personally looking for (as far as I know!)). Related to the lack of linked reference, no examples are provided, which leaves a novice to continue searching w/o knowing what exactly they are looking for.  Third solution suggests changing the document class (scrreport), which does not address the question posted here. ibid. (change to memoir)   It seems to me, from my limited vantage point, that there are likely many tangential, more advanced, issues related to this problem; a problem very likely to present itself to novice users ill-equipped to understand, sort or evaluate the various solutions as they are stated.   To clarify: I believe the primary audience for this question is relatively novice users; whereas the proposed solutions, IMHO, are not well suited to that audience.   This problem seems like a great stepping stone for users to advance their knowledge, I'd suggest a well-documented Q&A that facilitates that process (& would be happy to take this on, if anyone can point me to the appropriate resources).


I work in an IT area and sometimes I need a suggestion on what library or framework to use in certain situations. But when I read what topics I can and cannot ask on a site (especially on Stack Overflow), I see that I cannot ask for suggestions like this. So, on what site can I ask for this kind of suggestions that are related to programming?


Creating a form action which generates a PDF

This is not a duplicate question!  The thread I have been referred to uses highly OS dependent ways of accomplishing this task. I am looking for something that OS independent.  Please remove the duplicate classification.    I am trying to create some forms using hyperref. Looking at , it appears that it is possible to simply generate a PDF (that a user could save to a PDF file) with user input. Using the following code construct:  \begin{Form}{action=XXX} ... \end{Form}   what should XXX precisely be for my case? I could not find any relevant Adobe or hyperref documentation. There are examples of XXX for mailing the form, or sending off the data to a cgi script, but not what I am looking for.


What is the difference between $Z/(4)$ and the field $F4$?

I assumed that if we quotient $Z$ by the ideal generated by 4, it will be the same as the field $F4$. It turns out not to be the case because $Z/(4)$ is not a field.  In general, when is $Z/(n) = Fn$?


Recently I took a test where I was given these two limits to evaluate: $\lim_\limits{h \to 0}\frac{\sin(x+h)-\sin{(x)}}{h}$ and $\lim_\limits{h \to 0}\frac{\cos(x+h)-\cos{(x)}}{h}.$ I used sine and cosine addition formulas and found the value of each limit individually, eventually canceling out $\sin x\cdot \frac1h$ and $\cos x\cdot \frac1h$ because I learned that we can evaluate limits piece by piece. As a result, I got $\cos x $ and $-\sin x$ as my two answers. However, my teacher marked it wrong saying that we cannot cancel $\sin{x}\cdot\frac1h$ or $\cos{x}\cdot\frac1h$ because those limits do not exist. Can someone please explain why this doesn't work? I thought that we can cancel those limits out since we never look at $0,$ just around $0,$ when evaluating these two limits.  Sine: $$\frac{\sin(x+h)-\sin(x)}h=\frac{\sin(x)\cos(h)+\sin(h)\cos(x)}h-\frac{\sin(x)}h$$  $$=\sin(x)\frac1h+\cos(x)-\sin(x)\frac1h=\cos(x)$$  Cosine: $$\frac{\cos(x+h)-\cos(x)}h=\frac{\cos(x)\cos(h)-\sin(x)\sin(h)}h-\cos(x)\frac1h$$  $$=\cos(x)\frac1h-\sin(x)\cdot1-\cos(x)\frac1h=-\sin(x)$$  Note: I am allowed to assume $\lim_\limits{x\to 0} \frac{\sin(h)}h=1,\lim_\limits{x\to 0} \frac{\cos(h)-1}h=0.$


When do comments on deleted posts show up in your comment history?

This was a comment I made on a joke nomination (and the nomination has since been deleted). I saw it in . The HTML if it helps:

Jun
 9

 	       comment
                 What? I thought expert sex change were going for pay for it.
   A quick scan of my other comments indicate none were on deleted posts, and I don't recall ever seeing comments on deleted posts showing up there before.


Visual Studio C++ console output when EXE started from console, no console when started without console

A Visual Studio C++ application, I'd like stdout to go the the console when the application is started from the console, but I'd like the application to not open a console window when started by double-click (and I'm happy to not see the stdout). How can this be done? Using the Properties/Linker/System/SubSystem option to specify /SUBSYSTEM:CONSOLE gives the desired behaviour when the application is started from the command line; using /SUBSYSTEM:WINDOWS gives the desired behaviour when the application is started with double-click. Neither option gives the desired behaviour for both ways of starting the application.


How to open VLC in a new window instance?

I always used to open a new VLC window; go to "open file"...etcetera when I wanted to watch something because when I click on a file in Windows Explorer and chose "open with" or just clicked on the file or right-clicked to choose "play with VLC" it always opened in an old already used VLC window.  Is there any way to get VLC to use a new one without always resorting to: Open VLC, "open file", find file etcetera?


Why is the trailing linefeed being removed from variables in Bash in most cases?

I am struggling to understand why a trailing linefeed is retained in only one of the following cases. See the script:  declare -a B  B[1]='foo' B[2]=$'foo\n' B[3]="$( echo 'foo' )" B[4]="$( echo -e 'foo\n' )" B[5]="$( printf '%s\n' 'foo' )" B[6]="$( cat <<END foo  END        )"  # Print each value. for RESULT in "${B[@]}" do         echo "[${RESULT}]" done   And the result when run:  [foo] [foo ] [foo] [foo] [foo] [foo]   I was expecting the first to lack a newline; the fourth and sixth to have two newlines each; and the others to have a single newline each. But instead, only the second has a newline.  What's going on, please?


Stack Overflow question ban after getting up-votes

So, I sadly got a question ban in Stack Overflow, however, it is unclear to me why... I have read through everything that I could find in the Help Center. It seems to me that I have a permanent ban and am strongly and sadly considering closing my account as a result (which is quite a hassle). The only reason that I am posting this question, is because I got the ban the morning after getting up-votes for some of my questions. Am I being punished for getting irregular up-votes? If so, the system seems like it needs a bit of tweaking...  So, did I really do something wrong, and what should I do?


Can you have a structure in C that has elements of that same structure? My first attempt at implementing a binary search tree in C is the following:  #include <stdio.h>  struct binary_tree_node {      int value;     struct binary_tree_node *left = null;     struct binary_tree_node *right = null;  };  main() {      struct binary_tree_node t;     t.value = 12;      struct binary_tree_node y;     y.value = 44;     t.left = &y; }   I can't figure out what's wrong with this code, any help would be appreciated. I realize there are other questions on binary search implementations in C, but I'm trying to figure this out from scratch with my own code (and some guidance of course). Thanks!


Removing Paginated URLs from Google Search

I have a website running on Django, Python. I'm using django pagination so that users can click next & see further content.  For example, my website is example.com, so when user requests new page it takes them to example.com/?page=2 & example.com/?page=3 & so on . . .  But, the problem is that google has indexed all the paginated webpages (?page=2, ?page=3, etc.) & also showing the duplicate title error inside console.  So, I want to remove all the paginated webpages accept example.com from search results. I tried adding canonical tag <link rel="canonical" href="https://www.example.com/" /> & then tried removing example.com/?page=2 page using console remover, but my request was denied & the page is still there.  I was thinking about a solution, which is to add this code,  {% if not request.get_full_path is '/example.com/' %}     <meta name="robots" content="noindex, follow"> {% endif %}   But, this logic is not working as it should. The if statement is not working properly.  How we solve this problem? Thank You . . .


How to debug a windows service with attaching visual studio?

I know this question has been asked 1000 times but I have never seen a good answer. I want to debug my Windows Service and I tried it with attaching visual Studio to it. From there on I have no idea what I should do?  My Service is running, I placed some breakpoints and the Debugger is attached but it never does something. I have a timer in my Service which executes a method at a Special time. I set a breakpoint to that method, my Service executed it but no breakpoint was recognized.  Can someone explain to me how to do it properly or if it is possible step by step with Screen shots.   I really want to do it with the attaching m   Thank you


In TeXstudio some commands on mouseover gives in tooltip "unrecognized command" but compiles correctly. Why?

In TeXstudio some commands on mouseover gives in tooltip "unrecognized command" but compiles correctly. For example:  \documentclass{amsart}  \usepackage{amssymb,latexsym}  \begin{document}  \address{Computer Science Department\\     University of Winnebago\\     Winnebago, MN 53714}   \end{document}   Here \address on mouseover gives in tooltip "unrecognized command" but compiles correctly.    Screenshot from TeXstudio:       Screenshot of compiled pdf:      Screenshot of compilation log:      Question: Why in TeXstudio some commands on mouseover gives in tooltip "unrecognized command" but compiles correctly?


command aliasing in ~/.bashrc doesn't work after sourcing or rebooting


Send request for "reason for down vote"?

Each question in SO keeps a list of the users who voted it down. As we all know, the list is never shown to anyone. Only the down voter can see which questions he down voted.   Sometimes, down voters down vote rather hastily. Thats okay because no one is perfect (except chuck norris). But sometimes, the down voter might have a good reason to down vote but may not leave a reason behind. As a result, the poster is left wondering if his question is stupid/bad or okay. To remedy this situation, I suggest a feature below -   The poster should have a button "request down voters for reason" which can be pushed only once. The down voters in the down voter list get the notification and can choose to respond to it. I feel that this can serve as a polite reminder to those who down vote a question which would seem to be an okay (if not good) question to most people.   Example of question which I feel should have at least 0 votes -    If okay, then this feature can be combined with -    Do you agree to the proposal ?  As an aside, do you agree that the SO question above should not get negative points ?


How to make a minimal bootable linux (only with terminal) from kernel source code?

I want to make a very minimal linux os which only have a terminal interface and basic commands/applications (busybox is my choice for commands/apps). I don't want the installation option on my os. I just want it to be booted and run completely from RAM. I'm planning to use ISO-Linux as bootloader. No networking, no virtualization support, no unnecessary drivers, etc. I want it to be very very basic os. I've downloaded the latest stable kernel (v4.5) source code from kernel.org and the build environment ready.  My one more confusion is that does a kernel by default has any user interface (shell, terminal, ...) where i can type commands and see output?


Flat base semi-circular arch-like image with TikZ

In the series of concentric shapes, this is another drawing that I'm unable to figure out. The top is not quite a complete semi-circle. Note that some of my labels got left out in the scan.


Here is my sentence :
     random html content               content.n1           fdfdf
     dsdsd content n2     I'm trying to get all the content inside the link :  content.n1   and   content n2   I tried :  /{1}(.*)<\/a>/   But It seems I cannot "target" the first closing tag ">" which can allow me to target the links content    Thanks for any help.


To prove that $e^x>1+x$, for all $x<0$. If I try to write $e^x$ as $1+x+\frac{1}{2}x^2+\frac{e^{\xi}}{3!}x^3$, for some $\xi\in (x,0)$. Then I get $e^x-(1+x)=\frac{1}{2}x^2+\frac{e^{\xi}}{3!}x^3$. How do I show that $\frac{1}{2}x^2+\frac{e^{\xi}}{3!}x^3$ is necessarily positive? I'd tried thinking for a long time, but can't find the way. Can't it be done by using Taylor to exactly order $3$??


How to remove Linux dual boot with Windows10?

I have a machine with dual boot where first OS installed was Windows 10 and after was installed Linux Mint. In BIOS boot options I see Ubuntu and Windows, and when machine boots, appears grub menu. In Grub menu appears: Linux Mint Other advance options Windows 10  My question is: If in Windows 10, from Disk Management, I delete the 3 partitions (boot, root, swap) that belong to Linux Mint would be a problem when I try to boot later in Windows? I ask because I don't know if grub boot loader will be erased and I won't be able to boot in Windows10 anymore neither. Thanks  in advance for any help/suggestion I'm how to remove Linux. Regards


Solve $p_4(x) = x^4 −(2m + 4)x^2 + (m−2)^2 $such that $p_4$ is a product of two non-constant integer-coeficient polynomials

I'm having trouble getting the starting idea for a problem I've been presented with:  I need to find values for m (integer) such that the following polynomial     $p_4(x) = x^4 −(2m + 4)x^2 + (m−2)^2$; $m$ is integer   can be described as the product of two non-constant integer-coeficient polynomials.  Any help/pointers/tips on how to go about this are greatly appreciated!  Edit: I meant polynomials with integer coeficients, but for some reason typed positive.


I want to built a matrix like the picture:  Have a trial:  \begin{displaymath}  \left( \begin{array}{ccc}  b_{11} & \ldots & b_{1j} & \ldots & b_{1j} \\  b_{21} & \ldots & x_{22} & \ldots & b_{1j}\\  \vdots & \ldots & \vdots & \ddots & \ddots\\  b_{n1} & \ldots & x_{nj} & \ldots & b_{ns}  \end{array} \right) \end{displaymath}   However, it didn't work. Can someone help me? Thanks!


How to change sign text color in Minecraft?

I have gone through every single website and video to try to make a sign with colored text, but nothing works. Can anyone help me to get a sign to say:  Place Block(dark blue and bold text)  I really want this for a map I am making and I need help.


Problem in complex number multiplication

I want to know $\sqrt{-m}\sqrt{-n}=$? I tried in the following ways:  Way 1:$$\sqrt{-m}\sqrt{-n}=\sqrt{(-m)(-n)}=\sqrt{mn}.$$ Way 2:$$\sqrt{-m}\sqrt{-n}=\sqrt{m}i\sqrt{n}i=\sqrt{mn}i^2=-\sqrt{mn}$$  So I got two different values for the same $\sqrt{-m}\sqrt{-n}$. How can that be possible?


Can't restore SQL Server 2016 backup to SQL Server 2014

We are having an issue at trying to restore a database:     System.Data.SqlClient.SqlError: The database was backed up on a server   running version 13.00.4001. That version is incompatible with this   server, which is running version 12.00.2269. Either restore the   database on a server that supports the backup, or use a backup that is   compatible with this server.


Show that $x \mapsto \frac{f(x)}{x}$ is strictly increasing on (0,1) given that f '(x) is strictly increasing on (0,1) and that f(0)=0

Let f : [0, 1] → R be a continuous function with f (0) = 0 and suppose that it is differentiable for all x ∈ (0, 1). Further assume that $x \mapsto f'(x)$ is a strictly increasing function on (0, 1). Show that $x \mapsto \frac{f(x)}{x}$ is also a strictly increasing function on (0, 1).


The footnote is printed inside the box. I want it to be below the box. See my code:  \documentclass{beamer} \usepackage[most]{tcolorbox} \usepackage{multirow} \useinnertheme{rounded}  \usetikzlibrary{matrix, arrows.meta, calc, positioning} \tikzset{myarrow/.style={-Latex, rounded corners},}  \newtcolorbox{mybox}[2][]{%     colback=bg,      colframe=blue!75!black,     fonttitle=\bfseries,     coltitle=blue!75!black,      colbacktitle=bg,     enhanced,     attach boxed title to top left={yshift=-1.2mm, xshift=2mm},   title=#2,   #1}  \begin{document}  \begin{frame}{Parameterization of Graph Isomorphism Problem}  \begin{mybox}[colframe=green!75!black,coltitle=green!75!black, ]{GI parameterized by degree}  \begin{itemize}     \item Given : $G$ and $H$, a parameter $d$ ( maximum degree ) \\~\\     \item Decide : Is $G \cong H$?\\~\\     \item $n^{O(d)}$ running time\footnote{This result is taken from paper titled " lsomorphism of Graphs of Bounded Valence Can Be Tested in Polynomial Time" by E M Luks} algorithm by E.M Luks \end{itemize} \end{mybox}  \end{frame} \end{document}   See the compiled output:


Is it safe to clean out a computer with air compressor?

I need to clean my desktop, it is full of dust. Is it safe to use a compressor to clean it? I mean, can I have problem with static, water, dirty, moisture or other stuff been blown on the hardware?


How can I log in to Ubuntu 18.04 without a password? Setting auto login doesn't work

Setting user to automatic login does not permit starting a session on Ubuntu 18.04 without entering the password.   How to fix this?


What should I do when I see a "question ban warning"?

When I  question, It says following:     Wait! Some of your past questions have not been well-received, and   you're in danger of being blocked from asking any more.      For help formulating a clear, useful question, see: How do I ask a   good question?      Also, edit your previous questions to improve formatting and clarity.   Here is screen-shot:   So, What should I do? (How long to wait?)


Noob questions.  I have static IPs on many of my Windows computers in our Windows 2008 domain. In the network settings at each, I have an a static IP and subnet. The default Gateway is set to our Sonicwall.  Question: Under DNS servers, do I just list the Server IP? I've found this works fine on XP through Win7, but Win8 needs an alternate DNS to get to the Internet. (using 8.8.8.8). Do I need to list the Server IP at all?


Is $2^\alpha=2^\beta\Rightarrow \alpha=\beta$ a $\sf ZFC$-independence result?

In a lecture recently one of my lecturers was proving something to do size of basis or something (I can't remember exactly) and somewhere near the end of the proof we had the following:  $2^\alpha=2^\beta\Rightarrow \alpha=\beta$  Now this was just in a proof about finite (or possibly countable) things so everything is cool here but this rang a bell a a results that may be independent of ZFC or something which I couldn't quite recall. I had a look but I couldn't find anything about it?  Thanks for the help


Can the integral $\int x^x \, \mathrm{d}x$ be evaluated?

It's obvious that $\dfrac{d(x^x)}{dx}=x^x (1+\ln x)$, then what about its integral? Special functions can be used if this integral can't be evaluated with simple functions, e.g. Gamma function $\Gamma(x)$ or Lambert W-function $W(x)$.  Thanks.


Why is ‘I recommend her to speak to a lawyer’ wrong?

We'd recommend you to book your flight early.     Students are recommended to make an appointment with a counselor.         are correct, while        I recommend her to speak to a lawyer.        is wrong.  Why is the third sentence wrong?


Why does the standard deviation not decrease when I do more measurements?

I made 100 measurements of a certain quantity, calculated mean and standard deviation (with MySQL), and got mean=0.58, SD=0.34.  The std seemed too high relative to the mean, so I made 1000 measurements. This time I got mean=0.572, SD=0.33.  I got frustrated by the high standard deviation, so I made 10,000 measurements. I got mean=0.5711, SD=0.34.  I thought maybe this was a bug in MySQL, so I tried to use the Excel functions, but got the same results.  Why does the standard deviation remain high even though I do so many measurements?


Calculating $\lim_{n\to\infty} [(1/n)(n!)^{1/n}] $

I know that $\lim_{n\to\infty} (n!)^{1/n} = \infty$ But I can't figure out the $\lim_{n\to\infty} [(1/n)(n!)^{1/n}]$ since it is infinity over zero. Please help.


How can I write a program in Java that will execute another program? Also, the input of that program should be given from our program and the output of that program should be written into a file.  This is my small set of code to get its output:  Process p = Runtime.getRuntime().exec("C:\\j2sdk1.4.0\bin\\helloworld.java"); BufferedReader input =         new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null)    System.out.println(line);  input.close();   This was my set of code but this throws an IOException.


How does the body count time in the short term?

So I've done some research and found out about the different circadian cycles that use chemical clocks to help us keep time in the long term (hours, days, etc.). This doesn't seem to explain how we can so accurately count seconds. Musicians can count time extremely precisely in even shorter intervals than seconds. Is it a chemical clock responsible? If you could explain the whole process to me it would be great. Thanks.


$\epsilon$-$\delta$ proof that $f(x) = x \sin(1/x)$, $x \ne 0$, is continuous

I'm doing an exercise that asks me to prove that $f$ is continuous using a $\epsilon$-$\delta$ proof. I have that $$   f(x) = \begin{cases} x\cdot \sin \frac1x,&x\neq 0 \\ 0,&x = 0 \end{cases} $$ I've already managed to show this property for $x=0$. How can I show it for $x \ne 0$, also using a $\epsilon$-$\delta$ proof?  Thank you very much.


How do I install Ubuntu on Windows, from a Mac?

Not sure if the title is specific enough, so here we go:  I crashed my Windows pc, and now I want to install Ubuntu on that computer. I'm currently using my Mac, as it is the only operable computer I have left. I have downloaded the .iso. I guess my question is; How do I go about installing Ubuntu on my crashed computer from the external harddrive? I've used Ubuntu before, but I used to install it from a CD-rom. I tried reading the instructions, but couldn't really understand them. Please help  Edit: As Tom mentioned, I only want to install Ubuntu on the (formerly) Windows machine.  Anyways, thanks for the quick responses, I think I've got it from here. Cheers


there are two arrows I need to show in my tikz picture, meaning: a). From A cannot get B; b). B can be derived from A, but not the other way around.   \draw[->] (a) -- (b) can get a normal arrow, but what's the command to get these special arrows?


Is it the "Stack Exchange Network" or the "Stack Overflow Network"?

When I first visit a Stack Exchange site using a different computer, browser, Incognito mode, etc. the cookie footer appears at the bottom (as it should). The message, however, says  Your use of Stack Overflow's Products and Services, including the Stack Overflow Network, is subject to these policies and terms.   (Emphasis added) However, clicking the StackExchange button at the top of any site says  Stack Exchange Network Stack Exchange network consists of 174 Q&A communities...   Is "Stack Overflow Network" or "Stack Exchange Network" correct?