Welcome to geoff.com.au. There is probably nothing exciting to see here. A rant or two about the world. Maybe some coding issues or things I have come across in my current projects. Some more rants about the world. I think that pretty much sums it up!

For years I have had heaps of web sites to manage - hundreds infact - and little bits of information and dodads going all over the place. Hopefully this site will act as a place for them all to go. Any mayby, just maybe, something that will help somone else - or at least put a smile on your face.

Underwater Internet Backbione

Here is a map of where all the underwater internet connections are.

Or even better, is Greg's Cable Map (cablemap.info)

Set the region for AWS SDK for PHP

If you are using the PHP SDK for AWS, by default, all operations are done on their Virginia data center.

If you want to use a different data center, you must define it with the set_hostname command

Tags:

Using AWS SDK for PHP

So I want to divide the raw data being collected in my current project from the administrative data. The situiation is there will be thousands of small devices gathering data and sending that back to a data repository. A series of polling servers will request ("pull") data from the dumber of the devices and place them in this database. The smarter devices will "push" straight to an "API" server that then does the same. There is going to be a massive amount of data and I don't want the front end site slowed down.

Tags:

Drupal Modules:

Convert an Epoch date to Readable date in MySQL

Basic format

SELECT FROM_UNIXTIME(epoch) as value FROM mytable

Will display in the format like

Tags:

What Path is the current page in Drupal 7

When you are writing code that will fit into a page, how do you know the page you are on.

There are two (2) paths. The Real path that Drupal uses

node/147

Which can be found this function.

current_path();

And the Aliased path that you are actually using. PathAuto will do this for you or you might manually set a path.

Tags:

Posting data to a URL with PHP

If you want to send data to a web site, you can either POST or GET.

GET is easy - you just read the web page contents and pass the data as a variable in the URL.

Tags:

Add a "List" tab on a node to take you back to a list of records

I have a content type called "Personal Links" that have a list of URLs that I want to store - bookmarks. I also have a view that lists this links where the current user is the creator.

What I want is that when I am looking at the details page or edit page for a personal link, I have the option of a "List" tab that takes me back to the list of all my links.

I do this with Page manager

Tags:

Drupal Modules:

Write a Custom Panel for Page Manager in Drupal 7

Page Manager allows you to build up a "page" with smaller "panels", such that you can add fields, blocks and views into different layouts. But how do you write your own custom panel?

Page Manager is a part of the Chaos Tools module.

Register a Plugin Directory

Create this function in your modules .module file. This simply tells cTools where to look for additional plugins.

Remember that Chaos Tools uses the term "Content Types" differently to the Drupal Core.

Tags:

Drupal Modules:

Grab a Web Page's HTML using CURL

Sometimes file_get_contents() does not work. You can use;

Tags:

View a node's data with Drush

drush php-eval "print print_r(node_load(109), 1)"

Tags:

Drupal Modules:

Pages

Subscribe to Front page feed

Your IP Info

IP Address Locator

Speed Test

Test how fast your Internet connection really is.

DropBox

Use this link to get DropBox http://db.tt/iQHWaaF