Somehow he continues to come up with ways to take our money... and he knows we will give it to him. He's like a drug dealer with the assurance of sales because when he comes by with more starwars we open the wallet reflexively at this point. It is pathetic really that I will likely buy the blu-rays and then begin longing for the 3D releases. My only complaint is that Phantom Menace gets released before the 'real' Starwars movies.
STARWARS TRILOGY TO BE RELEASED IN THEATERS IN 3D!!!!
Wednesday, September 29, 2010
Wednesday, September 22, 2010
Wednesday, September 15, 2010
Oh man... great prank!
Of course were I the guy in the back seat, while I would hopefully not scream like a little girl, I would definitely take the pilot off of my Christmas card list... and maybe kick him in the nards after we landed.
Sunday, September 12, 2010
Monday, August 30, 2010
The bigger they are...
Well I had my first experience falling over because my feet were attached to my pedals... Actually just one foot was clipped in but it was the important foot. The new bike has pedals with clips and the guy I bought the bike from had a used pair of bike shoes that fit me so I have been using them and I really like using clips as opposed to not. For you non-bikers, The clips help with efficiency when riding as your feet stay in place plus you can actually use the upward motion as well as the downward motion of your feet to increase your speed, HOWEVER when you come to a stop you have to think ahead and remember to swivel your heel to unclip the shoe from the pedal. If you don't, then when your forward motions stops, the sideways motion starts pretty much immediately.
In my own defense I had gotten into the habit of unclipping only my right foot and leaning right when I stop and it has been working just fine until this morning when I lost my balance and leaned left instead. It probably looked rather like this:
...Well with the exception that I fell the other way and there was no smoke. I am only glad that it was 5:30 AM and nobody was around to see me (that I know of). So a skinned knee and slightly damaged pride aside it was a good ride.
In my own defense I had gotten into the habit of unclipping only my right foot and leaning right when I stop and it has been working just fine until this morning when I lost my balance and leaned left instead. It probably looked rather like this:
...Well with the exception that I fell the other way and there was no smoke. I am only glad that it was 5:30 AM and nobody was around to see me (that I know of). So a skinned knee and slightly damaged pride aside it was a good ride.
Friday, August 27, 2010
So I am riding again...
Added a new widget to the right side with my daily cycling mileage. At the end of October some friends are going to be riding a section of the Katie Trail so I'm trying to get ready for that. I bought a mountain bike and I'm going to pretty much train exclusively with that since I won't be taking the Fuji road bike on the trip. The new bike (GT XCR 4000) has full suspension which takes some getting used to when you are only familiar with a road bike and basically zero suspension. So hopefully the widget won't get too far out of date, even though I'm sure I will stop riding during the colder months.
Monday, August 23, 2010
My bat file grows apace...
I keep making this easier and easier for the tech support guys to use. It is mildly gratifying.
Things the bat now does…
- Creates a temp file with all of the new MAC addresses added during that session (this file opens at the end when you are ready to document the new MACs in the Excel spread sheet… this helps save you from having to retype the MACs especially if you were adding them from a hand written note)
- Displays a cool blinking warning if you try to run the ‘app’ (I know, I am stretching there) while another admin is using it. This is because when you run the bat, a temp file is created and the bat checks for the existence of this file before allowing you to proceed. It’s to avoid more than one person editing the MAClist at a time to avoid duplicate entries. The last thing the bat does is delete this file before exiting.
- Error checking. Macs entered must now be no more or less than 12 characters long but before the counting happens, spaces and hyphens are removed. MACs can only use numbers and or letters A-F.
Old features
- Add new Macs one at a time to the existing MAClist text file
- Menu for controlling the DHCP service remotely via the ‘sc’ (service control) DOS command. Start, Stop and Query are available.
- Opens Excel spread sheet at the end so you can document newly added MAC addresses (user name, computer name, MAC and if applicable, expiration date).
If you are a nerd and actually care about this stuff, see below...
@echo off
:: This checks for the existence of the 'inuse' file which is created when someone is using
:: the maclist control app. If the file exists it sends you to a message saying to try again later.
if exist \\lchqfp01\dhcp$\inuse.txt goto blink else goto prerun
:: This creates a temporary 'in-use' file to help avoid the problem with multiple admins using this
:: utility at the same time and potentially causing overwrites or redundant entries in the Maclist.
:prerun
echo This application is in use by another administrator (%username%).>>\\lchqfp01\dhcp$\inuse.txt
:: Creates a temp directory to hold temp txt file containing all macs entered in this session. This
:: text file opens at the end so you can copy/paste into the XLS file.
md c:\temp007
del c:\temp007 /Q
echo Please copy these macs to the clipboard. When you close this text file the Excel Spreadsheet will open and you can paste them in:>>c:\temp007\macs.txt
echo.>>C:\temp007\macs.txt
:: I got the 'convert case' parts from this website --
:: http://www.robvanderwoude.com/battech_convertcase.php which says to use the SETLOCAL
:: ENABLEDELAYEDEXPANSION command. Dunno what it does precisely besides making my code work.
:top
SETLOCAL ENABLEDELAYEDEXPANSION
cls
echo.
echo.
echo MACLIST MANAGEMENT CONSOLE
echo ==========================
echo.
:: Here is where the user enters a MAC address... the 'LoCase' routine will change
:: uppercase to lowercase and remove spaces and hyphens since neither are permitted
:: in the MAC list. It sets the variable 'mac' as whatever the user inputs, then the
:: variable is put through the subroutine and finally the end result is added to an
:: existing text file called 'maclist.txt'.
:choice1
echo Capital letters will be converted to lowercase
echo and spaces and hyphens will be removed
echo.
SET /p mac=[Enter a MAC address]?
CALL :LoCase mac
:: Ensures that the input does not exceed or come short of exactly 12 characters
set Namecheck=%mac:~0,11%
if "%NameCheck%"=="%mac%" (
echo. ERROR: A MAC address cannot be less than 12 chars
pause
goto :top
)
set Namecheck2=%mac:~0,12%
if not "%NameCheck2%"=="%mac%" (
echo. ERROR: A MAC address cannot be more than 12 chars
pause
goto :top
)
:: Ensures that the MAC address only uses hexadecimal notation (letters g-z not allowed)
echo %mac% | findstr /R /C:[g-z]>nul
if errorlevel 1 goto :check
if not errorlevel 1 echo.ERROR: Hexadecimal notation only uses numbers and A-F.
pause
goto:top
::This section does a find command on the maclist text file and if the entered MAC already is on the list
::an error message is given and they are taken back to the add mac section.
:check
find /I "%mac%" \\lchqcdc01\system32$\MAClist.txt
IF NOT errorlevel 1 goto redundant
IF errorlevel 1 goto :ADD
:redundant
cls
echo.
echo This mac is already in the list. Would you like to:
echo.
echo 1. Add a different MAC
echo 2. Copy maclist and continue
echo 3. Exit this utility now
echo.
echo **Only use option 3 if you have NOT entered any MACs successfully
echo and you are finished with the utility.
echo.
:choice3
set /P C1=[1,2,3]?
if "%C1%"=="1" goto top
if "%C1%"=="2" goto copy
if "%C1%"=="3" goto exitnow
goto choice3
::Appends the entered MAC address to a file on the network.
:ADD
echo %mac%>>\\lchqcdc01\system32$\MAClist.txt
echo %mac%>>c:\temp007\macs.txt
ENDLOCAL
GOTO:NEXT
:: Subroutine to convert a variable VALUE to all lower case and remove spaces and hyphens.
:: The argument for this subroutine is the variable NAME.
:: Only A-F are included as hexadecimal doesn't use the rest of the alphabet.
:LoCase
SET %~1=!%1:A=a!
SET %~1=!%1:B=b!
SET %~1=!%1:C=c!
SET %~1=!%1:D=d!
SET %~1=!%1:E=e!
SET %~1=!%1:F=f!
SET %~1=!%1: =!
SET %~1=!%1:-=!
GOTO:EOF
:NEXT
cls
echo MAC has been added...
echo.
echo 1. Add another MAC
echo 2. Copy maclist and continue
echo.
:choice2
set /P C1=[1,2]?
if "%C1%"=="1" goto top
if "%C1%"=="2" goto copy
goto choice2
::Copies the newly edited MAClist from the primary to the secondary DHCP server
:copy
echo Copying newly edited MAClist from LCHQCDC01 to LCHQCDC02...
copy \\lchqcdc01\system32$\MAClist.txt \\lchqcdc02\calloutdll$\MAClist.txt /y
pause
color 0E
goto menu
:: This menu allows users to issues service control commands to two DHCP servers.
:: The MACfilter list is not reapplied until the DHCP services have been restarted.
:menu
cls
echo.
echo Please choose from the following menu
echo =========================================
echo.
echo 1. Stop DHCP service on both corporate DCs
echo.
echo 2. Start DHCP service on both corporate DCs
echo.
echo 3. Query DHCP server status on both corporate DCs
echo.
echo 4. Open Excel spreadsheet and Quit
echo.
:choice3
set /P C=[1,2,3,4]?
if "%C%"=="4" goto quit
if "%C%"=="3" goto query
if "%C%"=="2" goto start
if "%C%"=="1" goto stop
goto choice3
:stop
cls
sc \\lchqcdc02 stop DHCPserver
sc \\lchqcdc01 stop DHCPserver
pause
goto menu
:start
cls
sc \\lchqcdc02 start DHCPserver
sc \\lchqcdc01 start DHCPserver
pause
goto menu
:query
cls
sc \\lchqcdc02 query DHCPserver
sc \\lchqcdc01 query DHCPserver
pause
goto menu
:: This last step opens an Excel spreadsheet where we manually document new MAC addresses
:: which have been added to the MAC filter list.
:quit
"c:\temp007\macs.txt"
"\\lchqfp01\DHCP$\MAC-HOST-USER list.xlsx"
:exitnow
del \\lchqfp01\dhcp$\inuse.txt /Q
exit
:blink
cls
echo.
echo.
color 47
echo ------------------------------
echo i ++++++++++++++++++++++++++ i
echo i + + i
echo i + WARNING!!! + i
echo i + + i
echo i + The DHCP control app + i
echo i + is in use by another + i
echo i + administrator. + i
echo i + + i
echo i + Please try again + i
echo i + later. + i
echo i + + i
echo i ++++++++++++++++++++++++++ i
echo ------------------------------
echo.
\\lchqfp01\dhcp$\sleep -m 800
cls
color 07
echo.
echo.
echo ------------------------------
echo i ++++++++++++++++++++++++++ i
echo i + + i
echo i + + i
echo i + + i
echo i + The DHCP control app + i
echo i + is in use by another + i
echo i + administrator. + i
echo i + + i
echo i + Please try again + i
echo i + later. + i
echo i + + i
echo i ++++++++++++++++++++++++++ i
echo ------------------------------
echo.
\\lchqfp01\dhcp$\sleep -m 800
cls
goto blink
Things the bat now does…
- Creates a temp file with all of the new MAC addresses added during that session (this file opens at the end when you are ready to document the new MACs in the Excel spread sheet… this helps save you from having to retype the MACs especially if you were adding them from a hand written note)
- Displays a cool blinking warning if you try to run the ‘app’ (I know, I am stretching there) while another admin is using it. This is because when you run the bat, a temp file is created and the bat checks for the existence of this file before allowing you to proceed. It’s to avoid more than one person editing the MAClist at a time to avoid duplicate entries. The last thing the bat does is delete this file before exiting.
- Error checking. Macs entered must now be no more or less than 12 characters long but before the counting happens, spaces and hyphens are removed. MACs can only use numbers and or letters A-F.
Old features
- Add new Macs one at a time to the existing MAClist text file
- Menu for controlling the DHCP service remotely via the ‘sc’ (service control) DOS command. Start, Stop and Query are available.
- Opens Excel spread sheet at the end so you can document newly added MAC addresses (user name, computer name, MAC and if applicable, expiration date).
If you are a nerd and actually care about this stuff, see below...
@echo off
:: This checks for the existence of the 'inuse' file which is created when someone is using
:: the maclist control app. If the file exists it sends you to a message saying to try again later.
if exist \\lchqfp01\dhcp$\inuse.txt goto blink else goto prerun
:: This creates a temporary 'in-use' file to help avoid the problem with multiple admins using this
:: utility at the same time and potentially causing overwrites or redundant entries in the Maclist.
:prerun
echo This application is in use by another administrator (%username%).>>\\lchqfp01\dhcp$\inuse.txt
:: Creates a temp directory to hold temp txt file containing all macs entered in this session. This
:: text file opens at the end so you can copy/paste into the XLS file.
md c:\temp007
del c:\temp007 /Q
echo Please copy these macs to the clipboard. When you close this text file the Excel Spreadsheet will open and you can paste them in:>>c:\temp007\macs.txt
echo.>>C:\temp007\macs.txt
:: I got the 'convert case' parts from this website --
:: http://www.robvanderwoude.com/battech_convertcase.php which says to use the SETLOCAL
:: ENABLEDELAYEDEXPANSION command. Dunno what it does precisely besides making my code work.
:top
SETLOCAL ENABLEDELAYEDEXPANSION
cls
echo.
echo.
echo MACLIST MANAGEMENT CONSOLE
echo ==========================
echo.
:: Here is where the user enters a MAC address... the 'LoCase' routine will change
:: uppercase to lowercase and remove spaces and hyphens since neither are permitted
:: in the MAC list. It sets the variable 'mac' as whatever the user inputs, then the
:: variable is put through the subroutine and finally the end result is added to an
:: existing text file called 'maclist.txt'.
:choice1
echo Capital letters will be converted to lowercase
echo and spaces and hyphens will be removed
echo.
SET /p mac=[Enter a MAC address]?
CALL :LoCase mac
:: Ensures that the input does not exceed or come short of exactly 12 characters
set Namecheck=%mac:~0,11%
if "%NameCheck%"=="%mac%" (
echo. ERROR: A MAC address cannot be less than 12 chars
pause
goto :top
)
set Namecheck2=%mac:~0,12%
if not "%NameCheck2%"=="%mac%" (
echo. ERROR: A MAC address cannot be more than 12 chars
pause
goto :top
)
:: Ensures that the MAC address only uses hexadecimal notation (letters g-z not allowed)
echo %mac% | findstr /R /C:[g-z]>nul
if errorlevel 1 goto :check
if not errorlevel 1 echo.ERROR: Hexadecimal notation only uses numbers and A-F.
pause
goto:top
::This section does a find command on the maclist text file and if the entered MAC already is on the list
::an error message is given and they are taken back to the add mac section.
:check
find /I "%mac%" \\lchqcdc01\system32$\MAClist.txt
IF NOT errorlevel 1 goto redundant
IF errorlevel 1 goto :ADD
:redundant
cls
echo.
echo This mac is already in the list. Would you like to:
echo.
echo 1. Add a different MAC
echo 2. Copy maclist and continue
echo 3. Exit this utility now
echo.
echo **Only use option 3 if you have NOT entered any MACs successfully
echo and you are finished with the utility.
echo.
:choice3
set /P C1=[1,2,3]?
if "%C1%"=="1" goto top
if "%C1%"=="2" goto copy
if "%C1%"=="3" goto exitnow
goto choice3
::Appends the entered MAC address to a file on the network.
:ADD
echo %mac%>>\\lchqcdc01\system32$\MAClist.txt
echo %mac%>>c:\temp007\macs.txt
ENDLOCAL
GOTO:NEXT
:: Subroutine to convert a variable VALUE to all lower case and remove spaces and hyphens.
:: The argument for this subroutine is the variable NAME.
:: Only A-F are included as hexadecimal doesn't use the rest of the alphabet.
:LoCase
SET %~1=!%1:A=a!
SET %~1=!%1:B=b!
SET %~1=!%1:C=c!
SET %~1=!%1:D=d!
SET %~1=!%1:E=e!
SET %~1=!%1:F=f!
SET %~1=!%1: =!
SET %~1=!%1:-=!
GOTO:EOF
:NEXT
cls
echo MAC has been added...
echo.
echo 1. Add another MAC
echo 2. Copy maclist and continue
echo.
:choice2
set /P C1=[1,2]?
if "%C1%"=="1" goto top
if "%C1%"=="2" goto copy
goto choice2
::Copies the newly edited MAClist from the primary to the secondary DHCP server
:copy
echo Copying newly edited MAClist from LCHQCDC01 to LCHQCDC02...
copy \\lchqcdc01\system32$\MAClist.txt \\lchqcdc02\calloutdll$\MAClist.txt /y
pause
color 0E
goto menu
:: This menu allows users to issues service control commands to two DHCP servers.
:: The MACfilter list is not reapplied until the DHCP services have been restarted.
:menu
cls
echo.
echo Please choose from the following menu
echo =========================================
echo.
echo 1. Stop DHCP service on both corporate DCs
echo.
echo 2. Start DHCP service on both corporate DCs
echo.
echo 3. Query DHCP server status on both corporate DCs
echo.
echo 4. Open Excel spreadsheet and Quit
echo.
:choice3
set /P C=[1,2,3,4]?
if "%C%"=="4" goto quit
if "%C%"=="3" goto query
if "%C%"=="2" goto start
if "%C%"=="1" goto stop
goto choice3
:stop
cls
sc \\lchqcdc02 stop DHCPserver
sc \\lchqcdc01 stop DHCPserver
pause
goto menu
:start
cls
sc \\lchqcdc02 start DHCPserver
sc \\lchqcdc01 start DHCPserver
pause
goto menu
:query
cls
sc \\lchqcdc02 query DHCPserver
sc \\lchqcdc01 query DHCPserver
pause
goto menu
:: This last step opens an Excel spreadsheet where we manually document new MAC addresses
:: which have been added to the MAC filter list.
:quit
"c:\temp007\macs.txt"
"\\lchqfp01\DHCP$\MAC-HOST-USER list.xlsx"
:exitnow
del \\lchqfp01\dhcp$\inuse.txt /Q
exit
:blink
cls
echo.
echo.
color 47
echo ------------------------------
echo i ++++++++++++++++++++++++++ i
echo i + + i
echo i + WARNING!!! + i
echo i + + i
echo i + The DHCP control app + i
echo i + is in use by another + i
echo i + administrator. + i
echo i + + i
echo i + Please try again + i
echo i + later. + i
echo i + + i
echo i ++++++++++++++++++++++++++ i
echo ------------------------------
echo.
\\lchqfp01\dhcp$\sleep -m 800
cls
color 07
echo.
echo.
echo ------------------------------
echo i ++++++++++++++++++++++++++ i
echo i + + i
echo i + + i
echo i + + i
echo i + The DHCP control app + i
echo i + is in use by another + i
echo i + administrator. + i
echo i + + i
echo i + Please try again + i
echo i + later. + i
echo i + + i
echo i ++++++++++++++++++++++++++ i
echo ------------------------------
echo.
\\lchqfp01\dhcp$\sleep -m 800
cls
goto blink
Subscribe to:
Posts (Atom)
(yes... I do know I am a nerd)