Java sort HashMap by value
Sort a Map by values
When trying to mount an exfat filesystem, I get the following error:  Error mounting /dev/sda6 at /media/gkp/Backup: Command-line  `mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid" "/dev/sda6" "/media/gkp/Backup"'  exited with non-zero exit status 32: mount: unknown filesystem type 'exfat'   Exfat is used on some USB sticks and camera sd cards. What can I do to mount this type of filesystem? Resizing videos with ffmpeg/avconv to fit into static sized player I have a html 5 video player which is 700px wide, 400px high. I'm trying to use avconv to use ffmpeg to resize (while retaining the aspect ratio) and making sure it fits into my player.  Input can be a file of any size, so I need to resize the larger ones but center the smaller ones with black bars. So far I've tried: -s and -aspect, I've seen pad being used with the -vf switch but don't understand how it works enough to get what I need.    This is a rough idea of what I need. I'm not sure if it's even possible. It's almost like CSS's max-width/max-height. I realise this may just be a jumble of words but if anyone happens to understand what I'm talking about, I'd appreciate help, Thanks.  avconv command:  avconv -y -i control.avi -vcodec libx264 -b 2000k -bufsize 20M -acodec aac -strict experimental -ar 44100 -ab 256k bigbuck_out.mp4 How to include audio file in PDF How do I include audio file, or should I say, link to audio file in PDF?   Audio should be playable "from PDF directly", without opening any additional window. Is it possible to attach audios to PDF     then so I can manipulate only with     that file, without being bothered     with copying folders where those     audio files would reside?   I saw that 1. is definitely doable (but don't know how) and I'm interested if second one is also possible (while compiling .tex file) since I know that some files (like graphs and tables) can be attached in PDF, but after it's generated.   Button for playing audio from document that uses this trick. Related:   This is a subtly different question because I'm not asking whether there's a historical relationship between the two lineages.  I am asking this question because answers to these questions:      are making assumptions about the appearance of Padme while pregnant, the period of gestation, and appearance of newborn babies.  All of these presuppose that the "humans" of the Star Wars Galaxy are 100% biologically equivalent to us.   In fact, as far as I know, we don't actually know any of those facts from canon.   (Do we?)   All we know is that "human" children and adults look like us.  So, do we have any canon or out-of-universe commentary that tells us that Star Wars humans and Earth humans are biologically equivalent?  Another way to put this would be  If presented with a Star Wars human and a Milky Way human, would the best doctors or the best medical droids be able to distinguish them? "Disappear" as a transitive verb How do I remove "Ubuntu" in the bios boot menu? (UEFI) Independent Edit/Object mode in splitscreen How to tell Max CP? How do electrons jump orbitals? My question isn't how they receive the energy to jump, but why.  When someone views an element's emission spectrum, we see a line spectrum which proves that they don't exist outside of their orbitals (else we would see a continuous spectrum).  Electrons can be released in the form of beta decay, thus proving that they are capable of traveling outside of orbitals contrary to the statement my teacher said that they stay within orbitals. Then, to add to the confusion, the older model of rings floating around a nucleus has, from what I can tell, been outdated, which would support this model. My teacher's explanation was that the electrons made a quantum jump of some kind. How do electrons move between orbitals or do we know how they jump, excluding the reason that energy causes them to jump, and why are positrons formed sometimes instead of electrons in Beta decay?  When I'm asking "how do electrons jump" I would like to know how an electron can jump between each orbital such as how it moves and how it knows where to jump since it appears to be a jump where the electron doesn't slow into a orbital position. Specifically how they jump what is this Atomic electron transition, I understand that they jump and that they do this through absorbing and releasing energy but what is this Atomic electron transition other than what is already on the wikipedia article . Array with labeling columns Is there an intelligent way to label (or name) columns in a matrix? I would like to have something like  \[M=\left[\begin{array}{c|cc} 1 &amp; 2 &amp; 3\\ 4 &amp; 5 &amp; 6 \end{array}\right],N=\left[\begin{array}{c|cc} 7 &amp; 8 &amp; 9\\ 10 &amp; 11 &amp; 12 \end{array}\right]\] \[A \ B \ C \ D \ E \ F\]   where A, B,..., F are the labels (or rather names) of the first, second, ..., sixth columns, respectively. What I want is to label A be exactly below the first column, label B be below the second column, etc., of course, nicely aligned. So far I have forced some extra spaces before the labels manually, and also experimented with the \phantom command. Can a goalkeeper chip the ball to the head of a teammate from a goal kick to circumvent the backpass restriction? No reputation for editing questions? System.QueryException: List has no rows for assignment to SObject I have this controller but I am getting this error      System.QueryException: List has no rows for assignment to SObject   public class MyController {     private final Account account;      public MyController() {         account = [SELECT Id, Name, Site FROM Account                     WHERE Id = :ApexPages.currentPage().getParameters().get('id')];             }      public Account getAccount() {         return account;     }      public PageReference save() {         update account;         return null;     } } Mouse cursor flickering and disappearing Do I leave a revised question closed even though it falls out of scope for a different reason than the original closure reason? How do I fill an area with faces lined up in a grid over a not flat surface? Hello to everyone again,  I'm looking for an addon or a short cut to fill fast and simmetrically a NOT FLAT surface that needs to be closed with vertices. Doing it manually it takes a lot of time. I tried to do CTRL F and then Grid fill,but it didn't work. Neither F key works. Check the attached screenshot. thanks. How do I clear all user defined symbols? I'm trying to determine if there is a best practice for typesetting the "evaluated at" bar for derivatives. The three possibilities I'm thinking of are shown in the code excerpt below:  \begin{gather*} 5 + \frac{df}{dt} \Bigr\rvert_{t = 0} \\ 5 + \frac{df}{dt} \biggr\rvert_{t = 0} \\ 5 + \left. \frac{df}{dt} \right\rvert_{t = 0} \\ \end{gather*}     The \Bigr option doesn't quite reach the top and bottom of the fraction. The \biggr option overshoots the top and bottom of the fraction by a little bit. And the \left...\right option has the same height as the \biggr option, but it introduces a little extra space between the + and the fraction. I'm having trouble deciding between these options. Is there a best practice for typesetting this? I just installed my first Ubuntu Server (12.04) instance and immediately ran into the following problems:   Running apt-get install or update fails (see below) Running ifconfig produces peculiar IP addresses starting with 10.x.x.x and my router does not see the server at all in its "Attached Devices" page (its a consumer grade Netgear)   When I run apt-get I get 50+ of the following errors:  Failed to fetch &lt;some-http-url&gt;. Temporary failure resolving &lt;blah&gt;.ubuntu.com   I read up on this error for 12.04, and found some similar posts on this forum and on server fault that recommended going into /etc/resolv.conf and adding an entry:  nameserver 8.8.8.8   To my surprise, I found that /etc/resolv.conf was a symlink pointing to somewhere else  and I had to delete it first, then create a new one with the entry indicated above.  I restarted the server and tried running apt-get again, same results.  How do I start diagnosing the problem (I'm a relatively new Linux/Ubuntu user)?  Additional details that may help:   This is actually a virtual machine running as a VirtualBox guest OS The physical host that is running this VM is my laptop which has a wireless connection; I'm wondering if (somehow) the laptop is getting the network wirelessly, but perhaps either the VBox VM and/or the Ubuntu server OS isn't configured for wireless and so nothing is "getting through"?   Thanks in advance for any pointers!  Edit:  Here is a snapshot of my VM's Network settings (only Adapter 1 has any information populating its fields, so I assume my VM has only 1 adapter):    Here is the output when I run ifconfig from the terminal:    And here is the output when I run route from the terminal:    Running ping google.com: Is there a easy way to test ubuntu on new notebooks before buying it?