Can I legally use mechanics from a game that is removed from the store?
How closely can a game legally resemble another?
What should happen if a logo I made is similar to another? Windows 10 doesn't shut down properly Proof by Induction: For any integer $n > 0$, $3|(5^{2n} − 1)$. How do I read an entire file into a std::string in C++? How do I read a file into a std::string, i.e., read the whole file at once?  Text or binary mode should be specified by the caller. The solution should be standard-compliant, portable and efficient. It should not needlessly copy the string's data, and it should avoid reallocations of memory while reading the string.  One way to do this would be to stat the filesize, resize the std::string and fread() into the std::string's const_cast&lt;char*&gt;()'ed data(). This requires the std::string's data to be contiguous which is not required by the standard, but it appears to be the case for all known implementations. What is worse, if the file is read in text mode, the std::string's size may not equal the file's size.  A fully correct, standard-compliant and portable solutions could be constructed using std::ifstream's rdbuf() into a std::ostringstream and from there into a std::string. However, this could copy the string data and/or needlessly reallocate memory.    Are all relevant standard library implementations smart enough to avoid all unnecessary overhead?  Is there another way to do it?  Did I miss some hidden Boost function that already provides the desired functionality?     void slurp(std::string&amp; data, bool is_binary) How do I force TeX to completely use the 1st column? How do I force TeX to completely use the 1st column before writing to the second column?  Right now I dont have enough content to fill one whole page. So the left and right columns are equally filled, leaving 25% symmetrical empty page at bottom. How do I fill the left column first, and then the right?  \documentclass{article}  \usepackage{multicol} \usepackage[scale=0.9]{geometry} \usepackage{amssymb} \renewcommand{\labelitemi}{\tiny$\blacksquare$} \begin{document} \begin{multicols}{2}      %lots of text goes here  \end{multicols} \end{document} Manually change filetype icons in Windows 7 I'm trying to find the dialog tab in Windows 7 that allows a user to change the icon used for a particular file type.  In Windows XP it would be under the Folder Options properties dialog.    Where is it on Windows 7?  I only want to change the icon of a specific filetype, to anything I want but this tab is no longer present in Folder Options of Windows 7. What type of lens will auto-focus on Nikon bodies without a focus motor? I know my D40 doesn't have a motor in it to auto-focus lenses.  What type of lens has the motor in it? How can I know which lenses will and will not work? How much of 32-bit support is dropped in macOS Catalina? macOS Catalina is said to have dropped support for 32-bit apps. It’s not clear how much support is dropped.   Is there any supported way for a 64-bit app to request the kernel to create a 32-bit code segment? Show "Insufficient Privileges" directly when clicking 'Edit' (override), not on 'Save' If a user clicks 'Edit' on an opportunity which he isn't allowed to edit, the "Insufficient Privileges" page directly appears. This is good. If a user clicks 'Edit' on a custom object (which has an edit override that points to a visualforce page), he first sees the form without problems, and the "Insufficient Privileges" page only appears when he tries to save it. This behaviour is misleading for the users, because they think they can manipulate the data and put effort into it, and only afterwards they realize that this wasn't possible after all.  An idea was to check at page load if the user has edit permissions and otherwise redirect him to the "Insufficient Privileges" page.  Might there be another way? Thanks! Is every complex (smooth) manifold a scheme? The question in the title doesn't quite make sense. I was always wondering if the scheme is the generalization of manifold. The precise statement should be like following:  If $X$ is a complex (smooth)manifold, is there a scheme $Y$ over $\mathbb{C}$ such that the corresponding analytic space $Y^{an}$ isomorphic to $X$?  I guess if $X$ is projective, then this is Chow's theorem. And I doubt the question has an affirmative answer if $X$ is non-compact (I guess that $X: y-e^x=0$ in $\mathbb{C}^2$ might be an example, but I do not know how to show this).  Edit 1:  There are also example (as @hunter pointed out) of a complex torus but not an abelian variety shows that a compact manifold might not be a variety, however, is it possible to be a scheme ?(according to Hartshorne, the category of varieties is a subcategory of quasi-projective, integral, separated scheme. But could there be some non-quasiprojective scheme($Y$ has to be integral, separated in our case according to GAGA, I guess) )?  Edit 2: Another question I think of is: is (Artin) Stack a generalization of manifold? I really want to know if manifold could be think of some subcategory of some category of with "algebraic objects". Setup SunFire 440 Raid Configuration Why are there only two tangents to a hyperbola from a point, instead of four? Is $\operatorname{lcm}(a,\gcd(b,c))=\gcd(\operatorname{lcm}(a,b),\operatorname{lcm}(a,c))$ What are all the member-functions created by compiler for a class? Does that happen all the time? Possible Duplicate:          I was thinking about making a pacman clone, I know there is a similar question here  , but I know i can't use the original art from the game because it belongs to Namco, so if I design a character that has the shape of the slice circle it will look exactly like pacman, maybe if I use green instead of yellow? Also if the game plays like the original pacman, it is wrong?  I just want to make the game as a personal project and and publish it in my site without getting in trouble Convert particle system to animated meshes I use Gedit a lot and thus tend to have a lot of tabs open at any one time. In Gedit 2.* I could switch between tabs using my mouse wheel but since Oneiric I can't. I assume this is because of various GTK "upgrades".  Does anybody know of a plugin (or workable fix -- that doesn't require me to recompile everything and its brother) that will see me back to mousewheeling my day away? Escaped line break tag in tooltip on election page Can $\pi$ or $e$ be a root of a polynomial with algebraic coefficients? Since $\pi$ and $e$ are transcendental, neither can be the root of a polynomial with rational coefficients. However, it is easy to construct a polynomial transcendental coefficients (with $\pi$ or $e$ as one of it's roots), namely $(x-\pi)$ and $(x-e)$. However, is it possible to construct a finite polynomial (one of whose roots is $\pi$ or $e$) with only algebraic coefficients? (i.e. something such as $y=x^5-(\sqrt 2 -1)x^2+x$ .) A polynomial with only radical coefficients would be the best.  P.S. The polynomial doesn't necessarily need to have BOTH $\pi$ and $e$ as it's roots, just one is interesting enough. What are the odd of a single coin toss after many consecutive ones? I have little knowledge of probability and have recently been thinking of a math problem I am sure you guys could answer  If for example I tossed a coin ten times and got all heads, would the odds of the next coin toss beeing heads be 50 50 or s very low as the odds of getting 11 in a row is tiny?   Thanks