Most Popular

1500 questions
190
votes
18 answers

Removing ANSI color codes from text stream

Examining the output from perl -e 'use Term::ANSIColor; print color "white"; print "ABC\n"; print color "reset";' in a text editor (e.g., vi) shows the following: ^[[37mABC ^[[0m How would one remove the ANSI color codes from the output file? I…
user001
  • 3,654
190
votes
16 answers

My keyboard has no "media" keys; can I control media without them?

My USB keyboard does not have "media" keys -- that is, dedicated keys for play, stop, next, prev, volume up/down, etcetera. For the sake of this question, I would prefer not to install additional software if I can avoid it. Is it possible to issue…
Jeff Atwood
  • 24,142
189
votes
6 answers

How do I view the contents of a PFX file on Windows?

I have a PFX certificate file on my machine and I'd like to view the details before importing it. (The import utility doesn't actually tell you what the certificate is!). How do I view the details about the PFX certificate file?
PeterX
  • 5,251
189
votes
9 answers

PowerShell equivalent to the Unix `which` command?

Does PowerShell have an equivalent to the which command found in most (if not all) Unix shells? There are a number of times I'd like to know the location of something I'm running from the command line. In Unix I just do which , and it tells…
Herms
  • 9,652
189
votes
16 answers

How do I fix a "cannot open display" error when opening an X program after ssh'ing with X11 forwarding enabled?

After launching the X11 app (XQuartz 2.3.6, xorg-server 1.4.2-apple56) on my Mac (OS X 10.6.8), opening an terminal in X11 and running xhost +, I then ssh -Y to my Ubuntu 10.04 VM (running on VMware Fusion). When I run gedit .bashrc (for example),…
189
votes
5 answers

What's like OSX's pbcopy for Linux

In a terminal in OSX I can pipe output to pbcopy and then go into a web browser and paste it. I tried this in Linux with xcopy but when I switch to the browser it just overwrites the clipboard with with whatever was in it the last time the browser…
tony_sid
  • 14,321
  • 53
  • 141
  • 195
189
votes
2 answers

List Samba users?

So yesterday evening I was pulling my hair out (figuratively -- I'm bald) for over an hour trying to figure out why smbpasswd kept rejecting my attempts to reset the password for one of my Samba users. Anyway, long story short, it was apparently…
Kromey
  • 5,185
189
votes
10 answers

Keyboard shortcut to unhide or unminimize a window in OS X

I know how to Hide (Cmd+H) or Minimize (Cmd+M) a focused window in OS X, but I can't find a keyboard shortcut or even a menu item to restore, unhide, unminimize, or otherwise show a window that I've hidden or minimized. Anyone have a suggestion?
brandonjp
  • 2,205
189
votes
8 answers

Remote Desktop intermittently freezing

I use a Windows 10 machine remotely at work. Both the local and remote machine are in the same ISP network (not same local network, but same ISP). I've been using it like that for almost a year now and I had never experienced absolutely any…
andre_ss6
  • 1,992
189
votes
14 answers

How can I check the integrity of a video file (avi, mpeg, mp4...)?

This title could be somewhat misleading, so let me explain ... I'm downloading a video file ... mpeg, avi - being one of the popular formats. Now, if I am downloading it, and the download breaks in the middle of the uhm ... download, then, for…
Rook
  • 23,873
188
votes
16 answers

How can I stop windows re-positioning after waking from sleep?

I put my multi-monitor system to sleep when it's not in use. After I wake it up, all windows are repositioned to a different screen. The closest pattern I can think of is that the windows there were on the main screen switch to a the second screen.…
Kingamoon
  • 2,113
188
votes
12 answers

How do I convert an SVG to a PDF on Linux

How do I convert an SVG (containing a few words of latin text and some simple vector graphics) to a PDF on Linux? I tried Inkscape 0.47 on Ubuntu Lucid, but it moves some sub-graphics randomly, and it makes some lines shorter in the output PDF. So…
pts
  • 7,320
188
votes
9 answers

Why should I use exFAT over NTFS on removable media?

So, basically I always format my removable mass storage devices as NTFS by default, but someone told me I was better off using exFAT. Now I've been looking around google, but can't find any good reasons why I should. Is there anything that exFAT…
Pylsa
  • 31,004
188
votes
5 answers

Hyper-V VM won't boot from Cd, error: "unsigned image's hash is not allowed"

I went to install a Debian instance on Windows Hyper-V client in Windows 10. However, when I attempted to start the VM, it would not boot from the cd. Eventually the Hyper-V BIOS gave me a failure to start screen that listed boot devices and their…
Thomas
  • 5,078
187
votes
3 answers

How do I trim a video using Handbrake?

I can't seem to figure out the solution to a very simple problem. I want to trim a video in Handbrake and keep the video as is (resolution, encoding, etc), just chop off the first few seconds, but I can't find out how.
user400424
  • 5,764
  • 8
  • 23
  • 29