I have following enum class:  #ifndef UEPROTOCOLCOMMANDS_H #define UEPROTOCOLCOMMANDS_H  enum class UeProcotolCommand {     INVALID_COMMAND=0x0000000000000000,      SERVER_GET_CLIENTS_VERSIONS=0x0000000000000001,     SERVER_CONNECTION_RESET=0x0000000000000002,      CLIENT_GET_DATABASE_CREDENTIALS=0x1000000000000001,     CLIENT_DISCOVER_COMM_SERVER=0x1000000000000002 };   // UeProtocolCommands  #endif // UEPROTOCOLCOMMANDS_H   and it generates following error:  In file included from ../../../../uePOSCommProtocol/net/comm_protocol/uemessageheader.h:6:0,                  from ../../../../uePOSCommProtocol/net/comm_protocol/uemessagerequest.h:6,                  from ../../../../uePOSCommProtocol/ueposcommprotocol.h:8,                  from ../../../uemainwindow.h:16,                  from ../../../main.cpp:3: ../../../../uePOSCommProtocol/net/comm_protocol/ueprotocolcommands.h:11:37: error: enumerator value 1152921504606846977l is too large for underlying type 'int'      CLIENT_GET_DATABASE_CREDENTIALS=0x1000000000000001,                                      ^ ../../../../uePOSCommProtocol/net/comm_protocol/ueprotocolcommands.h:12:33: error: enumerator value 1152921504606846978l is too large for underlying type 'int'      CLIENT_DISCOVER_COMM_SERVER=0x1000000000000002                                  ^ make: *** [main.o] Error 1 14:23:40: The process "/usr/bin/make" exited with code 2. Error while building/deploying project uePOSCommClient (kit: Desktop Qt 5.6.0 GCC 64bit) When executing step "Make"   I need to tell to compiler that enum elements are of type quint64, not the default int. How?
Is there a way to have a 64 bit enum in C++?  Whilst refactoring some code I came across bunch of #defines which would be better as an enum, but being greater than 32 bit causes the compiler to error.  For some reason I thought the following might work:  enum MY_ENUM : unsigned __int64   {       LARGE_VALUE = 0x1000000000000000,   };
On the nilpotence of the matrix $AB-BA$ How can I make it so that each space has its own isolated dock?  Basically what I'm looking for is:   The dock in one space should not show the icon of an app that was open in another space. If I have the same program open in two different spaces, clicking on the icon in one space should not go to the app in the other space.   Is this possible natively, or with a third party program? What is the distribution of the sum of non i.i.d. gaussian variates? How to add a PPA on a server? What are the “spam” and “rude or abusive” (offensive) flags, and how do they work? If a topology contains all infinite subsets, then it is the discrete topology I am solving question $8$ of exercises in section 1.1. of chapter 1 in "Topology without tears". The question reads as follows.     Let $X$ be an infinite set and $\tau$ be a topology on $X$. If every infinite subset of $X$ is in $\tau$, prove that $\tau$ is the discrete topology   My idea was to show that every singleton set is in the topology and thereby the topology is discrete.  Choose an infinite set $A$ from $X$ such that $A^c$ is also infinite. $A$ and $A^c$ belong to $\tau$ since they are infinite sets. Now consider any $x \in X$. Note that $A \cup \{x\}$ and $A^c \cup \{x\}$ belong to $\tau$ since they are infinite sets. Hence, their intersection which is nothing but $\{x\} \in \tau$ for every $x \in X$.  The problem I have is I don't know how to prove the first sentence in the previous paragraph. These are my line of thoughts to prove them.   If $X$ is a countably infinite set, then I can list the elements are let the odd numbered elements fall into $A$. This guarantees $A$ and $A^c$ are both infinite. If $X$ is uncountable, then I can choose a countably infinite subset and call it $A$.   Are the above arguments rigorous? I am not especially happy with my second argument of choosing a countably infinite subset from an uncountable set since I do not give an explicit procedure of constructing the set $A$.  Also, is there any other simpler way of answering the original question? How to express a polar coordinate for a macro that only accepts space-separated values? \psElectricfield only accepts a coordinate in space-separated values as follows. For example, a charge of -0.1 unit at (-1,0) is written as [-0.1 -1 0]. I have attempted to write in PS notation but it still does not work.  \documentclass{article} \pagestyle{empty}  \usepackage{pst-electricfield,multido} \def\M{2}  \begin{document} \multido{\i=0+30}{12}{% \begin{pspicture*}(-\M,-\M)(\M,\M)     \psElectricfield     [         Q={[-0.1 -1 0][-0.1 1 0][0.1 !\i sin 2 mul \i cos 2 mul]}     ] \end{pspicture*}\newpage} \end{document}   How to express  a polar coordinate for a macro that only accepts space-separated values? What is $P(X > 0 \mid X + Y > 0)$ given that $X, Y$ are i.i.d standard normal? When I shoot a ball vertically upward, its velocity is decreasing since  there is a downward acceleration of about $9.8\,\mathrm{ms}^{-2}$.   I have read that at the top most point, when $v = 0$, the acceleration is still $9.8\,\mathrm{ms}^{-2}$ in the downward direction where $v=0$. That is, the acceleration is still the same.  But at the highest point, the ball is stationary, so it is not even moving. How can it accelerate? Photons in expanding space: how is energy conserved? If a photon (wave package) redshifts (stretches) travelling in our expanding universe, is its energy reduced?  If so, where does that energy go? Proving the Cauchy-Schwarz inequality by induction Workflow rule order of execution Proper subspaces of $ R^n $ I'm trying to prove that proper subspaces of $ R^n $ are closed and have empty interiors.  To prove that they are closed I'm trying to use the fact that inverse images of closed sets are closed sets by continuous functions. So I'm trying to find a linear map such that a proper subspace of $ R^n $ is its Kernel but I don't know how to express it so that it would work on all dimensions.  Regarding the fact that they have empty interiors, I really don't know what to do.  Thanks in advance. How to best encapsulate monetary values in a database Getting attributes of Enum's value What does role db_owner allow I have been trying to troubleshoot a login that is not able to view certain tables in a SQL Server 2012 database. In doing so I find I don't quite understand what membership in the db_owner role allows. I can understand the other roles such as db_datareader and db_datawriter but I remain confused as to what db_owner allows. Radeon error atombios stuck in loop The screen goes blank and shows logs me out immediately a while after using multiple monitors.   dmesg shows:  [33786.908877] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting [33786.908901] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing 6DD2 (len 254, WS 0, PS 4) @ 0x6DE0 [33786.908910] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing 673E (len 78, WS 12, PS 8) @ 0x6777   lspci | grep -E 'VGA|Display' shows:  00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) 03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun  XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430] (rev 83)    explains exactly my situation. But I don't have /etc/modprobe.d/radeon.conf file. String concatenation: concat() vs "+" operator Is there a unique solution for this quadratic matrix equation? How does one [easily] calculate $\sum\limits_{n=1}^\infty\frac{\mathrm{pop}(n)}{n(n+1)}$, where $\mathrm{pop}(n)$ counts the number of bits '1' in the binary representation of $n$? Is there any trick to calculate the sum? From what I already have, it definitely converges.