I have the following list in a table  Name Server1 Server2 Server3 Server4 Server5 Server6 Server7 Server8 Server9 Server10 Server11 Server12   only problem is my linq satement orderby Name ascending puts them like the below  Server1 Server10 Server11 Server12 Server2 Server3 Server4 Server5 Server6 Server7 Server8 Server9   is there anyway to stop this?  Thanks
Anyone have a good resource or provide a sample of a natural order sort in C# for an FileInfo array?  I am implementing the IComparer interface in my sorts.
How do you take off body armor in GTA Online? It's kind of hard to shop for clothes with a big bullet proof vest on.  Is there a way to take off the armor after missions, or at least hide it? Why does the max aperture change when use Nikon 60mm AF-D Micro on D90 camera? I have found that my Nikon 60mm Micro AF-D changes aperture from 2.8 to 3.2 when used with a D90. I have tried both A and M mode. Is it by design? Why?  I intend to buy  and it will lock the maximum aperture at 2.0 (my guess) instead 2.8. So should I buy it or not, or would it be better to buy the newer 50mm 1.4 AF-S version? Is there any specific word for a person who is always online on the Internet?  I am just curious to know because staying online is like a profession nowadays. difference fn(String... args) vs fn(String[] args) Whats this syntax useful for :       function(String... args)   Is this same as writing       function(String[] args)    with difference only while invoking this method or is there any other feature involved with it ? $P[X=x]=0$ when $X$ is continuous variable How to get the Runtime-Type of an Object dynamically (for Primitive Data Types and SObjects) Is it possible to get the Type of an Object (it's not an SObject)?  String s = 'test'; doSomething(s);  public static void doSomething(o Object) {     // need to find out if o is a string or an integer     type = IsThereAMethodToGetTheTypeOf(o) // ?     if(type='String') {         // do something for strings here ....     } else {         // do something else ....     } }   I think the Type class can't help me, because it has no way to get the type of an existing object instance, right? Any there any other way?  Since there is most likely no perfect solution possible within the current platform limitations, I posted an Idea on IdeaExchange here:   For SObject I have already this  public static string getType(SObject obj) {     if(obj==null) return '';     return obj.getSObjectType().getDescribe().getName()+''; } For starters I am using this GREAT answer to achieve custom post types as well as a custom way to insert those post types into other pages, you can view that answer here:   I am running into a problem however when wordpress auto saves itself, it clears whatever metadata i have put into the forms.  EXAMPLE:  I select the 3 drop downs I want from my metabox and hit update.  The page reloads and the 3 choices are still selected.  In phpMyAdmin i can look up the metadata and see the array in place as it should be.  I now wait for wordpress to auto save.  As soon as this happens i can either refresh the page (not update, just refresh) and the metadata is lost, or i can look up the metadata in phpMyAdmin and it will display nothing (ie: its gone).  I'm guessing that this has something to do with needing to tie into another hook (some sorta auto update hook) or something, but even then it doesn't make sense that it would actually delete your metadata (rather than just not auto updating it).  Last note: If you copy and paste Mikes code into functions.php, you should be able to recreate my error (in wordpress 3.1) very easy. Potato Power. Self sustaining medium using a living potato plant possible? If a Continuous function $f(x)$ satisfies $f(x) = f(2x)$, for all real $x$, then does $f(x)$ necessarily have to be constant function? If so, how do you prove it? If not any counter examples? A word used to describe someone who loves to be photographed Is there anyway in a flex application to figure out (in runtime) when the running swf was compiled?  I'd like to compare this with the latest file version of the swf on the server and detect if there's a newer version on the server and if so force the user to reload their browser to get the new version.   I need this to also work with swfs from the cache. How can I get Google Sheets to treat my form-submitted strings as plain text and preserve leading zeros? I have Google Forms where users enter information, some of which contains leading zeros (e.g. zip codes, ID numbers).   However, when this data is saved to the Google Sheet, it doesn't treat it as plain text and strips the zero. The form fields are text fields with no validation.   I have tried to format the range of cells containing these values as plain text, but it seems Sheets does not set the formatting as plain text unless there is already text in a cell. So I can format a column as plain text, submit the form, and the leading zero will still be stripped.   I tried writing an apps script to deal with this but there's no good way for me to deploy it to the users who would need it.   How can I get around this without having to instruct users to prepend a single quote to their form entry? This is such a small thing, but I can't find a good simple solution to what it seems must be a common problem. If I can't get this to work I may have to drop Google Forms/Sheets altogether. Why do electrons occupy the space around nuclei, and not collide with them? We all learn in grade school that electrons are negatively-charged particles that inhabit the space around the nucleus of an atom, that protons are positively-charged and are embedded within the nucleus along with neutrons, which have no charge. I have read a little about electron orbitals and some of the quantum mechanics behind why electrons only occupy certain energy levels. However...  How does the electromagnetic force work in maintaining the positions of the electrons? Since positive and negative charges attract each other, why is it that the electrons don't collide with the protons in the nucleus? Are there ever instances where electrons and protons do collide, and, if so, what occurs? At lunch, my coworkers and I were discussing The Force Awakens, and started questioning Chewbacca's age.  A quick check of  and it says he is possibly about 230 years old as of Episode VII.  Following the  link on that page, Wookieepedia claims that they live to be 400 years old.  Do we know from canon what the average life expectancy of a Wookiee is? how to make clean without any modification? At least two questions (, ) on this site indicate that in more than a few isolated cases at least, letters of recommendation are in fact written by the applicant and only signed off (or perhaps rephrased somewhat) by the recommender, who would actually be responsible for writing the letter.  Is there any evidence about the prevalence of this practice that goes beyond anecdotes? I realize that cross-country (cultural) difference may play a role. Fixing a code to highlight formulas and text on several lines In  I've found the following amazing code to highlight text on several lines.  The problem is that code dosen't work well with formulas : for example, fraction using the mode display are partially out of the highlighting frame.   Here is the code with one content showing the problem.  \documentclass{article}     \usepackage{soul}     \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{amsmath}     \usepackage{xcolor}      \makeatletter         \newcommand{\defhighlighter}[3][]{%             \tikzset{every highlighter/.style={color=#2, fill opacity=#3, #1}}%         }          \defhighlighter{yellow}{.5}          \newcommand{\highlight@DoHighlight}{             \fill[                 outer sep = -15pt, inner sep = 0pt,                  every highlighter, this highlighter              ](                 $(begin highlight)+(0,8pt)$) rectangle ($(end highlight)+(0,-3pt)$             );         }          \newcommand{\highlight@BeginHighlight}{             \coordinate (begin highlight) at (0,0) ;         }          \newcommand{\highlight@EndHighlight}{             \coordinate (end highlight) at (0,0) ;         }          \newdimen\highlight@previous         \newdimen\highlight@current          \DeclareRobustCommand*\highlight[1][]{%             \tikzset{this highlighter/.style={#1}}%             \SOUL@setup             %             \def\SOUL@preamble{%                 \begin{tikzpicture}[overlay, remember picture]                     \highlight@BeginHighlight                     \highlight@EndHighlight                 \end{tikzpicture}%             }%             %             \def\SOUL@postamble{%                 \begin{tikzpicture}[overlay, remember picture]                     \highlight@EndHighlight                     \highlight@DoHighlight                 \end{tikzpicture}%             }%             %             \def\SOUL@everyhyphen{%                 \discretionary{%                     \SOUL@setkern\SOUL@hyphkern                     \SOUL@sethyphenchar                     \tikz[overlay, remember picture] \highlight@EndHighlight ;%                 }{}{%                     \SOUL@setkern\SOUL@charkern                 }%             }%             %             \def\SOUL@everyexhyphen##1{%                 \SOUL@setkern\SOUL@hyphkern                 \hbox{##1}%                 \discretionary{%                     \tikz[overlay, remember picture] \highlight@EndHighlight ;%                 }{}{%                     \SOUL@setkern\SOUL@charkern                 }%             }%             %             \def\SOUL@everysyllable{%                 \begin{tikzpicture}[overlay, remember picture]                     \path let \p0 = (begin highlight), \p1 = (0,0) in \pgfextra                     \global\highlight@previous=\y0                     \global\highlight@current =\y1                     \endpgfextra (0,0) ;                     \ifdim\highlight@current &lt; \highlight@previous                         \highlight@DoHighlight                         \highlight@BeginHighlight                     \fi                 \end{tikzpicture}%                 \the\SOUL@syllable                 \tikz[overlay, remember picture] \highlight@EndHighlight ;%             }%             \SOUL@         }     \makeatother   \begin{document}  Lorem ipsum \highlight{dolor sit amet, consectetur adipis-icing elit, sed do eiusmod tempor} incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation \highlight[red]{ullamco $laboris$ nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit} in voluptate velit esse cillum dolore eu fugiat nulla pariatur.  Excepteur sint occaecat \highlight[green, draw=blue]{cupidatat non proident  $\dfrac{789}{7889}$ % The frame is not good for that formula ! suntinculpaquiofficiadeseruntmollitanimidestlaborum. Loremipsumdolorsitametconsecteturadipisicingelitseddoeiusmodtemporincididuntutlabore-etdoloremagnaaliqua.} I suppose I could write some more text here.  \end{document}     Is someone could help me to fix it? If $x,y,z\in\mathbb R\setminus \{1\}$ and $xyz=1$, prove that $\frac{x^2}{(x-1)^2}+\frac{y^2}{(y-1)^2}+\frac{z^2}{(z-1)^2}\ge 1$. If $x,y,z\in\mathbb R\setminus \{1\}$ and $xyz=1$, prove that $$\frac{x^2}{(x-1)^2}+\frac{y^2}{(y-1)^2}+\frac{z^2}{(z-1)^2}\ge 1$$  Without using calculus. There are a few ways I've tried solving this:  $1)$ We could try using the Cauchy-Schwarz inequality: $$\frac{x^2}{(x-1)^2}+\frac{y^2}{(y-1)^2}+\frac{z^2}{(z-1)^2}\ge \frac{(x+y+z)^2}{(x-1)^2+(y-1)^2+(z-1)^2}$$  But it's apparent that nothing's useful here.  $2)$ We could use AM-GM as well: $$\frac{x^2}{(x-1)^2}+\frac{y^2}{(y-1)^2}+\frac{z^2}{(z-1)^2}\ge 3\sqrt[3]{\frac{x^2y^2z^2}{(x-1)^2(y-1)^2(z-1)^2}}=\frac{3}{\sqrt[3]{(x-1)^2(y-1)^2(z-1)^2}}$$  So we only have to prove that: $$\sqrt[3]{(x-1)^2(y-1)^2(z-1)^2}\le 3$$  We could raise both sides to the power of 3: $$(x-1)^2(y-1)^2(z-1)^2\le 27$$  But this inequality doesn't hold.   $3)$ We could try cleaning the denominators by multiplying both sides by $(x-1)^2(y-1)^2(z-1)^2$. After a bunch of expanding and simplifying we get that: $$x^2y^2+y^2z^2+x^2z^2-6(xy+yz+xz)+2(x+y+z)+9\ge 0$$  I can't tell so easily whether the inequality is true or not. You could help me out on this one. Just don't forget that $x,y,z\in\mathbb R\setminus\{1\}$ and so we can't just simply use AM-GM, unless we're using it for squares that have to be non-negative. I am looking to sell and buy a house. But with the current market being as crazy as it is (houses are selling fast for sometimes 150,000 over asking), I'm afraid if we sell first, we could be stuck without a new house. Or stuck settling on or over-paying for something and wishing we never sold at all. I'm wondering if it's possible to buy first. What is the best way to secure my next house before selling my current house without getting locked into a B-lender mortgage or risking too much?  I know there would be some risk putting an offer on a new house without knowing how much the current house will sell for, or the risk we don't sell the current house before the new house closes. I'm also afraid conditional offers will not be considered. Are there any other options?  (We do have a mortgage on the current house, but because the market has gone up so much there is also a good chunk of equity.) How to list only JPEG files from root below using the command line?