Most Popular
1500 questions
314
votes
3 answers
Assigning custom extensions to a language's syntax highlighting in Notepad++
In the current version of Notepad++ opening .sql files results in Notepad applying SQL syntax highlighting to it. I'd like Notepad++ to do the same for other extensions as well, is there some setting where I can define this?
Sathyajith Bhat
- 62,374
312
votes
6 answers
Equivalent of cmd's "where" in powershell
I can't seem to find anything about a Powershell equivalent of the where command from cmd. Should I just call it from cmd or is there something more elegant in PS?
sunnyseas
312
votes
4 answers
How do I reset 'master' to 'origin/master'?
Can I do the following in a simpler way?
git checkout origin/master
git branch -D master
git branch master
git checkout master
Lenik
- 18,830
312
votes
6 answers
Is there a list of Windows special directories/shortcuts (like %TEMP%)?
I'm looking for a reference list of shortcuts like %TEMP%.
When I'm using Windows+R or Windows Explorer and type %temp%, the Windows Explorer takes me to the Temp directory. Are there more of these shortcuts?
UPDATE:
I found a helpful reference page…
rdkleine
- 3,410
310
votes
23 answers
How to move windows that open up offscreen?
I have a dual monitor setup, and I recently played around with the positioning settings, and some of my single window applications do the favour of preserving where they were last closed, and opening in the same position later. Unfortunately, that…
Matthew Scharley
- 4,523
310
votes
9 answers
Using cd command in Windows command line, can't navigate to D:\
This may be a silly question, and I think I have looked elsewhere to find the answer... Might be a path issue, but when I open the command line and type from the C:\>:
cd D:\
I cannot get to the D drive. Even if I type:
cd D:\
The…
nicorellius
- 6,815
309
votes
9 answers
Why is there such a big difference between "Size" and "Size on disk"?
As you can see below, there is so much difference between the Size and Size on disk fields in my folder. Why is that?
I know that Size on disk should be a little more than Size because of allocation units in Windows, but why that much of a…
vfsoraki
- 2,037
309
votes
9 answers
Inverting direction of mouse scroll wheel
Is there a way to make a mouse scroll wheel invert its direction? I'd like to scroll upwards and have that action scroll downwards and vice-versa. There is no setting on the Mouse control panel that makes this possible.
Any pointers to a hack or a…
Christian Correa
- 3,221
308
votes
8 answers
How do you add a certificate authority (CA) to Ubuntu?
My work has decided to issue their own certificate authority (CA) to handle different aspects of our work securely without paying for certificates.
Cryptographically sign emails
Encrypt email contents
Make access to things like the company IRC…
Xeoncross
- 4,842
307
votes
11 answers
Remove or prevent sidebar from opening by default on Adobe Reader
In Adobe Acrobat Reader DC, presently 2015.007.20033, how do I prevent the sidebar from opening by default?
It's not so bad when a PDF document is in portrait mode, but opening one in landscape takes up too much real estate.
February 1, 2017…
MonkeyZeus
- 9,841
307
votes
15 answers
Too many authentication failures for *username*
I have a hostgator account with ssh access enabled. When trying to upload the generated .pub key file with this command:
rsync -av -e "ssh -p2222" /home/user/.ssh/key.pub username@111.222.33.44:.ssh/authorized_keys
I keep getting:
Received…
Gabriel
- 3,705
305
votes
24 answers
Command-line application for converting SVG to PNG on Mac OS X
Are there any command-line programs that can convert an SVG to PNG that run on macOS?
Lorin Hochstein
- 4,597
304
votes
1 answer
Sorting lines in Notepad++ without the TextFX plugin
The current version of Notepad++ (at the time of this writing) is 6.6.3. Version 6.5.2 is the first that introduced a native (without a plugin) sorting function. At least, that's what they claim; even though we're nine releases after version 6.5.2,…
trejder
- 12,105
303
votes
27 answers
How to mess up a PC running Windows 7?
Ok, so for my PC class I have to find 3 hacks that would mess up the lab's PC. Me and my partner are going to mess up the PC and then another team will try to fix it. The system on it is Windows 7. Anything that would stop the normal use or render…
pHelics
- 346
301
votes
8 answers
How to show the current column in the statusbar in vim?
I would like to show the current column in the statusbar, as is common in many other text editors. E.g. it's good to know if you are around column 80 or above.
How to show the current column in the statusbar?
Jonas
- 28,660