Category ArchiveDegree

CodeIgnitor - ReWrite .htaccess

CodeIgniter Remove index.php .htaccess file

In order to remove the ‘index.php’ part of the url for CodeIgniter, a few steps are required. One of which is to create a .htaccess file in the route of the website. Below is the Rewrite Rule for the .htaccess file.

CodeIgniter – .htaccess

  <IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /petsoft/
    # If your project is in server root then should be: RewriteBase /
    # If project is in folder then it should be: RewriteBase /folder_name/

    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
    <IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php

Early Days of Google

Lessons learned from the early days of Google

So whilst doing some research I came across a really interesting talk given by Matt Cutts on the early days of Google. It covers a range of issues and scenarios that Google faced in its early days, most of which are felt at some point by all online startup’s.

Matt Cutts worked for Google from the early days of Google and has only recently left. Working as a Software Engineer he was the head of Google’s Webspam team. He also wrote the first version of SafeSearch.

You can View the slides that Matt used in his talk via Slides.

Key Messages From – Early days of Google

“When stuck between a rock and a hard place…. be creative.” –  Matt Cutts

“Most really good startup ideas look like bad ideas at first.. because some change in the world just switched them from bad to good.” – Paul Graham

Layers in Photoshop

What are Layers in Photoshop?

What are layers in Photoshop?

Layers work as acetate sheets as used with overhead projectors and are transparent apart from the elements they hold.

How are layers used in Photoshop?

Layers can be used in Photoshop for either holding separate elements forming a collage or images, or separating elements of a single image so they can be separately manipulated.

Read more on Layers in Photoshop