Making sure your downloads complete on Vista

Vista has a number of new features that optimize the way that your computer functions – especially in the area of power consumption. The new power plans, sleep mode and more intelligent management of hardware resources are some of these. However, there is one small problem that comes with this – if you leave your computer to perform a download, in many cases it just doesn’t complete since Vista automatically puts the computer to sleep after a period of inactivity. This is especially true if you’re downloading on a laptop and on battery.

More...
Tags: ,
Categories: Tips | Windows Vista

1 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed

Paste-&-Go with Internet Explorer

Recently a fellow MVP, Omi, created a Firefox 3.0 extension called Paste-&-Go which allows users to copy a URL and paste it into the browser and have it open up automatically. You can download this excellent extension for Firefox here.

However, quite a few people asked for something like this in Internet Explorer. and I was surprised that many people are not really aware of the cool extensibility features of Internet Explorer called IE Browser Extensions. I had written an article for PCQuest quite a while back and also give a few “extensions” for IE for download at its forums. You can download a small set from here.

Sadly this above set does not really support pasting URLs from an external source – such as Notepad. Also, the Firefox extension only allows a single URL, while I wanted to do it for multiple URLs and open all of them up instantly. I posted on the MVP alias that I’d probably get around to writing the code during the upcoming Dussera holidays.

But I did manage getting 5 minutes free (while my son watched Disney’s Chip-‘n’-Dale) and that’s basically how much time it took to go ahead and create a browser extension for Internet Explorer that does the above. You can set this up yourself too on Internet Explorer 5 or above (including the IE8 Beta 2).

  • Open Notepad and paste the following code into it.Save the file as as HTML file, say, c:\Windows\Web\Paste-n-Go.htm
<HTML>
<SCRIPT LANGUAGE="JavaScript" defer>
clip = window.clipboardData.getData("Text"); 
UrlArray = clip.split("\n");
for(i=0; i<=UrlArray.length; i++)
    window.open(UrlArray[i], "paste"+i);
</SCRIPT>
</HTML>
  • Open Regedit and browse over to HKCU\Software\Microsoft\Internet Explorer\MenuExt
  • Right-click the MenuExt key and select New > Key
  • Rename the newly created key to Paste && Go
  • Double click the (Default) entry on the right pane for this new key and set the value to the location where you saved the file you created in step 1, say, c:\windows\web\Paste-n-Go.htm
  • Right-click the right pane and create a new DWORD (32-bit) value
  • Rename the new key to Contexts and set its value to 1. Your registry should look something like this now.

image

  • Copy a bunch of URLs from Notepad or another browser window

image

  • Open a new Internet Explorer window and right-click anywhere in the content area and pick Paste & Go from the context menu

image

  • This will open the URLs you copied in a window each – quite handy when trying copy a bunch of URLs someone has linked to in a forum post or a list that you have

Currently this doesn’t open the URLs in different tabs – haven’t figured that one out yet. If you know how, do leave me a note and I’ll make the required change.


Tags: , ,
Categories: Development | Tips

2 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed

Saving Changes in Table Design in SQL Server 2008

One of the new things that happens in SQL Server 2008 is that it prevents saving table structure changes that require the table to be dropped and re-created. While this is a great feature to prevent accidents from occurring, on a developer machine it can be quite frustrating. This is the dialog you get when trying to make changes in a table design.

image

Unfortunately, this dialog doesn’t tell you where to turn this feature off! Clicking on the small “?” on the title bar does get you to a help page that tells you how to do it.

Anyway, the place to do it is Tools > Options > Designers > Table and Database Designers > Prevent saving changes that require table re-creation. Turn this option off and you will be able to save the tables again.

image


Tags: , ,
Categories: SQL Server | Tips | Development

0 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed

This blog is WebSliced!

I've just enabled a WebSlice on this blog. You can now view the latest post on this blog by subscribing to the "Vinod's Latest Post" WebSlice if you have Internet Explorer 8 Beta 2. This can be done in two ways.

  1. Hover your mouse over the first blog post till you see a green rectangle and an icon. Click on the image icon to add the WebSlice to your favorites bar.
  2. Click on the image icon on the toolbar to add it.

Now whenever the blog is updated with a new post, you will see the subscription turn bold. Click on it to see a small preview window with the entire post. You can also click to view the entire page in a normal window - say to read the rest of a long post or to comment on it.

To create a new WebSlice for your site, you can follow these tutorials: Shekhar's Blog Post, Subscribing to WebSlices (MSDN).


Tags: ,
Categories: Development | Internet | Tips

0 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed

HMC provisioning issue: Adding machine into default OAB CAS Pool in Exchange 2007

If you are installing HMC 4.5 and have reached the point of provisioning where you need to add the server name to the Exchange 2007 default OAB CAS pool, you need to provision the AddOABCAS.xml file.

However as the documentation says, you might receive an error even if you have followed the prior steps correctly:

Note: 
If you run into an error message indicating that EXCASOAB01 is not configured with a distribution point, use the Exchange Management Console to change the internal URL of the OAB distribution to a non-existing URL (for example, http://excas01.fabrikam.com/OAB), and make a copy of the original URL. Then, repeat the above procedure to add EXCASOAB01 into the default OAB CAS pool. After the addition is complete, change the internal URL of the OAB distribution back to the original.

There is a simple way of doing this from the Exchange Management Shell (aka PowerShell). Simply type the lines below to save the current URL and change it:

$oldUrl = Get-OABVirtualDirectory
echo $oldUrl.InternalUrl
Get-OabVirtualDirectory | Set-OabVirtualDirectory -InternalUrl <NEW URL HERE>

Go back to the Command Shell and run the provtest command to provision the AddOABCAS.xml file again. This time it should work. Now simply set the old URL back again in the Management Shell like this

Get-OabVirtualDirectory | Set-OabVirtualDirectory 
-InternalUrl $oldUrl.InternalUrl

Hope this helps


Tags: , , ,
Categories: Internet | Microsoft | Tips

2 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed

Mass Downloading Files From WSS

image

It is sometimes a pain to download multiple files from a SharePoint document library - especially when there are a lot of them. Many times the Explorer view doesn't work as it should and therefore dragging and dropping the folders you need are not possible. WebDAV may not be working so you can't get connected that way either. 

Which is where a nice, free solution comes into play. I've been a great proponent and user of the free WGET - the open source, command line web downloader. WGet for Windows is also available and simply extracting the files to a folder and adding it to the path allows you to start working with it. All you need to do to get the files off of a folder in a Document Library is give the following command:

wget -c -r -l1 --http-user=[username] --http-password=[password] --accept=aspx,docx,pptx,xlsx http://[Sharepoint URL]/[Document Library]/[Folder]
The options are:
  • r: For recursive
  • l1: For downloading only upto 1 level
  • http-user and http-password: The username and password to login to the Sharepoint site
  • accept: The comma separated list of file extensions that will be downloaded. ASPX is required since all the pages in SharePoint are of this extension

When you do this, all the files in the folder you pointed to will be downloaded into the current directory. You will need to repeat this for each directory in the top level Document Library you wish to download. However, this is a much faster and easier way than downloading each file once at a time.

 

Tags: ,
Categories: Tips

0 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed