I have plenty of files in a folder with extension of .dep, I want to hide these files. But I don't want to change their names such as adding a dot ahead of them.  What would be the best way to do this?  Thanks!
I have set of temp files created in my folder with .bak extensions. How can I make them hide by default in Ubuntu?  I tried adding a .hidden file with *.bak as entry in the file, but that is not working. Any help is very appreciated...
Casting vs using the 'as' keyword in the CLR When programming interfaces, I've found I'm doing a lot of casting or object type conversion.  Is there a difference between these two methods of conversion?  If so, is there a cost difference or how does this affect my program?  public interface IMyInterface {     void AMethod(); }  public class MyClass : IMyInterface {     public void AMethod()     {        //Do work     }      // Other helper methods.... }  public class Implementation {     IMyInterface _MyObj;     MyClass _myCls1;     MyClass _myCls2;      public Implementation()     {         _MyObj = new MyClass();          // What is the difference here:         _myCls1 = (MyClass)_MyObj;         _myCls2 = (_MyObj as MyClass);     } }   Also, what is "in general" the preferred method? Is there a standard idiom for comparing version numbers?  I can't just use a straight String compareTo because I don't know yet what the maximum number of point releases there will be.  I need to compare the versions and have the following hold true:  1.0 &lt; 1.1 1.0.1 &lt; 1.1 1.9 &lt; 1.10 apt-get install with '-' (minus / hyphen) removes packages I was looking for some package (nautilus-terminal), and accidentally did this:  $ sudo apt-get install nautilus- Reading package lists... Done                                                                                                                                                                                                  Building dependency tree                                                                                                                                                                                                       Reading state information... Done                                                                                                                                                                                              The following packages were automatically installed and are no longer required:                                                                                                                                                  apturl apturl-common libgail-3-0 linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic linux-image-4.4.0-57-generic linux-image-extra-4.4.0-57-generic                                                                       Use 'sudo apt autoremove' to remove them.                                                                                                                                                                                      The following packages will be REMOVED:                                                                                                                                                                                          gnome-session-flashback nautilus nautilus-sendto nautilus-share ubuntu-desktop                                                                                                                                               0 upgraded, 0 newly installed, 5 to remove and 69 not upgraded.                                                                                                                                                                After this operation, 2 031 kB disk space will be freed.                                                                                                                                                                       Do you want to continue? [Y/n] ^[[^C                                                                                                                                                                                             That's quite dangerous because remove is much harder to mistype than a simple dash from a failed autocompletion.     Is that an equivalent of apt-get remove? I couldn't find any documentation for that. Edit: except for overlooking the man page... Want to fill line with repeating string Similar to the \dotfill command, but with your own text, rather than dots.  If the string was: kitty!  The entire line would look like the following: kitty!kitty!kitty!kitty!kitty!kitty!kitty!kitty!kitty!  Is there any way to do this? I have been having extreme difficulties with this integral. I would appreciate any and all help. $$ \int \sqrt{\tan x} ~ \mathrm{d}{x}. $$ How big is my single pattern in Photoshop I pulled a repeating pattern from someone else's PSD. Is there a way to figure out the size of the original pattern? I need to create an image with only one tile. I want to play a game in an older update, but can't see a way to choose a specific version. Is this possible? How can I print the table of contents multiple times in my document? How do I remotely wake my Mac over Wi-Fi? I'm using Android 4.4.2 (on ). I've a Windows PC at home which has highspeed broadband internet connection. I don't have wireless router or access point. I just want to use PC's internet connection on my phone. I've tried multiple methods but none seems to work.  Method 1: Using native Android 4.4.2 option  In my phone when I connect my phone, in Settings &gt; Wireless &amp; networks &gt; USB Internet (sharing Windows PC internet via USB cable) checkbox, which I checked then it asked me to choose my Windows version (which is Windows 8.1 but since it didn't show that option) I chose Windows 8.  It gives me further instructions as showing in the following picture:    Here is the problem, there is no sharing tab (see the following screen shot)   Method 2: As described in   I learned on this site that it is called Reverse tethering. I read and followed the procedure mentioned in    I followed all the steps described in that answer, until executing the command.   Install USB drivers from Android SDK [DONE] Connect USB cable and activate USB Tethering (You should see on a new network interface.) [DONE] Bridge the 2 network interfaces [DONE] On your computer execute adb shell netcfg usb0 dhcp [PROBLEM]   When I execute adb shell netcfg usb0 dhcp it says: error: device not found. I tried the same thing with USB Debugging in Developer settings, ON &amp; OFF. The error remains the same.  Method 3: Rooting the device and using an app  I read here and there that there is another method, in which we can directly use an app but it requires rooting the device. My phone is a new phone and warranty becomes void if I root it.   EDIT: I've tried the method suggested in answer, at the 4th step of method 2, I'm facing this problem: How can you find and replace text in a file using the Windows command-line environment? I am writing a batch file script using Windows command-line environment and want to change each occurrence of some text in a file (ex. "FOO") with another (ex. "BAR"). What is the simplest way to do that? Any built in functions? How and when does the tracking of shared links work? When is $\mathbb{F}_p[x]/(x^2-2)\simeq\mathbb{F}_p[x]/(x^2-3)$ for small primes? I've been considering the rings $R_1=\mathbb{F}_p[x]/(x^2-2)$ and $R_2=\mathbb{F}_p[x]/(x^2-3)$, where $\mathbb{F}_p=\mathbb{Z}/(p)$.   I'm trying to figure out if they're isomorphic (as rings I suppose) or not for primes $p=2,5,11$.   I don't think they are for $p=11$, since $x^2-2$ is irreducible over $\mathbb{F}_{11}$, so $R_1$ is a field. But $x^2-3$ has $x=5,6$ as solution in $\mathbb{F}_{11}$, so $R_2$ is not even a domain.  For $p=5$, both polynomials are irreducible, so both rings are fields with $25$ elements.  I know from my previous studies that any two finite fields of the same order are isomorphic, but I'm curious if there is a simpler way to show the isomorphism in this case, without resorting to that theorem.  For $p=2$, neither ring is even a domain as $x=0$ is a solution of $x^2-2$ and $x=1$ is a solution for $x^2-3$, but I'm not sure how to proceed after that. Thank you for any help. How can I create a select menu in a shell script? I'm creating a simple bash script and I want to create a select menu in it, like this:  $./script  echo "Choose your option:"  1) Option 1   2) Option 2   3) Option 3   4) Quit     And according to user's choice, I want different actions to be executed. I'm a bash shell scripting noob, I've searched the web for some answers, but got nothing really concrete. Problems with booting the system I have yesterday updated packages and today the system cannot boot properly. After seeing the Kubuntu logo there is a black screen which shows repeatedly.     Stopped User Manager for UID 121.      Removed slice User Slice of gdm.      Created slice User Slice of gdm.       Starting User Manager for UID 121...      Started Session c3 of user gdm.       Started User Manager for UID 121.   Please see the screenshot below Do downvotes on Meta truly mean something different? Problem with IMPORTRANGE function in Google Sheets I’m trying to get IMPORTRANGE to work for me with no success. I made two simple spreadsheets:  and . In the destination sheet I’m using the import range function:  =importrange(“1-5F1_zz0ZpGj7SfeQhewsCe0CsrA0eyPbjfmUrLBsyk”,”Sheet1!a1:a1”)   I tried already:   Replacing the , with ; Referencing just the key as well as the full URL in the first argument Switching from “ to ‘ With the sheet name and without it   Not sure what else to do.  Any ideas? Are units in English singular or plural? I am a little bit confused about using units in English, sometimes I hear that people use singular units for plural things, sometimes they use plural ones. Which one is correct?   3 meter(s) long? during a 2 week(s) period? 0.5 dollar(s) Maximum and minimum distance of two points Consider six distinct points in a plane. Let $m$ and $M$ denote respectively the minimum and the maximum distance between any pair of points.  Show that $M/m \geqslant \sqrt{3}$. How to install Metasploit and Armitage I want to install metasploit and armitage on my ubuntu 16.04 LTS laptop running kernel 4.6  I've read blogs and posts on how to install it but the problem is is that they are outdated. The packages are not there anymore and or the commands dont work.  If anyone can give me an updated tutorial on how to install it that would be great. I also think other users that see this post and want to install it will also be thankful. Thanks.