Fix For: Pango-WARNING **: failed to choose a font, expect ugly output and Other FireFox Errors

$ firefox &
[1] 1933

$
(firefox:1947): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type=’PangoRenderFc’, script=’common’
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -? 1: Failed to get connection to session: /bin/dbus-launch terminated abnormally without any error message)

(firefox:1947): Pango-WARNING **: failed to choose a font, expect ugly → Continue reading “Fix For: Pango-WARNING **: failed to choose a font, expect ugly output and Other FireFox Errors”

Redirecting All Web Requests to the WWW. DNS Entry for Your Web Site

If you would like to redirect all non ‘www’ requests for pages on your site to the ‘www’ dns entry add the following to your .htaccess file in the document root of your site:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Continue reading “Redirecting All Web Requests to the WWW. DNS Entry for Your Web Site”

Enabling Parsing and Processing of PHP code in Files With .html Extensions for GoDaddy.com Hosting Accounts

There are times when a web master will want to have the default file extension for a given website stay consistent regardless of how the files are preprocessed on the server-side or what server-side scripting language is being used.

To set up your GoDaddy.com 4GH, Linux hosted account to parse PHP code in .html files, do the following:

  1. Log in to your account.
  2. Go to the control panel for the web site in question.
  3. In the control panel click on
Continue reading “Enabling Parsing and Processing of PHP code in Files With .html Extensions for GoDaddy.com Hosting Accounts”

Cloned VMware CentOS6 Server and "device eth0 does not seem to be present, delaying initialization" Error

Recently, I cloned a vmware install of CentOS6 and after firing up the clone and trying to start networking received the error: “device eth0 does not seem to be present, delaying initialization”

It turns out that the NIC on the cloned machine was being renamed and registered to eth1.

To list the current ethn devices:

# ls /sys/class/net
eth1 lo

There is a device manager, udev, which stores the settings from the NIC of the vm prior to the cloning → Continue reading “Cloned VMware CentOS6 Server and "device eth0 does not seem to be present, delaying initialization" Error”

Java: Capitalize the First Letter in a String

A seemingly trivial task, but worth jotting down for future reference.

String sourceString = “this is some string”;
String convertedString = String.format(“%s%s”, Character.toUpperCase(sourceString.charAt(0)), sourceString.substring(1));
Continue reading “Java: Capitalize the First Letter in a String”