so, i'm going to check whether a directory exists or not, if not, then the script is going to create one. and here is the code:  APPLICATION_DATA_DIRECTORY="~/.directorychecker/" APPLICATION_DATA_DIRECTORY_CREATE="~/.directorychecker/" CHECK_APPLICATION_DATA_DIRECTORY() {     if [ -d "$APPLICATION_DATA_DIRECTORY" ]     then     echo "directory exists"     else     mkdir $APPLICATION_DATA_DIRECTORY_CREATE     echo "directory is NOT exist, but now created"     fi }   CHECK_APPLICATION_DATA_DIRECTORY   however, while the folder check mechanism runs smoothly, the folder creation mechanism don't want to run and returns  mkdir: cannot create directory `~/.directorychecker/': No such file or directory   i really got no idea on making it work since the script seems fine  does anybody here had the same problem and solution? any answer will be appreciated  Thanks
Here is my script:  #!/bin/bash  echo "Digite o local em que deseja instalar o IGRAFU(pressione enter para  instalar em  ${HOME}/IGRAFO):" read caminho if test -z $caminho then caminho="${HOME}/IGRAFO" fi echo "O IGRAFU será instalado no diretório: $caminho" mkdir -pv $caminho  mv -v ./* $caminho echo "Pronto!"   At 'read caminho' I may receive from the user a path like ~/somefolder. When the script receives that kind of path both mv and mkdir won't make tilde expansion, so it will try to create a ~/somefolder and not /home/username/somefolder and therefore fail.  How do I ensure that the tilde will be converted into the HOME variable?
I have Blender 2.79 on my Windows 7 system.    I want to install 2.8, but I'm completing some courses which use 2.79.  If I install 2.8, will it automatically replace 2.79?  Will they interfere with one another?  Thanks. Dual Canadian and British citizen - healthcare coverage in the UK? I run a job every minute to reindex my site's content.   Today, the search engine died, and when I logged in there were hundreds of orphan processes that had been started by cron.  Is there another way using some kind of existing software that will let me execute a job every minute, but that won't launch another instance if that job doesn't return (i.e. because the search engine process has failed)? Suppose we have a situation like      A ball of some mass $m$ with some velocity collides with rod hinged at point $A$. Is momentum conserved in this situation? I know that hinge will give impulsive force on rod but that is internal force when we take ball and rod together as a system so that shouldn't stop us using conservation of momentum equation As per the title, what is this new feature? How can I encode and decode percent-encoded strings on the command line? "add/show comments" should dismiss notification I don't know if this is a well-known fact, but I have observed that every number, no matter how large, that is equally divided by $9$, will equal $9$ if you add all the numbers it is made from until there is $1$ digit. A quick example of what I mean:  $9*99 = 891$ $8+9+1 = 18$ $1+8 = 9$  This works even with really long numbers like $4376331$ Why is that? This doesn't work with any other number. Similarly for $11$ and alternating digits sums. Example 4.21 in Baby Rudin: Why is the inverse of this function not continuous at this point? Here's Theorem 4.17 in the book Principles of Mathematical Analysis by Walter Rudin, 3rd edition:      Suppose $f$ is a continuous 1-1 mapping of a compact metric space $X$ onto a metric space $Y$. Then the inverse mapping $f^{-1}$ defined on $Y$ by $$ f^{-1}( f(x) ) = x \ \ \ \ \ \ \ ( x \in X ) $$ is a continuous mapping of $Y$ onto $X$.    Now in Example 4.21 Rudin illustrates that compactness of $X$ is essential in Theorem 4.17.   So here is Example 4.21:   Let $X$ be the half open interval $[0, 2 \pi )$ on the real line, and let $\mathbf{f}$ be the mapping of $X$ onto the circle $Y$ consisting of all points whose distance from the origin is $1$, given by $$ \mathbf{f}(t) = ( \cos t, \sin t ) \ \ \ \ \ \ ( 0 \leq t &lt; 2 \pi). $$ Then this function $\mathbf{f}$ is of course continuous and injective. But Rudin asserts that the inverse function is discontinuous at the point $(1, 0) = \mathbf{f}(0)$. How to demonstrate this fact rigorously?  So far in the book, Rudin has not discussed the functions $\cos$ and $\sin$. So can we come up with an example that uses only what Rudin has discussed? I just updated my iMac to Mojave, and am still trying to setup my preferences.  I tried dark mode, but did not like it (half of me apps seem to ignore it anyway).  I switched to light mode, but this too has problems. The File Save dialog shows a list of Directories and existing files, but the latter are very light grey, almost indistinguishable from the background.    I have searched the Preferences menu, but can't seem to find any setting to set normal contrast levels like in High Sierra. Leverage browser caching for Facebook, Google+, or other 3rd party resource files I tested my website with Google PageSpeed Insights.  I did cache optimization in my .htaccess, but it didn't affect resource files that are from Facebook and Google+  Leverage browser caching      http://connect.facebook.net/fr_FR/all.js (20 minutes)      https://apis.google.com/js/plusone.js (30 minutes)      https://oauth.googleusercontent.com/…e:rpc:shindig.random:shindig.sha1.js?c=2 (60 minutes)   What can I do to solve this? How to show $f=g$ almost everywhere  Let two real-valued measurable functions $f$ and $g$ be such that for any measurable set $E$ the integrals $\int_E f\,d\mu$  and  $\int_E g\,d\mu$ coincide.  Could you please help.  It seems obvious. we could define the integrals as charges. can we do sth from here. but I do not know how to approach. Why are map tiles being repeated? Using MapServer and Openlayers How to render a pixelated, occluded wireframe with freestyle? I'd like to combine these features:    The pixelated look of a wire material with anti-aliasing disabled. Proper occlusion of hidden lines.   A wireframe material produces the first feature, freestyle produces the second. Can a line set be created that produces neither double pixels nor gaps? Line thickness alone does not seem to be the answer.  There is the trick with two materials and z-offset, but I have trouble getting a really clean solution at the outline of the object. So a freestyle solution would be best.    The main problem is that freestyle (to the right) produces double pixels: How can the pixel values of a raster image be extracted under a polygon fishnet? Why is the colour picker displaying tinted colors? The colour picker is behaving not as I expect it to. I cannot move the selector towards most of the edges, setting the RGB to 1.00 for red and the rest to 0 just gets an orange colour. Also I cannot simply keep the "value" the same and select a different shade, the "value" resets.  I'm not sure if i've pressed something in error or there is a setting in the user preferences/elsewhere that needs changing. I'm using the cycles renderer. The issue occurs with any colour picking :- material, background etc. Quitting Blender and restarting does not resolve the issue. Version 2.79.6 Should I upgrade to the "mainline" kernels? How to show that Klein four-group is a normal subgroup of the alternating group $A_4$ I want to show that the Klein four-group is a normal subgroup of the alternating group $A_4$.   I am using the information in , that shows explicitly $A_4$, and Klein four-group as a subgroup.  I know that there is the direct way, by definition, but is there a way that does not require actually multiplying so many permutations ? Is RSA key size the size of private key exponent? old Designjet 430 with Windows 10