I am writing a list sorting extension method. My input is the list and a string with property name and sort direction. This string can have multiple properties like so: "Name ASC, Date DESC" etc.  I already implemented the string parsing and used reflection to get the property itself from the string, but what I am stuck on now is how do I dynamically chain the orderby methods.  something like: _list.orderBy(x=&gt;x.prop1).thenBy(x=&gt;x.prop2) etc.  Is there any way to build this dynamically?
I found an example in the  for Dynamic LINQ that allows you to use a sql-like string (e.g. OrderBy("Name, Age DESC")) for ordering. Unfortunately, the method included only works on IQueryable&lt;T&gt;. Is there any way to get this functionality on IEnumerable&lt;T&gt;?
Ran out of inodes - 100% Full I am using Ubuntu 16.04 on AWS EC2 instance which has been working fine until this problem.  My problem is that I've used 100% of available inodes, as I discovered with this command:  $ df -i Filesystem     Inodes  IUsed  IFree IUse% Mounted on udev           124464    360 124104    1% /dev tmpfs          126787    449 126338    1% /run /dev/xvda1     524288 522638   1650  100% / tmpfs          126787      1 126786    1% /dev/shm tmpfs          126787      5 126782    1% /run/lock tmpfs          126787     16 126771    1% /sys/fs/cgroup tmpfs          126793      4 126789    1% /run/user/1000   The main culprits I discovered:  $ find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n    1155 /usr/src/linux-headers-4.4.0-62/include/linux    1155 /usr/src/linux-headers-4.4.0-65/include/linux    1155 /usr/src/linux-headers-4.4.0-66/include/linux    1155 /usr/src/linux-headers-4.4.0-70/include/linux    1155 /usr/src/linux-headers-4.4.0-71/include/linux    1155 /usr/src/linux-headers-4.4.0-72/include/linux    1155 /usr/src/linux-headers-4.4.0-75/include/linux    1155 /usr/src/linux-headers-4.4.0-78/include/linux    1155 /usr/src/linux-headers-4.4.0-79/include/linux    1155 /usr/src/linux-headers-4.4.0-81/include/linux    1155 /usr/src/linux-headers-4.4.0-83/include/linux    1155 /usr/src/linux-headers-4.4.0-87/include/linux    1155 /usr/src/linux-headers-4.4.0-89/include/linux    1155 /usr/src/linux-headers-4.4.0-91/include/linux    1155 /usr/src/linux-headers-4.4.0-92/include/linux    1514 /usr/src/linux-headers-4.4.0-62-generic/include/config    1516 /usr/src/linux-headers-4.4.0-65-generic/include/config    1516 /usr/src/linux-headers-4.4.0-66-generic/include/config    1516 /usr/src/linux-headers-4.4.0-70-generic/include/config    1516 /usr/src/linux-headers-4.4.0-71-generic/include/config    1516 /usr/src/linux-headers-4.4.0-72-generic/include/config    1516 /usr/src/linux-headers-4.4.0-75-generic/include/config    1517 /usr/src/linux-headers-4.4.0-78-generic/include/config    1517 /usr/src/linux-headers-4.4.0-79-generic/include/config    1517 /usr/src/linux-headers-4.4.0-81-generic/include/config    1517 /usr/src/linux-headers-4.4.0-83-generic/include/config    1517 /usr/src/linux-headers-4.4.0-87-generic/include/config    1517 /usr/src/linux-headers-4.4.0-89-generic/include/config    1517 /usr/src/linux-headers-4.4.0-91-generic/include/config    1517 /usr/src/linux-headers-4.4.0-92-generic/include/config    1517 /usr/src/linux-headers-4.4.0-93-generic/include/config   Is it safe to delete these files, and if yes could you please tell me the exact command or commands to use on my PuTTY client? In my , I provided the following, problematic,  wording (especially bold italic), and I need help to better understand this issue so I can fix my answer:1          The thing is the books. (Reduced form of Sentence 2.a)         Fundamentally, Sentence 2.a (the so-called "correct" answer), is grammatically defective. Recall there is another grammatical rule: the subject and subject's complement should match in number.    A clarification is needed here. I am not suggesting here, in this EL&amp;U question, that there is any such singular grammatical rule as indicated in the quote above.  The quote continues as follows:     The reduced sentence makes the disagreement between the subject's and complement's plurality obvious. What is one to do? Language is linear and we know "The thing is X" is better than "The thing are X", so we go with the former, which is the subject-verb agreement rule. But what is "the books" then? It must be thought of as a collective noun, even if it doesn't look or feel like one. Forcing something to be a collective noun is related to the idea of notional agreement.   Others noted that grammatically defective is too strongly worded.  There is no such "grammatical rule" for subject/complement agreement.  Please help me understand/improve upon my line of thought here.  I'm stating that Sentence 2.1 presents a fundamental "conflict" or "error" (however one might define error) at some level (morphological, syntax, grammatical, semantic):     The thing is the books.  (Or, "The thing is the objects.")   Based on the "obvious" morphosyntactic plurality conflict, the above sentence feels so wrong that I think many native speakers would think it "simply" grammatically incorrect. However, @F.E. gives counter examples:     And here are some more grammatical examples, where the number of subject and predicative complement don't agree: "They were a problem to us all", "That so-called work of art is simply four pieces of driftwood glued together" (CGEL, page 254-5). As CGEL says: "What is required is semantic compatibility, not syntactic agreement . . .". There are more examples on page 512: "The only thing we need now is some new curtains", "The major asset of the team is its world-class opening bowlers", "Our neighbors are a nuisance", "This gadget is five different tools in one".   I think all the examples given above can be explained as notional agreement.    Question 1: If we explain this phenomena in terms of notional vs syntactic agreement, where does "grammatically correct/incorrect" fit in?  Question 2: Can a simple sentence such as "The thing is the objects." be grammatically incorrect while more complex sentences such as "The thing is four pieces of driftwood glued together." be grammatically correct?  (The answer, in my mind, must be no; this is my conundrum.)  Question 3: Would it be better to say that Sentence 2.a has a low level of (linguistic) ?   Question 4: How about a low level of  and that it's semantically difficult to be (linguistically) ?    Question 5: Do we simply draw a hard line and say "The thing is the objects." is 100% grammatically correct?  I didn't particularly like this option based on intuitive notions of "grammatically correct".    1. Please help me and be kind; I'm trying to improve my understanding. I'm looking for cool, objective advice on how to look at this.  I numbered my questions so they can be easily referenced, if desired.  My preference is the final answer would sufficiently answer all the questions, but of course that can be done explicitly or implicitly. in QGis 1.8 were lots of predefined coordinate systems (national projections). Where have they all gone in qgis 2.0? I specifically need the Gauß-Krüger-Projections Zone 1 to 5.  Is there any plugin to load those coordinate systems? I've always wondered what the deal was with Darth Vader's "crotch door". Does he use a catheter (due to all his injuries) or does he simply flip the door up and whip it out? I've never really seen the the back of his suit under his cape to see if there a corresponding "back door".   It doesn't look like he carries a catheter bag nor a colostomy bag in his suit or anything.     Is this addressed anywhere either in canon or legends sources? Prove that $\sup \{-x \mid x \in A\} = -\inf\{x\mid x \in A\}$ I need to prove that $\sup \{-x \mid x \in A\} = -\inf\{x \mid x \in A\}$ and am having trouble moving the $-x$ out of the $\sup$ to $\inf$. Another thing is that I don't quite know how to prove $b = \inf$ (see below). Any help would be appreciated! Here my attempt:  Let $a = \sup\{-x \mid x \in A\}$  Then by definition $a \geq -x$ for $x \in A \implies -a\leq x$ for $x \in A$  Thus $-a$ is a lower bound of $A$. Assume $b$ is a lower bound of $A$  Then $b \leq -a \implies  a \geq -b$ and $a = \sup \{−x \mid x\in A\} = -\inf(A)$ Looking for title & author - short story - possibly called "Arms Race" - about rediscovery of manual arithmetic short story - possibly called "Arms Race" - about rediscovery of manual arithmetic.   The hero rediscovers manual calculation - e.g., how to do long division with pencil and paper - in a world where everyone has ben using calculators for aeons. Brought before the president to demonstrate this, the great line in the story is the president, after using his calculator to check the hero's answer, says, "My God -- he's right." A great national project to exploit this advance over the enemy is obviously necessary... Permission denied to change gid(group) of a file I own It appears I still miss some things about the way permissions work. I am on a debian 7 system btw. just now I have this file of which I downloaded and it belongs to myuser:myuser, that is both user and group are set to me. It also resides in my $HOME directory since that is where I downloaded it to.  So far so good. Now I want to share this file with some other users of the pc and for that I want to switch the group ownership of the file to group "users". however that fails:  nass@quarx:~/xmas_carol$ chgrp -R users *  chgrp: changing group of movie.mov': Operation not permitted   And the contents of the folder are:  -rwxr-xr-x 1 nass nass 2482411461 Feb  6 03:57 movie.mov   I am fuzzy about what is going on with the permissions. Can someone explain Semicolons at the end of list items In school, we were taught to end each list item with a semicolon. But I have never actually seen this. Can somebody please confirm this? Should we end each list item with anything at all?  I've seen people use periods after each list item, colons, and even commas. But I've never seen a semicolon at the end of each item — and even if I have, it would be that rare that I've forgotten.  Example:   item; item; item; item Process descendants Why does camera this tracking fail completely even when the solution value is very low? Is there offside when the ball deflects off an opponent? I was refereeing a 10 year old's junior game today and this situation happened. The home team's defender attempted to  pass from their own half to their forward who was in an offside position beyond the halfway line.  I was going to blow the whistle but the ball deflected off an away defender and then went to the originally offside attacker who put the ball wide.  I viewed this as onside at the time because the ball struck the away team player, however now I think it was offside because at the time of pass, the home player was offside.  Is this offside or not? Extract reply addresses from all emails in an outlook folder (sent on behalf of) I've got to send a bulk email out to a bunch of people in reply to emails they sent me. I've got all the original emails stored in a single outlook folder. I want to extract all of the reply addresses from the emails in that folder so I can send an email to all of them.  The article  shows you how to export the FROM address of these emails, however a large amount of them came from a web service that sends emails 'on behalf of' the person I'm trying to mail to. So I need the reply-to address, and the export wizard doesn't do that.  Does anyone have a tip on how to do this? This is Outlook 2007 on Exchange 2010. Is $f(a)\!=\!0\!=\!f(b)\Rightarrow (x\!-\!a)(x\!-\!b)\mid f(x)\,$ true if $\,a=b?\ $ [Double Factor Theorem] Is there a function or method to give the last day of a month? For example if the date is 27 feb 2013, the last date should be 28 feb 2013 , it become 29 if its a leap year. if the date was 2 jan then it should return 31 Jan.  If there is no function then any ideas on how we can get this?  Thanks How do you get \mathbb{1} to work (characteristic function of a set)? I am trying to get the digit one printed the \mathbb{} font in math mode, however the command  \mathbb{1}   outputs some rubbish. I certainly saw the character I am after in some pdf's generated from latex, hence my question: how do you get it to work? What is the right first step to take when integrating $1/(2+ \sin x + \cos x)$? I want a hint on this following integral. I don't know the first step, do I do $u$-sub. or do I use trig. sub or something?  $$\int \frac{1}{2+ \sin x + \cos x} ~\mathrm{d}x$$ Mod shows up with OP background when viewing deleted comments Is there anybody who can help me show the following?      $$ \sum_{x=0}^{n-1} \cos\left(k +x{2\pi\over n}\right) =0  \qquad\hbox{and}\qquad  \sum_{x=0}^{n-1} \sin\left(k +x{2\pi\over n}\right) =0 $$   I can only prove this claim for the sine expression when $k=0$, by grouping the output values such that they all cancel out (for both $n$ even and odd). I have thought about using complex numbers in exponential form to prove it, but I can't do it ... :P   I would really appreciate an algerbraic proof. How to find chromatic number of the $n$-dimensional hypercube $Q_n$? How to get only one vertically centered equation number in align environment with two equations