Posts Tagged ‘significant’

fwrite vs fputs in php

Monday, July 14th, 2008

So far all the functions have been running fast anyway so the difference haven’t been that significant but things are starting to get interesting with the run time jumping to 20-24 microseconds to write a short string to a file.

fwrite vs fputs
fwrite: 24.9826359749 seconds
fputs: 20.1990799904 seconds
Time saved: 4.7835559845 seconds; 23.6820488199%

With a difference of over 4 microseconds you could run both fputs and floatval in the time it takes to run fwrite. The difference is over 23% which clearly makes fputs the better function. It’s shorter as well.

SEO:Keyword Searching

Monday, June 30th, 2008

This is the most common form of text search on the Web.  Most search engines do their text query and retrieval using keywords.

What is a keyword, exactly?  It can simply be any word on a webpage.  For example, I used the word “simply” in the previous sentence, making it one of the keywords for this particular webpage in some search engine’s index.   However, since the word “simply” has nothing to do with the subject of this webpage (i.e., how search engines work), it is not a very useful keyword.   Useful keywords and key phrases for this page would be “search,” “search engines,” “search engine methods,” “how search engines work,” “ranking” “relevancy,” “search engine tutorials,” etc.  Those keywords would actually tell a user something about the subject and content of this page.

Unless the author of the Web document specifies the keywords for her document (this is possible by using meta tags), it’s up to the search engine to determine them.  Essentially, this means that search engines pull out and index words that appear to be significant.  Since since engines are software programs, not rational human beings, they work according to rules established by their creators for what words are usually important in a broad range of documents.  The title of a page, for example, usually gives useful information about the subject of the page (if it doesn’t, it should!).  Words that are mentioned towards the beginning of a document (think of the “topic sentence” in a high school essay, where you lay out the subject you intend to discuss) are given more weight by most search engines.   The same goes for words that are repeated several times throughout the document.

Some search engines index every word on every page. Others index only part of the document.

Full-text indexing systems generally pick up every word in the text except commonly occurring stop words such as “a,” “an,” “the,” “is,” “and,” “or,” and “www.”  Some of the search engines discriminate upper case from lower case; others store all words without reference to capitalization.

Yahoo! Rejects Microsoft Offer

Thursday, June 19th, 2008

Yahoo’s decision is out. According to Yahoo! “After careful evaluation, the Board believes that Microsoft’s proposal substantially undervalues Yahoo! including our global brand, large worldwide audience, significant recent investments in advertising platforms and future growth prospects, free cash flow and earnings potential, as well as our substantial unconsolidated investments.” Some Yahoo! shareholders do not agree with this assessment though and think that the $31-a-share bid is actually generous.

With no Yahoo! stocks to think about though, what’s clear is that we can start focusing on our SEO projects again and stop obsessing about the possible Yahoo!-MSN merger and its effect on the search scene. If you feel like dissecting the might-have-beens though all you need is to Google (^_^) any variation of the Yahoo!-MSN merger to find opinions all over the blogosphere.