Wednesday, March 11, 2015

Thursday, January 12, 2012

Current Year with Perl

Perl scripters,

Did you ever want to just grab the current year in four digit format without pulling in the entire localtime array?  Me too.  Here is a simple statement that does just that and nothing more.  It pulls in the sixth element of the array which is the year.  Don't forget, the array begins with index value 0 so the sixth element has an index value of 5.

     $currentyear = (localtime)[5] + 1900;

Enjoy.

Monday, November 07, 2011

Nationwide All Media 3 Minute Long EAS Test

My work sent out an email with this warning:


Please read the below message from FEMA.

On Wednesday, November 9, 2011, FEMA, DHS and FCC will conduct the first  national test of the Nationwide Emergency Alert System (EAS). This nationwide test will kick off at 2:00 p.m. (EST) and run concurrently across all time zones.

This system test is the first of its kind designed to broadcast a nationwide message to the American public.  In the history of the country, nothing like it has been conducted on such a level.  As you may be aware, there have been tests in the past, but not of this magnitude encompassing all regions of the Nation simultaneously.  The three (3) minute test will run concurrently on all radio and TV band stations exceeding the previous messages broadcast which were anywhere from a 30 second to 1 minute message.

There is great concern in local police and emergency management circles about undue public anxiety over this test.  The test message on TV might not indicate that it is just a test.  Fear is that the lack of an explanation
regarding the message might create panic.  Please share this information with your family and friends so they are aware of the test.

Below is FEMAs website that will provide more information regarding this test:

http://www.fema.gov/emergency/ipaws/eas_info.shtm

Tuesday, November 16, 2010

Crazy Java

This is insane! Below is one command line that I found while running
the process status command on one of our RHEL servers. Never in my
life have I ever seen a command line so long that was not part of a
joke or contest. This is just one more reason not to like Java. Here
it is:


4 S root 13773 13753 0 75 0 - 92863 - Nov15 ?
00:08:58 /opt/j2sdk1.4.2_18/jre/bin/java -cp
/opt/AdventNet/WebNMS/classes:/opt/AdventNet/WebNMS/classes/AdventNetSUMClient.jar:/opt/AdventNet/WebNMS/classes/AdventNetUpdateManagerInstaller.jar:/opt/AdventNet/WebNMS/classes/AdventNetSUMServer.jar::/opt/AdventNet/WebNMS/classes/AdventNetSnmp.jar:/opt/AdventNet/WebNMS/classes/SNMPDebugger.jar:/opt/AdventNet/WebNMS/classes/AdventNetSAS.jar:/opt/AdventNet/WebNMS/classes/jaxp.jar:/opt/AdventNet/WebNMS/classes/crimson.jar:/opt/AdventNet/WebNMS/classes/xalan.jar:/opt/AdventNet/WebNMS/classes/Mail.jar:/opt/AdventNet/WebNMS/classes/activation.jar:/opt/AdventNet/WebNMS/classes/AdventNetNPrevalent.jar:/opt/AdventNet/WebNMS/classes/bsh-1.2b3.jar:/opt/AdventNet/WebNMS/classes/debugger.jar:/opt/AdventNet/WebNMS/classes/ManagementServer.jar::/opt/AdventNet/WebNMS/apache/tomcat/common/lib/servlet-api.jar:/opt/AdventNet/WebNMS/apache/tomcat/bin/bootstrap.jar:/opt/AdventNet/WebNMS/apache/tomcat/common/lib/jsp-ap
i.jar:/opt/j2sdk1.4.2_18/jre/lib/tools.jar:/opt/sybase/shared/jConnect-5_5/classes/jconn2.jar::/opt/AdventNet/WebNMS/classes/Adv
entNetTftp.jar:/opt/AdventNet/WebNMS/classes/AdventNetCLI.jar:/opt/AdventNet/WebNMS/classes/AdventNetCLIClient.jar:/opt/AdventNet/WebNMS/classes/AdventNetJta.jar:/opt/AdventNet/WebNMS/classes/jta.jar:/opt/AdventNet/WebNMS/classes/AdventNetSnmpDistributedAPI.jar:/opt/AdventNet/WebNMS/classes/JimiProClasses.zip:/opt/AdventNet/WebNMS/classes/jfreechart.jar:/opt/AdventNet/WebNMS/classes/jcommon.jar::/opt/AdventNet/WebNMS:/opt/AdventNet/WebNMS/classes/ftp.jar:/opt/AdventNet/WebNMS/classes/AdventNetUI.jar:/opt/AdventNet/WebNMS/classes/log4j.jar:/opt/AdventNet/WebNMS/classes/j2ssh-core.jar:/opt/AdventNet/WebNMS/classes/j2ssh-common.jar:/opt/AdventNet/WebNMS/classes/commons-logging.jar:/opt/AdventNet/WebNMS/classes/hdmserver.jar:/opt/AdventNet/WebNMS/classes/sdk/sdm
sdk.jar:/opt/AdventNet/WebNMS/classes/AdventNetTL1.jar:/opt/AdventNet/WebNMS/classes/AdventNetTL1Tools.jar:/opt/AdventNet/WebNMS/classes/AdventNetSnmpAgent.jar:/opt/AdventNet/WebNMS/classes/xmojo.jar:/opt/AdventNet/WebNMS/classes/AdventNetWebNmsAgent.jar:/opt/AdventNet/WebNMS/classes/AdventNetJmxAgent.jar:/opt/AdventNet/WebNMS/classes/AdventNetARUtils.jar:/opt/AdventNet/WebNMS/classes/AdventNetTL1Agent.jar
-Dsdm.homedir=/home/sdm -Dsun.net.inetaddr.ttl=0
-Djava.awt.headless=true
-Dcatalina.home=/opt/AdventNet/WebNMS/apache/tomcat
-Dmysql.home=/opt/AdventNet/WebNMS/mysql -Dwebserver.port=9090
-Dresource_check=9090,8009,8005
-Dwebserver.rootdir=/opt/AdventNet/WebNMS/apache
-Djava.rmi.server.codebase="file:////opt/AdventNet/WebNMS/classes/
file:////opt/AdventNet/WebNMS/classes/ManagementServer.jar
file:////opt/AdventNet/WebNMS/classes/AdventNetTftp.jar
file:////opt/AdventNet/WebNMS/classes/AdventNetCLI.jar
file:////opt/AdventNet/WebNMS/classes/xmojo.jar
file:////opt/AdventNet/WebNMS/classes/AdventNetSnmp.jar
file:////opt/AdventNet/WebNMS/classes/SNMPDebugger.jar
file:////opt/AdventNet/WebNMS/classes/AdventNetJmxAgent.jar
file:////opt/AdventNet/WebNMS/classes/AdventNetARUtils.jar
file:////opt/AdventNet/WebNMS/classes/AdventNetTL1Agent.jar
file:////opt/AdventNet/WebNMS/classes/AdventNetSAS.jar
file:////opt/AdventNet/WebNMS/classes/jta.jar
file:////opt/AdventNet/WebNMS/classes/hdmserver.jar
file:////opt/AdventNet/WebNMS/classes/sdk/sdmsdk.jar"
-Djava.security.policy=/opt/AdventNet/WebNMS/apache/tomcat/conf/catalina.p
olicy -mx100m com.motorola.webnms.common.server.init.SDMMain
NMS_BE_FAILOVER false NMS_BE_PORT 2000 ROOT_DIR /opt/AdventNet/WebNMS
NATIVE_PING true

Sunday, October 17, 2010

Mobile Posting

Testing out a new blogger app on my android phone.
Published with Blogger-droid v1.6.3

Sunday, January 03, 2010

Homemade Gray-Hoverman Antenna

I built an antenna over the holiday weekend. It receives just as well as the Radio Shack VHF/UHF that I bought twenty years ago for $30. I left that one in the attic at my last house when I moved.

I based it on the DBGH, double bay Gray Hoverman, designs that I found online at a Canadian forum. Below is a picture of of the one I built.




I used some old wood and wires and hardware that were lying around out in the garage so it did not cost me a dime of real money, just the time that I put into it. I figure I saved about $100 based on comparable antennas online.

I am picking up 28 channels just as I did at the other house with the RS antenna and I am feeding my whole house, which is currently three TV's. Several of these channels even broadcast in full HD so it looks real good on my HDTV.

If I had to built it again, I would just build a single bay and put a pre-amp on it. Give it a try. It wasn't that hard and it works very well.

Internet Speeds at New House

Still using same Windstream but they have fiber to the house in the new neighborhood as opposed to copper in the old neighborhood.



Upload speeds are much better. Now, on to wiring the whole house for Ethernet (100M full duplex that is).