India to build world’s fastest Supercomputer

India wants to get ahead in the technological revolution. And just how will it manage this? By building a new supercomputer that aims to be 61 times faster than IBM Sequoia, currently the worlds fastest.

Telecom and IT Minister Kapil Sibal is understood to have written to Prime Minister Manmohan Singh sharing the roadmap to develop “petaflop and exaflop range of supercomputers” at an estimated cost of Rs 4,700 crore over 5 years.

“In his (Sibal) letter, he has said that C-DAC has developed a proposal with a roadmap to develop a petaflop and exaflop range of supercomputers in the country with an outlay of Rs 4,700 crore,” a government official said.

A petaflop is a measure of a computer s processing speed and can be expressed as a thousand trillion floating point operations per second. Exaflop is one quintillion computer operations per second. Simply put, one exaflop is thousand times faster than one petaflop.

Getty Images
The fastest supercomputer in the world, Sequoia, has registered a top computing speed of 16.32 petaflops which is equivalent of computing of power from over 7.8 lakhs high-end laptops put together.

If the Indian government approves building exaflop supercomputers, these will be at least 61 times faster than Sequoia, officials said.

India’s top supercomputer at present ranks 58th globally in terms of computing speed.

Sibal has cited the past record of Center for Development of Advanced Computing (C-DAC) which was set up in 1987 by then Prime Minister Rajiv Gandhi after technologically advanced nations denied supply of supercomputer to India in mid-1980s.

“The Minister has written that C-DAC developed first supercomputers in the country, the PARAM series. Presently Param Yuva with 54 teraflop computing power is serving many researchers through Garuda Computing Grid,” the official said.

Sibal has proposed that Department of Electronics and Information Technology (DEITY) should be given tasks to coordinate overall supercomputing activities in the country as it has been done in the past.

The proposal made in the letter says that DEITY should be given tasks to set up a National Apex Committee to oversee the implementation of the proposed Supercomputing Mission and C-DAC should establish peta and exascale supercomputing facilities and development activities.

Source :


checking a domains availability using php

The availability API is probably the greatest feature of the Robowhois webservice, letting you check for a domain’s availability with a simple, uniform HTTP request.

Checking if is available

isAvailable('')) {
echo "pretty nice dream, uhm?";

The opposite thing is achieved using the ->isRegistered() method.

You can also retrieve an array as returned from the webservice, by doing:
whoisAvailability('')) {
echo $availability['available'];
echo $availability['registered'];
echo $availability['daystamp'];

Retrieve informations about your account

A must-have, since you should always check how many remaining credits you have, the account API lets you retrieve some of your personal data from your account:

Calculating how many left credits you have


if ($credits > 100) {
echo "No problem fella!";
} else {
echo "Time to go shopping looking for new API calls, uhm?";
} catch (Exception $e) {
echo "The following error occurred: " . $e->getMessage();

Minor things

We also polished some code, refactored stuff and added some tests (unit and integration ones).

For instance, when using the record API, you can retrieve the daystamp of the response as DateTime object:

retrieving the daystamp as an object or a string

whoisRecord('')) {
// returns a DateTime object
echo $whois->getDaystamp();

// formats the DateTime
echo $whois->getDaystamp()->format('Y-m-d');

// returns a string
echo $whois->getDaystamp(true);

You can download the latest tag of the library (currently 0.8.0) and start using it: the README exhaustively explains what you can do with this small client, and some samples are provided under the

Source :

magento theme Upgraded from to

Finally, Magento version has been released, and much improved since Here is the tip for fixing common theme issue while upgrading.

Upgrading is not so easy, and there are still bugs which could mean some stick with older installations.
Currently, there is one issue when we update Magento theme to new Magento version release.

That is fatal error: Call to a member function toHtml() on a non-object in

/home/******/public_html/store/app/code/core/Mage/Core/Model/Layout.php on line 529

To solve this problem, please follow these steps:

1. Open the file: /app/design/frontend/default/YOURTEMPLATE/layout/page.xml

2. Find this line of code :

<block type=”core/profiler” output=”toHtml”></block>

3. Then change it into :

<block type=”core/profiler” output=”toHtml” name=”core_profiler”></block>
Finally, log in to your admin section, and refresh all caches.
And happy upgrade to all you trying to stay up to date.


Source :

PHP hide_email()

PHP hide_email()

1. What is it?

A PHP function to protect the E-mail address you publish on your website against bots or spiders that index or harvest E-mail addresses for sending you spam. It uses a substitution cipher with a different key for every page load. Look at the generated XHTML in the example while pressing the browsers “reload” button to see this in effect.

2. How does it work?

PHP encrypts your E-mail address and generates the javascript that decrypts it. Most bots and spiders can’t execute javascript and that is what makes this work. A visitor of your web page will not notice that you used this script as long as he/she has javascript enabled. The visitor will see “[javascript protected email address]” in stead of the E-mail address if he/she has javascript disabled.

3. Example

<?php echo hide_email(''); ?>

This is the PHP code you write where you want the E-mail address on your web page.

This is what the E-mail address will look like for the visitor of your web page.

<span id="e365384372">[javascript protected email address]</span><script type="text/javascript">/*<![CDATA[*/eval("var a=\"0XuhK3xIk_D1sc2895f+VZY-Fw.Wr4nySHgQNRC@jqevmaMUPLAboEldTiJzBtG6p7O\";var b=a.split(\"\").sort().join(\"\");var c=\"BazBcBazBuvdE\";var d=\"\";for(var e=0;e<c.length;e++)d+=b.charAt(a.indexOf(c.charAt(e)));document.getElementById(\"e365384372\").innerHTML=\"<a href=\\\"mailto:\"+d+\"\\\">\"+d+\"</a>\"")/*]]>*/</script>

This is the generated XHTML that the bot or spider will see instead of your E-mail address.

4. The code

The “hide_email()” PHP function is only 9 lines of code:

function hide_email($email) { $character_set = '+-.0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'; $key = str_shuffle($character_set); $cipher_text = ''; $id = 'e'.rand(1,999999999); for ($i=0;$i<strlen($email);$i+=1) $cipher_text.= $key[strpos($character_set,$email[$i])]; $script = 'var a="'.$key.'";var b=a.split("").sort().join("");var c="'.$cipher_text.'";var d="";'; $script.= 'for(var e=0;e<c.length;e++)d+=b.charAt(a.indexOf(c.charAt(e)));'; $script.= 'document.getElementById("'.$id.'").innerHTML="<a href=\\"mailto:"+d+"\\">"+d+"</a>"'; $script = "eval(\"".str_replace(array("\\",'"'),array("\\\\",'\"'), $script)."\")"; $script = '<script type="text/javascript">/*<![CDATA[*/'.$script.'/*]]>*/</script>'; return '<span id="'.$id.'">[javascript protected email address]</span>'.$script; }

License: Public domain.

5. XHTML generator

You can use this generator if you have no PHP support on your web server. Change the E-mail address into your own E-mail address and press “Generate”. Cut and paste the generated XHTML into your own web page.

E-mail address
Generated XHTML

Because the generator uses Javascript instead of PHP you can save this page to disk as “Web Page, complete” and use it offline.

6. Credits

The idea of javascript E-mail address obfuscation is not mine. It seems that Tim Williams came up with the idea first. Andrew Moulden improved it by adding a generated key. Ross Killen wrote a PHP version that generates a different key every page load. My implementation is much like that of Ross Killen, but I implemented a slightly different encryption algorithm, minified and obfuscated the javascript and made the script valid for javascript strict and XHTML 1.0 strict parsing.

  1. HTML generator by Tim Williams (University of Arizona)
  2. Improved HTML generator by Andrew Moulden (Site Engineering Ltd.)
  3. PHP version by Ross Killen (Celtic Productions Ltd.)

7. Considerations

  • Users must have javascript enabled to see your E-mail address.
  • This does not protect you against bots and spiders that can execute javascript.
  • The position of the key and the cipher text in the javascript are constant.
  • If this script gets very popular bots and spiders might get taught decoding it.
  • Line 7 of the PHP code complicates decoding (due to “eval”), but can be left out.
  • The main reason for not adding much more complexity is wanting few lines of code.
  • I chose the “span” tag over the semantically more correct “noscript” tag;
    the XHTML 1.0 strict schema says the “noscript” tag may only contain “Block” elements.

Source :