Desktop Application Style CSS Buttons

Desktop Application Style CSS Buttons

Thursday, Nov 29, 2012
Getting the right amount of visual attractiveness and common interface into a site, so as to make it easy for a user, can be a difficult path to tread. On the one hand, everyone expects that their site should reflect their brand, with visuals, graphics, fonts, image and user interface all being custom to them, however, making web applications that users find easy to se normally means compromising on some parts to make the site navigation easily recognisable. One such little element you can place in your site would be css style buttons, especially if they to some extend replicate the commonly found buttons on native/desktop applications. ...

Read more
Quota alerts for email users

Quota alerts for email users

Thursday, Nov 8, 2012
Recently I have been doing quite a few more system administrator tasks around different office. I wrote this bash script (I realise it is probably not perfect to bash officianados, however, it does solve that problem). I have attached the completed file below if you want to download it. Bash Code #!/bin/bash # get all users whose uid is greater than 1000 and less than 60000 for user in `awk -F':' '{if ($3 > 1000 && $3 < 60000) print $1}' /etc/passwd` do # create array as output from quota command array=( $(quota -v $user)) # retrieve amount of space user is using block=${array[17]} #retrieve quota that user is allowed quota=${array[18]} # result = quota - amount used result=$(($quota-$block)) # if result is less than 20000 then do something. The extra part is in as users with unlimited quota are given a quot with 0 therefore will have a negative number. if [ $result -lt 20000 ] && [ $result -gt 0 ] then # email the user and administrator to make them aware echo "Sending email regard $user" (echo "From: admin@server.com" echo "To: $user@server.com" echo "Subject: Your email box is nearly full" echo "Hello, This is your email server speaking. You are running low on email space on the server. Please can you remove any unwanted emails including emails in your Sent and Deleted box. Thank you, Your Server" )| sendmail -t (echo "From: admin@server.com" echo "To: admin@server.com" echo "Subject: $user is running low on space" echo "This is Captain Kirk. $user is running low on space. Do something captain." )| sendmail -t # finish off the if statement and script fi Done. :-) ...

Read more
Drupal Commerce Display Products in a View

Drupal Commerce Display Products in a View

Monday, Oct 1, 2012
Recently I have been working with Drupal Commerce quite a bit, however, it can be difficult to get your views to display as required, especially as there is no way to specifically select the product entity inside views. So here are a few tips for getting your products to display in useful views. Drupal Commerce product reference relationships OK, so you want to display the products referenced (images prices etc) rather than the node that is linked to them. ...

Read more
Rules for Fools: Presentation and DrupalCambs

Rules for Fools: Presentation and DrupalCambs

Thursday, Sep 27, 2012
Rules is a module to do causation in Drupal.

Read more
Will Hall Online working with Integro Languages in Alumni Magazine

Will Hall Online working with Integro Languages in Alumni Magazine

Wednesday, Sep 12, 2012
Will Hall Online has featured in the Anglia Ruskin University Alumni magazine for our work with Integro Languages. We are building a CRM system using Drupal to enable more efficient and scalable management of their translation and interpretation business. We are proud to be working with Integro Languages especially because it maintains links with our previous university. I had a fabulous time, both academically and socially, whilst at university in Cambridge and seeing the progress of others who you shared accomodation, lectures and student bars with is a great validation of education. Although my first degree, in History, was not entirely focussed on my career now, I find that it has certainly given me skills towards analytical thinking and evaluation of tasks that may not have been as forthcoming with a computer science degree. Of course I am a member of two university Alumni’s, both ARU and Leeds Metropolitan University, for my MSc in Web Application Development. Hearing of the sucesses of both universities is great and I hope it will continue in the future. ...

Read more
Create An Output File From A SQL Query

Create An Output File From A SQL Query

Monday, Sep 10, 2012
Sometimes, keeping files as hard copy, or just being able to move things in and around using csv files or such like can be great. However, doing so when you don’t have access to a mysql client (like phpmyadmin) can be a bit tricky. Hopefully this script can help you out. Of course you can change things inside it to make a whole wealth of different files with different data inside it. Have some fun (if you like it!). Either run from a scripting language mysql_query("SELECT..."); Or from logging into the command line mysql: ...

Read more
Updating embedded content from the database

Updating embedded content from the database

Tuesday, Aug 21, 2012
This is part 2 (or a re-visit) of a previous blog post (Drupal Post Migration Data Cleanup) on updating content after moving it to another domain . If you have your data inside a multisite, you probably have some embedded some images/files into node bodies (or such like) and want an easy way to replace all of the instances. OK great. Using the REPLACE function in MySql you can easily replace instances where the url for the files is wrong. Brilliant. ...

Read more
Drupal Views: 'An AJAX HTTP request terminated abnormally'

Drupal Views: 'An AJAX HTTP request terminated abnormally'

Tuesday, Aug 14, 2012
How to resolve “An AJAX HTTP request terminated abnormally” error on Drupal? As a regular Drupaller I come across quite a few errors now and again. Fortunately (although I get this one quite a bit in views) I do know what I am doing wrong. It is all down to the ````$base_urlthat you have set insettings.php. If you have set it (uncommented the # from http://www.example.com) and you attempt to use it from a non authenticated domain you will get this error. For example if you have set the $base_url``` as “http://www.mydomain.co.uk” but you are using views from the domain “http://mydomain.co.uk” then you will encounter problems. Simple change the url to the correct one! ...

Read more
Are you a Mindful Employer?

Are you a Mindful Employer?

Thursday, Jul 26, 2012
Have you heard about the Mindful Employer Initiative? Nither had I until now. Launched in 2004, the “MINDFUL EMPLOYER® is open to any employer in the UK, whether small, medium or large, private, public or voluntary sector…and provides information, advice and practical support for people whose mental health affects their ability to find or remain in employment.” When you have signed up to the Charter for Employers who are Positive About Mental Health, or if you are a supporting organisation who has signed their Partnership Agreement, you will then be able to use the MINDFUL EMPLOYER® Registered Trade Mark to show your commitment to the initiative. ...

Read more
Increase profit, success and productivity at work

Increase profit, success and productivity at work

Friday, Jun 29, 2012
Now that got your attention! You’ll notice that I didn’t use the term Mental Health or Well-being in the title of this article. This was a conscious decision some may not agree with but unfortunately there is still a stigma attached to the issues of mental health, and many people feel uncomforatble talking about it. The word well-being has negative connotations of its own, including those who associate this term with a somewhat ‘fluffy’ or ‘soft’ approach, even conjuring up images of yoga, meditation and old-fashioned teambuilding exercises. Hopefully, this article will give you more information to demystify these troublesome and awkward terms and empower you to be able to deal with MH issues, and seek support when necessary. ...

Read more