Reset Airbag Sensor light on Nissan Pathfinder

December 24th, 2008

Recently my Nissan Pathfinder started flashing an airbag warning light for no apparent reason. My SUV is only 2 years old so it pained me to have to bring it in for diagnostics. Last time I brought my Nissan in to “check” something, I ended up with a new steering column, out of alignment, and new rear suspension parts. Don’t ask. Anyway, I found a really quick way to reset the alerts on your console. This only works unless there is really no problem and something just tripped the sensors.

Turn on the key to the Accessory position (don’t start), the airbag alert will display solid for 4 seconds or so, then start to flash. Immediately when the light starts to flash, turn the key back off.

Wait for 5 full seconds and then repeat the process at least 3 times.

On til flash, then off (wait 5) then back on.

Once this has been done 3 times, your alerts should be reset. If there is a real problem as in a partial deploy of your airbags, the alert will continue.

Hope this helps someone!!!

8703e Blackberry Tethering with Ubuntu 8.10 (Verizon)

November 10th, 2008

[ad#header]Wow, this was a good one, kept me going for a good 2 days!  So I’ve been using the VZAccess software for Windows for some time now and it’s pretty solid. The operating system however is not, so I’ve loaded Ubuntu 8.10 on my Lenovo Thinkpad T400. This kernel had the Wireless capabilities I needed. So let’s get to it:

First make sure you have all these packages from SPM

libtool autoconf automake cvs libglib2.0-dev libxml2-dev libssl-dev libopensync0-dev libxt-dev x11proto-print-dev libxmu-dev libxft-dev libfreetype6-dev libXp-dev flex byacc libgd2-xpm-dev libc6-dev g++ gcc make build-essential libxaw7-dev

Next you need to download the following packages:

openmotif-2.3.0.tar.gz

configure, make, make install

Xlt-13.0.13.gz

configure, make, make install

xmblackberry-0.3.0.gz

configure, make, make install

Then you need to create the communication scripts

/etc/chatscripts/blackberry
with the contents;

ABORT BUSY ABORT ‘NO CARRIER’ ABORT VOICE ABORT ‘NO DIALTONE’ ABORT ‘NO DIAL TONE’ ABORT ‘NO ANSWER’ ABORT DELAYED ABORT ERROR
SAY “Initializing\n”
” ATZ
OK-AT-OK ATDT#777
CONNECT \d\c

And then
/etc/ppp/peers/blackberry
with,

debug debug debug
nodetach
/dev/pts/1
115200
connect “/usr/sbin/chat -f /etc/chatscripts/blackberry”
nomultilink
defaultroute
noipdefault
ipcp-restart 7
ipcp-accept-local
ipcp-accept-remote
# added this, so that it doesn’t disconnect after few mn of innactivity
lcp-echo-interval 0
lcp-echo-failure 999
modem
noauth
nocrtscts
noipdefault
novj # refused anyway, no point in trying every time
usepeerdns
user Your10digitnumber@vzw3g.com
password Your10digitnumber

(*The /dev/pts/1 from above depends on what device you Blackberry is connecting to. This is displayed when you successfully run the XmBlackberry for the first time)

To be continued….

Allegheny State Park – Mountain Bike Adventure 10/08

October 21st, 2008

Sunday Morning we set out at 2pm. Rounding up my wife sometimes takes a little while.  Drive was great, sunny and fall conditions the whole trip, 3 hours or so. We arrived Sunday night around 5pm or so and proceeded to the nearest Indian Reservation grocery store. Smokes every block! Duty free. We needed some provisions such as Eggs, Bacon, Wood, tomahocs, teepee, etc.Monday! We hit the trails. Our cabin was at the Summit of the state park and was next to the Mountain Biking / Cross Country Skiing center. The hills were really fricking rockin’ jockin’.  Here is a little glimpse of what we saw.Allegheny State ParkDave coming up hillAllegheny State Park

DSEE 6.3 Windows Server 2003 Installation

July 27th, 2008

DSEE 6.2 Windows Server 2003 Installation Notes

DSEE 6.2 Windows Server 2003 Installation Notes

Obtain the zip file from here

  1. Unpack the DSEE6.2 zip file… c:\Temp\DSEE62 using folder names
  2. c:\Temp\DSEE62\dsee_deploy install –install-path c:\DSEE62 –no-inter
  3. C:\DSEE62\ds6\bin>dsadm create -p 44444 -P 44445 c:\DSEE62\sedemo
    Choose the Directory Manager password:
    Confirm the Directory Manager password:
    Use ‘dsadm start ‘c:\DSEE62\sedemo” to start the instance
  4. C:\DSEE62\ds6\bin>dsadm start c:\DSEE62\sedemo
    Waiting for server to start…
    Waiting for server to start…
    Server started: pid=8132
  5. C:\DSEE62\ds6\bin>dsadm stop c:\DSEE62\sedemo
    Server stopped
  6. C:\DSEE62\ds6\bin>dsadm enable-service –type WIN_SERVICE c:\DSEE62\sedemo
    Instance c:/DSEE62/sedemo registered in WIN_SERVICE
  7. Deploy the DSCC
    Stop Tomcat
    Copy C:\DSEE62\var\dscc6\dscc.war to Tomcats webapps folder
    Start Tomcat
  8. C:\DSEE62\dscc6\bin>dsccsetup initialize
    ***
    DSCC Application cannot be registered because it is not installed
    ***
    DSCC Agent is already registered
    ***
    Choose password for Directory Service Manager:
    Confirm password for Directory Service Manager:
    Creating DSCC registry…
    DSCC Registry has been created successfully
    ***
  9. C:\DSEE62\dscc6\bin>dsccreg add-server -d SEDemo_Directory c:\DSEE62\sedemo
    Enter DSCC administrator’s password:
    c:\DSEE62\sedemo is an instance of DS
    Enter password of “cn=Directory Manager” for c:\DSEE62\sedemo:
    Enter password of “cn=Directory Manager” for c:\DSEE62\sedemo:This operation will restart c:\DSEE62\
    sedemo.
    Do you want to continue ? (y/n) y
    Starting c:/DSEE62/sedemo
    Connecting to c:/DSEE62/sedemo
    Enabling DSCC access to c:/DSEE62/sedemo
    Restarting c:/DSEE62/sedemo
    Registering c:/DSEE62/sedemo in DSCC on localhost.

Trac Installation with Postgresql

July 17th, 2008

Algonquin Adventure June 2008

June 5th, 2008

I’ve always wanted to visit the famous Algonquin Provincial Park. I had a few weeks vacation due me and my wife Amy was able to get the same week off. So, I spent some time researching the best place to go camping and found the following site useful http://www.algonquinpark.on.ca/ Based on a few different sources, Lake of Two Rivers Campground was recommended and was the oldest and most established parts of the Park.

Our plan was in effect! We would leave Monday June 2, 2008 and travel up north to Algonquin Provincial Park for a week of camping. Due to some minor problems with our current Coleman 8 person tent (hole) we needed to buy a new one. We looked for days and hours online to find the best family tent for our excursion. Eureka 8 person for $350, Kelky $400 but finally decided to bite the bullet and purchase the $29 Hillary Tent from Sears on Clearance!

So we took off from Cleveland at 12 pm on Monday using our faithful GPS to guide us. I knew my Garmin Nuvi 200 would only get us to Niagara Falls but technology is so comforting sometimes…

The weather was great and the hours went by quick. We reached the Canadian border sometime around 3:30pm and dealt the the strick Canadian customs. “Where are you going? For how long? Go ahead. After that, TORONTO. Let me just say that I’ve been to quit a few cities in my days on this earth and I would say Toronto is on the top of the “Worst traffic in the World” list. We kept up travelling at 130+km/hr weaving in and out of beat up Le Shoppe bread trucks and various maintenance vehicles. Top if off with a 3 hour traffic jam fortunately going the other way but warning us for the return trip.

After that, the beauty of Ontario begins to increase with every kilometer. (After Hamilton) 3+ hours after Toronto, we started to enter obvious camping and canoeing country. Every other store was a wilderness outfitter or canoe rental. A few more miles and we passed a young gentlemen with what we thought was a costume of sorts. This costume turned out to be a Mosquito Net suite which we laughed at and drove on.

Finally Alqonquin Park Gates ahead of us. Hours of operation 6am-6pm and it was 7:30pm. For some reason there was someone there that fielded our questions and pointed us in the right direction. As we walked from our air condition SUV to the Welcome center, we were amused at the amount and voraciousness of the bug life there.

Multiple Jboss Instances on one server

April 2nd, 2008

This works for JBOSS 4.0.5.GA! hopefully, it will work on some other versions. The important thing is to change the port number for the services you are running in your application – http, rmi, jndi, Webservice e.t.c. You will find these in the following xml files -All xml are in the server directory JBOSS.

Leave the first instance of your JBoss unchanged. In the 2nd instance, for example, update the xml files as described below:

…<jboss folder>…/server/default/deploy/jbossweb-tomcat55.sar/server.xml:
update 8080 to 18080

…<jboss folder>…/server/default/conf/jboss-service.xml:
update 1099 to 11099
update 1098 to 11098
update 4445 to 14445
update 4444 to 14444

…<jboss folder>…/server/default/conf/jboss-minimal.xml:
update 1099 to 11099
update 1098 to 11098
…<jboss folder>…/server/default/deploy/jms/uil2-service.xml – update 8093 to 18093

…<jboss folder>…/server/default/conf/jboss-service.xml – update 8083 to 18083

ipower web hosting is the worst hosting company in the world

February 20th, 2008

Fix for MySQL upgrade without any notification. Completely broke all ecommerce on 2 of my sites hosted at ipower.com Recommendation: never never never never never ever use IPOWER.com for anything.

http://forums.oscommerce.com/index.php?showtopic=230304

RSA Access Manager 6.0 install

February 3rd, 2008
  • Receive AXM60.zip from RSA
  • Unzip in your installs directory
  • $install_dir/linux-x86/ct_servers/install-server.sh

Link Apache to Jboss with mod_jk

February 3rd, 2008

Using Mod_jk 1.2 with JBoss

Using mod_jk 1.2.x with JBoss/Tomcat bundle and Apache2

Quick Overview

  1. Download Apache2
  2. Download modjk 1.2.x
  3. Change the main Apache config to include modjk config
  4. Create the modjk config
  5. Configure the modjk workers (which JBoss/Tomcat nodes Apache uses)
  6. Configure the Apache URIs served by modjk (the applications served by JBoss/Tomcat)
  7. Restart Apache
  8. Configure Tomcat (Give each JBoss/Tomcat a jvmRoute for session stickness)
  9. Restart JBoss
  10. Test it

More Details

This wiki outlines the various steps required to install a basic load-balancing solution based on JBoss/Tomcat and mod_jk 1.2.

Step #1: Download Apache2 Web Server
Get the latest Apache2 package from Apache.org and install it. We require no special configuration, just use the default settings. In the following steps, APACHE_HOME will represent the Apache install directory.

Step #2: Download mod_jk 1.2.x
Download the latest package available from Tomcats’s ‘Download Tomcat connector section’ page . Always download the latest stable release if possible.
Rename the lib mod_jk.so and drop it in APACHE_HOME/modules directory.
NOTE: Don’t use any release prior to mod_jk 1.2.15. Earlier releases are fairly buggy.

Note: Darwin Ports supports the installation of mod_jk on OS X. See http://darwinports.opendarwin.org/ for more info.

Step #3: Setup Apache to use modjk
Add this line at the very bottom in APACHE_HOME/conf/httpd.conf :

# Include mod_jk configuration file
Include conf/mod-jk.conf

Step #4: Create the modjk config
Under APACHE_HOME/conf, create mod-jk.conf and populate it as follows:

# Load mod_jk module
# Specify the filename of the mod_jk lib
LoadModule jk_module modules/mod_jk.so

# Where to find workers.properties
JkWorkersFile conf/workers.properties

# Where to put jk logs
JkLogFile logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel info

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"

# JkOptions indicates to send SSK KEY SIZE
# Note: Changed from +ForwardURICompat.
# See http://tomcat.apache.org/security-jk.html
JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories

# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"

# Mount your applications
JkMount /__application__/* loadbalancer

# You can use external file for mount points.
# It will be checked for updates each 60 seconds.
# The format of the file is: /url=worker
# /examples/*=loadbalancer
JkMountFile conf/uriworkermap.properties

# Add shared memory.
# This directive is present with 1.2.10 and
# later versions of mod_jk, and is needed for
# for load balancing to work properly
# Note: Replaced JkShmFile logs/jk.shm due to SELinux issues. Refer to
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225452
JkShmFile run/jk.shm

# Add jkstatus for managing runtime data
<Location /jkstatus/>
JkMount status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>

mod_jk is ready to forward requests to JBoss instances. We need now to setup the workers

Step #5: Configuring workers
Under APACHE_HOME/conf, create workers.properties and populate it as follows:

# Define list of workers that will be used
# for mapping requests
# The configuration directives are valid
# for the mod_jk version 1.2.18 and later
#
worker.list=loadbalancer,status

# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=8009
worker.node1.host=node1.mydomain.com
worker.node1.type=ajp13
worker.node1.lbfactor=1
# worker.node1.connection_pool_size=10 (1)

# Define Node2
# modify the host as your host IP or DNS name.
worker.node2.port=8009
worker.node2.host= node2.mydomain.com
worker.node2.type=ajp13
worker.node2.lbfactor=1
# worker.node1.connection_pool_size=10 (1)

# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2

# Status worker for managing load balancer
worker.status.type=status

Important: Please review http://tomcat.apache.org/connectors-doc/reference/workers.html for the directive descriptions. Especially lookout for the comments on cachsize for Apache 1.3.x.

(1) You should only set the connection_pool_size if the number of allowed connection to the Httpd is higher than maxThreads in server.xml

If you specify worker.loadbalancer.sticky_session=Off, each request will be load balanced between node1 and node2. But when a user opens a Session on one server, it is a good idea to always forward this user’s requests to the same server. Otherwise the user’s session data would need to be synchronized between both servers. This is called a “sticky session”, as the client is always using the same server he reached on his first request. Session stickiness is enabled by default.

Side Note: a non-loadbalanced setup with a single node required the “worker.list=node1″ entry before mod_jk would function correctly. Without this setting I would only get a 500 error and no other useful messages in log or otherwise. -Harlequin516

Side Note: I tried both loadbalanced and single node methods on Fedora 4. Both setups causing jk.shm errno=13 and jk-runtime-status errno=13 in the mod_jk.log. Could only get 500 errors. As a last resort disabled selinux on apache server. Restarted service and connection was made first try. -paulbrown

Step #6: Create the URI to worker map file
Create a uriworkermap.properties file in the APACHE_HOME/conf directory. This file should contain the URL mappings you want Apache to forward to Tomcat. The format of the file is /url=worker_name. To get things started, paste this example into the file you created:

# Simple worker configuration file
#

# Mount the Servlet context to the ajp13 worker
/jmx-console=loadbalancer
/jmx-console/*=loadbalancer
/web-console=loadbalancer
/web-console/*=loadbalancer

This will configure mod_jk to forward requests to /jmx-console and /web-console to Tomcat. Step #7: Restart Apache
Step #8: Configure Tomcat
To complete the configuration, we also need to name each node accordingly to the names specified in workers.properties.
Edit JBOSS_HOME/server/all/deploy/jbossweb-tomcat50.sar/server.xml (replace /all with your own server name)
Locate the <Engine….> element and add an attribute jvmRoute:

<Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1">
.
</Engine>

The jvmRoute attribute must match the name specified in workers.properties. In the server.xml file, make sure that the AJP 1.3 Connector is uncommented, e.g.:

<!-- A AJP 1.3 Connector on port 8009 -->
<Connector port="8009" address="${jboss.bind.address}"
      emptySessionPath="true" enableLookups="false" redirectPort="8443"
      protocol="AJP/1.3"/>

If you are only accepting requests via mod_jk, you can comment out the regular HTTP Connector; Tomcat then won’t listen on port 8080.

Step #9: Activate the UseJK Valve in JBoss (not needed with Tomcat Standalone)
Finally, we need to tell Tomcat to add the jvmRoute value to its session cookies so that mod_jk can route incoming requests.
Edit JBOSS_HOME/server/all/deploy/jbossweb-tomcat50.sar/META-INF/jboss-service.xml (replace /all with your own server name)
Locate the <attribute> element with a name of UseJK, and set its value to “true”:

<attribute name="UseJK">true</attribute>

Note that tomcat version can be 50 or 55 depending on the AS that you use. Step #10: Restart JBoss AS.

Step #11: Access the JBoss AS web-console through Apache by browsing to http://localhost/web-console and you should see the JBoss web console page.


Note: to use mod_jk with Jboss 2 (e.g. jboss 2.4.6), you must edit jboss.jcml. Add the ‘jvmRoute=<<myWorker>>’ to the Engine element under the EmbeddedCatalinaSX? mbean.