Posts Tagged ‘technology’

General introduction-Java script

Wednesday, July 16th, 2008

JavaScript is most commonly used as a client side scripting language. This means that JavaScript code is written into an HTML page. When a user requests an HTML page with JavaScript in it, the script is sent to the browser and it’s up to the browser to do something with it.

The fact that the script is in the HTML page means that your scripts can be seen and copied by whoever views your page. Nonetheless, to my mind this openness is a great advantage, because the flip side is that you can view, study and use any JavaScript you encounter on the WWW.

JavaScript can be used in other contexts than a Web browser. Netscape created server-side JavaScript as a CGI-language that can do roughly the same as Perl or ASP. There is no reason why JavaScript couldn’t be used to write real, complex programs. However, this site exclusively deals with the use of JavaScript in web browsers.

If you don’t have any programming experience at all it’s best to start with some gentle JavaScript examples that teach you the basics. It might be a good idea to buy Negrino & Smith, “JavaScript for the World Wide Web”, 4th edition, Peachpit Press, 2001. It contains some very useful examples and though it doesn’t treat advanced programming tricks, it will certainly help you get started. Of course this site also offers plenty of help.

I can also recommend Jeremy Keith, DOM Scripting: Web Design with JavaScript and the Document Object Model, 1st edition, Friends of Ed, 2005. This, too, is a book that doesn’t delve too deeply into technology, but gives non-programmers such as graphic designers/CSS wizards an excellent overview of the most common uses of JavaScript - as well as the most common problems.

Search Engines vs Directories

Tuesday, July 15th, 2008

Search engines, such as Google, create their listings automatically. Search engines crawl through the web. Search engines eventually find your site and index the pages they find. Page titles, body text (ie, great content), META tags and other elements all play a role in what gets indexed. People then review the results of what was found by the search engine, based on keywords they type into the search engine.

A directory such as Yahoo! Directory depends on human editors to create its listings. You submit a description of your site to the directory for editors to review. A good site, with good content, will be more likely to get reviewed than a poor site. A search of a directory looks for matches only in that directory’s index.

Yahoo! also has a search engine that includes spidered websites along with their directory listings and “Sponsor Results” which are pay per click ads, similar to Google’s Adwords. Originally Yahoo! displayed only listings from their directory. Then in 2002 they added search engine listings from Google. In 2004 they started using their own search engine based on AltaVista’s technology. A few years later they acquired Overture (formerly GoTo) which was the first pay per click program.

Search Engine Optimization-Searching by Means of Search Engines

Tuesday, July 15th, 2008

This is where things start to get complicated.
Search engines are trickier than they look!  You’ll discover this the first time you enter a query on C++, the programming language.  At least of the Web search engines will essentially say, “Huh?”

C++ is not a word.  It’s a letter followed by two characters that might, depending on the index, be regarded merely as punctuation.  Many text search engines have trouble handling input of this type.  Many don’t deal too well with numbers, either.  So much for “007,” “R2D2,”or “Catch-22.”

Important Note:  This problem is no longer as bad as it used to be.  I’m now finding relevant hits for C++ on a majority of search engines sites.

Here’s another example of a text string search engines hate:  To be or not to be.  Just about anyone who finished junior high school will be able to tell you where the phrase comes from and (possibly!) what it means.  But some search engines choke because all the words in the phrase are stop words–i.e., unimportant words too short and too common to be considered relevant strings on which to search.   However, if you enclose the query in quotation marks, forcing the search engine to find the words, “to be or not to be” in that precise order, most search engines can  recognize the phrase as a famous quotation from Hamlet.

Let’s take a less obvious example.  Suppose you’re a fan of murder mysteries and you want to search the Web for the home pages of all your favorite authors in that genre.  If you simply enter the words “mystery” and “writer,” most search engines will return hyperlinks to all Web documents that contain the word “mystery” or the word, “writer.”  This will probably include hundreds–or even thousands–of URLs, most of which will have no relevance to your search. If you enter the words as a phrase, however, you stand a better chance of getting some good hits.

However, as search technology advances, this is not as much of a problem as it was a couple of years ago. Many search engines will now automatically apply the “adjacency” operator when responding to a two-word query. This means that they will indeed look for documents in which your two words appear next to each other.

If you understand how search engines organize information and run queries, you can maximize your chances of getting hits on URLs that matter.

SEO:Link Popularity - Search Engines Page Rank Technology

Monday, June 30th, 2008

What is Link Popularity?

Link popularity literally means the popularity of links to your site on other web sites. The more popular your site is - especially with well ranked sites, the higher will your site be ranked. For this reason we prefer to call link popularity as link quality. Most search engines decide the popularity of your individual site pages so you need to build up links to all your major pages. Thus page ranking will vary for your site pages and keywords.

Search Engine Optimization

To optimize your site for search engines, your pages should have relevant content with all related keywords appearing as valid reading matter. If your site doesn’t have quality content or you have just repeated your keywords without any sense, your page rank will be affected or worse you could be black listed by the search engines.

SEO:Relevancy Rankings

Monday, June 30th, 2008

Most of the search engines return results with confidence or relevancy rankings.  In other words, they list the hits according to how closely they think the results match the query.  However, these lists often leave users shaking their heads on confusion, since, to the user, the results may seem completely irrelevant.

Why does this happen?  Basically it’s because search engine technology has not yet reached the point where humans and computers understand each other well enough to communicate clearly.

Most search engines use search term frequency as a primary way of determining whether a document is relevant.  If you’re researching diabetes and the word “diabetes” appears multiple times in a Web document, it’s reasonable to assume that the document will contain useful information.  Therefore, a document that repeats the word “diabetes” over and over is likely to turn up near the top of your list.

If your keyword is a common one, or if it has multiple other meanings, you could end up with a lot of irrelevant hits.  And if your keyword is a subject about which you desire information, you don’t need to see it repeated over and over–it’s the information about that word that you’re interested in, not the word itself.

Some search engines consider both the frequency and the positioning of keywords to determine relevancy, reasoning that if the keywords appear early in the document, or in the headers, this increases the likelihood that the document is on target.  For example, one method is to rank hits according to how many times your keywords appear and in which fields they appear (i.e., in headers, titles or plain text).  Another method is to determine which documents are most frequently linked to other documents on the Web.  The reasoning here is that if other folks consider certain pages important, you should, too.

If you use the advanced query form on AltaVista, you can assign relevance weights to your query terms before conducting a search.  Although this takes some practice, it essentially allows you to have a stronger say in what results you will get back.

As far as the user is concerned, relevancy ranking is critical, and becomes more so as the sheer volume of information on the Web grows.  Most of us don’t have the time to sift through scores of hits to determine which hyperlinks we should actually explore. The more clearly relevant the results are, the more we’re likely to value the search engine.

Firefox vs Internet Explorer

Saturday, June 28th, 2008

Just because everyone feels that they have a solution to someone else’s problems, new forms of technology are created. Some technology is created to process word files and improve the use of the computer while others are created to enhance the use of the Internet.

Because the Internet is so widely used, countless developers are coming up with tools that will make the Internet more user friendly. Several browsers are created one competing against the other as far as performance goes. Two highly competitive browsers are Microsoft’s Internet Explorer and Firefox.

Internet Explorer has been around since the creation of windows. It is used by several individuals. It has many wonderful browsing features as well as some safety features such as a pop up blocker. Though it is extremely popular, Firefox is gaining momentum as people are catching onto the numerous benefits.

One benefit that Firefox has that totally outdoes Internet Explorer is the enhanced popup blocker. Unlike Internet Explorer’s popup blocker that only halfway does the trick, Firefox’s popup blocker blocks out all of the annoying ads. You’ll never again have to see them on your computer. What’s more, you do not need supplemental programs to block annoying ads as does Internet Explorer.

Should you wan to open new web pages, you do not need to open them in new windows. Rather, you can use tabs. What’s more, you can open them in the background.

If you are filling in any forms online, Firefox will save the details for you so you will not have to go back and enter them in a second time. This is great, especially if you are going to sites you’ll use more than once such as Google or advertising sites like Craigslist. This detail alone is not only a time saver: but, it makes life online easier.

When using Firefox, you’ll also have better online security. Spyware, adware and malicious software cannot automatically install themselves into the browser unlike Internet Explorer. This means that you’ll not have to worry about your browser being hijacked to the point of having to repair your OS or totally reformat it all together.

Though Firefox possesses many great attributes, there are some disadvantages to using the browser. For example, its tight security makes ActiveX impossible to run which is a major problem since countless developers use ActiveX to deliver various applications to desktops. This makes it impossible to ditch Internet Explorer completely as if you wanted to use ActiveX, you’ll need to switch browsers.

In order to decide whether Firefox has really replace Internet Explorer will require that you are looking at the entire picture. It is imperative that you have all the facts. Also, just because you have switched to Firefox does not mean that you should forget about updating and patching Internet Explorer on a regular basis. Though Firefox is a great browser, you’ll still need to rely on Internet Explorer for certain things, especially when it comes to making up for the weaknesses found in Firefox.

PHP:Passing a variable from Javascript to PHP

Saturday, June 28th, 2008

Since Javascript is a client-side technology, and PHP is a server-side technology, the two languages cannot directly share variables. It is, however, possible to pass variables between the two. One way of accomplishing this is to generate Javascript code with PHP, and have the browser refresh itself, passing specific variables back to the PHP script. The example below shows precisely how to do this — it allows PHP code to capture screen height and width, something that is normally only possible on the client side.
<?php
if (isset($_GET['width']) AND isset($_GET['height'])) {
// output the geometry variables
echo “Screen width is: “. $_GET['width'] .”<br />\n”;
echo “Screen height is: “. $_GET['height'] .”<br />\n”;
} else {
// pass the geometry variables
// (preserve the original query string
// — post variables will need to handled differently)

echo “<script language=’javascript’>\n”;
echo “ location.href=\”${_SERVER['SCRIPT_NAME']}?${_SERVER['QUERY_STRING']}”
. “&width=\” + screen.width + \”&height=\” + screen.height;\n”;
echo “</script>\n”;
exit();
}
?>

Web Hosting Guide

Thursday, June 26th, 2008

Looking for and buying a reliable web hosting solution is an imperative decision. Whether you are doing online business, providing important information or sharing views online on a common interest, you need a reliable web hosting service that will allow online visitors to browse through your site effortlessly. It is only powerful web hosting that allows your website to be downloaded, browsed and updated in minimal time.

Trying to identify a web host can be a very daunting task especially when there are so many available nowadays and all of them promise one thing or another. Hence, it is crucial that before you jump in, you do your own homework or research for selecting the most appropriate web hosting company for your website.

With the changing trend of technology, web hosts are also changing. Most of them provide various services in addition to their basic ones. Say if you are running an e-commerce website, then of course you need high end security and a medium through which you can manage your web content efficiently. There are many tools that facilitate this, however if your web hosting service is not reliable then you can miss out on serious revenues and prospective clients.

Once you have determined and identified what web hosting services you require for your online business, it is then time to enlist certain web hosting features and options you must consider. You can find below some of the most important aspects of web hosting:

Disk space and bandwidth

You should know how much space your website would need and approximate data it will generate. When we talk about disk space, well, it’s actually the amount of storage assigned to you by the web hosting provider. The bandwidth is the amount of traffic that is allowed to access and leave your website. In case your website has a lot of graphics then you would require higher storage area and greater bandwidth.

Programming tools and the OS

You need to be sure that your website is uploaded through secure servers using the latest Operating System. Most web hosts run on a UNIX based operating system, usually Linux or BSD. For the running of various web applications you would require ASP, .NET, MS SQL, SBS and for these you need a Window based host.

Pricing Aspect

You need to compare pricing before you finalize a web hosting service. Some may provide you better services but at low pricing. It’s not always true that the best hosting services are always the most expensive. Do your research and then finalize.

Support, Security, Guaranteed uptime and Backups

Security and backups are two very important aspects that you need to consider. You should always choose a web hosting service with reliable telephone support. Some also offer 24/7 support through local or toll-free numbers. In case you are running an ecommerce website then security is one aspect that you just cannot discard. Your web hosting service provider should be such that they can monitor things round the clock and ensure no unwanted intruder can hack your site. After all it’s your website and it is really worth looking into this aspect of web hosting.

Google New Logo—>Laser Logo

Friday, June 20th, 2008

This is one of the coolest and also the weirdest logos to show on the Google homepage: in disco neon colors, Google today celebrated the anniversary of the first innovation of laser. Wikipedia explains: (Notice that laser technology was invented on 16th of May, which is today!)
A laser is an electronic-optical device that emits coherent

Set Google as your Default Search in IE

Wednesday, June 18th, 2008

Copy everything after ‘CODE’ below into NOTEPAD

CODE:
REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
“Search Page”=”http://www.google.com”
“Search Bar”=”http://www.google.com/ie”

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchURL]
“”=”http://www.google.com/keyword/%s”

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Search]
“SearchAssistant”=”http://www.google.com/ie”

1. Save the file as Google.reg
2. Double click to import to your registry.

NOTE: If your anti-virus software warns you of a “malicious” script, this is normal if you have “Script Safe” or similar technology enabled.