Protx Offers no 3D Secure PHP Integration Kit

General News, php No Comments »

Utterly shocking, protx launch 3D secure checkout system, and yet do not offer full documentation / integration kit. Read the rest of this entry »

Protx fails to support cross browser compatability

General News No Comments »

Protx (UK Payment Merchant) has some web pages, which only work in IE, and not ff.

Read the rest of this entry »

My .vimrc Config file

Apache, General News, php, ubuntu No Comments »

Hello, This is how i like my .vimrc file :)

” Enable syntax highlighting
syntax enable

” Map F8 with next tab, and F7 with previous tab
map :tabn
map :tabp

” Make sure backspace always works
set backspace=2

” Autoindent
set autoindent

For those of you who are still running vim < 7 i recommend you update purely for the tabs. Although previous versions had a :next and :prev the new tabs along the top just seems to make work much easier.

I also highly recommend checking out the vim documentation, available at this link: Vim Documentation and also check out this for some cool tutorials and links Vim Resources

Google clamps down on pay per post

General News 1 Comment »

Google has been latly been on what only can be described as a mad rampage of the interweb.

Page ranks on lots of site slashed, and now, pay per post bloggers, making a humble income to supplement their lives has seen their pagerank cut if not reduced to zero.

But why.. ? 

I think  this is because the google system for measuring links to judge a websites popularity is so flawed at every single level, when people chose to use pay per post as another advertising avenue, google cannot cut these links out, so rather than amending its system to take account of these, google just black lists the lot of them.

This in my opinion is merly forcing people who want to advertise to use googles advertising programs.

Google who does no evil, apart from removing sites it doesn’t like from its index, condeming other avenues of avertising for websites, and censoring results in china and elsewhere, have also removed one of my most favourite sites from their index, www.gotoandlearn.com   - Thanks google.

My Home PC Setup

General News, php, ubuntu No Comments »

I have had many requests latly to take a photo of my home setup, so.. here it is :)

Click the picture to enlarge..

homework_small.jpg

PHP / JS Image cropper

General News, php 4 Comments »

I have recently just made a small app / class to crop images using this excellent js image cropping tool,  found here: http://www.defusion.org.uk

I have stripped out all the shit, default config is to maintain a specific aspect ratio and with a minimum size, however this can be changed by looking @ the defusion examples

Click here to download the js cropper with the php GD 2 crop functionality.

**Note: Have to set file permissions on the /cropper folder so it can write the image once its been edited.

Buying old domains with pagerank

General News 5 Comments »

I have just been reading about buying old domains with page rank on the mutiny design ’scripts’ (its a blog!) section. Mutiny design for those who don’t know are the dogs on SEO and all that stuff thanks to their revolutionary techniques and pure white hat tactics.

I urge anyone who’s interested in SEO and pagerank to check out their article on  buying old domains.

They have also released a really cool site called SEM Labs, their article here  explains in more detail what its about but the basics is it allows you to search for old domains that are for sale with good page rank.

http://www.semlabs.co.uk/

Elite Pattern and Tooling (Ept-ltd) in Coventry

General News 2 Comments »

Hello to Clive at EPT - LTD.

You can view the EPT-LTD, or ‘Elite pattern and tooling’ website, here:  www.ept-ltd.com

Setting up a home network using Samba in ubuntu (7.04)

General News, ubuntu 1 Comment »

Ubuntu - Setting up your home network with ubuntu and windows, using samba

 

What i wanted todo

I have 1 ubuntu desktop 7.04 which i wanted to host all the files on the network.

I then have server ubuntu desktops and windows pc’s which needed to be able to access these shared files

 

Step 1, install samba on the ’server’

The first thing you need to do is install samba on your ’server’ and then configure it accordingly.

This is a very simple and already well documented process, i recommend following the excellent tutorial which you can read by clicking this link

 

Set 2, connect your windows and ubuntu pc’s to the server

To connect your windows pc’s to your samba server is already well documented in the tutorial available here.

To connect your ubuntu desktops to your samba server, follow these steps:

  1. Click ‘Places’
  2. Click ‘connect to server’
  3. Change the drop down box to ‘windows share’
  4. In the ‘Server’ field, put the same name you put in for the ‘netbios name = YOUR_HOSTNAME’ in the ‘/etc/samba/smb.conf’ ie: the hostname of your server
  5. put your ‘username’ in the ‘username’ field.
  6. Put in the password when promted

You should now have your ubuntu machine connect to your other ubuntu machine, this should be visible in the ‘Places’ section.

 

Symlink your local home dir to your samba ubuntu ’server

So your on your ubuntu desktop, and u want to access files easily that are on the samba ubuntu server.

ntom@localhost:~$ sudo apt-get install smbfs

 

Then create a folder in your home directory… eg: /home/username/sharedfiles

Then mount your ’server’ to that directory..

ntom@localhost:~$ sudo mount -t smbfs //server/foldername /home/username/sharedfiles -o username=usersname,password=password

 

I hope this helps others out there :)

Please leave comments on bugs and how you fixed them if you encounter any

How to Setup Dell E228WFP on Ubuntu 7.04

General News, ubuntu 6 Comments »

Ubuntu - Install php5, mysql, apache2, ssl, pdo & pdo_mysql

 

Preamble to setting up my Dell E228WFP monitor with ubuntu

I recently bought a Dell Inspiration 530. When selecting my computer i choose ubuntu instead of windows, and also choose the 22 inch wide DELL E228WFP monitor.

Naturally, as with all things linux, the monitor working ‘out the box’ was just an idealistic dream i held on to while i was waiting for the pc to arrive.

Anyways, the Dell Inspiration 530 arrived with my Dell E228WFP Monitor and ubuntu was preinstalled. Lovely. However the monitor only went up toe 1024×786 resolution.

After spending a few hours researching, and trying various things, i finally found a solution on ubuntu forums which sorted out the monitor, and finally the E228WFP displayed a resolution of 1680×1050 which looks absoloutly gorgous !

 

Configuring the E228WFP for ubuntu

Firstly, backup your existing xorg.conf, we do this so that if somthing goes wrong on your next reboot and it puts you on the terminal (should be able to understand what happened from the error log) you can restore from this file if nessesary

Backup existing file

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Next you want to edit the file and put in the following details.. starting at “Section Monitor”..

The xorg.conf from the original dell installation (Straight from factory box) This is unmodified and will not fix the monitor

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/share/fonts/X11/cyrillic"
	FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/Type1"
	FontPath	"/usr/share/fonts/X11/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"i2c"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"gb"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"ZAxisMapping"		"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"stylus"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"eraser"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"eraser"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"cursor"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"cursor"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "Device"
	Identifier	"nVidia Corporation NVIDIA Default Card"
	Driver		"nv"
	BusID		"PCI:1:0:0"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	HorizSync	28-51
	VertRefresh	43-60
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"nVidia Corporation NVIDIA Default Card"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice     "stylus"	"SendCoreEvents"
	InputDevice     "cursor"	"SendCoreEvents"
	InputDevice     "eraser"	"SendCoreEvents"
EndSection

Section "DRI"
	Mode	0666
EndSection

 

The xorg.conf TO GET THE MONITOR WORKING ON 1680×1050 from the original dell installation (Straight from factory box)

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/share/fonts/X11/cyrillic"
	FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/Type1"
	FontPath	"/usr/share/fonts/X11/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"i2c"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"gb"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"ZAxisMapping"		"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"stylus"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"eraser"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"eraser"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"cursor"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"cursor"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "Device"
	Identifier	"nVidia Corporation NVIDIA Default Card"
	Driver		"nv"
	BusID		"PCI:1:0:0"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	UseModes 	"Modes[0]”
	Option		“DPMS”
	HorizSync	30-68
	VertRefresh	50-160
EndSection

Section “Modes”
	Identifier	“Modes[0]”
	Modeline “1680×1050″ 79.6 1152 1192 1288 1472 864 864 866 896 +hsync +vsync
EndSection

Section “Screen”
	Identifier	“Default Screen”
	Device		“nVidia Corporation NVIDIA Default Card”
	Monitor		“Generic Monitor”
	DefaultDepth	24
	SubSection “Display”
		Depth		1
		Modes		“1680×1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
	SubSection “Display”
		Depth		4
		Modes		“1680×1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
	SubSection “Display”
		Depth		8
		Modes		“1680X1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
	SubSection “Display”
		Depth		15
		Modes		“1680×1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
	SubSection “Display”
		Depth		16
		Modes		“1680×1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
	SubSection “Display”
		Depth		24
		Modes		“1680×1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
EndSection

Section “ServerLayout”
	Identifier	“Default Layout”
	Screen		“Default Screen”
	InputDevice	“Generic Keyboard”
	InputDevice	“Configured Mouse”
	InputDevice     “stylus”	“SendCoreEvents”
	InputDevice     “cursor”	“SendCoreEvents”
	InputDevice     “eraser”	“SendCoreEvents”
EndSection

Section “DRI”
	Mode	0666
EndSection

 

If you have reinstalled ubuntu from the cd provided 7.04, as i did then you might want to try this xorg.conf

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/share/fonts/X11/cyrillic"
	FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/Type1"
	FontPath	"/usr/share/fonts/X11/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"i2c"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"gb"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"ZAxisMapping"		"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"stylus"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"eraser"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"eraser"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"cursor"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"cursor"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "Device"
	Identifier	"nVidia Corporation NVIDIA Default Card"
	Driver		"nv"
	BusID		"PCI:1:0:0"
EndSection

Section "Monitor"
	Identifier	"DELL E228WFP"
	Option		"DPMS"
EndSection

Section "Modes"
	Identifier	"Modes[0]”
	Modeline “1680×1050″ 79.6 1152 1192 1288 1472 864 864 866 896 +hsync +vsync
EndSection

Section “Screen”
	Identifier	“Default Screen”
	Device		“nVidia Corporation NVIDIA Default Card”
	Monitor		“DELL E228WFP”
	DefaultDepth	24
	SubSection “Display”
		Depth		1
		Modes		“1680×1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
	SubSection “Display”
		Depth		4
		Modes		“1680×1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
	SubSection “Display”
		Depth		8
		Modes		“1680X1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
	SubSection “Display”
		Depth		15
		Modes		“1680×1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
	SubSection “Display”
		Depth		16
		Modes		“1680×1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
	SubSection “Display”
		Depth		24
		Modes		“1680×1050″ “1024×768″ “800×600″ “640×480″
	EndSubSection
EndSection

Section “ServerLayout”
	Identifier	“Default Layout”
	Screen		“Default Screen”
	InputDevice	“Generic Keyboard”
	InputDevice	“Configured Mouse”
	InputDevice     “stylus”	“SendCoreEvents”
	InputDevice     “cursor”	“SendCoreEvents”
	InputDevice     “eraser”	“SendCoreEvents”
EndSection

Section “DRI”
	Mode	0666
EndSection

 

The end

I hope this has been helpfull to many people out there. I hope it has saved people endless hours looking at different sites for different aspects of this tutorial.

Please be sure to leave some comments :)

WP Theme & Icons by N.Design Studio & Shamefully P0wered by WordPress
Entries RSS Comments RSS Log in