$a^2=b^3+23$ , solve the equation in positive integer
Integer solutions for $x^2-y^3 = 23$.
Fastest way to clamp a real (fixed/floating point) value? Is there a more efficient way to clamp real numbers than using if statements or ternary operators? I want to do this both for doubles and for a 32-bit fixpoint implementation (16.16). I'm not asking for code that can handle both cases; they will be handled in separate functions.  Obviously, I can do something like:  double clampedA; double a = calculate(); clampedA = a &gt; MY_MAX ? MY_MAX : a; clampedA = a &lt; MY_MIN ? MY_MIN : a;   or  double a = calculate(); double clampedA = a; if(clampedA &gt; MY_MAX)     clampedA = MY_MAX; else if(clampedA &lt; MY_MIN)     clampedA = MY_MIN;   The fixpoint version would use functions/macros for comparisons.  This is done in a performance-critical part of the code, so I'm looking for an as efficient way to do it as possible (which I suspect would involve bit-manipulation)   EDIT: It has to be standard/portable C, platform-specific functionality is not of any interest here. Also, MY_MIN and MY_MAX are the same type as the value I want clamped (doubles in the examples above). Show that the conditional statement is a tautology without using a truth table I have been attempting to use identities to get to the answer but I am unable to get anywhere. Here is the equation I am trying to prove tautological without using truth tables:  $[(p\rightarrow q) \land (q \rightarrow r)] \rightarrow (p \rightarrow r )$  And here is my attempt at using identities to work my way up. (a link to a page with a table of logical equivalence identities: )  $\lnot [(p \rightarrow q) \land (q \rightarrow r)] \lor (p \rightarrow r)$  $\lnot [(\lnot p \lor q) \land (q \rightarrow r)] \lor (p \rightarrow r)$  $[\lnot (\lnot p \lor q) \land \lnot (q \rightarrow r)] \lor (p \rightarrow r)$  $[(p\land \lnot q) \land (q \land \lnot r)] \lor (p \rightarrow r)$  I don't know where to go from there. Is there any bidirectional 5v-3.3v level shifter? The new Chip credit cards are being introduced to provide better security to consumers, merchants and credit card vendors.    Sample Card:   (source: )    Card Reader &amp; PIN Entry:    Are they really better from a security point of view?  What are the advantages and disadvantages? I am looking for an intuitive explanation as to why/how row rank of a matrix = column rank. I've read the proof at  and I understand the proof, but I don't "get it". Can someone help me out with this ?   I find it hard to wrap my head around the idea of how the column space and the row space is related at a fundamental level. l, ls & la -- what are the differences, and are there more of these commands? I would like to set my monitor's scale under 100%, but Win10 only lets me set it to 100% or higher. Why won't Windows let me do that? Is there any workaround to do that? I am aware of the fact that scaling below 100% will result in merged pixels. Colors from a computer vs. colors from visible spectrum of sunlight Observation:  So, I know that all computer screens are able to project many different colors by varying how they display the RGB (Red, Green, Blue) pixels.  Question  What's the difference between say, yellow light (575 nm) from sunlight vs. the same yellow light that's displayed on the computer screen? Aren't they different? Is our brains mixing together the RGB lights together and its being interpreted as yellow light or is yellow light the same (575 nm) light that comes from sunlight actually hits our eyes?  Relationship between Fourier Series and light?  1) So I know that in Fourier Series, you have basis functions, sines and cosines that make up any other function depending on the coefficients that are in front of the sines and cosines terms.  2) I know that RGB colors on a screen are the "basis" for all the other colors that a computer screen makes up and the intensity of each of the RGB are like the "coefficients". So, am I making the correct relationship here? How to write 1, 2, ... as a subscript to a letter? How to plot a function in integral form with TikZ? how to plot the function $f:x\mapsto \int_x^{2x}\frac{4}{\sqrt{1+t^4}}\, \textrm{d}t$ with TikZ? Why many abstract nouns get an indefinite article while it's taught that abstract nouns shouldn't get it? When does Ubuntu 16.04 use /etc/apache2/ssl/apache.crt? I have some Ubuntu 16.04 server running and set up one vhost in apache2 which uses (or should use) ssl.  &lt;IfModule mod_ssl.c&gt;         &lt;VirtualHost *:443&gt;          ServerAdmin myemail@mailhoster.xx         ServerName my.domain.name.de         DocumentRoot /var/www/mysslsite          &lt;Directory /var/www/mysslsite&gt;                 Options FollowSymLinks MultiViews                 AllowOverride All                 Order allow,deny                 allow from all         &lt;/Directory&gt;          ErrorLog ${APACHE_LOG_DIR}/mysite.ssl.error.log         CustomLog ${APACHE_LOG_DIR}/mysite.ssl.access.log combined          &lt;/VirtualHost&gt; &lt;/IfModule&gt;   I did NOT enable the standard sites-available/default-ssl.conf.  I am able now to browse to  and it is asking in firefox to add some exception which is totally normal if i did not buy any certificate.  But I was wondering where it is set up that it should use the certificates in /etc/apache2/ssl/ directory. I can not find any config where it is told to use that. I all the time was thinking that it will use something from /etc/ssl folder.   Or did I maybe not activate SSL correctly? How to insert text before the first line of a file? Is there a way to step between 0 and 1 by 0.1?   I thought I could do it like the following, but it failed:  for i in range(0, 1, 0.1):     print i   Instead, it says that the step argument cannot be zero, which I did not expect. How long should it take to refresh a Developer Sandbox? I refreshed a Developer Sandbox, and almost 24 hours it is still "pending". Is this normal? Are there any actions I can take to speed up the process? When I created the Sandbox it took barely more than 10 minutes to create.  Thanks, Adrian Difference between $:=$ and $=$ I am sorry if this is quite elementary question. But I always think, that why we use $:=$ at some places, instead of $=$. Is there any fundamental difference between these two? Before reading Terry Tao's blog (4 months ago), I had never seen a symbol like this (:=). How to have a one-to-many relationship with a privileged child? Can markdown mini replace an en dash with a normal hyphen in URLs? Automatically Locate Included Images How do I login as root?