Adsense

Wordpress tutorial and hack

Easily replace WordPress editor font

Don’t like the default font used by WordPress editor? No problem, the following code will allow you to change it. Simply paste it to your theme functions.php file. You can define which font to use on line 5.
add_action( 'admin_head-post.php', 'cwc_fix_html_editor_font' );
add_action( 'admin_head-post-new.php', 'cwc_fix_html_editor_font' );

function cwc_fix_html_editor_font() { ?>

<style type="text/css">#editorcontainer #content, #wp_mce_fullscreen { font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; }</style>
<?php }
Source: http://devpress.com/blog/fixing-wordpress-3-2s-html-editor-font/

Quick and easy maintenance mode

Sometimes, you need to put your blog on hold while performing some maintenance. Many plugins are allowing you to do so, but here is a simpler solution: Just paste the following snippet into your functions.php file and save it. Your blog is now unavailable to anyone except administrators. Don’t forget to remove the code when you’re done with maintenance!
function cwc_maintenance_mode() {
    if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) {
        wp_die('Maintenance, please come back soon.');
    }
}
add_action('get_header', 'cwc_maintenance_mode');
Source: http://skyje.com/2011/05/wordpress-code-snippets/

Simpler login url

Would you like to be able to use a simpler url like http://website.com/login to login to your WordPress dashboard? If yes, just read this recipe to learn how to implement it on your own blog.
Open your .htaccess file (located at the root of your WordPress install) and add the following code. Remember to backup your .htaccess file before editing it!
RewriteRule ^login$ http://yoursite.com/wp-login.php [NC,L]
Source: http://www.wprecipes.com/simpler-wordpress-login-url

Disable theme switching

When working with clients, it can be good to keep the control of what they can do to prevent possible problems. For example, disabling theme switching can be a good idea, especially if the site you built heavily rely on the theme. To do so, just paste the code below into the functions.php file of the theme. Once done, the client will not be able to switch themes anymore.
add_action('admin_init', 'cwc_lock_theme');
function cwc_lock_theme() {
 global $submenu, $userdata;
 get_currentuserinfo();
 if ($userdata->ID != 1) {
  unset($submenu['themes.php'][5]);
  unset($submenu['themes.php'][15]);
 }
}
Source: http://sltaylor.co.uk/blog/disabling-wordpress-plugin-deactivation-theme-changing/

Disable RSS feed

By default, WordPress include the popular RSS functionnality, which is great for blogs. But if you’re using your WordPress install as a static site, having RSS feeds may become a bit confusing for your visitors.
This code will totally disable RSS feeds (As well as other formats) from your blog. Just paste the code into functions.php, and you’re done.
function cwc_disable_feed() {
 wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
}
add_action('do_feed', 'cwc_disable_feed', 1);
add_action('do_feed_rdf', 'cwc_disable_feed', 1);
add_action('do_feed_rss', 'cwc_disable_feed', 1);
add_action('do_feed_rss2', 'cwc_disable_feed', 1);
add_action('do_feed_atom', 'cwc_disable_feed', 1);
Source: http://wpengineer.com/287/disable-wordpress-feed/

Filter custom post types by author in admin

Here is a function which adds a dropdown select control of users next to existing filters (by default, date). It also works in tandem with the built in author filtering which is available when you click on an author in on admin listing pages (by default on posts and pages).
As usual, the only thing you have to do to implement this code is to paste it into your functions.php file.
function cwc_restrict_manage_authors() {
        if (isset($_GET['post_type']) && post_type_exists($_GET['post_type']) && in_array(strtolower($_GET['post_type']), array('your_custom_post_types', 'here'))) {
                wp_dropdown_users(array(
                        'show_option_all'       => 'Show all Authors',
                        'show_option_none'      => false,
                        'name'                  => 'author',
                        'selected'              => !empty($_GET['author']) ? $_GET['author'] : 0,
                        'include_selected'      => false
                ));
        }
}
add_action('restrict_manage_posts', 'cwc_restrict_manage_authors');
Source: http://forrst.com/posts/WordPress_Custom_Post_Types_Filter_by_Author_in-s9p

Add post thumbnails to RSS feed

This very cool piece of code will get the post thumbnail and automatically add it to your RSS feeds. Paste the code into functions.php and save the file. Don’t forget that you need to use a theme that supports post thumbnails for this snippet to work.
function cwc_rss_post_thumbnail($content) {
    global $post;
    if(has_post_thumbnail($post->ID)) {
        $content = '<p>' . get_the_post_thumbnail($post->ID) .
        '</p>' . get_the_content();
    }

    return $content;
}
add_filter('the_excerpt_rss', 'cwc_rss_post_thumbnail');
add_filter('the_content_feed', 'cwc_rss_post_thumbnail');
Source: http://snipplr.com/view.php?codeview&id=56180

Remove WordPress admin bar

Introduced in WordPress 3.X, the new “Admin bar” is an useful feature, but if you don’t like it, you can easily remove it. Just paste the following snippet into your functions.php file.
add_filter('show_admin_bar', '__return_false');
Source: http://speckyboy.com/2011/03/01/how-to-remove-the-admin-bar-from-wordpress-3-1/

How To Apply Online For GATE?


http://www.iitk.ac.in/gate
http://www.iitk.ac.in/gate/gate2012/gateonline.php


GATE Notification for 2012 released. This time the Candidates are given option to apply for GATE  Online and paying for fees through Online Payment Gateway mode or Through Paying Cash under Bank Challan Mode :

The filling of application process is same under both the mode but sending the application process is little different. Candidates need to follow the below mentioned process to send the application process to respective GATE office :

Under the ONLINE PAYMENT GATEWAY MODE

Anyone who have made the payment online through payment Gateway mode like BillDesk . They need to send the application with the following documents and details :

After completing the ONLINE application process, a pdf file will be generated with the following pages:

Page-1: Instructions for the candidate
Page-2: GATE 2012 Application – GATE Copy
Page-3: GATE 2012 Application – Candidate Copy
Page-4: Address Slip of respective zonal GATE office
ONLINE APPLICATION UNDER BANK CHALLAN OPTION

All the candidates who have paid the application fees in Cash at various branches of ICICI , Indian or State Bank of India.

Under this mode candidates needs to fill the form in triplicate which consist of three copies like GATE COPY, BANK’s COPY, CANDIDATES COPY.

After completing the ONLINE application process, a pdf file will be generated with the following pages:

Page-1: Instructions for the candidate
Page-2: GATE 2012 Application – GATE Copy
Page-3: GATE 2012 Application – Candidate Copy
Page-4: Address Slip of respective zonal GATE office
Page-5: Bank Challan
 Under both the cases save the pdf  and take a print out of the entire file. Paste your recent and sign at the appropriate place.

Send the GATE copy of the above Application with appropriate enclosures (Mentioned below) by Speed Post or by Registered Post to the respected Zonal office of the GATE where candidate prefer to appear for the exam

Completed Application form with all related document must reach to the GATE office before Monday, 24 October 2011. Candidates can handed over application form in person to respective Zonal GATE Office.

How to Backup Firefox Data and Restore


If you are internet user and having virus problem in your computer, What will you do to remove viruses from your PC, either by using Ccleaner that removes unwanted files from PC either in running application browser like Firefox, Google chrome etc so keep your PC as cleanest as possible.But what happens if viruses are still not removed and harmed any of the directory of windows that force you to format computer and install windows in PC.

You can use Firefox Backup Tool for backup and recovery of All Firefox data.The Firefox application is totally free download for Firefox browser.Here are the steps mentioned here in the image.
Here is the screenshot for the application of Firefox backup tool looking at first site.There are mainly 3 tabs appears on the application like backup , restore and about.We need only two tab during performing the operation.
Make sure that Firefox web-browser is not running on your current session because it will use Firefox data to back up and if Firefox is running the operation could not be performed.

Back up procedure 

The first step is to backup the data.You can now select the location of file where you are going to save the back up file of Firefox to recover the data that are going to loss by formatting PC.You can check or unchecked the options which you are not going to back up and select on the backup button.
There is an advanced option to add password for the backup file that are similar to the password protection in MS Word file, so that your backup file might not be used by any other users.

Restoring Procedure

After Formatting PC, just install the software, and click on the Restore tab that is just on the side of Back up tab.Here select the backup file to restore by selecting location from the menu.If you gave password in previous step you need to enter password in this step.Hit the restore button and all the data you checked in the back up procedure will be restored in your Firefox so all your Firefox bookmark backup, Firefox history backup and everything will be restored on newly installed Firefox.

Ashok Leyland has Innova-like plans

Company working on common platform derived from Nissan [ Images ] van; planning to launch 7-8 seater vehicle in 2 years.

Burgeoning demand for spacious people movers in India [ Images ] has led Ashok Leyland [ Get Quote ], a medium and heavy truck builder, to plan on developing a utility vehicle to take on the likes of Toyota Innova [ Images ], India's largest selling multi-seater personal vehicle.

The Chennai-based company is targeting a medium-powered, seven to eight-seater vehicle.

This segment is majorly catered to by Toyota, General Motors [ Images ], Tata Motors [ Get Quote ] and Mahindra & Mahindra.

V Sumantran, executive vice chairman, Hinduja Automotive, said, "The demand for the Innova has defined the overall demand for such vehicles in India.

"The way people travel has completely changed in India in the past few years. There used to be a Tata Sumo, which got replaced by Toyota's top-selling Qualis [ Images ], which eventually made way for the Innova.

"Today, there is a waiting period for the Innova, which sells close to 5,000 units every month."

Launched in 2005, the Toyota Innova (price starts at Rs 864,000, ex-showroom, Mumbai [ Images ]) has consistently maintained superior demand compared to the competition, despite carrying a premium price tag.

Handicapped by production constraints, Toyota Kirloskar [ Images ] Motors, the Indian subsidiary of Toyota Motors, sold 4,765 units of the Innova last month, a growth of 126 per cent over 2,108 units sold in the same month last year.

With a multi-utility vehicle, Leyland would foray into the passenger vehicle segment for the first time.

It began making commercial vehicles such as trucks and buses decades earlier. Leyland and Nissan have a collaboration.

The company is working on the common platform derived from Nissan's NV 200 van, sold in several international markets presently.

While Nissan may be ready to showcase its India version of the van at the coming international Auto Expo at New Delhi [ Images ] in January, Leyland says it will take more than a year for the launch.

"We will have a common platform but they would be expressed differently, with different styling, different content and different positioning.

"We will target more towards commercial users, while Nissan will target more of personal users.

"If we take the Innova, for example, a lot of people use it for family transport and some others as a tourist car and as taxis," Sumantran added.

While he did not disclose the price positioning, sources say it will be priced below the Innova, where Mahindra's Xylo [ Images ] exists.

Leyland hopes the reworked platform of the NV 200 will be ready in the next 12-15 months.

"There will be some time between the launches of the two companies (Leyland and Nissan). So, we are looking at a couple of years for launch, for us," said the Leyland executive.

With the size of Indian families and tendency to travel in groups, the mass people mover segment is gaining popularity among car makers.

Chevrolet [ Images ] is gearing up to launch a refurbished version of the Tavera [ Images ], with a new engine. Maruti Suzuki [ Images ] will introduce a version of the R-III concept.

The joint venture of GM and SAIC will launch an affordable van called Sunshine, and Pune-based Force Motors [ Get Quote ] will launch a van, based on a Mercedes-Benz platform.

NEC to build mobile network equipment plant in Chennai



REUTERS - Japan's NEC Corp plans to start manufacturing mobile phone network devices in India to meet growing demand in emerging nations, the Nikkei business daily said. NEC will build a new plant in Chennai by the end of fiscal 2011 at a cost of around 1 billion yen ($13 million), the paper reported. NEC is one of the leading makers of microwave radio link devices, which are used to wirelessly connect mobile phone base stations. To guard its strong position in the market amid the soaring yen, NEC has decided to create a low-cost production base overseas, the Nikkei said. The plant is expected to produce about 30,000 units of Pasolink devices a year, or 10-20 percent of NEC's total annual output, the paper said. However, production at the company's Fukushima plant will be maintained at the current level even after the Indian operations kick off, the business daily reported. Initially, the entire output will be sold in India, the biggest market for the products. Exports will be gradually increased over time to other markets like Africa, the Nikkei said. Demand for devices has been growing in emerging countries as they allow for the quick construction of mobile phone networks, the paper said. ($1 = 76.710 Japanese Yen) (Reporting by Maneesha Tiwari in Bangalore; Editing by Maju Samuel)

7th Sense((7aam Arivu)) Trailer

7th Sense((7aam Arivu)) Trailer


science fiction thriller film written and directed by A. R. Murugadas. Starring Surya, in double roles, and Shruthi Haasan, the film, being produced by Udhayanidhi Stalin, began production in May 2010. The story is said to revolve around a "super machine", which is brought to India.The film, made on a budget of 84 crore (US$18.73 million), is the most expensive film in Suriya's career till date.

TVS Group lines up Rs 1,800 cr for wind energy


After making its presence felt in the automobile industry, TVS Group has its sight set on energy.


The $4-billion group has lined up Rs 1,800 crore to set up wind energy farms of 200 Mw over the next three years, according to a senior official of Sundaram Clayton Ltd (SCL), a holding company of TVS Motor Company, India’s third-largest two-wheeler manufacturer. SCL will fund the projects through debt, equity and internal accruals. It has already commissioned two projects in Tamil Nadu — a 9.35-Mw facility at Gandamanur in Theni and another 14.4-Mw at Vagaikulam in Tirunelveli. The new projects will be implemented by two special purpose vehicles, TVS Wind Power and TVS Wind Energy.




TVS Energy, a 100 per cent subsidiary of TVS Motor, infused Rs 4.10 crore and Rs 10.15 crore into the two SPVs, respectively. SCL also infused Rs 4.50 crore into TVS Energy. According to SCL’s balance sheet, TVS Energy had Rs 56.25 crore in capital and Rs 165.97 crore in total assets on February 8.


The official said TVS Housing, a 100 per cent subsidiary of TVS Motor Company, “will focus on low-cost housing. We are identifying land for projects”. The housing arm had an asset base of Rs 32.06 crore and liability of similar amount.


SCL today got shareholders’ approval to appoint 22-year Sudarshan Venu as a director. Sudarshan Venu is the son of Venu Srinivasan, chairman and managing director of TVS Motor.


SCL, a leading automobile components manufacturer, plans to achieve Rs 1,000 crore in revenue this financial year, compared to Rs 762 crore in the previous year.


Venu Srinivasan said the next 18 months were “very uncertain due to global scenario and rising interest costs and fuel prices will put pressure on the bottom line. All sections of the auto industry will slowdown. However, two-wheelers will buck the trend to see robust growth”.

newest questions on wordpress