Archive for the ‘Play’ Category

Shorthand PHP if else Statements

Friday, January 23rd, 2009

Am playing with some OOP PHP again and have found a nifty way to cut down short if else statement

return ($count == 1 ? 'Incorrect password' : 'Incorrect username.');

is the same as

if ($count == 1 ) {
return 'Incorrect password';
} else {
return 'Incorrect username.';
}

Bargain!

Shane

Sub Cult Torrents Still About the Internet

Monday, November 3rd, 2008

Sub Cult is as you may know is a label I do much work for, and were STILL gettin issues with file sharers. My Google Alert for Sub Cult Torrents is still filling my email inbox with new pages being indexed for Sub Cult Torrents. My original post on Sub Cult Torrents on the Sub Cult site tells you all about it.

Oh and there is a reason for these Torrent related emails. I’m trying to get my site and the Sub Cult site higher in the search engines for the Search term Sub Cult Torrent. Seems to be quite easy too.

Oh and on them alerts, Google Alerts now offer you and RSS feed option too.

Shane

T-Mobile G1 Slightly Gutted

Monday, November 3rd, 2008

I was waiting to get my G1 last week. Called up T-Mobile and they informed me that I can have the G1 but I will have to create a second contract with them until my current contract runs out. Slightly gutting that I now have to wait until May 2009 for my G1 (unless I fork out £300 for the handset).

It could be good this though, it could be that a better Android phone is released by then. Motorola are currently lining one up for release in Q2 2009. They are claiming it will be much better than the HTC model. On playing with the G1 I did find it rather large in the hand and of a large width. The way the screen opens too seemed like it could be easily breakable. I also found the qwerty keyboard hard to use. Will see how the reviews for the G1 pan out.

Shane

Scouse as a Meta Lang Declaration

Thursday, October 23rd, 2008

Have just randomly found out that you can put your meta language as scouse on HTML.

Using the following
lang="en-GB-scouse"

Will actually validate according to the W3c lang Test Spec. WHYY!!!!

Made me giggle thought I’d share.

Shane

Android Source Code Released

Wednesday, October 22nd, 2008

Although I don’t mind the iPhone, I have never really been all that much of a Mac Fanboy. When Google announced the Android platform and HTC launching the G1 in association with Google. I thought “Gotta get me one of them” and am on the T-Mobile UK waiting list.

On the 21st October Google released all of the Android source code and made it Open Source. This means now that you and I can go out there and make some Android apps. (which don’t really need to be approved like Apple’s did).

This video as an introduction to the Android platform. Android Developers speak

I am downloading my SDK tonight when I get home and am already thinking of some apps to create for my G1 when it gets here. Will probably have a look at the source and see if theres anything good in there.

Have always been a bit of a fan of the open source side of the industry.

More information over at http://source.android.com

Shane