MemcacheD php client for development purpose on Laravel 5

This class simulates the real Memcached PHP extension (which doesn’t exit) on windows (php_memcached.dll) – Note the “d”.
I forked and modified this repository so that it works with few basic methods of laravel 5… Please don’t use this class in production, use it only for development purposes.

Github repo: https://github.com/altinukshini/memcached-client

Configuration in Windows machine

Before you do anything else, make sure you have Memcached server installed. Here’s a blog that shows how to do that (follow step A): https://commaster.net/content/installing-memcached-windows

Assuming you have Memcached server installed, proceed with the following.

Place memcached.php file in C:\xampp\php\pear folder

In your laravel 5 installation, edit AppServiceProvider.php and place the code below inside the boot() method.

if (!class_exists('Memcached')) {
    include ("memcached.php");
}

so it should look something like:

public function boot(Kernel $kernel)
{
    if (!class_exists('Memcached')) {
        include ("memcached.php");
    }
}

…you should be good to go!

How to install NVIDIA Drivers in Ubuntu Linux

Probably you have tried to install NVIDIA graphics driver for Ubuntu or Linux in general so many times just like me, but never found a way how to do that properly.

Well in Ubuntu you have some 2 types of NVIDIA driver which you can find them in Additional Drivers (third party proprietary drivers) :
1. The Version 173 – which is crap especially because its very slow & laggy.
2. Recommended one – which has bugs on KDE and usually in some cases results with crashing entire OS, sometimes when trying to resize konsole in KDE. (at least that’s what happened with me)

To start with:

Ubuntu has an enabled Kernel Nouveau by default, this is what makes the NVIDIA driver always crash during installation.
So to install the drivers ofcourse you need to disable that so that you can proceed. Continue reading “How to install NVIDIA Drivers in Ubuntu Linux”

How to Install Drupal 7 on Linux

Few Days ago Drupal 7 was released !
Because of that I decided to make a tutorial about installing and configuring it on a Linux machine
With Apache server installed on it

After Installing Apache server: Click here
You’ll have to be sure if you have php5 and some other things… so install them..

$ sudo apt-get install php5 php5-mysql php5-gd libapache2-mod-php5

after that restart your apache server:

$ sudo /etc/init.d/apache2 restart

Now go ahead and type: Continue reading “How to Install Drupal 7 on Linux”