I have a USB drive with three partitions:   sdb1 is an EFI partition sdb2 is an HFS+ partition sdb3 is an MSDOS fat partition with Kali linux on it   I can boot into Kali linux using this USB stick on a MacBook and the sdb2 partition shows up on the desktop as HD (the name I gave it when I formatted it on the Mac).  As referenced in  thread, I installed hfsprogs and tried:  sudo mount -o force /dev/sdb2 /media/root/HD   The partition is still read only.  sudo df -hT   gives  Filesystem     Type      Size  Used Avail Use% Mounted on udev           devtmpfs  7.8G     0  7.8G   0% /dev tmpfs          tmpfs     1.6G  9.5M  1.6G   1% /run /dev/sdb3      vfat       26G  3.4G   23G  14% /lib/live/mount/findiso /dev/loop0     iso9660   2.8G  2.8G     0 100% /lib/live/mount/medium /dev/loop1     squashfs  2.5G  2.5G     0 100% /lib/live/mount/rootfs/filesystem.squashfs tmpfs          tmpfs     7.8G     0  7.8G   0% /lib/live/mount/overlay overlay        overlay   7.8G  356M  7.5G   5% / tmpfs          tmpfs     7.8G     0  7.8G   0% /dev/shm tmpfs          tmpfs     5.0M     0  5.0M   0% /run/lock tmpfs          tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup tmpfs          tmpfs     7.8G     0  7.8G   0% /tmp tmpfs          tmpfs     1.6G   24K  1.6G   1% /run/user/0 /dev/sdb2      hfsplus   3.7G   25M  3.7G   1% /media/root/HD   I tried to unmount the partition:  sudo umount /media/root/HD   and get  umount: /media/root/HD: target is busy         (In some cases useful info about processes that          use the device is found by lsof(8) or fuser(1).)   So, it seems that Linux thinks the HD partition is busy for some reason. Maybe because the boot partition is sdb3? Here is some more info that may help.  issuing:  sudo fdisk /dev/sdb   gives  Welcome to fdisk (util-linux 2.28.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.  A hybrid GPT was detected. You have to sync the hybrid MBR manually (expert command 'M').   I have no idea what that means. So then I tried:  fdisk -l   which gives  Disk /dev/sda: 465.9 GiB, 500277790720 bytes, 977105060 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: D4AAF120-967C-41B9-9FA4-EB4EBD806D19  Device         Start       End   Sectors   Size Type /dev/sda1         40    409639    409600   200M EFI System /dev/sda2     409640 898785143 898375504 428.4G Apple HFS/HFS+ /dev/sda3  898785144 900054679   1269536 619.9M Apple boot /dev/sda4  900055040 977104895  77049856  36.8G Microsoft basic data   Disk /dev/sdb: 29.6 GiB, 31742492672 bytes, 61997056 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: E93D7B7D-38FD-404B-9163-63AAA9A39ED5  Device       Start      End  Sectors  Size Type /dev/sdb1       40   409639   409600  200M EFI System /dev/sdb2   409640  8010815  7601176  3.6G Apple HFS/HFS+ /dev/sdb3  8272960 61734871 53461912 25.5G Microsoft basic data   Disk /dev/loop0: 2.9 GiB, 3076767744 bytes, 6009312 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x77e6cfe3  Device       Boot   Start     End Sectors  Size Id Type /dev/loop0p1 *         64 5794271 5794208  2.8G 17 Hidden HPFS/NTFS /dev/loop0p2      5794272 6009311  215040  105M  1 FAT12   Disk /dev/loop1: 2.5 GiB, 2634285056 bytes, 5145088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   You can see the Kali Linux partition on sdb3 which I had formatted as  MSDOS fat. How can I get sdb2 to be read/write? Or even unmount it?
I plugged in my external harddrive (which was formatted on my Mac into HFS+ journaled) to my Ubuntu desktop 9.04 64bit.  I am not able to get the drive to mount with write capability, how do I do that?  Right now all I'm getting is read access, I tried  sudo mount -t hfsplus /dev/sdf2 /media/"Portable HD"   but that still gave me only read access...  ideas??
How to do string formatting with placeholders in Java (like in Python)? Let's say we have two models trained. And let's say we are looking for good accuracy.  The first has an accuracy of 100% on training set and 84% on test set. Clearly over-fitted. The second has an accuracy of 83% on training set and 83% on test set.   On the one hand, model #1 is over-fitted but on the other hand it still yields better performance on an unseen test set than the good general model in #2.   Which model would you choose to use in production? The First or the Second and why? How do I modify the options for the power button? When I press the power button a dialog opens, but I want to shutdown the system without receiving "Do you really really want to shutdown?". How can I choose a direct shutdown action on a pressed power button?   I had the same problem with the 11.04 version, but I don't remember the solution and yesterday I upgraded to Ubuntu 11.10. What are the recommended textbooks for introductory calculus? I've already taken my calculus sequence and I'm interested in brushing up and staying sharp on the basics. So far, my calculus background is limited to single-variable calculus, which I applied in my physics sequence and engineering statistics. I learned a little bit of vector math in physics as well, but I'm not strong in it. My mathematical strengths lie in the discrete mathematics.  I'm particularly interested in studying for my IEEE Certified Software Development Associate exam - 10% of the exam is mathematics (calculus, differential equations, and statistics). Calculus is one of the mathematics knowledge areas that a software engineer should be competent in, so I'm looking for not only solidifying the courses that I've already taken, but moving forward with slightly more advanced topics, at an undergraduate mathematics level.  I'm currently using the textbook from my calculus sequence, but I'm interested to know what books other people used to learn calculus and if the book is potentially worth checking out.  What books are available to help me? How to prevent a coauthor from stealing the article? Please go through the following incidents to understand the problem.  Mr. A is a Ph.D. student of some institute who was working with Prof. B of another institute on a very interesting mathematical problem since last three years. Recently, they came across a significant solution to it. They wrote a research article to publish in a very good mathematics journal that accepts the online submission.  Prof. B wanted to submit it to the journal by himself. Mr. A agreed.   A few days ago, Mr. A wanted to know about the submission of their article via telephone. Prof. B informed that the article is submitted. But, Mr. A received any confirmation e-mail neither from the journal nor Prof. B forwarded the submission mail to him. Prof. B did not upload it in arXiv, which is a free preprint repository.  Mathematics journals used to take a long duration to review and publish an article. Prof. B told that submitting this article to arXiv will immediately attract community attention. Many researchers will start working in the new direction. As a result, Mr. A and Prof. B may lose their opportunity to work on that problems. Also, the article may be stolen.  Mr. A did not ask Prof. B to forward the submission confirmation mail to him. Prof. might think that Mr. A is suspecting him. It may affect the relationship. Also, Prof. is a very powerful person in the administration, who may prevent an opportunity for Mr. A to gain a job. Again from some of his friends, Mr. A came to know that Prof. had distributed related research problems to his collaborators.  As a consequence, Mr. A is thinking that Prof. has submitted this work in his own name and he has lost his credit as the first author of this article.  Now the question is: How Mr. A may save his credit and his work without hampering his relationship with Prof B? Mass dropped on a spring I thought this would be a particularly simple problem but it is turning out to be quite the opposite. I am sure I am doing a very simple mistake.   The problem statement is that there is a mass which is just barely kept on the spring (help by the force equal to the weight of the spring) such that the spring is uncompressed. As soon as I let the object go, it will compress the spring and come to rest at some height. The energy stored in the spring will be equal to the difference in the potential energy at the two height of the spring (compressed and uncompressed),  $$mgh_i -mgh_f= 1/2 kx^2$$ Furthermore, the compression of the spring would just be the difference in the $h_f -h_i$. This gives me two roots for compression,  $$ x=0 $$ And the second would be, $$ mg=1/2kx $$ But then by this, $kx=2mg$ and $kx$ is force by Hooks law, but then does it means that the force compressing the spring is twice the weight of the object? That sounds odd. I was expecting I would just recover Hooks law but I guess I am doing something wrong here. But I am not sure what that is.   Any help will be much appreciated.  P.S. This is not a homework problem. We are designing a project for our school.  Thanks for your time. ALTER table - adding AUTOINCREMENT in MySQL How can an encryption scheme be indistinguishable with multiple messages but vulnerable to an adaptive chosen-plaintext attack? In order to be indistinguishable with respect to multiple messages, wouldn't the scheme need to be nondeterministic? How would this then possibly be vulnerable to an adaptive CPA? Will I be demoted to a lower league in Starcraft 2 if I don't play? I've just been promoted from platinum league to diamond and master pretty fast (in 4 vs 4). This was totally amazing for me but I'm afraid I will be demoted again to a lower league as fast as I came higher.   If I don't play any 4 vs 4 anymore, will they demote me to a lower league automatically or do they only do so, if I play? How to cut the non-overlapping part of 2 shapes in Illustrator CS6 I have 2 shapes (see below) a circle and a shape of the US. I want to remove the part of the US that falls outside the circle. How is this possible?    Thanks I have ran into some issues when it went down to install Steam on Debian. The console as well as Apper comes up with missing dependencies  and the package isn't going to install. Parsing JSON with Unix tools Unitarily evolving a separable state into an entangled one Can non-magical persons see the Hogwarts Express during its journey to and from Hogwarts? Configuring ADB for Nexus 4 on Ubuntu 11.10 Print composer custom grid label problem In answer to  Klas Karlsson puts forward a solution to the problem of formatting print composer grid labels for projected maps.  I'm very weak on scripting, but in QGIS 2.14 I've tried to enter the text as shown in Klas's illustration, which generates error messages. In my case I'm working with a coordinate system that has a six-digit Easting and a six-digit Northing and I'm trying to get a result similar to that shown in Klas's picture (but with a six-digit Northing). Can anyone help me with this? I am trying to create an spritz app. Everything was working fine, but since yesterday I keep getting this error:     ./spritz: line 176: syntax error: unexpected end of file   I have checked the script file and everything seems perfect. I am confused, I have an if statement at last and it looks correct! Here is the last portion:  #checks if speed is 150 157 if [[ $2 -eq 150 ]]; 158 then 159 starttime=$SECONDS 160      FS=$'\n' 161      for j in `grep --color=always -iP '\b[^aeiou\s]*[aeiou][^aeiou\s]*\K[aeiou]' $1`; 162      do 163            #Reads the text file in the centre of the screen 164            echo "                                                    ___________________" 165            echo "                                                             $j"; 166            echo "                                                    ___________________" 167            echo "                                                                               Speed 150 wpm" 168            sleep  0.9; 169            clear; 170       done 171 endtime=$(($SECONDS - $starttime)) 172            echo "You read $words_read words in $endtime seconds!" 173       exit 8 174 fi   What could cause that error? ${!FOO} performs a double substitution in bash, meaning it takes the (string) value of FOO and uses it as a variable name. zsh doesn’t support this feature.  Is there a way to make this work the same in bash and zsh?  Background:  I’ve got a list of environment variables, like  PATH MAIL EDITOR   and want to first print the variable names and afterwards their values.  This works in bash but not zsh:    for VAR in LIST do         echo $VAR         echo ${!VAR} done   It should be somehow possible “the old way” with eval, but I can’t get it to work:  for VAR in LIST do         echo $VAR         echo `eval \$$VAR` done   I’m never going to understand why I can’t simply do arbitrary deep substitutions like ${${VAR}} or even ${${${VAR}}} if need be, so an explanation for that would be nice, too. Proving for all integer $n \ge 2$, $\sqrt n < \frac{1}{\sqrt 1} + \frac{1}{\sqrt 2}+\frac{1}{\sqrt 3}+\cdots+\frac{1}{\sqrt n}$ Given the key, the plain text and the cipher text can I calculate the IV used in CBC mode? If I have the plain text, the ciphertext and the key for an AES-128 CBC operation, can I determine the IV, even if I don't know the padding (assuming the padding follows one of the more common formats)?  I believe it should be possible since my understanding is that the IV is only used as an initial XOR of the plain text in encryption, and should, therefore, be able to be available like this:  AESDecrypt(key, ciphertext) =&gt; (PlainText XOR IV); IV = ((Plaintext XOR IV) XOR (Plaintext))   Is this correct?