<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Super User Blog</title>
	<atom:link href="http://blog.superuser.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.superuser.com</link>
	<description>The Super User Community Blog</description>
	<lastBuildDate>Thu, 26 Apr 2012 18:00:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>A Guide to Disk Imaging, Backup and Restore</title>
		<link>http://blog.superuser.com/2012/03/19/a-guide-to-disk-imaging-backup-and-restore/</link>
		<comments>http://blog.superuser.com/2012/03/19/a-guide-to-disk-imaging-backup-and-restore/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 18:00:23 +0000</pubDate>
		<dc:creator>ninefingers</dc:creator>
				<category><![CDATA[Backup & Restore]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[disk-imaging]]></category>

		<guid isPermaLink="false">http://blog.superuser.com/?p=4864</guid>
		<description><![CDATA[So I finally get to write my own entry for the Super User Blog! Very excited to be here. I&#8217;ve been asked to write specifically because I&#8217;ve just started working as a developer for Macrium Reflect, a disk imaging solution for Windows-based PCs and super user features a lot of backup questions. So here goes, [...]]]></description>
			<content:encoded><![CDATA[<p>So I finally get to write my own entry for the Super User Blog! Very excited to be here. I&#8217;ve been asked to write specifically because I&#8217;ve just started working as a developer for <a href="http://www.macrium.com/">Macrium Reflect</a>, a disk imaging solution for Windows-based PCs and super user features a lot of backup questions. So here goes, an as-close-to-canonical tour of disk imaging as I can write.
I&#8217;ve tried not to be overly technical here, whilst giving you the knowledge to understand the essentials; however, it gets technical from time to time.</p>

<p><span id="more-4864"></span></p>

<h3>Why would I want disk imaging?</h3>

<p><a href="http://www.codinghorror.com/blog/2009/12/international-backup-awareness-day.html">Ever lost all of your data</a>? Our company founder did; that&#8217;s why he created the product we now work on. My personal backup strategy has always revolved around the idea of backing up copies of important files &#8211; I&#8217;ll back up /home or My Documents and I&#8217;ll be fine! Yes, to an extent I will not lose any of my data if I run that regularly; however, I have a lot of programs installed. An awful lot. Each with tweaked configurations. It&#8217;s fair to say that if my machine dies, I&#8217;ll spend a few weeks hunting through to find all those weird tweaks and config changes I&#8217;ve made.</p>

<p>The same was true for my current boss and as a contractor, the downtime really hurt. What he wanted was a simple way to be able to restore a working system from a backup and have everything – every program, every driver – work as it was. So, Macrium Reflect was born and a few years later it&#8217;s not quite so simple&#8230; although it does indeed restore disk images!</p>

<h3>Don&#8217;t talk about backups, talk about recovery.</h3>

<p>In a way this is going to be the theme of this blog entry. Joel has <a href="http://www.joelonsoftware.com/items/2009/12/14.html">blogged on this topic</a>, so we&#8217;ll do a quick executive summary: it doesn&#8217;t matter how painless, smooth and efficient your backups are, if recovering your data is not as easy, the time and frustration cost of an incident will be huge. You want easy recovery &#8211; or as easy as you can get.</p>

<h3>What is a disk image, how does it work and how can I take one on a running system?</h3>

<p>A disk image is exactly what it sounds like – a file storing an exact copy of your disk&#8217;s data. Actually, that&#8217;s not quite true: To understand this, we&#8217;re going to have to talk a little about file systems. A file system can be thought of as a filing system, a scheme for storing data on a disk. There are various ways and schemes for doing this, depending on the requirements of the end user. Now, the file system must not only write data to a disk, but also a certain amount of meta data such that when it comes to finding a particular file, the computer can. Actually, we can use this fact for an important purpose. The metadata allows us to pick out sectors on the disk which are in-use storing data we want to keep and ignore sectors marked as free. Which leads us to the first choice of the evening:</p>

<ul>
    <li><strong>Active Sector Backups:</strong> This type of backup stores only the active sectors and filesystem metadata. When the image is written back to a disk, the data is written in the correct location on the disk – and the file system knows no different.</li>
    <li><strong>Full copies:</strong> These are bit-for-bit copies of the file system, which take up more space and are technically unnecessary. However, there is an important use-case for a full-copy backup: forensic examination of a disk.</li>
</ul>

<div id="attachment_4917" class="wp-caption aligncenter" style="width: 566px"><a href="http://blog.superuser.com/files/2012/03/macrium_options.jpg"><img class=" wp-image-4917" src="http://blog.superuser.com/files/2012/03/macrium_options.jpg" alt="Macrium Intelligent Sector Copy vs Full Disk" width="556" height="393" /></a><p class="wp-caption-text">Macrium Intelligent Sector Copy vs Full Disk</p></div>

<p>So what constitutes a disk image really depends on how you&#8217;re backing it up – and which you choose depends on your storage capabilities, and trust in your software&#8217;s file system processing.</p>

<p>Now – live file systems. Well, the most obvious method for doing backups is to use the built-in Windows functionality, the <a href="https://en.wikipedia.org/wiki/Shadow_Copy">Volume Shadow Copy</a> Service. This is a Windows-provided snapshot system which provides a number of backup methods and is very flexible – see <a href="http://technet.microsoft.com/en-us/library/cc785914%28v=ws.10%29.aspx">the msdn article</a>.</p>

<p>It is, also, of course, possible to achieve this yourself. The technique for doing this is called copy-on-write; that is, any block that is written to is also duplicated to an extra copy first. When you come to read back the image, you can read the file system, or the store of the point-in-time data, depending on whether it has changed or not. Other operating systems, file systems etc. provide a variety of near-equivalent methods; the important point here being that it is safe to image a live hard disk by employing some fairly well known techniques.</p>

<h3>Not always the full picture</h3>

<p>We&#8217;ve alluded to the next topic with the copy on write idea above. If you take an image of a hard disk on the 1st of the month and then again on the 2nd of the month, you have two whole images – a bit of a waste of space if all that&#8217;s changed on that box is a few server logs. You might think, &#8220;Hey, we could just store the bits that have changed!&#8221; — You&#8217;d be right. There are two very similar strategies which use this &#8220;differential technique&#8221;. Both assume a full backup at some point in time.</p>

<ul>
    <li><strong>Differential backups:</strong> These are the difference between the last full backup and the one just taken. The next time an image is taken, it is also the difference between the current state and the last full backup – so all images until the next full backup are the difference between that point in time and the full backup. To recover one of these backups, you need both the full backup and the differential backup. Clearly, these take less space than a full backup.</li>
</ul>

<ul>
    <li><strong>Incremental backups:</strong> These are like differential backups, but instead of always being the difference to the last full backup, they are the difference from the last incremental backup (or full backup, if none exists previously). These backups have the potential to take up the least space – but there&#8217;s a caveat – you need both the original full backup and each of the incremental backups taken to restore your system.</li>
</ul>

<p>As you’d probably expect, performing either an incremental or differential backup is vastly quicker than a full backup &#8211; which can be a very important factor when you’re backing up every day.</p>

<h3>Sounds easy! I&#8217;ll just go copy some partitions&#8230;</h3>

<p>&#8230;wait right there. To recover your whole system and image your entire disk, you&#8217;re not just talking about partitions – you need to know about the partition scheme in use and any boot considerations this may entail.</p>

<p>In modern PCs, there are two types of partitioning scheme:</p>

<ul>
    <li><strong>Master Boot Record</strong> disks, which can have at most four primary partitions (although this is worked around with an extended/logical partitions).</li>
    <li><strong>GUID Partitioning Scheme</strong> (GPT) disks. These can have (on Windows) 128 Partitions and are used with EFI systems for booting &#8211; they can not be booted from a MBR-based BIOS.</li>
</ul>

<p>MBR is by far the most common scheme, but GPT/EFI systems are becoming more popular (and are used in modern Macs) as support now exists in 64-bit Windows systems.</p>

<div id="attachment_4913" class="wp-caption aligncenter" style="width: 708px"><a href="http://blog.superuser.com/files/2012/03/reflect_main_window.jpg"><img class=" wp-image-4913" src="http://blog.superuser.com/files/2012/03/reflect_main_window.jpg" alt="Macrium Reflect showing MBR/GPT Disks" width="698" height="343" /></a><p class="wp-caption-text">Macrium Reflect showing MBR/GPT Disks</p></div>

<p>But that&#8217;s not all. Older systems (XP and earlier – you probably have this if you have upgraded) use Cylinder, Head, Sector as a partition alignment scheme, whereas newer systems use a 1MB alignment scheme. It turns out a SSD design flaw means that CHS schemes may degrade disks far more quickly than the newer scheme. Your disk, when imaged, will be aligned as per the scheme it was created with (and upgrading Windows won&#8217;t have changed it, either!) so do make sure if deploying to an SSD you have software capable of re-aligning your partitions. <a href="http://www.macrium.com/help/v5/How_to/Conversions/Convert_to_a_solid_state_disk.htm">More here</a>.</p>

<h3>Live rescue media schmedia, why do I want that?</h3>

<p>Having backup software that runs whilst you work is great – it doesn&#8217;t interrupt you. But if your hard disk fails, you&#8217;re not going to be able to boot your system; when you pop that fresh disk in, it&#8217;ll be empty and you won&#8217;t be able to boot. Being able to boot and recover your system from live media is absolutely essential.</p>

<p>There are some considerations to bear in mind here. You need rescue media capable of recovering your system; ideally, you&#8217;ll have tested it. Rescue media generally comes in two flavours: Linux, and Windows Preinstallation Environment (&#8220;Windows Lite&#8221;). If you&#8217;re running some esoteric hardware for which one of these environments does not have drivers, you really do need to know beforehand; some software (such as ours!) can incorporate drivers into PE images.</p>

<p>Another consideration is access to your images. If you intend to use a network, you&#8217;ll need to check you can from this media; you&#8217;ll also need to check any external storage you wish to mount works.</p>

<p>So now we&#8217;re getting around thinking more about recovery, let&#8217;s do some more thinking.</p>

<h3>Fixing bootloader errors and deploying to new hardware</h3>

<p>So, now we&#8217;re all backed up with a great imaging scheme. We&#8217;ve got rescue media just in case and we know it works with our kit. Great! Then something goes wrong – no problem! We can handle this!</p>

<p>Except that our motherboard has failed and it&#8217;s 3 years old. They&#8217;re not available anywhere you can see and you can&#8217;t spend enough time at work on ebay to hunt down that spare one somebody&#8217;s selling and you can&#8217;t afford it now the bids are getting large anyway. Oh dear – this image we&#8217;ve got isn&#8217;t a perfect, working backup.</p>

<p>There is a way around this – we call it <a href="http://www.macrium.com/help/v5/How_to/Redeploy/ReDeploy_a_system_to_new_hardware.htm">redeploy</a>: the ability to insert drivers into a new install before you boot it. Our specific system, I am reliably informed, will also update the HAL drivers and CPU type when you move to a new system.</p>

<p>Another consideration is the ability to repair Windows bootloader settings on redeploy. An example I have worked on recently: On systems running PGP Whole Desktop Encryption, we can take images, but they are unencrypted (more on that in a second). We can then restore them as needed – except the PGP bootloader remained in the MBR (I&#8217;d only imaged the partitions I wanted, not the whole disk). Being able to fix problems in booting is something you may well need.</p>

<h3>Disk Encryption</h3>

<p>So, I&#8217;ve briefly touched disk encryption – now here&#8217;s how it works. Either your controller (hard disk) handles the crypto and issues a bios interrupt on boot to allow a password to be inserted (or token), in which case it is totally invisible to software, or software handles the crypto by inserting a driver just above the block layer stuff and below the file system. The effect is the same: when the system is running, imaging software will image the unencrypted data, as the encryption process is transparent to it. However, the live media will only be able to image the encrypted disk and may fail interpreting it. If you employ disk encryption, do investigate your compatibility options.</p>

<h3>Extracting images, partial recovery</h3>

<div id="attachment_4919" class="wp-caption aligncenter" style="width: 407px"><a href="http://blog.superuser.com/files/2012/03/restore.jpg"><img class="size-full wp-image-4919" src="http://blog.superuser.com/files/2012/03/restore.jpg" alt="Restore Menu in WinPE Disk" width="397" height="209" /></a><p class="wp-caption-text">Restore Menu in WinPE Disk</p></div>

<p>All this talk of recovering whole systems is great; however, there are times where you just want part of a system to be extracted – usually for user data. Or you might want to look at a specific image. Many backup programs offer you the ability to mount your recovery images and extract data from them; this is a good way to ensure your backup has worked – you can run</p>

<p><code>chkdsk X:</code></p>

<p>on drive X to verify the data is intact, on Windows systems.</p>

<p>So, that is all for a basic introduction to disk imaging and system backup. I&#8217;ll leave you with a quick backup checklist:</p>

<h3>A recovery checklist</h3>

<ul>
    <li>Recovery Hardware: can I recover to different hardware?</li>
    <li>Recovery viability: can you afford to recover to when you need to, given your storage constraints for storing backups?</li>
    <li>No-recoverable interval: how much data do you lose if you have to recover? How often are snapshots made?</li>
    <li>Recovery testing: have you tested your recovery plan?</li>
    <li>Recovery time: how long can you get back to the mission critical work of reading blogs?</li>
</ul>

<p><em>Ninefingers is a software developer writing C, C++, stepping through crash dumps and disk images to create <a href="http://www.macrium.com">Macrium Reflect</a>, the best disk imaging solution for Windows with a free edition that just works and paid editions with bar-none the best support in the industry. There are other products, but they all suck. Buy ours instead.</em></p>

<p><sub>The last is the reason they don&#8217;t let me do marketing <img src='http://blog.superuser.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </sub></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.superuser.com/2012/03/19/a-guide-to-disk-imaging-backup-and-restore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 8 &amp; Metro with Mouse and Keyboard</title>
		<link>http://blog.superuser.com/2012/03/09/win8-metro-review/</link>
		<comments>http://blog.superuser.com/2012/03/09/win8-metro-review/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 19:00:36 +0000</pubDate>
		<dc:creator>badp</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.superuser.com/?p=4821</guid>
		<description><![CDATA[If you haven&#8217;t been living under a rock for the last few months, you probably know all of the following: Windows 8 is the name of Microsoft&#8217;s new version of the operating system. Windows 8 sports Metro, an attempt to introduce touch interactions as a first class citizen in Windows without crippling mouse and keyboard [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t been living under a rock for the last few months, you probably know all of the following:</p>

<ul>
    <li><strong>Windows 8</strong> is the name of Microsoft&#8217;s new version of the operating system.</li>
    <li>Windows 8 sports <strong><a href="http://blogs.msdn.com/b/b8/archive/2011/08/31/designing-for-metro-style-and-the-desktop.aspx">Metro</a></strong>, an attempt to introduce touch interactions as a first class citizen in Windows without crippling mouse and keyboard interaction.</li>
    <li><strong>Windows 8 is different.</strong> If you&#8217;re stuck in 2001 with Windows XP, or GNOME 2 and/or KDE 3, obviously you also aren&#8217;t going to like Windows 8. <a href="http://secunia.com/advisories/41986/">Also I have a few dancing bunnies for you to look at.</a></li>
</ul>

<p>This is the most important thing to realize: <strong>Windows 8 is different</strong>. Different in huge, important ways: It marks the transition to a brave new world in ways similar to what Windows 95 did. To do so, it abandons UI conventions that have been around us since then. The Start button? Gone. <a href="http://blogs.msdn.com/b/b8/archive/2011/10/03/evolving-the-start-menu.aspx">The Start menu? Gone.</a> <a title="The whole video is brilliant. You should watch all 22 minutes of it. Go ahead, I'll wait. Actually I'll watch it with you...." href="http://www.youtube.com/watch?v=NEjZt0y6OOw#t=10m">Pressing Start to shut down the computer?</a> No more. Menus (and ribbons)? A thing of the past. Titlebars? Oh, please.</p>

<p><span id="more-4821"></span></p>

<div class="wp-caption aligncenter" style="width: 522px"><img class=" " src="http://i.stack.imgur.com/KU1H1.png" alt="" width="512" height="289" /><p class="wp-caption-text">Brave new world</p></div>

<p>More often than not, it is different in positive ways. However, it is still not awesome. I know it&#8217;s a prerelease version, but we also know how many iterations it is taking Canonical to get <a href="http://unity.ubuntu.com/">Unity</a> just right. Introduced two years ago in Ubuntu 10.10 <span style="color: #ff0000">(whoops!)</span>, it is still being tweaked in 12.04. This stuff takes time and Microsoft will need more of it to reach the right level of polish.</p>

<p>It is not for lack of trying. The Windows team has put lots of thoughts into the redesign, and it shows their efforts on the <a href="http://blogs.msdn.com/b/b8/">Building Windows 8</a> blog. The thought process for the Start screen, for example, is explained <a href="http://blogs.msdn.com/b/b8/archive/2011/10/03/evolving-the-start-menu.aspx">here</a>, and <a href="http://blogs.msdn.com/b/b8/archive/2011/10/03/evolving-the-start-menu.aspx">here</a>, and <a href="http://blogs.msdn.com/b/b8/archive/2011/10/03/evolving-the-start-menu.aspx">here</a>, and <a href="http://blogs.msdn.com/b/b8/archive/2011/10/11/reflecting-on-your-comments-on-the-start-screen.aspx">here</a>. The blog is choke-full of insight, data and <a title="Ever tried using task manager with 160 cores? I KNOW!" href="http://blogs.msdn.com/b/b8/archive/2011/10/27/using-task-manager-with-64-logical-processors.aspx">information porn</a>: Most of it is worth the read.</p>

<p>You might be looking at the interface with disgust. Why do I need such a huge bloated interface?! This is a mouse I&#8217;m using! Those icons are way too big! Actually, I think the icons are just the right dimension for your mouse; it is actually faster to click your way around the system because <a href="http://blogs.msdn.com/b/b8/archive/2011/10/11/reflecting-on-your-comments-on-the-start-screen.aspx">large click targets are easier to click and harder to miss.</a> And by taking benefit of your whole screen, it lists more than the usual 10 entries.</p>

<div class="wp-caption aligncenter" style="width: 441px"><img src="http://i.stack.imgur.com/DXoko.png" alt="" width="431" height="188" /><p class="wp-caption-text">Science. It works, bitches.</p></div>

<p>I&#8217;ve spent three days with the operating system now, and I&#8217;m using Metro IE 10 to write this very article. This is what I&#8217;ve discovered and what I think.</p>

<!--more-->

<h2>Setup</h2>

<p>First things first: You need to <strong>download Windows 8.</strong> The fastest way, I found out, is to keep your download managers at bay and actually use <a href="http://windows.microsoft.com/en-US/windows-8/download">the Windows 8 installer itself</a>. It doesn&#8217;t download the .iso file directly (which saves space), but it can build it for you if you need it. It can also install the system to a USB storage device (I don&#8217;t know if this means you can boot from it and have Windows 8, or if this means you can boot from it and install Windows 8 to your hard drive.)</p>

<p>Oh yes, because <strong>you <em>do</em> want to install Windows 8 to your hard drive</strong>. If you don&#8217;t want to mess with partitions you might want to <a href="http://www.hanselman.com/blog/HowToGuideToInstallingAndBootingWindows8ConsumerPreviewOffAVHDVirtualHardDisk.aspx">take the VHD route</a> (thanks, <a href="http://gaming.stackexchange.com/users/7816/ian-pugsley">Ian</a>). Still you&#8217;re not giving Windows 8 a fair chance until it has direct access to your graphics card. That rules virtual machines out, just like it happens with Unity. Also that means you won&#8217;t be giving Windows 8 its chance until you <strong>download and install the relevant drivers</strong>, just in case you&#8217;re using more obscure graphics card makers such as little-known NVIDIA. (Seriously Microsoft, it&#8217;s 2012, please do get drivers right for $deity&#8217;s sake!)</p>

<div class="wp-caption aligncenter" style="width: 504px"><img class=" " src="http://i.imgur.com/b58id.png" alt="" width="494" height="208" /><p class="wp-caption-text">Windows 8 will actually not work in some virtualization tools such as Windows Virtual PC.</p></div>

<p>The Windows 8 installer will offer to upgrade your copy of Windows to Windows 8 Customer Preview. Let me be perfectly clear. <strong>Do not update your copy of Windows to Windows 8 Customer Preview. </strong><a title="Okay, this comes from the Windows 7 blog, but most likely still applies" href="http://blogs.msdn.com/b/e7/archive/2009/04/07/delivering-a-quality-upgrade-experience.aspx">You can&#8217;t go from Windows 8 Customer Preview to Windows 8 retail</a> (you know, the one that costs <em>money</em>). You also can&#8217;t go from Windows 8 Customer Preview back to what you were using. Windows 8 Customer Preview is time-bombed and will become unusable a few months after the release of Windows 8. Also, Windows 8 has still a few rough spots as we&#8217;ll see shortly.</p>

<p>So, what I&#8217;ve done is:</p>

<ol>
    <li><strong>Repartition</strong> the disk using your favourite ways (I used good ol&#8217; gparted from an Ubuntu Live CD – leave the area you want Windows 8 to install itself to unpartitioned).</li>
    <li><strong>Download</strong> and run the Windows 8 installer from <a href="http://windows.microsoft.com/en-US/windows-8/download">here</a>.</li>
    <li>Let it check for <strong>compatibility</strong> problems and make sure it doesn&#8217;t complain about devices or drivers you need or use. (This will take a while.)</li>
    <li>Let it download Windows 8.</li>
    <li>Tell it to <strong>build an ISO</strong> image out of it. (This will take a shorter while.)</li>
    <li><strong>Burn</strong> that ISO to a DVD. Note down the product key. (Why?!)</li>
    <li><strong>Boot</strong> off that DVD.</li>
    <li>Click through the <strong>setup</strong> process.</li>
    <li>Let it reboot and <strong>groan</strong> at the obligatory betta fish. (Get it? Get it? Betta? Beta? Huh?<em> Get it?</em>)</li>
    <li>Wait for Windows to boot and discover the first pain point of Windows 8.</li>
</ol>

<h2>The bootloader</h2>

<p>Windows 8 has got <a href="http://blogs.msdn.com/b/b8/archive/2011/09/20/reengineering-the-windows-boot-experience.aspx">a fancy new bootloader</a>. Nice stuff huh?</p>

<div class="wp-caption aligncenter" style="width: 534px"><img src="http://i.stack.imgur.com/1IjG0.png" alt="" width="524" height="180" /><p class="wp-caption-text">On the left, GRUB 2. On the right, the bootloader found in Windows 8 CP. I&#039;ve got no doubts on which one I&#039;d rather use.</p></div>

<p><em>It&#8217;s a pity it takes roughly as much time to load as the entirety of Windows 8 does.</em> No, really.</p>

<p>It is not terribly surprising. After all, you need to to do more work to get high resolution graphics, a mouse cursor and other niceties. The time cost though exceeds the gains in functionality. Yes, it&#8217;s much more friendly to use. Yes, it should also take roughly a hundreth of the time it does take to load.</p>

<h2>The lock screen</h2>

<p>Conversely, <a href="http://blogs.msdn.com/b/b8/archive/2011/09/08/delivering-fast-boot-times-in-windows-8.aspx">Windows 8 does <strong>boot fast</strong></a> once you get past the bootloader. The time from boot to lock screen is quite short, just like you&#8217;d expect from a freshly installed copy of Windows after all. By the way, yes, I did say <strong>lock screen</strong> – that&#8217;s what you meet when you turn Windows 8 on. Rather then being just a password input box, it&#8217;s a fullscreen picture of whatever you want, with the time and a few indicators on top of the password input box.</p>

<p>And here&#8217;s where the purists will begin to moan. Why do I have to go through the lock screen? The answer is you don&#8217;t. <strong>Just press Enter </strong>and you can enter your password. It would&#8217;ve been sweeter if you could just type it in but… oh, well. You can also dismiss the lock screen using the mouse by &#8220;dragging it up off the screen.&#8221; Really, all it takes is a quick flick of the hand. It&#8217;s barely noticeable and not a pain at all.</p>

<h2>The Start screen</h2>

<p>We&#8217;ve all seen the start screen for Windows 8 (those who haven&#8217;t can just scroll back to the top of the article…) and we&#8217;ve all groaned at its general direction. I&#8217;ve used it extensively for three days and I can tell you: I&#8217;m not looking back.</p>

<p>The main feature is the invisible one. Want a program? Any program? It&#8217;s just like in Windows Vista and Windows 7: press the Windows key on your keyboard and <strong>just start typing its name</strong>, then press enter. It&#8217;s precisely the same but much faster actually. On Windows 7 the start menu always takes a few seconds to actually come up, and what I type in this period of time gets lost. The start screen doesn&#8217;t have this delay. It might be because I&#8217;m comparing a one year old install of Win7 with a three days old install of Win8, but boy is it a pleasure to use.</p>

<div class="wp-caption aligncenter" style="width: 560px"><img class="  " src="http://i.stack.imgur.com/yWfK1.png" alt="" width="550" height="201" /><p class="wp-caption-text">Fundamental software at your fingertips. (Generous amounts of whitespace cropped.)</p></div>

<p>If you have your hand on the mouse, you can also summon the mouse screen by clicking on the start button. Just kidding, <strong>there&#8217;s no start button</strong>. Simply throw your mouse in the very <strong>left bottom hand corner</strong> of your screen and click when the &#8216;Start&#8217; box appears. If that&#8217;s what you&#8217;ve been doing so far then you can continue doing it! If you&#8217;ve been aiming for the center of the button you&#8217;ll have to just keep going a little more (and learn that <em>this very gesture will still work in all versions of Windows since 95</em>!)</p>

<p>But there&#8217;s more to it than that.</p>

<h2>The application switcher</h2>

<div class="wp-caption alignright" style="width: 199px"><img src="http://i.stack.imgur.com/yOwkK.png" alt="" width="189" height="768" /><p class="wp-caption-text">The application switcher in all its vertical glory.</p></div>

<p>Always thought Win-Tab was a waste of time? So have I! That flip view thingadongdong really never added anything to the ball. You&#8217;ll be pleased to know that the flip view has been replaced by a left-side application switcher thuoght mostly for finger and mouse input. If you&#8217;re a keyboard user, things remain mostly the same in Windows 8: <strong>Win-Tab&#8217;bing is still a waste of time</strong>. Just keep Alt-Tab&#8217;bing instead.</p>

<p>What has changed however is that you can now switch between <em>Metro</em> applications, the desktop and the Start screen with just the mouse.</p>

<p>With the mouse, move to <strong>the top left hand corner</strong>. You&#8217;ll see a thumbnail of what of the above (metro application, desktop and start screen) you&#8217;ve used last. You can just click to restore it. If that&#8217;s not what you want, from that top left hand corner <strong>move your mouse straight down</strong>. This gives you the Win-Tab interface, only mouse operable.</p>

<h2>Dragging windows around</h2>

<p>You can do more than just clicking to these thumbnails – you can also <strong>drag them in place</strong>. If you drag the application on the center of the screen it&#8217;ll replace what you&#8217;re working on. If you drag it to the left or to the right, it will snap in place and only take roughly one fifth of the screen. (This is as much multitasking as people using Windows on ARM get to have, by the way.) Drag them to the very bottom to unload them. Unlike the iOS application bar, this does actually unload the program from memory. A smooth animation makes the result of your gesture clear.</p>

<p>This kind of dragging doesn&#8217;t have to start from the application switcher. The very top of the screen is also dedicated to this purpose: Fling your mouse up then start dragging. This kind of window management is kind of limited, but still pretty awesome.</p>

<p>So, we&#8217;ve seen what the top left and bottom left corners do, and we&#8217;ve also looked at the top and left edges. Time to look at the right edge!</p>

<h2>The charms bar</h2>

<div class="wp-caption alignright" style="width: 96px"><img src="http://i.stack.imgur.com/PxC0s.png" alt="" width="86" height="768" /><p class="wp-caption-text">Charms bar.</p></div>

<p>This is where synergy happens, at least in theory. Here you have another way to access the start screen, the search feature (programs shouldn&#8217;t have a button to expose search features), the share feature (so far it&#8217;s mostly for emailing people), the devices feature (so far it&#8217;s mostly for printing) and the settings feature (also another things programs shouldn&#8217;t have a button for). It also tells the time.</p>

<p>The settings (Win-I) are trimmed down to the essential, so if you&#8217;re a GNOME 2/3 kind of person you&#8217;ll be used to this tradeoff between simplicity and tweaking. In particular, it&#8217;s from here that you can do things such as connecting to wireless networks, changing volume, luminosity, shutting the computer down or reaching the Metro interface to change system settings.</p>

<p>All in all it&#8217;s a pretty important piece of functionality in dire need of more compatible programs and drivers. Even without these, you&#8217;ll be using it regularly though.</p>

<h2>Multiple screens support</h2>

<p>The charms bar combined with the multiple screens support is also my biggest pain point in Windows 8. The reason is that <strong>all of Metro happens on the very edges of your primary screen</strong>, from the hot corners to the hot edges to the actual metro applications themselves. They are trapped in the primary screen, so plugging more screens in exposes your desktop and (ugh) the betta fish.</p>

<p>Now, in my setup (two screens side by side) this doesn&#8217;t work well in a few ways:</p>

<ul>
    <li>The charms bar is triggered by the right edge of the primary screen… but the mouse can get past it, right into my secondary screen! I&#8217;ve never been able to activate the charms bar with the mouse. Luckily there&#8217;s a keyboard shortcut: Win-C.</li>
    <li>You might be pleased to know that now <strong>each screen gets its own taskbar!</strong> Only the primary monitor&#8217;s taskbar, however, gets the traybar and the clock. Curses.</li>
    <li>Traditional programs by default launch in the primary screen. <strong>Metro applications will then give way to the desktop</strong> to show your program.</li>
</ul>

<p>The way I had organized things was to have my laptop screen with just metro – one fifth email and four fifths idling in <a href="http://chat.superuser.com">chat</a> through Metro IE10. The secondary monitor, which isn&#8217;t wide enough to support snapped applications, would be left for traditional programs such as Chrome or Team Fortress 2.</p>

<p>Unfortunately this means that every time I launch these programs, Metro IE10 goes in the background and I have to manually restore it. <strong>If the gesture wasn&#8217;t so easy to do I would&#8217;ve given up on actually using Metro.</strong> It is though, so I keep on.</p>

<p>All in all it is sad to see Windows, probably the only operating system that got multiple screens right, screw this so badly. Again, though, it will take Microsoft years to really make Metro shine. Multiple screen support remains vastly superior to anything I&#8217;ve ever seen delivered by Linux, but that&#8217;s not a high bar to meet unfortunately.</p>

<p>If you&#8217;ve found all this edge and corner talk confusing, <a href="http://arstechnica.com/microsoft/news/2012/02/getting-started-with-the-windows-8-consumer-preview.ars">perhaps you will find the Ars Technica coverage more readable</a>.</p>

<h2>Metro IE10</h2>

<p>The idea behind Metro IE10 is awesome. The whole damn screen is dedicated to the webpage. <strong><a href="http://blogs.msdn.com/b/b8/archive/2011/09/14/metro-style-web-browsing-one-engine-two-experiences-no-compromises.aspx">There&#8217;s no chrome.</a></strong> Zero. Nada. It&#8217;s all webpage. If you want chrome, you right click on an empty part of the page. This gives you the list of open tabs at the top (with thumbnails, a la Opera 10 but <em>actually useful</em>) and the address bar at the bottom.</p>

<div class="wp-caption aligncenter" style="width: 502px"><img src="http://i.stack.imgur.com/w5suH.png" alt="" width="492" height="277" /><p class="wp-caption-text">So much room for activities!</p></div>

<p>It&#8217;s just a pity that <strong>it&#8217;s still, yknow, Microsoft effin&#8217; Internet Explorer</strong>. IE10 is nicer than IE9, but that&#8217;s not saying much. It often flickers, it often fails to render properly and worryingly is unable to play most YouTube videos in any way shape or form.</p>

<p>See, <strong><a href="http://blogs.msdn.com/b/b8/archive/2011/09/14/metro-style-browsing-and-plug-in-free-html5.aspx">Metro IE 10 is plugin-free</a></strong>. This means<strong> no Flash.</strong> If you were looking forward to a Windows tablet because, hey, Windows does Flash, then you&#8217;re in for a disappointment. This makes the only browser in Windows for ARM (and the only Metro browser so far) strictly worse than Safari. Yes, Flash for Android was pretty unusable, but one expects more from a device with flippin&#8217; <em>Windows</em> on it.</p>

<p>(Sure, YouTube does support playing some videos in HTML 5, but even many of those never load at all. All you get is the throbber endlessly spinning.)</p>

<p>It gets worse. Say you get fed up with IE10 — if you&#8217;re willing to give it any chance at all, which I doubt. This means you install Chrome, for example. When you do, a very nice and new popup asks you what browser you want to use: Internet Explorer or Chrome. Pick Chrome and Metro IE10 goes away.</p>

<p>I&#8217;m not kidding. <em>If your default browser is not Internet Explorer 10, you don&#8217;t get to have Internet Explorer 10 at all in Metro.</em> This boggles my mind. Why would I want to switch to the desktop when opening a link from Windows Mail? I like Metro, I like the design, I like the immersion, but if you want to keep it <strong>it&#8217;s the IE10 way or the highway</strong>.</p>

<p>Is it unreasonable to want to use IE10 for lightweight browsing in the Metro environment and Chrome on the desktop for when you want to do more serious stuff such as, yknow, watching cats ramming table legs at full speed on YouTube?</p>

<p>Things get worse when you realize that Microsoft is actually cheating when it comes to IE10. <a href="https://wiki.mozilla.org/Windows_8_Integration#Internet_Explorer_10_vs_Regular_Metro_Apps">This post by Mozilla has more details.</a></p>

<blockquote>Unlike standard Metro apps, IE runs in the desktop configuration (medium integrity parent process, multiple low integrity children). [...] As a medium integrity process, IE10 can do anything it pleases and it does not require the broker to do file access.</blockquote>

<p>I am disappoint. If you&#8217;re going to build a pretty restrictive environment such as Metro, least you could do is show off how the restrictions actually aren&#8217;t so bad and <em>not cheat</em>. Oh well.</p>

<p><span style="color: #ff0000"><strong>WHOOPS!</strong></span> Redditor <a href="http://www.reddit.com/user/clubdirthill" target="_blank">clubdirthill</a> <a href="http://www.reddit.com/r/technology/comments/qpao2/windows_8_metro_with_mouse_and_keyboard/c3zd8cy">reports</a> that this is actually not cheating, but a design decision I was previously unaware of. Brian Bondy, Firefox Platform Engineer, <a href="http://www.brianbondy.com/blog/id/129/firefox-metro-development-begins-status-update">explains</a>, third party browsers can also be built in the hybrid metro-desktop way IE10 (a so-called &#8220;Metro style enabled desktop browser&#8221;). The metro side of the equation however is only available for your one default browser. If that browser has no metro side to it&#8230; tough.</p>

<h2>Multitasking, or the almost lack thereof</h2>

<p>With Metro, you can do multitasking. You can indeed run <em>two</em> things at a time. One snapped and one on the remainder on the screen.</p>

<p>Metro <span style="color: #ff0000">(whoops!)</span> applications in the background won&#8217;t run. If you&#8217;re using Metro IE10, none but the foreground tab is actually active. There is <a href="http://blogs.msdn.com/b/b8/archive/2012/02/07/improving-power-efficiency-for-applications.aspx">a list of exceptions to this</a>, starting from traditional desktop apps to apps uploading, downloading, printing, synchronizing, playing music in the background. But that&#8217;s it. For an example of what this entails, go look at this article about <a href="http://arstechnica.com/microsoft/news/2012/02/skype-beta-for-windows-phone-arrives-but-it-shows-the-limits-of-the-platform.ars">Microsoft&#8217;s very own Skype client on Windows Phone 7</a>: I don&#8217;t foresee things getting any easier on Windows Phone 8.</p>

<p>One has to wonder however: why accept tradeoffs to multitasking on my desktop computer? It is <em>built</em> for this kind of load! I have no answer here. This is quite a disappointing turn of events where <strong>programs can do less with more</strong>. I can only hope this will be addressed in Windows 8+1.</p>

<h2>SmartScreen gets serious</h2>

<p>This new feature in Windows 8 would&#8217;ve been easy to overlook in the short period of time I&#8217;ve used Windows for, if it wasn&#8217;t for the release of <a href="http://stabyourself.net/mari0/">Mari0</a>. I&#8217;ve been waiting for this one for a long time, so I mindlessly downloaded it, extracted it and ran it, when this happened.</p>

<p>&nbsp;</p>

<div class="wp-caption aligncenter" style="width: 449px"><img class=" " src="http://i.stack.imgur.com/EQwY9.png" alt="" width="439" height="203" /><p class="wp-caption-text">You get the second screen by clicking on &#039;More info&#039;</p></div>

<blockquote>Windows SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk.</blockquote>

<p>SmartScreen is the IE9 feature that maintains <a href="http://blogs.msdn.com/b/ie/archive/2011/05/17/smartscreen-174-application-reputation-in-ie9.aspx">a reputation system</a> for downloads and publishers. If not enough people have downloaded a given link and the publisher doesn&#8217;t have good reputation of his own, SmartScreen kicks in. With Mari0 being a fresh release with no publisher information, it&#8217;s no surprise this happpened.</p>

<p>I do recall leaving it enabled from the Setup process, but I forgot that, as the Windows 8 blog <a href="http://blogs.msdn.com/b/b8/archive/2011/09/15/protecting-you-from-malware.aspx">explains</a>, <strong>SmartScreen checks now also happen from Windows itself.</strong> (What if there is no internet connection?). I guess this is a better focused protection measure than Apple&#8217;s <a href="http://www.macworld.com/article/165408/2012/02/mountain_lion_hands_on_with_gatekeeper.html">Gatekeeper</a> (and <a href="http://cdn.macrumors.com/article-new/2012/02/gatekeeper_lion.jpg">a comparatively more gentle one</a>) but I&#8217;m kind of surprised there is one to begin with. The dialogue really is designed to <strong>look like a dead end</strong>: how will apps without enough reputation to actually <em>build</em> reputation to begin with?</p>

<h2>Localization: more than just translation</h2>

<p>Another rough spot is definitely localization. I don&#8217;t mean the translation of strings, though, but the support for multiple <em>cultures</em>, as Microsoft calls them. Here&#8217;s a few examples:</p>

<ul>
    <li>IE10 is <strong>spellchecking</strong> this post in Italian because I&#8217;ve used an Italian keyboard layout to write all of this. Due to its simplification it supposes the language you set is the one you will always use… That idea is neat but ultimately misguided.</li>
    <li>All the XBox applications plus video are <strong>not available in this region</strong>. What is this, Hulu? <em>Please.</em></li>
    <li>The inbuilt finance application, Bing <strong>Finance</strong>, fails to acknowledge the existence of anything outside the US borders.</li>
    <li>The calendar application in week and day view fails to account for the fact that Italy does not use <strong>am/pm</strong>, so the hour labels read &#8220;10 11 12 1 2&#8243; instead of &#8220;10 11 12 13 14&#8243;. It doesn&#8217;t even care to look at the regional settings I&#8217;ve configured in the Control Panel.</li>
    <li>The Weather app defaults to showing temperature in <strong>Fahrenheit</strong> instead of Celsius. This can be changed by going to the Settings charm (go to the top right corner and click the Settings wheel or press Win+I), then click on settings and tick Celcius. It again doesn&#8217;t look at my regional settings and is hidden quite well…</li>
</ul>

<p><strong>These are not translation issues</strong> – it&#8217;s not a simple matter of changing strings, there&#8217;s no right-to-left thingamajiggery involved, no Unicode shenanigans required. These are disheartening endemic, systematic issues through Metro.</p>

<p>And now for something completely different. <a href="http://gaming.stackexchange.com/users/23/badp">Being an avid gamer</a>, I&#8217;ll spend a few moments to discuss videogames and Windows 8.</p>

<h2>Stuff that matters: XBOX LIVE™ Solitaire</h2>

<div class="wp-caption aligncenter" style="width: 534px"><img src="http://i.stack.imgur.com/edbTD.png" alt="" width="524" height="180" /><p class="wp-caption-text">From left to right, XBOX Live Solitaire, Metro Internet Explorer 10, Visual Studio 11 Express Beta and a clock-less, tray-less sysbar <img src='http://blog.superuser.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p></div>

<p>Finally we get to the good stuff. What people really care about in the newer versions of Microsoft: Solitaire and Minesweeper. Unfortunately, the Customer Preview version of Windows 8 does not include the latter. Solitaire however delivers through <strong>XBOX Live</strong> integration, <em>oh my!</em> <strong>ESRB</strong> hasn&#8217;t yet rated the game, however.</p>

<p>Klondike purists will be delighted to know that XBOX Live Solitaire defaults to the <strong>Deal Three</strong> <strong>cards</strong> mode. People who would rather have a more casual exprerience will find the more comfortable &#8220;Deal One&#8221; option under the settings charm. More importantly, the game works even in snapped mode. It is however kind of uncomfortable to play with in this unusual arrangement, detracting from the kind of concentration required to do well.</p>

<p>I have doubts that Microsoft can also make the expert version of <strong>Minesweeper</strong> fit well in the snapped view, but we&#8217;ll need to wait until release to put this important open question about Windows 8 to rest.</p>

<h2>(actual) Videogames and Metro</h2>

<div class="wp-caption aligncenter" style="width: 502px"><img class="  " src="http://i.stack.imgur.com/gHK9J.png" alt="" width="492" height="277" /><p class="wp-caption-text">My hats, let me show you them</p></div>

<p>Okay, enough fooling about, let&#8217;s get back to business. Of videogames. Serious business, with serious money at stake. Windows 8 Customer Preview includes a demo of &#8220;Pinball FX2&#8243; (also with the &#8216;XBOX Live&#8217; monicker), the only thing that comes close to a real 3D accelerated game running natively in Metro. How well do the two things integrate?</p>

<p>The basic mouse interactions remain active: The top edge allows for closing and snapping, although the snapped view merely states &#8220;Game paused.&#8221; The game however has its own inbuilt settings menus, the Metro Way be damned. The game is theoretically playable with just the mouse, but the mouse controls involve clicking on the flippers. Hint: It&#8217;s terrible.</p>

<p>All in all the one application available at launch is <strong>underwhelming</strong> and fails to set the tone for a good, Metro videogame. Comparatively, Wordament makes a much better job of this. If only I wasn&#8217;t so terrible at it.</p>

<h2>Traditional videogames</h2>

<p>There&#8217;s not really much to report here. Videogames run just like they used to, with no added bells and whistles. <strong>Full screen games effectively disable metro</strong> (since they launch on the primary desktop and ignore all the hot edges and corners), which is a letdown.</p>

<p>I remain wanting for a better integration between videogames and the operating system. Even Ubuntu can display OSD messages on top of the two or three videogames that do run natively on the damned thing!</p>

<p>I&#8217;m just kidding I&#8217;m just kidding. <strong>Please don&#8217;t murder me in my sleep.</strong> Also, the videogame parenthesis is now closed and we resume the normal schedule as IE10 starts really struggling under the weight of the three throusand words I&#8217;ve written so far. Time to save drafts compulsively.</p>

<h2>Your Microsoft Account</h2>

<div class="wp-caption aligncenter" style="width: 502px"><img class="  " src="http://i.stack.imgur.com/mmU6I.png" alt="" width="492" height="277" /><p class="wp-caption-text">The Settings app in all its Metrosity. (The regular control panel is still there!)</p></div>

<p>I don&#8217;t fully understand the consequences of binding your computer and your user account to your Hotmail/Messenger/MSDN/Microsoft credentials, other than the fact you can do so. This is for lack of paranoia: <strong>I don&#8217;t know what happens when I <em>don&#8217;t</em> do this.</strong></p>

<p>What you do want to make sure before you install Windows 8, however, is that you have sensible values for your first and last names. I don&#8217;t: my name is &#8220;b&#8221;, my surname is &#8220;p&#8221;. Now my home folder is C:\Users\b\, I&#8217;m &#8220;b p&#8221; on the login screen and &#8220;b&#8221; on the start screen and there&#8217;s no direct way to change this. Less than awesome.</p>

<h2>Other inbuilt software</h2>

<ul>
    <li><strong>Store</strong>. It is weird to give a footnote to the Windows Store (long last!) but the paltry selection of application just doesn&#8217;t give me a lot to talk about. The one thing I will point out is that applications do not update automatically. It was probably too much of a <a href="http://www.youtube.com/watch?v=k4EbCkotKPU&amp;feature=player_detailpage#t=75s">Google Apps thing to do.</a></li>
    <li><strong>Maps.</strong> It&#8217;s just pointless. Broken in snapped view. Just uninstall it.</li>
    <li><strong>Mail and Calendar.</strong> The first desktop email and calendar clients I&#8217;ve managed to use and keep using in a very long time. Google integration just works (if you have <a href="https://support.google.com/accounts/bin/answer.py?hl=en&amp;answer=180744&amp;topic=1056283&amp;rd=1">two-factor authentication</a>, make sure you use <a href="http://support.google.com/accounts/bin/answer.py?hl=en&amp;answer=185833">an application-specific password</a>) and so do the apps. The email client has no text-only feature and a pretty ridiculous &#8220;Sent from my Windows 8 PC&#8221; signature; forgiveable. <a href="http://arstechnica.com/microsoft/news/2012/03/windows-8-mail-client-gets-radical-metro-makeover.ars">See Ars Technica&#8217;s coverage for more.</a></li>
    <li><strong>Weather.</strong> If you&#8217;ve seen the keynote, you&#8217;ve probably seen this app with beautiful animated backgrounds that aren&#8217;t there in Windows 8 Customer Preview. Relies on Weather Underground and AccuWeather for forecasts, a much better choice than Apple&#8217;s (lol, Yahoo!).</li>
    <li><strong>People</strong>. Just like on Windows Phone 7, this is the app that would be responsible for integrating your social networks. I&#8217;ve only got Twitter (it also does Facebook and LinkedIn) and, as far as Twitter clients go, People is kind of clumsy and buggy. There&#8217;s no way to directly tweet, but you can send replies to people.</li>
    <li><strong>Messaging.</strong> This app would be responsible for MSN and Facebook chat. It would do both better if the multitasking model in Metro was a bit more forgiving. Oh well. <a href="http://arstechnica.com/microsoft/news/2012/03/windows-8s-new-way-of-working-messaging-mail-and-people.ars?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss">See Ars Technica&#8217;s coverage about People and Messagging.</a></li>
    <li><strong>Reader.</strong> A spartane PDF reader with note taking and highlighting capabilities. To open a new PDF you close Reader then open it again. Obviously.</li>
    <li><strong>Camera and Photos.</strong> Nothing extraordinary here. Open camera, see yourself, click on image, take picture. Open photos, look at photos, then delete them. <a href="http://feeds.arstechnica.com/~r/arstechnica/microsoft/~3/PiyCh0QfTA8/leaving-editing-geotagging-flagging-behind-in-windows-8-photos.ars">Ars Technica goes in further detail.</a></li>
    <li><strong>Task Manager.</strong> So much better than Windows 7&#8242;s. <a href="http://blogs.msdn.com/b/b8/archive/2011/10/13/the-windows-8-task-manager.aspx">Read all about it here.</a> Also why is the &#8220;Microsoft spell checking facility&#8221; taking such a toll on my system? It&#8217;s <em>just</em> 3,405 words I&#8217;ve got here… oh God finally no more red underlined words. Phew!</li>
    <li><strong>XBox Live Companion.</strong> Some kind of remote for your XBox. I don&#8217;t have one so I can&#8217;t say much about it.</li>
    <li><strong>XBox Live Games.</strong> Some kind of Steam-like client with games and friends and achievements and stuff that &#8220;doesn&#8217;t support logins from my region&#8221;. Blech.</li>
    <li>

<div class="wp-caption alignright" style="width: 369px"><img src="http://i.stack.imgur.com/1pT6w.png" alt="" width="359" height="146" /><p class="wp-caption-text">This appears when you use the multimedia keys. I wish it also popped up on track change, however.</p></div>

<strong>Music and Video.</strong> They, uh, play music and video from your libraries. Not much to say here except they also don&#8217;t let me log in (so <a href="http://arstechnica.com/microsoft/news/2012/02/windows-8-music-and-video-apps-integration-with-xbox-new-life-for-zune.ars">I refer you again to the relevant Ars Technica coverage</a>). The playlist in Music doesn&#8217;t seem to work in the snapped view if you use &#8220;Play All&#8221; from the Explorer ribbon, <a href="http://blogs.msdn.com/b/b8/archive/2011/08/29/improvements-in-windows-explorer.aspx">another (barely noticeable, really) can of worms of its own</a>. Background playback of music works as advertised; when active, the volume overlay gains track information with pause, back and forward controls <a href="https://wiki.ubuntu.com/SoundMenu">similar to what happens in Unity</a>.</li>
    <li><strong>Team Fortress 2</strong>. Just kidding, it isn&#8217;t inbuilt. <em>It should&#8217;ve been though!</em></li>
</ul>

<h2>Third party apps</h2>

<p>The Store has precious few applications currently available and not all bring all the potential of Metro to the table, as we&#8217;ve already seen with the Pinball app. In some ways this however also because of <strong>limitations of the common controls</strong> built into Windows. In Start and most inbuilt programs, you can scroll horizontally through the menu with vertical mousewheel scrolling (it actually makes sense). No such thing happens however in the default controls, which you can see from the templates in Visual Studio and the Vimeo app. If the building blocks are unpolished, unpolished apps is what you&#8217;re likely to make out of them. Pity.</p>

<p>No new apps have joined the starting roster of 65 programs (also counting the inbuilt apps listed above, mind you).  Wordament is fun, Soluto is ready to rock (athough only for limited management of others&#8217; computers).</p>

<h2>tl:dr; Rough around the edges</h2>

<p>When all&#8217;s said and done, Windows 8 delivers a <strong>completely fresh way to dick around with your computer</strong>. It remains to be seen whether or not you can also actually <em>get things done</em> with Metro. That&#8217;s where third-party apps will need to kick in, from <a href="http://www.theverge.com/2012/2/23/2818611/microsoft-office-15-screenshots-technical-preview">the up and coming Office 15</a> to the official clients for all kind of online services that aren&#8217;t yet on board. There&#8217;s also a few rough spots and most of them will probably require <strong>more work than it is feasible to put in so late in the release cycle</strong>: we&#8217;ll be lucky to find solutions in a service pack. Especially the multitasking limits seem concerning: we&#8217;ll see how many programs will be &#8220;playing background music&#8221; just for the purpose of running in the background.</p>

<p>For now however, this is all I have to say on the topic. I encourage you to<strong> give this Customer Preview a fair try</strong> and make up your own opinion of the operating system. It costs you nothing. If you still will think it sucks, at least you&#8217;ll know why it sucks firsthand, rather than regurgitating what all the other cool kids on the block say.</p>

<p>As for what I&#8217;m going to do with this install of Windows 8? Right now I think I&#8217;ll play some TF2, I&#8217;m almost sure it runs better here. We&#8217;ll see about the rest. <img src='http://blog.superuser.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.superuser.com/2012/03/09/win8-metro-review/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Understanding the &#8220;improved&#8221; in VIM</title>
		<link>http://blog.superuser.com/2012/03/06/understanding-the-improved-in-vim/</link>
		<comments>http://blog.superuser.com/2012/03/06/understanding-the-improved-in-vim/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 19:00:55 +0000</pubDate>
		<dc:creator>ninefingers</dc:creator>
				<category><![CDATA[Utilities]]></category>
		<category><![CDATA[editors]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://blog.superuser.com/?p=4811</guid>
		<description><![CDATA[Sometimes, every once in a while, a programmer feels like I do. VIM should be more efficient, more effective for editing text files yet I find myself reverting to the modern mouse-based approach more often than not. A rather famous question on Stack Overflow asked for tips on how to be more productive with VIM [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, every once in a while, a programmer feels like I do. VIM should be more efficient, more effective for editing text files yet I find myself reverting to the modern mouse-based approach more often than not.</p>

<p>A rather famous question on Stack Overflow asked for tips on how to be more productive with VIM &#8211; and he got one of the best answers I&#8217;ve ever seen. Not a list of tips but a working, detailed explanation from Stack Overflow user <a href="http://stackoverflow.com/users/149076/jim-dennis">Jim Dennis</a>. It&#8217;s so good, I am copying <a href="http://stackoverflow.com/a/1220118/257111">his answer&#8217;s raw source</a> here, running it through the Markdown parser and copied it here.</p>

<p>So, without further ado, over to Jim&#8217; amazing answer.</p>

<p><span id="more-4811"></span></p>

<h2>Your problem with <strong>Vim</strong> is that you don&#8217;t grok <strong>vi</strong>.</h2>

<p>You mention cutting with <code>yy</code> and complain that you almost never want to cut whole lines. In fact programmers, editing source code, very often want to work on whole lines, ranges of lines and blocks of code. However, <code>yy</code> is only one of many way to yank text into the anonymous copy buffer (or &#8220;register&#8221; as it&#8217;s called in <strong>vi</strong>).</p>

<p>The &#8220;Zen&#8221; of <strong>vi</strong> is that you&#8217;re speaking a language. The initial <code>y</code> is a verb. The statement <code>yy</code> is a synonym for <code>y_</code>. The <code>y</code> is doubled up to make it easier to type, since it is such a common operation.</p>

<p>This can also be expressed as <code>dd</code> <code>P</code> (delete the current line and paste a copy back into place; leaving a copy in the anonymous register as a side effect). The <code>y</code> and <code>d</code> &#8220;verbs&#8221; take any movement as their &#8220;subject.&#8221; Thus <code>yW</code> is &#8220;yank from here (the cursor) to the end of the current/next (big) word&#8221; and <code>y'a</code> is &#8220;yank from here to the line containing the mark named &#8216;<em>a</em>&#8216;.&#8221;</p>

<p>If you only understand basic up, down, left, and right cursor movements then <strong>vi</strong> will be no more productive than a copy of &#8220;notepad&#8221; for you. (Okay, you&#8217;ll still have syntax highlighting and the ability to handle files larger than a piddling ~45KB or so; but work with me here).</p>

<p><strong>vi</strong> has 26 &#8220;marks&#8221; and 26 &#8220;registers.&#8221; A mark is set to any cursor location using the <code>m</code> command. Each mark is designated by a single lower case letter. Thus <code>ma</code> sets the &#8216;<em>a</em>&#8216; mark to the current location, and <code>mz</code> sets the &#8216;<em>z</em>&#8216; mark. You can move to the line containing a mark using the <code>'</code> (single quote) command. Thus <code>'a</code> moves to the beginning of the line containing the &#8216;<em>a</em>&#8216; mark. You can move to the precise location of any mark using the <code>&#096;</code> (backquote) command. Thus <code>&#096;z</code> will move directly to the exact location of the &#8216;<em>z</em>&#8216; mark.</p>

<p>Because these are &#8220;movements&#8221; they can also be used as subjects for other &#8220;statements.&#8221;</p>

<p>So, one way to cut an arbitrary selection of text would be to drop a mark (I usually use &#8216;<em>a</em>&#8216; as my &#8220;first&#8221; mark, &#8216;<em>z</em>&#8216; as my next mark, &#8216;<em>b</em>&#8216; as another, and &#8216;<em>e</em>&#8216; as yet another (I don&#8217;t recall ever having interactively used more than four marks in 15 years of using <strong>vi</strong>; one creates one&#8217;s own conventions regarding how marks and registers are used by macros that don&#8217;t disturb one&#8217;s interactive context). Then we go to the other end of our desired text; we can start at either end, it doesn&#8217;t matter. Then we can simply use <code>d&#096;a</code> to cut or <code>y&#096;a</code> to copy. Thus the whole process has a 5 keystrokes overhead (six if we started in &#8220;insert&#8221; mode and needed to <kbd>Esc</kbd> out command mode). Once we&#8217;ve cut or copied then pasting in a copy is a single keystroke: <code>p</code>.</p>

<p>I say that this is one way to cut or copy text. However, it is only one of many. Frequently we can more succinctly describe the range of text without moving our cursor around and dropping a mark. For example if I&#8217;m in a paragraph of text I can use <code>{</code> and <code>}</code> movements to the beginning or end of the paragraph respectively. So, to move a paragraph of text I cut it using <code>{</code> <code>d}</code> (3 keystrokes). (If I happen to already be on the first or last line of the paragraph I can then simply use <code>d}</code> or <code>d{</code> respectively.</p>

<p>The notion of &#8220;paragraph&#8221; defaults to something which is usually intuitively reasonable. Thus it often works for code as well as prose.</p>

<p>Frequently we know some pattern (regular expression) that marks one end or the other of the text in which we&#8217;re interested. Searching forwards or backwards are movements in <strong>vi</strong>. Thus they can also be used as &#8220;subjects&#8221; in our &#8220;statements.&#8221; So I can use <code>d/foo</code> to cut from the current line to the next line containing the string &#8220;foo&#8221; and <code>y?bar</code> to copy from the current line to the most recent (previous) line containing &#8220;bar.&#8221; If I don&#8217;t want whole lines I can still use the search movements (as statements of their own), drop my mark(s) and use the <code>&#096;x</code> commands as described previously.</p>

<p>In addition to &#8220;verbs&#8221; and &#8220;subjects&#8221; <strong>vi</strong> also has &#8220;objects&#8221; (in the grammatical sense of the term). So far I&#8217;ve only described the use of the anonymous register. However, I can use any of the 26 &#8220;named&#8221; registers by <em>prefixing</em> the &#8220;object&#8221; reference with <code>"</code> (the double quote modifier). Thus if I use <code>"add</code> I&#8217;m cutting the current line into the &#8216;<em>a</em>&#8216; register and if I use <code>"by/foo</code> then I&#8217;m yanking a copy of the text from here to the next line containing &#8220;foo&#8221; into the &#8216;<em>b</em>&#8216; register. To paste from a register I simply prefix the paste with the same modifier sequence: <code>"ap</code> pastes a copy of the &#8216;<em>a</em>&#8216; register&#8217;s contents into the text after the cursor and <code>"bP</code> pastes a copy from &#8216;<em>b</em>&#8216; to before the current line.</p>

<p>This notion of &#8220;prefixes&#8221; also adds the analogs of grammatical &#8220;adjectives&#8221; and &#8220;adverbs&#8217; to our text manipulation &#8220;language.&#8221; Most commands (verbs) and movement (verbs or objects, depending on context) can also take numeric prefixes. Thus <code>3J</code> means &#8220;join the next three lines&#8221; and <code>d5}</code> means &#8220;delete from the current line through the end of the fifth paragraph down from here.&#8221;</p>

<p>This is all intermediate level <strong>vi</strong>. None of it is <strong>Vim</strong> specific and there are far more advanced tricks in <strong>vi</strong> if you&#8217;re ready to learn them. If you were to master just these intermediate concepts then you&#8217;d probably find that you rarely need to write any macros because the text manipulation language is sufficiently concise and expressive to do most things easily enough using the editor&#8217;s &#8220;native&#8221; language.</p>

<h2>A sampling of more advanced tricks:</h2>

<p>There are a number of <code>:</code> commands, most notably the <code>:% s/foo/bar/g</code> global substitution technique. (That&#8217;s not advanced but other <code>:</code> commands can be). The whole <code>:</code> set of commands was historically inherited by <strong>vi</strong>&#8216;s previous incarnations as the <strong>ed</strong> (line editor) and later the <strong>ex</strong> (extended line editor) utilities. In fact <strong>vi</strong> is so named because it&#8217;s the visual interface to <strong>ex</strong>.</p>

<p><code>:</code> commands normally operate over lines of text. <strong>ed</strong> and <strong>ex</strong> were written in an era when terminal screens were uncommon and many terminals were &#8220;teletype&#8221; (TTY) devices. So it was common to work from printed copies of the text, using commands through an extremely terse interface (common connection speeds were 110 baud, or, roughly, 11 characters per second &#8212; which is slower than a fast typist; lags were common on multi-user interactive sessions; additionally there was often some motivation to conserve paper).</p>

<p>So the syntax of most <code>:</code> commands includes an address or range of addresses (line number) followed by a command. Naturally one could use literal line numbers: <code>:127,215 s/foo/bar</code> to change the first occurrence of &#8220;foo&#8221; into &#8220;bar&#8221; on each line between 127 and 215. One could also use some abbreviations such as <code>.</code> or <code>$</code> for current and last lines respectively. One could also use relative prefixes <code>+</code> and <code>-</code> to refer to offsets after or before the current line, respectively. Thus: <code>:.,$j</code> meaning &#8220;from the current line to the last line, join them all into one line&#8221;. <code>:%</code> is synonymous with <code>:1,$</code> (all the lines).</p>

<p>The <code>:... g</code> and <code>:... v</code> commands bear some explanation as they are incredibly powerful. <code>:... g</code> is a prefix for &#8220;globally&#8221; applying a subsequent command to all lines which match a pattern (regular expression) while <code>:... v</code> applies such a command to all lines which do NOT match the given pattern (&#8220;v&#8221; from &#8220;conVerse&#8221;). As with other <strong>ex</strong> commands these can be prefixed by addressing/range references. Thus <code>:.,+21g/foo/d</code> means &#8220;delete any lines containing the string &#8220;foo&#8221; from the current one through the next 21 lines&#8221; while <code>:.,$v/bar/d</code> means &#8220;from here to the end of the file, delete any lines which DON&#8217;T contain the string &#8220;bar.&#8221;</p>

<p>It&#8217;s interesting that the common Unix command <strong>grep</strong> was actually inspired by this <strong>ex</strong> command (and is named after the way in which it was documented). The <strong>ex</strong> command <code>:g/re/p</code> (grep) was the way they documented how to &#8220;globally&#8221; &#8220;print&#8221; lines containing a &#8220;regular expression&#8221; (re). When <strong>ed</strong> and <strong>ex</strong> were used, the <code>:p</code> command was one of the first that anyone learned and often the first one used when editing any file. It was how you printed the current contents (usually just one page full at a time using <code>:.,+25p</code> or some such).</p>

<p>Note that <code>:% g/.../d</code> or (its reVerse/conVerse counterpart: <code>:% v/.../d</code> are the most common usage patterns. However there are couple of other <code>ex</code> commands which are worth remembering:</p>

<p>We can use <code>m</code> to move lines around, and <code>j</code> to join lines. For example if you have a list and you want to separate all the stuff matching (or conversely NOT matching some pattern) without deleting them, then you can use something like: <code>:% g/foo/m$</code> &#8230; and all the &#8220;foo&#8221; lines will have been moved to the end of the file. (Note the other tip about using the end of your file as a scratch space). This will have preserved the relative order of all the &#8220;foo&#8221; lines while having extracted them from the rest of the list. (This would be equivalent to doing something like: <code>1G!GGmap!Ggrep foo&lt;ENTER&gt;1G:1,'a g/foo'/d</code> (copy the file to its own tail, filter the tail through <code>grep</code>, and delete all the stuff from the head).</p>

<p>To join lines usually I can find a pattern for all the lines which need to be joined to their predecessor (all the lines which start with &#8220;^ &#8221; rather than &#8220;^ * &#8221; in some bullet list, for example). For that case I&#8217;d use: <code>:% g/^ /-1j</code> (for every matching line, go up one line and join them). (BTW: for bullet lists trying to search for the bullet lines and join to the next doesn&#8217;t work for a couple reasons &#8230; it can join one bullet line to another, and it won&#8217;t join any bullet line to <em>all</em> of its continuations; it&#8217;ll only work pairwise on the matches).</p>

<p>Almost needless to mention you can use our old friend <code>s</code> (substitute) with the <code>g</code> and <code>v</code> (global/converse-global) commands. Usually you don&#8217;t need to do so. However, consider some case where you want to perform a substitution only on lines matching some other pattern. Often you can use a complicated pattern with captures and use back references to preserve the portions of the lines that you DON&#8217;T want to change. However, it will often be easier to separate the match from the substitution: <code>:% g/foo/s/bar/zzz/g</code> &#8212; for every line containing &#8220;foo&#8221; substitute all &#8220;bar&#8221; with &#8220;zzz.&#8221; (Something like <code>:% s/&#40;.<em>foo.</em>&#41;bar&#40;.*&#41;/\1zzz\2/g</code> would only work for the cases those instances of &#8220;bar&#8221; which were PRECEDED by &#8220;foo&#8221; on the same line; it&#8217;s ungainly enough already, and would have to be mangled further to catch all the cases where &#8220;bar&#8221; preceded &#8220;foo&#8221;)</p>

<p>The point is that there are more than just <code>p</code>, <code>s</code>, and <code>d</code> lines in the <code>ex</code> command set.</p>

<p>The <code>:</code> addresses can also refer to marks. Thus you can use: <code>:'a,'bg/foo/j</code> to join any line containing the string foo to its subsequent line, if it lies between the lines between the &#8216;<em>a</em>&#8216; and &#8216;<em>b</em>&#8216; marks. (Yes, all of the preceding <code>ex</code> command examples can be limited to subsets of the file&#8217;s lines by prefixing with these sorts of addressing expressions).</p>

<p>That&#8217;s pretty obscure (I&#8217;ve only used something like that a few times in the last 15 years). However, I&#8217;ll freely admit that I&#8217;ve often done things iteratively and interactively that could probably have been done more efficiently if I&#8217;d taken the time to think out the correct incantation.</p>

<p>Another very useful <strong>vi</strong> or <strong>ex</strong> command is <code>:r</code> to read in the contents of another file. Thus: <code>:r foo</code> inserts the contents of the file named &#8220;foo&#8221; at the current line.</p>

<p>More powerful is the <code>:r!</code> command. This reads the results of a command. It&#8217;s the same as suspending the <strong>vi</strong> session, running a command, redirecting its output to a temporary file, resuming your <strong>vi</strong> session, and reading in the contents from the temp. file.</p>

<p>Even more powerful are the <code>!</code> (bang) and <code>:... !</code> (<strong>ex</strong> bang) commands. These also execute external commands and read the results into the current text. However, they also filter selections of our text through the command! Thus we can sort all the lines in our file using <code>1G!Gsort</code> (<code>G</code> is the <strong>vi</strong> &#8220;goto&#8221; command; it defaults to going to the last line of the file, but can be prefixed by a line number, such as 1, the first line). This is equivalent to the <strong>ex</strong> variant <code>:1,$!sort</code>. Writers often use <code>!</code> with the Unix <strong>fmt</strong> or <strong>fold</strong> utilities for reformatting or &#8220;word wrapping&#8221; selections of text. A very common macro is <code>{!}fmt</code> (reformat the current paragraph). Programmers sometimes use it to run their code, or just portions of it, through <strong>indent</strong> or other code reformatting tools.</p>

<p>Using the <code>:r!</code> and <code>!</code> commands means that any external utility or filter can be treated as an extension of our editor. I have occasionally used these with scripts that pulled data from a database, or with <strong>wget</strong> or <strong>lynx</strong> commands that pulled data off a website, or <strong>ssh</strong> commands that pulled data from remote systems.</p>

<p>Another useful <strong>ex</strong> command is <code>:so</code> (short for <code>:source</code>). This reads the contents of a file as a series of commands. When you start <strong>vi</strong> it normally, implicitly, performs a <code>:source</code> on <code>~/.exinitrc</code> file (and <strong>Vim</strong> usually does this on <code>~/.vimrc</code>, naturally enough). The use of this is that you can change your editor profile on the fly by simply sourcing in a new set of macros, abbreviations, and editor settings. If you&#8217;re sneaky you can even use this as a trick for storing sequences of <strong>ex</strong> editing commands to apply to files on demand.</p>

<p>For example I have a seven line file (36 characters) which runs a file through <strong>wc</strong>, and inserts a C-style comment at the top of the file containing that word count data. I can apply that &#8220;macro&#8221; to a file by using a command like: <code>vim +'so mymacro.ex' ./mytarget</code></p>

<p>(The <code>+</code> command line option to <strong>vi</strong> and <strong>Vim</strong> is normally used to start the editing session at a given line number. However it&#8217;s a little known fact that one can follow the <code>+</code> by any valid <strong>ex</strong> command/expression, such as a &#8220;source&#8221; command as I&#8217;ve done here; for a simple example I have scripts which invoke: <code>vi +'/foo/d|wq!' ~/.ssh/known_hosts</code> to remove an entry from my SSH known hosts file non-interactively while I&#8217;m re-imaging a set of servers).</p>

<p>Usually it&#8217;s far easier to write such &#8220;macros&#8221; using Perl, AWK, <strong>sed</strong> (which is, in fact, like <strong>grep</strong> a utility inspired by the <strong>ed</strong> command).</p>

<p>The <code>@</code> command is probably the most obscure <strong>vi</strong> command. In occasionally teaching advanced systems administration courses for close to a decade I&#8217;ve met very few people who&#8217;ve ever used it. <code>@</code> executes the contents of a register as if it were a <strong>vi</strong> or <strong>ex</strong> command.</p>

<p>Example: I often use: <code>:r!locate ...</code> to find some file on my system and read its name into my document. From there I delete any extraneous hits, leaving only the full path to the file I&#8217;m interested in. Rather than laboriously <kbd>Tab</kbd>-ing through each component of the path (or worse, if I happen to be stuck on a machine without Tab completion support in its copy of <strong>vi</strong>) I just use:</p>

<ol>
    <li><code>0i:r</code> (to turn the current line into a valid <strong>:r</strong> command),</li>
    <li><code>"cdd</code> (to delete the line into the &#8220;c&#8221; register) and</li>
    <li><code>@c</code> execute that command.</li>
</ol>

<p>That&#8217;s only 10 keystrokes (and the expression <code>"cdd</code> <code>@c</code> is effectively a finger macro for me, so I can type it almost as quickly as any common six letter word).</p>

<h2>A sobering thought</h2>

<p>I&#8217;ve only scratched to surface of <strong>vi</strong>&#8216;s power and none of what I&#8217;ve described here is even part of the &#8220;improvements&#8221; for which <strong>vim</strong> is named! All of what I&#8217;ve described here should work on any old copy of <strong>vi</strong> from 20 or 30 years ago.</p>

<p>There are people who have used considerably more of <strong>vi</strong>&#8216;s power than I ever will.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.superuser.com/2012/03/06/understanding-the-improved-in-vim/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Kon Boot: Getting into a Client&#8217;s Computer without using a Portal Gun</title>
		<link>http://blog.superuser.com/2012/03/01/kon-boot-getting-into-a-clients-computer-without-using-a-portal-gun/</link>
		<comments>http://blog.superuser.com/2012/03/01/kon-boot-getting-into-a-clients-computer-without-using-a-portal-gun/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 12:00:37 +0000</pubDate>
		<dc:creator>bloodphilia</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[bypass]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.superuser.com/?p=4744</guid>
		<description><![CDATA[Okay, here you are again. Another computer from another (self-proclaimed) client for you to fix. So, let&#8217;s boot this thing and see what&#8217;s wrong with it this time. Okay, first obstacle; logging into the client&#8217;s user account. Now for me, repairs would usually pause here while I&#8217;m waiting for the moment I can get a [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, here you are again. Another computer from another (self-proclaimed) client for you to fix. So, let&#8217;s boot this thing and see what&#8217;s wrong with it <em>this time</em>. Okay, first obstacle; logging into the client&#8217;s user account. Now for me, repairs would usually pause here while I&#8217;m waiting for the moment I can get a hold of my client and ask him or her for the correct password. <em>Annoying&#8230;</em></p>

<p><span id="more-4744"></span></p>

<h2>The tools for the job</h2>

<p>Now of course I could use fairly established tools such as <a href="http://pogostick.net/~pnh/ntpasswd/" target="_blank">Offline Windows Password &amp; Registry Editor</a> (also known as <code>ntpasswd</code> for you geeks out there) or <a href="http://ophcrack.sourceforge.net/" target="_blank">Ophcrack</a>. But for multiple reasons, those tools just don&#8217;t seem to cut it for me.</p>

<p style="text-align: center"><a href="http://sourceforge.net/projects/ophcrack/screenshots/208038"><img class="aligncenter" src="http://sourceforge.net/projects/ophcrack/screenshots/208038" alt="" width="200" /></a></p>

<p>While they do their job brilliantly and have both saved me on numerous occasions, they have drawbacks. <code>ntpasswd</code> allows a user to reset the password of a user account by booting from a special boot disk. Although this is very useful, it leaves traces; my client has to reset his or her password and actual changes are made to the Windows setup.</p>

<p>Ophcrack does a fine job cracking Windows password hashes using so-called <a href="http://en.wikipedia.org/wiki/Rainbow_table" target="_blank">rainbow tables</a>. Basically, Windows stores your user password in a hash, a seemingly arbitrary series of numbers and letters. Hashing is a way of storing passwords without having access to the plain password, which is much more secure than just storing the unencrypted password.</p>

<h2>Now what is this hashing you speak of?</h2>

<p>The below YouTube clip does an excellent job explaining how encrypted communication works and in the process it also shows how hashing works. Just substitute &#8220;The original colours&#8221; with &#8220;The user password&#8221; and you&#8217;re good to go. The part you&#8217;ll want to take a look at to understand hashing is from 0:40 to 1:05.</p>

<p style="text-align: center"><a href="http://youtu.be/3QnD2c4Xovk?t=39s" target="_blank"><img class="aligncenter size-full wp-image-4751" src="http://blog.superuser.com/files/2012/02/27-2-2012-21-57-59.jpg" alt="What, are we painting now?" width="640" height="359" /></a></p>

<p>Ophcrack basically knows (in some cases, not all) which original colours (passwords) are mixed into the end colour (the hash). These colours and their end products are stored in a table, a <em>rainbow table</em>. Now this works well with passwords that are easy to guess but if the passwords are more complicated, Ophcrack will take way too long at guessing the password — or it won&#8217;t find it at all (at least not within our lifespan). If you would like to know more about cryptography, then I invite you to watch the entire YouTube video. It&#8217;s worth it.</p>

<h2>Enter Kon Boot</h2>

<p>Back to our password problem. This client&#8217;s <em>really </em>hard to get a hold of, won&#8217;t answer his phone and won&#8217;t reply to texts or email. <em>Annoying&#8230; </em></p>

<p>Until recently this meant having to wait and wait and wait, having the client&#8217;s machine just taking up space in the room. Then <a href="http://kon-boot.com" target="_blank">Kon Boot</a> drew my attention. Where <code>ntpasswd</code> and Ophcrack help you login with a legitimate password, Kon Boot simply hooks onto Windows&#8217; kernel and tells it to disregard the authentication of the password entered, correct or not. Doing this, it allows you to log into any local user account using any (or even a blank) password you enter into the password field. Windows will accept anything you input as the correct password, even insults. (No really, I tried &#8220;Windows sucks, Linux FTW!&#8221; as a password — it didn&#8217;t seem to upset Windows at all.)</p>

<p>Now I can hear you thinking, &#8220;It can&#8217;t possibly be <em>that</em> easy?&#8221;. Guess again, it&#8217;s probably even easier than you imagine it to be right now. Kon Boot can be run from a CD, USB drive or even a good old floppy disk. You boot into Kon Boot, Kon Boot will boot into Windows and that&#8217;s it.</p>

<p>Some popular BootCDs (like <a href="http://hirensbootcd.org" target="_blank">Hiren&#8217;s BootCD</a>) even include the free version of Kon Boot saving you from having to create your own bootable disk image. Just burn the ISO to a blank DVD or put it on a USB drive following the <a href="http://www.hirensbootcd.org/usb-booting/" target="_blank">clear instructions</a>.</p>

<p>Kon Boot has a free version that handles virtually all 32-bit versions of Windows except Windows 7. If you do decide to pay for this awesome piece of software, you&#8217;ll get a version that adds Windows 7 and 64-bit support. Check out <a href="http://kon-boot.com" target="_blank">their website</a> for pricing.</p>

<h2>What Kon Boot won&#8217;t do</h2>

<p>Now because Kon Boot doesn&#8217;t actually know the password to the account, it is unavoidably inhibited in performing certain actions. The most noteworthy are:</p>

<ul>
    <li>Kon Boot does not allow you to change the password of the account used to log in. However, changing the password of other local accounts is possible.</li>
    <li>You can not use the private keys stored in the Windows certificates store. These certificates are used to decrypt encrypted email, websites and other connections.</li>
    <li>EFS (Encrypted File System) encrypted files can not be accessed because they are encrypted with the real password. An “access denied” message is displayed by the system.</li>
    <li>Kon-boot does not allow you to bypass the authentication on an Active Directory domain. Only locally stored accounts can be accessed. However, cached accounts seem to be accessible in certain cases.</li>
</ul>

<h2>Pretty scary stuff</h2>

<p><img class="alignleft  wp-image-4766" src="http://blog.superuser.com/files/2012/02/27-2-2012-22-53-28.jpg" alt="" width="190" />Kon Boot seems to be the nightmare of any system administrator who wants to keep unwelcome guests out of their files and settings. Countermeasures can be taken though:</p>

<ul>
    <li>Disable USB and Firewire booting in the BIOS.</li>
    <li>Change the boot order to make sure the computer won&#8217;t boot from any CD or DVD.</li>
    <li>Disable any other boot methods your BIOS may allow you don&#8217;t need (such as network boot).</li>
    <li>Encrypt your files by using e.g. EFS, Truecrypt, etc.</li>
</ul>

<p>Other than that, there isn&#8217;t really much you can do about it. The bypass has been there since 2009 and it seems unlikely Microsoft will release a patch after three years. I have tried have Kon Boot on several of my PCs running different versions of Windows and Kon Boot allowed me to log into all of them like a charm.</p>

<p>Although Kon Boot seems like a pretty scary tool, I believe it can be put to good use by underpaid tech fix guys as ourselves. I&#8217;m sure I needn&#8217;t remind you; <strong>using Kon Boot to grant yourself access without permission is illegal and may get you in trouble.</strong></p>

<p><a href="http://blog.superuser.com/files/2012/02/kon-boot-troll.jpg"><img class="size-full wp-image-4779 alignnone" src="http://blog.superuser.com/files/2012/02/kon-boot-troll.jpg" alt="" width="470" height="546" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.superuser.com/2012/03/01/kon-boot-getting-into-a-clients-computer-without-using-a-portal-gun/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FFmpeg: The ultimate Video and Audio Manipulation Tool</title>
		<link>http://blog.superuser.com/2012/02/24/ffmpeg-the-ultimate-video-and-audio-manipulation-tool/</link>
		<comments>http://blog.superuser.com/2012/02/24/ffmpeg-the-ultimate-video-and-audio-manipulation-tool/#comments</comments>
		<pubDate>Fri, 24 Feb 2012 19:00:00 +0000</pubDate>
		<dc:creator>slhck</dc:creator>
				<category><![CDATA[Compression]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.superuser.com/?p=4644</guid>
		<description><![CDATA[What is FFmpeg? Chances are you’ve probably heard of FFmpeg already. It’s a set of tools dedicated to decoding, encoding and transcoding video and audio. FFmpeg is based on the popular libavcodec and libavformat libraries that can be found in many other video conversion applications, like Handbrake. So why would you need FFmpeg? Got a [...]]]></description>
			<content:encoded><![CDATA[<h1 id="whatisffmpeg">What is FFmpeg?</h1>

<p>Chances are you’ve probably heard of <a href="http://ffmpeg.org/">FFmpeg</a> already. It’s a set of tools dedicated to decoding, encoding and transcoding video and audio. FFmpeg is based on the popular <code>libavcodec</code>
and <code>libavformat</code> libraries that can be found in many other video conversion applications, like <a href="http://handbrake.fr/">Handbrake</a>.</p>

<p>So why would you need FFmpeg? Got a video in an obscure format that every other player couldn’t recognize? Transcode it with FFmpeg. Want to automate cutting video segments out of movies? Write a short batch script that uses FFmpeg. Where I work, I constantly have to encode and process video material, and I’d never want to go back to using a GUI tool for doing this.</p>

<p>This post is a follow-up on <a href="http://blog.superuser.com/2011/11/07/video-conversion-done-right-codecs-and-software/">Video Conversion done right: Codecs and Software</a>, where I discussed the various codecs and containers that you can find these days. For a quick overview, I’d suggest to read this one as well, because it covers some important basics.</p>

<p>Now, let’s dive into the more practical aspects.</p>

<p><span id="more-4644"></span></p>

<h1 id="installation">Installation</h1>

<p>FFmpeg is free and open source, and it’s cross-platform. You’ll be able to install it on your Windows PC as well as your Linux server. The only thing you need to be comfortable with is using your command line. As it&#8217;s actively developed, you should try to update your version from time to time. Sometimes, new features are added, and bugs are fixed. You won&#8217;t believe how many times updating FFmpeg solved encoding problems I had.</p>

<h2 id="windows">Windows</h2>

<p>Compiling FFmpeg on Windows is not too easy. That’s why there are (semi-) automated builds of the latest version available online, most prominently the ones <a href="http://ffmpeg.zeranoe.com/builds/">from Zeranoe.com</a>. Download the latest build labeled as “static” for your 32 or 64 Bit system.</p>

<p>It will include <code>ffmpeg.exe</code>, which is the main tool we are going to use. And you’re done. That was easy, was it?</p>

<h2 id="osx">OS X</h2>

<p>On OS X, you have the tools for building programs from source. It’s very easy to install FFmpeg if you use a package manager like <a href="http://www.ffmpegx.com/">Homebrew</a> or <a href="http://www.ffmpegx.com/">MacPorts</a>. Install one of them if you haven’t already, and then run either
<pre><code>brew install ffmpeg --with-ffplay </code></pre>
or
<pre><code>sudo port install ffmpeg-devel </code></pre>
This takes a while, because dependencies have to be built too. When you’re done, you should be able to call FFmpeg by running <code>ffmpeg</code> from the command line. You should see a copyright header and some build details.</p>

<p>Note that there’s also <a href="http://www.ffmpegx.com/">ffmpegX</a>, but its bundled version always is a bit behind, and I wouldn’t recommend using it unless you have a good reason for doing so. The <code>.app</code> package contains a compiled version of the <code>ffmpeg</code> command line tool already, which you <em>could</em> theoretically use.</p>

<h2 id="linux">Linux</h2>

<p>On many Linux distributions, FFmpeg comes in the default packages (e.g. on Ubuntu, where <a href="http://libav.org/">libav</a> – an FFmpeg fork – is bundled). However, mostly this is a very old release version. Do yourself a favor and compile from source – it sounds harder than it actually is.</p>

<p>FFmpeg has a few dependencies, so therefore you’ll want to install encoders such as LAME for MP3 and x264 for videos as well. As I’ve been using Ubuntu almost exclusively, I found these Ubuntu Forums tutorials quite helpful: <a href="http://ubuntuforums.org/showthread.php?t=786095">HOWTO: Install and use the latest FFmpeg and x264</a>. Follow the steps there to get your version up and running. The process should be similar for other distributions.</p>

<hr />

<h1 id="ourfirstencodedvideo">Our first encoded Video</h1>

<p>Now that we have FFmpeg working, we can start with our video or audio conversion. Note that this is always a very resource intensive task, especially with video. Expect some conversions to take a little while, for example when re-encoding whole movies. A quad-core CPU like the i7 can easily be saturated with a good encoder and performs very fast then.</p>

<p>Before you handle videos, you should know what the difference between “codec” and “container” (also, “format”) is, as I will be using these terms without explaining them any further. I know these can be easily mixed up and aren&#8217;t as self-explaining as you&#8217;d like them to be. To read more about this, see this Super User answer: <a href="http://superuser.com/a/300997/48078">What is a Codec (e.g. DivX?), and how does it differ from a File Format (e.g. MPG)?</a></p>

<h2 id="basicsyntax">Basic Syntax</h2>

<p>Okay, now let&#8217;s start. The most basic form of an FFmpeg command goes like this – note the absence of an output option like <code>-o</code>:
<pre><code>ffmpeg -i input output </code></pre>
And you’re done. For example, you could convert an MP3 into a WAV file, or an MKV video into MP4 (but don’t do that just yet, please). You could also just extract audio from a video file.
<pre><code>ffmpeg -i audio.mp3 audio.wav</code>
<code>ffmpeg -i video.mp4 video.mkv</code>
<code>ffmpeg -i video.mp4 audio.wav</code></pre>
FFmpeg will guess which codecs you want to use depending on the format specifier (e.g. “.wav” container obviously needs a WAV codec inside). But that’s not always what we want. Let&#8217;s say you have an MP4 container – which video codec should it include? There are a couple of possible answers. So, we’re better off specifying these codecs ourselves.</p>

<h2 id="specifyingvideoandaudiocodecs">Specifying Video and Audio codecs</h2>

<p>In most cases, you want a specific output codec, like h.264, or AAC audio. Today, there&#8217;s almost no reason <em>not</em> to encode to h.264, as it offers incredible quality at small file sizes. But which codecs do really work in FFmpeg? Luckily, it has a ton of built-in codecs and formats, which you can get a list of. The <code>D</code> and <code>E</code> stand for “decoding” and/or “encoding” capabilities, respectively.
<pre><code>ffmpeg -codecs</code>
<code>ffmpeg -formats </code></pre>
Now, we can use any of those to perform our transcoding. Use the <code>-c</code> option to specify a codec, with a <code>:a</code> or <code>:v</code> for audio and video codecs.
<pre><code>ffmpeg -i input.wav -c:a libfaac output.mp4</code>
<code>ffmpeg -i input.avi -c:v libx264 -c:a libfaac output.mkv </code></pre>
The possible combinations are countless, but obviously restricted by the format/container. Especially those pesky old <a href="http://en.wikipedia.org/wiki/Audio_Video_Interleave">AVI</a> containers don’t like all codecs, so you’re better off encoding to MP4 or MKV containers these days.</p>

<h2 id="whentocopywhentoencode">When to copy, when to encode?</h2>

<p>Sometimes, you want to just copy the contents of a video and not re-encode. This is actually very critical when just cutting out portions from a file, or only changing containers (and <em>not</em> the codecs inside). In the example I gave above, we wanted to change MP4 to MKV.</p>

<p>The following command is <strong>wrong</strong>: It will re-encode your video. It will take forever, and <a href="http://en.wikipedia.org/wiki/Generation_loss">the result will look bad</a>.
<pre><code>ffmpeg -i input.mp4 output.mkv </code></pre>
This command however does it right:
<pre><code>ffmpeg -i input.mp4 -c:v copy -c:a copy output.mkv </code></pre>
If you were to re-encode your videos all the time when you cut them, instead of just copying the codec contents, you’d eventually end up with something like this (exaggerated, but still highly entertaining) <a href="http://www.youtube.com/watch?v=icruGcSsPp0">example of generation loss</a>. Looks scary, does it?</p>

<p>If changing the container without encoding does not work for you, you can try the <code>mkvmerge</code> tool that <a href="http://www.bunkus.org/videotools/mkvtoolnix/">mkvtoolnix</a> offers. This will create an MKV file.</p>

<pre><code>mkvmerge input.avi -o output.mkv
</code></pre>

<hr />

<h1 id="advancedoptions">Advanced Options</h1>

<p>If you’ve used some test videos or audio files for the above sequences, you might have seen that the quality wasn’t good enough to be useful. This is completely normal. Also, you will probably have constraints about bit rate, file size or target devices, such as when encoding a video for the PlayStation 3 or your Android phone.</p>

<h2 id="qualitysettings">Quality Settings</h2>

<p>Quality comes first. What is “quality”, even? Generally, the more bits you can spend on a file, the better it will look or sound. This means, that for the same codec, larger file size (or larger bit rate) will equal in better quality. In most cases, that is.</p>

<p>If you want to set the bit rate, you can do that with the <code>-b</code> option, again specifying the audio or video part (just to resolve any ambiguities).
<pre><code>ffmpeg -i input.wav -b:a 192K out.mp3</code>
<code>ffmpeg -i input.avi -c:v libx264 -b:v 500K -c:a copy out.mp4 </code></pre>
But often, bit rate is not enough. You only need to restrict bit rate when you have a very specific target file size to reach. In all other cases, use a better concept, called “constant quality”. The reason is that sometimes you don’t want to spend the same amount of bits to a segment of a file. That’s when you should use variable bit rate. Actually, this concept is very well known for MP3 audio, where VBR rips are commonly found.</p>

<p>In video, this means setting a certain value called <a href="http://en.wikipedia.org/wiki/Constant_rate_factor">Constant Rate Factor</a>. For x264 (the h.264 encoder you should use), this is very easy:
<pre><code>ffmpeg -i source.mp4 -c:v libx264 -crf 19 out.mp4 </code></pre>
The CRF can be anything within 0 and 51, with the reasonable range being 17 to 23. The lower, the better the quality, the higher the file size. For MPEG-4 video (like XviD), a similar concept exists, called “qscale”.
<pre><code>ffmpeg -i source.mp4 -c:v mpeg4 -qscale 3 out.mp4 </code></pre>
Here, the <code>qscale</code> can range from 1 to 31. The lower, the higher the quality, with values of 3 to 5 giving a good enough result.</p>

<p>In general, the best bet is to just <em>try and see for yourself</em> what looks good. Take into account the result file size you want and how much quality you can trade in for smaller file sizes. It&#8217;s all up to you.</p>

<h2 id="cuttingvideo">Cutting Video</h2>

<p>Often, you want to just cut out a portion from a file. FFmpeg supports basic cutting with the <code>-t</code> and <code>-ss</code> options. The first one will specify the duration of the output, and the second one will specify the start point. For example, to get the first five seconds, starting from one minute and 30 seconds:
<pre><code>ffmpeg -ss 00:01:30 -i input.mov -c:v copy -c:a copy -t 5 output.mov </code></pre>
The time values can either be seconds or in the form of <code>HH:MM:SS.ms</code>.</p>

<p>Note that we’ve just copied the contents instead of re-encoding. Also, see how the <code>-ss</code> option is <em>before</em> the actual input? This will first seek to the point in the file, and then start to encode and cut. This is especially useful when you’re actually not just copying content, but encoding it, because it’ll speed up your conversion (although it’s less accurate).</p>

<h2 id="resizing">Resizing</h2>

<p>Got a High Definition 1080p video that you want to watch on your mobile phone? Scale it down first! FFmpeg supports software-based scaling when encoding with the <code>-s</code> option. The following example will do that:
<pre><code>ffmpeg -i hd-movie.mkv -c:v libx264 -s 854x480 -c:a copy out.mp4 </code></pre>
Phones have some restrictions on video playback, which can be tackled by using so-called “profiles” when encoding. More about this can be found in the resources at the bottom.</p>

<h2 id="otherusefulexamples">Other useful Examples</h2>

<p>On Super User, I’m currently very active in the <a href="http://superuser.com/questions/tagged/ffmpeg">FFmpeg tag</a>. You could browse the questions there, or see this list of questions and answers I’ve compiled. Of course, if you have any specific problem, feel free to ask it on the main site and we Super Users can help you out!</p>

<p>General issues:</p>

<ul>
    <li><a href="http://superuser.com/questions/373018/resources-to-use-ffmpeg-effectively/373024#373024">Resources To Use FFMPEG Effectively</a>, including some general links and resources</li>
    <li><a href="http://superuser.com/questions/359730/what-do-the-numbers-240-and-360-mean-when-downloading-video-how-can-i-tell-whic/359734#359734">What do the numbers 240 and 360 mean when downloading video? How can I tell which video is more compressed?</a>, which focuses on tradeoffs between bit rate, file size, video dimensions, et cetera.</li>
</ul>

<p>Specific conversion problems:</p>

<ul>
    <li><a href="http://superuser.com/questions/378726/convert-from-mov-to-mp4-container-format/378761#378761">Convert from MOV to MP4 Container format</a>, which talks about switching containers only</li>
    <li><a href="http://superuser.com/questions/299550/how-to-convert-any-video-to-dvd-vob-in-good-video-quality/299557#299557">How to convert any video to DVD (.vob) in good video quality?</a>, about the limitations of retaining quality when converting</li>
    <li><a href="http://superuser.com/questions/383903/what-parameters-should-i-be-looking-at-to-reduce-the-size-of-a-mov-file/383946#383946">What parameters should I be looking at to reduce the size of a .MOV file?</a>, in depth explanation about how to use the Constant Rate Factor</li>
    <li><a href="http://superuser.com/questions/380633/use-divx-settings-to-encode-to-mp4-with-ffmpeg">Use DivX settings to encode to mp4 with ffmpeg</a>, more examples about CRF and how to set advanced x264 options like presets and profiles</li>
    <li><a href="http://superuser.com/questions/290136/convert-any-video-to-hd-video/290155#290155">Convert any video to HD Video</a>, about up- or downscaling video</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.superuser.com/2012/02/24/ffmpeg-the-ultimate-video-and-audio-manipulation-tool/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WTFriday: What happens when Windows runs out of Disk Space?</title>
		<link>http://blog.superuser.com/2012/02/17/wtfriday-what-happens-when-windows-runs-out-of-disk-space/</link>
		<comments>http://blog.superuser.com/2012/02/17/wtfriday-what-happens-when-windows-runs-out-of-disk-space/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 15:30:52 +0000</pubDate>
		<dc:creator>George Edison</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Hard Drives]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[WTFriday]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[free space]]></category>
		<category><![CDATA[partition]]></category>

		<guid isPermaLink="false">http://blog.superuser.com/?p=4626</guid>
		<description><![CDATA[I have been using the Windows 8 Developer Preview for about 5 months or so and in order to install it on my PC, I had to create a rather small partition on my primary hard drive consisting of only about 16GB. Thankfully, a clean install of Windows 8 will fit comfortably within that space [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using the Windows 8 Developer Preview for about 5 months or so and in order to install it on my PC, I had to create a rather small partition on my primary hard drive consisting of only about 16GB. Thankfully, a clean install of Windows 8 will fit comfortably within that space and still provide enough room for some basic utilities and drivers (of course, I do have other secondary partitions that I use for installing applications).</p>

<p>During the installation of a particular application, the free disk space on the partition dropped to about 28MB. One of the users over in the <a href="http://chat.stackexchange.com/rooms/118/root-access">Root Access chat room</a> suggested that I try filling the disk until it is completely full and then blogging about what happens &#8211; hence this article. I was a bit reluctant at first since I didn&#8217;t want the hassle of reinstalling anything if it became corrupted somehow, but since I have up to date backups of everything, I decided to proceed anyway.</p>

<p><span id="more-4626"></span></p>

<p>The first step was to run Disk Cleanup to make sure that the disk wasn&#8217;t full of a bunch of transient temporary files or something silly like that. Then the next step was to actually fill the disk. This sounds like an easy task, but Windows is pretty good at preventing the disk from becoming full in the first place. After filling the disk to within 500KB, I suddenly discover that Windows has managed to free 300MB on its own. This shocked me because I had just run Disk Cleanup and there was (as far as I was concerned) very little that Windows could remove. I did however receive a notification in the system tray:</p>

<p><a href="http://blog.superuser.com/files/2012/02/popup.png"><img class="aligncenter size-full wp-image-4628" src="http://blog.superuser.com/files/2012/02/popup.png" alt="Low Disk Space Popup" width="409" height="128" /></a></p>

<p>I began filling up the remaining 300MB of disk space with more files and finally managed to get the disk to 0 bytes of free space for a brief moment:</p>

<p><a href="http://blog.superuser.com/files/2012/02/0kb.png"><img class="aligncenter size-full wp-image-4632" src="http://blog.superuser.com/files/2012/02/0kb.png" alt="0 KB of Free Space" width="175" height="51" /></a></p>

<p><a href="http://blog.superuser.com/files/2012/02/disk_properties.png"><img class="aligncenter size-full wp-image-4629" src="http://blog.superuser.com/files/2012/02/disk_properties.png" alt="Properties of a Full Disk" width="402" height="519" /></a></p>

<p>As you can see, the drive is completely full. But not so fast &#8211; I had hardly finished doing this when Windows somehow (miraculously) managed to free up another 308MB of space on the drive. I was beginning to wonder what was getting deleted at this point since I had no idea what was on the disk that took up so much space yet was not needed and could be deleted. Still puzzled, I filled the disk up once again and began launching programs and doing things that I would normally do to see if anything was broken or wouldn&#8217;t work. The results were quite interesting.</p>

<p>The first application I tried, Notepad++, was completely unhelpful since it would happily report that it saved a text document &#8211; only to find out later that it had silently failed and created a completely blank document. Another text editor, PowerPad, was a little bit more helpful when trying to save a file when there was not enough room:</p>

<p><a href="http://blog.superuser.com/files/2012/02/powerpad.png"><img class="aligncenter size-full wp-image-4631" src="http://blog.superuser.com/files/2012/02/powerpad.png" alt="PowerPad Error" width="513" height="199" /></a></p>

<p>The error message does contain the root of the problem though the additional technical details aren&#8217;t really helpful to an end user. When trying to save a web page with Internet Explorer 10, I was pleasantly surprised to see the following:</p>

<p><a href="http://blog.superuser.com/files/2012/02/ie.png"><img class="aligncenter size-full wp-image-4633" src="http://blog.superuser.com/files/2012/02/ie.png" alt="Internet Explorer Error" width="388" height="166" /></a></p>

<p>This error message was simple but completely accurate &#8211; a very good example of what an application should do when it encounters such an error. I began to try a few other applications and all of them were able to at least start without crashing or running into an unrecoverable error. iTunes was able to load my library and play / stream music though it did warn me:</p>

<p><a href="http://blog.superuser.com/files/2012/02/itunes.png"><img class="aligncenter size-full wp-image-4634" src="http://blog.superuser.com/files/2012/02/itunes.png" alt="iTunes Error" width="432" height="204" /></a></p>

<p>Some more experimentation revealed little other interesting results &#8211; applications worked fine until they attempted to write to the disk in which case they would present some form of error message (well, all except for Notepad++). However, I was surprised to discover that every time Windows tried to scavenge some free space, it never touched the recycle bin which had about 30.1MB of data in it. I would have thought that would be one of the first places Windows would look to free space.</p>

<p>After I was satisfied that my experiment was finished, I deleted all of the files I had used to fill the drive and I am sure I heard the PC breathe a sigh of relief as free disk space shot up to a more reasonable number.</p>

<p>In closing, I would like to share a rather curious message that popped up once I had finished with my experiment and was deleting files:</p>

<p><a href="http://blog.superuser.com/files/2012/02/resolved.png"><img class="aligncenter size-full wp-image-4635" src="http://blog.superuser.com/files/2012/02/resolved.png" alt="Disk Space Issue Resolved" width="391" height="272" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.superuser.com/2012/02/17/wtfriday-what-happens-when-windows-runs-out-of-disk-space/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>What is DNS and which Server do I choose?</title>
		<link>http://blog.superuser.com/2012/02/16/what-is-dns-and-which-server-do-i-choose/</link>
		<comments>http://blog.superuser.com/2012/02/16/what-is-dns-and-which-server-do-i-choose/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 19:00:00 +0000</pubDate>
		<dc:creator>Tom Wijsman</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://blog.superuser.com/?p=4559</guid>
		<description><![CDATA[Some have heard about DNS and perhaps once configured in a router without knowing what it is or how it works. Others might know it, but haven&#8217;t considered to use another DNS server than the one of their ISP. This is what I will go through in this blog post. DNS simply stands for Domain [...]]]></description>
			<content:encoded><![CDATA[<p>Some have heard about DNS and perhaps once configured in a router without knowing what it is or how it works. Others might know it, but haven&#8217;t considered to use another DNS server than the one of their ISP. This is what I will go through in this blog post.</p>

<p>DNS simply stands for Domain Name System, which is a hierarchy of Name Servers that have the intent to translate host names into IP addresses on a global scale. A name server hosts and/or caches these translations. In the case where they are at least hosted, the name server is often called a &#8220;DNS Server&#8221;. If you gave the host name <code>superuser.com</code> to a DNS server, it would give you an IP back. In our case, that would be something like <code>64.34.119.12</code>.</p>

<p><span id="more-4559"></span></p>

<h2>How does it work?</h2>

<p>The following image by Nirlog.com explains this very well:</p>

<p><img src="http://i.stack.imgur.com/q5s2t.jpg" alt="DNS explained." width="625" /></p>

<h2>Can you give an explicit example?</h2>

<p>Let me give you an example on resolving <code>superuser.com</code> in a non-cached way:</p>

<ul>
<li><p>The name server that I use is <code>192.168.1.1</code>; this is my local router which caches DNS entries. I gave it a Hosts file to reroute malicious domains. Here is an <a href="http://www.mvps.org/winhelp2002/hosts.htm">example</a>, although I am using a different one which I can&#8217;t find anymore. I might update this post later to include it though…</p></li>
<li><p>The router has the name servers 8.8.4.4 and 8.8.8.8 set, known as <a href="http://code.google.com/speed/public-dns/">Google Public DNS</a>.</p></li>
<li><p>Google Public DNS will contact authoritative root name servers (ARN), which are the top of the DNS hierarchy. Then Google DNS will contact the <code>.com</code> name servers, the IP of which it received from the ARNs. After that, Google DNS will contact the DNS server for <code>superuser.com</code>, the IP of which it received from <code>.com</code>.</p></li>
</ul>

<p>A simple run of <a href="http://technet.microsoft.com/en-us/sysinternals/bb897435"><code>whois</code></a> reveals:</p>

<p>NS1.SERVERFAULT.COM
NS2.SERVERFAULT.COM
NS3.SERVERFAULT.COM</p>

<p>The IPs for these name servers are known as they are registered at the <code>.com</code> name server. When you register a new domain, you always have to fill in the DNS servers that you use, along with their IP.</p>

<ul>
<li>Google DNS will contact the DNS servers of <code>superuser.com</code> to find the IP of <code>superuser.com</code>, after which we finally get the IP I mentioned above:</li>
</ul>

<p>nslookup superuser.com NS1.SERVERFAULT.COM
Server: NS1.SERVERFAULT.COM
Address: 64.34.119.33</p>

<p>Name: superuser.com
Address: 64.34.119.12</p>

<h2>Where can I find more information on DNS?</h2>

<p>I would suggest you to read through <a href="http://en.wikipedia.org/wiki/Domain_Name_System">Domain Name System</a> and <a href="http://en.wikipedia.org/wiki/Name_server">Name Servers</a> for more details.</p>

<p>The name server terms are also used in different contexts, <a href="http://superuser.com/questions/320042/are-domain-name-server-and-name-server-the-same-thing/320171#320171">read Spiff&#8217;s answer for more</a>.</p>

<h2>So, as there is more than one DNS server, can I pick a different one?</h2>

<p>It is a common misconception that an ISP that is closer to you is always faster and more secure: A short distance does not make up speed on its own nor does it make up security. Compare using the old single network cables out of metal to the newer multiple glass fibre cables systems, used in connections like <a href="http://www.cablelabs.com/news/pr/2006/06_pr_docsis30_080706.html">EuroDOCSIS 3.0</a>.</p>

<p>Other than propagation delay, you also have a processing delay on the server; I&#8217;m pretty sure that the DNS server at an ISP is less powerful to a DNS server hosted by Google, hence it is completely possible or a server that&#8217;s at a much greater distance will actually be faster than your ISP&#8217;s DNS server.</p>

<p>Hosting your DNS router/server yourself might be the fastest, though it wouldn&#8217;t have all the DNS records stored, which would make it not usable to surf the internet!</p>

<hr />

<p><a href="https://code.google.com/p/namebench/">namebench</a> by Google can help you pick out a better DNS server:</p>

<blockquote>Are you a power-user with 5 minutes to spare? Do you want a faster internet experience?

Try out namebench. It hunts down the fastest DNS servers available for your computer to use. namebench runs a fair and thorough benchmark using your web browser history, tcpdump output, or standardized datasets in order to provide an individualized recommendation. namebench is completely free and does not modify your system in any way. This project began as a 20% project at Google.

namebench runs on Mac OS X, Windows, and UNIX, and is available with a graphical user interface as well as a command-line interface.</blockquote>

<p>Here is the most important screen you will see when using namebench:</p>

<p><img src="http://i.stack.imgur.com/JHS3T.jpg" alt="" width="625" /></p>

<p>See <a href="https://code.google.com/p/namebench/">their website</a> for more screens. There is also a command line version available.</p>

<p>As an alternative, there is also <a href="http://www.grc.com/dns/benchmark.htm">DNS-Benchmark by GRC</a>.</p>

<p>Caution though, it could be that DNS servers result in <a href="http://superuser.com/a/387178/9666">slower browser experience</a> <em>in some cases</em>, but as I haven&#8217;t seen scientific proof on that, I would take that with a grain of salt. Many people have used more popular DNS servers like Google Public DNS and OpenDNS and haven&#8217;t had a problem with it. They are extremely fast and secure and I don&#8217;t notice any negative speed differences when surfing myself (with Google DNS).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.superuser.com/2012/02/16/what-is-dns-and-which-server-do-i-choose/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What Browser are Super Users using and why?</title>
		<link>http://blog.superuser.com/2012/02/13/a-poll-on-web-browser-shares/</link>
		<comments>http://blog.superuser.com/2012/02/13/a-poll-on-web-browser-shares/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 19:00:58 +0000</pubDate>
		<dc:creator>daviesgeek</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[operating-system]]></category>
		<category><![CDATA[poll]]></category>
		<category><![CDATA[survey]]></category>

		<guid isPermaLink="false">http://blog.superuser.com/?p=4145</guid>
		<description><![CDATA[Out of curiosity over a question I saw on Ask Different, I created a poll on web browsers for you. My main goal is to find out why people use one browser over another. Is it actually better, or do you just use it because it&#8217;s the default browser? The survey is for users of [...]]]></description>
			<content:encoded><![CDATA[<p>Out of curiosity over a question I saw on Ask Different, I created a poll on web browsers for you. My main goal is to find out <em>why</em> people use one browser over another. Is it actually better, or do you just use it because it&#8217;s the default browser? The survey is for users of <strong>all</strong> OSes, including iOS and Android. We will come back in a couple of weeks to post the results from the survey.</p>

<p><!-- If there are any problems, you can email me at websharessurvey [at] gmail [dot] com. --> Please feel free to take the survey multiple times if you regularly use multiple operating systems. You can visit my survey on Google Docs <a title="Click here to go to my poll in Google Docs." href="https://docs.google.com/spreadsheet/viewform?hl=en_US&amp;formkey=dG1mamVSemFaNUFZV0ZtUlNvLTg3WlE6MQ#gid=0">here.</a></p>

<p>You can take a look at the final results in <a title="Go to the final results in a Google Docs spreadsheet." href="https://docs.google.com/spreadsheet/ccc?key=0AuOdXAaH4479dG1mamVSemFaNUFZV0ZtUlNvLTg3WlE&amp;hl=en_US">this Google Docs spreadsheet.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.superuser.com/2012/02/13/a-poll-on-web-browser-shares/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>WTFriday: http://2915189091</title>
		<link>http://blog.superuser.com/2012/02/10/wtfriday-http2915189091/</link>
		<comments>http://blog.superuser.com/2012/02/10/wtfriday-http2915189091/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 19:00:10 +0000</pubDate>
		<dc:creator>Tom Wijsman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.superuser.com/?p=4587</guid>
		<description><![CDATA[Have you ever heard of a link like http://2915189091? Don&#8217;t worry, not a shock site&#8230; While this does not always work in every browser (eg. some versions of Firefox), it does work in most browsers like MSIE and Google Chrome. It really depends on the implementation of how the URL is parsed, Firefox seems to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Have you ever heard of a link like <a href="http://2915189091">http://2915189091</a>?</strong> <em>Don&#8217;t worry, not a shock site&#8230;</em></p>

<p>While this does not always work in every browser (eg. some versions of Firefox), it does work in most browsers like MSIE and Google Chrome. It really depends on the implementation of how the URL is parsed, Firefox seems to not go beyond our usual ways to type a URL.</p>

<p>This is all about how the URL is stored. Many of you know that you can also access Google through their IP, eg. <a href="http://173.194.65.99">http://173.194.65.99</a>. Now let&#8217;s see how much data storage that IP requires. As one character is 1 byte for ASCII, it takes 13 bytes to store the IP address. Or with Unicode (UTF-16) you will need the double, 26 bytes. Another way to store the IP is by taking each number and storing that apart, resulting in unsigned octets from 0 to 255 which each take a single byte, so that totals out at 4 bytes.</p>

<p><span id="more-4587"></span></p>

<p>Now, another thing one can do to the storage of an IP address is not having our program read these four apart and use a function to convert them to and from the different data types. This is why sometimes programmers use the long integer format (which is also 4 bytes) such that they can access the IP by accessing a single variable. This ranges from 0 to 4,294,967,295; which actually means that there are only 4,294,967,296 IPs available in IPv4. Internally, the bits of the four integers are shifted so that they don&#8217;t overlap and fit in a long integer.</p>

<p align="center"><code>unsigned long ipAddr = ( a &lt;&lt; 24 ) | ( b &lt;&lt; 16 ) | ( c &lt;&lt; 8 ) | d;</code></p>

<p>So, those programmers that don&#8217;t waste lots of space by storing the IPs by strings have two alternative ways to store them in integer formats. And that&#8217;s why some browsers are also capable of interpreting the combined long integer format. So now you know what&#8217;s really happening under the hood if you ever come across such a weird link again&#8230;</p>

<p><strong>But, how does one make such a link?</strong></p>

<p>Easy, you can find Long IP converters online like <a href="http://www.elfqrin.com/LongIP.html">Elf Qrin&#8217;s Long IP Converter</a> which basically call one of these conversion functions for you. As I mentioned before this only does apply to the IP address, so if a hosting hosts multiple sites on an IP address (or doesn&#8217;t configure the IP address to respond) then it might not work fine. This is also why for example the IP of YouTube will respond with the website of Google&#8230;</p>

<p><strong>We want you for WTFriday!</strong></p>

<p>If you are interested in writing a blog post like this one for your community to read, then <a href="http://blog.superuser.com/2012/02/09/are-you-interested-in-writing-for-our-blog/">check this out</a>. It doesn&#8217;t have to be as informative as this one, just about that strange WTF that has been buggering you lately; why it occured and how you resolved it, if possible.</p>

<p><a href="http://blog.superuser.com/2012/02/09/are-you-interested-in-writing-for-our-blog/"><img src="http://i.stack.imgur.com/CP8Qz.png" alt="" width="200" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.superuser.com/2012/02/10/wtfriday-http2915189091/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Are you interested in writing Blog Posts?</title>
		<link>http://blog.superuser.com/2012/02/09/are-you-interested-in-writing-for-our-blog/</link>
		<comments>http://blog.superuser.com/2012/02/09/are-you-interested-in-writing-for-our-blog/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 19:00:13 +0000</pubDate>
		<dc:creator>Tom Wijsman</dc:creator>
				<category><![CDATA[Super User]]></category>

		<guid isPermaLink="false">http://blog.superuser.com/?p=3639</guid>
		<description><![CDATA[The purpose of the Super User Community Blog is to highlight what you want to see. We are always excited to bring new writers and editors to the Super User Community Blog; so, if you are interested in contributing, please let us know! There are various ways in which you can contribute — ranging from [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><img src="http://i.stack.imgur.com/mHpsm.png" alt="" width="160" /></p>

<p><strong>The purpose of the Super User Community Blog is to highlight what <em>you</em> want to see.</strong></p>

<p>We are always excited to bring new writers and editors to the Super User Community Blog; so, if you are interested in contributing, please <a href="http://chat.stackexchange.com/rooms/356/super-user-blog-editor-room">let us know</a>! There are various ways in which you can contribute — ranging from your own stories to product reviews, tips and beyond. Don&#8217;t be afraid that you don&#8217;t come up with an idea because we already have some ready for you, but you are always welcome to share your own ideas…</p>

<p><strong>Writing a blog post is simple:</strong></p>

<ol>
    <li>Register at <a href="https://trello.com/">Trello</a> and leave us a message in the <a href="http://chat.stackexchange.com/rooms/356/super-user-blog-editor-room">Super User Blog Editor Room</a> with your Trello user name, we&#8217;ll set up access for you so that you can see our ideas and share your progress. Consider bookmarking both links for your convenience.<br /><br /></li>
    <li>You can <a href="https://docs.google.com/">start writing your post</a> while you wait, we can later import it from any format into the WordPress Dashboard. Keep us up to date on your progress, so we can give you access to our WordPress Dashboard after you have shown a first draft, as well as proof-read and schedule your final version.<br /><br /></li>
    <li>The Blog Editor Room and Trello are our main communication points about the blog, feel free to share your progress in either. Remember that we are here to help you…<br /><br /></li>
    <li>Have fun! Enjoy expressing yourself, as well as being part of the Super User Community.</li>
</ol>

<p><strong>From idea to draft to finished post.</strong></p>

<p>Blog posts mainly develop out of ideas and questions, for some you might have to do some research. From that point on you can think up the different paragraphs you will write in a draft, then it&#8217;s a matter of writing and rewriting them. Just writing one paragraph after another might not cut it for some…</p>

<p>Add some nice pictures for those that are easily distracted, get at least two other editors to proof read the blog post and we&#8217;ll schedule it for you. Please note that we don&#8217;t publish blog posts immediately, but intend to spread out the posts such that we regularly have new content and they are published at an optimal time. We&#8217;ll do this for you.</p>

<p><img src="http://i.stack.imgur.com/s4D6K.jpg" alt="" width="360" height="240" /></p>

<p>Don&#8217;t have a <a href="http://www.codinghorror.com/blog/2006/02/fear-of-writing.html">fear of writing</a>, you know you have been <a href="http://www.codinghorror.com/blog/2011/02/how-to-write-without-writing.html">doing it before</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.superuser.com/2012/02/09/are-you-interested-in-writing-for-our-blog/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  blog.superuser.com/feed/ ) in 0.80000 seconds, on May 16th, 2012 at 11:39 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 16th, 2012 at 11:39 pm UTC -->
