Most Popular

1500 questions
216
votes
12 answers

How to prevent Windows 10 from automatically adding keyboard layouts (i.e. US keyboard)

Update: this is a lengthy post, you can jump straight to the answer below Note: The quick language list refers to the list in the screenshot below, accessible throught the shortcut Win + Space bar I have two languages for windows spell check in my…
Luis Ferrao
  • 4,345
216
votes
12 answers

Why are pixels square?

Pixels in screens are square, but I'm not sure why. Both pixelated images look pretty bad - but I'm not sure there's any advantage of squares over hexagons here. Hexagons also divide up into 3 colours nicely: So what's the advantage of squares…
Tim
  • 2,367
214
votes
17 answers

With Bash + iTerm2, how to name tabs?

In iTerm2 (Build 1.0.0.20120203), I typically open several tabs, each of which has split panes , and is about one particular theme of work, for example revision control, coding, managing files, mysql terminal work. I typically need to switch…
qazwsx
  • 8,879
214
votes
3 answers

Why do file URLs start with 3 slashes?

HTTP starts with two slashes. E.g. http://example.com. Same goes for FTP. E.g. ftp://example.com. However, file "URLs" start with three slashes. E.g. Reading a pdf file using chrome, the URL would be file:///D:/Desktop/Book.pdf. Why do file URLs use…
Pacerier
  • 27,223
214
votes
7 answers

Preventing applications from stealing focus

Are there any solutions to prevent applications stealing focus from the active window? This is especially annoying when I'm starting an application, switch to do something else and the new application starts receiving half a sentence of text.
svandragt
  • 3,313
213
votes
7 answers

How to detach a tmux session that itself already in a tmux?

I've opened a tmux session on my local machine, and ssh'd into the remote machine. After this, I typed tmux attach on the remote machine, then I got a remote tmux session on my local tmux session. Now I want to detach from the remote tmux session,…
superadmin
  • 2,243
212
votes
7 answers

scp between two remote hosts from my (third) pc

I have two remote hosts. host1-> 10.3.0.1 host2-> 10.3.0.2 Both run an ssh server. The ssh server listens on port 22 in host1 and on port 6969 in host2. Now, using my local machine, I need to copy something from host1 to host2 without logging into…
212
votes
4 answers

What is the purpose of the holes marked "Do Not Cover" on hard drives?

On many hard drives, there's a text warning to "not cover this hole", sometimes adding that doing so will void the warranty. What is the purpose of this hole and why would covering it cause damage or increase the likelihood of drive failure? (Image…
oKtosiTe
  • 9,588
212
votes
6 answers

How can I normalize audio using ffmpeg?

I want the loudest peak sound in a movie clip to be as loud as the codec allows, then have every other sound amplified accordingly. What's a practical example in order to accomplish this using ffmpeg?
211
votes
6 answers

How to install a specific package version in Alpine?

I have a Dockerfile to build a Docker image that is based on Alpine Linux. Now I need to install a package as part of this Dockerfile. Currently I have: RUN apk update && \ apk upgrade && \ apk add git Apparently this is a bad idea, as the…
Golo Roden
  • 2,419
210
votes
9 answers

How do I configure SSH so it doesn't try all the identity files automatically?

I have been putting my ssh identity files inside my ~/.ssh/ folder. I have probably about 30 files in there. When I connect to servers, I will specify the identity file to use with something like ssh -i ~/.ssh/client1-identity…
cwd
  • 18,148
210
votes
10 answers

How to copy text from Console2?

I just started using Console2 as an alternative to cmd.exe I can't figure out how to copy text from the console to the clipboard -- dragging over it with the mouse won't mark anything, and there is no option in the right-click menu to "mark" as in…
GJ.
  • 9,843
210
votes
4 answers

How do you run a SSH server on Mac OS X?

How do you run a ssh server on Mac OS X?
209
votes
4 answers

View RAW message source of an email in Outlook 2013

How can I view the source of an email in Outlook 2013? I want to see the exact email source, as I can do in Gmail or in Mozilla Thunderbird. I'm particularly interested in the top matter (headers?). Here's an example, courtesy…
Colonel Panic
  • 12,582
209
votes
8 answers

How to delete a file in Windows with a too long filename?

My wife has several files and folders that somehow ended up having filenames that have caused them to be undeleteable (can't be deleted) by normal means or via the command line. I believe the filenames are too long due to the depth of the folder…
user3048
  • 2,229