Mojavi Project

Developing new paths

Archive for September, 2008

September-26-08

Maximizing your blog

posted by admin

We recently started to write about using blogs to help increase your sites performance in the search engines. It is estimated that approx. 80% of all services being bought on the internet are found through search engines. So this is why it is so important to consult with and implement good and ethical Search Engine Optimization techniques. So what are some good examples. We have found that using blogs is one key and growing use of how you can increase your sites exposure and search engine position. You can see that blogs that have specific niche content like Miss Gullible can help separate your blog from the other millions that are created every month.

As you will read in almost every book, website, and ezine on increasing your internet exposure content is what the search engine spiders are looking for. For example creating a niche blog on avoiding online scams can create a buzz and drive unique visitors to your site. So when they do find your site how can you maximize your chances that you will be indexed quickly. You must also make sure that all of your pages on your site can be found as this will add value to your site. Indexing of multiple pages on your website will make you more attractive to search engines and help your customers to find products and services that you may not otherwise list on your main page. So if you have a personal blog that you use as a personal journal or have a passion about a particular subject like avoiding investment schemes on the internet that can really add value to your readers then forge ahead and you may one day find yourself on the top of the blogging world.

September-21-08

Build on your strengths

posted by admin

I have read a few books on what it takes to become successful in business and selling. From Zig Ziglar to Kenneth Blanchard they all talk about the tools that are needed to close the deal or build relationships with customers. One of the more interesting books that we have read is Discover your Strengths. This very simple concept talks about selling to your strengths instead of trying to improve on your weaknesses. This was always the case when I first started out in sales management is that we would look for areas of improvement and then try and coach to those areas to make the person stronger. Through developing a persons strengths they will become better at what they do and be more passionate about what they love to do.

I am true believer in the basic point that you have to be passionate about what you sell or do or you are just wasting your time. So pick up a copy or download the book and listen to the principles. You can even take a Strengths finder assessment online that will help you find your true strengths.

Tags:
September-18-08

Global Templating

posted by admin

Global Templating - The Decorator Pattern

* Enter Decorator
* Insert Here: Slots
* Let’s Decorate!
o Creating a Global Template
o Putting the ornaments up

Ever since Mojavi 3 was released earlier this year, people have been looking to create a flexible global templating solution. From using post filters to page controllers, people have been looking for a way to create simple and managable global templates that will allow for a great deal of flexibility without compromising the need for larges amount of duplicated code.
Enter Decorator

The Decorator design pattern, like every other pattern, is nothing more than a way to talk about a resuable concept, or pattern, that a programmer might encounter while coding applications. The Decorator pattern’s strength is it’s ability to serve as a wrapper for that particular object, while leaving objects like it in tact.

The Decorator pattern has been implemented in the View class, providing a number of new methods:

public function setSlot ($attributeName, $moduleName, $actionName)
public function setDecoratorDirectory ($directory)
public function isDecorator ()
protected function & getSlots ()
public function getDecoratorTemplate ()
public function getDecoratorDirectory ()
protected function & decorate (&$content)

Now a brief explanation of what each of these do:

* setSlot - Creates a slot entry based upon the results of a specially controlled controller->forward()
* setDecoratorTemplate - Sets the template that you’re going to use for your decorator. This method also automatically turns the decorator switch to true
* isDecorator - returns true is setDecoratorTemplate has been called, otherwise false.
* getSlots - Returns an array of the slots.
* getDecoratorTemplate - Returns the decorator template.
* getDecoratorDirectory - Returns the decorator directory.
* decorate - A method that must be implemented in derivate Views.

Note: these functions are in View, so all derivates of View (ie PHPView) have access.
Insert Here: Slots

Slots is a new name for an old concept. More or less, slots serve as placeholders that can be populated by the results of a $controller->foward($mod, $act) call. And, as you can see, the setSlot method takes three parameters:

public function setSlot ($attributeName, $moduleName, $actionName)

The first parameter, $attributeName, serves as the name of the slot. The next two parameters will be used to get the results of that Action, put it in a buffer, and place it into the internal $slots memeber variable.
Let’s Decorate!

The usage pattern of Views changes little with the implementation of the decorator pattern at the module level (though secondary View authors, ie SmartyView et al, do have a few things to play with).

Now let’s look at what you’re going to need to do implement the new, and NEW decorator features of Mojavi.
Creating a Global Template

First off, we’re going to need a great big christma..ehh..template to decorate. While I won’t get into breaking down and factoring our global template, keep in mind that this is not the only way to do this.

Example 2: The Christmas Tree (myGlobalTemplate.php)

Side note: Sometimes you’ll have issues with that <?xml [....] ?> declaration, an easy
workaround is to disable short tags in your php.ini file, or to use ini_set() to disable
it.

<?xml version=”1.0″ encoding=”iso-8859-1″?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en-us”>

<head>

<title><?php echo $template['title']; ?></title>

<meta http-equiv=”Content-Type” content=”application/xhtml+xml; charset=utf-8″/>
<style type=”text/css” media=”all”>

<!–Css slot–>
<?php echo $template['css']; ?>

</style>

</head>

<body>

<!–menu slot–>
<div id=”menu”>

<?php echo $template['menu']; ?>

</div>

<!–main content slot–>
<div id=”main”>

<?php echo $template['content']; ?>

</div>

</body>
</html>

Putting the ornaments up

So now that we have our decorator template, we need to decorate it. The decorating process is fairly simple, and consists of the following simple steps:

* Setting the decorator directory using setDecoratorDirectory() (Optional)
* Setting the decorator template using setDecoratorTemplate()
* Setting slots setSlot()

For example,

Example 3: In the View (IndexSuccessView.class.php)

class IndexSuccessView extends PHPView
{

public function execute ()
{

// set our template
$this->setTemplate(’IndexSuccess.php’);

//setup our decorator template
$this->setDecoratorDirectory(MO_TEMPLATE_DIR);
$this->setDecoratorTemplate(’myGlobalTemplate.php’);

//setup our slots
//(SlotName, Module, Action)
$this->setSlot(’menu’, ‘Content’, ‘PopulateMenu’);
$this->setSlot(’css’, ‘Content’, ‘PopulateCss’);

// set the title
$this->setAttribute(’title’, ‘Default Action’);

}

}

Now you might be wondering where the content slot is being populated. Well, content is a reserved slot that is automatically populated with the output of the originally requested Action/View pair.

To be Continued….

September-13-08

Protect your data

posted by admin

We just went through the painful process of upgrading one of our online server accounts to move to a more robust server. It is like moving into a new home in that you never know how much stuff you have until you have to pack it all. We had to clean out so many files, SQL databases it was a dreadful process but one that was really needed. Our vendor helped us to do a Online Backup which was actually quite painless. I was first told that I would have download all the files from the old server to my PC, then upload all those files back to the new server. There were over 4000 total files in all not counting the 25 SQL databases. With their help we did a complete site backup to a zipped file, and the reloaded that back to the new server in a matter of hours.

Tags:
September-8-08

Your data is worth a lot

posted by admin

spyware removal

Remote installation and trouble shooting is a great way to take care of adware and malicious problems that plague many computers today. You can tell if you have problems if you notice that your computer is running slower and you start to have unexplained error messages. At pcaskme.com they can diagnose and help solve your problems by tapping into your computer and helping you get your computer in optimal shape. They offer a range of packaged services like ridding your PC of spyware or you can buy blocks of time which is actually very inexpensive. All you need to do is call their 1-800 number and they will log onto your computer through secure connection and help get your PC back to normal. Other services that they offer include:

  • PC Tune Up
  • Vista Upgrade Install/Reinstall
  • Vista Upgrade Advisor
  • Vista Basic Training
Tags:
September-4-08

MacBook is taking over

posted by admin

A another new breakthrough from Apple who brought us the iPod, the iPhone and now the new laptop that is the thinnest notebook available. The commercials are impressive and looking at this laptop it is hard to believe that it is actually thin enough to fit into a mailing envelope. I have always been a PC guy and all thelaptops that I have owned have been windows based. This may all have to change especially with as much traveling as I have to do lately the convenience that this new technology will bring will be great.

As I did my search for available units it was difficult to locate the new laptops but the older Macbooks can be found across sites like Savebuckets.co.uk. This site is really cool if you are looking for electronics, games, and MP3 players. You type in the item you are looking for then it will return searches that list the price and the various stores that have this item for sale. It helps you shop multiple locations in one click of the mouse and then you can visit those sites online and make your final decision. The site is easy to navigate and does not introduce pop-ups like many of the shopping comparison sites. As you can see by the name they are UK based and most of the stores that they list are in the UK it gives everyone a good idea of the fair market value of items you are looking for. Check them out today and see what bargains you can find and save buckets of money.

Tags:
September-1-08

Increase your knowledge through reading

posted by admin

I have always been a little lazy when it comes to reading. I will start a book, but then soon for some reason I put it aside and then never finish. This is what has madeaudiobooks for download such a great find for me. Since I am in my car frequently I can just put one in the CD player and then gain some additional knowledge while in my commute. Most recently I was asked to read “The Secret” a very popular book on what changes peoples lives. I was able to find it for download and then listened to it on my iPod. The book is quite amazing and very simple to grasp the concepts. The basic principle going back to ancient times is the Law of Attraction. If you wish or desire for something hard enough your dreams will come true.

At Anearforbooks.com they have “The Secret”, and many other great books for download with no membership needed. They feature everything from business to old time movies. The great part is that you can download them from any PC so that if you are on the road you can download while you are traveling.

Tags:
Technology Blogs - BlogCatalog Blog Directory