PHP Shorthand If Notation or the Ternary Operator

Why should I care about PHP Shorthand If Notation or the Ternary Operator

Programming would be a bit useless without being able to evaluate conditions using if/end and switch statements. If/Else statements is obviously a great tool, but they aren’t optimal (or necessary) in all situations. And so I introduce you to … PHP Shorthand If Notation or the Ternary Operator.

Ternary operator takes the form “(condition) ? (true return value) : (false return value)” to shorten your if/else structures.
Read more ›

Tagged with: , , , , ,
Posted in PHP, Programming, Web Design

Hawaiian Cruise (and visit to Los Angeles) on the Golden Princess

Our Hawaiian Cruise (and visit to Los Angeles) on board the Golden Princess Cruise November-December 2011.

During this trip we visited the Hawaiian Islands and spent a few nights in Los Angeles on the way back.

OK, it’s taken me over a year to finish writing this up – keep not finding time to do it! I will add some photos in the next few days.

Read more ›

Tagged with: , , , , ,
Posted in Travell & (mis)Adventures

jQuery – Scroll page to position of an element/div

When you’re working with a complex page that has a load of areas on-screen, making use of this small function below to scroll to the location will enhance you’re user experience by saving them needing to scroll… take them straight to it!

Read more ›

Tagged with: , , ,
Posted in jQuery, Programming, Web Design

Rocking in Hyde Park with Jon Bon Jovi at Hard Rock Calling – 25th June 2011

Having booked tickets a lifetime ago (or felt like it), the day finally came.

We were in the queue around 10/10:30PM and so we were about the first people in… so picnic rug in hand set up fort middle center just 2 or 3 rows from the front of the pleb partition. while  the queues for entrance stretch through Hyde Park on a glorious day unlike the damp start to the weekend. But we did visit the Park while The Killers were on, crowd was nowhere near as big as Saturday but nonetheless sounded like a good show from what I heard under my tree from the rain. And ‘wet’ our appetite for Jon Bon Jovi on the Saturday…

Read more ›

Posted in All The Rest

Hints to help optimise the performance of a PHP website (LAMP)

Over time, the websites I have been involved in have became more and more complex (and indeed carry more and more traffic).

And so the ever increasing need to optimise and increase the performance of your website (or web-application) becomes more crucial.

As you will appreciate this is a HUGE subject, so I aim to simply put you on the path to devising a better architecture and design. But I will attempt to introduce some ideas to assist…

Read more ›

Tagged with: , , , ,
Posted in PHP, Programming

Working with Dates & Timestamps in PHP

Working with Dates and Timestamps is always trying, but using UNIX timestamps can save you a lot of time and hassle!
Read more ›

Tagged with: , ,
Posted in PHP, Programming

Calibrate HTC Desire battery – help improve your battery life!

Need to stabalise the battery life on your HTC Desire? This will help a little… Read on…

Read more ›

Tagged with: , ,
Posted in HTC Desire, Tips & Tricks

Get element with CSS class name or id with jQuery

Get element with CSS class name or id with jQuery, jQuery is extremley powerful and a time (and even life) saver, using jQuery, you can get elements with CSS class name and id easily without too much blood and tears!

Read more ›

Tagged with: , ,
Posted in JavaScript, jQuery, Programming

Why does php not show errors? – How to display PHP errors when display_errors is disabled

OK, a simple thing I know. But one that always occurs.

When using shared hosting (or even your own dedicated servers), those managing those servers do their utmost to make them secure. Among many things this usually includes turning off ‘display_errors’ in the php.ini file.

However, when you’re trying to develop things it is usefull to display errors and warnings, but if ‘display_errors’ is off, you will be scratching your head wondering what’s going on and whats going wrong!
Read more ›

Tagged with: , ,
Posted in PHP, Programming

Watch your battery!

Having had the HTC for over a week now, I am beginning to get to grips with how to get he most out of it… especially when it comes to battery life.

  • DO NOT let it run too dry! Seems to have trouble charging (from USB) if you’d managed to let it get too low!
  • Be carefull what apps you install… soem apps seem to drain power wven if not in use!

Read more ›

Tagged with: ,
Posted in HTC Desire, Tips & Tricks

Beginning your journey in Object-Oriented Programming using PHP

Object-Orientated programming is not a new idea! It’s been around and available for a long time in many languages.

With each new version of PHP, new features appear, while existing features are improved. PHP’s object support has been hugley improved since it’s introduction in PHP3 (yes it has had it all this time!). And so with PHP’s object support maturing, the reasons developers might not take an object orientated approach are getting smaller. More recently PHP5′s take on objects is much more powerfull and usable than it ever has been for PHP users – but still not without it’s faults.

A common problem that experienced (and new) PHP developers have when embarking on their object-orientated (OOP) journey is thet they don’t know WHEN to use it properly! As with all things there is a time and place for everything.

For those who do not know about OOP I am not even going to attempt to explain what it is! But fact you have found this article means you probably do, but incase not Wikipedia has good general background info on OOP.

Read more ›

Tagged with: , , ,
Posted in PHP, Programming

Tools & Tips…

Well, I’m going to try to divulge more of my development experiance to others. Starting with some ‘Tools & Tips‘.

Let me know if there are any topics/questions from all forms of development PHP, Java, .NET .. and management (people & projects) aspects of the IT world too!

Posted in Programming, SEO & SEM, Software, Technology, Web Design

Album Review: Delphic – Acolyte

матрацимаси и столовеDelphic - Acolyte

Delphic Acolyte

On first listen to “Acolyte” it was an amazing journey of indie and dance. A dense but sharply-focussed amalgamation of sparkling synths, dance-friendly rhythms and intelligently constructed vocal melodies and harmonies.

Before I dive in and look at the tracks I will start with an overall view of this fine piece of very well executed music. Delphic have developed a distinct and original sound  that genuinely is a blend of indie and dance. It’s a sound that’s almost ruthlessly efficient and faceless, and almost risks being difficult for some to connect with. There are many real moments of promise here, not least when they let go of their inhibitions with the incredibly layered album closer “Remain”. But for me it is their vocalist that gives the songs urgency and life that lift “Acolyte” to being very good; for every wave of synth, there’s a lyric loaded with warmth and spirit.

Tagged with: , , ,
Posted in Music, Review

Making your website work with Internet Explorer 8 (IE8)

OK probly well known by now. But if you’re site is ‘broken’ in IE8, you could try the following which tells IE8 to work liek IE7.

<meta http-equiv=”X-UA-Compatible” content=”IE=7″ />

It belongs in the document’s HEAD. More importantly it needs to be preferably at the top of the HEAD section before any css, linked files etc.

The rule of thumb is, that the IE 8 meta tag needs to be placed above any linked files.

Tagged with: , , ,
Posted in Browsers, CSS, Web Design

Review: Michael McIntyre on his 2009 Tour @ Nottingham’s Trent FM Arena on the 26/09/2009.

Michael Mcintyre

Michael Mcintyre

Well, we went and seen Michael McIntyre on his 2009 Tour @ Nottingham’s Trent FM Arena on the 26/09/2009.

It was part of my wifes birthday present as she has always quite liked him I thought it would be a good surprise. I bought the tickets and booked hotel 2 weeks before it, and managed to not tell her untill the night before – I said ‘pack a bag’, still not telling her what for though – infact she never knew right up untill we walked into the Trent FM arena!

Read more ›

Tagged with: ,
Posted in Events (Concerts, Theatre etc)
May 2013
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1 other subscriber

Get Adobe Flash player