Converting string to numeric
How to convert a factor to integer\numeric without loss of information?
18.04 ctrl+shift to change language If I'm floating in space and I turn on a flashlight, will I accelerate? Photons have no mass but they can push things, as evidenced by .   Can photons push the source which is emitting them? If yes, will a more intense flashlight accelerate me more? Does the wavelength of the light matter? Is this practical for space propulsion? Doesn't it defy the law of momentum conservation?  Note: As John Rennie mentioned, all in all the wavelength doesn't matter, but for a more accurate answer regarding that, see the comments in  .  Related Wikipedia articles: , Support for OpenID ended on July 25, 2018 Keyboard shortcuts for each input language Can I set up keyboard shortcuts for each input language? For example I want to set "Ctrl + 8" for English, "Ctrl + 9" for Ukrainian and "Ctrl + 0" for Russian languages. I don't want to switch and search language I need. It takes time. I want directly to turn language I want. I had this ability  in Windows. Maybe I need to install some plugin? I'd like to make links to all files in a directory tree. Which means, create the same directory structure and make the links in them to the respective subdirectory in the original dir.  That could be done with   cp -R -s ../foo .   But - that needs an absolute path. So rather  cp -R -s `readlink -e ../foo` `readlink -e .`   I would like the resulting links to be relative.  How would I do that? From Windows Vista to 7, can I get rid of folder Windows.old? I've just changed my laptop OS from Windows Vista to Windows 7.  I didn't choose to have both OS together, I just want to have Windows 7.   I was specting Windows 7 instalation program to format/clean my HD and leave me most of its capacity for a fresh start. But I've found, once the OS has been isntalled, that all files and programs from the Vista era are still in my HD, in a folder called Windows.old   I don't need these programs and files, I want to have as much HD space as possible and Windows 7 as clean as possible, what should I do?  Can I just delete Windows.old folder? Would that affect the how Windows 7 works?  Maybe is because I ended up angry with Vista, but I don't like the fact that there wasn't any cleaning/formatting ..   Thanks a lot What would I prefer - an over-fitted model or a less accurate model? 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? Can't mount ISO file as loop device: Error: “failed to setup loop device” sudo mkdir -p /media/cdrom cd ~ sudo mount -o loop ubuntu-* / mount: ubuntu-*: failed to setup loop device: No such file or directory So uh i've got this problem with a penetrating object and another object that serves as something like a condom if you will    So what I want, is for the penetrating object to not deform while moving into this "rubber cylinder", while the rubber cylinder does deform and reshape itself to the outer form of the penetrating object. That is, if the pen. object is bigger than the entrance hole ofc.  Also, when the object leaves the "rubber cylinder" I want the outer edges to follow (mid object in picture) and then jump back (right object in picture)    Parenting the size and position of the "rubber cylinder"-entrance to the position of the penetrating object would work i guess, but I think it'd create problems when the pen. object enters from another angle (not perpendicular to the entrance). I just read another post where someone mentions Vertex Weight Proximity modifier in a combination with a cast modifier. Don't know if thats gonna work yet. Couldn't find the time to test it. Should I be worried that yum update suddenly wants to update well over 100 packages on my CentOS 6 system? Do systemd unit files have to be reloaded when modified? Let's say I write a mine.service file. Then I use systemctl enable mine.service.  If I later decide to edit mine.service, do I have to tell systemd that mine.service was changed? If so, how do I do that? Developing Unit Tests While Refactoring Legacy Code? Is there a way to bypass resistance/immunity to fire damage? I want to use fire-based spells for thematic reasons and a lot of things have immunity to it.   Is there a feat or class feature I could use to bypass/reduce those? For example, is there something that ignores fire resistance and reduces fire immunity to just resistance?   I know the easy way around it is just to pick another damage type spell but I really want to roleplay a pyromancer/firebender-type character. Note: I am posting a question from a former student of mine unable to post on his own for technical reasons.  Given an iid sample $x_1,\ldots,x_n$ from a Weibull distribution with pdf $$ f_k(x) = k x^{k-1} e^{-x^k} \quad x&gt;0 $$ is there a useful missing variable representation  $$f_k(x) = \int_\mathcal{Z} g_k(x,z)\,\text{d}z$$and hence an associated EM (expectation-maximisation) algorithm that could be used to find the MLE of $k$, instead of using straightforward numerical optimisation? Graphics issues after/while installing Ubuntu 16.04/16.10 with NVIDIA graphics How to add greek polytonic with setxkbmap I want to add greek polytonic keyboard layout under Lubuntu (so in LXDE). I already realized there is no easy tool to do it with the graphic interface, so I need to use setxkbmap executing something the like of:  setxkbmap pl,gr   Now, how to make setxkbmap set the greek polytonic variant? Let $x_n$ be a sequence of the type described above. It is not monotonic in general, so boundedness won't help. So, it seems as if I should show it's Cauchy. A wrong way to do this would be as follows (I'm on a mobile device, so I can't type absolute values. Bear with me.) $$\left|x_{n+1} - x_n\right| \leq \frac{1}{n^2}.$$ So, we have $$ \left|x_m -x_n\right| \leq \sum_{k=n}^{m} \frac{1}{k^2}$$ which is itself Cauchy, etc., etc. But, of course, I can't just use absolute values like that. One thing I have shown is that $x_n$ is bounded. Inductively, one may show $$ \limsup_{n \to \infty} x_n \leq x_k + \sum_{k=n}^{\infty} \frac{1}{k^2},$$ although I'm not sure this helps or matters at all. Thanks in advance.  Disclaimer I've noticed that asking a large number of questions in quick succession on this site is often frowned upon, especially when little or no effort has been given by the asker. However, I am preparing for a large test in a few days and will be sifting through dozens of problems. Therefore, I may post a couple a day. I will only do so when I have made some initial, meaningful progress. Thanks. I have an external hard disk, and for some reason, it is reporting wrong free space.  In Windows Explorer, it is showing the used space is 378 GB.    I tried running chkdsk H: /f /r, it seems to report the same usage as Windows Explorer, and it says that there is no problem.    But when I tried selecting all the files inside this drive, it is showing much lesser usage.    I've already set the setting to show all hidden files and folders, also show the protected OS files, but it still cannot find about those missing files. And the difference is huge (282 GB). I've already cleaned the Recycle bin as well.    What I am missing here and how do I identify those missing spaces?  [UPDATE]: I used  to help identify and it seems to find some gigantic files, of which filename is quite weird. Anyone knows what this is and is it safe to delete? Show that $n-m$ is a multiple of 9 when $n$ and $m$ have same digits I have just proved the divisibility rule for 3 and 9.  Let $n\in\mathbb{N}$. Let $m$ be a number that appears when you shuffle the digits in $n$. Show that $n-m$ is a multiple of 9.  Can anyone offer some help? $x^2$ is congruent to $-1 \bmod p$ In general, how do you solve $x^2$ is congruent to $-1 \bmod p$, where $p$ is an odd prime and $x$ is an integer.  Specifically, I need to solve $x^2\equiv-1 \pmod{29}$