Tuesday, August 10, 2010

Restoring Firefox Menu Toolbar

The other day I accidentally unchecked all the toolbars including the menu toolbar in FireFox 3.6.

Here's one way I know of on how to restore the menu toolbar:

Click Windows Start > Run
Type in:  firefox -safe-mode














Click OK

The follow dialog box will pop up.















Check "Reset toolbars and controls"
Then click "Make Changes and Restart" button.

The Firefox browser is launched with the menu toolbar enabled.

Tuesday, May 18, 2010

Installing VMWare Tools 6.0 on Peppermint OS 2010.04.24

These are the problems I encountered during the installation of VMWare Tools 6.0 on a fresh install of Peppermint OS 2010.04.24.

A)  What is the location of the "gcc" program of your machine?

If the gcc compiler is missing, use the following command to install:

$ sudo apt-get install gcc

After the installation is finished, to find the location of gcc,
$ which gcc

Output:
/usr/bin/gcc

Answer:  What is the location of the "gcc" program of your machine?
/usr/bin/gcc


B) "What is the location the directory of C header files that match your running kernel?

The C header files are not found under /usr/src/linux/include which is the default path specified on the prompt.  Here's how you install the linux header files.

$ sudo apt-get install linux-headers-'uname -r' build-essential

replace 'uname -r' with what you get when you type:
$ uname -r
2.6.32-22-generic

The complete command:
$ sudo apt-get install linux-headers-2.6.32-22-generic build-essential

 After the installation is finished, the location of the directory of C header files for your kernel is at:
/usr/src/linux-headers-2.6.32-22-generic/include

Answer:  "What is the location the directory of C header files that match your running kernel?  /usr/src/linux-headers-2.6.32-22-generic/include

Tuesday, May 4, 2010

Solving the TOra 2.1.1 Missing Error Description

I recently got rid of my old TOra installation and replaced it with the newer TOra 2.1.1.  Every time I tried to connect to an Oracle database, I get a "Unable to connect to the database. ORA-27749784 missing error description." as shown below.









Solution:  
Delete the oci.dll in your TOra directory e.g. C:\Program Files\TOra.

I have Oracle 10g client installed on my desktop.  I believe TOra references the oci.dll in the Oracle Client's bin directory e.g. C:\oracle\product\10.2.0\client_1\BIN.  If you copy the oci.dll in this bin directory to the TOra directory, it will work the same way.

About TOra
http://www.torasql.com
TOra is an open-source multi-platform database management GUI that supports accessing most of the common database platforms in use, including Oracle, MySQL, and Postgres, as well as limited support for any target that can be accessed through Qt's ODBC support. TOra has been built for various Linux distributions, Mac OS X, MS Windows, and UNIX platforms [source: torasql.com].

Tuesday, April 20, 2010

Spring Web Flow Resources

Here's a few links that will help you get started with Spring Web Flow.

Spring Web Flow is a component of the Spring Framework's web stack which focuses on the definition and execution of user interface flow within a web application.  It solves Apache Struts limited page flow functionality - but you can integrate Spring Web Flow with your existing Struts infrastructure.

Working With Spring Web Flow (video presentation)Presented by Keith Donald on Mar 03, 2010
-  Presented at SpringOne 2009 conference by one of the founding partners of SpringSource.  The video & ppt presentation is about 1 hour and 32 minutes.  It's worth viewing.

Spring Web Flow

http://www.springsource.org/webflow

Tuesday, April 13, 2010

Spring Framework for Beginners

If you want to learn the Spring Framework, below are references that I thought were pretty helpful in getting someone up to speed in understanding the concepts behind the framework.

Rod Johnson Discusses Spring 3.0 (video)
Interview with Rod Johnson by Ryan Slobojan on Feb 22, 2010
http://www.infoq.com/interviews/rod_johnson_spring30

What’s New in Spring 3.0 
(video presentation)
http://www.bestechvideos.com/2009/12/16/what-s-new-in-spring-3-0

Mastering Spring MVC

Enjoy Spring-based Web development with the Spring MVC module
http://www.javaworld.com/javaworld/jw-04-2009/jw-04-springmvc.html

Developing a Spring Framework MVC application step-by-step

http://static.springsource.org/docs/Spring-MVC-step-by-step/index.html

Spring MVC

http://www.vaannila.com/spring/spring-mvc-tutorial-1.html

Tuesday, April 6, 2010

How to Update the SSL Certificate when using Plesk & RHEL

If your Apache-based website SSL certificate expired and you are using Plesk to manage your domains, here is how you update the certificate:

1.  Follow the instructions on how to generate a new key for apacheSSL.  Here's an example from GeoTrust's website:  https://knowledge.geotrust.com/support/knowledge-base/index?page=content&id=AR876

2.  Find the location of your certificate file.

$ cd /var/www/vhosts/yourdomain.com/conf/
$ vi httpd.include

Search for this section in your httpd.include file:
        SSLEngine on
        SSLVerifyClient none
        SSLCertificateFile /usr/local/psa/var/certificates/cert-BHkRhb

In the above example, cert-BHkRhb is the file containing your certificate.

3.   Replace the contents of your certificate file with the new key generated in Step 1.  The file contains the BEGIN RSA PRIVATE KEY and BEGIN CERTIFICATE sections.  It's probably a good idea to backup the certificate file before replacing its contents -- otherwise you might have problems restarting Apache.

4.  Restart Apache HTTP server using the Plesk Admin interface or
$ /etc/init.d/service httpd restart

That's it.

Friday, April 2, 2010

How to Download and Install PERL modules in Ubuntu

I haven't had any luck using CPAN to install PERL modules in Ubuntu.  The other day I was installing PERL modules while upgrading a bugzilla installation and using apt-cache and and apt-get did the trick!

For example, if you are looking for Email-Send module, use "apt-cache search":
# apt-cache search perl Email-Send

The following modules will be displayed:

libemail-send-io-perl - Send mail via IO::All
libemail-send-perl - Simply Sending Email

Now, to install the two modules above, use "apt-get install":
# apt-get install libemail-send-io-perl
# apt-get install libemail-send-perl

Good luck!

How to Find Out the Version of your Ubuntu Installation

To find out the version of Ubuntu you are running, go to your prompt:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 9.04
Release:        9.04
Codename:       jaunty