Clive Walkden

PHP, MySQL, HTML5, CSS3, jQuery code and ideas.

My Blog

Output All Users Cron Jobs

Output All Users Cron Jobs


in Linux
by
with 0 Comments

If you want to check all users cron jobs this little command will output them to the command line
Read more
Magento 2 admin password history reset

Magento 2 admin password history reset


in Magento 2
by
with 0 Comments

Magento 2 (by default) forces admin users to reset their passwords every 90 days. This is great for security and I'm extremely happy that I don't have to remind clients to update their password every x number of days. 
Read more
How to see files changed on a certain date

How to see files changed on a certain date


in Linux
by
with 0 Comments

As a sysadmin you often need to see which files have been modified on a certain date. This little snippet will show you those files.
Read more
Setting Nano as the default crontab commandline editor

Setting Nano as the default crontab commandline editor


in Linux
by
with 0 Comments

If you prefer to use Nano to edit the crontab file instead of Vim you can run this command to specify Nano as the default editor.
Read more
Magento Format Date Core Helper Method

Magento Format Date Core Helper Method


in Magento
by
with 0 Comments

The Magento Core Helper formatDate method has 4 options that you can pass into it, these will change the output based on the default locale you have selected.
Read more
Testing your Magento success page

Testing your Magento success page


in Magento
by
with 0 Comments

If you want to check the styling on your Magento success page without having to enter a transaction everytime this little update will allow you to do just that.
Read more
Check if a static block is enabled in Magento

Check if a static block is enabled in Magento


in Magento
by
with 0 Comments

This short article explains how to check if a static block is enabled in your Magento project.
Read more
PHP Time() Equivalent for Javascript

PHP Time() Equivalent for Javascript


in jQuery
by
with 0 Comments

I've recently been working on an jquery ajax file uploader which displays the image when successful. However, the image is cached by the server and wasn't showing the updated image as the names are identical, passing a timestamp in the file url fixed it.
Read more
Plex Media Server Cent OS Update

Plex Media Server Cent OS Update


in Linux
by
with 0 Comments

If you want to update your version of Plex Media Server for Cent OS then you'd best be happy using command line
Read more
Running Linux Commands in the Background

Running Linux Commands in the Background


in Linux
by
with 0 Comments

If you've ever wondered how to run a command in the background of your linux terminal then this article will show you all you need to know.
Read more
Creating a permanent alias shortcut in Mac OS X 10.9

Creating a permanent alias shortcut in Mac OS X 10.9


in Apple
by
with 0 Comments

I find creating aliases is a real time saver in terminal. Some of the most useful involve starting or stopping certain services such as Apache or MySQL. To create a new alias you need to open up your .bash_profile file.
Read more
Composer Self Update

Composer Self Update


in PHP
by
with 0 Comments

Composer is rocking my life at the moment, the only issue I have is I keep forgetting to update the main composer.phar as sudo.
Read more
Viewing Disk space remaining in Linux Command Line

Viewing Disk space remaining in Linux Command Line


in Linux
by
with 0 Comments

If, like me, you run a command line Linux distro then seeing useful stats like disk space remaining on your hard drive is a must. This short article explains the command needed to view all the information.
Read more
Bitcoin Investment Websites

Bitcoin Investment Websites


in Bitcoin
by
with 0 Comments

I've been a Bitcoin follower now for just over 12 months. In that time i've built up some coin from mining, gambling and other methods. In this article I'll explain some of the methods i'm now using to help increase my coins since mining isn't an option.
Read more
Turning off your CentOS Firewall

Turning off your CentOS Firewall


in Linux
by
with 0 Comments

If you need to relax your server firewall policy in CentOS then this short guide shows you how.
Read more
Paid To Click Bitcoin Sites

Paid To Click Bitcoin Sites


in Bitcoin
by
with 0 Comments

If you want to get some free Bitcoins without the hassle of buying a miner then take a read through this article and start earning. This article shows some PTC (Pay to Click) sites, a chat site and other faucets to get your Bitcoins
Read more
The easiest way to buy Bitcoins

The easiest way to buy Bitcoins


in Bitcoin
by
with 0 Comments

Buying and selling a cryptocurrency can be difficult. Fortunately, I've found a great solution for Bitcoins which is secure, painless and quite quick and easy. Whether you want to buy small amounts to "get into something new" or want to stockpile.
Read more
Butterfly on Buddleia

Butterfly on Buddleia


in Photography
by
with 0 Comments

Whilst I was waiting for my Train the other day i decided to take a little walk with my camera. Within a couple of minutes I found this huge Buddleia covered in Butterflies. Luckily for me the sun came out and this was what got.
Read more
PHP function to generate a random password

PHP function to generate a random password


in PHP
by
with 0 Comments

This handy little function generates a random password using alphanumeric characters. It may not be the most secure but it beats a standard dictionary word and could help secure your users accounts.
Read more
PHP function to find links in a string

PHP function to find links in a string


in PHP
by
with 0 Comments

This handy little function searches a string for urls and converts them into anchor tags. This is particularly useful for tweets pulled from Twitter using the API. This is used to prepare the links in my Twitter feed at the bottom of my site.
Read more
De-Cluttering your PC - Stopping Thumbs.db files

De-Cluttering your PC - Stopping Thumbs.db files


in PC
by
with 0 Comments

Ever wondered how to stop Thumbs.db files from taking over your PC? Follow my guide and they'll never be generated again!
Read more
Showing hidden files in Mac OS X 10.7 and above

Showing hidden files in Mac OS X 10.7 and above


in Apple
by
with 0 Comments

Using my Mac laptop as a dev machine is great but sometimes I need to have access to all my files, including those which begin with a . such as .git or .ssh.
Read more
What is Bitcoin?

What is Bitcoin?


in Bitcoin
by
with 0 Comments

Bitcoin has reached an all time high recently, this guide explains what you need to do to start using the cryptocurrency
Read more
PHP Email Address Validation Function

PHP Email Address Validation Function


in PHP
by
with 0 Comments

One PHP function that i like to use in my validation routines is this little beauty.
Read more
PHP Snippet to convert UK date to MySQL date

PHP Snippet to convert UK date to MySQL date


in PHP
by
with 0 Comments

A simple PHP preg_replace statement that will convert uk date format ready to be inserted into a mysql table. 23/06/1981 returns 1981-06-23
Read more
Installing Debian Linux on  Dell Inspiron 1501

Installing Debian Linux on Dell Inspiron 1501


in Linux
by
with 0 Comments

Ever wondered how to install linux wireless network drivers on your Dell Inspiron 1501. I've recently given it a go and succeeded. Follow this guide and you'll soon have your laptop running smoothly.
Read more
PHP Filename Friendly Function

PHP Filename Friendly Function


in PHP
by
with 0 Comments

This function outputs a string that is filename friendly. It removes all non-characters and punctuation from the input and converts to lowercase. I find this useful for seo friendly cms pages. This function is still being tweaked so any improvements would be most appreciated. function checkCharacters($title) { $final_text = ”; $title = strtolower(trim(stripslashes($title))); for ($i = 0; $i < strlen($title); $i++) { $letter = substr($title,$i,1); $ascii =...
Read more
Emailology - The Science of Looking Good in the Inbox

Emailology - The Science of Looking Good in the Inbox


in General
by
with 0 Comments

While catching up on some rss feeds today this little gem popped into my window. It contains a boilerplate for HTML emails in loads of email programs. The compressed mode which is 109 lines of code.
Read more
PHP Function to find the last key of a multidimensional array

PHP Function to find the last key of a multidimensional array


in PHP
by
with 0 Comments

This function is great for retrieving the last key of a multidimensional array. I use this function on a site that stores cake options such as size, shape, ribbon colour, icing colour and text fields for use in a shopping basket.
Read more
Google+ support added to posts

Google+ support added to posts


in General
by
with 0 Comments

Now that Google+ buttons have been out for ages, I've finally got them added to my posts. That's all for this post, just thought I'd make people aware!
Read more
PHP Colour lightness function

PHP Colour lightness function


in PHP
by
with 0 Comments

  Following on from my other 2 useful functions I thought I would show you another one which I have found useful for determining if a colour background needs a white or black text colour over the top.    I found this function a while back so can't take the credit for writing it myself, I have no idea to give the credit to but whoever you are thank you.    [code lang="php"] function get_brightness...
Read more
PHP Function to return your IP address

PHP Function to return your IP address


in PHP
by
with 0 Comments

Here's a quick little function which can be used to return your IP address. Not as useful as the next method but a simple quick solution
Read more
PHP Function IP if behind a proxy

PHP Function IP if behind a proxy


in PHP
by
with 0 Comments

Following from my last post, here is the method to get your IP address if you are behind a proxy. It's a much better function than the earlier post as it will almost guarantee a return result.
Read more
Getting a missing window back on-screen

Getting a missing window back on-screen


in PC
by
with 0 Comments

  I had an interesting experience the other day where an application window appeared off screen and therefore hindered my progress on a website build. I put this down to the fact that I run two monitors on my work machine and since moving them, I must have put them the opposite way around. This had me a little confused for a while, and as always the case, this website is running a couple of days behind schedule already.   After thinking the software had crashe...
Read more
Useful PHP date function

Useful PHP date function


in PHP
by
with 0 Comments

Here's a useful function that I use a lot for taking a database date and converting it into something human readable. [code lang="php"] function dateFormat($dbDate, $newFormat="jS F Y") { // split the date into it's component parts $year=substr($dbDate, 0,4); $month=substr($dbDate, 5,2); $day=substr($dbDate, 8,2); $hour=substr($dbDate, 11,2); $minute=substr($dbDate, 14,2); $second=substr($dbDate, 17,2); // reco...
Read more
Screenshots on a Mac

Screenshots on a Mac


in Apple
by
with 0 Comments

Just a quick article outlining the different methods of capturing screen output on a Mac. Command-Shift-3: Take a screenshot of the screen, and save it as a file on the desktop (name is Screen shot YYYY-MM-DD at HH.MM.SS) Command-Shift-4, pointer changes, then select an area: Take a screenshot of an area and save it as a file on the desktop (Same filename as above) Command-Shift-4, then space, then click a window: Take a screenshot of a window and save it as a file on t...
Read more
jQuery A Beginning

jQuery A Beginning


in jQuery
by
with 0 Comments

I've been using the jQuery library now for a few months and thought I'd share some observations.
Read more
Modern Warfare 2

Modern Warfare 2


in PS3
by
with 0 Comments

When my wife got home last night she surprised me with a copy of the game, love her to bits. As i couldn't get onto the multiplayer servers last night i played a few hours of the single player. I've played all the COD titles on PC so this is the first one I've played on Console. Overall the game seems faster pace and harder than the first, with the usual great quality story and immersive feel. I did manage to get into the servers this morning and tried out team ...
Read more
PSP comeback continues LBP, Rock Band and others announced

PSP comeback continues LBP, Rock Band and others announced


in PSP
by
with 0 Comments

PSP comeback continues LBP, Rock Band and others announced
Read more
Apple Announces Safari 4 The Worlds Fastest Brows

Apple Announces Safari 4 The Worlds Fastest Brows


in Apple
by
with 0 Comments

Apple Announces Safari 4 The Worlds Fastest Brows
Read more
Mac Mini Inside an Apple Disk II Case [Pics]

Mac Mini Inside an Apple Disk II Case [Pics]


in Apple
by
with 0 Comments

Thirty years ago, it would have been obscene to think a PC could fit into a case the size of the Apple II's floppy drive. Now Charles Mangin's Mac Mini lives in one. read more | digg story
Read more
The race to kill the MacBook Air is on

The race to kill the MacBook Air is on


in Apple
by
with 0 Comments

Although MacBook Air remains the world's thinnest and lightest notebook in the ultra-portable category and has largely remained unchallenged by the rest of the industry, this could change within weeks as Dell preps a challenger. read more | digg story
Read more
The Ubuntu Look Can be Changed

The Ubuntu Look Can be Changed


in Linux
by
with 0 Comments

but Linux CAN NOT have a “Look”...A Linux distro is basically someone saying: here’s a collection of packages that works well together, now keep it or change it as you wish. read more | digg story
Read more
The iPhone Is As Powerful As The Dreamcast

The iPhone Is As Powerful As The Dreamcast


in Apple
by
with 0 Comments

EA said it's more powerful than the DS, and now Sega —the guys who made Super Monkey Ball for the platform—is saying that it's just as powerful as the Dreamcast. read more | digg story
Read more
Firefox 3 exceeds a million downloads

Firefox 3 exceeds a million downloads


in PC
by
with 0 Comments

The download counter here at Mozilla headquarters shows that Firefox 3 has passed a million downloads. Ars reports live from the official release party. read more | digg story
Read more
Free DNS analysis web service

Free DNS analysis web service


in General
by
with 0 Comments

A romanian company has released a free DNS analysis service called IntoDNS. IntoDNS checks the health and configuration of DNS servers and mail servers. It ’s designed as a tool that helps server and network administrators in day to day job, to identify and fix DNS and mail issues. read more | digg story
Read more
Firefox 3 and Safari 4 in browser speed race

Firefox 3 and Safari 4 in browser speed race


in PC
by
with 0 Comments

An interesting look at next-generation browsers and the technology how speed gains are achieved. I wonder what Microsoft will do? read more | digg story
Read more
Third-party iPhone applications to arrive Monday

Third-party iPhone applications to arrive Monday


in Apple
by
with 0 Comments

Apple CEO Steve Jobs introduced the App Store in March, and third-party applications delivered through the store should arrive Monday. read more | digg story
Read more
Valve Source Engine to hit Linux soon

Valve Source Engine to hit Linux soon


in Linux
by
with 0 Comments

Valve Source Engine to hit Linux soon
Read more
Firefox 3 On Track To Be Speediest Browser

Firefox 3 On Track To Be Speediest Browser


in PC
by
with 0 Comments

Now that Mozilla's locked down Firefox 3's final feature set with Friday's push of release candidate 1, it's official: while Firefox 3 boasts some great new features like a smart address bar and better bookmarks manager read more | digg story
Read more
Rockstar Patches GTA IV PS3 Online Play

Rockstar Patches GTA IV PS3 Online Play


in PS3
by
with 0 Comments

Rockstar Patches GTA IV PS3 Online Play
Read more
GTAIV Breaks Halo 3's Record! $500 million in 1st week, 6mn

GTAIV Breaks Halo 3's Record! $500 million in 1st week, 6mn


in PS3
by
with 0 Comments

The title sold about 3.6 million units on April 29, its opening day, bringing in roughly $310 million (£200.91 million). This is $10 million (£6.48 million) more than what Microsoft Corp.'s "Halo 3," another blockbuster game, took in during its first week last fall. read more | digg story
Read more
The Simpsons Compilation of Couch Gag Intros

The Simpsons Compilation of Couch Gag Intros


in General
by
with 0 Comments

The Simpsons Compilation of Couch Gag Intros
Read more
New Indiana Jones Movie Gets Its Second Trailer

New Indiana Jones Movie Gets Its Second Trailer


in General
by
with 0 Comments

Just 18 days ahead the official premier, Paramount Pictures has released the second trailer of the long awaited “Indiana Jones and the Kingdom of the Crystal Skull”. read more | digg story
Read more
The Heartbeat of Liberty City GTA IV Easter Egg

The Heartbeat of Liberty City GTA IV Easter Egg


in PS3
by
with 0 Comments

The Heartbeat of Liberty City GTA IV Easter Egg
Read more
Selsley Bash

Selsley Bash


in General
by
with 0 Comments

Last weekend we finally got to try out our Bajas on Selsley common. The weather started well but turned bad, luckily by that time only one of the Bajas was still working. Mine only worked for about 5 minutes, later diagnosed as a faulty spark plug, Wol managed to break a front shock and screw his diff after somehow managing to pop out a dogbone. See the video below. Video edited by Mrp
Read more
Hawk Found Dead With Claw Sticking Through Chest

Hawk Found Dead With Claw Sticking Through Chest


in General
by
with 0 Comments

In what looks like a scene out of the movie 'Alien,' a California animal rescue worker finds a hawk with a claw protruding from its chest. read more | digg story
Read more
Finally got a PS3

Finally got a PS3


in PS3
by
with 0 Comments

  After the console being out a year in the UK i've finally picked one up. After watching many titles come out on the PS3 and thinking that maybe this Playstation was one to miss, Grand Theft Auto 4 is almost upon us. Being a big fan of the previous ones has led me to this decision. with the PC version being delayed for upto a year i have bit the bullet and got it.   After installing the system and immediately upgrading the hard drive from 20 to 160Gb ...
Read more
No Posts

No Posts


in General
by
with 0 Comments

Been over a month since i posted last and for good reason, Christmas was a busy time for me with expanding work and decreasing time. Also taken up a new hobby which has absorbed a lot of time over the past couple of weeks. Being as we have a nice size field behind the office and a more than accomodating landlord we've taken up racing petrol radio controlled cars around on a track which the landlord has cut for us. Here's a pic of my new car which i've converted to a...
Read more
Enemy Terriory Theme Released

Enemy Terriory Theme Released


in PHP
by
with 0 Comments

Uberthemes have released there latest PHP Nuke theme for clans playing Wolfenstein: Enemy Territory. The game which is free to download and play, came out a few years ago and it's combination of team based and objective led combat has kept it on the top 10 list of Xfire. Earlier this year a new updated version of the game was released under the Quake umbrella, but promised the same fantastic gameplay that the original had. Unfortunately upon playing t...
Read more
Crysis

Crysis


in PC
by
with 0 Comments

With the release of several games in the succession and me having less than full use of my shoulder, i've been unable to post on the unbelieveable game that is Crysis. I managed to complete the game yesterday afternoon and wasn't disappointed at all with the story, gameplay and visual aspects of the game.85% of the game is jungle based combat against the Korean Army, with the remainder a brutal clash with an alien race. The game is a welcome change to Farcry which seemed to...
Read more
Call of Duty 4: Modern Warfare

Call of Duty 4: Modern Warfare


in PC
by
with 0 Comments

  Having played the demo last month i decided that this game was going to be something special. After only playing a couple of levels i was completely captivated, the game is fantastic. The graphics are superb, the sound is perfect and for the first time in ages the British don't talk with a stupid 1930's posh accent. When you hear them you can tell that they are hard SAS and you wouldn't want to mess with them.   As well as playing the...
Read more
Call of Duty 4 Demo Out

Call of Duty 4 Demo Out


in PC
by
with 0 Comments

Thursday night marked the release of the much anticipated Call of Duty 4 demo. The demo for the PC includes 1 level for you to see the potential of the single player campaign. I've been through and expect the game to be fast paced and full of action. I am looking forward to the multi player element main ly though as this will be the area which i fell will judged the most. For me Battlefield 2 has set the standard for squad based combat and the recent release of Enemy Territory Quak...
Read more
Unreal Tournament 3

Unreal Tournament 3


in PC
by
with 0 Comments

Just downloaded the demo for Unreal Tournament 3 and i must say that so far it's not disappointed. The graphics look great the gameplay is true to the series and the I've enjoyed every minute of it. I love the new hoverboard feature as it speeds up getting to and from certain points up no end. I can't wait for this to come out as i can see that in true UT style the battles are going to be fast, bloody and most importantly great fun.
Read more
PSP Themes

PSP Themes


in PSP
by
with 0 Comments

I'm a few days behind in the PSP world as I've finally upgraded my PSP to firmware 3.71 (only a month behind!!) I've found out that among the updates is a new theming option, this allows you to download themes from the web and change the wallpaper and icon sets used in the xmb without affecting the games. Now for people like me who've had the PSP for a while it's starting to look a little dated, and with the release of the new slim psp this is a ...
Read more
Mozilla Plugin of the Month

Mozilla Plugin of the Month


in General
by
with 0 Comments

I've been using Mozilla Firefox as my main browser now for quite some time and love the plugins that are available for it. I thought I'd feature some of my favourite plug ins in a new feature I'm calling Plugin of the Month! This months plugin is not a geek tool (honest) it useful for people who have more than one pc and want to keep their bookmarks synchronised automatically. This plugin stores your bookmarks on a remote server and synchronises them periodicall...
Read more
World in Conflict

World in Conflict


in PC
by
with 0 Comments

After seeing lots of footage of this game in development on XLeague.tv I've been looking forward to the release of this game. Based on the cold war this game tracks an attack on the US by the Russians it's a RTS style  game with fantastic looking graphics. I'll post a proper review of the game when I've played more of it. You can get the game from play.com here.
Read more
123-Reg Woes!!

123-Reg Woes!!


in General
by
with 0 Comments

I've been using 123-reg now for approximately 5 years and have never had a problem up until earlier this week when I was transferring a couple of domains, for new clients, into my account. The first was a .com and the second a .co.uk. The .com started transferring on the 5th of this month. Now normally it should take approximately 7 days at the most but 3 weeks later i'm still waiting, after a quick support request to 123-reg i thought I'd have it sorted in 48 h...
Read more
Creating a table with dynamically highlighted columns

Creating a table with dynamically highlighted columns


in HTML5
by
with 0 Comments

Found a great article on how to create dynamically highlighted columns, now all i need to do is find a use for it. Here is the link
Read more
Medal of Honor: Airborne

Medal of Honor: Airborne


in PC
by
with 0 Comments

Just finished the game and was left with a feeling of disappointment. I really enjoyed the first few levels, the idea of dropping into the battlefield and choosing your starting location is a great idea. You don't get as much freedom as you'd expect because you are generally given 2 "safe locations" where you won't immediately be shot at.   I also enjoyed the upgrades that you get as you use your weapons, it rewards your experience...
Read more
PHP MySQL Class

PHP MySQL Class


in PHP
by
with 0 Comments

Been using this class now for my sites for a while it's just the ticket. So i thought i'd include it here so that more people can benefit from it. I wish i could take the credit for producing this but unfortunately it was built by Eric Sizemore over at www.secondversion.com he's also produced a handy tool or tracking your domains. Well worth a visit. I couldn't find the files on his site so i've included the file here for download.
Read more
Safari Hits the PC

Safari Hits the PC


in PC
by
with 0 Comments

Apple have released a public beta of Safari for the PC. That's right, you can finally get the fastest browser on your pc. As a web developer I'm keen to see how this will affect layouts that I've created recently as we all know that no 2 browsers are alike!
Read more
Super Paper Mario Troubles

Super Paper Mario Troubles


in Wii
by
with 0 Comments

I sit here now after spending most of the day working on recoding a website that we've just taken over the hosting and maintenance for (the site's code is about 10 years older than the internet itself). But that's not what my gripe is about! Whilst i've been working hard, my girlfriend has been playing the new Super Paper Mario on the Wii. Now we've had to wait quite a while now for this game as America and Japan have had it for months. So you'd of thought tha...
Read more
Xombified

Xombified


in Flash
by
with 0 Comments

Just been going through my Newgrounds emails and came across a great flash movie by James Farr, I decided to view the rest of the series and was really impressed by the story and quality of the animation. I suggest anyone interested in comics to check it out as there is also an online comic version and a novel has been released. The site is www.xombified.com
Read more
Wiiiiiiiiiiiiiiii

Wiiiiiiiiiiiiiiii


in Wii
by
with 0 Comments

Well after a 2 month wait i've finally got a Wii. I ended up getting it from Germany and i must say apart from having to use an adaptor to plug it into the wall it is sweet. Whoever at Nintendo though of the remote control system is a genius, no longer will there be days of aching thumbs and RSI. All the buttons are where you need them. Now i can finally play Zelda which i've had at home sat there doing nothing. So far i've done about 3.5 hours in Zelda and it's a re...
Read more
Driver 76

Driver 76


in PSP
by
with 0 Comments

Well just completed all the main missions on Driver 76 on the PSP. Great game, definitely in the same league as Grand Theft Auto. This is the first one that I've played in the series and it was definitely worth it. I found it very easy to pick up and play and it kept me entertained whilst playing. I now feel that i need to find the rest of the stars and do all the bonus missions before i can truly say that I've completed every element of the game. If you've played the GTA se...
Read more
CSS center content within a div

CSS center content within a div


in CSS3
by
with 0 Comments

Here’s an old bit of code that I found to position something centrally inside an element.
Read more