How to add custom post type in wordpress

Open “function.php” add the following code to add new custom post type :
add_action(‘init’, ‘featured_post_register’);

function featured_post_register() {
$labels = array(
‘name’ => _x(‘Featured Posts’, ‘post type general name’),
‘singular_name’ => _x(‘Featured Posts’, ‘post type singular name’),
‘add_new’ => _x(‘Add New’, ‘featured posts’),
‘add_new_item’ => __(‘Add New Featured Posts’),
‘edit_item’ => __(‘Edit Featured Posts’),
‘new_item’ => __(‘New Featured Posts’),
‘view_item’ => __(‘View Featured Posts’),
‘parent_item_colon’ => ”

Read more…


The 10 biggest moments in IT history

1: The development of COBOL (1959)

There are many languages out there, but none has influenced as many others as COBOL has. What makes COBOL stand out is the fact that there are still machines chugging along, running COBOL apps. Yes, these apps could (and possibly should) be rewritten to a modern standard. But for many IT administrators, those who don’t have the time or resources to rewrite legacy apps, those programs can keep on keeping on.

2: The development of the ARPANET (1969)

It is an undeniable fact that the ARPANET was the predecessor of the modern Internet. The ARPANET began in a series of memos, written by J.C. R. Licklider and initially referred to as the “Intergalactic Computer Network.” Without the development of the ARPANET, the landscape of IT would be drastically different.

3: The creation of UNIX (1970)

Although many would argue that Windows is the most important operating system ever created, UNIX should hold that title. UNIX started as a project between MIT and AT&T Bell Labs. The biggest initial difference (and most important distinction) was that it was the first operating system to allow more than one user to log in at a time. Thus was born the multi-user environment. Note: 1970 marks the date the name “UNIX” was applied.

4: The first “clamshell” laptop (1979)

William Moggridge, working for GRID Systems Corporation, designed the Compass Computer, which finally entered the market in 1991. Tandy quickly purchased GRID (because of 20 significant patents it held) but then turned around and resold GRID to AST, retaining the rights to the patents.

5: The beginning of Linus Torvalds’ work on Linux (1991)

No matter where you stand on the Linux versus Windows debate, you can’t deny the importance of the flagship open source operating system. Linux brought the GPL and open source into the forefront and forced many companies (and legal systems) into seeing monopolistic practices as well as raising the bar for competition. Linux was also the first operating system that allowed students and small companies to think in much bigger ways than their budgets previously allowed them to think.

6: The advent of Windows 95 (1995)

Without a doubt, Windows 95 reshaped the way the desktop looked and felt. When Windows 95 hit the market the metaphor for the desktop became standardized with the toolbar, start menu, desktop icons, and notification area. All other operating systems would begin to mimic this new de facto standard desktop.

7: The 90s dot-com bubble (1990s)

The dot-com bubble of the 90s did one thing that nothing else had ever done: It showed that a great idea could get legs and become a reality. Companies like Amazon and Google not only survived the dot-com burst but grew to be megapowers that have significant influence over how business is run in the modern world. But the dot-com bubble did more than bring us companies — it showed us the significance of technology and how it can make daily life faster, better, and more powerful.

8: Steve Jobs rejoining Apple (1996)

Really, all I should need to say here is one word: iPod. Had Jobs not come back to Apple, the iPod most likely would never have been brought to life. Had the iPod not been brought to life, Apple would have withered away. Without Apple, OS X would never have seen the light of day. And without OS X, the operating system landscape would be limited to Windows and Linux.

9: The creation of Napster (1999)

File sharing. No matter where you stand on the legality of this issue, you can’t deny the importance of P2P file sharing. Without Napster, file sharing would have taken a much different shape. Napster (and the original P2P protocols) heavily influenced the creation of the BitTorrent protocol. Torrents now make up nearly one-third of all data traffic and make sharing of large files easy. Napster also led to the rethinking of digital rights (which to some has negative implications).

10: The start of Wikipedia (2000)

Wikipedia has become one of leading sources of information on the Internet and with good reason. It’s the single largest collaborative resource available to the public. Wikipedia has since become one of the most often cited sources on the planet. Although many schools refuse to accept Wiki resources (questioning the legitimacy of the sources) Wikipedia is, without a doubt, one of the largest and most accessible collections of information. It was even instrumental in the 2008 U.S. presidential election, when the candidates’ Wiki pages became the top hits for voters seeking information. These presidential Wiki pages became as important to the 2008 election as any advertisement.

Source : TechRepublic

COBOL – 50th birthday

COBOL celebrated its 50th birthday on September 18, 2009. Many developers see COBOL as a relic, a dying dinosaur, or a stodgy language that has been superseded by more powerful systems. I believe that viewpoint as being uninformed. In honor of COBOL’s 50th birthday, here’s an overview of COBOL’s history and place in the current development landscape.

COBOL’s origins

COBOL was designed by the late, great Grace Hopper. Ms. Hopper had an extraordinary influence on the computing industry, including writing the first compiler, the “A compiler.” In addition, she served in the U.S. Navy, eventually attaining the impressive rank of rear admiral; there is even a U.S. Navy destroyer named after her in honor of her service.

COBOL was designed by committee, including representatives from the three government agencies and six major companies. The initial seed was planted in April 1959. On September 18, 1959, the committee picked “COBOL” for the name, and by the end of 1960, COBOL compilers had been completed and working programs had been made.

COBOL is an interesting language. Originally, it did not have many of the features that we have come to rely upon. For instance, you would not expect to find object oriented capabilities in 1959, but there were not even local variables then. The structure of a COBOL program is also different from what you would expect, being divided into different “divisions,” each of which serving a particular purpose. COBOL is best known for batch processing, in which large amounts of data are fed in and acted upon on a regular basis. In recent years, COBOL has undergone many changes and adapted to the needs of modern programmers, including adding object-oriented programming capabilities.

Source : TechRepublic

World’s fastest 128GB USB flash drive

Corsair has launched 128GB Flash Voyager GT pen drive. Corsair claims that this is the fastest 128GB USB flash drive and is able to achieve read speeds of up to 32MB/sec and write speeds of up to 25.6MB/sec. This USB drive is based on dual-controller architecture to achieve single -level cell (SLC) NAND flash memory performance levels using less expensive and higher-density multilevel cell (MLC) NAND flash.


Corsair says that the only factor limiting the speed of this USB drive is the speed of the USB 2.0 bus. “High performance is a key requirement for super-high-capacity flash drives such as the 128GB Voyager GT, simply because it is able to store such a large volume of data. The 128GB Voyager GT is nearly twice as fast as other high-capacity flash drives, which means less time waiting for your music, video or office files to copy to and from the drive,” said John Beekley, Vice President of applications at Corsair to Computer World.

The 128GB Flash Voyager GT is protected from accidental drop and damage by water resistant rubber. Backed up with a 10 year warranty this USB drive is available at price of about $399 (Rs. 19,200 approx).