brandondawson.org Drupal Website Developer and Consultant

20Feb/110

@font-face not working with firefox resulting in 206 “Partial Content”

Solution is simply to make sure you're calling the typeface using @font-face from the same subdomain as you are the rest of the site. (In other words, make sure your use of "www." matches both how you're trying to view the site and how it's being pulled by @font-face in your stylesheet.)

I usually use an .htaccess file to do this, which in this case I'd temporarily commented out, then forgotten. That code is:



#comment and uncomment as needed
#RewriteCond %{HTTP_HOST} ^your-site-here\.com$ [NC]
#RewriteRule ^(.*)$ http://www.your-site-here.com/$1 [L,R=301]
# uncomment the following as well:
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301]


@font-face not working with firefox

18Feb/113

New YouTube iframe embed code & wmode=transparent

Is the new YouTube embed code getting in the way of your layout by refusing to display above or below a floated or positioned element?

All you've got to do is tuck one of these little bits of code at the tail end of the URL, depending on your exact situation:

&wmode=Opaque

&wmode=transparent

23Jun/100

“Invalid Key” error for jos_session, jos_components, and jos_core_acl_aco tables in Joomla database

I ran into this one this evening, and at its root, it comes down to some changes made between MySQL 5.0 and 5.1.

Problem is, fixing the issues created by these changes seems to be more involved than the documentation implies. Suggested fixes such as commenting out the skip-bdb option in my.cnf did not work in this case.

After spending hours perusing support sites, and banging my head repeatedly against these tables that were being reported as "corrupt" and unrepairable, I finally hit upon a low-tech solution.

I downloaded the actual database files from /var/lib/mysql, tucked it into the /var/lib/mysql directory of a MySQL 5.0 install, exported the SQL queries and re-imported them into my 5.1 install.

This solution isn't for everyone, of course, because it requires access to a 5.0 install, but it worked for me.

17Jun/103

A Brief History of whitehouse.gov redesigns

During a brief foray into Wikipedia today, I found myself deposited on a site operated by the National Archives, that preserved the whitehouse.gov website as it existed during the transfer of power between George W. Bush and Barack Obama.

It got me to thinking: viewing the evolving capabilities, style conventions, and sensibilities of the website of this most visible of American institutions might provide insights for communicators of any stripe, whether they be marketers, writers, or political operators/organizations such as the White House is.

Failing that, it's still an interesting walk through 256-color gifs, table layouts, the dawn of Javascript, and the birth of powerful content management systems.

Since the Clinton-era website was not preserved by the National Archives, I had to turn to Archive.org, "The Internet Wayback Machine", in order to see the real evolution, as well as the evolving internet face of the subsequent Bush Administration.

Here are some screenshots documenting that evolution. You can click on the screenshots to pull up an embiggened slideshow view.

14Jun/100

A design rumination…

It's clear what joke the original creator of this image is making.

Less clear is why this formula "just works".

27Apr/100

McAfee McAgent.exe

I've decided that the mcagent.exe process installed by McAfee's Total Protection 2010 would be more aptly named "McHippie.exe".

Why? Because it just sits around in a daze, doing nothing, while consuming all your resources.

Bah-rum-bump.

(With apologies to actual, honest-to-God, granola-eating hippies.)

8Mar/100

Globally suppress or disable “core” RSS functionality in Joomla 1.5

I've constantly had this problem, as I'll often want to replace the "Joomla default" feeds with Feedburner. I finally came across a solution on the Joomla forums that worked really well, and I wanted to share it here for posterity, as it involves simply applying an SQL query to suppress display of the feed functionality across all menu items.

Therefore, it requires no hacking of core files or adding any new modules or components. I've extended the version on the J! forums by adding instructions for doing this from the command line on a LAMP server.

How to globally suppress or disable the core RSS in Joomla 1.5

1.) Edit your template and include a link to your Feedburner or other alternative RSS feed.
From here, I'll provide two sets of instructions: One for those with phpMyAdmin, one for those with only shell access.

phpMyAdmin

2.) Open your database within the phpMyAdmin application.
3.) Export your database so that you have a backup.
4.) Click on the SQL tab, and insert the following query:
update jos_menu set params = replace(params, 'show_feed_link=1', 'show_feed_link=0')
5.) Click "Go".

CLI method

2.) Open your shell.
3.) Dump your database so you have a backup in case things go sideways.
mysqldump -u your_database_username_here -p your_database_name_here > your_database_name.sql
4.) Run this command to run the appropriate query:
mysql -u your_database_username_here -p your_database_name_here -e "update jos_menu set params = replace(params, 'show_feed_link=1', 'show_feed_link=0')"

4Jan/100

Plesk SSO errors

A little tip here: If you're getting this message when trying to log into Plesk Billing via Plesk:

Warning: fopen(/var/log/sso/sso.log) [function.fopen]: failed to open stream: Permission denied in /usr/local/sso/lib/Log.php on line 24 FATAL ERROR: Can not open log file '/var/log/sso/sso.log' (CWD is /usr/local/sso)

This would seem to be being caused by changing the hostname, for which Plesk Billing generates an automatic self-signed SSL certificate for. Attempting to re-register the hostname using the /usr/local/psa/bin/sso utility is useless in this context, as it keeps beating up against the entrenched cert.

To remedy, simply:
1.) Back up your Plesk Billing database
2.) command: yum remove plesk-billing
3.) Re-add Plesk Billing via the Plesk Updater

Tagged as: No Comments
6Dec/090

How to fix Plesk with only a “Continue” button

Oddly enough, this actually is a feature and not a bug. It hinges on the Single Sign-on feature linking Plesk Billing and Plesk itself. Plesk is trying to redirect to the Billing side to take login credentials.

Just open ports 11443/11444 on your firewall, and you're good to go.

More info here.

22Oct/090

What is Network Neutrality?

I've seen a couple articles today where the Republicans are trying to politicize the concept of network neutrality, comparing it in one case to "a Fairness Doctrine for the Internet".

Well, it's not that. And I could spend several paragraphs excoriating Republicans for yet-another weak attempt to convince uninformed voters that Obama's going to [fill-in-the-blank], but I won't. Instead, I will simply present you with What Net Neutrality Is, and What Net Neutrality Isn't.