marți, 11 decembrie 2012

Damn Cool Pics

Damn Cool Pics


Hanna Sabata, The World's Dumbest Bank Robber Ever

Posted: 11 Dec 2012 11:18 AM PST

19-year-old Nebraska native Hannah Sabata got herself arrested after she flaunted $6,000 in cash from a bank she robbed along with a set of keys to a car she stole. She gleefully showed off her successful score and posted the evidence to YouTube — the first and only place to share criminal activity. The video was titled "Chick Bank robber." Hanna went on to say in the description, "I just stole a car and robbed a bank. Now I'm rich, I can pay off my college financial aid and tomorrow i'm going for a shopping spree. Bite me. I love GREENDAY!" On the bright side though, at least she became popular on YouTube. The video has more than 1,000,000 views now and counting.

































The Most Perfectly Timed Photos Of 2012

Posted: 11 Dec 2012 10:04 AM PST

Let's see which photos were the most perfectly timed photos of this year.























































Meet Jon Gnarr, Mayor Of Reykjavik, Iceland

Posted: 11 Dec 2012 09:19 AM PST

Jon Gnarr is the mayor of Reykjavik, the capital of Iceland. Many people say that Jon Gnarr is the coolest mayor in the world. Why? Just read the story and you will probably agree.



Traditional Holiday Meals From Around the World [Infographic]

Posted: 11 Dec 2012 08:49 AM PST

'Tis the season to indulge in our favourite food and drink! But thanks to the many cultures of our world, not all holiday meals are the same. We examine holiday plates from around the globe.

Click on Image to Enlarge. Holiday foods infographic
Via: Confused.com

SEO Blog

SEO Blog


What is the future of Social Media Sites in 2013?

Posted: 11 Dec 2012 06:06 AM PST

For last few years social media sites have been a buzz word in the web world. There has been an exceptional growth in the social media as from a small number of users nowadays more than 1 billion people use them. This growth is really extraordinary and you can expect...
Read more »

Top 10 (Ten) Classified sites for 2013

Posted: 11 Dec 2012 03:16 AM PST

What is a classified website? Classified site is an online platform where people can post their requirements to buy products/services and also a seller can post the things they want to sell. There are lot of categories available to choose from, most common categories are real state, rent a property,...
Read more »

10 .htaccess File Snippets You Should Have Handy

10 .htaccess File Snippets You Should Have Handy


10 .htaccess File Snippets You Should Have Handy

Posted: 10 Dec 2012 06:46 PM PST

Posted by Tom Anthony

In the Moz Q&A, there are often questions that are directly asked about, or answered with, a reference to the all-powerful .htaccess file. I've put together a few useful .htaccess snippets which are often helpful. For those who aren't aware, the .htaccess file is a type of config file for the Apache server, which allows you to manipulate and redirect URLs amongst other things.

Everyone will be familiar with tip number four, which is the classic 301 redirect that SEOs have come to know and love. However, the other tips in this list are less common, but are quite useful to know when you need them. After you've read this post, bookmark it, and hopefully it will save you some time in the future.

1) Make URLs SEO-friendly and future-proof

Back when I was more of a developer than an SEO, I built an e-commerce site selling vacations, with a product URL structure:

/vacations.php?country=italy

A nicer URL would probably be:

/vacations/italy/

The second version will allow me to move away from PHP later, it is probably better for SEO, and allows me to even put further sub-folders later if I want. However, it isn't realistic to create a new folder for every product or category. Besides, it all lives in a database normally.

Apache identifies files and how to handle them by their extensions, which we can override on a file by file basis:

<Files magic>
ForceType application/x-httpd-php5
</Files>

This will allow the 'magic' file, which is a PHP file without an extension, to then look like a folder and handle the 'inner' folders as parameters. You can test it out here (try changing the folder names inside the magic 'folder'):

http://www.tomanthony.co.uk/httest/magic/foo/bar/donk

2) Apply rel="canonical" to PDFs and images

The SEO community has adopted rel="canonical" quickly, and it is usually kicked around in discussions about IA and canonicalization issues, where before we only had redirects and blocking to solve a problem. It is a handy little tag that goes in the head section of an HTML page.

However, many people still don't know that you can apply rel="canonical" in an alternative way, using HTTP, for cases where there is no HTML to insert a tag into. An often cited example that can be used for applying rel="canonical" to PDFs is to point to an HTML version or to the download page for a PDF document.

An alternative use would be for applying rel="canonical" to image files. This suggestion came from a client of mine recently, and is something a couple of us had kicked about once before in the Distilled office. My first reaction to the client was that this practice sounded a little bit 'dodgy,' but the more I think about it, the more it seems reasonable.

They had a product range that attracts people to link to their images, but that isn't very helpful to them in terms of SEO (any traffic coming from image search is unlikely to convert), but rel="canonical" those links to images to the product page, and suddenly they are helpful links, and the rel="canonical" seems pretty reasonable.

Here is an example of applying HTTP rel="canonical" to a PDF and a JPG file:

<Files download.pdf>
Header add Link '<http://www.tomanthony.co.uk/httest/pdf-download.html>; rel="canonical"'
</Files>
 
<Files product.jpg>
Header add Link '<http://www.tomanthony.co.uk/httest/product-page.html>; rel="canonical"'
</Files>

We could also use some variables magic (you didn't know .htaccess could do variables!?) to apply this to all PDFs in a folder, linking back the HTML page with the same name (be careful with this if you are unsure):

RewriteRule ([^/]+)\.pdf$ - [E=FILENAME:$1]
<FilesMatch "\.pdf$">
Header add Link '<http://www.tomanthony.co.uk/httest/%{FILENAME}e.html>; rel="canonical"'
</FilesMatch>

You can read more about it here:

http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139394

3) Robots directives

You can't instruct all search engines not to index a page, unless you allow them to access the page. If you block a page with robots.txt, then Google might still index it if it has a lot of links pointing to it. You need to put the noindex Meta Robots tag on every page you want to issue that instruction on. If you aren't using a CMS or are using one that is limited in its ease, this could be a lot of work. .htaccess to the rescue!

You can apply directives to all files in a directory by creating an .htaccess file in that directory and adding this command:

Header set X-Robots-Tag "noindex, noarchive, nosnippet"

If you want to read a bit more about this, I suggest this excellent post from Yoast: 

http://yoast.com/x-robots-tag-play/

4) Various types of redirect

The common SEO redirect is ensuring that a canonical domain is used, normally www vs. non-www. There are also a couple of other redirects you might find useful. I have kept them simple here, but often times you will want to combine these to ensure you avoid chaining redirects:

# Ensure www on all URLs.
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
 
# Ensure we are using HTTPS version of the site.
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
# Ensure all URLs have a trailing slash.
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.example.com/$1/ [L,R=301]

5) Custom 404 error page

None of your visitors should be seeing a white error page with black techno-babble when they end up on at a broken URL. You should always be serving a nice 404 page which also gives the visitor links to get back on track.

You can also end up getting lots of links and traffic if you but your time and effort into a cool 404 page, like Distilled's:

This is very easy to setup with .htaccess:

ErrorDocument 404 /cool404.html
 
# Can also do the same for other errors...
ErrorDocument 500 /cool500.html

6) Send the Vary header to help crawl mobile content

If you are serving a mobile site on the same URLs as your main site, but rather than using responsive design you are altering the HTML, then you should be using the 'Vary' header to let Google know that the HTML changes for mobile users. This helps them to crawl and index your pages more appropriately:

https://developers.google.com/webmasters/smartphone-sites/details

Again, this is pretty simple to achieve with your .htaccess file, independent of your CMS or however your are implementing the HTML variations:

Header append Vary User-Agent

7) Improve caching for better site speed

There is an increasing focus on site speed, both from SEOs (because Google cares) and also from developers who know that more and more visitors are coming to sites over mobile connections.

You should be careful with this tip to ensure there aren't already caching systems in place, and that you choose appropriate caching length. However, if you want a quick and easy solution to set the number of seconds, you can use the below. Here I set static files to cache for 24 hours:

<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf)$">
Header set Cache-Control "max-age=28800"
</FilesMatch>

8) An Apple-style 'Back Soon' maintenance page

Apple famously shows a 'Back Soon' note when they take their store down temporarily during product announcements, before it comes back with shiny new products to love or hate. When you are making significant changes to redirect users to such a page, a message such as this can be quite useful. However, it can also make it tough to check the changes you've made.

With this bit of .htaccess goodness, you can redirect people based on their IP address, so you can redirect everyone but your IP address and 127.0.0.1 (this is a special 'home' IP address):

RewriteCond %{REMOTE_ADDR}  !your_ip_address
RewriteCond %{REMOTE_ADDR}  !127.0.0.1
RewriteRule !offline.php$ http://www.example.com/back_soon.html [L,R=307]

9) Smarten up your URLs even when your CMS says "No!"

One of the biggest complaints I hear amongst SEOs is about how much this or that CMS "sucks." It can be intensely frustrating for an SEO when they are hampered by the restraints of a certain CMS, and one of those constraints is often that you are stuck with appaling URLs.

You can overcome this, turning product.php?id=3123 into /ray-guns/ in no time at all:

# Rewrite a specific product...
RewriteRule ray-guns/ product.php?id=3123
 
# ... or groups of them
RewriteRule product/([0-9]+)/ product.php?id=$1

This won't prevent people from visiting the crappy versions of the URLs, but combined with other redirects (based on IP) or with judicious use of rel="canonical," you improve the situation tremendously. Don't forget to update your internal links to the new ones. :)

10)  Recruit via your HTTP headers

Ever looked closely at SEOmoz's HTTP headers? You might have missed the opportunity to get a job...

If you would like to add a custom header to your site, you can make up whatever headers and values you'd like:

Header set Hiring-Now "Looking for a job? Email us!"

It can be fun to leave messages for people poking around - I'll leave it to your imaginations! :)

Download the rules

You can grab all of these rules in quick-form from a compilation I made

Viewing headers

If you are unsure about how to look at HTTP response headers, here's a great tool to get you started.

If you would rather do it in your browser, follow these steps:

  • Chrome on Windows: Ctrl-Shift-I and click 'Network' (then reload the page)
  • Chrome on Mac: Command-Option-I and click 'Network' (then reload the page)
  • Firefox: Install Live HTTP Headers

Share yours!

Anything I missed, mistakes I made, or better ways to do something? Any cool ones you have up your sleeves? I'd love people to add their tips to the comments so I can come back to this post next time I get stuck. I'll try to update my download file with any cool ones the community comes up with.

Thanks for reading, and don't forget to test anything you change! :)


Sign up for The Moz Top 10, a semimonthly mailer updating you on the top ten hottest pieces of SEO news, tips, and rad links uncovered by the Moz team. Think of it as your exclusive digest of stuff you don't have time to hunt down but want to read!

President Obama Talks About "the Idea that Built America"

The White House Your Daily Snapshot for
Tuesday, December 11, 2012
 
President Obama Talks About "the Idea that Built America"

President Obama was in Detroit yesterday to talk about the economy -- how companies are reinvesting in American workers, and why it's so important to extend tax cuts for middle class families.

"I believe America only succeeds and thrives when we’ve got a strong and growing middle class," he said to the crowd at the Daimler Detroit Diesel Plant. "I believe we’re at our best when everybody who works hard has a chance to get ahead."

Find out more about President Obama's visit to Detroit.

President Barack Obama watches as workers explain the process of assembling connecting rods and pistons during a tour of the Detroit Diesel Facility in Redford, Mich., Dec. 10, 2012. (Official White House Photo by Lawrence Jackson)

President Barack Obama watches as workers explain the process of assembling connecting rods and pistons during a tour of the Detroit Diesel Facility in Redford, Mich., Dec. 10, 2012. (Official White House Photo by Lawrence Jackson)

In Case You Missed It

Here are some of the top stories from the White House blog:

Entrepreneurship Is Critical Pillar of U.S. Global Engagement
This week, U.S. government officials, investors, entrepreneurs, NGO leaders, and policy makers from more than 50 countries are gathering in Dubai, United Arab Emirates for the third annual Global Entrepreneurship Summit.

United Behind the Free Flow of Information
The United States is strongly represented at the World Conference on International Telecommunications (WCIT) treaty conference in Dubai this month to ensure the future of global, interoperable telecommunications networks.

The Obama Family Attends Christmas in Washington
Sunday night, President Obama spoke at Christmas in Washington. The concert, hosted by Conan O’Brien, featured performances including Diana Ross, Demi Lovato, Megan Hilty and others, was held to support the Children’s National Medical Center.

Today's Schedule

All times are Eastern Standard Time (EST).

9:45 AM: The President and the Vice President receive the Presidential Daily Briefing

12:30 PM: The President and the Vice President meet for lunch

1:00 PM: Briefing by Press Secretary Jay Carney WhiteHouse.gov/live

WhiteHouse.gov/live Indicates that the event will be live-streamed on WhiteHouse.gov/Live

Get Updates


Stay Connected


This email was sent to e0nstar1.blog@gmail.com
Sign Up for Updates from the White House
Unsubscribe | Privacy Policy
Please do not reply to this email. Contact the White House


The White House • 1600 Pennsylvania Ave NW • Washington, DC 20500 • 202-456-1111
 

Your story bouncing around the White House


The White House, Washington


Hello --

Something special is happening right now at the White House, and you're the reason why.

Here's the situation: If Congress doesn't act, a typical middle-class family of four will pay about $2,000 more in income taxes starting on January 1. President Obama is asking folks to add their voice to the debate and tell us what that money means to their families. And across the country, hundreds of thousands of people are speaking up.

Your response has been so incredible that we've had to ask the entire building to join the effort to read all these stories. Right now, economists and speechwriters, press secretaries and policy aides are all pitching in on top of their other duties to make sure that every single voice gets heard.

You need to be part of this. Take two minutes to share your story and be part of this remarkable conversation. Tell us what $2,000 means to middle-class families.

If you take the time to share your story, you're going to get the attention of a White House staffer. That's the bottom line -- someone is going to take time to listen.

But we're not stopping there.

We're putting these stories on the front page of the White House website. We're sharing them on Facebook and Twitter. The President is talking about them in his speeches and taking time to sit down with folks who have written in -- even hitting the road to meet with one of these families at their kitchen table.

And here's what all that means: This debate, which affects millions of middle-class families, isn't happening in a typical Washington bubble where pundits and policymakers talk past each other as they try to rack up political points.

Instead, your voices are being heard, and that's making a difference.

So let's keep it up. Don't miss a chance to speak out:

http://www.whitehouse.gov/my2k

Thanks,

David

David Plouffe
Senior Advisor
White House




 
This email was sent to e0nstar1.blog@gmail.com.
Unsubscribe | Privacy Policy

Please do not reply to this email. Contact the White House

The White House • 1600 Pennsylvania Ave NW • Washington, DC 20500 • 202-456-1111