Archive for the 'Windows' CategoryPage 2 of 3

Windows x64 and iTunes 6.0.5

This is what I get when I try to install iTunes 6.0.5 on Win x64. /me prays this was an accident.

Installer error message

Update 9/15/2006:
The new iTunes 7 install seems to work just fine on x64. Although I did see a debug exception in msiexec, it didn’t seem to make any difference.

Console Resize Utility for Windows

For you command-line junkies, I present size.exe. You can use it to resize a console window programmatically. Here’s an example:

  C:\scripts >type vimdiff.cmd
  @echo off
  size 60 120
  vim -d %*
  size 60 80

I wrote this in C++ using Boost. If you’re interested, the source is available here.

Update 4/8/2008:
Turns out that Windows actually does have built-in support for this, it’s just hidden in a dusty corner as usual. Good thing, too, because my program didn’t work worth a damn. Here’s the official method:

   mode 120,60

(Credit to Sahil Malik)

A Straight and Narrow %PATH%

Although Windows has supported fancy filenames nearly forever, I find that they can still cause problems. Of particular trouble on the x64 OS are PATH variables which contain “C:\Program Files (x86)”. The parenthesis can cause scripts to die with error messages like “\Microsoft was unexpected at this time.”

I found a cute hack on the newsgroups that helps deal with this. Below is a script which will sanitize a PATH variable, cleaning up all that troublesome stuff.


@echo off
setlocal enabledelayedexpansion
set FIXED=
FOR %%I IN ("%PATH:;=" "%") do (
    set FIXED=!FIXED!%%~fsI;
)
for %%D in (a) do (
    endlocal
    set PATH=%FIXED%
)

Vista WiFi is Buggy

Every so often Vista decides that I have “Local Connectivity Only”, which is a very odd way of describing the situation where DHCP can assign me an IP address, but I can’t even ping my gateway.

It eventually just starts working.

Update:
Problem solved! I discovered that the problem correlated very highly with unplugging my laptop from the power outlet. It looks like Vista’s default power saving policy goes a little too far. In the advanced power settings menu I have now selected “low” power saving for my WiFi device, rather than the overzealous “medium”.

Vista Impressions

I’ve been self-hosting Vista Beta 2 on my notebook for a week. The overall verdict is: I like it. Here are some details:

The good:

  • No banged-out devices. Between the “in-box” stuff and Windows Update, I was good to go. I actually had more trouble with WinXP x64, a shipped product.
  • I can finally suspend/resume sucessfully. I hope this is the norm. I see too many half-closed laptops being toted around building 41
  • The boot menu has been redesigned and it now includes a memory tester. I can finally throw away my MemTest86+ floppy.
  • The sound control panel is much improved. I get per-app volume sliders, and only for the apps that are actually running. Bless you, Larry Osterman.
  • I don’t want to jinx myself, but the date popup is sufficiently changed as to suggest it might work reliably now. It has yet to fail me.
  • The new fonts are quite well done, and look especially nice with ClearType (on by default). My favorites are Segoe (the default sans-serif UI font) and Consolas (fixed-width for programming and cmd.exe, available here).

The Bad:

  • Windows needs my permission to continue. A lot. I worry that I’ll eventually approve something evil out of habit
  • I am desperately seeking the windows equivalent of sudo. If anyone in the LUA/UAC team is reading, I implore you: please add this functionality to runas.
  • I had hoped for an in-box MPEG2 decoder. No dice. DVD playback still requires additional software. Maybe this will change by RTM?
  • Aero Glass: frivilous eye candy or productivity boon? I’d like to make this judgment, but I don’t have WDDM graphics.
  • The sidebar and gadgets are a big letdown. Apple did it right, by placing the widets in a layer that spans the desktop and can be raised with a quick keypress. Why are the Vista gadgets confined to the side of my screen? I guess Microsoft’s corporate ego is too fragile to tolerate wholesale imitation of a good idea.

Hey Microsoft, Wanna Sell Me Vista?

I won’t pay for Aero Glass. I will however, pay for a systray with a clock that reliably shows me the date.

No Date

Sometimes, it seems I just can’t hover long enough to appease the date gods. Other days, they taunt me by placing the tooltip behind the systray, partially obscured, so I can’t actually read it.

Anyone know what day it is?

Console: A Better CMD.EXE

I just rediscovered the Console project on SourceForge.NET. Console is a replacement for the stock CMD.EXE shell that comes with Windows. Turns out a lot of progress has been made since last I looked. It’s amazing. It fixes nearly every annoyance I’ve ever had with CMD.EXE:

  • User configurable copy and paste hot keys.
  • Optional X-style copy-on-select
  • Selecting line-wrapped lines works almost exactly how I’d expect
  • Tabs (tab names can be derived from the title command)
  • Desktop docking / snap to edges
  • Transparency / custom background images

Some things I’d like to see added:

  • Configurable hot keys for scrolling, like Shift-PGUP and Shift-PGDN
  • Command-line options for drop-in replacement of CMD.EXE (/k would be nice, for example)
  • A way, from the command line, to launch a process in a new tab of the current window
  • Optional rectangular select, perhaps with a hotkey

If you use the command line on Windows, you want this. I can’t recommend it highly enough.

Internet Explorer 7 “Dogfooding”

I’ve installed IE7 and I’m starting to mess around with it. For your bulletized-stream-of-consciousness pleasure:

  • The new menu bars are going to take some getting used to
  • It seems like pages render more quickly
  • Finally, tabs
  • Improperly renders my blog (bulleted-lists have no bullets)
  • Crashed while trying to load Google Reader
  • Has Opera-style zoom (images are resized along with text)
  • Has some new anti-phishing stuff
  • Has an Expose-like “quick tabs” feature
  • RSS is supported

Windows on Mac Hardware

Apple will not prevent Windows from running on the new Intel-based Macs, according to MSNBC.

Update: Maybe we jumped the gun on that one.

NX-Bit Protects Against WMF Vuln

In this interview, Ilfak Guilfanov (author of the IDA Pro disassembler and the unofficial WMF patch) indicates that x86 systems with a per-page no-execute flag were protected from the recent WMF vulnerability.

If this is true, I hope the AMD marketing department issues a press release. This was possibly the most dangerous security threat all year, yet anyone who bought an AMD system in the past year was completely safe.

The first x86 processor with a per-page no-execute flag was the AMD Opteron. We called it the NX-Bit (and later, EVP). Subsequently, Intel implemented the execute-disable or XD-Bit (which is, of course, the exact same thing). Eventually Microsoft stepped in and further complicated clarified things by choosing the neutral moniker DEP (data execution prevention).




Creative Commons Attribution-NonCommercial 3.0 United States
Creative Commons Attribution-NonCommercial 3.0 United States