I create a file named "--address=16.187.249.27" by accident, and try following methods to delete it, but no success:    $ rm "--address=16.187.249.27" rm: unrecognized option '--address=16.187.249.27' Try 'rm ./'--address=16.187.249.27'' to remove the file ‘--address=16.187.249.27’. Try 'rm --help' for more information.  $ rm "\--address=16.187.249.27" rm: cannot remove ‘\\--address=16.187.249.27’: No such file or directory   How to delete file whose name begins with "--"?
I have some files on my Unix machine that start with    --   e.g. --testings.html  If I try to remove it I get the following error:  cb0$ rm --testings.html rm: illegal option -- - usage: rm [-f | -i] [-dPRrvW] file ...        unlink file   I tried   rm "--testings.html" || rm '--testings.html'    but nothing works.  How can I remove such files on terminal?
I need to create a request for a web page delivered to our web sites, but I need to be able to set the host header information too.  I have tried this using HttpWebRequest, but the Header information is read only (Or at least the Host part of it is).  I need to do this because we want to perform the initial request for a page before the user can.  We have 10 web server which are load balanced, so we need to request the file from each of the web servers.    I have tried the following:  HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://192.168.1.5/filename.htm"); request.Headers.Set("Host", "www.mywebsite.com"); WebResponse response = request.GetResponse();   Obviously this does not work, as I can't update the header, and I don't know if this is indeed the right way to do it. Proof of upper-tail inequality for standard normal distribution $X \sim \mathcal{N}(0,1)$, then to show that for $x &gt; 0$, $$ \mathbb{P}(X&gt;x) \leq \frac{\exp(-x^2/2)}{x \sqrt{2 \pi}} \&gt;. $$ How to import a module given the full path? Cleaning unwanted overlapping duplicate meshes I have a model with hundreds of mesh objects. Unfortunately I clicked shift+D to duplicate many and did not notice. Later after working a while, I was rendering, and noticed there are double meshes overlapping each other.   How can I find all duplicate meshes and delete them. I could do it manually,  just clicking,  but it would take a long time and if I miss something i will not notice.   Is there any option,  or can anybody suggest to me,  how can I find all duplicate mesh and delete them.  Model with all double (duplicate) mesh  Final Result Change the location of .bashrc Is it possible to change the location of .bashrc from /home/orhanc/.bashrc to some other directory? I had two drives partitioned the same and running two RAID partitions on each.  One died and I replaced it under warranty for the same model.  While trying to partition it, the first partition can only start on sector 2048, instead of 63 that was before. Drive have different geometry as previous and remaining ones. (Fewer heads/more cylinders)  Old drive:  $ sudo fdisk -c -u -l /dev/sdb   Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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 Disk identifier: 0x000aa189     Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *          63   174080339    87040138+  83  Linux /dev/sdb2       174080340   182482334     4200997+  82  Linux swap / Solaris /dev/sdb3       182482335  3907024064  1862270865   fd  Linux raid autodetect   Remanufactured drive received from warranty:  $ sudo fdisk -c -u -l /dev/sda  Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 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 Disk identifier: 0x000d0b5d     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048  ...   Why is that? I think it would be nice to display tags in alphabetical order. Currently, tags are displayed in order of creation.  As a workaround, I remove, and then add the tags, which is a bit dumb, but I like 'em in alphabetical order.  It's probably pretty trivial to implement, and nice to have! 'No Such File or Directory" Error When Working with Shared File I'm attempting to open a file on a Linux computer through file sharing. The file is stored on a Macbook Pro and both computers are running Blender 2.77. However, when I try to open the file on the Linux computer, I get an error of, "No Such File or Directory." I don't think this is a file permissions error as my permissions settings are set so that "Everyone" can read and write my file. What can I do to solve this? Invoking shader in DX So I am new to the DX12 world. I am currently trying to tweek the nbody_gravity DX12 sample, but appending or calling another Compute Shader which is to add 2 buffers to produce an output in a different buffer.   I have written this code in "ComputeShader.hlsl" however when i tried to invoke it using the following, i get an error sayin "file not found" When i printed the debug error it says the following: D3D12GetDebugInterface: This method requires the D3D12 SDK Layers for Windows 10, but they are not present on the system.   I am invoking my shader after the default invocation to the nBodyGravity.hlsl is done:  ComPtr&lt;ID3DBlob&gt; computeShader; ComPtr&lt;ID3DBlob&gt; computeShader_m;  #if defined(_DEBUG)         // Enable better shader debugging with the graphics debugging tools.         UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION; #else         UINT compileFlags = 0; #endif           ThrowIfFailed(D3DCompileFromFile(GetAssetFullPath(L"NBodyGravityCS.hlsl").c_str(), nullptr, nullptr, "CSMain", "cs_5_0", compileFlags, 0, &amp;computeShader, nullptr));  //extra call for my shader ComPtr&lt;ID3DBlob&gt; error_ptr;         ThrowIfFailed(D3DCompileFromFile(GetAssetFullPath(L"ComputeShader.hlsl").c_str(), nullptr, nullptr, "main", "cs_5_0", compileFlags, 0, &amp;computeShader_m, &amp;error_ptr));  if (error_ptr) {     OutputDebugStringA((char *)error_ptr-&gt;GetBufferPointer()); }   Is there somthing amiss? Show that $\{\cos\ n:n \in \mathbb{N}\}$ is dense in $[-1,1]$ by using the fact below:      Suppose $x$ is irrational. Then there exists $p_n,q_n \in \mathbb{Z}$   such that $\bigg|x -\frac{p_n}{q_n}\bigg| &lt; \frac{1}{q_n^2}$   I have no idea on how to apply the fact above to show the set is dense in $[-1,1]$. Can anyone help me? I got this question in homework:     Let $\{0,1\}^A$ the set of all functions from A (not necessarily a finite set)       to $\{0,1\}$. Find a correspondence (function) between $\{0,1\}^A$ and       $\mathcal P(A)$ (The power set of $A$).       Prove that this correspondence is one-to-one and onto.   I don't know where to start, so I need a hint. What does it mean to find a correspondence? I'm not really supposed to define a function, right?  I guess once I have the correspondence defined somehow, the proof will be easier.  Any ideas? Thanks! Why can't Mathematica integrate this? /ə/ in a stressed syllable? According to , the schwa /ə/ doesn't occur in stressed syllables. But , Oxford Advanced Learner's Dictionary and Longman Pronunciation Dictionary say otherwise: the word "because" has been variously transcribed as /bɪˈkəz/ or /bəˈkəz/. So in which source should I believe? Or is there any error in transcription going on here? Or is "because" the only exception? And are there others? There has been quite a few times that I wished I could send a message to another user on SO - not ask a question for everyone to see, but just a short message informing them of something or requesting them to do something.  Are there any plans to allow this to happen in the future?  Related: How do I watch a file for changes? I have a log file being written by another process which I want to watch for changes. Each time a change occurs I'd like to read the new data in to do some processing on it.  What's the best way to do this? I was hoping there'd be some sort of hook from the PyWin32 library. I've found the win32file.FindNextChangeNotification function but have no idea how to ask it to watch a specific file.  If anyone's done anything like this I'd be really grateful to hear how...  [Edit] I should have mentioned that I was after a solution that doesn't require polling.  [Edit] Curses! It seems this doesn't work over a mapped network drive. I'm guessing windows doesn't 'hear' any updates to the file the way it does on a local disk. I use TeX Live 2010 and my editor is Texmaker Bidi. It was working probably good but from 2 months ago I've encountered with the error:   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! Fatal fontspec error: "cannot-use-pdftex" !  ! The fontspec package requires either XeTeX or LuaTeX to function. !  ! You must change your typesetting engine to, e.g., "xelatex" or "lualatex" ! instead of plain "latex" or "pdflatex". !  ! See the fontspec documentation for further information. !  ! For immediate help type H &lt;return&gt;. !...............................................   when I'm trying to load xepersian LaTeX.  but I do not know how can I change pdfLaTeX to XeLaTeX.    This is the second edit of my question .   the code is :    ‎\documentclass{article}‎ ‎\usepackage{pstricks}‎ ‎\usepackage{‎pst‎-‎bezier}‎ ‎‎\usepackage{xepersian}‎  ‎\settextfont{XB Zar}‎  ‎\setlatintextfont{Junicode}‎  ‎\setdigitfont{XB Zar}‎  ‎\begin{document}‎  ‎!‎سلام دنیا‎‎ ‎\begin{pspicture}(‎3‎,3)‎ ‎\psbcurve(1,2)(5,7)(2,2)(12,3)‎ ‎\end{pspicture}‎ ‎ ‎\end{document}   but the output does not include the shapes . How do I figure out if someone is a first cousin, second cousin, cousin once-removed, etc? Google Maps Location History is showing an incorrect location Using all the letters of the word ARRANGEMENT how many different words using all letters at a time can be made such that both A, both E, both R both N occur together . My question is not about (pseudo) philosophical debate; it concerns mathematical operations and experimental facts.  What is an observer? What are the conditions required to be qualified of observer, both mathematically and experimentally?