yes i love technology

Sytax highlighting A-go-go

January 26th, 2007 by Pete

Theres only one thing that I love more than technology and thats code!

I've added the IG: Syntax Higliter plugin to this blog so I can start publishing snippets of code on this blog. The plugin can support php, html, sql, and a whole host of others languages click here to find out more about it.

Below is a fascinating piece of PHP I cranked out to check its working.

PHP:
  1. // completely useless example of some PHP code
  2. $arr = array('Pete', 'is', 'the', 'best!');
  3.  
  4. $html = '';
  5.  
  6. /*
  7. everybody loves a good foreach loop
  8. */
  9. foreach($arr as $key => $value)
  10. {
  11. $html .= $value.' ';
  12. }
  13.  
  14. $html = rtrim($html);
  15. echo $html;
  16. # wow this is great
  17.  
  18. ?>

My only complaint I have about the plugin is it doesn't seem to provide any indentation when it displays the code, even if you paste the code into wordpress nicely indented. Maybe there's a setting to activate this. If anyone can tell me where it is I'll buy them a beer, if you don't drink beer then you can watch me drink two instead.

// Pete Graham

Posted in Tech, Pete Graham, syntax highlighting, code, plugins | 6 Comments »

Mr.T puts the “T” in I.T

January 25th, 2007 by Pete

Its official Mr. T loves Computer Science, check out this advert for Hitachi for proof, I absolutely creased when I watched it. "I pity the fool that doesn't use Hitachi data System Virtualization!"

/* Pete Graham */

Posted in Tech, Pete Graham, Mr T, Hitachi, data system virtualization | 5 Comments »

Site Upgraded

January 19th, 2007 by Pete

I upgraded the blogs on this site to Wordpress 2.0.7 the other day since some security flaws had been found in version 2.0.6. The upgrade was pretty painless and just involved replacing a few of the PHP files. Its good to see that how active the Wordpress development community, its impressive how fast they patched the security flaws once discovered.

I’ve done some more work on the site in general. The Peteamania blog, and the homepage now share the same layout as this blog. I’ve also changed the content on the homepage; it now includes a much more dashing black and white photo of me.

The next thing I want to get set-up is the Wordpress plugin to provide syntax highlighting on this blog so I can start posting some PHP code and SQL statements. I’m planning to do that next week if I get a chance.

/* Pete Graham */

Posted in Tech, Pete Graham, upgrade | No Comments »

iPhone iPonderings

January 11th, 2007 by Pete

On Tuesday this week Mac Overlord Steve Jobs unveiled the iPhone after months of speculation what the device would look like and how it would work. Now there’s no doubt that Apple with shift millions of these devices, Steve Jobs could announce a new product called the iTurd [1] and millions of Apple fanatics would still rush out to buy it. The real question is not if the device will be successful but how successful will the device will be?

steve jobs with iPhone on screen behind him
Most people have an mp3 player and a phone; combining the industries best selling mp3 player and a phone makes excellent sense, one device less hassle. What Apple is aiming to do is much more ambitious they are attempting to create a portable multimedia device that will have mainstream appeal. Read the rest of this entry »

Posted in Tech, Pete Graham, iPhone, Steve Jobs, Apple | 7 Comments »

The Tale of Two blogs

January 10th, 2007 by Pete

I started running my person blog: Peteamania in Novemeber last year, so far I’ve enjoyed writing the blog and plan to continue. The problem I have is whenever I write a technically themed article many of my loyal fan (or Peteamaniacs as they like to be known) complain that its too geeky. Interesting the viewing stats showed that the tech articles were very popular.

Instead of annoying the readers of my personal blog I have decided to launch this separate blog for writing about geek/tech/nerd stuff.

I still hope to cover a variety of topics but things I will mainly be covering are:

  • Hardware, gadget, software and Website Reviews
  • My personal ponderings on technological trends
  • My work as a Website Developer on Phuser.com
  • Coding and Programming examples and tutorials
  • Any other geek stuff that I decided is cool

/* Pete Graham */

Posted in Uncategorized, Tech, Pete Graham | 4 Comments »