Random number generator output 0-9
How do I generate random integers within a specific range in Java?
Oracle SQL Syntax: Quoted identifier What can I do to increase passive HF RFID read range? I am working on a prototype, one function of which is to detect whether an object is "in range" by a few cm. Right now I'm just using an Arduino and a cheap  that operates at 13.56 MHz:    I've successfully gotten it to detect the tag, but only at a distance of about 3-4 cm when the tag is oriented parallel to the antenna.  According to my  , the HF band allows read ranges of between 10 cm and 1 m for passive tags, depending on factors like antenna size, tag size and orientation, and transceiver power.  I realize this inexpensive reader is not up to task as-is, but I'm interested in building something that achieves read ranges of 15-20 cm.  Some criteria:   No need to read multiple tags; only whether one tag is in range or not. No need to write to the tag. Cannot use an active tag.   I'm not experienced with RFID reader construction (yet) but am interested in knowing what I should pursue.  Here are some things I've considered:   Ditch the embedded antenna on the cheap RFID reader and construct my own, larger antenna. I'd need to see if the onboard  is up to the task of providing additional power. Look for a different IC around which to build a reader from scratch. Find a ready-made solution instead of trying to build one (more cost-effective?). Use something other than RFID for simple proximity detection.   I am experienced with microcontrollers and basic electronics, and have made audio and lighting projects, but this is a first with RFID. Since I don't need to read multiple tags, which RFID is suitable for, I've considered maybe some sort of magnet and hall-effect sensor, but the range does not seem adequate. I considered using an ultrasonic proximity detector, but the application calls for detecting the tagged object while ignoring untagged ones (ultrasonic would produce false positives on untagged objects). I've considered some sort of reflective surface placed on the object, and detecting reflected light, but the object orientation is not reliable enough to maintain alignment.  So, in a nutshell, What modifications can I make to my existing reader, or what alternate technology should I pursue to achieve 15-20 cm detection of a passively tagged object?  I plan on connecting whatever proximity detector is used to a microcontroller using SPI. If $P(|X-19.1| \leq a) = 0.98$ then why is it necessarily $P(\frac{X-19.1}{17} \leq \frac{a}{17})= 0.99$? Why are two universal objects isomorphic? How can I remove all duplicates so that NONE are left in a data frame? Matrices A+B=AB implies A commutes with B Why do light sources appear as stars sometimes? See for example this photo:    From my experience, the longer the exposure the stronger can this effect be observed. Is this correct? Are there any other factors that influence the creation of these stars (is there a better word for it, by the way?) And what exactly does technically happen? Prove the identity $\binom{2n+1}{0} + \binom{2n+1}{1} + \cdots + \binom{2n+1}{n} = 4^n$ I've worked out a proof, but I was wondering about alternate, possibly more elegant ways to prove the statement. This is my (hopefully correct) proof:  Starting from the identity $2^m = \sum_{k=0}^m \binom{m}{k}$ (easily derived from the binomial theorem), with $m = 2n$:  $2^{2n} = 4^n = \binom{2n}{0} + \binom{2n}{1} + \cdots + \binom{2n}{2n-1} + \binom{2n}{2n}$  Applying the property $\binom{m}{k} = \binom{m}{m-k}$ to the second half of the list of summands in RHS above:  $4^n = \binom{2n}{0} + \binom{2n}{1} + \cdots + \binom{2n}{n-1} + \binom{2n}{n} + \underbrace{\binom{2n}{n-1} +\cdots \binom{2n}{1} + \binom{2n}{0}}_{\binom{m}{k} = \binom{m}{m-k} \text{ has been applied}}$  Rearranging the above sum by alternately taking terms from the front and end of the summand list in RHS above (and introducing the term $\binom{2n}{-1} = 0$ at the beginning just to make explicit the pattern being developed):  $4^n = (\binom{2n}{-1} + \binom{2n}{0}) + (\binom{2n}{0} + \binom{2n}{1}) + \cdots + (\binom{2n}{n-1} + \binom{2n}{n})$  Finally, using the property $\binom{m}{k} + \binom{m}{k-1} = \binom{m+1}{k}$ on the paired summands, we get the desired result:  $4^n = \binom{2n+1}{0} + \binom{2n+1}{1} + \cdots + \binom{2n+1}{n}$ I have a bit of a unique problem. Well, maybe not a problem because I'm really just curious about it, but...  I have a simple 8 digit calculator. It has +, -, x, /, and a constant operation function. It has no usable memory slot.  I need (lit. would like to know how) to calculate ln(x) on this calculator. Any series I have found lose a lot of precision since whatever is outside the 8 digit range is truncated without rounding. I have used Padé approximants with trig functions, and a continued fraction for exp(), but none of these two methods are adequate for ln(x), either because there is no way around the truncation error or it requires writing down many intermediate values, or it requires memorizing and punching in many constants.  Does anyone know any good way to calculate ln(x) (or any other base, since memorizing one constant is OK) to as many digits as possible as easily as possible on this calculator (bonus points to methods where the value on the screen is immediately, meaning you don't need to write it down)?  For that matter, if you happen to know some good ways to calculate other special functions, I am interested in that as well.  Thanks! Are Living Beings Turned Into Horcruxes Suceptible to Age, Disease, or Injury? From the HP books I know that Horcruxes grant a form of immortality. So, it is not possible for someone who created a Horcrux to die from old age or succumb to diseases. I guess the same is true for living beings turned into a Horcrux. But do living Horcruxes age normally? Is it possible to cripple them or sever their limbs, head or something like that, or do they instantly "repair" themselves like inanimate Horcruxes? Why is English written and read from left-to-right as opposed to right-to-left, top-to-bottom, or (not even sure any language does this) bottom-to-top? Why is the mol a fundamental physical quantity? I am starting to study physics in detail and as I read about physical quantities, I was puzzled why mol (amount of substance) is taken as a physical quantity.  A physical quantity is any quantity which we can measure and has a unit associated with it. But a mol represents the amount of substance by telling the number of particles (atoms, molecules, ions, etc.) present. So it is a pure number and numbers are dimensionless. So mol should not be considered a physical quantity.  Also, fundamental physical quantities should be independent of each other. I am wondering whether mass and mol are independent. This is so as they surely affect each other as we can evidently see while calculating the number of moles and using the mass of that sample for calculation.  So how is the mol a fundamental physical quantity and independent of mass? Forcing a SimpleXML Object to a string, regardless of context Let's say I have some XML like this  &lt;channel&gt;   &lt;item&gt;     &lt;title&gt;This is title 1&lt;/title&gt;   &lt;/item&gt; &lt;/channel&gt;   The code below does what I want in that it outputs the title as a string  $xml = simplexml_load_string($xmlstring); echo $xml-&gt;channel-&gt;item-&gt;title;   Here's my problem.  The code below doesn't treat the title as a string in that context so I end up with a SimpleXML object in the array instead of a string.  $foo = array( $xml-&gt;channel-&gt;item-&gt;title );   I've been working around it like this  $foo = array( sprintf("%s",$xml-&gt;channel-&gt;item-&gt;title) );   but that seems ugly.  What's the best way to force a SimpleXML object to a string, regardless of context? Python mechanize javascript Apt/Synaptic needs to reinstall package but can't find the archive for it Running Synaptic I get the following error message:  E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it. E: Internal error opening cache (1). Please report.   Upon accepting the message, Synaptic quits. After updating to 2.81, my previous works (done in 2.80) doesn't show colors This image is what's supposed to look like in Edit Mode/Object Mode(although I still can make these screenshots even after the update by pressing F12 which is rendering) but the following is what my donut looks like now in Blender.  It shows no shadows and colors. The only thing I did is updating blender to 2.81 from 2.80. And I don't know what but something seems off with blender. Sometimes I can't click any objects so I just pressed tab and then now it's all clickable. Seems like I was in edit mode, but to me, it looked exactly like object mode. I don't know what is wrong with it. How do I make my colors show up again? Any way to change my review of suggested edit? I goofed and rejected a suggested edit, a vote that was actually directed at the previous edit that I was reviewing. As this is unfair to the user who posted the suggested edit in question, is there any way in which to change/cancel my reject? Repeatedly rolling a six sided die four times and summing the highest three results gives you a distribution with what mean and standard deviation?  I've only taken AP statistics, but I would like to learn how to do this. How can I keep low resolution textures pixelated? I have a problem. I am going to make a minecraft animation in blender. But when I put a minecraft texture on a 3d cube that is 16x16x16 it is very low resolution is there a way to get the texture in a better resolution or is there a way to make blender make the texture better?  I hope you have an answer. Thanks in advance Is this an instance of Priori Incantatem? During the climax of Fantastic Beasts and Where to Find Them, Tina briefly duels with Graves and their wands appear to lock with each other (see picture). I believe this also happens some other times in the later Harry Potter films other than Harry and Voldemort's duel in the graveyard during Goblet of Fire.    We know that this is definitely a case of Priori Incantatem for the graveyard duel in Goblet of Fire, as the wands are locked for a sufficient amount of time for past spells to begin showing themselves (significantly, showing the people Voldemort had murdered), but is this the case for the other instances of wands locking? If so, does that mean there are a lot more wands out there with shared cores, as it was my understanding this could only happen if that criteria was satisfied?