The decorating Pattern

0 comments

Posted on 28th February 2013 by Jeff Rogers in Mojavi Project

,

Before we begin we wanted to provide a quick insight into some of the open source files that we use and came across a file extension DOTX which is native to MS Outlook using XML. This particular file type DOTX was instituted to secure the protocol in which MS was written only giving limited source to outside vendors. We give a brief update to help you understand the open source nature of Mojavi 3.0.

  • Enter Decorator
  • Insert Here: Slots
  • Let’s Decorate!
    • Creating a Global Template
    • 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. So in the end for file extension DOTX type coding you will need to have the right drivers in order to help your various programs communicate.

To be Continued..

Incoming search terms:

Enjoy your music with BassBoomz

1 comment

Posted on 21st February 2013 by Jeff Rogers in Technology

, , , , , , ,

The evolution of music through digital channels has changed how we purchase and listen to music. Thanks to new portable bluetooth speaker like BassBoomz we are now able to take our music and high-def sound where ever we go. Before we get into the newest piece of audio greatness we just received I wanted to put some context on how we got to this point. I found this great infographic that shows the history on how we have listened to and purchased music. Back in the day you would purchase an entire album and then have Boom BOxfriends come over to listen on your stereo. Music became more portable through the introduction of CD’s where we had portable yet limited sound quality players. BoomBoxes became more popular and they started to range in size in and features. When the iPod was introduced this changed the game and would enable consumers to demand more choices and better quality. Where we buy and listen to music has drastically changed and now we are sharing songs across many of the social network sites and there are even specific sites that allow you to share music with like minded people.

While all this sharing and mobility of music has been great for the consumer, having the ability to listen to your newest tunes in high quality sound without the need to have wires and a large device has been lacking. There are more and more bluetooth devices that have entered the market and they range in price and quality. That is why I was interested in trying out the new BassBoomz from the makers of BassBuds earphones. I have a pair of their earphones and the clarity and quality that they produce is very good. I got my metallic blue BazzBoomz and at first I was wondering how this small device was going to measure up to my current JamBox that I use. Once I received the package I had about three seconds to look at it before my three kids swept it away to link up to their iPod touch and test it out. They had it setup in about minute and were blasting the newest single from Gotye. This small blue cylinder produced sound that could be hear from our basement and the clarity and tones where very impressive. I have listed their exact specs below. Without a doubt I can recommend to anyone looking to get a new bluetooth speaker for their iPod, iPad, or any other bluetooth enabled device and want great sound then look at the latest offering from BassBoomz. If you act now they are offering $46 off the US retail price by using the following code: BBZ017532

Here is a picture of our BassBoomz speaker.

BassBooms Speaker

 

 

Highlights

  • Explosive sound quality – twist and release the Bass Expansion system
  • Ideal for your smartphone, MP3 players, tablets and laptops
  • Compatible with all wireless devices with a Bluetooth connection
  • Compatiable with any audio device that has a 3.5mm audio jack output
  • Dual connectivity available – connect 2 BassBoomz together for double the sound
  • Portable and pocket-sized for your music on-the-go!

 

What’s in the box

  • BassBoomz portable Bluetooth speaker

  • USB charging cable

  • AUX cable

Follow them on Twitter at #BassBoomz  and Instagram

 

 

Digital music and BassBoomz

Digital Music infographic courtesy of Daily Infographic

Enhanced by Zemanta

SEO tools for link building with Advanced Web Ranking

18 comments

Posted on 20th February 2013 by Jeff Rogers in Marketing

, , , , , , ,

SEO tools for link building

SEO Tools

Web linking tools

The dream of a SEO expert or any internet marketer is to capture the highest spot in the Google ranking with their desired keyword. This Search Engine Optimization or better known as SEO is a complex subject which has been gaining great popularity among the experts. It has been extensively debated by experts all over the world to figure out how the websites can be ranked on the top spot of Google. It is difficult to try and figure out the likes and dislikes of Google and thereby write accordingly. Google is like a big black box and no one has ideas of what will make it to the top and what will not. This leads to the development of SEO tools for the enhancement of the status of the keywords used in the content. There are many online tools available for SEO which an individual can take advantage of and enhance their ranking in the search engine in a good way. These tools are immensely helpful in the increasing of the importance of the keywords and this will lead to increasing the ranking of the website. We will be talking about some of the features of both Advanced Web Ranking and Advanced Link Manager, both are tools that when used together can help keep your keywords and websites on the good side of Google and Yahoo updates. I would encourage you to download the free trial which gives you 30 day access so you can try all the tools for yourself. There are some great training guides as well to help get you the most out of your trial.

Some of the most useful link building tools is as follow. One can follow them to get traffic for the site.

Link Building Services

One of the most important tasks of a SEO expert is to build links to their websites and inner pages. You can take advantage of services like link building so that you can distribute your links to a number of places like blogs, Web 2.0 sites, video sites and so on. Another great way to build links is to write articles and submit them to the most popular article directories. This is one of the quickest ways to build links to your website. Writing good articles will be a good way of attracting traffic to the sites.

 

Link Building

With link building tools from Advanced Web Ranking you can enter your competitors’ URL in the search box and find out the number of links and the websites they are targeting to maintain the top position. This is one part of the overall product suite that can have a major impact on your overall website optimization. The setup is easy and it is included in your dashboard so with just a few clicks you are on your way to improve your links and understanding what your competitors are doing.

Website Opitmization

You can use website optimization to know how the website of your competitor has evolved over a period of time. This will help to keep track of the competitors in the business.

AWS ranking toolKeyword Search Tools

Keywords are so critical for SEO experts. There are a number of keyword search tools that you can take advantage of. These include free tools like Google Keyword tool and free version of Word tracker and also paid tools like Market Samurai, Keyword Elite, Word tracker etc.

 

Keyword Density Tool

This is a great tool to check if your webpage or website has excessive stuffing of keywords and correct them accordingly. This helps to spread the keywords in a good manner. In AWR you can use the keyword research tool to find high paying keywords and understand where your competitors are ranking.

Also use Advanced Web Ranking too understand which keywords and URL’s are bringing in the most traffic. See this simple YouTube Video here:

YouTube Preview Image

Bad Link Checker Tool

Using this tool, you can quickly find out if your website is linking to any bad websites. And once you detect any sites, you should immediately remove the link from your site.

Therefore one must take the time and accomplish the SEO tasks in a correct manner to get the best rankings and the highest traffic for the site.

In this section we are going to look at Advanced Link Manager more in depth.

Every webmaster has an own techniques of link building campaign. This differs from one person to another. And this makes the difference in the website of various individuals. However the most important and the most popular one is the search engine friendly link building one. This is one campaign style which works really well with the various search engines like Yahoo, Google and helps in the listing of the keywords in the first page of the search engines. This helps in the building of links successfully and people will come to know about the links that you have provided with the keywords. One must never build links in a flat manner. This must never be done when the domain that you have is relatively new as compared to the others. This will do more harm than good for your website. The building of the links must be a natural exercise and must be done carefully. This will help the links to look natural and go well with the website.

AWS ranking tool

AWS ranking tool

The link building campaign which one can follow for the relatively new sites are explained below. This involves a series of six easy steps.

Social bookmarking

Every link building campaign starts with manual social bookmarking. You have to submit unique content to every social media site and the keywords should be 100% related to your website or else Google will consider as a keyword spam. Social bookmarking is the terrific method to gain social media traffic for any website. With Advanced Link Manager you can monitor your social networking signals which according to many industry experts this will be more important in overall search engine rankings.

Directory submission

Try to submit your site to top 300 niche related directories manually with correct keywords and description. This will help in the creation of good links which will be helpful for the website.

Article marketing

Many individuals feel that content is king. And it can bring organic traffic from search engines. Article marketing is one of the best off page optimization to gain high quality links from article directories. An individual can write an article and spin it to ten more unique articles manually. Then they can try to submit each article manually to each article directory. Through the link building campaign one give much stress to article marketing because it deals with content and quality contextual link building. With their Link analyzer manager you can see the value and potential harm that links may be having on your search results. This is vital for long term success of your overall online business.

Blog commenting

One of the most powerful link building method which can increase your site popularity, visibility and higher search engine ranking position results for the targeted keywords is by blog commenting. One must never spam websites and forums with improper comments and many anchors. This will not be good for the website.

Contextual links

Link popularity toolContextual links looks very natural to major search engines. Content based theme related links are recommended highly. Search theme related websites and request a blog post from the website owners. These links will definitely help you in higher rankings in the search engines.

Blog roll links

Theme based home page links are very popular in the web. Blog roll links helps you in getting site wide links. If a website is having 1000 indexed inner pages then you will get 1000 backlinks. Try to contact webmasters for blog roll links whose websites are 100% related to your site. If he or she agrees then pay some incentives for site wide blog roll links.

These are the 6 important link building methods in link building campaign. These methods are strong enough to rank in higher search engine rankings. There are many more link building methods like forum posting, sponsored links, press release and submission and many more methods. But those methods are not so strong enough to rank and will require immense experience on the part of the individual to achieve success in them.

 

Summary on SEO Tools from Advanced Web Ranking:

With both Advanced Web Ranking and Advanced Link Manager you have several options to choose from. Their Standard, Enterprise and Professional offer many of the same features with differences in creating and printing reports, identifying partners and enhanced resources in the tools. This holds true for both platforms and we have had the chance to try out the enterprise solution for both. After running through various scenarios on both platforms I can say that it is easy to use and the value of information is easy to understand and most importantly clear on what you need to do in order to be successful in getting better search engine rankings for your sites. I would recommend downloading the free trial for each and running a few reports and see for yourself.

Enhanced by Zemanta

Incoming search terms:

Where to start with Mojavi 3

0 comments

Posted on 20th February 2013 by Jeff Rogers in Mojavi Project

In order for Mojavi to continue we are looking for a few good web programmers to help with the last programming pieces and contribute to the forum. There are tons of web developer jobs that are currently available online and we know that many are well paid positions. Because this is an open source code this would be for the good of the development community.
Finally, there are a couple of ways you can test this module. The first and quickest way is just to instruct the controller using the url. Just add the module and action. Here’s what it would look like http://yourserver.com/index.php?module=Test&action=First.The second way is by changing the default module in the settings.ini file in the webapp/config directory.

Under [.actions] you will find the default module. Find the following two lines and change the default module and action.

DEFAULT_MODULE = “Default”
DEFAULT_ACTION = “Index”

After you change the default module and action it should look like this

DEFAULT_MODULE = “Test”
DEFAULT_ACTION = “First”
You are now ready to test your code. Just point your browser to the index.php and see the fruit of your labor. Contributing Author By Richard D Shank

Top 5 reasons to use Watchbot home security camera

0 comments

Posted on 19th February 2013 by Jeff Rogers in Marketing

, , , , , , , ,

In our local area we have been seeing more reports on break-ins and burglaries. In many cases these events are happening during the day which is even more concerning since for those with families. I started to do some research on ways to help protect and deter potential threats that may happen. We were fortunate enough to come across Watchbot home security camera which is wireless IP camera. I will detail the features of this great tool to help protect your family in just a few minutes but wanted to relay some common areas that are most vulnerable in your home.
watchbot security camera

 

 

The top three most vulnerable areas that intruders look to enter a home are:

  •  The front door: They typically look for older doors that can be kicked in easily or simply walking up to the door and opening an unlocked door
  •  First floor window: Opening a screen and breaking the glass is easy and can be done under a minute
  •  Backdoor/Porch: These areas provide a discreet entry into your home that are not visible to others.

The reason I listed off these three areas of access is that they are easy to secure and protect. That is why I am reviewing the Watchbot home security camera and now the top five reasons on why you need or several for your home:

 

  1.  Easy to install in any location
  2.  Secure remote access to view and capture what is happening at your home or place of business 24/7
  3.  Motion detection to enable recording of possible actions that are taking place at your home
  4.  Piece of mind knowing that your home now has a deterrent for for possible intruders
  5.  Price: Right now and for the next few weeks you can save up to 50% off the Watchbot camera. Use the Watchbot discount code WB270629 and save on one or multiple cameras.

You can use the #watchbot on Twitter and Instagram to follow the conversation and be alerted to any deals.

Based on the above reasons on purchasing a Watchbot home security camera I thought I would highlight some of the key features that this powerful little camera offers. We just received one in the mail today and I can say it was a simple as they show on their website to setup. I did do some research on various IP cameras that would help protect our home from looking on the internet to visiting several of our local electronic stores. While you will see many types of cameras some of the key features that I list below should be on your list when comparing home security cameras. Now onto some of the key features.

  • Wireless IP camera that can be expanded
  • Able to view your camera while away from home either through the web or through your smartphone
  • Motion detection
  • Night vision that will allow your camera to spot and activate when it spots action
  • Pan and tilt features
  • Recording and two-way audio. The two way audio is really a great feature and allows you to talk through your camera to possibly scare off a would be intruder or even have at your front door to alert strangers that you are home.

Lastly, I included the infographic below because it shows the evolution of Home Security and how far we have come in protecting our family and property. The best way to have piece of mind is prevention. Just the simple site of cameras at your most vulnerable access points that we covered above can help deter even the most persistent intruders.

Here is a picture of what you will get:

watchbot



[Via ProtectYourHome.com]

Enhanced by Zemanta

Incoming search terms:

Using email newsletters to help build your reach

0 comments

Posted on 12th February 2013 by Jeff Rogers in Blogging |Marketing

, , , , , , ,

Mad Mimi Email Many websites and blogs miss the chance to interact with their customers by capturing their email and then using this for a way to interact with and update their customers on their brand and products. More and more companies are creating educational email newsletters that are meant just to interact with their readers and not sell them something. Many companies have jumped into the social media space and hope that by creating a Facebook page this will drive customers to their site. The term social media marketing has taken on various definitions and those selling those services have touted them as the only way to advertise and interact with customers.

You can create email newsletters that include links back to your social network profile and help build a long-term engagement for your blog or business. With the appropriate email marketing solutions from leading providers like Mad Mimi email newsletters you can grow your business in multiple channels and create value through email that your customer will want to open and read. I have several companies that I partner with that use email newsletters to send out communications and they always look very professional and packed with useful information. You must first develop a plan to gain permission from your customers to converse with them through email and then, above all else, do not abuse the privilege. Offer value whenever you do send them something and tie in your Facebook or Twitter page in the body of the email for ways to stay in touch with your company. Used together, these tools can help you grow and maintain long term relationships with your customers

Enhanced by Zemanta

PHP Development Is Becoming Increasingly Popular

1 comment

Posted on 12th February 2013 by Mike in Marketing |Technology

PHP is an abbreviated form for Hypertext Pre-processor which is gaining in popularity because of the wide nature of functions for which it can be used for. Besides it becomes easy for newcomers to learn the basics. Also many more advanced programmers are also turning to PHP development as there is simply no limit to what you can do if the same is used properly.

Where Can PHP be used?

You can use PHP on many of the operating systems, which makes it quite resourceful. You can use it on Linux, MAC OS X Microsoft Windows and even other OS’s.

Advantages Of PHP

It allows the user to choose an operating system as well as a web browser with which you are most comfortable with. Moreover, it also supports any kind of database that you could think of.

As this software is resourceful in nature, it can be used by budding and new programmers along with the more advanced ones. In just a few hours, it is possible for you to master the basics of PHP development. In this way you can easily begin using PHP to your advantage. Moreover, if you are an experienced programmer, you can easily make use of the more advanced features of PHP which will ultimately help you to capitalize on your potential.

In today s software world, Web development is becoming a more prosperous industry. With the Internet and the rise of the computer industry in general is also becoming quite lucrative. It is for this reason that web development is a flourishing industry in which everyone wants to be a part. Hence mastering proper PHP development strategies will be of benefit to you only. You can make use of this development of basic programming as well as many amazing advanced programming which only adds to its possible potential for programmers.

If you wish to be a successful web developer, you will have to master all of the different aspects of computer programming language. Moreover as this industry is growing day by day when compared to any other industry right now, you will obviously having new languages to learn and new programming skills to acquire. Since PHP development isn’t all that new, it is becoming the most sought after method amongst many computer programmers. The resourcefulness of this language gives you a combined and easy learning curve, thereby making it a very desirable language to learn.

Those of you who are quite familiar with the language code, then it will become easy for you to use PHP development to better your skills as well as improving your output. There are always new things to learn on an almost daily basis. It is because of this that you always have to be on the top of your game. It is a fact that the world of PHP development is ever changing and will continue to flourish. It is therefore advisable for you to stay abreast with the new capabilities of this type of programming. This form of development is one of the most effective and simple ways to use programming devices available today.

Mike is a freelance writer who writes on different topics such as technology, business, finance, gadgets. He holds bachelor’s degree in electronics. His famous articles includes article on dex consulting.

Everything that you want to know about ADSL services

0 comments

Posted on 7th February 2013 by Jeff Rogers in Technology

Everything that you want to know about ADSL services

Currently without the use of digital communication we cannot even think about a day which means that we have now depended entirely upon internet services. Although still a few years back there was no internet services and people used to depend on telephone companies. But now, almost every company is offering internet and mobile phone services making it difficult for telephone organizations to strive in the market.

Telephone is now replaced by ADSL service

Nowadays, telecom systems are no longer used unlike a few years back and therefore it has almost become obsolete. The fast web company a lot of time to study and understand the telecommunication market. If you able to research the market completely then you will understand that there is ample scope in the tech savvy tele-market. In order to attract clients today no organization can stick to its old formula of attracting clients and therefore it has to be updated with all the latest technologies and trends of the market. Some companies are still not clear with the modern up gradation and they are thinking about the latest changes in the cut edge competitive market while others are enhancing their old services to meet the rising expectations of the users.

Intense competition in the market

Today all telephone companies offer bands and width and cheap rates to their customers. All of them are now focusing on designing systematic strategies as well as plans to eradicate all kinds of disruption as presently there are so many alternatives that any disruption can throw away a company directly from the market of competition. With the increasing demands many new companies are emerging in the field which means that it has given rise to a huge intense competition in the market. This is the reason why each company is reducing their prices and enhancing the service facilities.

Offers being provided by various telecommunication companies

Companies are now trying the best to satisfy clients and almost all of them are going down on their knees. Even huge MNCs and organizations are now developing network as per the clients demand. This will enable them to attract more and more customers. Several companies are now hiring professional experts to design new tech savvy procedures. In order to mark the future and present scenario, various companies are focusing on hiring of experienced candidates. They know how to understand the clients and design products as per their preferences.

Companies are now always tending to understand the importance of the network for the firms who are using their services. This lead those to use the top quality system to cope up with the work pressure effectively. With time more and more companies are coming up and each of them is trying to provide unhindered and smooth services to attract their clients.

Fastweb Company

Fast web business is an Italian company and it is engaged in dealing with telephone connections. Today, the telecom sector is undergoing rapid changes and with the boon of technology, now almost all companies are undergoing rapid changes. With the advent of technologies the entire meaning of telecom world has changed drastically over the last few years.

Mike is a freelance writer who writes on different topics such as technology, business, finance, gadgets. He holds bachelor’s degree in electronics. His famous articles includes article on fastweb business.

 

Enhanced by Zemanta