depicus

  just another nerd on the interweb…



  • home
  • gallery
  • play page
  • privacy
  • support
  • videos
  • what is depicus

Archive for September, 2010

Classic Golf

Saturday, September 11th, 2010



Old Time Golf from Brian Slack on Vimeo.

How not to play golf…

Tags: Golf
Posted in Sport | 1 Comment »

Blank page when trying to install Joomla on OSX10.6

Friday, September 10th, 2010



If you get a blank page when you try and install Joomla check to make sure you have safe_mode turned off.

Now safe_mode is set in your php.ini file but also in httpd.conf. The php script below may help you debug a few errors.

View Code PHP
1
2
3
4
5
6
7
<?php
mysql_connect("localhost", "root", "SECRET") or die(mysql_error());
echo "Connected to MySQL<br />";
mysql_select_db("test") or die(mysql_error());
echo "Connected to Database";
phpinfo(); 
?>

Tags: Apache, Joomla, PHP
Posted in Interweb | Comments Off

Spam

Friday, September 10th, 2010



I love the way spammers are using the comments to try and leave spam. Funny thing is they are easy to spot as I took out the box where you would normally put in a web site. So if a comment has a web site I know it’s spam.

Tags: Spam
Posted in Interweb | Comments Off

Using Eclipse for php development on OSX

Saturday, September 4th, 2010



I am starting to hate Visual Studio more and more as it gets slower and slower so it was about time I set up a new dev environment on my Mac so I didn’t need to start a VM to run the only app I now ever use on Windows.

Enter Eclipse which I use for Java development for a payment system on AS400 and a bit of Android stuff but never really for PHP

I downloaded the latest version with PHP support which is now 64bit and was ready to go. But not so fast. Having created a test site in the default location (/Users/Brian/Documents/workspace) I ran the site up in the local window. Bum 404 not found.

Ok this was easy to solve. Go to /etc/apache/httpd.conf and add an alias

View Code TEXT
1
Alias /myBMI /Users/Brian/Documents/workspace/myBMI

and a directory listing

View Code TEXT
1
2
3
4
5
6
<Directory "/Users/Brian/Documents/workspace/myBMI"> 
Options All MultiViews 
AllowOverride None 
Order allow,deny 
Allow from all 
</Directory>

then save and restart Apache sudo /usr/sbin/apachectl restart

Great it finds the page but I now get a permission denied 403. This one took a little longer and it is a bit of a fudge. Now this is a development machine so I don’t really need to worry about security as it will never be on the web. While in httpd.conf look for User and you will see it is set to _www. Now OSX doesn’t make it easy to change permissions and what I really should have done is given _www permissions to my workspace folder but it was quicker to just change the user to me.

View Code TEXT
1
2
User Brian
Group _www

Save and restart Apache and we are go for PHP development. Thanks to Suburbia for the pointers.

Tags: Eclipse, PHP
Posted in Computers, Interweb, Software Development | Comments Off

PutterCam

Friday, September 3rd, 2010



puttercam – the movie from Brian Slack on Vimeo.

They said it was a movie that could never be made, nor ever should be made. Appearing on BoxOffice tonight puttercam … the untold story

Tags: Golf, PutterCam
Posted in Sport | Comments Off

<< Previous

  • how i pay the bills

  • depicus in africa

    depicus in africa
  • my charity page

    JustGiving - Sponsor me now!
  • friends

    • Agency Manager
    • AllClear Travel
    • Climbing Tikes
    • Globe Bloggers
    • Marchday
    • The Travel Toad
  • gallery

    Bisley Developments Ltd IMG_2588 IMG_2963 IMG_2369
  • videos

    Vimeo

    YouTube
  • twitter

    • No public Twitter messages.
  • recent comments

    • john coull: correction to above, its www.oakley-ukstore.com
    • john coull: they are at it again. adverts on facebook . they are being hosted by enotch.com on ip address...
    • steve: The site are selling £120+ Oakley sun glasses for £13.00 I think its safe to say they may be either...
    • rob: have received a pair of glasses not what ive ordered they are now telling me the ones ive ordered are out of...
    • phil: hi i have purchased some (stupidly),not arrived yet, will they arrive/will they be fake/plz help

Copyright © - depicus | Entries (RSS) | Comments (RSS)

WordPress theme butchered and amended by me.