Quantcast
Channel: Rapid Solution
Browsing all 442 articles
Browse latest View live

Enable php extension ubuntu and restart service apache

Enabling mcrypt extension phpsudo php5enmod mcrypt Afterwards, you'll need to restart Apache for your changes to be recognized: sudo service apache2 restart   

View Article



change apache www path and enable rewrite module

Modify the path here:sudo vi /etc/apache2/sites-available/000-default.conf and modify the path here:sudo vi /etc/apache2/apache2.conf To enable it the rewrite module, run "apache2 enable module...

View Article

Error: java.lang.IllegalStateException: Location passed in WAL does not...

This error comes because of system permissions.Error: java.lang.IllegalStateException: Location passed in WAL does not exist, or IO error was happened. DB can not work in durable mode in such...

View Article

phpunit tutorial Test-driven development (TDD)

-Ubuntu (If you have install the LAMP)Step 1.$ wget https://phar.phpunit.de/phpunit.phar$ chmod +x phpunit.phar $ sudo mv phpunit.phar /usr/local/bin/phpunit $ phpunit --versionStep 2. $ wget...

View Article

phpmd phar download

phpmd phar download//Codewget http://static.phpmd.org/php/2.1.3/phpmd.pharsudo mv phpmd.phar /usr/bin/phpmdsudo chmod +x /usr/bin/phpmd//Code

View Article


code and action testing with selenium-server

Tutorial of Selenium TestFirst Download Selenium ServerSecond Download Web DriversNow Start the server by the command://Codejava -jar selenium-server-standalone-2.39.0.jar//CodeNow create php script...

View Article

Cakephp Get Controllers and Actions list

Cakephp Get Controllers and Actions list//Code $aCtrlClasses = App::objects('controller'); $aCtrlClasses = App::objects('model'); $aCtrlClasses = App::objects('action'); $actions =...

View Article

str_replace in array values

str_replace in array values //Code$yourarray = array("VolvoABC", "BMWABC", "ToyotaABC");$yourarray = implode(",", $yourarray);$yourarray = str_replace("ABC",'', $yourarray);$yourarray = explode(",",...

View Article


How do I get a list of all functions inside a controller in cakephp

How do I get a list of all functions inside a controller in cakephp//Codepublic function getCtrActions() { $aCtrlClasses = App::objects('controller'); foreach ($aCtrlClasses as $controller) { if...

View Article


RuntimeError: Could not write to MPLCONFIGDIR

Heading A//Codeimport os#os.environ[ 'MPLCONFIGDIR' ] = '/home/ashfaq/public_html/hrzpWorking/'os.environ[ 'MPLCONFIGDIR' ] = '/var/tmp/'import matplotlibmatplotlib.use('agg')//Code :) //Code

View Article

PHP performance with cache

Test Case with performance detail //Code// memcached -m 64 -s /tmp/m.sock -a 0777 -p 0 -u memcache// memcached -m 64 -l 127.0.0.1 -p 11211 -u...

View Article

PHP Image Magician with CakePHP

PHP Image Magician with CakePHP//Code// Download the files from http://phpimagemagician.jarrodoberto.com/#examples// and put the folder in your app/vendor folder//path will be:...

View Article

Use Xclip (Clipboard From the Command Line)

Use Xclip//Codexclip -selection c -i ~/.ssh/id_rsa.pub//Code That's All//Code

View Article


add user to sudo group

Make a Sudo User//Codesudo usermod -aG sudo <username>//Code End//Code

View Article

How to Setup a Production Server for Rails Ubuntu

First Install tasksel // sudo apt-get updatesudo apt-get install tasksel//Code Now Install LAMP (Linux Apache MySQL PHP)//Check the lamp and select ok in tasksellsudo tasksel//Now Install...

View Article


start stop apache ubuntu

start stop apache ubuntu//Code$ /etc/init.d/apache2 stop$ /etc/init.d/apache2 start$ /etc/init.d/apache2 restart$ /etc/init.d/apache2 reload // Check error logsudo tail -30...

View Article

Download Composer.phar

Composer.phar Download and install global //Codecurl -s https://getcomposer.org/installer | phpsudo mv composer.phar /usr/local/bin/composer//Code Enjoy :)//Code

View Article


hum tv is not running on dish

hum tv is not running on dish150308: Hum TV on AsiaSat 7: 4155 H is now in clear150304: Hum TV on AsiaSat 7: 4155 H is now encryptedPositionSatelliteBeamEIRP...

View Article

symfony 1.4 tutorial

symfony 1.4 tutorial First download symfony 1.4//you can download advance_form_installer.php // https://github.com/symfony/symfony1-docs/tree/master/more-with-symfony/images$ mkdir -p miniproject$ cd...

View Article

make bootable usb from iso

Download from here and enjoyRufus 2.1(788 KB)Rufus 2.1 Portable(788 KB)Other versions// Download from github$ git clone git://github.com/pbatard/rufus//Code For more information, see the github...

View Article
Browsing all 442 articles
Browse latest View live




Latest Images