Server Refresh
Over the weekend I revamped the webserver. Over the last month or two I've been bummed about the amount of overhead in maintaining a Gentoo install as my webserver. Now before any of you Gentoo zealots have a whinge, let me explain.
Yes, Portage is cool. It's quick, it builds stuff from source, etc. While that power is great, it's a pain in the butt at the same time. Especially when you're running on a VPS. I am tired of the underlying bits and pieces changing constantly and me having to muck around with masking and unmasking packages just to get things to update and play nicely together.
I made the decision to switch to Debian and I am happy I did it. I don't think the time I'll have to spend maintaining the server will be as high as before. This is all about productivity and as far as I'm concerned this is going to reduce my workload. Given that my software installs don't change once I've got the server up and running, I shouldn't have to spend that amount of time keeping things running.
As always, there's a risk of teething problems when you do a full reinstall. So if anyone out there is having issues then please let me know. Cheers!
Preview Feeds in Google Reader
Here's another reason why I find Google Reader a excellent choice for reading your RSS feeds.
Most of us have a collection of feeds that contain similar subject matter. As a geek, most of my feeds are geek-related. As a geek who likes to stay up to speed, I also like to know what other blogs and feeds are good to read.
This is where Google Reader's Top Recommendations come in. Google do a great job of throwing other feeds in your face that you might like to read based on the kind of stuff that you've already subscribed to.
Shortcuts: Visual Studio 2005
Welcome to the next in the series of posts on program shortcuts. This time round we're talking Visual Studio. I'll be assuming that you don't have the ViEmu plugin enabled and that you're just using the IDE in the way it was intended without any other form of shortcut-based plugin installed.
I'm using Visual Studio 2005 and I think I have the C# settings enabled by default. Most of these shortcuts will work regardless of the default setting that you have, but some of them will no doubt be different. Please note that I won't be going through every single shortcut that Visual Studio supports, instead I'll be going through the ones that I find very handy. If you're looking to find a complete list, then you should check out MSDN.
Basic text manipulation shortcuts are the same as what is posted in the Windows shortcuts entry that I posted. OK, on with the goodies.
- CTRL + Space or CTRL + K, L - Display the Intellisense members drop-down based on the current cursor position, or auto-complete the current symbol.
- CTRL + SHIFT + Space or CTRL + K, P - Display the Intellisense parameter list tool-tip based on the corrent curosr position (handy for when you've forgotten a function's singature).
- CTRL + F3 - Find the next instance of the word under the cursor.
- F3 - Find the next instance of the search word.
- SHIFT + F3 - Find the previous instance of the search word.
- F5 - Run in the debugger.
- SHIFT + F5 - Run without the debugger.
- F6 - Build solution.
- SHIFT + F6 - Build current project.
- F7 - Show code for the current item.
- CTRL + F7 - Compile current file.
- F9 - Toggle breakpoint.
- F10 - Step over current line (while debugging).
- F11 - Step into the current function call (while debugging).
- F12 - Go to definition.
- CTRL + SHIFT + B - Rebuild.
- CTRL + SHIFT + F9 - Remove all breakpoints.
- CTRL + D, B - Show the breakpoints window.
- CTRL + D, E - Show the exceptions window.
- CTRL + D, N - Set breakpoint in a function call.
- CTRL + D, I - Show the Immediate window.
- CTRL + ALT + P - Attach the debugger to a currently running process.
- CTRL + SHIFT + A - Add a new item to the project.
- SHIFT + ALT + A - Add an existing item to the project.
- SHIFT + ALT + C - Add a new class to the project.
- CTRL + - - Navigate to previous location. If you've gone to the definition of a function, or moved to the end of a file, this shortcut will take you back to where you were. Quite handy for when you need to do things like add #includes to the top of the file and then return to where you were before.
- CTRL + SHIFT + - - Same as the previous shortcut, but navigating forward again.
- CTRL + F - Open the Quick Find dialog.
- CTRL + SHIFT + F - Open the Find in Files dialog.
- CTRL + H - Open the Replace dialog.
- CTRL + SHIFT + H - Open the Replace in Files dialog.
- ALT + F12 - Open the Find Symbol dialog.
- CTRL + SHIFT + V - Cycle through the clipboard ring.
- CTRL + K, F - Auto-format current selection.
- CTRL + K, D - Auto-format current document.
- CTRL + K, S - Surround selection with a template/code snippet.
- SHIFT + ALT + Enter - Toggle Fullscreen.
- CTRL + K, K or CTRL + B, T - Toggle bookmark at the current location.
- CTRL + K, N or CTRL + B, N - Move to the next bookmark.
- CTRL + B, P - Move to the previous bookmark.
- CTRL + B, C - Clear all bookmarks.
- CTRL + K, C - Comment out selected text.
- CTRL + K, U - Uncomment selected text.
- CTRL + M, M - Toggle view of current fold.
- CTRL + M, L - Toggle view of all folds.
- CTRL + M, O - Collapse to definitions.
- CTRL + M, H - Hide selected text (shows up as '...').
- CTRL + M, U - Unhide selected text.
It's far from an exhaustive list, but I think there may well be some in there that you haven't seen before. There are a stack more, so check out the documentation if this little list doesn't sort you out.
Shortcuts: Windows
This is the first of a collection of posts that I'm going to be making about shortcuts in applications. I'm constantly on the lookout for keyboard shortcuts to aid in improving the speed of my day to day activities, and I thought it'd be a good idea to start sharing them with you. These posts will probably get edited a few times over the course of their lives as I find more shortcuts
Below is a list of shortcuts that I use for generally getting around Windows. Note that when I refer to the WIN key I am referring to the Windows/Start key that lies between CTRL and ALT on the keyboard. Most of these shortcuts will work regardless of the application you're currently using as these shortcuts are 'unwritten laws'. Some of these are pretty obvious, but I'll stick them in anyway. Some of them might be XP specific, but most of them will work regardless of the Windows version.
- WIN + E - Open a new Windows File Explorer window.
- WIN + R - Open the 'Run' dialog.
- WIN + F - Open a new Windows Search/Find window.
- WIN + U - Open the Utility Manager (most people don't even know this exists!).
- WIN + M - Minimise all windows.
- WIN + SHIFT + M - Restore all windows to the state they were in before pressing WIN + M.
- WIN + D - Toggles minimise/restore in the same way that WIN + M and WIN + SHIFT + M do.
- WIN + Pause/Break - Open the System Properties dialog.
- WIN + L - Lock the workstation.
- CTRL + ALT + DEL - If logged in to your machine as a domain user, this will bring up a user options dialog which allows you to change password, lock workstation, etc. If logged into a home machine that is not part of a domain this will invoke the Windows Task Manager.
- CTRL + ESC - Open the Start menu (handy for those without a Windows key).
- CTRL + SHIFT + ESC - Open the Windows Task Manager.
- ALT + TAB - Cycle through applications.
- ALT + SHIFT + TAB - Cycle through applications in the other direction.
- CTRL + TAB - Cycle through any tabs in the current application (eg. Firefox).
- CTRL + SHIFT + TAB - Cycle through any tabs in the current application in the other direction.
- ALT + SPACE + N - Minimise the current window.
- ALT + SPACE + X - Maximise the current window.
- ALT + SPACE + M - Move the current window.
- CTRL + F4 - Close the current document/tab.
- ALT + F4 - Close the current application.
- CTRL + C - Copy the current folder/file/text/image/etc to the clipboard.
- CTRL + X - Cut the current folder/file/text/image/etc to the clipboard.
- CTRL + V - Paste the current folder/file/text/image/etc from the clipboard.
- CTRL + Z - Undo.
- CTRL + Y - Redo.
- Print Scrn - Take a screenshot of the entire desktop (including open Windows) and store it on the clipboard.
- ALT + Print Scrn - Take a screenshot of the current window.
Now we're past the shortcuts, I'd also like to show you some of the other commands that I frequently punch into the 'Run' dialog (WIN + R) to quickly launch to applications instead of using the Start menu.
- services.msc - Open the Windows Services dialog.
- compmgmt.msc - Open the Computer Management dialog. This is great as it has all the bits that you need to manage your machine, such as IIS, Services, Security, etc.
- eventvwr - Open the Windows Event Log viewer.
- iisreset - Reset IIS (if you have it installed).
- cmd - Open a command prompt.
- msconfig - Open the System Configuration Utility.
- calc - Open the Windows Calculator.
- notepad - See if you can figure this one out yourself ;).
- drive:\path\to\folder - Open a Windows File Explorer window at the specified location.
- mspaint - Open MS Paint for quick creation of images files from screen captures.
There the ones I can think of at the moment, if I think of some more I'll add them. Please give me a shout if you use one that I haven't mentioned!