Whois:

Sometimes daily ramblings & articles from a 30 something developer from North West England. Passionate about not just web standards, but all things life. Long time user of Debian/GNU Linux for Web Servers & my Desktops. >>>


» 24/01/2006, 19:28:09 / / / Subscribe

Well after my previous entry about the Arctic Monkeys they went straight in at number one in the UK Charts heh. Now perhaps the record industry will accept that free music online doesn't affect the sales of records. The Arctic Monkeys literally gave all there tracks away on the net for FREE well before they even got a record deal and both tracks they have released so far have gone straight in at number one. Also they had already SOLD OUT on there tour before they released anything in the charts and why? Well because people had ALREADY heard them on the web. I'm not sure if the people at record empires realise it yet but, hello? The web and music sharing is about the cheapest way to market a band EVER. The Arctic Monkeys again just proved that beyond a doubt.

Bad Hair

As you can see by the below picture, I require a hair cut. I'm just not used to that sort of thing having had either dreads or a shaved head for all of my adult life; bah!

Hello 'tinternet!

Geek Stuff

I've been sorting through a lot of my source code recently and I think I might start to give some of it away. Just simple things that I have found never-ending value from because, well, they just make life that much easier when you're trying to develop a web based application, site or function. A lot of folks don't use classes when they write PHP because it is quite high level stuff and not for the faint of heart when it comes to keeping a grip on a 150,000 line project with 30 classes, 10 extended ones and a nice chunk of Mysql using objects thrown in to really liven things up. The problem is that you tend to write functions which is a great way to code but most of the time very few of those functions will ever make it out of the project you are writing them for because they just don't suit anything else; including database connection handling and query building. If you get in to the habbit, or already are in the habbit of writing functions that deal with this sort of thing a top tip from me is to create a class out of it. Given the fact that there is really only one proper way to connection from to a database it makes sense that if you do multiple projects at any one time that you'll reuse the code so why not make it in to a nifty class and just drop it in where you need it. People have been enjoying OOP (object orientated programming) for quite some time and I often see lots of the scripts on the net with the same function calls repeated a billion times when you could just be using something like....

$this->connection

instead of...

mysql_connect($host, $user, $pass);

Makes for much easier to manage code and also splits things up nicely so that you don't feel lost. The amount of lazy programmers that I come across that open essentially dozens of connections and don't test to see if one is already open is astounding, no really. So anyway, over the coming week when I am taking a 10 minute break from doing freelance work I am going to get some of this stuff together and write a small tutorial on the basics of classes. Hopefully it will be of some use to someone? In the meantime go and read about it at www.php.net/class.

People:

Mal! - Kev! - Bumble! - Neil!

Tagged Under: , , , .

Technorati:

Comments:

#1. mal
25/01/2006, 01:35:33

Woa! You had dreads... that is so hot! (sorry bumble)

I've always wanted dreads - but I think that looks a bit odd on a chinese girl....
Oh well, can always dream. tongue

#2. skeddy
25/01/2006, 08:53:44

Get a hair cut hippie ! laugh

The Artic Monkeys way of thinking isn't all that new, but it does go to show that it can work. I hope *plug* Mr Smith can enjoy the same success later on this year too.

It's a damn good Album by the Artic Monkeys - had not head of them until you pluged them, thanks !

#3. tek
25/01/2006, 10:09:51

Mal, why yes I did! I had them for a long time (down to my ass). I shaved them off when I went to Goa and although it was a "new skin" thing I fully regretted it about 30 secs after I had shaved them. However since coming out of the "oh shit my dreads, they're gone" mental ward I just have kept it short out of ease. I want my dreads back but you have to go through the OMG wtf is that wig stage which is where I am, which is what I really hate.

I think you should just have dreads and be the Chinese trend setter! wink

Skeddy, "Get a hair cut hippie" I used to love to hear that phrase along with hedge monkey, tramp, tree hugger all the time and I used to laugh my ass off because the watch I wear is probably more expensive than the nylon shell-suit, burberry cap, Nike™ trainners and wannabe-G gold chain they were more than likely wearing at the time. laugh However you're right, it does need cutting! embarassed

Nah its not new but the way in which they went about doing it was refreshing to say the least! I'm sure Mr Smith will get to where they want to be, I like some of there stuff!

Glad you like the album. Mardy Bum will probably be the next single since it is already getting Radio play! smile You can download a LOT of there live stuff here cool

#4. skeddy
01/02/2006, 23:12:57

What do you prefer from a band ? A recorded version of their track, or a live version ? I'm a 50/50 guy it has to be said. If you looked at Mr Smith, 10 Feet Under is better live than recorded. However, Linkin Park - Recorded tracks are much better. I've not had the chance to listen to the live tracks from Arctic Monkeys yet.

And can I just also add - Robbie Williams - Live. Every time.

*dies of embarrasment*

#5. tek
02/02/2006, 09:30:26

Both to be honest. Love to see live bands but I appreciate that much more can be done in a studio!

*ignores the robbie comment* laugh

#6. bumble
05/02/2006, 20:23:35

wink at Mal sites looking great btw!

tek

laughlaughlaughlaugh

#7. skeddy
07/02/2006, 08:48:57

Just looking at some of the BT names people have on their devices. Strange, strange people !

Shame you can't overwrite their name when you jack them.

Mind you, it's more than likey in the works. Imagine that - going into work the next day after taking the company laptop to the pub and getting jacked. Log into your local network as [something obscene but funny]

#8. tek
09/02/2006, 08:37:58

Indeed they are. When I was out last weekend I was getting lists of over 100 names (was out in busy pubs/bars/clubs) and some of those were hilarious!

No BT doesn't allow that and never will but what some undisclosed mobiles can let you do is whats called a bombjack where you set a calendar date and BT that to them, the handset simply accepts it and the owner is not even aware! You can imagine the amusement of that at 4am on Sunday! chessy

#9. skeddy
14/02/2006, 19:55:45

London to LA train - 15 people bluejacked with my web address. MobiLuck pwns.

Add your comments below:

Required

Required

  CAPTCHA imageRequired (enter the six letters)

64-bit 2007 6280 accessibility Accessibility advert ajax angry annoyed apache arcticmonkeys article articles artlab b3ta beast bed bind blog blogging blogs blogsphere bob dylan Boer bookmarklets booze bots browsers bt bunnies bush bye chelsea tractor Chernobyl childhood cms coding coffee cold community copyright cpu cracker dad dark arts DDoS debian design designer development diamonds diy dog dogpile domain Don Ross dragon drm Ebaumsworld email emo en end essex everything exploit Feeling Good firefox Firefox flu fog formats free freedom freelance friday fuck you furQ geek germs google gravatar greenpeace hacker handset hangover hawkwind Helm hindu history Holocaust horse the band hospital hosting hotlinkers humour hype idiot ie ie7 ill images independence indie industry ipaq iraq ireland javascript job kanotix kernel keywords KG800 knoppix legal LG LGChocolate lies linux Linux Lohan lyrics marketing masters of war meme microsoft moblog mod_rewrite mothership motorola mozilla mum music myspace mysql neil net neutrality network new year new_year Nina Simone nirvana nokia nokia6280 northwest nothing office move p2p palm paperless office parties perl phishing photos php piercings plane pmwiki promotion python rant Razr rdf regex renegade resistence resources review rising risingdragon rising dragon hosting rob dougan ror router ruby santa sarge script kiddie security SEO server seven deadly sins shambo slaughter sleep snow Somme so what spam spammers ssh statement strike stuff stupid sun surname techno technorati tek tengine terrorism thinking tikiwiki time torture training tribe twitter ubuntu unix uptime URI US V3 v3 vets viagra video voodoo voyager220v vulnerability wales War war WC3 weapons web web-tribe web2.0 web 2.0 webmaster Web Standards wedding windows wokingham woo woody wordpress work WP WWI xmas xp Ypres ytmnd.com yule zero-day

Articles:

These articles are meant to help others that perhaps come across similar issues I had with Debian/GNU Linux or development of some kind. Others might just be of a rather random nature. I will try to keep up with any questions, responses, comments and even flames added to them. I am however not resposible for any "rm -rf * type issues that might occur, consider the previous words as my legal disclaimer :-)


» 11/08/2005, 22:12:41 / Comments (3) / Printable / Subscribe


» 24/05/2005, 23:28:12 / Comments (12) / Printable / Subscribe

Friends:

Bumble / Ratatak / Mal / Neil / Bizzos / Skeddy / Thinkattack / Nefariousmuse / Static Silence / Growchat / Bawdeep / Tristan / David Bamford / Narelle / Monday by Noon / Angry Ginger / Inkognitoh / Bob / Caolan

Moblog:

    • 06/06/07 - 07:06:27 :: Mmm... :: Bbq 12/03/07 - 06:03:40 :: New moblog :: does this still work? 10/05/06 - 08:05:45 :: Its all about the moon... No wait... :: its all about the sun yer know. 03/05/06 - 09:05:54 :: I said good morning :: its morning and i already wanna go to bed 27/03/06 - 11:03:44 :: Oh :: yes yes 05/03/06 - 07:03:41 :: Quick snack :: nice bit of soup!
    • 02/03/06 - 01:03:32 :: Yum. Subway rawks! :: considering its a foot long i think thats a real buttie! 11/02/06 - 01:02:24 :: ... :: it would appear not! 24/01/06 - 10:01:09 :: tek :: err me 16/01/06 - 07:01:21 :: Beer! :: indeed! 16/01/06 - 12:01:12 :: LOL! :: what a fantastic name for a shop! 15/01/06 - 04:01:04 :: Yep! :: nights in with the bavaria
    • 08/01/06 - 11:01:29 :: Mmm revels! :: tasty 19/12/05 - 04:12:49 :: Interesting :: strange pic taken on the way to a meeting 16/12/05 - 11:12:31 :: Woo! :: The Red Wings 15/12/05 - 10:12:26 :: ... :: out of the dust 05/12/05 - 02:12:08 :: aye! :: booty booty 04/12/05 - 12:12:14 :: Oh yes :: its only going to get more banging woo yay!