Posts Tagged ‘necessarily’

How to Delete Cookies?

Tuesday, July 29th, 2008

One thing you may have noticed if you have started writing Javascript to use cookies is that there is no actual delete command that can be used to delete a cookie after you have created it. This doesn’t mean that you can’t delete cookies, it just means that you need to understand how cookies work in order to be able to control when the system will delete them for you.

When you create a session cookie it will continue to exist for as long as the browser remains open and will be deleted as soon as the browser is closed. This is because session cookies are actually retained in memory by the browser and are never actually stored anywhere. You do not specify an expiry date when creating a session cookie.

If you want a cookie to last for a longer (or shorter) time than you get wioth a session cookie you need to create a first party cookie instead. With a first party cookie the cookie is actually stored in a file on your visitor’s hard drive. You specify an expiry date/time when creating a first party cookie that defines how long the cookie is to be retained on the hard drive. The cookie isn’t necessarily deleted when that date/time is reached but cookies that have passed their expiry date/’time are ignored and so as far as the browser is concerned they don’t exist.

So how does this help us if we decide that we need to delete a cookie befre the date/time that it is set to expire? Well the solution is quite simple, we change the expiry date of the cookie so that it will be considered to have already expired. Rather than having to remember what to do each time, let’s just create a small function for deleting whichever cookie that we want.

function del_cookie(name) {
document.cookie = name +
‘=; expires=Thu, 01-Jan-70 00:00:01 GMT;’;
}

Now all we need to do is to call this del_cookie() function passing it the name of whatever cookie it is that we wish to delete. The function will update the expiry date on the cookie to one long in the past so that the cookie will be considered to be expired and will be ignored by the browser exactly the same as if it didn’t exist.

Why choose that particular date for setting the expiry date to delete the cookie? Well it just happens that all of the date processing within Javascript sees the 1st January 1970 as its starting date and actually records all date/times internally as the number of milliseconds from midnight on that day. Using that date therefore is effectively equivalent to setting the expiry to zero which means that the cookie will be deleted even if your visitor has the date on their computer set incorrectly. Were we to choose a more recent date it would be possible (although very unlikely) that one of our visitors might have their computer date set incorrectly to one earlier than the exipry that we chose and so our attempt to delete the cookie wouldn’t then work for them.

What is the role of search engine optimization in media relations?

Tuesday, July 15th, 2008

It’s a strategic decision. The keyword insight that comes from keyword analysis that you might do with a SEO campaign, where you can tap in to tools that monitor what people are searching on can be very useful in optimizing news related content.

The result of the keyword research is to create a glossary of phrases with metrics like popularity, relevance and competitiveness. You can then leverage the glossary across corporate communications. Try to get any digital asset that’s created whether its press releases, web pages, product pages or announcements to use phrases from the glossary. Get people responsible for creating the content to use the glossaries and find out what variations of phrases are in demand so that they’re using language that’s both relevant and popular.

Often times, people like to be creative in PR and direct marketing and that does not always bode well for search. Copywriters or content producers try to be clever or ironic or funny and those ways of communicating are not as meaningful to a machine or an algorithm as being literal in your word usage. That is a practical application of search for media relations. You optimize content according to what people are looking for.

Let’s say you’re conducting media relations for a client for an interview and the company web site and press releases are already optimized for certain keywords. You can coach the client to use those keywords in the interview. What happens a lot of times is that when that interview goes to print or even online, people remember the topics of the article but not necessarily the names of the companies involved. They’ll go to Google and search for those topics and when the company web site is properly optimized, it ranks highly for search phrases gleaned from the article.

Search Engine Submission: Getting Listed

Saturday, June 28th, 2008

“Search engine submission” refers to the act of getting your web site listed with search engines. Another term for this is search engine registration.

Getting listed does not mean that you will necessarily rank well for particular terms, however. It simply means that the search engine knows your pages exist.

Think of it as a lottery. Search engine submission is akin to your purchasing a lottery ticket. Having a ticket doesn’t mean that you will win, but you must have a ticket to have any chance at all.

What do I do if I spill a liquid on my keyboard or laptop?

Friday, June 20th, 2008

If you’re on a laptop and you happen to spill something on it, the first thing you should do is power it off. You dont want any electricity running through that thing when you’ve got liquid on it somewhere. The next thing you have to do is turn it upside down so that all the liquid spills out. Grab some cloth or whatever you can to wipe off all the excess liquid. Now grab your hairdryer and run it off the keyboard until everything looks dry. Just to be safe, leave it unplugged for about a day or two so you can be sure that it dries out and just before you’re starting it up again go over it with a hairdryer again. What alot of people don’t know is that liquid isn’t necessarily bad for your computer because all the parts in there actually get washed before they’re get put into your computer. I know that’s scary but that actually happens. After three days power it back on, you should be fine. If not, you can take it to a repair center but the chances are you haven’t done that much damage to it.

Impact on Google PageRank

Thursday, June 19th, 2008

1. Frequent content updates don’t improve Page Rank automatically. Content is not part of the PR       calculation.

2. High Page Rank doesn’t mean high search ranking.

3. DMOZ and Yahoo! Listings don’t improve Page Rank automatically.

4. .edu and .gov-sites don’t improve Page Rank automatically.

5. Sub-directories don’t necessarily have a lower Page Rank than root-directories.

6. Wikipedia links don’t improve PageRank automatically (update: but pages which extract       information from Wikipedia might improve PageRank).

7. Links marked with nofollow-attribute don’t contribute to Google PageRank.

8. Efficient internal onsite linking has an impact on PageRank.

9. Related high ranked web-sites count stronger. But: “a page with high PageRank may actually       pass you less if it has more links, because it’s spread too thin.”

10. Links from and to high quality related sites have an impact on Page Rank.

11. Multiple votes to one link from the same page cost as much as a single vote.