Rabu, 09 Juli 2008

History PHP

PHP originally stood for Personal Home Page. It began in 1994 as a set of Common Gateway Interface binaries written in the C programming language by the Darish/Greenlandic programmer Rasmus Lerdorf. Lerdorf initially created these Personal Home Page Tools to replace a small set of Perl scripts he had been using to maintain his personal homepage. The tools were used to perform tasks such as displaying his resume and recording how much traffic his page was receiving. He combined these binaries with his Form Interpreter to create PHP/FI, which had more functionality. PHP/FI included a larger C implementation and could communicate with databases enabling the building of simple, dynamic web applications. He released PHP publicly on June 8, 1995 to speed up the finding of bugs and improving the code. This release was named PHP version 2 and already had the basic functionality that PHP has today. This included Perl-like variables, form handling, and the ability to embed HTML. The syntax was similar to Perl but was more limited, simpler, and less consistent.

Zeev Suraski and Andi Gutmans, two Israeli developers at the Technion IIT, rewrote the parser in 1997 and formed the base of PHP 3, changing the language's name to the recursive initialismPHP: Hypertext Preprocessor. The development team officially released PHP/FI 2 in November 1997 after months of beta testing. Afterwards, public testing of PHP 3 began, and the official launch came in June 1998. Suraski and Gutmans then started a new rewrite of PHP's core, producing the Zend Engine in 1999. They also founded Zend Technologies in Ramat Gan, Israel, which manages the development of PHP.

On May 22, 2000, PHP 4, powered by the Zend Engine 1.0, was released. On July 13, 2004, PHP 5 was released, powered by the new Zend Engine II. PHP 5 included new features such as improved support for object-oriented programming, the PHP Data Objects extension (which defines a lightweight and consistent interface for accessing databases), and numerous performance enhancements. The most recent update released by The PHP Group is for the older PHP version 4 code branch. As of January 2008, this branch is up to version 4.4.8. PHP 4 is no longer under active development but will be supported by security updates until August 8, 2008.

In 2008, PHP 5 became the only stable version under development. Late static binding has been missing from PHP and will be added in version 5.3. Alongside PHP 5, PHP 6 is also under active development. Major changes include the removal of register_globals, magic quotes, and safe mode.

PHP does not have complete native support for Unicode or multibyte strings; unicode support will be included in PHP 6. Many high profile open source projects ceased to support PHP 4 in new code as of February 5, 2008, due to the GoPHP5 initiative, provided by a consortium of PHP developers promoting the transition from PHP 4 to PHP 5.

It runs in both 32-bit and 64-bit environments, but on Windows the only official distribution is 32-bit, requiring Windows 32-bit compatibility mode to be enabled while using IIS in a 64-bit Windows environment. There is a third-party distribution available for 64-bit Windows.

Read More - History PHP

Sabtu, 05 Juli 2008

10 Tips On Promoting Your New Blog

One great way of getting more traffic and more importantly, making the traffic come back to your site over and over again, is by having your own blog.

The term, ‘Blog‘, is becoming more and more popular, and these days most online companies have a blog.

How can you promote your blog? Once you get your blog known, if you have good enough content, then it will promote itself, thats the amazing thing with blogs.

Heres some quick tips to help promote your blog.

1. Allow your blog readers to subscribe to your own RSS feed. Subscribe with Feedburner. Feedburner allows blog owners and podcasters the ability to manage their RSS feeds and track usage of their subscribers.

2. Always set your blog to ping ‘update services’. What is that? If you use the Wordpress software, here is a great explanation, http://codex.wordpress.org/Update_Services.

3. Take full advantage of Technorati. For a full explanation of what Technorati is and how it works, take a look here, http://www.technorati.com/about/tour.html.

4. Use the power of social netwroking sites, such as digg.com, reddit.com and del.icio.us . If you write a great article, submit it to these sites, if they get picked up by them, you will see a massive increase in traffic to your blog.

5. When writing a post, always make sure you link to as many related sites and blogs. Many blogs have a ‘trackback’ feature enabled which can see what other blogs, like yours, are sending visitors to their blogs. They then usually link back to your blog automatically for free.

6. Get your blogs web address in as many places as possible. Use forums, and put your blogs address in your signature.

7. Submit your blog to as many blog directories as possible, such as blogcatalog.com

8. Link to your blog from your websites homepage, and also in the footer of every other page on your website.

9. Get tips from 2 pro bloggers, such as problogger.net and shoemoney.com

10. Finally, and most important, write great content that is relevant to your website, and you will then find your readers will do your promoting for you.

Read More - 10 Tips On Promoting Your New Blog

Basic Adsense Tips

Once in a week, i will publish my personal article about an advertising program which is Adsense. For those who still don’t know what Adsense is, it is a pay-per-click adevertising program which website publishers can use to menetize their websites.

The first thing you need to know about Adsense is it is not a program where you can earn money esily. Well to said, your website or your blog need lots of traffic to take full advantage of this program. Now, you must be wondering on how to improve your website traffic. From my experience,for the first time my website receive very little hits per day which is about 30-50 hits. Its really bad and to solve the problems, I have use these methods:

1) Add good content

2) Do a SEO (Search Engine Optimization)

3) Improve the site layout

When I added good content to the website, website traffic increases to 100 hits per day. Website visitors is always hungry to find new information in the net. Regardless what is the type of your website/blog is, you must create a truly original content for it. Don’t spend your time searching for free artilces because Adsense really don’t like duplicate contents.

Another tips is let your visitors know what your website/blog offers to its visitors. Create a section for your new website visitors what they can gain by visitng your website/blog. Suggest them to comment on your entry so that they will feel they are belonging to your blog/website.

From their comment and suggestion, you can improve your website/blog more. Now, thats for the section for getting website traffic.

The next factor that you must take care is SEO which means Search Engine Optimization. Search engine that we will focsu is Google. Google receive million search per day. you can imagine a lot of people go to Google everyday to search for infromation. If you’re lucky they will find your website. But it’s not an easy way to do because SEO need lots of hard work and patience. The first thing you need to do when you have a website/blog is by giving its url to Google so that its crawler can search your pages and then include them in Google search engine. For lots more information about SEO, go to our Webmaster Section. i have post lots of good tips for SEO there.

Read More - Basic Adsense Tips

Creating AJAX Game


Just 1 week ago i decide to make an AJAX Game. I modify my old PHP game and integrated AJAX base on Mootools javascript framework on it. It’s work fine.

You can try this game at: http://game.idwebtemplate.com

This game is so easy to play. Each player take bullet / ball from three box contain with 7, 5, dan 3 bullet. You can take as much as you want.

The game rule : Player which take the last bullet will be LOSE

Read More - Creating AJAX Game

Jumat, 06 Juni 2008

Ajax Programming

Brief history
Ajax is only a name given to a set of tools that were previously existing.
The main part is XMLHttpRequest, a class usable in JavaScript , that was implemented into Internet Explorer since the 4.0 version.
The same concept was named XMLHTTP some times, before the Ajax name becomes commonly used.
The use of XMLHttpRequest in 2005 by Google, in Gmail and GoogleMaps has contributed to the success of this format. But this is the name Ajax itself that made the technology so popular.

Why to use Ajax?
Mainly to build a fast, dynamic website, but also to save resources.
For improving sharing of resources, it is better to use the power of all the client computers rather than just an unique server and network. Ajax allows to perform processing on client computer (in JavaScript) with data taken from the server.
The processing of web page formerly was only server-side, using web services or PHP scripts, before the whole page was sent within the network.
But Ajax can selectively modify a part of a page displayed by the browser, and update it without the need to reload the whole document with all images, menus, etc...
For example, fields of forms, choices of user, may be processed and the result displayed immediately into the same page.

What is Ajax in depth?
Ajax is a set of technologies, supported by a web browser, including these elements:
HTML and CSS for presenting.
JavaScript (ECMAScript) for local processing, and DOM (Document Object Model) to access data inside the page or to access elements of XML file read on the server (with the getElementByTagName method for example)...
The XMLHttpRequest class read or send data on the server asynchronously.
optionally...
The DomParser class may be used
PHP or another scripting language may be used on the server.
XML and XSLT to process the data if returned in XML form.
SOAP may be used to dialog with the server.

The "Asynchronous" word, means that the response of the server while be processed when available, without to wait and to freeze the display of the page.

How does it works?
Ajax uses a programming model with display and events. These events are user actions, they call functions associated to elements of the web page.
Interactivity is achieved with forms and buttons. DOM allows to link elements of the page with actions and also to extract data from XML files provided by the server.
To get data on the server, XMLHttpRequest provides two methods:
- open: create a connection.
- send: send a request to the server.
Data furnished by the server will be found in the attributes of the XMLHttpRequest object:
- responseXml for an XML file or
- responseText for a plain text.

Take note that a new XMLHttpRequest object has to be created for each new file to load.

We have to wait for the data to be available to process it, and in this purpose, the state of availability of data is given by the readyState attribute of XMLHttpRequest.

States of readyState follow (only the last one is really useful):
0: not initialized.
1: connection established.
2: request received.
3: answer in process.
4: finished.
Read More - Ajax Programming

Sport : Liverpool


Liverpool is associated with a variety of sports, most notably football, but also a number of others.

Liverpool has two Premier League football clubs: Everton F.C. at Goodison Park and Liverpool F.C. at Anfield. Liverpool are statistically the most successful English football club of all-time, having won the league title 18 times, FA Cup seven times, Football League Cup seven times, European Cup/UEFA Champions League five times and UEFA Cup three times. Everton have also enjoyed spells of dominance, having won the league title nine times, FA Cup five times, and the European Cup Winners' Cup once. Their most recent success was the FA Cup in 1995. South Liverpool F.C. were once another successful professional side, however they have experienced a turbulent history and are currently in the Liverpool County Premier League.

Liverpool is the only city to have staged top division football every season since the formation of the Football League in 1888, and both Liverpool and Everton have played in the top division every season since 1962.

Professional basketball is played in the city with the addition of Everton Tigers into the elite British Basketball League in 2007. The club is associated with Everton Football Club, and is part of the Toxteth Tigers youth development programme, which reaches over 1,500 young people every year.[25] The Tigers will commence play in Britain's top league for the 2007-08 season, though their home venue has yet to be confirmed. Their closest professional rivals are the Chester Jets, based 18 miles away in Chester.

County cricket is occasionally played in Liverpool, with Lancashire County Cricket Club typically playing one match every year at Liverpool Cricket Club, Aigburth.

Aintree Racecourse to the north of Liverpool in the adjacent borough of Sefton is home to the famous steeplechase, the Grand National, One of the most famous events in the international horse racing calendar, it is held in early April each year. In addition to horse-racing, Aintree has also hosted motor racing, including the British Grand Prix in the 1950s and 1960s.

Speedway racing was formerly staged at Stanley Stadium in Prescot Road from the 1920s until the late 1930s. It then reopened in 1949, with the Liverpool Chads taking part in the National League, until the track closed mid-season in 1953. A brief open season in 1959 was followed by the final season in 1960 when the Liverpool Pirates participated in the Provincial League. Peter Craven, the World Champion in 1955 and 1962, started out at Stanley Stadium before moving on to Belle Vue in Manchester.

A speedway track also operated in the mid-1930s at Seaforth Stadium.

Liverpool Harriers, who meet at Wavertree Athletics Centre, are one of five athletic clubs. Liverpool has a long history of boxing that has produced John Conteh, Alan Rudkin and Paul Hodkinson and hosts high level amateur boxing events. Park Road Gymnastics Centre provides training to a high level. The City of Liverpool Swimming Club has been National Speedo League Champions 8 out of the last 11 years. Liverpool Tennis Development Programme based at Wavertree Tennis Centre is one of the largest in the UK.[26] Liverpool is also home to the Red Triangle Karate Club, which provided many of the 1990 squad that won the World Shotokan Championships in Sunderland. Luminaries include Sensei Keinosuke Enoeda, Sensei Frank Brennan, Sensei Omry Weiss, Sensei Dekel Kerer, Sensei Andy Sherry and Sensei Terry O'Neill, who is also famous for various acting roles.

Rugby league is played at amateur and student level within the city; the last professional team bearing the city's name was Liverpool City, which folded in the 1960s. Liverpool St Helens F.C. is one of the oldest rugby union teams in the UK.

Liverpool is one of three cities which still host the traditional sport of British Baseball and it hosts the annual England-Wales international match every two years, alternating with Cardiff and Newport. Liverpool Trojans are the oldest existing baseball club in the UK.

The Royal Liverpool Golf Club, situated in the nearby town of Hoylake on the Wirral Peninsula, has hosted The Open Championship on a number of occasions, most recently in 2006. It has also hosted the Walker Cup.

Liverpool has a Lacrosse Club, open to both Men and Women. Playing at Liverpool Cricket Club in Aigburth, South Liverpool, the Mens team is mainly built around the University squad, but with University old boys and locals joining the team. Having started in the lowest division in the north, Division 5, they have successfully gained promotion to Division 4 in their first competitive season.

Parkour/freerunning is a popular sport in liverpool. Two well-known traceurs from the city are Daniel Ilabaca and Ryan Doyle.
Read More - Sport : Liverpool

News : Global Warming

Global warming is the increase in the average temperature of the Earth's near-surface air and oceans since the mid-twentieth century, and its projected continuation.

The average global air temperature near the Earth's surface increased 0.74 ± 0.18 °C (1.33 ± 0.32 °F) during the hundred years ending in 2005. The Intergovernmental Panel on Climate Change (IPCC) concludes "most of the observed increase in globally averaged temperatures since the mid-twentieth century is very likely due to the observed increase in anthropogenic (man-made) greenhouse gas concentrations" via an enhanced greenhouse effect. Natural phenomena such as solar variation combined with volcanoes probably had a small warming effect from pre-industrial times to 1950 and a small cooling effect from 1950 onward.

These basic conclusions have been endorsed by at least thirty scientific societies and academies of science, including all of the national academies of science of the major industrialized countries. While individual scientists have voiced disagreement with some findings of the IPCC, the overwhelming majority of scientists working on climate change agree with the IPCC's main conclusions.

Climate model projections summarized by the IPCC indicate that average global surface temperature will likely rise a further 1.1 to 6.4 °C (2.0 to 11.5 °F) during the twenty-first century. This range of values results from the use of differing scenarios of future greenhouse gas emissions as well as models with differing climate sensitivity. Although most studies focus on the period up to 2100, warming and sea level rise are expected to continue for more than a thousand years even if greenhouse gas levels are stabilized. The delay in reaching equilibrium is a result of the large heat capacity of the oceans.

Increasing global temperature will cause sea level to rise, and is expected to increase the intensity of extreme weather events and to change the amount and pattern of precipitation. Other effects of global warming include changes in agricultural yields, trade routes, glacier retreat, species extinctions and increases in the ranges of disease vectors.

Remaining scientific uncertainties include the amount of warming expected in the future, and how warming and related changes will vary from region to region around the globe. Most national governments have signed and ratified the Kyoto Protocol aimed at reducing greenhouse gas emissions, but there is ongoing political and public debate worldwide regarding what, if any, action should be taken to reduce or reverse future warming or to adapt to its expected consequences.
Read More - News : Global Warming

Windows Vista


Windows Vista (pronounced /ˈvɪstə/) is a line of operating systems developed by Microsoft for use on personal computers, including home and business desktops, laptops, Tablet PCs, and media center PCs. Prior to its announcement on July 22, 2005, Windows Vista was known by its codename "Longhorn". Development was completed on November 8, 2006; over the following three months it was released in stages to computer hardware and software manufacturers, business customers, and retail channels. On January 30, 2007, it was released worldwide, and was made available for purchase and download from Microsoft's website. The release of Windows Vista comes more than five years after the introduction of its predecessor, Windows XP, the longest time span between successive releases of Microsoft Windows.

Windows Vista contains many changes and new features, including an updated graphical user interface and visual style dubbed Windows Aero, improved searching features, new multimedia creation tools such as Windows DVD Maker, and redesigned networking, audio, print, and display sub-systems. Vista also aims to increase the level of communication between machines on a home network, using peer-to-peer technology to simplify sharing files and digital media between computers and devices. Windows Vista includes version 3.0 of the .NET Framework, which aims to make it significantly easier for software developers to write applications than with the traditional Windows API.

Microsoft's primary stated objective with Windows Vista, however, has been to improve the state of security in the Windows operating system. One common criticism of Windows XP and its predecessors has been their commonly exploited security vulnerabilities and overall susceptibility to malware, viruses and buffer overflows. In light of this, Microsoft chairman Bill Gates announced in early 2002 a company-wide "Trustworthy Computing initiative" which aims to incorporate security work into every aspect of software development at the company. Microsoft stated that it prioritized improving the security of Windows XP and Windows Server 2003 above finishing Windows Vista, thus delaying its completion.

While these new features and security improvements have garnered positive reviews, Vista has also been the target of much criticism and negative press. Criticism of Windows Vista has targeted high system requirements, its more restrictive licensing terms, the inclusion of a number of new digital rights management technologies aimed at restricting the copying of protected digital media, lack of compatibility with certain pre-Vista hardware and software, and the number of authorization prompts for User Account Control. As a result of these and other issues, Vista has seen adoption and satisfaction rates lower than Windows XP.
Read More - Windows Vista

Jumat, 23 Mei 2008

History Of Programming

The earliest programmable machine (that is a machine whose behavior can be controlled by changes to a "program") was Al-Jazari's programmable humanoid robot in 1206. Al-Jazari's robot was originally a boat with four automatic musicians that floated on a lake to entertain guests at royal drinking parties. His mechanism had a programmable drum machine with pegs (cams) that bump into little levers that operate the percussion. The drummer could be made to play different rhythms and different drum patterns by moving the pegs to different locations.

The Jacquard Loom, developed in 1801, is often quoted as a source of prior art. The machine used a series of pasteboard cards with holes punched in them. The hole pattern represented the pattern that the loom had to follow in weaving cloth. The loom could produce entirely different weaves using different sets of cards. The use of punched cards was also adopted by Charles Babbage around 1830, to control his Analytical Engine.

This innovation was later refined by Herman Hollerith who, in 1896 founded the Tabulating Machine Company (which became IBM). He invented the Hollerith punched card, the card reader, and the key punch machine. These inventions were the foundation of the modern information processing industry. The addition of a plug-board to his 1906 Type I Tabulator allowed it to do different jobs without having to be rebuilt (the first step toward programming). By the late 1940s there were a variety of plug-board programmable machines, called unit record equipment, to perform data processing tasks (card reading). The early computers were also programmed using plug-boards.

The invention of the Von Neumann architecture allowed computer programs to be stored in computer memory. Early programs had to be painstakingly crafted using the instructions of the particular machine, often in binary notation. Every model of computer would be likely to need different instructions to do the same task. Later assembly languages were developed that let the programmer specify each instruction in a text format, entering abbreviations for each operation code instead of a number and specifying addresses in symbolic form (e.g. ADD X, TOTAL). In 1954 Fortran, the first higher level programming language, was invented. This allowed programmers to specify calculations by entering a formula directly (e.g. Y = X*2 + 5*X + 9). The program text, or source, was converted into machine instructions using a special program called a compiler. Many other languages were developed, including ones for commercial programming, such as COBOL. Programs were mostly still entered using punch cards or paper tape. (See computer programming in the punch card era). By the late 1960s, data storage devices and computer terminals became inexpensive enough so programs could be created by typing directly into the computers. Text editors were developed that allowed changes and corrections to be made much more easily than with punch cards.

As time has progressed, computers have made giant leaps in the area of processing power. This has brought about newer programming languages that are more abstracted from the underlying hardware. Although these more abstracted languages require additional overhead, in most cases the huge increase in speed of modern computers has brought about little performance decrease compared to earlier counterparts. The benefits of these more abstracted languages is that they allow both an easier learning curve for people less familiar with the older lower-level programming languages, and they also allow a more experienced programmer to develop simple applications quickly. Despite these benefits, large complicated programs, and programs that are more dependent on speed still require the faster and relatively lower-level languages with todays hardware. (The same concerns were raised about the original Fortran language.)

Throughout the second half of the twentieth century, programming was an attractive career in most developed countries. Some forms of programming have been increasingly subject to offshore outsourcing (importing software and services from other countries, usually at a lower wage), making programming career decisions in developed countries more complicated, while increasing economic opportunities in less developed areas. It is unclear how far this trend will continue and how deeply it will impact programmer wages and opportunities.

Read More - History Of Programming

Computer Architecture


In computer engineering, computer architecture is the conceptual design and fundamental operational structure of a computer system. It is a blueprint and functional description of requirements (especially speeds and interconnections) and design implementations for the various parts of a computer — focusing largely on the way by which the Central Processing Unit (CPU) performs internally and accesses addresses in memory.

It may also be defined as the science and art of selecting and interconnecting hardware components to create computers that meet functional, performance and cost goals.

Computer architecture comprises at least three main subcategories:

  • Instruction Set Architecture, or ISA, is the abstract image of a computing system that is seen by a machine language (or assembly language) programmer, including the instruction set, memory address modes, processor registers, and address and data formats.
  • Microarchitecture, also known as Computer organization is a lower level, more concrete, description of the system that involves how the constituent parts of the system are interconnected and how they interoperate in order to implement the ISA. The size of a computer's cache for instance, is an organizational issue that generally has nothing to do with the ISA.
  • System Design which includes all of the other hardware components within a computing system such as:
  1. system interconnects such as computer bases and switches
  2. memory controllers and hierarchies
  3. CPU off-load mechanisms such as direc
  4. issues like multi-processing.

Once both ISA and microarchitecture has been specified, the actual device needs to be designed into hardware. This design process is often called implementation. Implementation is usually not considered architectural definition, but rather hardware design engineering. Implementation can be further broken down into three pieces:

  • Logic Implementation/Design - where the blocks that were defined in the microarchitecture are implemented as logic equations.
  • Circuit Implementation/Design - where speed critical blocks or logic equations or logic gates are implemented at the transistor level.
  • Physical Implementation/Design - where the circuits are drawn out, the different circuit components are placed in a chip floor-plan or on a board and the wires connecting them are routed.

For CPUs, the entire implementation process is often called CPU design.

More specific usages of the term include more general wider-scale hardware architectures, such as cluster computing and Non-Uniform Memory Access (NUMA) architectures.

Read More - Computer Architecture

Sabtu, 17 Mei 2008

Google AdSense

Google AdSense is an ad serving program run by Google. Website owners can enroll in this program to enable text, image and, more recently, video advertisements on their sites. These ads are administered by Google and generate revenue on either a per-click or per-thousand-impressions basis. Google is also currently beta-testing a cost-per-action based service.

Google uses its search technology to serve ads based on website content, the user's geographical location, and other factors. Those wanting to advertise with Google's targeted ad system may sign up through AdWords. AdSense has become a popular method of placing advertising on a website because the ads are less intrusive than most banners, and the content of the ads is often relevant to the website.

Currently, AdSense uses JavaScript code to incorporate the advertisements into a participating site. If it is included on a site which has not yet been crawled by the Mediabot, it will temporarily display advertisements for charitable causes known as public service announcements (PSAs). (The Mediabot is a separate crawler from the Googlebot that maintains Google's search index.)

Many sites use AdSense to monetize their content. AdSense has been particularly important for delivering advertising revenue to small sites that do not have the resources for developing advertising sales programs and salespeople. To fill a site with ads that are relevant to the topics discussed, webmasters implement a brief script on the sites' pages. Sites that are content rich have been very successful with this advertising program, as noted in a number of publisher case studies on the AdSense site.

Some webmasters work hard to maximize their own AdSense income. They do this in three ways:
They use a wide range of traffic generating techniques including but not limited to online advertising.
They build valuable content on their sites which attracts AdSense ads which pay out the most when they get clicked.
They use copy on their websites that encourage clicks on ads. Note that Google prohibits people from using phrases like "Click on my AdSense ads" to increase click rates. Phrases accepted are "Sponsored Links" and "Advertisements".

The source of all AdSense income is the AdWords program which in turn has a complex pricing model based on a Vickrey second price auction, in that it commands an advertiser to submit a sealed bid (not observable by competitors). Additionally, for any given click received, advertisers only pay one bid increment above the second-highest bid.

The underlying technology behind AdSense was derived originally from WordNet, Simpli (a company started by the founder of Wordnet, George A. Miller) and a number of professors and graduate students from Brown University, including James A. Anderson, Jeff Stibel and Steve Reiss. A variation of this technology utilizing Wordnet was developed by Oingo, a small search engine company based in Santa Monica founded in 1998.Oingo changed its name to Applied Semantics in 2001, which was then bought by Google for $102 million in April 2003.

AdSense for feeds

In May 2005, Google announced a limited-participation beta version of AdSense for feeds, a version of AdSense that runs on RSS and Atom feeds that have more than 100 active subscribers. According to the Official Google Blog, "advertisers have their ads placed in the most appropriate feed articles; publishers are paid for their original content; readers see relevant advertising — and in the long run, more quality feeds to choose from".

AdSense for feeds works by inserting images into a feed. When the image is displayed by the reader/browser, Google writes the ad content into the image that it returns. The ad content is chosen based on the content of the feed surrounding the image. When the user clicks the image, he or she is redirected to the advertiser's site in the same way as regular AdSense ads.

AdSense for feeds has remained in its beta state ever since its original announcement. Only selected AdSense users have been allowed to sign up for it, and no more users are being admitted to the program.

AdSense for search

A companion to the regular AdSense program, AdSense for search lets website owners place Google search boxes on their pages. When a user searches the web or the site with the search box, Google shares any ad revenue it makes from those searches with the site owner. However the publisher is paid only if the ads on the page are clicked: Adsense does not pay publishers for mere searches.

AdSense for Mobile Content

AdSense for mobile content allows publishers to generate earnings from their mobile webpages using targeted Google ads. Just like AdSense for content, with AdSense for mobile content Google matches ads to the content of your site -- in this case, your mobile website.

How AdSense Works

To put ads on a web page, the webmaster inserts JavaScript code into the page.
Each time a page with an AdSense tag is visited, the JavaScript creates an iframe and sets its "src" attribute to the page's URL.
For contextual advertisements, Google's servers use a cache of the page to determine a set of high-value keywords. If keywords have been cached already, ads are served for those keywords based on the AdWords bidding system. More details are described in the AdSense patent.
For site-targeted ads, the advertiser chooses the page(s) to display ads on and pays based on CPM (cost-per-thousand-impressions, or the price advertisers choose to pay for every thousand ads displayed).
For referrals, Google adds money to the advertiser's account when visitors either download the referred software or subscribe to the referred service.
Search ads are added to the list of results after a user performs a search.
Since the JavaScript is sent to the web browser when the page is requested, it is possible for other site owners to copy the JavaScript into their own web pages. To protect against this type of fraud, AdSense customers can specify the pages on which ads should be shown. AdSense then ignores clicks from pages other than those specified.
Read More - Google AdSense