Items filtered by date: December 2015

Saturday, 04 September 2010 19:48

How to stop auto import of images by Picasa

Whenever I put my memory card in the card reader, it would open Picasa and start to import, pictures and videos. I organize my photos in my E:/ partition, and do not want Picasa to import anything unless I specifically tell it to.


To stop Picasa from uploading all your pictures from the card, go to Windows Explorer, right click the card and select Properties. Then select the AutoPlay tab. Then, in the drop down box, select "Mixed content". Then click "Open folders to view files". [Apply] and [ OK ]. Now when you plug in the card in the card reader it'll only open a  Windows Explorer window so you can view the files.

Published in Applications

Internet Explorer was not able to open this Internet site can happen when you try and download a PDF from a HMRC website. It seems to be caused becaus ethe PDF needs to be encrypted.


If you use Microsoft Internet Explorer you may need to adjust your settings to successfully download the software.

In Internet Explorer for Windows:

(1) go to Tools - Internet Options

(2) Advanced tab

(3) under Security, ensure the ‘Do not save encrypted pages to disk’ is checked

(4) click Ok

Published in Microsoft Other

Cause

The add-in was installed under another user account and the OfficeLive registry subkey necessary for that checkbox entry to be logged in the registry is not created for other users. You need to manually create the OfficeLive subkey under HKEY_CURRENT_USER\Software\Microsoft for any user on that computer that wants to suppress that add-in by checking the box. After the OfficeLive subkey is created the appropriate registry entry FirstRunDontShow will be created once Word, Excel, and PowerPoint are started and if the checkbox is selected it will no longer show on subsequent launches of those applications.

The issue can be resolved by adding a base registry key named OfficeLive under the HKEY_CURRENT_USER\Software\Microsoft subkey, once that key has been created the next time you start Word it should create two new DWORD entries (FirstRunCredsDeleted and FirstRunDontShow), both set to 1.


Solution

Install Office Live Update 1.4

http://www.microsoft.com/downloads/details.aspx?FamilyId=36bac9da-1ee4-40df-b06c-a327269f2b63&displaylang=en

OR Registry FIX

Steps:

WARNING : If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

1. Logged in as the user that has the problem, click on Start, clcik Run, type regedit, click OK.

2. On the left pane expand HKEY_CURRENT_USER, expand Software, select Microsoft.

3. From the Edit menu point to New and select Key.

4. Type OfficeLive and press the Enter key.

5. Close Registry Editor.

6. Start Word, Excel, or PowerPoint, you'll get the prompt, make sure 'Do not show me this message again' is checked, click Continue.

7. Close the application (Word, Excel, or PowerPoint), the registry DWORD values should be created under OfficeLive for that user.

Published in Microsoft Office
Saturday, 04 September 2010 19:07

Why is LPR Byte Counting Enabled required?

Question: RPM does not receive print jobs from the Windows Standard TCP/IP Port unless the LPR Byte Counting Enabled option is selected. What is "LPR byte counting" and why must it be selected?

Answer: The simple answer is this: if Microsoft implemented their LPR to send zero as the number of bytes, then RPM would be able to handle that correctly. As it is Microsoft sends an impossibly huge number, instead of the actual size of the file in bytes.

The LPR/LPD protocol allows for zero as the file size though sending the actual size is typical. There are a few LPR clients in the world which handle this correctly, and RPM works as you would expect in either case.

The longer answer follows.

"LPR byte counting" forces Windows to count the number of bytes in the file and send this value in the Receive data file subcommand. To understand why this does not work, you must first understand the steps in sending a print job using the LPR/LPD protocol.

  1. The LPR client sends the Receive a printer job command.
  2. RPM replies with an acknowledgment (ACK).
  3. When the LPR client receives the ACK, it can proceed. The client then sends the Receive control file subcommand.
  4. When the LPR client receives an ACK from RPM, the control file is sent. RPM will then respond with another ACK.
  5. The LPR client now sends the Receive data file subcommand. The size must either be set to the actual size of the data file, or set to 0. This is one area where Microsoft does not follow the protocol specifications.
  6. When the client receives the ACK, it will send the data file. Once the data file has completed, the connection is closed by both parties.

When LPR byte counting enabled is turned off, Microsoft sets the <file size> to a size much larger than the actual size. It is set neither to 0 nor the actual file size. When RPM receives a file much smaller than the specified file size, RPM believes that the entire file was not sent, deletes the "incomplete" file, and waits for the file to be sent again.

RFC1179 states that you may set the size of the data file to 0, however, it does not discuss how the LPD Server should handle this "unknown length file". RPM handles the "unknown length file" situation by receiving all data from the request to send the data file until the connection is closed by the LPR client.

RPM can also handle the opposite situation, in which the file is actually 0 bytes. You tell RPM to close the connection after a specified amount of time.

To do this, follow these instructions.

  1. Choose LPD Options from the Options menu.
  2. Select Enable zero length file transfers. 600 seconds is the default amount of time to wait, however, you may raise or lower this value to meet your needs.
Published in Printers
Saturday, 04 September 2010 19:00

Convert mht into html

 

Method 1

  1. use MHTML-Converter, this strips out all the files and dumps them in to a folder. the html it creates is shit.
  2. open the htm file in a web browser, i used internet explorer. select all, not the source, and then paste in to the design page of a fresh html file in adobe Dreamweaver CS3.
  3. All the pictures might need to be re referenced, but should be easy enough.
  4. If using for joomla dont forget you don not need all the header info or body tags etc..

 Nb if you have the word version save as web filtered html

Method 2

You can change the file extension on the file from ".mht" to read ".uue".
You can then open the ".uue" file up in a zip program such as WinZip.

You can then extract one or all the files contained in the renamed .mht file
using the WinZip program interface.

Of course, you will have to change the file extensions on the extracted
files because the extracted .html file will have a .txt file extension when
extracted. For instance, when you are viewing the .uue file in WinZip the
.html file will have the name 0001.txt and will also have that name and
extension when it's extracted. So once it's extracted just change the name
of the file from 0001.txt to myfile.html for example. Likewise, image
files contained in the .uue file will contain extensions such as .001, 002,
etc... and will have to be renamed with thier proper extension once they've
been extracted.

Published in General
Saturday, 04 September 2010 18:42

Cannot delete file - Zero Bytes

I have a file on my computer that will not delete.

  • The file size is 0 bytes.
  • Theproperties security tab says "The requested security information is
    either unavailable or cannot be displayed"
  • The attributes info is "A"
  • I can move the desktop icon around the screen but I cannot trash it by any means found online
  • When I try to throw it in the trash, the error message says "Could not find this item". Under this message it reads "This is no longer located in C:\...\Desktop\Fitzgerald -. Verify the item's location and try again."

Method 1

  • Open a Command Prompt
  • Navigate to the directory where your zero-byte file is
  • Dir to see a list of all the files and folders there, including your mystery file
  • Dir /os to "order" them by size; any zero-byte file should be at the top. (If the list is too long, you can use Dir /o-s to put the zero-byte file at the bottom of the listing.)
  • Dir /x to produce the list with an extra column before the filenames. See if your zero-byte file has a name that includes characters that are not allowed in an 8.3 filename. If so, use that "short" filename with the Del command to delete that file. 

Method 2

  • create a new folder and move everything EXCEPT the zero-balance file to the new folder.
  • Then use the RD (Remove Directory) command with the /s switch to remove that entire directory tree, including all the files and folders left in it
  • there should be only the one file that you want to delete
  • You can now rename your new folder to the original name
Published in Data Recovery
Saturday, 04 September 2010 18:00

increase Outlook 2010 attachment limit

Attachment size exceeds the allowable limit" error when you add a large attachment to an email message in Outlook 2010


Internet email account (POP3, IMAP, HTTP)

To modify the default attachment limit size in Outlook 2010 for an Internet email account, follow these steps:

  1. Exit Outlook.
  2. Start Registry Editor.
  3. Locate and then select one of the following registry subkeys:

    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Preferences
    HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\Outlook\Preferences

    Note Manually create the path in the registry if it does not currently exist.
  4. Add the following registry data under this subkey:

    Value type: DWORD
    Value name: MaximumAttachmentSize
    Value data: An integer that specifies the total maximum allowable attachment size. For example, specify 30720 (Decimal) to configure a 30-MB limit.
    Notes
    • Specify a value of zero (0) if you want to configure no limit for attachments.
    • Specify a value that is less than 20 MB if you want to configure a limit that is less than the default 20 MB.
  5. Exit Registry Editor
  6. Start Outlook.

Original Article Here

Published in Outlook
Monday, 30 August 2010 18:11

How to completely disable Firefox cache

Here’s how to disable FireFox’s browser cache completely.

  1. Fire up FireFox
  2. Type about:config in your address bar
  3. Type ‘cache’ in the search bar, and look for network.http.use-cache, and double click it to set it to false. Double clicking it again will set it to true and re-enable the cache

…and then you’re done.

To forcibly reload a page and all its dependencies, direct from source, ignoring local and proxy caches hold the shift key and hit reload. This applies not only to FireFox but also IE6/7 and Safari (maybe others too). I have a feeling this may be a ratified standard.


This has also been suggested

 

I set browser.cache.disk.enable and browser.cache.memory.enable both to false.

That was all I had to do to disable caching.

Published in Firefox
Monday, 30 August 2010 17:51

Product Key is not valid

Windows Setup gives an error message that the Product Key is not valid (invalid) if you attempt an upgrade or repair Microsoft Windows XP Media Center Edition with Microsoft Windows XP Home Edition or with Microsoft Windows XP Professional.

Published in Windows XP
Saturday, 28 August 2010 00:00

Javascript Input Box Key Restrictors

Programmable Key Restrictor

This script blocks the input of characters by using a Javascript function attached an input box which is called with the event onkeydown="" . This allows me to prevent input issues with end users because they cannot enter the wrong charcters in the first place. This script is standalone but works well with HTML5 input box validation rules.

I wrote this after I could not get any scripts I found online to work reliable across browsers. I also wanted to be able to make it programmable to account for different types of key restriction I wanted to do. I have use the onkeydown="" event because I believe the the onkeypress="" event only handles printable characters.

The following validators are basically the same with different options and can be programmed for any type of character validation you want including special characters. This script is using the new standard of event.key which with a few tweaks is usable across all of the different browsers. event.key outputs the character that is pressed on the keyboard and not some charcode which varies from browser to browser and platform to platform. event.key is the recommended way of getting key presses in browsers.

As you can see I have used feeder functions to supply the event, you do not need to use them you can create your own and the process is very straight forward. Allowed Characters and whether space is allowed. This prevents a lot of duplicate code as the common function is quite long. You could use the function as a stndalone is you remove the feeder functions and replace them with variables as needed.

Function Call in HTML

<input class="olotd5" value="123456" name="zip" type="text" onkeydown="return onlyAlphaNumeric(event);"/>

The Script

/** Key Input Restrictions - Using event.key **/

// Allows Only Letters
function onlyAlpha(e) {
    return keyRestriction(e, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", true);
}

// Allow Only Numbers and Letters
function onlyAlphaNumeric(e) {
    return keyRestriction(e, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", true);
}

// Allow Only Numbers and Letters - Including Comma, Backslash, Minus, Single Quote
function onlyAlphaNumericExtra(e) {
   return keyRestriction(e, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,/-'", true);
}

// Allows Only Numbers
function onlyNumbers(e) {
    return keyRestriction(e, "0123456789", false);
}

// Allows Only Numbers and Period
function onlyNumbersPeriod(e) {
    return keyRestriction(e, "0123456789.", false);
}

// Allow Only Phone Numbers - Including Period, Brackets, Plus, Minus
function onlyPhoneNumber(e) {
    return keyRestriction(e, "0123456789.()-+", true);
}

// Allow Only valid characters for URL
function onlyURL(e) {
   return keyRestriction(e, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~:/?#[]@!$&'()*+,;=`%", false);
}

// Allow Only valid characters for Email
function onlyEmail(e) {
   return keyRestriction(e, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._@", false);
}

// Common Function for Key Input Restriction
function keyRestriction(e, allowedCharacters, spacesAllowed) {    
    
    // Grab the character from the pressed key
    var key = e.key;   
    
    // Are Spaces Allowed?
    if (key === ' ' && spacesAllowed === true)
        return true;
    
    // Are Spaces Allowed (IE fix)
    if (key === 'Spacebar' && spacesAllowed === true)
        return true;
    
    // Control Keys (Backspace, End, Home, Left Arrow, Up Arrow, Right Arrow, Down Arrow, Delete)
    if (key === 'Backspace' || key === 'End' || key === 'Home' || key === 'ArrowLeft' || key === 'ArrowUp' || key === 'ArrowRight' || key === 'ArrowDown' || key === 'Delete')       
        return true;

    // Control Keys (IE and Edge fix)
    if (key === 'Left' || key === 'Up' || key === 'Right' || key === 'Down' || key === 'Del')       
        return true;
    
    // Allowed Characters
    else if (allowedCharacters.indexOf(key) > -1)
        return true;
    else
        return false;
    
}

Notes

  • Control Keys - This is where you can allow keys by using charCodes. This is ideal for special keys and non-printable characters like delete.
  • Allowed Characters - Add any characters you want to be allowed into the group. It is case sensitive.

Tools

Libraries

  • hotkeys - A robust Javascript library for capturing keyboard input and key combinations entered. It has no dependencies.
  • keysight | GitHub - A translator for javascript keyboard events to and from consistent and familiar character and key representations. Take your keydown, keypress, and keyup events and reliably translate them into keyboard keys and characters. Its lightweight at 1.06KB minified and gzipped.

onkeypress vs onkeydown vs onkeyup

These javascript events have different roles and can have different outcomes with different browsers. In newer browsers the behavious seems a lot more standard.

  • onlyAlphaNumeric() does not work in Firefox so you have to use onlyAlphaNumeric(event)
  • onkeypress="" is case sensitive
    • causes a lot of special Keys to return a value of 0. This is very flacky and a known bug.
  • onkeydown="" is case insensitive
  • onKeydown="" has information about the TshiftState and OnKeyPress doesn't, Whether I want to take action for example, if the A key is pressed, depends on whether ssCtrl or ssAlt are combined with it,
  • These codes are used to try and get scripts cross browser compliant.
    • var key = e.which || e.keyCode; // Use either which or keyCode, depending on browser support
    • var charCode = (evt.charCode) ? evt.which : event.keyCode
      The notes sayYou should change e.keyCode to e.charCode. -->  String.fromCharCode(e.charCode) , I have not verified this.
    • var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));
  • KeyCode is 0 - This is caused by browser incompatibility with that particular function. It is also caused by a not printable character being called via onkeypress
  • KeyBoardEvents.key - seems to be the same as event.key
  • Mottie (CSS-TRICKS) says The charCode, keyCode and which are being deprecated. They will soon be replaced by event.key which will return named keys. This post inspired me to write my script using event.key
  • keypress (CSS-TRICKS) does not contain values for special characters. This might of changed in newer browsers but could still be true.
  • This fixed a big problem - I changed all onkeypress to onkeydown and this caused Google Chrome to work. This implies a bug if you have both onkeypress and onkeydown events on a page. Quirk? This fixed event.key, so do not use these on the same page. This fixes the issue for both chrome and firefox.
  • To get the event passed properly in FireFox you must pass with the function triggered in the HTML by using the varible 'event' giving onlyAlphaNumeric(event) otherwise the script will only work in Chrome.

Links

Legacy Key Restrictors

These are some basic key restrictors that some people use but they are not very cross browser compatible. According to Mottie (CSS-TRICKS) e.which and e.keycode are getting discontinued. I have included these here for reference to see how it was done in the past.

Function Call in HTML

<input class="olotd5" value="123456" name="zip" type="text" onkeydown="return onlyAlphaNumeric(event);"/>

Allows Only Uppercase and Lowercase Letters to be entered - Including Space

// Allows Only Uppercase and Lowercase Letters to be entered - Including Space
function onlyAlpha(e) {
    
    var charCode = e.which || e.keyCode; 
    
    if ((charCode === 32 || charCode >= 65 && charCode <= 90) || (charCode >= 97 && charCode <= 122)){
        return true;
    }
    return false;
}

Allows Only Numbers to be entered - Including Backspace and some other keys

// Allows Only Numbers to be entered - Including Backspace and some other keys
function onlyNumbers(e) {
    
    var charCode = e.which || e.keyCode;
    
    if (charCode > 31 && (charCode < 48 || charCode > 57)){
        return false;
    }
    return true;
}

Links

Published in Javascript
Page 79 of 96