My question is the same as this one but for c#:   Please see the code below:  [HttpGet("{id}")] public ActionResult&lt;byte[]&gt; Get(Guid id) {     return System.IO.File.ReadAllBytes("Pictures\\" + id ); }   The filetype e.g. jpeg, gif etc is unknown.  How do I find the file without a file type?  Do I have to insist that all images are submitted in a particular file format?  What is the most elegant way of doing this?
I am looking for a simple way to get a mime type where the file extension is incorrect or not given, something similar to  only in .Net.
In Xubuntu 16.04.3 (and several previous versions aswell) it is not possible to have no power icon in the notification area.  A power icon is displayed even though 'Show system tray icon' is unchecked in Xfce Power Manager.  When 'Show system tray icon' is checked, there are two power icons displayed.  (See screenshots)  I've searched and I can't find any information related to this in Xubuntu/Xfce.  Is there a way to fix or work around this bug? How to add a Login / Logout link in Main navigation menu? How can I add a Login link to the "Main navigation" menu?  When a user clicks on the link, it should take them to the /user/login page. Once they login, the link should change to say "Logout" instead of "Login".  Is there any way to add such a link? Evaluate the integral   $$\int\frac{1}{x^2\left(x^4+1\right)^{3/4}}\,dx$$   My Attempt:  Let $x = \frac{1}{t}$. Then $dx = -\frac{1}{t^2}\,dt$. Then the integral converts to   $$ -\int \frac{t^3}{(1+t^4)^{3/4}}\,dt $$  Now Let $(1+t^4) = u$. Then $t^3\,dt = \frac{1}{4}du$. This changes the integral to  $$ \begin{align} -\frac{1}{4}\int t^{-3/4}\,dt &amp;= -u^{1/4}+\mathcal{C}\\ &amp;= -\left(1+t^4\right)^{1/4}+\mathcal{C} \end{align} $$  So we arrive at the solution  $$\int\frac{1}{x^2\left(x^4+1\right)^{3/4}}\,dx = - \left(\frac{1+x^4}{x^4}\right)^{1/4}+\mathcal{C.}$$  Question: Is there any other method for solving this problem? Is static HTML the fastest? I have been researching several different techniques to deliver web content fast, like nginx and node.js.  When it comes down to performance optimization http expires headers and gzip come to mind. After that come common techniques like sprites and CDNs etc.  But I am wondering.  What would be the very fastest technique to load a website?  Is static html the very fastest that can be? Or is there something else even faster? How to use find command to search for multiple extensions I can get all jpg images by using:    find . -name "*.jpg"     But how can I add png files to the results as well? Wouldn't it be a good idea to be able to vote for questions to be moved to any Stack Exchange site? For example, I just voted  as off topic, but that was all I could do. I wish I could've voted it be moved to .  It's OK to have the predefined list of sites that is now when voting to move, but it would be nice to have a more link, where we could pick any Stack Exchange site.  Here's a quick mockup of how I see this implemented:    When the more link is clicked, a list of all the Stack Exchange sites should appear. What happens if I unsubscribe from Apple Music, then resubscribe at a later date? I want to cancel my apple music subscription for now, but may want to bring it back this summer. Will all the music I added be permanently removed when I unsubscribe, or will re-subscribing retrieve all my previous music? How do I install wine? Can someone please explain how I can install  in the following ways?   By using the package manager? By downloading and installing a pre-built package? This question was , but I think that the only answer didn't quite understand the question so I thought I'd try again. I'm writing a paper in which I need to have references show up in two places:  a special list of &quot;key references&quot; in its own section, and a bibliography containing the rest of the references that were cited in the text. I thought that bibentry would do it, so the document looks something like: \documentclass[11pt]{article} \usepackage{natbib} \usepackage{bibentry} \nobibliography*  \begin{document}  \section{Amazing idea}  Chicken chicken chicken \citep{chicken:2010fj}.  Chicken chicken, chicken \citep{turkey:2010jk}.  \section{Key References}  \begin{enumerate} \item \bibentry{lemur:2009ii} \item \bibentry{gibbon:2011jk} \end{enumerate}  \bibliographystyle{apalike} \bibliography{amazing.bib} \end{document}  Unfortunately, this doesn't quite do it, as the resulting document presents the lemur and gibbon bibentry references correctly in the &quot;Key References&quot; section, but also prints them in the bibliography at the end of the document.  Ideally, the only entries in the bibliography would be the chicken and turkey \citep references.  I'd like it to look like:  Key references  Lemur, L. (2009). Lemur, 12(4):1-7. Gibbon, G. (2011). Gibbon, 135:1002-1009.  References Chicken, C. (2010). Chicken. Chicken Press, Coop. Turkey, T. (2010). Turkey, 7(4):E231.  What it actually looks like:  Key references  Lemur, L. (2009). Lemur, 12(4):1-7. Gibbon, G. (2011). Gibbon, 135:1002-1009.  References Chicken, C. (2010). Chicken. Chicken Press, Coop. Gibbon, G. (2011). Gibbon, 135:1002-1009. Lemur, L. (2009). Lemur, 12(4):1-7. Turkey, T. (2010). Turkey, 7(4):E231.  Is there any way to achieve this with the current method, or is there some other (possibly easier!?) way to do this? The 'nofollow' attribute is set in user profile website link... why? I understand that from an SEO perspective it is beneficial for Stack Overflow to have the  on the website link for user profiles. Especially if people will just create an account to get a backlink. What I think however, is that contributing members of Stack Overflow should be awarded with this backlink. I think that if someone contributes and has some decent reputation, then they should not have nofollow set on their website link in their user profile. Considering the amount of users that are backlinking to Stack Overflow with flair, I really think that Stack Overflow should hook us up with some search engine love. How do I change the extension of multiple files? Disk full, du tells different. How to further investigate? Let $\Gamma$ be a set of formulas and $\phi$ be a formula. Show that $\Gamma \cup \{\neg \phi\}$ is satisfiable if and only if $\Gamma\not \models \phi$.   This seemed pretty obvious but I wanted to see if my proof made sense:  Proof: $(\Rightarrow)$  To derive for a contradiction, suppose that: $\Gamma \models \phi$. That means for all truth assignments $v$, for $\gamma \in \Gamma$, if $v(\gamma) = T$, then $v(\phi) = T$.  But this contradicts our assumption that $\Gamma \cup \{\neg \phi \}$ is satisfiable by the fact that $v(\phi) = T$ cannot happen so: $\Gamma \not \models \phi$ .  $(\Leftarrow)$   So by the definition of $\Gamma \not \models \phi$, we have that there is some truth assignment $v$ which satisfies $\Gamma$ but does not satisfy $\phi$. So  that means $v(\phi) = F$ since $v(\phi) \not = T$ which implies that $v(\neg \phi) = T$ which means $v$ satisfies $\Gamma \cup \{\neg \phi\}$.    I feel like I'm missing something in the forward direction, but at the same time... It looks pretty trivial as well. Am I missing anything crucial?  Thank you! Was the chip real or fake? I'm talking about the movie  Spoilers ahead.  Walter (Daniel Radcliffe) gave the task or blackmailed the Four Horsemen to steal a chip from a lab which can access any digital device. So they did steal the chip. And when they rescue Dylan Rhodes (Mark Ruffalo) from drowning in the water, Jack Wilder said that the chip is fake.     Jack: Wait something is not right.      Atlas: What's wrong?      Jack: It's fake.   Then they assumed that Walter did not know that the chip is fake. So they came with a plan to bluff. They pretended that they had the real chip. After they got caught by Walter, they gave the fake chip to Walter. Walter checked the chip and declared it as real. The Four Horsemen were surprised.     Walter: I'm sorry to interrupt. But I have to say congratulations and   thank you. It's real.      Lula: What? It's real!!!!!      Atlas: What? Is it real?      Jake: What is he talking about?   What happened? I didn't get it. What did I miss? Was the chip real? Was Walter pretending it to be real? If so, then why? If not, who switched the real chip with the fake one? Who had the real chip before? Circular polarizing filter - slim or regular? I have a Canon EOS 550D. Right now I only have some standard lenses, and I'm looking to buy a Tokina AT-X 116 Pro DX II 11-16mm F/2.8. (I love landscape photography and photography in nature in general.) I want to try using a circular polarizing filter, and I've been looking at the Hoya Filter Circ Pol DMC Pro1 77mm. I can see that the "slim" version is cheaper than the regular one, however, I'm not sure what the difference is. Can any of you tell me which would one be preferable for landscape photography? (I found a thread posted about this some years ago but I would like to hear what you guys think, knowing what camera, lens and filter I'm thinking about combining.)  All feedback would be very much appreciated! :-) Grandi's Series; tends to $1/2$, but why is this considered a valid sum? Grandi's series,  $$1+1-1+1-1+1-1+...$$  can be expressed as the below:  $$\sum_{n=0}^\infty(-1)^n$$  Two valid sums that make sense to me are $1$, and $0$, depending on how you approach the series. $(1+1)-(1+1)-(1+1)-...=0$, and $1+(1-1)+(1-1)+(1-1)+...=1$.  There is consensus, however, that the actual sum is $\frac{1}{2}$. Why? I understand the approach of finding partial means of the series, and they do indeed tend to $\frac{1}{2}$, but it seems unintuitive to assert that the sum is neither $1$ or $0$.  A more convincing method I found was assuming the series is $S$, then shifting it such that $S-1 = S$, then through algebra finding $S = \frac{1}{2}$, but again, it seems more intuitive answer is either $0$ or $1$. I say this strictly because adding and subtracting integers should equal an integer, never a fraction.  Is this a characteristic of infinite series, which is not specific to Grandi's series? How to exactly convert an arithmetic rgb value (e.g 0.55,0.25,0.1) to the corresponding 8bit RGB value (e.g. 123,90,40)?  My more specific questions are:  1.) What is the exact conversion formula and macro?  2.) Is there some built in command or macro for converting it? Where does the "apply bonuses and penalties in the most beneficial order" rule come from, if it exists? I have seen quoted several places on the internet a rule that one can apply bonuses and penalties in the most beneficial order.  An example I come across frequently (as a druid) is the combination of Natural Bond and . Natural Bond increases your effective druid level for determining the stats of animal companions but cannot increase it beyond your character level. Choosing an alternative animal companion lowers your effective druid level for determining the same stats. The "most beneficial order" rule is used to justify applying the level penalty before the natural bond bonus in order to get around the character level cap on natural bond.  Does this rule actually exist? If so, where does this rule originate? I would like to be able to cite a reliable source for my GM. Fundamental question about dimensional analysis How to ignore certain files in Git