I need voltage regulator to convert high range of Vin 20-60V to fixed 5 or 12V and the maximum output current is 200mA. What could be the efficient way to do this?
I am using a 36 V battey pack (10s 2.5 A each cell 3.6V.) Its maximum voltage is 42 V. I am using a STM32 microcontroller whose input is 3.3 V.  I am designing a PCB in which the power supply is drawn from the battery pack (42 V.) I would like to power the STM32 microcontroller from the battery pack power supply.  I would like to regulate 42 to 3.3 V so that I can power my STM32 microcontroller.   Which method is best to convert it either using regulator or buck converter based on the pcb designing?  Battery Specification: 10s1p   Battery pack nominal voltage: 36 V Battery pack maximum voltage: 42 V Battery pack current: 2500 mAh   Microcontroller specfication: STM32F401RCT6   Supply voltage: 3.3 to 3.6 V Supply current: 100 to 160 mA     Which method or component is best to regulate 42 V so that I can power my microcontroller with 3.3 V?
Ubuntu 19.04 and Gnome desktop icons I've been using the biblatex package for a while, and since updating my TeX installation (post-el capitan upgrade) I have been experiencing the following.   If the following is typed:  Such and such has been said \citep[111]{citekey}.   The following text is displayed:  Such and such has been said (Author, 2016, p. 111).   And if the following is typed:  \citet[111]{citekey} has said such and such.   The following text is displayed:  Author, (2016, p. 111) has said such and such.   The citep command is working as I want it to, but I do not want a comma placed after the author's name when using the citet command. I would like it to display as follows:  Author (2016, p. 111) has said such and such.    If I use the \citeyearpar command, it is fine, but I would rather not have to type the author's name in manually.   Here is the command placed in the preamble:  \usepackage[backend=bibtex, style=authoryear-icomp, url=true, isbn=false, natbib=true, sortcites=true, block=space, pagetracker=false, loccittracker=constrict]{biblatex}   Here is an example of an entry in my bib file (made using BibDesk):  @article{poldrack2006, Author = {Poldrack, Russell}, Journal = {Trends in Cognitive Sciences}, Number = {2}, Pages = {59--63}, Title = {{Can cognitive processes be inferred from neuroimaging data?}}, Volume = {10}, Year = {2006}}   I have also tried changing the entry to the following:  @article{poldrack2006, Author = {Russell Poldrack}, Journal = {Trends in Cognitive Sciences}, Number = {2}, Pages = {59--63}, Title = {{Can cognitive processes be inferred from neuroimaging data?}}, Volume = {10}, Year = {2006}}   The bibliography entry appears as follows, and is fine:  Poldrack, Russell (2006). “Can cognitive processes be inferred from neuroimaging data?” In: Trends in Cognitive Sciences 10.2, pp. 59–63.  Thank you for any help that can be offered. How do I create a permanent Bash alias? In the Prisoner of Azkaban, Harry and Lupin could practice the patronus on the boggart, but when Harry was in the final task in the Goblet of Fire, he tried to use the patronus on the boggart, it didn't work and he then moved on to use ridikkilus.  Why could he use a patronus against the boggart, but then not in another? If $\mathrm{Tr}(A)=0$ then $T=R^{-1}AR$ has all entries on its main diagonal equal to $0$ I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography} String representation of an Enum I have the following enumeration:  public enum AuthenticationMethod {     FORMS = 1,     WINDOWSAUTHENTICATION = 2,     SINGLESIGNON = 3 }   The problem however is that I need the word "FORMS" when I ask for AuthenticationMethod.FORMS and not the id 1.  I have found the following solution for this problem ():  First I need to create a custom attribute called "StringValue":  public class StringValue : System.Attribute {     private readonly string _value;      public StringValue(string value)     {         _value = value;     }      public string Value     {         get { return _value; }     }  }   Then I can add this attribute to my enumerator:  public enum AuthenticationMethod {     [StringValue("FORMS")]     FORMS = 1,     [StringValue("WINDOWS")]     WINDOWSAUTHENTICATION = 2,     [StringValue("SSO")]     SINGLESIGNON = 3 }   And of course I need something to retrieve that StringValue:  public static class StringEnum {     public static string GetStringValue(Enum value)     {         string output = null;         Type type = value.GetType();          //Check first in our cached results...          //Look for our 'StringValueAttribute'           //in the field's custom attributes          FieldInfo fi = type.GetField(value.ToString());         StringValue[] attrs =            fi.GetCustomAttributes(typeof(StringValue),                                    false) as StringValue[];         if (attrs.Length &gt; 0)         {             output = attrs[0].Value;         }          return output;     } }   Good now I've got the tools to get a string value for an enumerator. I can then use it like this:  string valueOfAuthenticationMethod = StringEnum.GetStringValue(AuthenticationMethod.FORMS);   Okay now all of these work like a charm but I find it a whole lot of work. I was wondering if there is a better solution for this.  I also tried something with a dictionary and static properties but that wasn't better either. Calculating $\lim_{x\to+\infty}(\sqrt{x^2-3x}-x)$ Let $f(x) = \sqrt{x^2-3x}$ and $g(x) = x$. Calculate the following limits, showing all working.  I've done the first two -   $$\lim_{x\to0}f(x)\\ =\lim_{x\to0}\sqrt{x^2-3x}=0$$  $$\lim_{x\to-\infty}\frac{f(x)}{g(x)}\\ =\lim_{x\to-\infty}\frac{\sqrt{x^2-3x}}{x}=\sqrt{1-\frac{3}{x}}=1$$  How do I calculate this one?  $$\lim_{x\to+\infty}(f(x)-g(x))$$ Intuition behind $k$-algebra, $k$-algebra morphisms? How are java.lang.Object's protected methods protected from subclasses? The keyword protected grants access to classes in the same package and subclasses ().  Now, every class has java.lang.Object as superclass ().  Hence I conclude that every class may access java.lang.Object's methods even if they are protected.  Take a look at the following example:   public class Testclass {   public Object getOne() throws CloneNotSupportedException {     return this.clone();   }   public Object getTwo() throws CloneNotSupportedException {     return ((Object) this).clone();   } }   While getOne() compiles fine, getTwo() gives   Testclass.java:6: clone() has protected access in java.lang.Object         return ((Object) this).clone();   I neither understand why getTwo() doesn't compile nor what's the difference (regarding the access of java.lang.Objects members) with getOne(). How to deal with "java.lang.OutOfMemoryError: Java heap space" error? Other explanation for cosmological redshift? How to install Windows 10 Home 19018 update? I'm using windows home edition, I have the latest update installed 1909.  I want to install docker for windows 10 home edition. It keeps saying  Docker Desktop requires Windows 10 Pro/Enterprise (15063+) or Windows 10 Home (19018+).  Should I join Windows insider? How long should I wait for that update to be released if I don't want to join windows insider? I have seen other similar questions but they don't seem to be what I want, please correct me if I'm wrong.  For simplicity: delete the default cube, NumPad7, add cylinder, rotate X 90, then add torus with ext/int 1/0.75 and raise it above the cylinder. It should look like this:.  What I want is to deform the torus against the cylinder, but make it as if it's a projection. This means that, when looked from above, it will look like a normal, undeformed torus (volume changes), but when viewed with NumPad1, it will look like a round-end tube following the curvature of the cylinder, while still having the same round cross-section. To make it worse, my object needs to be deformed by a more complex surface, such as sin(x).  If I'd use soft body, it will look shrinked when looking from above, i.e. it will preserve the volume. If I use shrinkwrap, it either does a projection with its circumference intact, but all flat, or it will project it (similar to what I want), but only the bottom side vertices, like a curtain.  Mesh modifier gets me nowhere since I have to manually tweak the surrounding mesh, and curve modifier also preserves the length/volume, while also squishing the section of the torus at the bending points.  My question(s): is there a way to project (mold) the torus onto the cylinder while preserving it's cross-section? Can this be extended for more complex meshes to be projected or to be projected on?    This is, roughly, what the side view (along Y axis in the 1st pic) would look like after the deforming of the torus:    The unselected shape above is the torus (as it is in the first picture), and the selected shape is what it would look like after the deform, or molding, whatever you want to call it.  And here is what it would look like when seen from above (top view, along Z axis)): i.stack.imgur.com/HVOCo.png (can't add more than 2 pics)  The view would be the same before and after the torus is deformed. It seems syntax highlighting is not enabled on every SE site, but later on turns out to be rather advantageous. As an example,  may not have sounded like needing it, yet there is , and I think it's justified since many answers have code in them, e.g. JS for InDesign scripts, some GREP-regex and (rather obviously) HTML and CSS. While I'd appreciate having syntax highlighting activate on that specific site (so please upvote ), this question is more general about two points:   Why is syntax highlighting disabled on some sites at all? Are the additional resource costs really so high? Couldn't caching improve that then? How to actually proceed when it should become activated on a specific site? It seems feature requests on the specific meta site are not exactly handled quickly (the request mentioned above is from 2013!), and also appear overkill for a simple "please switch that site's config bool for syntax highlighting". How do I use sudo to redirect output to a location I don't have permission to write to? I've been given sudo access on one of our development RedHat linux boxes, and I seem to find myself quite often needing to redirect output to a location I don't normally have write access to.  The trouble is, this contrived example doesn't work:  sudo ls -hal /root/ &gt; /root/test.out   I just receive the response:  -bash: /root/test.out: Permission denied   How can I get this to work? Direct observations of a black hole? Resetting Ubuntu to factory settings To start in or at a company? I am not sure about what is right:     I can start my career at an international company.   or     I can start my career in an international company.   For me at sounds appropriate? PHP expression <<<EOB