Here is a video on installing maintenance kit and fuser in an HP 4200 printer:
Nov 2012: install fuser in circ printer (HP 4200), last one only looked like it lasted 13000 pages, not 200000 that they should last
Got replacement fuser from http://www.usaprinterguy.com/ nice step by step instruction sheet, new rollers, free return shipping for old fuser, good price.
HTML, CSS, batch commands, and Javascript examples that I have used in my library work. Short entries, designed as quick reference.
By Len Davidson at CUA Law Library
11/06/2012
10/24/2012
Android Emulator - Upgrading to AVD Manager 20.0.3
I upgraded to Android Emulator AVD Manager 20.0.3, and keyboard entry did not work, just the virtual keyboard. To fix this
- Go to AVD Mananger.
- Select the particular AVD and click on Edit
- Go to the Hardware section, click on New.
- Select the Property Name : Keyboard Support
- By default, it is added with a value of 'no'. Just click on the value column and change it to 'yes'.
- Click on Edit AVD again.
10/22/2012
Detect mobile device via Javascript, switch to mobile page
Our CMS is looks poor on mobile drives, looked at javascript to switch to a different page on detecting mobile device:
<script type="text/javascript">
var mobile = (/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|iphone|ipod|iris|kindle|lge|maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent.toLowerCase()));
if (mobile){ document.writeln("<h2>
<a href='http://your.server.com/m.asp?insert_room=1'>Tap here for MOBILE version...</a></h2>
");
}
</script>
var mobile = (/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|iphone|ipod|iris|kindle|lge|maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent.toLowerCase()));
if (mobile){ document.writeln("<h2>
<a href='http://your.server.com/m.asp?insert_room=1'>Tap here for MOBILE version...</a></h2>
");
}
</script>
I replaced the document switch:
document.location = 'http://your.server.com/m/'
with just adding a link to a different page:
document.writeln("<h2>
<a href='http://your.server.com/m.asp?insert_room=1'>Tap here for MOBILE version...</a></h2>
10/19/2012
HTML Tutorials
Here are top HTML tutorials for beginners, clean, nice layouts, minimum of advertisements:
http://www.w3schools.com/html/html_intro.asp
http://htmldog.com/guides/htmlbeginner/
http://www.stepbystephtml.com/
Still looking for lists of other peoples picks.
http://www.w3schools.com/html/html_intro.asp
http://htmldog.com/guides/htmlbeginner/
http://www.stepbystephtml.com/
Still looking for lists of other peoples picks.
10/18/2012
xcopy command - backup
Trying to use XCOPY got "INVALID PATH" error.
xcopy "Q:\TECH SRV\" /s /y
Just remove the final slash on the SOURCE directory:
xcopy "Q:\TECH SRV" /s /y
good reference page on XCOPY
On the destination, you do need the final slash, otherwise it askes is this a file name or directory name?
xcopy "Q:\ADMIN" "E:\Q drive\ADMIN\" /s /y
I use the following to add date to folder name:
xcopy "Q:\ADMIN" "E:\Backups- Q and W drives\20%date:~10,4%\Q drive - 20%date:~10,4%-%date:~4,2%-%date:~7,2%\ADMIN\" /s /y
20%date:~10,4% year
%date:~4,2% month
%date:~7,2% day
10/10/2012
Login Directly Into Windows 7 Without Entering Password
Have several lobby PCs where it is open to public (locked down with Deep Freeze & Proxy table), here are steps to Login Directly Into Windows 7 Without Entering Password
Every time Windows 7 is started it asks you to select the username and enter the password to access your system, there is no doubt that it is a very important security measure, but what if you are the only user
of your system? In windows 7, you can easily get rid of the login prompt window, go through the following steps to achieve it.
Go to Start and type netplwiz in the Start Search and hit Enter. The User Accounts dialogue box will be displaye, just uncheck "Users must ..." box
autologin
Every time Windows 7 is started it asks you to select the username and enter the password to access your system, there is no doubt that it is a very important security measure, but what if you are the only user
of your system? In windows 7, you can easily get rid of the login prompt window, go through the following steps to achieve it.
Go to Start and type netplwiz in the Start Search and hit Enter. The User Accounts dialogue box will be displaye, just uncheck "Users must ..." box
autologin
9/21/2012
VBA code to ESC from Access Form entry
In Microsoft Access 2010 database, wanted to create button that did same as pressing ESC key;
Found blog post on Use code to "undo" things in Access
DoCmd.RunCommand acCmdUndo
If there is nothing in the form, nothing can be UNdone, get error 2046. Added error handling, just close the form, and exit the subroutine.
Found blog post on Use code to "undo" things in Access
DoCmd.RunCommand acCmdUndo
If there is nothing in the form, nothing can be UNdone, get error 2046. Added error handling, just close the form, and exit the subroutine.
Private Sub Button_Click()
On Error GoTo ErrorHandler
DoCmd.RunCommand acCmdUndo
DoCmd.Close acForm, "Faculty Purchases - FY 2012", acSaveYes
Exit Sub
ErrorHandler:
Select Case Err
Case 2046: ' Error 2046: "Nothing can be UNDOne"
DoCmd.Close acForm, "Faculty Purchases - FY 2012", acSaveYes
Exit Sub
Case Else: ' An error other than 2046 has occurred.
' Display the error number and the error text.
MsgBox "Error # " & Err & " : " & Error(Err)
End Select
End Sub
On Error GoTo ErrorHandler
DoCmd.RunCommand acCmdUndo
DoCmd.Close acForm, "Faculty Purchases - FY 2012", acSaveYes
Exit Sub
ErrorHandler:
Select Case Err
Case 2046: ' Error 2046: "Nothing can be UNDOne"
DoCmd.Close acForm, "Faculty Purchases - FY 2012", acSaveYes
Exit Sub
Case Else: ' An error other than 2046 has occurred.
' Display the error number and the error text.
MsgBox "Error # " & Err & " : " & Error(Err)
End Select
End Sub
8/07/2012
6/06/2012
Windows 7 Startup folder
Your personal startup folder should be
C:\Users\<USER NAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
The All Users startup folder should be
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
C:\Users\<USER NAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Place shortcuts to run at startup in this location.
Screen saver - before login, Windows XP
If you select the Screen Saver tab of the Desktop control panel applet you can configure Power saving settings which include powering off the monitor after x minutes. To enable the monitor to power off for the logon screen perform the following on each machine:
- Start the registry editor (regedit.exe)
- Move to HKEY_USERS\.DEFAULT\Control Panel\Desktop
- Double click PowerOffActive and set to 1. Click OK
- Double click ScreenSaveActive and set to 1. Click OK
- Double click SCRNSAVE.EXE (if present) and set to "(NONE)" (don't type the quotes). Click OK
- Move to HKEY_USERS\.DEFAULT\Control Panel\PowerCfg
- Double click CurrentPowerPolicy and set to 0 (the Home/Office Desk power setting configuration). Click OK
- Close the registry editor
- Reboot the machine
5/17/2012
Default homepage for IE, Firefox
IE http://www.ehow.com/how_6299025_change-default-homepage-users.html
Open regedit.msc, Look for both of these, and set to www.law.edu
State Page
Default_Page_URL
Firefox: http://www.mockbox.net/configmgr-sccm/300-firefox-set-default-home-page-for-all-users.html
From Q: drive:
Copy mozilla.cfg override.ini to C:\Program Files\Mozilla Firefox\
Copy 'local-settings.js' to C:\Program Files\Mozilla Firefox\defaults\pref
GPedit.msc
Logon: dont show name
Computer Configuration Policy
Windows Settings
Security Settings
Local Policies
Security Options
Interactive Logon: do not display last user name
Logoff Button
User Config
Admin Temp
Start Menu & Taskbar
Change Start Menu power Button
IE: force start page to LAW.edu
User Config
Admin Templates
Windows
IE
Disable Changing Home page settings
Power Plan: all users
Default Explorer view - Windows 7
From My digital Life:
When opening Windows Explorer on Windows 7 (Windows Explorer shortcut can be on the Start Menu or pin to Taskbar), the default folder opened by Windows 7 is “Libraries”
For user who doesn’t actually use Libraries, or prefer Windows Explorer to open up My Documents, Documents, or even Computer (the highest level view that shows all drives available on the computer), this trick will set Windows Explorer to open and show the prefer folder by default.
My documents: %windir%\explorer.exe Libraries\Documents
My Computer: %windir%\explorer.exe /E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
Explorer.exe Command Line Syntax
%SystemRoot%\explorer.exe [/n][/e][,/root],X,[[/Select],Y]
X specifies the object, and optionally with sub-object Y.
/e switch showes the left Windows Explorer tree view navigation pane together with the right pane in list view, while /n hides the left navigation pane.
When the /root parameter is present, Explorer.exe will explore the root object (X) and objects belonging to X. On the other hand, when the /root switch is not present, Explorer.exe explores the object X, its children, and other Explorer objects as well.
/Select switch puts the focus on a file or folder.
For example:
%SystemRoot%\explorer.exe /N,%WinDir%\System32,/Select,%WinDir%\System32\Ping.exe
Command aboves will explore the \Windows\System32 folder and put the focus on the ping.exe program.
Tip: Normally, there is no need to specify full path to explorer.exe, which is stored in the Windows folder, obtainable through the environment variable WinDir, as the path already been defined in PATH environment variable, and will be search through accordingly. As such, Explorer will suffice to run the Windows Explorer shell.
When opening Windows Explorer on Windows 7 (Windows Explorer shortcut can be on the Start Menu or pin to Taskbar), the default folder opened by Windows 7 is “Libraries”
For user who doesn’t actually use Libraries, or prefer Windows Explorer to open up My Documents, Documents, or even Computer (the highest level view that shows all drives available on the computer), this trick will set Windows Explorer to open and show the prefer folder by default.
- In Windows 7 Start Menu, click on the Windows Explorer shortcut (typically store inside All Programs -> Accessories) and then select Properties. On Windows 7 Taskbar, hold down Shift key, and then right click on the Windows Explorer icon, and then select Properties. If you already have one or more Windows Explorer windows open, right click on the Windows Explorer icon, and then right click on the Windows Explorer link again to click on Properties.
- In the Target text box under Shortcut tab, change the value to one of the following to open either Documents or Computer by default.
My documents: %windir%\explorer.exe Libraries\Documents
My Computer: %windir%\explorer.exe /E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
Explorer.exe Command Line Syntax
%SystemRoot%\explorer.exe [/n][/e][,/root],X,[[/Select],Y]
X specifies the object, and optionally with sub-object Y.
/e switch showes the left Windows Explorer tree view navigation pane together with the right pane in list view, while /n hides the left navigation pane.
When the /root parameter is present, Explorer.exe will explore the root object (X) and objects belonging to X. On the other hand, when the /root switch is not present, Explorer.exe explores the object X, its children, and other Explorer objects as well.
/Select switch puts the focus on a file or folder.
For example:
%SystemRoot%\explorer.exe /N,%WinDir%\System32,/Select,%WinDir%\System32\Ping.exe
Command aboves will explore the \Windows\System32 folder and put the focus on the ping.exe program.
Tip: Normally, there is no need to specify full path to explorer.exe, which is stored in the Windows folder, obtainable through the environment variable WinDir, as the path already been defined in PATH environment variable, and will be search through accordingly. As such, Explorer will suffice to run the Windows Explorer shell.
5/08/2012
Shortcut on thumb drive to run video files
We need to create easy way for faculty to start VLC Media Player Portable on a flash drive. Regular Windows shortcuts contain drive letter, so they would not work on every computer.
Solution: create CLICK-TO-START.CMD file with following text:
start "\VLCfolder\VLCportable.exe" "\pathToVideo\video-file-name.mpeg"
START "program on thumb drive" "file to open on thumb drive"
Information on START command:
C:\Users\Everyday\Documents>start /?
Starts a separate window to run a specified program or command.
START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/NODE] [/AFFINITY ] [/WAIT] [/B]
[command/program] [parameters]
"title" Title to display in window title bar.
path Starting directory.
B Start application without creating a new window. The application has ^C handling ignored. Unless the application enables ^C processing, ^Break is the only way to interrupt
the application.
I The new environment will be the original environment passed
to the cmd.exe and not the current environment.
MIN Start window minimized.
MAX Start window maximized.
SEPARATE Start 16-bit Windows program in separate memory space.
SHARED Start 16-bit Windows program in shared memory space.
LOW Start application in the IDLE priority class.
NORMAL Start application in the NORMAL priority class.
HIGH Start application in the HIGH priority class.
REALTIME Start application in the REALTIME priority class.
ABOVENORMAL Start application in the ABOVENORMAL priority class.
BELOWNORMAL Start application in the BELOWNORMAL priority class.
NODE Specifies the preferred Non-Uniform Memory Architecture (NUMA)
node as a decimal integer.
AFFINITY Specifies the processor affinity mask as a hexadecimal number.
The process is restricted to running on these processors.
The affinity mask is interpreted differently when /AFFINITY and /NODE are combined. Specify the affinity mask as if the NUMA node's processor mask is right shifted to begin at bit zero.
The process is restricted to running on those processors in common between the specified affinity mask and the NUMA node.
If no processors are in common, the process is restricted to running on the specified NUMA node.
WAIT Start application and wait for it to terminate.
command/program
If it is an internal cmd command or a batch file then the command processor is run with the /K switch to cmd.exe. This means that the window will remain after the command has been run.
If it is not an internal cmd command or batch file then it is a program and will run as either a windowed application or a console application.
parameters These are the parameters passed to the command/program.
NOTE: The SEPARATE and SHARED options are not supported on 64-bit platforms.
Specifying /NODE allows processes to be created in a way that leverages memory
locality on NUMA systems. For example, two processes that communicate with
each other heavily through shared memory can be created to share the same
preferred NUMA node in order to minimize memory latencies. They allocate
memory from the same NUMA node when possible, and they are free to run on
processors outside the specified node.
start /NODE 1 application1.exe
start /NODE 1 application2.exe
These two processes can be further constrained to run on specific processors
within the same NUMA node. In the following example, application1 runs on the
low-order two processors of the node, while application2 runs on the next two
processors of the node. This example assumes the specified node has at least
four logical processors. Note that the node number can be changed to any valid
node number for that computer without having to change the affinity mask.
start /NODE 1 /AFFINITY 0x3 application1.exe
start /NODE 1 /AFFINITY 0xc application2.exe
If Command Extensions are enabled, external command invocation
through the command line or the START command changes as follows:
non-executable files may be invoked through their file association just
by typing the name of the file as a command. (e.g. WORD.DOC would
launch the application associated with the .DOC file extension).
See the ASSOC and FTYPE commands for how to create these
associations from within a command script.
When executing an application that is a 32-bit GUI application, CMD.EXE
does not wait for the application to terminate before returning to
the command prompt. This new behavior does NOT occur if executing
within a command script.
When executing a command line whose first token is the string "CMD "
without an extension or path qualifier, then "CMD" is replaced with
the value of the COMSPEC variable. This prevents picking up CMD.EXE
from the current directory.
Solution: create CLICK-TO-START.CMD file with following text:
start "\VLCfolder\VLCportable.exe" "\pathToVideo\video-file-name.mpeg"
START "program on thumb drive" "file to open on thumb drive"
Information on START command:
C:\Users\Everyday\Documents>start /?
Starts a separate window to run a specified program or command.
START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/NODE
[command/program] [parameters]
"title" Title to display in window title bar.
path Starting directory.
B Start application without creating a new window. The application has ^C handling ignored. Unless the application enables ^C processing, ^Break is the only way to interrupt
the application.
I The new environment will be the original environment passed
to the cmd.exe and not the current environment.
MIN Start window minimized.
MAX Start window maximized.
SEPARATE Start 16-bit Windows program in separate memory space.
SHARED Start 16-bit Windows program in shared memory space.
LOW Start application in the IDLE priority class.
NORMAL Start application in the NORMAL priority class.
HIGH Start application in the HIGH priority class.
REALTIME Start application in the REALTIME priority class.
ABOVENORMAL Start application in the ABOVENORMAL priority class.
BELOWNORMAL Start application in the BELOWNORMAL priority class.
NODE Specifies the preferred Non-Uniform Memory Architecture (NUMA)
node as a decimal integer.
AFFINITY Specifies the processor affinity mask as a hexadecimal number.
The process is restricted to running on these processors.
The affinity mask is interpreted differently when /AFFINITY and /NODE are combined. Specify the affinity mask as if the NUMA node's processor mask is right shifted to begin at bit zero.
The process is restricted to running on those processors in common between the specified affinity mask and the NUMA node.
If no processors are in common, the process is restricted to running on the specified NUMA node.
WAIT Start application and wait for it to terminate.
command/program
If it is an internal cmd command or a batch file then the command processor is run with the /K switch to cmd.exe. This means that the window will remain after the command has been run.
If it is not an internal cmd command or batch file then it is a program and will run as either a windowed application or a console application.
parameters These are the parameters passed to the command/program.
NOTE: The SEPARATE and SHARED options are not supported on 64-bit platforms.
Specifying /NODE allows processes to be created in a way that leverages memory
locality on NUMA systems. For example, two processes that communicate with
each other heavily through shared memory can be created to share the same
preferred NUMA node in order to minimize memory latencies. They allocate
memory from the same NUMA node when possible, and they are free to run on
processors outside the specified node.
start /NODE 1 application1.exe
start /NODE 1 application2.exe
These two processes can be further constrained to run on specific processors
within the same NUMA node. In the following example, application1 runs on the
low-order two processors of the node, while application2 runs on the next two
processors of the node. This example assumes the specified node has at least
four logical processors. Note that the node number can be changed to any valid
node number for that computer without having to change the affinity mask.
start /NODE 1 /AFFINITY 0x3 application1.exe
start /NODE 1 /AFFINITY 0xc application2.exe
If Command Extensions are enabled, external command invocation
through the command line or the START command changes as follows:
non-executable files may be invoked through their file association just
by typing the name of the file as a command. (e.g. WORD.DOC would
launch the application associated with the .DOC file extension).
See the ASSOC and FTYPE commands for how to create these
associations from within a command script.
When executing an application that is a 32-bit GUI application, CMD.EXE
does not wait for the application to terminate before returning to
the command prompt. This new behavior does NOT occur if executing
within a command script.
When executing a command line whose first token is the string "CMD "
without an extension or path qualifier, then "CMD" is replaced with
the value of the COMSPEC variable. This prevents picking up CMD.EXE
from the current directory.
5/07/2012
2TB limit for hard drives in Windows 7
Have a 3 Terabyte harddrive, Win 7 only recognized it as 2.2 TB partition and 800 GB partition, could not get one 3 TB partition.
Jeff Hughes has all the details on the 2 TB limit.
Have to create a GPT (Guid Partition Table) disk.
Open Administrative Tools, then Computer Management, then right click on disk name, far left side, you should see "Convert to GPT disk"on the menu drop down.

A disk configured to be GPT rather than the MBR style would have a 32 sector partition array instead of a tiny 64 byte partition table.
The partitions that can be defined on a GPT disk can be up to 16EB in size.
Jeff Hughes has all the details on the 2 TB limit.
Have to create a GPT (Guid Partition Table) disk.
Open Administrative Tools, then Computer Management, then right click on disk name, far left side, you should see "Convert to GPT disk"on the menu drop down.
A disk configured to be GPT rather than the MBR style would have a 32 sector partition array instead of a tiny 64 byte partition table.
The partitions that can be defined on a GPT disk can be up to 16EB in size.
Subscribe to:
Posts (Atom)