I was in a meeting the other day, and something cropped up which was cause for much debate. This was attempting to define exactly what a “Computer Scientist” is. This is of course very relevant to the BSc (hons) Computer Science degree programme.
The question is: What skills should a graduate of this discipline have at his/her disposal? It’s all well and good saying “a bit of everything to do with computing”, but in practice an approach like that is very hard. How do you balance? Is there a bias? If I refer back to my Breadth Vs Depth post, I am talking about programming in specific. However, there is a lot more to “computer science” than just programming.
The “Science” part of “computer science” suggests that this is far more analytical than, say, a “software engineer” which is more development orientated. That is not to say that a “computer scientist” shouldn’t be a capable “software engineer” and vice versa. Are these two disciplines blurring? What industry should a computer scientist go into, rather than a software engineer?
Comments on a postcard please!
Posted at: 11:55, 18th February 2010
Tags: education, learning, opinion
Posted in Tech
No Comments »
Recently I’ve had the need to combine suPHP with the userdir mod for Apache on Ubuntu. By default they don’t play nice together. So here is a quick guide on how to get it working.
If you have installed a standard LAMP server (there are many guides on how to do this), you now need to install the suphp package for apache, this is called libapache2-mod-suphp:
$ sudo apt-get install libapache2-mod-suphp
Once that has been installed open the file /etc/suphp/suphp.conf in your favourite text editor. Find the line that has the docroot on, and change the docroot so that it is just “/”. This means that the suphp engine will parse anywhere in the file system, and not just in the standard html directory, thus allowing users to have their own.
docroot=/
You may also want to change the security options as appropriate, just change the “false” to “true” of the applicable ones the enable them. This is worth experimenting with. Further down you will want to set the “check_vhost_docroot” is set to false, this again is to do with the fact that userdirs are not in the vhost’s document root.
check_vhost_docroot=false
Finally you have the min_uid and min_gid properties. These are worth altering if you still want to be able to have a website running as www-data (such as the default website). If this is the case, change them both to the uid and gid of www-data (33 by default). It is not recommended to allow suphp to run as root, so do not set it to 0.
min_uid=33
min_gid=33
Finally, you need to enable the mods suphp and userdir, and disable the mod php5, this is done with two commands, and then restart apache2:
sudo a2dismod php5
sudo a2enmod userdir suphp
sudo /etc/init.d/apache2 restart
This should then allow you to run php scripts as the user who created them. To test this, create a new php file that contains:
<?php
system(id);
This will give you information of the user that the php process is running as. I recommend changing the ownership and retrying it, just make sure sure suphp is running as it should be.
Posted at: 16:01, 27th January 2010
Tags: apache, Linux, php, suphp, userdir
Posted in Development, Linux, Tech
No Comments »
With it being the festive season, I have not done a huge amount of interest recently. I’m hoping to have a few things for you soon. Currently I have been experimenting with Drupal, having never used it (properly) before, this is a real learning curve.
Also I am working on getting suPHP to work with userdir, to allow users of a server to have their own webspace in a secure fashion. I will be blogging about this when it is done.
However, I have found a few things that may be of interest:
Things you probably didn’t know about PHP – Some really interesting and neat things you can do with PHP.
PHP Object Generator – Generates class structures and objects, so you don’t have to
Posted at: 09:35, 13th January 2010
Tags: apache, drupal, php, Programming, suphp
Posted in Development, Linux, Programming, Tech, Uncategorized
No Comments »
Bash is not exactly brilliant at performing numerical calculations. Recently I’ve required the need to see how many people are currently logged in on the terminal servers through NX. Now, if people are logged in via standard SSH, then it’s quite easy to count:
who | wc -l
However, if you want to perform a line count of the NX list, you have 6 lines at the top which are not part of the count. In order to perform this subtraction, we need to do a calculation. To do this in bash we use a $(()):
echo $((2 + 2))
So, if we were to use this when performing the command on nxserver, this is how it would look in the end:
echo $(($(/usr/NX/bin/nxserver --list | wc -l) - 6))
Or, if you’re not running this script as root (and using sudo):
echo $(($(sudo /usr/NX/bin/nxserver --list | wc -l) - 6))
Posted at: 11:33, 23rd December 2009
Tags: bash, Linux, nx, ubuntu
Posted in Linux, Tech
No Comments »
Those of you who were that the PHPNW09 conference on the Sunday morning may have seen my talk on Object Oriented PHP. At the beginning of the month I gave a talk at the PHPNW user group which was based on the original talk, but slightly extended.
Here are the slides
Posted at: 08:55, 14th December 2009
Tags: Development, object orientation, oop, php, phpnw, phpnw09, presentation, Programming
Posted in Development, Programming, Tech
No Comments »
Just to remind you all that I will be doing a talk this coming Tuesday at PHPNW, 7pm Revolution, Deansgate Locks, Manchester. It is an introduction to object oriented programming in PHP. If you are interested please come along!
Here is the upcoming link
Posted at: 15:37, 26th November 2009
Posted in Uncategorized
No Comments »
Something I have not yet mentioned here is the music side of my life. Music is incredibly important to me, having been playing instruments from the age of 6. The one instrument that I have stuck with ever since that age is the piano, which I absolutely adore.
As well as playing for bands, I have been working on a solo project; an album called Catharsis. It is a 2 part concept album (the concept will be published at a later date), and will contain 8 or 9 tracks. It’s going to be progressive rock/metal but incorporating different styles from various genres.
I have resisted recording any demos until the entire thing has been composed, this is due to it being a concept album and needing to work “as a whole” rather just as a collection of pieces. However, the composition stage is almost complete, so in the near future I plan to start the demoing process.
The plan is for the demo to be entirely piano and (multi-tracked) vocals, to give an overall idea of how it will sound (this is also the closest to how I’ve gone about it in the composition process). I will then build up the orchestration around it.
I will of course be blogging for the duration of the recording (and continual composition) of this piece, and if you’re lucky may even upload some sneak previews.
Stay tuned.
Posted at: 10:48, 20th November 2009
Tags: Catharsis, composition, Music, piano
Posted in Music
No Comments »
Just to let you know that at the next PHPNW meeting I will be giving an extended version of my talk: Beginners Guide to Object Orientation in PHP, which I gave at the PHPNW09 conference.
For those who don’t know, this is held in Revolution on Deansgate Locks in Manchester, and starts at 7pm on Tuesday 1st December.
Upcoming link
Posted at: 09:43, 19th November 2009
Tags: object orientation, oop, php, phpnw, phpnw09, presentation, Programming, talk, tutorial
Posted in Development, Events, Programming, Tech
1 Comment »
I’ve just updated the FreeNX install script to download and install the latest version of the NX Client from NoMachine. If you have used the previous version of this script, then you can just execute this version and it will automatically update your NX Client.
Download the latest version from here.
Posted at: 09:27, 18th November 2009
Tags: bash, freenx, Linux, nx, remote desktop, script, ubuntu
Posted in Development, Linux, Tech
4 Comments »
A while ago for work I wrote a plugin for Zend Framework. It was an adapter for Zend_Auth that authenticated against PAM for authentication of local users through a web interface. So I have decided to release it in the hope that there will be other people out there who find it useful.
Please visit the Zend_Auth Pam Adapter page in the labs section for more information.
Posted at: 09:54, 16th November 2009
Tags: authentication, framework, Linux, pam, php, Programming, zend auth, zend framework
Posted in Development, Programming, Tech
No Comments »