Script to Change IP Address

July 12th, 2012

When using my personal computer at work, I have to change from DHCP to a static IP and it got really really frustrating to change my settings twice a day. So I got a script to do that for me and I think it will be very useful to some of you out there if I shared it.

Read the rest »

Congrats to Spain on Winning EURO 2012

July 1st, 2012

Photo PA Photos

Congratulations go out to Spain for winning, and defending, the EURO championship. We all witnessed history today as they have won three back to back international tournaments: EURO 2008, World Cup 2010 and EURO 2012.

Read the rest »

Destination Boiling Lake

June 20th, 2012

The weekend of June 16, 2012 started with me preparing for a trip to the Boiling Lake in Laudat village. I bought lots of water, some snacks and stuff to make breakfast. I could hardly sleep that night, not because of excitement but because of the preparation of food for the following day’s activity.

Read the rest »

Saving Pictures for the Web

June 16th, 2012

I have visited several website in my life and a lot of them have pictures on there that the author has re-sized using the HTML width and height properties but the actual image size is still large. The result is a slow loading “small” image. But I have the solution to solve the annoying load time.

Read the rest »

One Day, Two Fires

June 11th, 2012

While at a meeting today, I heard sirens wailing and found it strange that they were going towards the bayfront and not out of town. I thought nothing much of it and continued the meeting. Shortly after hearing the sirens, my phone started ringing. After three missed calls I answered the following call and I was told that the Social Security building was on fire.

Read the rest »

Happy Birthday to Me!!

June 6th, 2012

Let me say thanks to everyone who sent birthday wishes via my Facebook page, telephone and in person. Thanks you guys! The day was quite enjoyable but tiring.

Read the rest »

Let’s Take Our Time

May 30th, 2012

Since posting the article New Road Same Carelessness some time ago, there have been at least 5 accidents in the west coast road that I can recall including this one under the Canefield Cliff which involved three vehicles.

Read the rest »

A Thriller of a UCL Final

May 20th, 2012
Chelsea players begin their celebrations after Didier Drogba's penalty won the Champions League

Copyright ESPN Soccernet

I would have never thought that Chelsea would win the UEFA Champion’s League (UCL) title after viewing the first half statistics. Bayern Munich had 15 shots on goal to Chelsea’s 2. But as they say, goals win football games.

Read the rest »

Enable PHP Code Execution in WordPress Text Widget Without a Plugin

May 10th, 2012

Here’s another tip for all you WordPress users out there. The information below was taken from www.tips4developer.com and the owner retains all copyright to his/her post.


As a WordPress developer you might want to execute PHP code in WordPress Text Widget. At times all of us have this requirement. Unfortunately, WordPress do not allow this. But with the help of below steps you can enable PHP code execution in WordPress Text Widget.

Steps to follow:

1. Add the following code in “functions.php

add_filter(‘widget_text’, ‘enable_php_code’, 99);
function enable_php_code ($text) {
if (strpos($text, ‘< ' . '?') !== false) {
ob_start();
eval(‘?’ . ‘>’ . $text);
$text = ob_get_contents();
ob_end_clean();
}
return $text;
}

2. Go to Appearance > Widgets section and drag a Text Widget to your sidebar.

3. Add your PHP code in Text Widget.

That’s all you are done.

One More Week to Go in the BPL

May 6th, 2012
Cisse strikes at the death

Copyright ESPN Soccernet

At the end of play today the title race will be decided next week. Both Manchester City and Manchester United are level on points with City having the edge on goal difference. City needs to win or at the vesy least duplicate United’s result next week for them to win the title. This should be easy pickings, theoretically, since City’s opponents will be Queens Park Rangers. Manchester United will play Sunderland on the last day which shouldn’t be too hard, in my opinion, but Sunderland has caused a few upsets this season.

Read the rest »

Create A Custom Widget Area in WordPress

May 6th, 2012

For all you WordPress users out there who like creating your own templates, here is a tip to help you on your way. The information below was taken from www.tips4developer.com and the owner retains all copyright to his/her post.


If you are looking forward to create your own widget area in wordpress, then you are at right place. Creating custom widget area is something like creating your own sidebar widget area, but with the flexibility to place it anywhere in between your template code, so that might be in header.php, footer.php, page.php or index.php. And with the help of which you can display widgets of your own choice.

1. Locate functions.php in your active theme folder and add the bellow code in it.

if ( function_exists(‘register_sidebar’) )
register_sidebar( array(
‘name’ => __( ‘My Custom Widget Area – 1’),
‘id’ => ‘myCustomWidgetArea1’,
‘description’ => __( ‘An optional widget area for your site footer’, ‘twentyeleven’ ),
‘before_widget’ => ‘

“,
‘before_title’ => ‘

‘,
‘after_title’ => ‘

‘,
) );

2. Next step is calling widgets area from theme template files. For that you just have to place this code in the div or any other container you wish. You can place the bellow code in – header.php, footer.php, page.php, index.php, single.php or any other template related files.

< ?php
// Custom widget Area Start
if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘My Custom Widget Area – 1’) ) : ?>
< ?php endif;
// Custom widget Area End
?>

Here you are done, your widget area is ready to drag your widgets in it. What are you waiting for go ahead and drag widgets to display on your website.

New Road, Same Carelessness

May 1st, 2012

I don’t remember when the road works from Roseau to Portsmouth started but I remember that I have seen a lot more accidents since the road works started than before.

Read the rest »