Skip to main content

Posts

Showing posts with the label Windows

Simple HTTP Redirect with Querystring in IIS7

HTTP Redirect seems simple enough. Always was in IIS6 and in IIS7 there's even a button labeled HTTP Redirect that promises relative redirects.  It looks like it'll be as easy Apache finally.  That is until you try to redirect a querystring.  Then everything bombs. Turns out it still is relatively easy, except you have to know that Microsoft changed $S$Q to $V$Q. Why? $Ss and $Gs I suspect. And How. In our example we'll redirect all pages under http://olddomain.com/content to http://mydomain.com/content. Pick the virtual directory you want to redirect. e.g. http://olddomain.com/content Click HTTP Redirect under IIS in the IIS management console. In the HTTP Redirect Dialog: Check Redirect requests to this destination Enter your new path ending with $V$Q.  e.g. http://mydomain.com$V$Q Counter-intuitively check Redirect all request to exact destination (instead of relative destination) Choose the appropriate Status Code (Permanent or Temp...

When 1+2+3 <> 3+2+1 = Stretching Vista Desktops

I've had the same background on my machine for almost a year now.  A south atlas (south up), pacific-centered, night image of our lovely planet that wonderfully confused those that hovered over my shoulder and was an appropriate homage to my cartography profession.  It was time for a change and it seemed simple enough.  Found a good image and right clicked, set as desktop background.  Suddenly my image wasn't stretched across two screens but instead duplicated on each screen.  Even switching back to my old image produced the same result.  No longer was South America inverted on the left screen and Africa in the right.  Now the image was small and duplicated.  What the heck? Way too many google searches later I finally learned that right-clicking on the image and then setting properties in Vista has different results than first opening desktop properties and then browsing to the image and setting the properties. 

Search Results to Text File in Windows Vista

Do a standard search in Windows Explorer.   In this case I want .mxd's modified after March 22, 2009 so in the search box enter “*.mxd date:>3/22/2009” When search is done highlight all results (CTRL-A) Hold down SHIFT, hover over results and right-click choosing “Copy as Path” Paste results in Notepad Source: http://www.winhelponline.com/blog/print-search-results-in-windows-vista/

Making Macro Security Warnings Disappear

You know those annoying Microsoft Office Macro Security Warnings? There is a way to make them disappear, at least for you. Here's the Steps. Find the Microsoft Office Tools folder generally under Start > All Programs > Microsoft Office > Microsoft Office Tools Select Digital Certificate for VBA Projects (if you don't have such a link see this article ) Fill out the form and name it "Whatever makes you happy" Open your Microsoft Office Application and Open Visual Basic Editor Navigate to the Macro that is causing you Warnings Go to Tools > Digital Signature and click Choose Highlight the Certificate you just created, e.g. "Whatever makes you happy" Restart the Microsoft Office Application This time when you get the security warning choose, "Always Trust this Publisher" No more messages!

Serving up KML in IIS 6

To serve up KML in IIS 6, you have to add a few MIME Types. The easiest way to do this is to apply new MIME Type settings globally by changing the properties on your server's "Web Sites" folder in IIS. Google Earth reads KML and KMZ files. The MIME type for KML files is * application/vnd.google-earth.kml+xml The MIME type for KMZ files is * application/vnd.google-earth.kmz Source: Google KML Tutorial To add a MIME type to a Web site or directory 1. In IIS Manager, right-click the Web site or Web site directory for which you want to add a MIME type, and click Properties. 2. Click the HTTP Headers tab. 3. Click MIME Types. 4. Click New. 5. In the Extension box, type the file name extension. 6. In the MIME type box, type a valid MIME type. If you define a MIME type that has already been defined at a higher level, you are prompted to select the level where the MIME type should reside. To create a MIME type for an undefined MIME type, type an asterisk (*) in the Ext...

Auto Format (and Color) Outlook Appointments

A few years ago I got turned on to the idea of indexing your life by color. In a quick glance your mind can comprehend really complex patterns. By coloring entries in my calendar I am able to tell immediately if I am available or if a future appointment conflicts with a work meeting. There are a number of ways to set this up. Outlook allows you to add a label to every appointment. However this is an Outlook specific feature and I sync my calendar across Outlook, Yahoo! and iCalendar. The later two don't even have labels. Besides, calendars should be simple. Complexity only hinders usability, so I prefer an automated solution. How to color appointments in Outlook automatically: In Calendar, right-click the calendar grid, and then click Automatic Formatting on the shortcut menu. Click Add, and then type a name for the rule. In the Label list, click a color. Click Condition to specify the conditions under which the color will be applied. Note: If you manually assign a color to a...

Learning the Hard Way: Installing Drupal on XP

Open Source on Closed Source. Probably a bad idea from the start. Installing Drupal hearkened back to the old days of computing. Way too much jargon and far too little push-a-button-and-it-works. But I'm sold on the Drupal. If I wasn't, I wouldn't have made it through the past two hours trying to install it (I'm tempted to say her here, which suggests a certain love-hate relationship is already evolving). Drupal installations should be straight forward. Lullbot manages the whole install in one five minute video that I would highly recommend. My installation took significantly longer. LESSONS LEARNED GOTCHA #1 MySQL - At least in my instance the directions for setting permissions given in INSTALL.mySQL.txt were not sufficient to allow the database creation scripts to run. Command provided in INSTALL.mysql.txt: GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON databasename.* TO 'username'@'localh...

Printing Folder Contents

Sometimes the old ways were a lot simpler. In DOS and UNIX printing a file directory was as simple as "DIR". And if you wanted to be really fancy you could add a couple characters to switch the listing format. DIR command line switches: /B Uses bare format (no heading information or summary) /L Forces lowercase display of file names /O List by files in sorted order: N by name (alphabetical) S by size (smallest first) E by extension (alphabetical) D by date/time (oldest first) G group directories first - using this prefix reverses the sort order /P Pauses after each screenful of information /S Lists files in the specified directory and all subdirectories /W Uses wide list format /X Displays 8.3 versions of long file names And if you wanted to put this list in a text file to save, copy, paste or print it was as simple as: dir /b /s > DirectoryListing.txt Somewhere in the ease of use of folders and drag and drop what was simple became hard. In DOS and UNIX this was all eas...