Can we connect a 12v adapter and a 12V battery in series to get a 24V output ?
Is it safe to connect a battery in series to wall via adapter?  I have an AC adapter which gives me 10 vDC from the wall (220 volts). I've measured the adapter and it outputs 10 vDC. I have a 3 volt battery. I would like to connect in series to get 13 vDC.   Is this possible? Is this safe? If not, what can go wrong?
Prove that the additive groups $\mathbb{R}$ and $\mathbb{Q}$ are not isomorphic. Is there a better (or other) way(s) to prove the following statement? Also, the same argument works for multiplicative groups $\mathbb{R}-\{0\}$ and $\mathbb{Q}-\{0\}$, right?       Problem Prove that the additive groups $\mathbb{R}$ and $\mathbb{Q}$ are not isomorphic.   Solution By cantor's diagonal argument, there is no possible bijection between $\mathbb{Q}$ and $\mathbb{R}$. Since an isomorphism needs to be a bijection, there is no possible isomorphism between the additive groups $\mathbb{R}$ and $\mathbb{Q}$.    Thanks my circuit is shown on the picture. the problem is the output of the mosfet does't work as desired. For example, If I use Vin=100V and the duty cycle is 50%, the output is Vout=19V.  Anyway, the output is not even near to the desired value. can you help, please? How do I get my C# program to sleep for 50 msec? How do I get my C# program to sleep for 50 milliseconds?  This might seem an easy question, but I'm having a temporary brain failure moment! Why do some lenses focus past infinity? On the kit 18-55 lens that came with my Nikon D5100 I have noticed that when trying to focus on infinity for shots in dark conditions (star-trails, etc) the lens tends to move past infinity out of focus and need to be brought back a little to get a clear infinity focus point.  Is there a good trick for getting a clear infinity focus when in pitch dark conditions? How to convert URL parameters to a JavaScript object? How do I cure Sanguinare Vampiris? I have Sanguinare Vampiris. I don't really want to become a vampire. How can I cure myself? Do I need to use a comma between two adjectives? You can also contact me to customize your template, or create a new unique one.   Do I need to put a comma between the new and unique adjectives in this sentence?  In my native language (if I am not mistaken) we don't put a comma if the adjectives are of a different type. Not sure about English though, and if it's the case here anyway. Any help would be appreciated! I have a following problem: when I plug-in my USB flash drive, it isn't shown in Windows Explorer or recognized by system at all. In device properties, it is shown as:     USB MEMORY BAR     There's no partitions on the drive, so I can't format it:    DISKPART:     Virtual Disk Service error:   There is no media in the device.   HP USB format tool:     There is no media in the specified device.   Any help will be greatly appreciated! Thank You! Should we host our own nameservers? This is a  about whether to outsource DNS resolution for ones own domains   I currently have my ISP providing DNS for my domain, but they impose limitations on adding records. Therefore, I am thinking about running my own DNS.  Do you prefer to host your own DNS, or is it better to have your ISP do this?  Are there alternatives which I can look into? String concatenation: concat() vs "+" operator Assuming String a and b:  a += b a = a.concat(b)   Under the hood, are they the same thing?  Here is concat decompiled as reference. I'd like to be able to decompile the + operator as well to see what that does.  public String concat(String s) {      int i = s.length();     if (i == 0) {         return this;     }     else {         char ac[] = new char[count + i];         getChars(0, count, ac, 0);         s.getChars(0, i, ac, count);         return new String(0, count + i, ac);     } } Moment generating functions/ Characteristic functions of $X,Y$ factor implies $X,Y$ independent. This is solely a reference request. I have heard a few versions of the following theorem:     If the joint moment generating function $\mathbb{E}[e^{uX+vY}] = \mathbb{E}[e^{uX}]\mathbb{E}[e^{vY}]$ whenever the expectations are finite, then $X,Y$ are independent.   And there is a similar version for characteristic functions. Could anyone provide me a serious reference which proves one or both of these theorems? How to turn off Facebook notifications on Mac OS X? How to turn off Facebook notifications on Mac OS X Mountain Lion? GUI for watching logs (tail and grep) Could you recommend a GUI application with powerful log watching capabilities?  Generally it would work as tail -f in GUI, but on top of that following features would be very useful:   filtering out some lines based on (regular) expressions  coloring some lines based on (regular) expressions interactive search saveable configuration easily applicable to different files notifications based on (regular) expressions   A similar tool on Windows is  and its paid version - Sorting list based on values from another list Year-Round Hats for Fun and Profit Why is the B field of a solenoid equal to $\mu_0 i n$ while that of a loop is $\frac{\mu_0 i R^2}{2(R^2+z^2)^{3/2}}$? How can I classify data with the nearest-neighbor algorithm using Python? How to make a Copper/Rose Gold smudge material? deleting windows system folder I want to use an old drive as a secondary hard drive without reformatting. But this old hard drive contains my old Vista installation which takes up gigs of space.  I tried changing ownership and it works to some extent but I can not delete anything in Windows/System32 folder.  Is there an easy way to change permissions so I can delete everything?    The solution is to use Takeown as Wil suggested and use cacls to take full control of the files. Since cacls doesn't seem to be recursive, I fired up cygwin and ran this command to recursively change all the files:  for d in $(find directory-of-interest -type d);do   cacls $d'/*' /e /G username:F; done   where directory-of-interest is in my case /cygdrive/g/Windows and username is my username.  I had to manually run it on directories that had spaces in its name. But after all this, I can now delete the directory. Warning: it seems to me that cacls can potentially royally screw things up if improperly used. What is the most "pythonic" way to iterate over a list in chunks? I have a Python script which takes as input a list of integers, which I need to work with four integers at a time.  Unfortunately, I don't have control of the input, or I'd have it passed in as a list of four-element tuples.  Currently, I'm iterating over it this way: for i in range(0, len(ints), 4):     # dummy op for example code     foo += ints[i] * ints[i + 1] + ints[i + 2] * ints[i + 3]  It looks a lot like &quot;C-think&quot;, though, which makes me suspect there's a more pythonic way of dealing with this situation.  The list is discarded after iterating, so it needn't be preserved.  Perhaps something like this would be better? while ints:     foo += ints[0] * ints[1] + ints[2] * ints[3]     ints[0:4] = []  Still doesn't quite &quot;feel&quot; right, though.  :-/ Related question: