Tablet Nexus -


Released in 2012 ASUS Nexus 7 became a impression thanks
 largely to price – a seven-inch gadget worth significantly less
 opposition, but it gave good results in standard tests and pleased
owners multimedia capabilities.

the 2013 made Google Nexus 7 has proven time after time that it’s
 a contender in the compact tablet segment. With its $229 starting cost,
 it has shown us that owning a good performing tablet can be snagged
 without forking over a huge investment. Sporting newer specs and a
 larger footprint, the just released Samsung Galaxy Tab S 8.4 has propelled
 Sammy into the limelight of late once again in the tablet space.

Lenovo smartphones comeing to the market


Lenovo finished 2013 as the world’s fifth largest smartphone makerbehind
 Samsung, Apple, Huawei and LG, and the company obviously doesn’t
 intend to exit top 5 this year. That’s why, according to Chinese media,
 throughout 2014 Lenovo wants to launch a total of 60 different
 smartphone models, half of them being LTE-capable.
The first Golden Warrior handset from Lenovo, the S8, has only
 been out for a few weeks or so. That, however, hasn't stopped the
 Chinese smartphone maker from already unveiling its successor - the
Golden Warrior A8. Like the S8, the A8 is dirt cheap and comes with
 some pretty nice specs. The main thing to note here, aside from the
slightly different design that even uses a Samsung-like faux leather
back cover, is the added support for 4G LTE connectivity. The lack
 of that was apparently the main gripe people had with the S8. The
 Lenovo Golden Warrior A8 has a 5-inch 720p HD touchscreen,
 a 13 MP rear camera with dual-LED flash, and a 5 MP front camera
 for selfies. The handset is powered by a MediaTek MT6592 chipset
 with an octa-core CPU. The MediaTek MT6290 LTE modem can
 handle download speeds of up to 150Mbps. The A8 comes with 2GB
 of RAM, and 16GB of built-in storage. It runs Android 4.4.2 KitKat
 with Lenovo's own Vibe UI 2.0 plastered on top.

Of course, we’re now in the second half of the year, and Lenovo already
 introduced various new smartphones, like the high-end K920 which
 sports a Quad HD  display, or the affordable A805e.

Nokia Lumia 930-Windows Phone- with MS Office

Nokia Lumia 930. The model, which comes pre-loaded with Windows Phone 8.1, isn't supposed to be released until July 10th. But at least two Elkjøp customers who pre-ordered the model, have already received them. The phone is priced at 4495 Norwegian Krone $735 USD.

The Nokia Lumia 930 offers a 5 inch screen with resolution of 1080 x 1920 for a pixel density of 441ppi. Under the hood is a quad-core 2.2GHz Snapdragon 800 CPU with the Adreno 330 GPU. 2GB of RAM is on board and 32GB of native storage is included.

iPhone vs Galaxy S5

There's a significant number of iFans in the UK who are fed up with
 waiting for an iPhone with a larger screen and have jumped ship to the
 Samsung Galaxy S5 as a result. It turns out that 26% of new Samsung Galaxy S5
 users have switched from the iPhone in Britain; a huge increase from the 12% new
 adoption rate of the previous year. The rates were lower in Europe: a 17% turnover,
 but the region with the highest level of Apple loyalty is the USA. In the States,
 only 8% of new S5 buyers were former iPhone users.

It's interesting to see
 that such a high number of iPhone users are now opting for the S5, especially
with rumors that the iPhone 6 will have a larger screen. The projected release
date of Apple's next flagship phone is slated for September, so there may b
e more Apple turncoats before then. However, it should be noted that the
 Galaxy S5 still lags behind the iPhone 5c and 5s in the UK, which are the
number one and two highest selling handsets in the region. 11.1% of all phones
 were iPhone 5cs, 11% of the market belongs to the 5s, and the Galaxy S5
comes in third with 9% of the mobile phone market.

AdSense Tips

Unique content
Stick with niche content. If you want to have a chance at a successful
 AdSense site, the rules of content uniqueness apply. You want to
 drive targeted relevant traffic.

Seamless blending
Most people become AdSense-blind sooner or later. The more your
 AdSense ads look like they’re part of your content, the better.
Spend time choosing color schemes that will help with this effect.
You want to make it harder for visitors’ eyes scanning your
AdSense pages to tell the difference between your page elements
 and the ads. One wayto achieve this is by using the same text
 colors and text size.

Strategic placement
The basic idea behind strategic ad placement is that of forcing the
 visitor’s eye to scan the ads while looking for specific web page
 actions. For example, placing ads next to the navigational elements
 is one of those ways. You could also make your navigation
links look similar to the AdSense ad links for added confusion.
This approach may be viewed as being against basic website
 usability principles.

SEOThe following subsections cover things you can do with
 PPC platforms to validate and refine your SEO efforts.

Choosing Better Keywords
When  it  comes  to  choosing  keywords,  you  should  generally
  be  interested  in  highvolume, low-competition keywords.
The Google AdWords Keyword Tool shows you relative keyword
 search volume numbers. Although the accuracy of this data is
 questionable, it should give you a relative baseline when comparing
 different keywords. If you take this information together with the
number of derived competitors by using Google’s intitle:, inurl:,
and inanchor:commands.

If your site produces lots of content or has lots of traffic,
employing Google AdSense can earn you cash from Google.
 Before you implement AdSense, ensure that you have enough
existing content or visitors.

Traffic  check
The page where the visitor arrived the landing page.
 The pages the visitor went to and how long he spent on each
 The site he had been on before arriving at your site
 What search terms he used if he found you because of a web search
 Which links on your site he clicked
 Where in the world he is located (down to the city)
 What browser he used to view your site
 The screen resolution of the device he visited the site with
 How many colors the screen was set to display
 What operating system was used
 How often the visitor has come to your site

Sony Xperia Z3


Sony’s Xperia series phone has been able to turn heads owing to its chic look
 which is always tagged with great features.The next high-end Sony smartphone
 may be called Xperia Z3, and it could also be joined in the company's portfolio
 by a smaller version called Z3 Compact. What you see in the images above are
allegedly exactly these two phones. On the left we have a side-by-side shot of a
 white Z3 and a black Z3 Compact, and on the right is just the Xperia Z3 itself,
 showing its entire front fascia.





 Both devices seem to feature significantly smaller
 lateral bezels compared to their respective predecessors, which is definitely a
great thing in this day and age when certain Sony handsets look painfully out
 of date.

Sony Xperia Z3 release date is scheduled for August 2014? and rumors
 suggesting presence of 8-core 2.5 GHz, 4GB RAM, 23.7 MP sensor,
 2k resolution display .Sony Xperia Z3 leak reveals superhero strength
 chassis - The first Sony Xperia Z3 rumours point to a faster, slimmer,
 tougher handset.

var_dump and print_r -PHP-standard

Functions like var_dump and print_r are also invaluable when debugging

var_dump

var_dump functions displays information about variables in a simple, readable 
format. This function is very useful when debugging—providing a simple
 and easy way to display the current contents of one or more variables.

For simple scalar variables such as booleans, integers, strings, and doubles,
 the type of the variable is printed, followed by an opening bracket, the value
 contained in the variable, and a closing bracket.

Arrays are printed as a list of keys and values, and have their type array
 printed at the top of the list.

print_r

print_r displays information about a variable in a format meant to
 be easily understandable by humans. It is often used for debugging—
providing a simple and easy way to display the current contents of a variable.
 However, var_dump provides more complete information and allows
 for the use of multiple arguments.
For simple scalar variables, such as booleans, integers, strings, 
and doubles, the value contained in the variable is printed.

If print_r is used on a data structure that is a reference to itself, 
the function enters a recursive loop—generating the same information
 repeatedly until the script times out or the user cancels the script.

Moto G Google-Motorola

Moto G is an exceptional phone at an exceptional price with the sharpest 4.5"
 HD screen in its class, an all-day battery, a quad-core processor, Android 4.3.
Moto G is an Android smartphone developed and manufactured by
Motorola Mobility. Unveiled on November 13, 2013, the phone
was initially aimed at developing markets.

Google can't wait to show off Android Wear at Google I/O. Developers
 posted images online of the new wearable OS on the Moto
 360 and the LG G Watch.

Moto G sold by Motorola has been extremely popular, everyone seems to
 have forgotten about the Google Play edition of the phone sold in the US,
including Motorola and Google. For whatever reason, the phone never
received the 4.4.3 update that most other Nexus and Google Play edition
devices received, as well as the standard version of the Moto G. Now,
Google is pushing the 4.4.4 update to the phone, after practically every
 other Nexus and Play Edition device has received it.

Motorola Mobility, owned by Google, makes Android smartphones
 and Bluetooth accessories to keep people connected.Motorola isn't
hawking the Moto G as some kind of cheaper Moto X variant,
 but it could have; the phones bear more than a passing resemblance to
 each other. The Motorola Shell for Moto G provides both style and security.
 Motorola Shell for Moto G at Motorola.The Moto G is Motorola's biggest
 and best effort yet in conquering the entry-level market. It's not a handset
 meant to break records, but the 4.5-inch 720p display.


Xiaomi MI-3 Android smartphone

Xiaomi MI-3 Android smartphone. Announced 2013, September. Features 3G, 5.0″
 IPS LCD capacitive touchscreen, 13 MP camera, Wi-Fi, GPS, Bluetooth.
Content-adaptive backlight control -CABC To conserve power, Mi 3's display
adjusts brightness automatically based the content on screen. aSMP power control .
Xiaomi Mi-3 aside from a leaked Xiaomi Mi-3S with a Snapdragon 801 chipset.
 Now a blurry shot from Xiaomi's homeland China may be our first glimpse of the
 Xiaomi Mi-4. While the image doesn't say a lot we do see a slightly rounder front
 frame and slimmer bezels around the screen. The Xiaomi Mi-4 is rumored to come
 with LTE connectivity, unibody metal design, a yet unreleased quad-core processor
 and a wide-aperture 16 MP snapper. Xiaomi Mi-4 The screen could be a larger
 than 5" unit, perhaps of QHD resolution and the chipset of choice is allegedly a
Snapdragon 805 or 801.

Xiaomi Mi3 smartphone with 5.00-inch 1080x1920 display powered by
1.8GHz processor alongside 2GB RAM and 13-megapixel rear camera.
Xiaomi's Mi 3 is a showcase of how Chinese phonemakers can create
 quality hardware without breaking the bank. If you don't need 4G LTE, 
The Xiaomi MI-3 is a very slim 8.1mm handset that features a 5-inch 1080p
 display and the latest Nvidia Tegra 4 chip with amazing graphics capabilities
 and 2GB of RAM.

top Most Important crawlers on web

 Google:


Googlebot- Crawls web pages (it’s the most important of the bunch)
Googlebot-Mobile- Crawls pages specifically designed for mobile devices
Googlebot-Image Crawls images for inclusion in image search results
Mediapartners-Google Crawls AdSense content
AdsBot-Google Crawls AdWords landing pages to measure their quality

Yahoo!:

Slurp Crawls web pages
Yahoo-MMAudVid Crawls video files
Yahoo-MMCrawler Crawls images

Bing:


MSNBot- Crawls web pages
MSNBot-Media Crawls media files
MSNBot-News Crawls news feeds

Thousands of crawlers are operating on the Internet. It would make no sense to pay
attention to all of them. Depending on your site’s content and the region you are targeting, you may need to pay more attention to other crawlers.

Not all crawlers are created equal. Some crawlers crawl your web pages, whereas others
crawl your images, news feeds, sound files, video files, and so forth.

Microsoft Smartwatch-hi fi-is coming

Microsoft's first smartwatch for over a decade

The product is yet to be officially launched, All information in this article is still
only speculation.Microsoft is the latest technology giant preparing to jump into
 the wearables market, with plans to offer a sensor-rich smartwatch that measures.
Microsoft smartwatch rumors heat up again, suggesting a cross-platform
strategy that suits CEO Satya Nadella's goals.

Microsoft is reportedly joining the quickly growing party of companies developing
 a smartwatch.Microsoft may be getting in on the smartwatch game. The U.S. Patent
 Office has released an application from the software maker
for a smartwatch design.

With every major tech firm producing, or planning on producing a smartwatch,
 Microsoft's recent patents have given away some of the company's plans
about its future .Microsoft may be entering the wearable tech sector with
their own spin on the smartwatch. Rumors have begun to surface that the
 tech giant is developing a watch.

Apple releases iOS 7.1.2


Apple has released the
iOS 7.1.2 update. The update brings with it some bug
 fixes and security updates. The update includes: Improved iBeacon connectivity
 and stability Fixes a bug with data transfer for some 3rd party accessories,
including barcode scanners Corrects an issue with data protection class of
Mail attachments The update is around 28-30MB depending upon the
device, if you download on the device itself. Along with iOS, Apple also
pushed an update for OS X, bumping it to 10.9.4.

This one has more useful changes and something you'd actually notice,
 including: Fixes an issue that prevented some Macs from automatically
connecting to known Wi-Fi networks Fixes issue causing the background
 or Apple logo to appear incorrectly on startup Improves the reliability
 of waking from sleep Includes Safari 7.0.5 The 10.9.4 update is
 around 90MB.

Samsung Galaxy S5 mini

It grew slightly compared to its predecessor with a 4.5" screen, keeping within the
reasonable limits of "mini". The specs aren't particularly high-end though it retains
 the trademark features of the big Galaxy S5. The Samsung Galaxy S5 mini is built
 around a 4.5" Super AMOLED screen of 720p resolution.

It measures 131.1 x 64.8 x 9.1 and weighs 120g, compared to 124.6 x 61.3 x 8.9
 mm and 107g of the Galaxy S4 mini. The good news is that the pixel density went
 from 256ppi to 326ppi. The body is IP67 certified meaning it is completely dust
 tight and can be submerged under up to a meter of water for half an hour.
Interestingly there's no flap covering the microUSB 2.0 port on the bottom,
Samsung has managed to make it water resistant with some sort of special coating.
 The back is perforated leather and features a heart rate monitor, while the
 hardware Home key on the front doubles as a fingerprint reader. Samsung
Galaxy S5 mini The processing power hasn't gone up significantly - the Galaxy
 S5 mini packs four Cortex-A7 cores @ 1.4GHz, while RAM remains at 1.5GB.
 The internal storage was doubled to 16GB there's a microSD card slot if
 that's not enough. The Galaxy S5 mini will come out with Android 4.4 KitKat
and feature S Health, Private mode, Kids mode and Ultra Power Saving mode.
 The battery capacity went up a bit to 2,100mAh.

The connectivity was bumped up to 150Mbps LTE and keeps the IR blaster
 on top. The camera department remains unchanged at 8MP stills
 and 1080p @ 30fps video.

Promote your website to your link prospects

Create RSS feeds. Try registering with Feedburner

Publish free newsletters.Recruit site visitors to your free benefit-packed
 newsletter and you are building an emailing list. Use your newsletter to
 promote your content.

Post on your site/blog.You’re doing that anyway, of course. But it’s
amazing what people forget if it’s not on a checklist.

Submit content to generic social sites eg, Twitter, LinkedIn, Facebook,
StumbleUpon, Digg and nowGoogle +.

Submit to your specialist social networking sites

Use your specialist contacts by email, direct tweets and even telephone.

Contact journalists you know personally. Don’t just issue press releases
 - get to know them, chat and build trust.

Buy and use a list of relevant journalists detailsand get to know them.

Contribute with guest posts and articleson specialist blogs and sites.

Issue press releases to online and offline specialist distributors like
 PRWeband Press Dispensary.

Submit to site-of-the-day sites.

Consider Eric Ward’s URL wireIt’s a paid-for service but is top quality.

Buy PageRank links or not. You can buy links without a nofollow tag. But, if Google works out
that you’re buying links you’re site may be penalized. Take the risk if you must, but I certainly don’t
recommend it.
Buy promotional links adverts on generic sites like StumbleUpon and Facebook; specialist sites;
and Pay Per Click -PPC. The links won’t directly help your SEO but others might share your content
and those links will.

You have found your site’s most profitable keyword niches to target; built
and optimized site structure and content; and promoted your site for link
building and brand building.

But SEO never stops. Your competitors will not stop optimizing, so nor
can you. And your best targets may have changed. So you must return to
the start of the SEO process.

Check visits, Google ranks for target keywords, response rates and
numbers for different metrics including goals like email recruitment,
sales numbers and revenue.

Check whatever measures you’ve got. If you don’t have Goals or
Ecommerce configured then use bounce rate, average time on site and
pages per visit.

Visualize Traffic with DIY Vector

you will learn how to create your own traffic chart using the incredibly cool Canvas framework, which can produce vector graphics and animations with a little bit of HTML and JavaScript. All code referenced in this hack is also available in a single zip file at http://blogoscoped.com/googleappshacks/canvas.zip. Although setting up Canvas may take a little longer than using, say, the Google Charts API  it's also much more flexible, and can even include animated charts.

Draw Something Using Canvas

Canvas is a vector graphics framework which works in most popular browsers today including Firefox, Opera and Safari, and does not require a plug-in like Flash does. Internet Explorer too can render Canvas code, at least with a little tweak you'll see further below. Canvas can be used to have a web page show 2D and 3D drawings, games, charts, applications, animations, and much more.

A longer canvas tutorial is available at http://developer.mozilla.org/en/docs/Canvas_tutorial (explaining how to draw rectangles, curves, imported images, and much more), but let's just see what you need to draw a simple line. First, create a file named index.html and open it with a plain text editor. Create a basic page like the following;

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; CHARSET=UTF-8" />
  <title>Drawing a line</title>
</head>
<body>
  <h1>Soon, a line will appear!</h1>
</body>
</html>

       

So far, that's all plain XHTML. Now somewhere in the <body> of the page, put the canvas tag:

Next, create a default.js file containing the following JavaScript, and put it in the same folder as index.html:
function main() {
    // grab the canvas
    var canvas = document.getElementById('picture');
    var ctx = canvas.getContext('2d');

    // set the color and line width
    ctx.strokeStyle = 'rgba(40,200,180,1)';
    ctx.lineWidth = 8;

    // draw a line
    ctx.beginPath();
    ctx.moveTo(40, 140);
    ctx.lineTo(240, 40);
    ctx.stroke();
}

That's not a lot of code—you're grabbing the canvas element using the ID you defined

Top Web Analytics Blogs

The Web changes all the time, and those changes create pain points on how
 best to accurately and consistently analyze our websites. One of the most
awesome resources at your disposal is the blogs of various industry luminaries
 and practitioners who unselfishly put out some of the best content
you’ll find anywhere. A key characteristic of most of these blogs is
 that they are extremely current and on the cutting edge in their discussions.
 Get an RSS -really simple syndication reader and
soak up all the information—it’s free!
Google Analytics Blog-http://analytics.blogspot.com:This official blog
 of the GA
team has loads of great GA tips and insights.
Occam’s Razor-http://www.kaushik.net/avinash: My blog focuses on web
 research and analytics.
Web Analytics Demystified-http://www.webanalyticsdemystified.com/weblog: Eric
Peterson is an author, conference speaker, and Visual Sciences VP, and on his
blog he shares his wisdom about all things web analytics.

Lies, Damned Lies-http://www.liesdamnedlies.com:
Ian Thomas is the Director of Customer Intelligence at Microsoft, and in
 a prior life helped found WebAbacus, a web analytics company.
Ian applies his deep experience and covers complex topics in
an easy-to-understand language.
Analytics Talk-http://epikone.com/blog: Justin Cutroni is one of the smartest
 web analytics practitioners and consultants around. His focus is on GA, but
he has lots of non-GA stuff as well.

Commerce360 Blog-http://blogs.commerce360.com: Craig Danuloff is the
 president of Commerce360, a consulting company, and he brings a
refreshingly honest perspective on all things web analytics and marketing.

LunaMetrics Blog-http://lunametrics.blogspot.com: Robbin Steif provides practical
tips and tricks on getting the most out of your web analytics tools, specifically
 with an eye toward improving your conversion rate.

Instant Cognition-http://blog.instantcognition.com: Clint Ivy calls himself a data
visualization journeyman—that says it all! Clint shares his perspective on
 analytics with a focus on visual report design.

Applied Insights Blog-http://snipurl.com/neilmason: Neil Mason and John
 McConnell share their insights from the United Kingdom.

OX2 Blog-http://webanalytics.wordpress.com: René Dechamps Otamendi
 and Aurélie Pols run the pan-European OX2, and their blog always
has wonderfully insightful perspectives on web analytics.

Let's Make A Master Template codeigniter

A simple CSS file, it ’ s time to create a generic Template view that
you can reuse throughout your application. In this master template, which
you can name template.php, are a series of embedded PHP calls that load
certain subviews, such as header, navigation, and footer.

These subviews contain the HTML and PHP that you will create in the
 next few sections. Notice in the following code that you ’ re also trying
to load a subview with $main. This variable will contain the name of a
subview that is dynamically set within the controller and allows you a
 great deal of flexibility as you code your application.

< !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd” >
< html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en” >
< head >
< meta http-equiv=”content-type” content=”text/html; charset=utf-8” / >
< title > < ?php echo $title; ? > < /title >
< link href=” < ?= base_url();? > css/default.css” rel=”stylesheet” type=”text/css” / >
< script type=”text/javascript” >
// < ![CDATA[
base_url = ‘ < ?= base_url();? > ’;
//]] >
< /script >
< /head >
< body >
< div id=”wrapper” >
< div id=”header” >
< ?php $this- > load- > view(‘header’);? >
< /div >
< div id=”nav” >
< ?php $this- > load- > view(‘navigation’);? >
< /div >
< div id=”main” >
< ?php $this- > load- > view($main);? >
< /div >
< div id=”footer” >
< ?php $this- > load- > view(‘footer’);? >
< /div >
< /div >
< /body >
< /html >

Social Search and Participation Marketing

 Social search optimization

There are two reactions we get when we tell our clients that it’s time
 to think aboutsocial search. The B2B clients often become noticeably
 uncomfortable and try to change the subject, while the B2C clients are
 likely to want to dive right in. Want to know something funny?In most cases,
 these reactions hold true even when our B2B and B2C clients have no idea
 what we actually mean by social search. What we mean,by the way, are
 those Web 2.0 sites that compile human-fueled factors, such as votes,
references, or recommendations to help you find sites.

Social Bookmarking Sites  These are sites that allow users to give a virtual thumbs
up to a web page, which in turn allows others to learn about it. Digg, Reddit, and
del.icio.us are popular examples. As an online marketer, your goal on sites like these is
to get votes for your content. Is your organization doing something fascinating enough,
or does your website offer something so unique or so useful that a rising tide of voters
will push your site to the top.

Blogs- Your blog mission is either to get mentioned or to join in the commenting in a
way that showcases your smarts and usefulness to your target audience. Niche B2Bs,
yes, there is a blog that is at least loosely related to your industry, and yes, your target
audience frequents them. Type your top 10 keywords into blogsearch.google.comand
see for yourself. B2Cs, even though your keywords are mentioned all over the blog
search engines, that doesn’t mean that every blog audience has conversion value for you.
Forums-The goal for forums is to join in the conversation, become a trusted voice, and
keep your organization in that favorable top-of-mind position with your target audience.
Social Networking Sites Not a medium for the time-strapped, the goal for these sites is
to make friends and communicate with them on a regular basis. Some examples of social
networking sites are MySpace, Facebook, and LinkedIn.

The exciting thing about the Social Web is that the barrier to entry is low. It’s easy to participate
and easy to operate, and it doesn’t cost any money. But it does require a bit of reprogramming for
the traditional marketer. Instead of promoting your company or products, often the venue is better
suited to disseminating the thoughts or activities of a single individual in your organization. As an
example, new product announcements in the Social Web are far outnumbered by musings, advice,
and opinions of CEOs and consultants.Which participants rise to the top?
 Those with higher-thanaverage quotients of expertise and personality.

How to make seo worksheets

SEO worksheets Idea

• Keywords Worksheet
• Site Assessment Worksheet
• Rank Tracking Worksheet
• Task Journal Worksheet
• Competition Worksheet
• SEO Growth Worksheet

Your SEO Task Journal is a place to document
what you’ve done, what questions have cropped up, and what you need to do in the
future. Your Task Journal will prevent you from duplicating your efforts and help you
keep track of what you were thinking last week and the week before. It’s also a convenient holding pen for ideas and random thoughts that come up while you are working on Your SEO Plan.

 If you put the time into choosing powerful keywords now, you are likely to be
 rewarded not only with higher ranks,but also with these benefits:

• A well-optimized site, because your writers and other content producers will feel
more comfortable working with well-chosen keywords as they add new site text
• More click-throughs once searchers see your listing, because your keywords will
be highly relevant to your site’s content
• More conversions once your visitors come to your site, because the right keywords
will help you attract a more targeted audience.

Keywords Worksheet, you’ll find columns with the headings Keyword,
Search Popularity, Relevance, Competition, and Landing Page. Today you’re only
worried about the first column: Keyword.

No keyword list is complete without your
organization’s name and the products, services, or information you offer. Be sure to
think about generic andproprietary descriptions.

On your Keywords Worksheet, you already have a nice long list of possible target phrases.
But are there any you missed? Today, you’ll troll on- and offline for additional keyword
ideas. We’ve listed some of the places that additional keyword phrase ideas could pop
up. There are more ideas here than you can use in just one hour, so pick and choose
based on what’s available to you and what feels most appropriate to your situation:

Your CoworkersIf you didn’t get your team involved in keyword brainstorming  be sure
that they jump on board today. It will help your campaign in two ways:
First, they’ll provide valuable new perspectives and ideas for keywords, and second,
they’ll feel involved and empowered as participants in the plan.

Your WebsiteHave you looked through your website to find all variations of your
possible keyword phrases? Terms that are already used on your site are great choices
for target keywords because they will be easier to incorporate into your content.

URL rewriting-various exercises-seo

 Installing mod_rewrite
 Testing mod_rewrite
 Working with regular expressions
 Rewriting numeric URLs with two parameters
 Rewriting keyword-rich URLs
 Building a link factory
 Pagination and URL rewriting
 Rewriting images and streams

If you’ve installed Apache yourself, read on. Because of its popularity, mod_rewrite is now included
with all common Apache distributions. If desired, you can verify if your Apache installation has the
mod_rewrite module by looking for a file named mod_rewrite.sounder the modulesfolder in your
Apache installation directory.
However, mod_rewrite may not be enabled by default in your Apache configuration. To make sure,
open the Apache configuration file, named httpd.conf.

Once mod_rewrite is installed and enabled, you add the rewriting rules to the Apache configuration
file, httpd.conf.

You use this to have mod_rewrite translate my-super-product.htmlto product.php?product_id=123.
The linethat precedes the RewriteRuleline is a comment.
# Translate my-super.product.html to /product.php?product_id=123
RewriteRule ^my-super-product\.html$ /product.php?product_id=123
You can find the official documentation for RewriteRuleat http://www.apacheref.com/
ref/mod_rewrite/RewriteRule.html.
In its basic form, RewriteRuletakes two parameters. The first parameter describesthe original URL that
needs to be rewritten, and the second specifies what it should be rewritten to. The pattern that describes the
original URL is delimited by ^and $, which assert that the string has nothing before or after the matching
text (explained further in the following sections), and its contents are written using regular expressions,
which you learn about next.

Using RewriteBase

The regular expressions and scripts in this book assume that your application runs in
the root folder of their domain. This is the typical scenario. If, however, you host your
application in a subfolder of your domain, such as
http://www.example.com/seophp, you’d need to make a few changes to accommodate 
the new environment.

The most important change would be to use the RewriteBasedirective of mod_rewrite
to specify the new location to act as a root of your rewriting rules. This directive is
explained at http://www.apacheref.com/ref/mod_rewrite/RewriteBase.html.
Also, the rewritten URL should lose its leading slash, because you’re not rewriting to
root any more. Basically, if you host your first example in a subfolder named seophp,
your .htaccessfile for the previous exercise should look like this:

RewriteEngine On
RewriteBase /seophp
RewriteRule ^my-super-product\.html$ product.php?product_id=123

RewriteRule command and its parameters must be written on a single line in
your .htaccessfile. If you split it in two lines as printed in the book, you’ll get a 500 error from the
web server when trying to load scripts from that folder.

How to Enable mod_rewrite at Server

mod_rewrite may not be enabled by default in your Apache configuration. To make sure,
open the Apache configuration file, named httpd.conf.
The full path of the file will be \Program Files\xampp\apache\conf\httpd.conf.

Open httpd.conf and find the following line:
#LoadModule rewrite_module modules/mod_rewrite.so
The leading #means the line is commented, so remove it in order to have Apache load the mod_rewrite
module upon its startup:

LoadModule rewrite_module modules/mod_rewrite.so

After any change to httpd.conf, you need to restart the Apache server in order for the changes to take
effect. In case you run into trouble, you can check Apache’s error log file /logs/error.log, which
should contain the details of the error.

Once mod_rewrite is installed and enabled, you add the rewriting rules to the Apache configuration
file, httpd.conf. Apache also lets you save configuration options (including rewriting rules) on a
per-directory basis to a configuration file named .htaccess. All you have to do is create a file named
.htaccessinto a directory of your application.

Web Hosting or DNS

It is common sense that if a web site is down it cannot get spidered, but we’ll state it regardless:
When a site is down, it cannot get spidered.And when your domain’s designated DNS is down, your
site cannot get spidered either — even if your web server is up. Reliable hosting and DNS, then, is
critical to your web site’s well-being. A web site that is down will irritate users and result directly
in fewer users visiting your web site. It may also reflect badly on your business, and users may not
be back. Likewise, if a search engine spider visits your web site and it does not respond after quite
a few unsuccessful attempts, it may result in your web site getting dropped from the index. For
this reason we recommend cutting costs elsewhere.

Most of the time, users opt to use a web hosting provider’s DNS. This may be wise, because they may
need to alter DNS records in order to move you to another server with another IP if the server your
web site is located on fails. However, domain providers (Network Solutions, GoDaddy, and so on)
have more recently begun to offer free managed DNS services as well. If you use managed DNS,
the hosting provider will not be able to change your domain’s records to reflect the new IP, and
your site will be down as a result. For this reason, we do not recommend using managed DNS
unless your provider is aware of it, and knows to notify you, so that you can change the records
yourself to reflect the new IP.

Hosting Providers

Should the need exist to change hosting providers, the process must be completed in the proper order.
Not doing so may result in a time window where your site is unreachable; and this is clearly not desirable,
from both a general and SEO perspective. The focus of this elaborate process is to prevent both users and
search engines from perceiving that the site is gone — or in the case of virtual hosting, possibly seeing the
wrong site.
Virtual hosting means that more than one web site is hosted on one IP. This is commonplace,
because the world would run out of IPs very quickly if every web site had its own IP. The problem
arises when you cancel service at your old web hosting provider and a spider still thinks your site
is located at the old IP. In this case, it may see the wrong site or get a 404 error; and as you suspect,
this is not desirable.
The proper approach involves having your site hosted at both hosting providers for a little while. When
your site is 100% functional at the new hosting provider, DNS records should then be updated.

Functionality was also used to set up the seophp.example.comdomain. On Windows machines,
the file is located in C:\WINDOWS\system32\drivers\etc\hosts.
Add the following lines:
xxx.xxx.xxx.xxx www.yourdomain.com
xxx.xxx.xxx.xxx yourdomain.com
This will let you access your web site at the new provider as if the DNS changes were already reflected.
Simply remove the lines after you are done setting up the site on the new web hosting provider’s server
to verify the changes have actually propagated.
If you have concerns about this procedure, or you need help, you may want to contact your new hosting
provider and ask for assistance. Explain your concerns, and hopefully they will be able to accommodate
you and put your mind at ease. If they are willing to work with you, it is a good indication that they are
a good hosting provider.

MSN Search has a useful feature that allows you to see all virtual hosts on one IP by the syntax of
IP:xxx.xxx.xxx.xxx. Multiple statements can be separated by ORto request a list of a range of IPs.
This lets you see who else is hosting in a range. Spam tends to travel in packs. Search engine algorithms are also aware of this. The fact that the operator exists may be a tacit admission by Microsoft
that it does examine the sites in an IP range for some reason.

what is CodeIgniter Helpers?

Helpers, as their name implies, help you with specific tasks. Unlike libraries, helpers are not object -oriented but procedural in nature. Each helper contains one or more functions, each focusing on a
specific task, with zero dependence on other functions.

Helpers can either be loaded locally or autoloaded in /system/application/config/autoload.php.

CodeIgniter's  helpers:

Array —  The   Array helpercontains functions that help you work with arrays. For example, the
random_element()function takes an array as input and returns a random element from it.

Cookie —  The   Cookie helpercontains functions that help you set, read, and delete cookie data.

Date —  The   Date helpercontains functions that help you work with dates. For example, the
now function returns the current time as a UNIX time stamp.

Directory —  The   Directory helpercontains a single function that helps you work with directories.
For example, the directory_mapfunction reads a specified directory path and builds an array
of it that contains all of its files and subdirectories.


Download —  The   Download helpercontains a single function that helps you download data
easily. The force_download()function generates server headers that force data to be
downloaded instead of viewed in a browser.

File —  The   File helpercontains functions that help you read, write, and delete files.

Form —  The   Form helpercontains functions that help you build forms. It is probably one of the
most used helpers in the CodeIgniter toolbox.

HTML —  The   HTML helpercontains functions that help you create HTML blocks quickly and
easily. For example, the ul()function can turn an array of items into a bulleted list.

Inflector —  The   Inflector helpercontains functions that help you to turn words into plural or
singular form, to apply camel case, or to turn words separated by spaces into an underscored
phrase.

Security —  The   Security helpercontains security - related functions like xss_clean(),  which
filters out any code that may be used in a cross site scripting hack.

Smiley —  The   Smiley helpercontains functions that help you manage emoticons. The functions
in this helper might seem superfluous, but become invaluable if you are coding a bulletin board
or chat application.

String —  The   String helpercontains functions that help you work with strings, like the random_
string  function, which as its name implies, creates random strings based on type and length
arguments.

Text —  The   Text helpercontains functions that help you work with text. For example, the word_
limiter function can limit a string to a certain number of words, which is useful if you ’ re
trying to limit user input on a form.

Typography —  The   Typography helpercontains a single function that helps you format text in
appropriate ways. For example, the auto_typography()function wraps paragraphs with < p >
and < /p > , converts line breaks to < br/ > , and converts quotes, dashes, and ellipses properly.

PHP, you can use the substr()function instead of the word_limiter or character_limiter
made available by the Text helper. Certainly, you ’ re not forced to use helpers, but they ’ re made available
to you, and they do a fine job of saving time and effort.


Codeigniter Database Library

The  Database librarycontains a series of helpful functions that make it easy for you to create and run
queries and process the result sets from those queries.

The first thing to note about the Database library in CodeIgniter is that it allows you to pass in simple
SQL queries. At the end of the day, many people who are new to CodeIgniter find this to be a great
comfort. Although some of the built - in Active Record patterns provide helpful shortcuts, just knowing
that you can bypass all of that and send in a complex query.

$sql = “select a.name, a.id, b.groupname
from persons a, groups b
where a.group_id = b.id
group by b.groupname, a.name”;
$Q = $this- > db- > query($sql); 

To loop over the result set of that query, you can use either the result()or result_array() methods,
depending on whether you like to process your results as an object or as an array.

$sql = “select a.name, a.id, b.groupname
from persons a, groups b
where a.group_id = b.id
group by b.groupname, a.name”;
$Q = $this- > db- > query($sql);
foreach ($Q- > result() as $row){
echo $row- > name;
echo $row- > id;
echo $row- > groupname;
}
//here’s the alternative approach, with result_array
foreach ($Q- > result_array() as $row){
echo $row[‘name’];
echo $row[‘id’];
echo $row[‘groupname’];
}

If you need a count of rows in a result set, use the num_rows() method:
$sql = “select a.name, a.id, b.groupname
from persons a, groups b
where a.group_id = b.id
group by b.groupname, a.name”;
$Q = $this- > db- > query($sql);
if ($Q- > num_rows()){
foreach ($Q- > result() as $row){
echo $row- > name;
echo $row- > id;
echo $row- > groupname;
}
}
Sometimes you may have a query that generates just one result row.

codeigniter routes page

The  routes.php filelets you remap URI requests to specific controller functions. For example, you may
have a controller named sitewith a function named index. The URI for this controller/function
combination might be:
http://www.example.com/site/index
Furthermore, if your site controller had a pagesfunction that accepted a numeric ID for database
lookup, the URI might look like this:
http://www.example.com/site/pages/4
In some cases, you might want to remap one or more of these default routes. For example, the second
example might be better displayed as this:
http://www.example.com/about_us/
In that case, your routes.php file would contain a rule like this:
$route[‘about_us’] = “site/pages/4”;
For right now, though, this kind of manipulation falls under “ advanced  usage, ”  so  don ’ t  worry  too  much
about it. However, please do note that this kind of thing is possible. Also, be aware that two “ reserved
routes ” exist: default_controller and scaffolding_trigger.
$route[‘default_controller’] = “welcome”;
The default_controller route tells CodeIgniter which controller should be loaded if no controller is
identified. For simplicity ’ s sake, keep this setting.

CodeIgniter Libraries

CodeIgniter libraries help you do your job faster and more efficiently. Each libraryis really a PHP class
with various methods that you can use once the library is loaded by a controller.

CodeIgniter gives  the following libraries:
Benchmarking —  The   Benchmarking libraryis always active. Use it to determine the time
difference between any two marked points in code and to calculate memory usage.

Calendaring —  The   Calendaring librarymust be loaded by a controller. Use it to dynamically
create calendars for given months and years, with some control over formatting and appearance.

Config —  The   Config libraryis initialized automatically by the system. Use it to retrieve
configuration information.

Database —  The   Database libraryis a very powerful set of methods that must be loaded. You ’ ll
be using this library so much that the next subsection of this chapter focuses on it exclusively.

Email —  The   Email librarymust be loaded. It includes a very powerful set of tools that simplifies
the job of sending e - mails.

Encryption —  The   Encryption librarymust be loaded. It provides you with powerful two - way
encryption methods.

File Uploading —  The   File Uploading librarymust be loaded. Use this library whenever you need
to handle file uploads. It includes powerful validation features that can restrict a file by mime
type, size in kilobytes, or even image dimensions.

FTP —  The   FTP librarymust be loaded. Use this library to transfer files to a remote server only
standard FTP is supported, by the way.

HTML Table —  The   HTML Table librarymust be loaded. Use this very versatile library to
autogenerate HTML tables from arrays or database result sets.

Image Manipulation —  The   Image Manipulation librarymust be loaded. Use it to resize images,
create thumbnails, crop or rotate images, and watermark images. Some functions require further
PHP support such as GD/GD2.

Input and Security —  The   Input and Security librarymust be loaded. Use it to pre - process  input
data from forms and URLs and to handle some security functions such as guarding against
XSS attacks.

Language —  The   Language librarymust be loaded. Use this library to load different sets of
language files for internationalization.

Loader —  The   Loader libraryis automatically loaded. You will use this library primarily to load
views with your controller, but it is also used to load libraries.

Output —  The   Output libraryis automatically loaded. This library has one main function: Send
the finalized web page to the requesting browser. It is also used for caching.

Pagination — The  Pagination librarymust be loaded. Use this labor - saving library to paginate
database results for performance and usability. You can control how many records to display per
page, how many records to pull from the database, and the look and feel of different parts of the
pagination.

Session —  The   Session librarymust be loaded. Use CodeIgniter ’ s Session library to maintain
state information about a user. This library does not use PHP ’ s  built - in  sessions  —  instead,  it
generates its own session data. Because this library is so important, a separate subsection of this
chapter is devoted to it.