Friday, May 28, 2004

Print from a web page without a dialog box

This is bad practice, as far as I'm concerned. Sometimes you just have to do what you have to do though.

You may be required to tweak your browser security settings to allow ActiveX downloads to get it completely transparent, so tread carefully.

<html>
<head>
<title>Title of your print test page.</title>
<script>
function Print()
{
if (document.all)
{
WebBrowser1.ExecWB(6, 6) //use 6, 1 to prompt the print dialog or 6, 6 to omit it;
WebBrowser1.outerHTML = "";
}
else
{
window.print();
}
}
</script>

</head>
<body>

<div style="page-break-before:always">
<p>This would be your page text.</p>


<object ID="WebBrowser1" WIDTH="0" HEIGHT="0"
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>

<SCRIPT>
<!--
Print()
//-->
</SCRIPT>

</div>

</body>
</html>

Tuesday, May 25, 2004

NEC Aspire and Repartee Integration

Assuming you have 4 digit extension numbers, and 3 digit trunks, this is workable.

The Aspire in-band DTMF cannot be modified per manufacturer support 05/25/2004.

Disconnects will be a problem during direct calls to voicemail. By default, if a caller hangs up during the "please enter your password" prompt, the Aspire repeats 9999. Since this is an invalid password, the disconnected call returns to the OPEN box and ultimately transfers to the operator. Using TBoxes as auto-attendants allows you to say-bye after the OPEN greeting to avoid phantom ringing at the operator.

switch setup

Set switch type to Default
Change off hook delay from 25 to 15
Set lamp on code to #X01
Set integration options to INT=NITSUKO

avanalog.avd

Edit the Nitsuko related data as follows:

[NITSUKO]
Name=Nitsuko Optima
MinExtSize=3
MaxExtSize=5
DefaultExtSize=4
TrunkSize=3
Data1= ***1U OPENING
Data2= ***2TF** NOANSWER
Data3= ***2IF NOANSWER
Data4= ***3TF** NOANSWER
Data5= ***3IF NOANSWER
Data6= ***4TF** NOANSWER
Data7= ***4IF BUSY
Data8= ***5TF** NOANSWER
Data9= ***5IF NOANSWER
Data10= ***6T TRUNK
Data11= ***8U OPENING
Data12= #I DIRECT
Data13= 9999 HANGUP

You may need to duplicate entries 3, 5, 7, and 9 above and replace I with U to allow for calls from extensions without mailboxes. I have not tested this as of yet.

Thursday, May 20, 2004

Browser Hijack du jour 2

NicTech Networks

Found this one resurrecting the coeds mother's office workstation.

Once again, symptoms include pop ups without IE open, pop ups, and pop behinds that aren't corrected by mortal means. I have resolved to leave the damage there but limit system access to it.

Here's a link to the discussion that helped. Below is the post that makes it simple...

My problem was a 1 min login delay due the aktiveds.dll that loads at startup (thanks to NicTech Networks Inc.). The following advice worked for me so I guess it works for any .dll made by NicTech since they all use the same registry folder....

Open up regedit.exe and find THIS folder. Navigate to it by clicking the +'s to expand
things like you would in Windows explorer:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\Guardian


Right click over "Guardian" in the left pane.
Left click on "Permissions"
Left click "SYSTEM" once to highlight it.
Check "deny" in all boxes that you can at the bottom (Probably only 2)
Left click Apply
Left Click OK

Say "OK" to any warnings about permissions
**Reboot** the system

then problems solved

Browser Hijack du jour

CoolWebSearch

Ran across this resurrecting a college coed's barely functioning PC.

After using Spybot, Adaware, and Hijackthis to remove the obvious and dorking the registry where not, the darn thing would not let go.

The final symptom was every google search returned a pop behind window, and the first google results page was a forged list of sponsored links. Very clever, very annoying.

Here's a link to a utility that removed the final piece. Thanks Merijn.

Wednesday, May 19, 2004

Altigen ACM Issues

ACM 4.6 sp1a 4
* Problem stripping area codes for Zoomerang in Pittsburgh (724).
* Que overflow settings only effective for two or fewer calls in queue, although default is 20.
* IP600 firmware above 1116 doesn't maintain hs volume levels
* ACR using SQL WHERE clauses in rules using external data is fixed with CServ.exe version 4.6.0.74. Previously, these rules would function but weren't being written to Access and would disappear on a server reboot.

Speed Up Windows XP by Keeping the Operating System in Memory

Here's some info from Ursamajoran at ExtremeTech. Looks interesting in concept, but I experienced a big problem with Fookes Software's NoteTab Lite after these hacks. Saving to an NT4 share hung the application and corrupted the edited files. Use at your own risk...

One thing you can do to speed up Windows XP is to make sure that key operating system functions stay in memory. Memory (also called "RAM") is much faster than the hard disk. Perform the following steps to pep up your XP computer's performance:

Click the Start button. Click the Run command and type regedit in the Open text box. Click OK. As always, be very careful when editing the Registry.

In the Registry Editor, go to the following registry key:
HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

Right click the DisablePagingExecutive entry in the right pane of the Registry editor and click Modify.

In the Edit DWORD Value dialog box, type the number "1" (without the quotes) in the Value data field. Click OK.

Right click the LargeSystemCache- double click it and change the decimal to 1 -this allows XP Kernel to Run in memory improves system performance alot

Close the Registry Editor and restart the computer.


and...

This is an unique technique for XP, which could improve the performance significantly by tweaking the prefetcher (which is a cache folder).

1. run "regedit";
2. goto [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters\EnablePrefetcher];
3. Set the value to either 0-Disable, 1-App launch prefetch, 2-Boot Prefetch, 3-Both ("3" is recommended).
4. reboot.

It should decrease the boot time and the time it takes to load programs.

Tuesday, May 18, 2004

Active Voice Message Order

The sources of the messages (i.e. subscribers, interviews, outside, etc.) are still currently the primary sort fields. Achieving true LIFO / FIFO order is not possible. Tweaking the source orders is, though.

After exiting the voice messaging system, use the command:

[E:VMAIL]MSGORDER

to manipulate the order in which the system presents messages.

This may only be related to the Repartee / AD-XX lines, and may not pertain to the Kinesis product.

Tuesday, May 11, 2004

OS/2 C:\IBMLAN\NETPROG\NETWKSTA.200 error SYS 1719

Happens to me everytime.

After running MPTS and configuring settings related to IBM NetBIOS over TCP/IP, the IBMLAN.INI file is damaged.

Open the file with E and find the line beginning with net1. You may find garbage characters after net1 = TC.

A sample of the correct format is:

net1 = TCPBEUI$,1,LM10,34,70,14

Edit and save the file, reboot, and problem solved.

Editing TCP/IP in OS/2 without rebooting

Thanks goes to Patrick at SN. I don't know where he got this info, so it is probably being used without someones permission. It appears to be from Active Voice or an experienced tech, either unsupported or not available to the public, since as of this post, I haven't seen it in their official documentation.

If you're the author and you really have an issue with me publishing old OS/2 information, let me know via email.

Otherwise, for those of you also stuck with upgrading mission critical OS/2 based systems...

Before reconfiguring TCP/IP the protocol stack must be checked to make sure it is binding to the NIC card.

To do this:
1. Open up an OS/2 window.
2. Type netstat -n.
The physical address of the NIC card should appear followed by 12 numbers. If the physical address is followed by zeros, the protocol stack has not bound to the NIC card. If the NIC card has not been bound run setup of OS/2 and select the correct NIC card.

After confirming that you have the correct NIC card and the NIC protocol is binding to it, perform the following to create a shortcut for re-configuring TCP/IP without shutting down the voice mail system.

1. Make backups of you Mptconfg.ini and Setup.cmd files before making any modifications.
2. Tedit C:\mptn\bin\mptconfg.ini
3. Insert the correct IP address, subnet mask, and broadcast address. The fields that need to be changed are:

[IPCONFIG]
Address = ###.###.###.###
Brdcast = ###.###.###.###
Netmask = ###.###.###.###
4. Tedit C:\mptn\bin\setup.cmd
5. Insert the correct IP address, subnet mask and broadcast address. The fields that need to be changed are:
Ifconfig lan0 ###.###.###.### (this is the IP address)
Netmask ###.###.###.###
Metric0 mtu 1500 broadcast ###.###.###.###
6. Run Netbind from C:\ibmcom\protocol.
7. Run setup from protocol directory.
8. Run netstat รข€“a to make sure that the TCP/IP changes have taken effect.


After the correct changes have been made you should be able to ping other client stations.


To add the default router address without having to reboot

Here's the information we have on adding the route statement to the setup.cmd file in the C:\mptn\bin directory. Once you add this line to the setup.cmd file, you need to save the file in the TEDIT program by hitting F2 then F3, then you can run setup.cmd in the same directory again and it should add the route statement. They do NOT have to reboot nor will it go away after a reboot. They can run setup.cmd while the voice mail is running.
----

Description: When the LAN that the Repartee is communicating with has multiple segments, routers will probably be used between the segments. In order for the Repartee to communicate out of the segment that it exists in a router statement must be added to the setup.cmd file.


Solution: Edit the setup.cmd located in c:\mptn\bin. This includes ip address, subnet mask, broadcast address, and routers. All of the above parameters except for routers will be initially defined during install. Simply edit setup.cmd and execute it from the command line by typing setup. Next add the following line.

route add default xxx.xxx.xxx.x 1

where:

add you are adding a route

default the default destination network (the network the server is on.)

xxx.xxx.xxx.x the ip address of the router (if the adddress of the server is 197.215.240.101, a router address of 197.215.240.1 will broadcast to the server's network and find the router).

1 The number of hops to destination. (from x.101 to x.1 is one hop. the value will be 1 in most cases.)