Archive for August, 2007

I just read a wicked tutorial on DiscoMoose on how to add text onto an existing png file and now I'm ready to make my next widget! it's going to be a custom link box with a variety of button styles to choose from. Choose any text and the button will be displayed with the text on there.

It might save a lot of trouble for newbies who don't have experience in coding or if someones best image app is MSPaint!

here's my first test to see if I could run the code..

dynamic button

it is called with http://www.fiddyp.co.uk/internal/testingphp/png.php?text=woot!

here is the code for png.php

PHP:
  1. // load the image from the file specified:
  2.  
  3. $im = imagecreatefrompng("button.png");
  4. // if there's an error, stop processing the page:
  5. if(!$im)
  6. {
  7.     die("");
  8. }
  9. // define some colours to use with the image
  10. $yellow = imagecolorallocate($im, 255, 255, 0);
  11. $black = imagecolorallocate($im, 0, 0, 0);
  12. // get the width and the height of the image
  13. $width = imagesx($im);
  14. $height = imagesy($im);
  15. // draw a black rectangle across the bottom, say, 20 pixels of the image:
  16. //imagefilledrectangle($im, 0, ($height-20) , $width, $height, $black);
  17. // now we want to write in the centre of the rectangle:
  18. $font = 4; // store the int ID of the system font we're using in $font
  19. $text = $_GET['text']; // store the text we're going to write in $text
  20. // calculate the left position of the text:
  21. $leftTextPos = ( $width - imagefontwidth($font)*strlen($text) )/2;
  22. // finally, write the string:
  23. imagestring($im,$font,$leftTextPos-1, $height-35,$text,$black);
  24. imagestring($im, $font, $leftTextPos, $height-36, $text, $yellow);
  25.  
  26. // output the image
  27. // tell the browser what we're sending it
  28. Header('Content-type: image/png');
  29. // output the image as a png
  30. imagepng($im);
  31. // tidy up
  32. imagedestroy($im);

yey!

Popularity: 11% [?]

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

MyBlogLog DOGGI had some fun today programming a bot, or, I like to call it a dog. More accurately a MyBlogLogDogg.

It's a php program that has the ability to visit my BlogLog home page and grab all the contacts, it then goes and visits all those contacts pretending to be me, it grabs their contacts and goes and visits them and can continue doing this on multiple levels and threads.

Every single person that the dogg visits will have my profile picture on their profile page as a recent visitor. I've only tested it for my own profile pages (mine and my work one) as I don't think it's really the sort of thing that MyBlogLog would allow.

Could be cool though to set it off running through the MyBlogLog profile pages and distribute my mugshot on all 2000+ members. People always like to click on the face of their latest profile viewer so I think it's a pretty cool way to get some social hits to here!

I'm not doing too bad, this blog was born on 26 August 2007 and has averaged 50 hits a day so far, that's before I add a "blog has moved" sign on my old blog and before I add the link to my other sites. I should be able to get it up to 100 a day using this method, especially if I train the dogg to use other sites that use "people who viewed this page" gadgets...

Go fetch boy! :)

Popularity: 10% [?]

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Lottery Ballsphew! I just made 2 new widgets to show the UK and Euromillions Lottery results, it took all of 20 minutes! hehe, these widgets are getting easier and easier to make!

These ones parse an external site for the results so I think I need to work on a cache type thing so it doesn't have to go outside every time someone views the site. The site it grabs the results from tends to have them very early and the feed is easy to parse so as long as there's not too much traffic, it wont place any undue pressure on an external page. oh wait, maybe I could add some php to only parse the site every 10 minutes... 6 times an hour isn't too much pressure to put on any page!

I'm off to tweak!

Popularity: 10% [?]

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

With all the hoo-hah being hoo-hah'd on the news and internet about how Facebook, YouTube, BeBo, King.com,Network Marketing, Blogs, Instant Messengers, Multiplayer games and Online Skill Games are growing at a phenomenal rate. Isn't it about time someone put together an entire package of tools that could tap into that market? If they did, they would be the FIRST company to ever launch a business that encapsulates the top 3 :

  • Online Games Entertainment
  • Social Networking using Web 2.0
  • A new way of network marketing, described as Social Marketing/Network Marketing 2.0
  • Let's analyze these a little more...

    1. Online Games Entertainment
      • Even in countries where PC ownership is quite small, Internet cafes are commonplace, heavily frequented and affordable to their customers, in many cases open around the clock, 30-40% of their revenue comes from people playing games online.
      • Peoples Productivity at work is improved! A WorldWinner survey (May 2007) showed that 76% of those who play intermittently at work achieve improved job performance.
    2. Social Networking
      • Facebook was founded just 3 years ago by a university student, it is now the 18th most visited web site in the world.
      • The average Westerner has more friends than two years ago, and the rise is attributed to the explosion in Social Networking sites and communication phenomena such as email and Instant Messaging.
      • The Neilsen/Netratings report (May 2006) stated that Social Networking sites grow 47% year over year, reaching 45% of web users
      • Millions of people daily are having fun with Social Networking: it is real, massive and will continue to grow.
    3. Instant Messengers
      • Instant messengers (IMs) such as Windows Live Messenger, AIM (AOL Instant Messenger), Google Talk and Yahoo! Messenger are now commonplace. More than half the UK population regularly use Windows Live Messenger to stay in touch with friends.

      • Windows Live Messenger: 155 Million total users
      • AIM: over 100 Million total users
      • Jabber: 90 Million users
      • Yahoo! Messenger: 22 Million users
      • I'm part of that company... I've been part of it for 3 years, I've recruited hundreds into it, earned thousands from it and showed others how to the same. I've even made entire sites for the team for training and support, I've made a popular series of affiliate training videos that continues to train more than just my team (it earns a fair bit in Adsense too!).

        And now, I'm ready to share with you how I will do it with uVme.

        I urge you to download this special insiders report, its completely free. Please visit my company domain www.UKOEM.com and enter your details to see why I'm so excited by this new product coming to the market. After this, network marketing will never be the same again.

        Popularity: 10% [?]

        [Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

    I've been having a right larf at LOL Cats pictures lately, here's one that made me laugh recently..

    LOLcat Cookie
    Source

    There's even a whole site dedicated to them... LolCats

    Popularity: 34% [?]

    [Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]