Monday, January 31, 2011

Install Netbeans and Integrate Subversion with it

Install Netbeans
1) Open Terminal
2) sh dragDropNetBeansFileHere

How to Integrate Subversion with Netbeans
1) Install Subversion first: sudo apt-get install subversion
2) Open Netbeans and follow the path: Netbeans-->tools-->options-->miscellaneous-->versioning>subversion.
3) Set the "Path to the SVN executable File" to "/usr/bin/svn"
4) Restart NetBeans

Must Install in Ubuntu

Install Winrar
sudo apt-get install rar

Installing LAMP Server
sudo tasksel install lamp-server

Install "mcrypt" extension
sudo apt-get install php5-mcrypt

Install "curl" must be loaded
1) sudo apt-get install php5-curl
2) System -> Administration -> Synaptic Package Manager and find the package or software as “php5-curl“ or php curl and install the CURL module for PHP.

Install "GD" must be loaded
sudo apt-get install php5-gd

Install All Extensions
sudo apt-get install php5-mcrypt php5-curl php5-gd

Restart Apache
sudo /etc/init.d/apache2 restart

Install JDK in Ubuntu
1) sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
2) sudo apt-get update
3) sudo apt-get install sun-java6-jdk

Install Netbeans
1) Open Terminal
2) sh dragDropNetBeansFileHere

How to Integrate Subversion with Netbeans
1) Install Subversion first: sudo apt-get install subversion
2) Open Netbeans and follow the path: Netbeans-->tools-->options-->miscellaneous-->versioning>subversion.
3) Set the "Path to the SVN executable File" to "/usr/bin/svn"
4) Restart NetBeans

Run setup though command line for wine
wine /media/storage/Setup.exe

Enable mod_rewrite
1) a2enmod rewrite
2) AllowOverRide All in the following file:
/etc/apache2/sites-available/default
3) Restart Apache

Edit button is not working in Shutter

You can simply install the needed packages with:
sudo apt-get install libgoo-canvas-perl

Hope this helps :)

Tuesday, January 25, 2011

Picasa 3.8 hangs

This is due to new feature in the Picasa 3.8 you just need to follow these step to avoid any crash problem

1. As soon as you open the Picasa, go to Tools -> Options -> Name Tags
2. Uncheck all check boxes and click OK.

Hope this helps :)

Friday, January 21, 2011

Zend Framework Check statusId with username and password

I think you can do that by using the getDbSelect instance of Zend_Auth

// get select object (by reference)
$select = $adapter->getDbSelect();
$select->where('active = "TRUE"');

Monday, January 17, 2011

How to close colorbox

Just use this function to close your colorbox within iFrame.

parent.$.fn.colorbox.close();

Hope this Help :)

Friday, January 7, 2011

Magento Custom Module with Custom Database Table

All that you need is to install the Module Creator.

I found two interesting blog, hope you all like these.
1) Click Here for more information
2) Click Here for more information 

Not able to login into magento admin panel

go to the following file:
app/code/core/Mage/Core/Model/Session/Abstract/Varien.php 

On Line no: 78 

     // session cookie params
        
$cookieParams = array(
            
'lifetime' => $cookie->getLifetime(),
            
'path'     => $cookie->getPath(),
            
'domain'   => $cookie->getConfigDomain(),
            
'secure'   => $cookie->isSecure(),
            
'httponly' => $cookie->getHttponly()
        );

        if (!
$cookieParams['httponly']{
            
unset($cookieParams['httponly']);
            if (!
$cookieParams['secure']{
                
unset($cookieParams['secure']);
                if (!
$cookieParams['domain']{
                    
unset($cookieParams['domain']);
                
}
            }
        }

        
if (isset($cookieParams['domain'])) {
            $cookieParams[
'domain'$cookie->getDomain();
        
}

Replace it to: 
 
    // session cookie params
        $cookieParams = array(
            
'lifetime' => $cookie->getLifetime(),
            
'path'     => $cookie->getPath()/*,
            'domain'   => $cookie->getConfigDomain(),
            'secure'   => $cookie->isSecure(),
            'httponly' => $cookie->getHttponly()*/
        
);

        
/*if (!$cookieParams['httponly']) {
            unset($cookieParams['httponly']);
            if (!$cookieParams['secure']) {
                unset($cookieParams['secure']);
                if (!$cookieParams['domain']) {
                    unset($cookieParams['domain']);
                }
            }
        }

        if (isset($cookieParams['domain'])) {
            $cookieParams['domain'] = $cookie->getDomain();
        }*/