skip main navigation skip all navigation top
 

Latest posts

Charanjit Chana BSc

This is my personal blog, covering a wide range of topics including web development, design, technology, film, music, TV and sport. I'm a web developer and creator of popular fashion website, Be Unequaled.

Search

Categories

Tags

See all tags

Social networks

Flickr

  • photo.jpg
  • Maha camo x Futura logo - branded
  • District 9 Poster
  • Shark Ice
  • dektop
  • Trevi Fountain at night
  • Castle in Rome
  • Ruins near Ceasar's Palace - inside of Arch
  • Ruins near Ceasar's Palace

Nike+ Nike+

    Links

    Arrested Development

    Quote #159 (of 307):

    Lucille Bluth: I'm going to Annyong's soccer awards ceremony, and...
    Annyong: Annyong.
    [everyone glares at Annyong]
    Lucille Bluth: ...and I don't need the other soccer moms knowing how old my first batch of kids are.
    Gob: Yeah, I think that they're gonna know that Annyong's not...
    Annyong: Annyong.
    Gob: [screaming] ... would somebody *please* tell this insufferable child to... GOD.

    Quotes fed from IMDB.com

    Advertisements

     

    2010 or ten past eight?

    Possibly the best way of pronouncing the new year, 20:10 has already begun and I've already made more changes to http://charanj.it!

    My portfolio site now has a slightly better layout, more functionality for the portfolio showcase and more key terms and information about me, as a developer.

    I'm looking to improve the twitter situation, because not all my tweets are really suitable for my portfolio site, but I'll decide what to do with that a bit later!

    Posted Posted by Chaz 5th January 2010 @ 18:13pm - comments 0 comments - permalink permalink

    Goodbye 2009, hello 2010

    As the world waves it's goodbye to the year that was 2009, I thought I'd write a quick post on how the year went for me.

    I got married and achieved a lot of other personal milestones this year.

    I got to see Hawaii and an active volcano. Got to see Anfield and sit in the Kop. I got to see Francesco Totti play for Roma at the Olympico while taking my wife around a city I love.

    The year has had a few downs, but many many ups and I can't wait for the new year to start. Happy New Year all! :)

    Posted Posted by Chaz 31st December 2009 @ 17:46pm - comments 0 comments - permalink permalink

    Blurred text in CSS

    It's possible to make text looked blurred using just CSS3. See the examples below, just hover over the first bit of text to see the possibility of using blurred text as a hover state.

    Some blurred text

    Some blurred text



    Above, you can see some examples of blurred text in browsers that support CSS3

    The trick is to change the colour of the element and either apply the text-shadow or box-shadow properties through CSS. Using the :hover pseudo-class you can create a blurred/unblurred effect

    Example:


    HTML:

    <h1 class="blurred">Blurred text</h1>
    



    CSS:

    h1.blurred {
    	color: #FFF;
    }
    h1.blurred:hover {
    	cursor: pointer;
    	color: #666!important;
    	text-shadow: 0 0 5px #444;
    }
    



    The colours need to be selected carefully, as the shadows are often a bit lighter than the foreground text colour. Shadow size also plays a role. 5px seems to be effective, but 10px can wash the colour out.

    To apply the effect to a block element, you'll need to use the box-shadow property instead of the text-shadow property, but otherwise it's the the same.

    For more effects, you could apply opacity to make the text a little see through and see how that works out!

    If you find this useful, please check out my portfolio site.

    Posted Posted by Chaz 22nd December 2009 @ 15:41pm - comments 0 comments - permalink permalink

    In the pipeline

    I haven't had the time to work on receeve.it properly for a few weeks, but I am looking to release the following things in the near future:

    1. Nike+PHP v0.9.1
    2. A mobile poker site (trying some revenue ideas out)
    3. Migrating the odd blog post from the old Be Unequaled blog

    As you may be aware, Be Unequaled is no longer around as a fashion site, but will return in the future in a different form. I feel that the blog had some decent content so I'll be migrating that over bit by bit to this blog.

    Posted Posted by Chaz 17th December 2009 @ 14:38pm - comments 0 comments - permalink permalink

    URL ABC

    Simply type each letter of the alphabet, one at a time and see what URL comes up in your address bar. Post them up and you're taking part in the game!

    a: http://angela.sky.com
    b: http://www.bbc.co.uk/football
    c: http://charanj.it
    d: http://digg.com
    e: http://expedia.co.uk
    f: http://flickr.com
    g: http://gmail.com
    h: http://hotukdeals.com
    i: http://icanhascheezburger.com
    j: http://jonquirk.com
    k: http://karmaloop.com/index.asp?rcode=CA7004
    l: http://liverpoolfc.tv
    m: http://maps.google.com
    n: http://news.bbc.co.uk
    o: http://odeon.co.uk
    p: http://picasaweb.google.com
    q: //
    r: http://reader.google.com
    s: http://www.skyarts.co.uk
    t: http://twitter.com
    u: http://upnextinsports.com
    v: http://validator.w3.org/check
    w: http://wave.google.com
    x: //
    y: http://youtube.com
    z: //

    I took these results from Chrome at work, so the first result was often a well used search term!

    Posted Posted by Chaz 8th December 2009 @ 11:47am - comments 0 comments - permalink permalink

    New portfolio is live!

    I tweeted a few things about my new portfolio and I finally got it up yesterday evening!

    I feel that it showcases my talents a lot better than the last version and has a lot more personality! The site is built in HTML5 and uses CSS3, it should degrade nicely down to XHTML and CSS2.

    Quite a bit of jQuery, but all unobtrusive. As has become my signature, the site doesn't work in IE6, but I really couldn't care!

    Check out charanj.it!

    Posted Posted by Chaz 4th November 2009 @ 17:29pm - comments 0 comments - permalink permalink

    Nike+PHP a PHP class for Nike+

    So I am a lover of Nike+ and have had a Nike+ stat widget on the side of my blog for quite a while now. The project can be found at http://nikeplusphp.org.

    It came to my attention that the method used wasn't the easiest and certainly wasn't up to date. Looks like something changed on Nike's end and that has broken the API I was using.

    Looking around for an alternative, I was inspired to build my own class and am now firmly at version 0.7 with it. I've created a small website for the project where you can grab the code and there's some documentation to help you get started.

    The project is called Nike+PHP and all you need is a Nike+ account, PHP5 and SimpleXML installed.

    [ read more... ]

    Posted Posted by Chaz 5th October 2009 @ 09:08am - comments 0 comments - permalink permalink

    PHP - deleting cookies

    I had an issue where I couldn't delete cookies today. Turns out, adding the path works.

    <?php
    setcookie('name', 'value', time()+3600);
    ?>
    



    The above would set a cookie for one hour into the future.

    <?php
    setcookie('name', 'value', time()-3600);
    ?>
    



    The above should set a cookie for one hour into the past, making it expire and effectively deleting it. Today, this wasn't the case, but adding a path did the trick.

    <?php
    setcookie('name', 'value', time()+3600, '/');
    ?>
    



    The above sets it for an hour and for the whole domain. Adding the '/' to both the setting and expiring did the trick!


    Posted Posted by Chaz 25th August 2009 @ 11:19am - comments 0 comments - permalink permalink

    Selected honeymoon photos

    Despite arriving back from Hawaii & New York over 2 weeks ago, it's taking me an age to get through all the photos. I managed to get a few honeymoon photos up on flickr, just choose either New York or Hawaii.

    I cannot express how beautiful Hawaii was and the photos will go no way to even showing you, it's a place you really have to see for yourself.

    The 24 hour trip getting there was hard, but totally worth it! Wedding photos to come soon!

    Posted Posted by Chaz 1st July 2009 @ 10:42am - comments 0 comments - permalink permalink

    Wedding week

    So my wedding is less than a week away! Keep an eye on my Flickr wedding set over the coming weeks and I hope to post up videos from both the wedding and our honeymoon too.

    Posted Posted by Chaz 25th May 2009 @ 13:00pm - comments 0 comments - permalink permalink