A Humble Little Hobbit Blog

Chronicling the life of a cubicle hobbit struggling to create well-written programs and avoid death due to boredom.

Hack - Adding syntax highlighting to Zoo Blog App

on Monday, 02 April 2012. Posted in Programming, PHP

Normally I don't advocate hacking the core of a program. There is usually a way around the issue without patching the core and causing upgrade headaches. But in some cases it can't be avoided. So what you do is document the change and add the patch to source control if you have access to it.

Zoo is a great little CCK from YooTheme. It comes out of the box with some very nifty little apps one of which has a great syntax-highlighter for code examples. The problem is it's not included in the blogging app just the documentation app.

I found myself wanting syntax highlighting in my blog entries since most of my blogger entries are about programming. After converting all my blogger articles over to Zoo, all of which had been using the same highlighter, it's simple to add it...

Using the Standard Template Library(STL) copy Algorithm

on Sunday, 01 April 2012. Posted in Programming, C/C++

Introduction

This tutorial presents the use of function objects using Standard Template algorithm functions. The tutorial uses a simple inventory program to illustrate the use of these functors.

The first function object, or functor, is used to facilitate the copy algorithm on a data structure. We'll create a simple product structure for an inventory program. I'll prepopulate a data file with values for each member of the structure and we'll load them using the copy algorithmn.

Joomla 1.7.x Remote Blogging with XML-RPC

on Friday, 17 February 2012.

Using Joomla 1.7.x, XML-RPC, MetaWeblog and ScribeFire - Part 2

Introduction

As I've mentioned in a previous post remote blogging via XML-RPC and Joomla can be a real time saver as well as eliminate the need to remember how to use all those quirky online editors. But with the advent of the Joomla 1.6.x and now the 1.7.x/2.5.x release the previous method for setting up remote blogging needs some updating.

Part 4 - Creating a Book Catalog in Joomla 1.5.x with FlexiContent CCK

on Saturday, 23 April 2011. Posted in Programming, PHP

Customizing a Template

Introduction

This part of the tutorial is a continuation of the customization of a template for displaying the product(s) created in the previous part of this tutorial. In part III we added the Product fields for the clone of the default FlexiContent template now we're going to customize it to fit the aesthetics of our site. This part of the tutorial requires you to modify PHP source code, XML and CSS files, so if you're familiar with these types of modifications let's dig in...

Displaying YouTube Videos with Zend Framework and PHP

on Thursday, 14 April 2011. Posted in Programming, PHP

Automatically Display Your YouTube Videos on Your Website

Introduction

This little tutorial will walk you through adding your YouTube channel videos to your website using the Zend Framework. Some might say that this is easy, all you have to do is copy and paste the code from YouTube into your HTML. That's true, but this basic script does it AutoMagically and that's why we build these bloody machines in the first place. Copying and pasting is so 90's :). Join the 21st century and code a bit.

Part 3 - Creating a Book Catalog in Joomla 1.5.x with FlexiContent CCK

on Saturday, 02 April 2011. Posted in Programming, PHP

Creating a Template

Introduction

This part of the tutorial will walk through the customization of a template for displaying the product(s) created in the previous parts of this tutorial. In part one we created a clone of the default FlexiContent template now we'll customize it.

Part 2 - Creating a Book Catalog in Joomla 1.5.x with FlexiContent CCK

on Monday, 14 March 2011. Posted in Programming, PHP

Creating a Product

Introduction

This part of the tutorial will walk through the creation of a product using our previously created fields. Once we create a product we'll add the fields to the display in the template to see what it looks like. In Part 3 we'll rework the template to make it look the way we want it to.

Creating a Book Catalog in Joomla 1.5.x with FlexiContent CCK

on Sunday, 06 March 2011. Posted in Programming, PHP

Part 1 - Creating the Book Type and Fields

Introduction

This series of tutorials assumes you've successfully installed Joomla 1.5.x and FlexiContent 1.5.3c. It also assumes you've got at least one menu item setup and can access FlexiContent from the front-end of your site. For one of the fields you'll also need a download plugin, I used PhocaDownload but others will do fine. I also used another plugin for social bookmarking in a field called SexyBookmarks.

Remote MySQL Development on DreamHost Using MySQL WorkBench CE

on Saturday, 18 December 2010.

An alternative to CLI and phpMyAdmin

Introduction

You can develop a MySQL database from phpMyAdmin or from a shell account but there is another alternative offered by the MySQL WorkBench. Using this tool you can remotely develop a MySQL database on a Dreamhost server as well as other hosted accounts. The same limitations in the DreamHost MySQL installation apply of course, you can't fully create/delete a database from the tool. You have to do it from the control panel.

More WebMarketingMagic/1ShoppingCart Woes

on Monday, 04 October 2010.

The Horse Before the Cart Syndrome

or How to Lose a Couple Dozen Customers in a Month

I've blogged in the past about a shopping cart product, 1ShoppingCart/WebMarketingMagic, I have to use for a site I maintain. Marketing Guru's sing it's praises all over the net but for the life of me I don't see why.

Joomla Remote Blogging with the MetaWeblog API and ScribeFire

on Thursday, 23 September 2010.

Using Joomla, XML-RPC, MetaWeblog and ScribeFire

Introduction

Blogging can be a real pain in the neck, especially if you have to deal with the supplied editor in a CMS system. Seems like every other site I've ever written a blog post for had some quirky little editor with special codes and conditions I needed to worry about. But you can avoid having to use the default editor if the site is setup for remote blogging via XML-RPC. This article will step you through setting up Joomla for remote blogging.

Network Solutions nsHosting Shared Can't Handle Joomla?

on Saturday, 18 September 2010.

The Back Story

For the past couple weeks I've been struggling with Network Solutions (NetSol) and the nsHosting package for several database driven websites. According to NetSol the problem is MySql latency. They said I had incorrectly configured Joomla to use the IP rather than the internal server name they supply. Ok mea culpa. But hold on a minute as I look through the MySql database administration of the control panel what do I see? A helpful little tip staring back at me and I quote, "You will get the best performance from your database if you use the "Server IP" in your scripts and code that calls it." Hmm, me thinks the left hand knowest not what the right hand doeth. So I shoot off a request for clarification and the answer is: Use the internal NetSol Server Alias.

Zen and the Art of Joomla - Media Manager (Basic)

on Tuesday, 23 March 2010.

Video Tour of Joomla Media Manager

Introduction

In this installment of Zen and the Art of Joomla video series, we'll take a basic tour of the Control Panel administration applications for media including the Media Manager. This is the same demo available at http://demo.joomla.org/1.5/administrator

Zen and the Art of Joomla - User Manager (Basic)

on Saturday, 06 March 2010.

Video Tour of Joomla User Manager

Introduction

In this installment of Zen and the Art of Joomla video series, we'll take a basic tour of the Control Panel administration applications for users including the User Manager and Contact Manager. This is the same demo available at http://demo.joomla.org/1.5/administrator

Zen and the Art of Joomla - Control Panel (Basic)

on Saturday, 06 March 2010.

Video Tour of Joomla Control Panel

Introduction

Next in the series of videos about this great Content Management System(CMS) is a brief tour of the Joomla Control Panel, a look at the Global Configuration settings, the Language Manager and the System Info area. This is the same demo available at http://demo.joomla.org/1.5/administrator

[12 3  >>