Items filtered by date: December 2015

A HP Laserjet will not work with Windows 7. The followinf solution works well. If you vary the following method it will work for 32 bit if required.


Alright, I found the real fix for this so you can print at normal speed and not get the €œPesonality Not Supported: PCL€ Error [For Advanced Users].

1. First off, go download HP LaserJet 1012 Host Based drivers.

64-bit:
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=18972&prodSeriesId=377934&prodNameId=306510&
swEnvOID=2100&swLang=8&mode=2&taskId=135&swItem=lj-67501-1


32-bit:
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=306510&prodTypeId=18972&prodSeriesId=377934&
swLang=8&taskId=135&swEnvOID=2093


2. Extract the driver.
3. Plug in and turn on your printer if you haven€™t already.
4. Go to Start>Devices and Printers, and choose to add a printer
5. Choose to add a local printer
6. Choose Dot-4-usb printing support
7. Click Have Disk on the next window
8. Navigate to where you extracted the drivers, and choose the inf file
9. Choose the HP 1012 HB Driver
10. Follow the prompt till it installs the printer or what not

Now you may notice that it prints slow as heck, well no worries! To fix that do this.

1. Go to Start, right click Computer and choose Manage
2. Go to Device Manager
3. Find 1284.4 dot4usb Printing Support
4. Right click it and choose Update Driver
5. Choose €˜Browse my computer for driver software.
6. Choose USB Virtual Printing Support
7. Follow the prompt, exit out of Device Manager
8. Go to Start>Devices and Printers
9. Right click HP 1012 HB, choose Printer Properties
10. Go to the Port Tab, find Virtual USB Printing Support (Not dot4) and check that.
11. Click Ok.

Alternate Method 1
 

A way to get the HP 1010/1012/1015 Vista USB Host driver to print immediately. 
 
Delete your existing HP 1010/1012/1015 in "Devices and Printers" (also on any shared network computers)
Go to Device Manager
Click on IEEE1284.4 Devices
Right Click on DOTS4 USB Printing Support - go to properties
Click Update Driver
Click Browse for driver software on your computer
Click Let me pick from a list of devices on my computer
Click USB Printing Support
Click Close Windows
 
Go back to Devices and Printers
Click Add Printer
For the local port choose USB001 (Virtual port for USB)
For the Driver, point to the Vista Host Base Driver folder
It does not matter if you choose 1010 1012 or 1015 as it is the same driver

Alternate Method 1
 
sk2play's steps:
Go to Device Manager
Click on IEEE1284.4 Devices
Right Click on DOTS4 USB Printing Support - go to properties
Click Update Driver
Click Browse for driver software on your computer
Click Let me pick from a list of devices on my computer
Click USB Printing Support
Click Close Windows
 
Then, when I tried to load the HP drivers from the Add Printer step I didn't see HP 1010/1012/1015 listed.  I even tried to update the driver list, and got zero results.
 
So, I downloaded Windows Vista 64 driver for the HP 1012.
 
Unpacked it.
And then...
1. Add Printer
2. Local (for me)
3. Selected USB001 (VIrtual printer port for USB) -- like sk2play suggested in his steps
4. chose Have Disk
5. Browsed to the location of the unpacked HP 1012 WinVista 64 driver
6. selected and installed
7. printed a test sheet, and it printed immediately
 
Of course, the only reason I had to do this is because I didn't have the HP 1010/1012/1015 on my printer driver list.  So, in case other people are having issues this might help.

NB:

  • 1300 has proper driver for windows vista
  • 1300 has same internals as 1015
  • 1300 uses 'HP Univeral Printing PCL5/PCL5.1' system 5.0/5.1 - use 5.0 1015 is a pcl 5.0
Published in Networks

 

Probable Causes of Soldering Iron Tip Failure

There are many factors that influence soldering iron and tip life. Tips life will depend on proper maintenance, cleaning, temperature, tip configuration, and the jobs being done. Get the best performance from your iron and maximize tip life by following these simple suggestions and precautions. For soldering iron and tip care suggestions go to tipcare.htm.

  1. Make sure you have the correct amount of voltage in your line for your iron. Most irons are designed to handle slightly varying supply voltages but a consistently high line voltage will cause the iron to run hot and reduce tip life.
  2. The higher the tip temperature, the faster oxidation forms. Soldering at temperatures over 875º F causes your iron tip to oxidize twice as fast as soldering at 700º F. Adjust your soldering temperature to the minimum temperature needed to melt your solder and have it flow smoothly.
    Alloy Tin ‰ Lead ‰ Solid to Liquid at Pasty Range
    50/50 50 50 361º 421º 60º
    60/40 60 40 361º 374º 13º
    63/37 63 37 361º 361º  0º
    • 60/40 Solder: Composed of 60% tin and 40% lead, this solder melts at 374 ºF, but doesn't become completely solid until it cools to 361ºF. This means it has a "pasty range" or "working range" of 13 degrees. 

    • 50/50 Solder: This is composed of 50% tin and 50% lead. It is liquid at 421ºF, solid at 361ºF and has a pasty range of 60 degrees. 

    • 63/37 Solder: This solder is 63% tin and 37% lead. It becomes liquid at 361ºF, and solid at 361ºF, with a pasty or working range of 0 degrees. This solder is called a eutectic alloy which means at 361ºF, you can go instantly from solid to liquid to solid just by applying or removing the heat source. 

    • Lead-Free Solder: Depending on the specific mix of metals, lead free will produce differing liquid, solid, and pasty range temperatures. Check with the solder manufacturers for these specifics. 

  3. Keeping the tip clean is important but constantly wiping it on a wet sponge can cause early tip failure. Wiping causes the tip temperature to drastically rise and fall and the different metal layers in the tip to repeatedly expand and contract. This cycling leads to metal fatigue and ultimately tip collapse. The more frequently you wipe the tip, the more you stress it.
  4. Pushing the solder into the tip to force it to melt or rubbing the tip against the joint to force heat in will destroy the tip faster. Allow the iron to heat to the soldering temperature where normal contact of the solder with the tip causes the solder to melt.
  5. The lower the tin content of the solder, the more difficult it is to keep the tip from loosing its protective coating of solder (dewetting). Keep a roll of large diameter 63/37 on hand to periodically flush and re-tin your iron tip.
  6. Match the diameter of the solder to the tip. Using small diameter solders may not keep the tip flooded with solder while in use and cause the tip oxidize and wear faster. Use large diameter solder or periodically flood and tin the tip using large diameter 63/37 solder as suggested above.
  7. The more active the flux, the faster oxidation on the tip forms requiring more frequent tip cleaning. Using a flux with the lowest activity possible will help reduce oxidation and corrosion and maximize tip life.

For a list iron and tip maintenance suggestions go to Soldering Iron and Tip Care.

 

Published in Electronics

I am getting the Outlook 2003 "This operation has been cancelled due to restrictions in effect on this computer" hyperlink problem


GO here: http://www.dougknox.com/xp/file_assoc.htm and use the HTM/HTML association .zip.

Published in Outlook

Computer booted up showing the desktop as it is when you first get the computer - all programes show on the start menu, (default profile is being used)

But look in My Documents & there 's nothing in the folder. All email profiles & info that I had on the desktop completely vanished.

Go into safe mode - just the same

If you look in the profile eg C:\User\thedukes0brent\docs  - then all the files are there as expected, If you look on the profile desktop eg C:\User\thedukes0brent\desktop - then all the shortcuts etc are there.

So.......in effect the user account is there, but when you log on to it all settings & documents are not being accessed.


Solution:

In registry - HKLM\software\microsoft\windowsNT\currentversion\profile

  • There are two folder enteries with the same id number, one ending in .bak & one without bak. 
  • The one without the .bak should have an entry for the profile and is pointing to a  TEMP folder
  • Swapping the .bak extension between the two folders, it points the profile back to the correct user folder
Published in Windows XP
Friday, 26 February 2010 00:00

Prevent Code stripping in TinyMCE Editor

when you use certain code in TinyMCE it gets stripped when you save it.


Firstly make sure you have set Joomla's whitelist/blacklist thing properly as descibed in this article.

http://docs.joomla.org/Why_does_some_HTML_get_removed_from_articles_in_version_1.5.8%3F

The easiest way of checking this is to turn off your editor, paste some code in, save the article and see if joomla has stripped the code out.

Now  you need to add some code for your selected HTML Tags in to the Valid Extended Elements field in Tiny Parameters.

Syntax is

tag[element1|element2|etc.],othertag[element1a|element2a|etc.]

Example

{code class="brush: xml"} {/code}

In this case, you can use the star which lets use any element.
object[*],param[*],embed[*]

 You could limit what you authorize and add something like this

object[width|height],param[name|value],embed[src|type|allowscriptaccess|allowfullscreen|width|height]
 

Notes

  • This method can be used for any specific tag one needs not to be cleaned.
  • Parameter Tiny Clean Up on Save to "Always" as advised in the tooltip!
    If you do, then Tiny extraneous mce_something stuff will remain in code, breaking email cloak. as mentioned on joomla forum
  • see here for fijiweb post
     

 

Published in General
Friday, 26 February 2010 00:00

Is my server running phpSuExec

To determine if your server is running PHP via phpSuExec (i.e., CGI) instead of Apache

  • upload a phpinfo() file and check the “Server API” near the top of the file.
  • If it says “Apache”, PHP is running on Apache;
  • if it says “CGI”, PHP is running via phpSuExec.

This is important because it is impossible to manipulate php.ini directives via htaccess while running PHP on phpSuExec.

Published in Web Server
Friday, 26 February 2010 00:00

How to create a PHP Info page

The PHP Info page is built into PHP and gives you vital information about your server.


  • Create a blank PHP file
  • add the following line to it.

    {code class="brush: php"}{/code}
  • Upload the file to your webserver and then run it.
Published in PHP
Friday, 26 February 2010 00:00

Reset permissions recursively via PHP

You can reset file permissions via PHP. the code below is an example on resetting file permission recursively. You must have shell_exec enabled.


  • Create a blank php file
  • Add the following code to it
    <?php
      echo shell_exec( 'find . -type f -print0 | xargs -0 chmod 644' );
      echo shell_exec( 'find . -type d -print0 | xargs -0 chmod 755' );
    ?>
  • Place the file in the root directory you want it to work from
  • go to your webbrowser and execute the file
Published in PHP
Thursday, 25 February 2010 20:41

Windows XP Logs In Then Immediately Logs Off

You are unable to login to windows. It appears to work and then logs straight back out. This is usually because of a virus or malware that has been removed but the registry entery has not.


  • Navigate to

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\
     
  • In the right pane, you might see something like

    C:\WINDOWS\System32\wsaupdater.exe
     
  • Change it so that it reads:

    C:\WINDOWS\System32\userinit.exe
Published in Windows XP
Thursday, 25 February 2010 20:24

Reset Windows permissions via the command line

Reset a Windows User Profile permissions

This has been tested and works well on Windows 10.

Modify and run the code below from a command prompt with administrator rights.

ICACLS "I:\Users\peter" /grant Everyone:F /C /T

 

Quick way to reset all security permissions to default

This works for Windows Vista but it works also for windows 7. It might also work for later versions.

Some of the permissions have been changed and I would like to find a way to reset all the permissions to the default settings. Can anyone provide a quick way to reset all permissions to default?

Instructions

Just run in a evalated prompt the following command.

secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose

Links

 

Reset the Registry and File Permissions

This was last used by me on Windows XP. Some of this might work on later versions of Windows but has not been tested.

Occassionally the permissions on the windows registry or files become corrupt or altered. The methods below can restore access to all files and registry keys.

Programs will not install if the permissions are not correct in the registry.

SubInACL is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain.

Instructions

Here are some steps that can be used to download and run the SubInACL tool to repair file and registry permissions that are often needed to successfully install programs on Windows, particularly for MSI-based (Windows Installer) setups:

  1. Download the SubInACL tool and install it.  By default it will install to
    c:\Program Files\Windows Resource Kits\Tools

    Or get it from a system with SubInACL installed, can be run like a nbromal DOS program (ie same folder)
     
  2. If you are running Windows Vista, click on the Start menu, choose All Programs, then Accessories, then right-click on the item named Command Prompt and choose Run as administrator
  3. If you are running an OS other than Windows Vista, go to the Start menu, choose Run, type cmd and click OK
  4. In the cmd prompt, type notepad reset.cmd and click yes to open Notepad.exe and create a new text file named reset.cmd
  5. Copy and paste the following contents into reset.cmd
    cd /d "%programfiles%\Windows Resource Kits\Tools"
    
    subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators > %temp%\subinacl_output.txt
    subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators >> %temp%\subinacl_output.txt
    
    subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
    subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
    
    subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
    subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
    
    
    subinacl /subdirectories %programfiles%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
    
    subinacl /subdirectories %windir%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
  6. Change the values named YOURUSERNAME to be the Windows user account that you are logged in with.

    Note:  The YOURUSERNAME value should match the name of your user folder at c:\Documents and Settings (or c:\users on Windows Vista and higher).  You can also find the value to use for YOURUSERNAME by launching Task Manager and looking at the user name listed in the User Name column of the Processes tab.
     
  7. Save and close reset.cmd.
  8. In the cmd prompt, type reset.cmd and press enter to run the SubInACL tool.  This tool will take several minutes to run, and it requires that the user account you are using has administrator privileges on the system.  This is why it is necessary to run it from an elevated cmd prompt on Windows Vista.  Step 2 above can be used to start an elevated cmd prompt on Windows Vista.
  9. After reset.cmd completes, try to install the product that previously failed to install correctly on your system.

Note: There are a couple of scenarios where installing or running SubInAcl can fail.  For example, some non-English versions of Windows have the name of the Administrators group translated to another language, and the command lines listed above will fail in that case.  I have posted workarounds for the issues that I know of in this separate blog post.

Also note: Running the above command lines will cause SubInAcl to create a log file named %temp%\subinacl_output.txt.  If you see any errors reported in the cmd prompt after running SubInAcl, you can look in this log file for more detailed information about what file(s), folder(s) or registry value(s) are causing the errors.  To open this log file, you can click on the Start menu, choose Run, type notepad %temp%\subinacl_output.txt and click OK.

When looking at this log file, you may see some errors reported with error code 5.  That error code means Access Denied, and it is typically caused by Windows or some other program running on your system that is holding files, folders or registry values in use so that SubInAcl is unable to update the permissions for them.  Most of the time, that type of error in the SubInAcl output can be safely ignored, but you may need to try to reboot and then manually fix the permissions for these files, folders or registry keys as a workaround.


Alternate verions of the script

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=system=f

Using SECEDIT.EXE (for Windows XP Professional)

In Windows XP Professional, you may use the following secedit command-line to reset the file and registry permissions to defaults.

secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose

For more information, see article How to reset security settings back to the defaults.


This is an alternative permissions reset method using SetACL.exe

SetACL.exe -on "C:\windows" -ot file -actn setprot -op "dacl:np;sacl:nc" -rec cont_obj -actn setowner -ownr "n:S-1-5-32-544;s:y" E:\SetACL.exe -on "C:\windows" -ot file -actn setprot -op "dacl:np;sacl:nc" -rec cont_obj -actn setowner -ownr "n:S-1-5-32-544;s:y"
Published in Windows General
Page 84 of 96