LINQ order-by issue
How can I sort a string of text followed by a number using LINQ
What software is used to generate the reputation graphs on Stack Exchange? I'm particularly interested in the zooming functionality which is done very well. Were these graphs generated using off the shelf software or were they coded from scratch? How do I access a page's HTTP response headers via JavaScript?  Related to , which was modified to ask about accessing two specific HTTP headers.     Related: What is the difference between a HMAC and a hash of data? Can you trade from Pokemon Red on GBA to Pokemon gold on virtual console? I have a Game Boy Advance SP and Pokemon Red GEN 1, and I'm curious if it is possible for me to trade a Pokemon from Red to the Virtual Console release of Pokemon Gold on the 3DS Is the Death Star’s gravitational force strong enough to hold an atmosphere? The Death Star is the size of a small moon. Endor being a moon (not sure if it's small or not) has a rich atmosphere.  Could the Death Star hold a nitrogen/oxygen based atmosphere with its gravity?  (Now re-reading my question, I suppose this sounds a lot like the plot of SpaceBalls... that was not my intention) Why Does Harry Have a Scar When Avada Kedavra Leaves No Trace? Why does Harry have a scar when Avada Kedavra leaves no trace?     ‘The Muggle authorities were perplexed. As far as I am aware, they do not know to this day how the Riddles died, for the Avada Kedavra Curse does not usually leave any sign of damage ... the exception sits before me,’ Dumbledore added, with a nod to Harry’s scar.   Half-Blood Prince - page 343 - Bloomsbury - chapter 17, A Sluggish Memory   What caused Harry to retain a scar from Avada Kedavra, when no one else in know history showed any signs of cause of death when Avada Kedavra was used?  What caused Harry's scar?  I'd love an answer based in canon, such as the books, interviews with J.K. Rowling, or Pottermore. What are the best practices for battery longevity? How do you maximize the cycle count of your battery?  There seems to be a debate between:   Leave plugged in 24/7 but do a full cycle once a month Charge to ~100%, drain to ~10%, repeat.   NOTE: Taking your   Which method is better and why? How much of a difference does it really make?  Here are some of the better sources I've found about battery behavior so far. Even still I feel they don't conclusively answer the question above. See my elaborations below:           Elaborating on Option 1  Now IF Apple engineers were smart and optimized for AC draw when plugged in to not use up your charge cycles, then it seem logical to assume that you are using effectively none of your 1000 charge cycles while plugged in. If that's the case, it would seem that the LiPo drop from holding at 100% would be vastly outweighed by the fact you're not using any charge cycles.  However, this is a purely speculative assumption and I could find no evidence to either confirm or deny.  If this is NOT true, and the AC adapter only goes to charging the battery, then there would be no difference. Your battery would drain to 99%, then back up to 100%, then back down to 99%, etc. Those micro-charge cycles would add up at the same rate as 100% -> 0% -> 100%, and you would get no gain. In this case the negative effect of holding LiPo batteries at 100% would outweigh everything else.  Elaborating on Option 2  There are lots of good reasons why Option 2 is the way it is:   Because of known LiPo chemistry issues, holding a 100% charge for a long time causes the battery to degrade Apple specifically recommends not to leave it plugged in all the time  Draining a battery all the way to zero all the time is bad for the cell (Which is why ~10% is used) Heat is a killer, and when plugged in AND charging, you get extra heat that causes damage.   There are a couple reasons why I'm challenging Option 2:   It seems silly that the most intuitive use case for thousands of people that use their macs as primary computers is wrong. If the hypothesis in option 1 is true, you're just burning unnecessarily through your finite charge cycles. It's a pain to have to remember to keep plugging in and plugging out and be worried about whether or not your device is plugged in. Simple way to compare processors Today, comparing processors is obviously not just looking at the frequency and the number of cores.  When choosing a new PC, how do you compare processors? Is there some resource, like a site or something that does (not necessarily super-precise) processor comparisons?  Thanks. MariaDB won't start on Ubuntu: Can't lock aria control file Usage of: 'since', 'for' and 'in' How to set the fully qualified hostname on CentOS 7.0? How do I set the fully qualified hostname on CentOS 7.0?  I have seen a few posts online for example using:  $ sudo hostnamectl set-hostname nodename.domainname   However, running domainname returns nothing:  $ domainname (none)   Also:  $ hostname nodename.domainname   However,  $ hostname -f hostname: Name or service not known $ hostname -d hostname: Name or service not known   Some debug output:  $ cat /etc/hostname nodename.domainname  $ grep ^hosts /etc/nsswitch.conf hosts:      files dns What do two question marks together mean in C#? Ran across this line of code:  FormsAuth = formsAuth ?? new FormsAuthenticationWrapper();   What do the two question marks mean, is it some kind of ternary operator? It's hard to look up in Google. Can negative levels get rid of racial HD? What happens when one is affected by something such as energy drain, and permanently loses levels when one only has racial HD? Does the victim of the spell die? Or do they permanently lose racial HD? Why does water pouring from a glass sometimes travel down the side of the glass? If you have a glass of water, say, three quarters full and you pour it at an angle of say, $45^{\circ}$ with respect to the the table, the water comes out of the glass and goes directly down towards the floor.  However, when the glass is more full, or even three quarters full and the 'angle of pouring' is far less with respect the table, when the water comes out of the glass, rather than going straight down it kind of stays stuck to the glass and travels down the outside of it.  Why does this happen? (I'm sure many of you have observed it yourself by accident and ended up making a mess). Aggregate Rating not displayed in Google search results When posting an HTTPS url like https://stackoverflow.com/..., it does not onebox in chat. For example: Derivative (or differential) of symmetric square root of a matrix Let A be a square, symmetric, positive-definite matrix.  Let S be its symmetric square root found by a singular value decomposition.  Let vech() be the half-vectorization operator.  Is there a convenient expression for the derivative (or differential) of vech(S) with respect to vech(A)?  I know the expression for an inverse, which is sort of like a matrix version of the power rule.  Would this approach work for a symmetric square root as well (i.e., (1/2)S^(-1/2))? What's wrong with this equal probability solution for Monty Hall Problem? I'm confused about why we should change door in the Monty Hall Problem, when thinking from a different perspective  gives me equal probability.   Think about this first: if we have two doors, and one car behind one of them, then we have a 50/50 chance of choosing the right door.   Back to Monty Hall: after we pick a door, one door is opened and shows a goat, and the other door remains closed. Let's call the door we picked A and the  other closed door B. Now since 1 door has already been opened, our knowledge has changed such that the car can only be behind A or B. Therefore, the problem is equivalent to: given two closed doors (A and B) and one car, which door should be chosen (we know it's a 50/50 thing)? Then, not switching door = choosing A, and switching door = choosing B. Therefore, it seems that switching should be equally likely, instead of more likely.   Another way to think: no matter which door we choose from the three, we know BEFOREHAND that we can definitely open a door with a goat in the remaining two. Therefore, showing an open door with a goat reveals nothing new about which door has the car.   What's wrong with this thinking process? (Note that I know the argument why switching gives advantage, and I know experiments have been done to prove that. My question is why the above thinking, which seems legit, is actually wrong.) Thanks. I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it. iPhone App CrashReport