Sunday, 8 April 2012

You do not have permission to access [drive]. Contact your network administrator to request access

For example: "You do not have permission to access \\my-pc\k. Contact your network administrator to request access"

When this error results from trying to access a PC's shared drive (not just a sub-directory but the entire shared drive) from another client PC on a (wireless) network, it could be that in addition to setting sharing permissions on the drive share, you have to remember to also set security access permissions for the drive itself :
  • Right-click on the drive, 
  • Click properties,
  • On the 'Security' tab (NOT 'Sharing' tab), click Edit,
  • On Security dialogue, click Add,
  • Type Everyone (click Check Names) and click OK,
  • Apply the necessary permissions (like Full Control, Read, Modify, etc),
  • Click OK (2x)

Thursday, 5 April 2012

View Background Image in Opera/Chrome/IE with a javascript bookmarklet

Create a new book mark (preferably on your bookmarks bar or) wherever you choose within easy access, and then select and paste in all of this code as the URL/address:

javascript:var backup=document.body.onclick;void(document.body.onclick=function(event){var bodyStyle=window.getComputedStyle(document.body,null).getPropertyValue('background-image');var bgStyle=window.getComputedStyle(event.target,null).getPropertyValue('background-image');if(bgStyle!='none')window.open(bgStyle.replace(/url\("?/,'').replace(/"?\)$/,''));else if(bodyStyle!='none')window.open(bodyStyle.replace(/url\("?/,'').replace(/"?\)$/,''));document.body.onclick=backup;backup=undefined;});

To view any web page's background image, first click on the bookmark then click on the background image you wish to view.

It should work, amazingly well, if the page does have a background image!

Got it set up in IE9, Chrome18, Opera11, no probs

---

These steps are not necessary in Mozilla's Firefox browser, which already has an in-built "View Background Image" option on its right-click context menu.

But this just saves the hassle of having to copy a URL from Chrome/Opera/IE into Firefox just to view a background image.

Tip of the hat to MyOpera for the tip.