Websites | Photography | Video Editing | 3D Animations

From the Blog

Apr
27
Posted by Paul Costan at 10:34 am

Hi guys, If you want to use nice funky, stylish fonts on your web sites… then I would recommend to use ‘Typekit’. Typekit gives you a library of fonts to select from. Click here to sign up. To sign up you will need an Adobe ID account.

Apr
24
Posted by Paul Costan at 10:25 am

To check what has been modified, changed or added

# git status

Pull files down from repo

# git pull

To push file to repo

# git push origin master

Add new files

# git add

Delete files

# git rm -rf (path to folder)

Apr
16

How to implement LESS on to your Drupal sites with Omega theme (Responsive HTML5 Base Theme)

1) First of a will need to download and upload/install the following theme, modules and libraries. In these order:

Omega – Responsive HTML5 Base Theme
These files will need to be dropped in: ‘\sites\all\themes’

Omega tool
These files will need to be dropped in: ‘\sites\all\modules’

Chaos tool suite (ctools)
These files will need to be dropped in: ‘\sites\all\modules’

Libraries API
These files will need to be dropped in: ‘\sites\all\modules’

lessphp
These files will need to be dropped in: ‘\sites\all\libraries’

LESS CSS Preprocessor
These files will need to be dropped in: ‘\sites\all\modules’

2) Under Modules enable all of the above modules

3) Next create an Omega subtheme Click here to find out how of here

4) You should now see your new theme located here ‘\sites\all\themes\YOUR-NEW-THEME\’.
Within your new theme you should see a folder called ‘CSS’. In this folder you will create a file called ‘global.less’.

5) For your new theme to pick up your new less file, you need to go back to ‘Appearance'(admin/appearance/settings/your_new_theme) and click on ‘setting’ of your new theme. On the left hand nav click on Toggle styles. you should see all css used bout you should also see your new ‘global.less’ file. Make sure you tick this box to enable new style sheet.

 

 

 

 

 

 

 

6) Finally, to see your changes on the fly, you need to enable ‘LESS developer mode. To do this go to: ‘admin/config/development/less’

 

 

 

 

 

 

 

Click here to find out more about LESS

Apr
03
Posted by Paul Costan at 2:49 pm

To increase ‘max_allowed_packet’.

I came across this issue when trying to import 1.6gb sql dump. It took me a couple of hours to figure this out. So here is how I did it…

Go and edit this file:
# nano /etc/my.cnf

[mysqld]
datadir=/var/lib/mysql
max_allowed_packet=64M <----- Add this line to 16m, 64m, 128, or 256m socket=/var/lib/mysql/mysql.sock user=mysql # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 # Disabling symbolic-links is recommended to prevent assorted security risks; # to do so, uncomment this line: # symbolic-links=0 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid

After you will need to do mysql restart, then check status by typing in the following command

# mysql service status

You should see below of succesful:

max_allowed_packet | 67108864