Sorting Dictionary items
How do I sort a dictionary by value?
Using memory with a higher MHz rating? Can MacBook Pro's successfully support and fully exploit RAM of a higher MHz rating than that which they ship with?    For example, take my 15" MacBook Pro () that ships with 4GB of 1333MHz DDR3 memory. I'm considering buying 16GB of the same clock speed even though Apple says that it can "support up to 8GB" — .  What about installing 1600MHz in the 16GB variant — will it work? Or will it be clocked down to 1333MHz? When compared to 16GB 1333MHz, will the higher clock speed improve battery life, performance, timings, or what? My 1.12 solution can be found . When trying to update command blocks to 1.13, I have the following:  scoreboard objectives add invert dummy   (run at start) then:  scoreboard players set FakePlayer invert 1   (impulse unconditional repeat) chained into:  execute at @e[tag=summoned] run scoreboard players reset FakePlayer invert   (chain unconditional repeat) chained into:  execute if score FakePlayer invert = 1 invert run say "All summoned animals are dead!"   This should reset FakePlayers score continuously until all entities with tag "summoned" are dead, then it should run the final condition. This does not happen, and I can't see why. Why shouldn't I care what model/make/year my bicycle is? We often get questions on bicycles.stackexchange about identifying a bicycles manufacturer, model, make, and year.  Often these questions are downvoted or closed -- usually with a comment attached to them that it's not necessary to know the exact model/make/year of a bicycle if you want to fix, repair, or ride your bike. Why should owners not care about the model/make/year of their bicycle? Especially when it comes to less expensive bikes (aka BSOs) and BMX bicycles? This is intended as a canonical question that we can point closed questions to. Also see      (generally not helpful for identifying a brand/model) Let $R$ be a UFD and $r\in R$ irreducible. If $S=R-(r)$, why is $S^{-1}R$ a PID?   I've finished proving the integral domain part, which was pretty easy.  How to prove it's principal? consider $R \subset S^{-1}R \subset F$, where $F$ is the field of fractions of $R$?  thank you! :p Divisibility by 7 What is the fastest known way for testing divisibility by 7? Of course I can write the decimal expansion of a number and calculate it modulo 7, but that doesn't give a nice pattern to memorize because 3 is a primitive root. I'm looking for alternative ways that can help you decide when a number is divisible by 7 by hand.  I'm sorry if this is a duplicate question, but I didn't find anything similar on the site. In Einstein's General Relativity, do the space-time dimensions curve according to the positions of stars, planets, and masses? Split file into multiple files based on pattern I have a large file that's a couple hundred lines long. This file is partitioned into many parts by a specific identifier, lets say 'ABC'. This line 'ABC' appears 6 times so I want 6 output files. I'm familiar with split and awk but can't seem to create a command line that will do what I've described, any ideas?  Here's an example  ABC line 1 line 2 line 3 ABC line 1 line 2 ABC line1   I'd like three files where ABC is the first line in the new file and it ends before the next ABC is encountered. The iPhone has a very limited selection of default ringtones.  How do I create a new ringtone for my iPhone? How can I easily share links or text between my Android phone and my laptop? Outlook from time to time makes an operation 'Send and Receive.' This can sometimes be quite slow and Outlook hangs while this is done.    Is is possible to set different intervals for different mail accounts (if user has multiple accounts configured within Outlook, e.g., main Exchange account and one or more IMAP accounts) If yes (or even if only for some [e.g., IMAP accounts], where in the settings it can be configured?  (e.g., Outlook 2007) Defining the Product of Ideals Where does the &quot;naive definition&quot; of the product of two ideals $I$ and $J$, $IJ = \{ ij \mid i \in I, j \in J \}$ fall apart? (The product of two ideals $I$ and $J$ is defined to be $IJ := \sum_i a_ib_i$, where each $a_i$ is in $I$ and each $b_i$ is in $J$.)  Note: This is a question from a problem set I'm working on. I am not expecting a full solution for the answers, but I'd like some help knowing where to look. It seems to work fine in $\mathbb{Z}$ and $\mathbb{C}[x]$. How are these AES MixColumn multiplication tables calculated? I'm using the mul2, mul3, mul9, mul11, mul13 and mul14 tables for the MixColumn and InvMixColumn steps in AES-128. However, I got these off some Github repository, and now I'm looking for an actual source explaining how these were calculated and so on.  I cannot find anything proper on Google, can anyone help me out? Missing entry in flagging history I happened to glance upon my flagging history and I realized that there was an entry missing from the spam section in it. I had marked 6 posts as spam, out of which 4 were deemed helpful and 1 was declined. I'm not sure what happened to the remaining 1 entry and why it is missing from the history summary. Here is a snapshot of the spam section of my flagging history.    Is this behavior a  or a ?  Note: I've checked my flagging history completely and there is no spam flag which is still in the active state. What are the shell's control and redirection operators? I often see tutorials online that connect various commands with different symbols. For example:  command1 |  command2 command1 &amp;  command2 command1 || command2     command1 &amp;&amp; command2   Others seem to be connecting commands to files:  command1  &gt; file1 command1  &gt;&gt; file1   What are these things? What are they called? What do they do? Are there more of them?    . Why can't I suggest edits on SE meta sites? Are static fields open for garbage collection? Given an hypothetical utility class that is used only in program setup:  class MyUtils {    private static MyObject myObject = new MyObject();    /*package*/static boolean doStuff(Params... params) {        // do stuff with myObject and params...    } }   will myObject be garbage collected when it is no longer being used, or will it stick around for the life of the program? Differences between Verb + to be + adjectives and Verb + adjective What if the Earth stops in its orbit and instead falls straight towards the Sun? The Earth orbits around the Sun because it has angular momentum. If we stopped the Earth in orbit and then let it fall straight towards the Sun, how long would it take to reach the Sun in seconds?  Details and assumptions  The mass of the sun is 2*10^30 Kg. The mass of the earth is 6*10^24 Kg. The earth is 149,600,000 Km from the Sun. You may treat the Earth and Sun as point masses. Let $ f: \mathbb {R} \rightarrow {\mathbb {R}} $ be given by   $$ f (x) = \left \{\begin {matrix} \sin ({\frac {1} {x}}), &amp; \text {if} \phantom {a} x \neq 0; \\  c, &amp; \text {if} \phantom {a} x = 0 \end {matrix} \right. $$ where $ c \in [-1,1]$. For what values ​​of $c$ is there an antiderivative of $f$?  I do not know of a theorem of the form "if and only if" that  it tells me when a function $ f $ has no antiderivative.  Anyone have a suggestion? How to start X windows inside "Bash on Ubuntu on Windows" After installing the new feature (still "Beta") called  that is a feature subset of Windows 10 Anniversary edition, I get the following message when trying to start X-Windows using startx :    What do I need to tweak / configure in order for X-Windows to launch?  I noticed that xauth was already installed, however I had to install the rest of the framework as follows :  apt-get install xorg openbox