Home

Thu, May. 1st, 2008, 11:00 am
Juniper's SSL/VPN

There were problems with the SSL/VPN after upgrading to 6.0r4.2.1 where the user would visit a site with Active X components and it would not load the component. Changing the Web Caching policy for the affected site to "Unchanged" seemed to do the trick.

1. goto "Resource Policies" -> "Web" -> "Caching"
2. create a new policy for the affected website, in this case it was "foosite*:80,443/*"
3. action "Unchanged (do not add/modify caching headers)"

Tue, Apr. 29th, 2008, 12:34 pm
TIFF to PDF

So there's this new copier at work which can also scan documents. The documents it produces are in TIFF format (one per page scanned). Typically, I would want to get them into a format suitable for PDF'ing. The problem is that I hadn't figured out how to get multiple TIFF files into one file. There might be an easier way, but here goes.
  1. download the TIFF
  2. open it in the GIMP
  3. Convert it to greyscale (or truecolor)
  4. Scale it down to 25% of the original size, set the DPI to 200
  5. Zoom to 100%
  6. Save as... filename.ps (postscript)
  7. In the dialog box that comes up, set the image size to 8.5x11, change the X and Y offset to 0.
  8. Rinse and repeat for each TIFF file
  9. cat each file in page order to a new file (cat *.ps > new_file.ps)
  10. Run ps2pdf on the new_file.ps
Now if I could only use ImageMagick to manipulate the TIFF file, then I could script the whole thing.

Tue, Apr. 8th, 2008, 05:13 pm
DeDupe Awk Script

A quick awk script that will check a field, if the field is unique (you'll have to 'sort' on that field first) it'll print out the entire line. Otherwise, it skips to the next line.
BEGIN{
        FS=",";
}
{
        if (OLDFD != $1) {
                print $0;
                OLDFD=$1
        }
}

Fri, Feb. 15th, 2008, 11:06 am
Error when searching for updates

When searching for available updates on the Update site, you receive the 0x800A0046 error.
This error can occur if the user logon account is part of the Guest accounts or a limited-user account, if the security descriptor does not allow have the Authenticated Users to run Windows Update, or if the Impersonate a client after authentication policy is missing Service and Administrators from the Users and Groups list.
1) Start -> Run
2) Copy and paste the following command
sc sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
3) rerun windows update

Wed, Feb. 13th, 2008, 11:57 am
VM Mac Addresses

Three autogenerated Mac Addresses I should reuse even if I rm -rf the VMs are:
ethernet0.addressType = "generated"
ethernet1.addressType = "generated"
ethernet2.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:6a:0f:ba"
ethernet0.generatedAddressOffset = "0"
ethernet1.generatedAddress = "00:0c:29:6a:0f:c4"
ethernet1.generatedAddressOffset = "10"
ethernet2.generatedAddress = "00:0c:29:6a:0f:ce"
ethernet2.generatedAddressOffset = "20"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:a4:af:ca"
ethernet0.generatedAddressOffset = "0"
ethernet0.generatedAddress = "00:0c:29:71:75:81"
ethernet0.generatedAddressOffset = "0"