Thursday, January 21, 2016

Nathuram Godse - The Man Who Killed Gandhi







Nathuram Godse - The Man Who Killed Gandhi
(The Other Side of The Story)






Friday, July 10, 2015

Create gitignore menually in window

To get around this I used the following steps
  1. Create the text file gitignore.txt
  2. Open it in a text editor and add your rules, then save and close
  3. Hold SHIFT, right click the folder you're in, then select Open command window here
  4. Then rename the file in the command line, with ren gitignore.txt .gitignore

Thursday, June 11, 2015

Email settings In CAKE

public $default = array(
        'transport' => 'Mail',
        'from' => 'support@[sitename].com',
        'additionalParameters' => '-fno-reply@[sitename].co.in',
    );

[sitename] replace with actual site name.
from is a valid email address.

Monday, May 4, 2015

Delete all between string From and TO

function delete_all_between($beginning, $end, $string)
    {
        $beginningPos = strpos($string, $beginning);
        $endPos = strpos($string, $end);
        if ($beginningPos === false || $endPos === false)
        {
            return $string;
        }

        $textToDelete = substr($string, $beginningPos, ($endPos + strlen($end)) - $beginningPos);

        return str_replace($textToDelete, '', $string);
    }

Popular Posts