Blog: Extra-ordinary

Reversing a string in JavaScript

Method-1: var myString = $(‘#your_id’).val(); var reverseString= myString .split(“”).reverse().join(“”); Method-2: function reverse(s) { var o = ; for (var i = 0, len = s.length; i <= len; i++) o.push(s.charAt(len – i)); return o.join(”); } alert(reverse(‘rawnA niassoH’));

Continue Reading

How to disable skype in Firefox browser?

Step 1 Click the Firefox button in the upper left corner of the Firefox window and select “Add-ons” to open the Add-ons Manager tab. Step 2 Select “Extensions” from the left pane and your Firefox extensions are displayed in the right pane. Step 3 Click the Skype extension’s name to select it. Step 4 Click the “Disable” button if you …

Continue Reading

How to add checkbox field in Admin custom module form and populate the checkbox

$fieldset->addField(‘checkbox_name’, ‘checkbox’, array( ‘name’      => ‘ checkbox_name ‘, ‘onclick’ => ‘this.value = this.checked ? 1 : 0;’, ‘tabindex’ => 1 )); How to re-populate the checkbox on Edit page: Just add the extra line in ablove code like below: $fieldset->addField(‘checkbox_name’, ‘checkbox’, array( ‘name’      => ‘ checkbox_name ‘, ‘onclick’ => ‘this.value = this.checked ? 1 : 0;’, ‘tabindex’ => 1 ))->setIsChecked($model->getCheckboxName());

Continue Reading

License key PhpStorm 8

License Key PhpStorm 8 User Name : EMBRACE ===== LICENSE BEGIN ===== 43136-12042010 00002UsvSON704l”dILe1PVx3y4″B3 49AU6oSDJrsjE8nMOQh”8HTDJHIUUh gd1BebYc5U”6OxDbVsALB4Eb10PW8″ ===== LICENSE END ===== User Name : TorReviver ===== LICENSE BEGIN ===== 09574-12042010 00000N7tVkjChpCjDvLjvELNOsgIeH 1POKglQCIddVHUwb6RDtMpzpzeXi0Z RGN7yqI340MhKOu1odUVLb40g5HUF4 ===== LICENSE END ===== User Name : Learn Programming ===== LICENSE BEGIN ===== 63758-12042010 00000Ryqh0NCC73lpRm!XVcxFChJ2g TUR2lZtlLXrPLbQ66Gs8MHs51RvF2y agoDlzne08Zm8VXbts1UMKE!EW4v8G ===== LICENSE END ===== ===========WebStorm 10.0.1============== username: webstorm ===== LICENSE BEGIN …

Continue Reading

Database server does not support the InnoDB storage engine in Magento

It is very simple solution. Please follow the below step: Go To the file app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php Replace : public function supportEngine() { $variables  = $this->_getConnection() ->fetchPairs(‘SHOW VARIABLES’); return (!isset($variables‘have_innodb’) || $variables‘have_innodb’ != ‘YES’) ? false : true; } With : public function supportEngine() { $variables  = $this->_getConnection() ->fetchPairs(‘SHOW ENGINES’); return (isset($variables‘InnoDB’) && $variables‘InnoDB’ != ‘NO’); }

Continue Reading

Why Should I Use AngularJS ?

If you haven’t tried AngularJS yet, you’re missing out. The framework consists of a tightly integrated toolset that will help you build well structured, rich client-side applications in a modular fashion—with less code and more flexibility. AngularJS extends HTML by providing directives that add functionality to your markup and allow you to create powerful dynamic templates. You can also create …

Continue Reading